From e2dc5c775523bbc9d13e0aa0e0ac208f5e230e2d Mon Sep 17 00:00:00 2001
From: Artur Shiriev
Date: Sun, 13 Apr 2025 18:34:37 +0300
Subject: [PATCH] implement swagger instrument
---
.../bootstrappers/fastapi_bootstrapper.py | 19 +-
.../bootstrappers/litestar_bootstrapper.py | 49 +-
.../fastapi_offline_docs/__init__.py | 0
lite_bootstrap/fastapi_offline_docs/main.py | 61 +
.../static/redoc.standalone.js | 1782 +
.../static/swagger-ui-bundle.js | 3 +
.../static/swagger-ui.css | 3 +
lite_bootstrap/helpers.py | 9 +
lite_bootstrap/instruments/base.py | 1 +
.../instruments/prometheus_instrument.py | 12 +-
.../instruments/swagger_instrument.py | 22 +
.../asyncapi-web-component.js | 51940 +++++++++++
.../litestar_swagger_static/default.min.css | 5 +
.../swagger-ui-bundle.js | 74762 ++++++++++++++++
.../swagger-ui-standalone-preset.js | 13271 +++
.../litestar_swagger_static/swagger-ui.css | 3 +
tests/test_fastapi_bootstrap.py | 13 +-
tests/test_fastapi_offline_docs.py | 47 +
tests/test_litestar_bootstrap.py | 8 +-
19 files changed, 141995 insertions(+), 15 deletions(-)
create mode 100644 lite_bootstrap/fastapi_offline_docs/__init__.py
create mode 100644 lite_bootstrap/fastapi_offline_docs/main.py
create mode 100644 lite_bootstrap/fastapi_offline_docs/static/redoc.standalone.js
create mode 100644 lite_bootstrap/fastapi_offline_docs/static/swagger-ui-bundle.js
create mode 100644 lite_bootstrap/fastapi_offline_docs/static/swagger-ui.css
create mode 100644 lite_bootstrap/helpers.py
create mode 100644 lite_bootstrap/instruments/swagger_instrument.py
create mode 100644 lite_bootstrap/litestar_swagger_static/asyncapi-web-component.js
create mode 100644 lite_bootstrap/litestar_swagger_static/default.min.css
create mode 100644 lite_bootstrap/litestar_swagger_static/swagger-ui-bundle.js
create mode 100644 lite_bootstrap/litestar_swagger_static/swagger-ui-standalone-preset.js
create mode 100644 lite_bootstrap/litestar_swagger_static/swagger-ui.css
create mode 100644 tests/test_fastapi_offline_docs.py
diff --git a/lite_bootstrap/bootstrappers/fastapi_bootstrapper.py b/lite_bootstrap/bootstrappers/fastapi_bootstrapper.py
index d8cd8d4..d3ae366 100644
--- a/lite_bootstrap/bootstrappers/fastapi_bootstrapper.py
+++ b/lite_bootstrap/bootstrappers/fastapi_bootstrapper.py
@@ -3,6 +3,7 @@
from lite_bootstrap import import_checker
from lite_bootstrap.bootstrappers.base import BaseBootstrapper
+from lite_bootstrap.fastapi_offline_docs.main import enable_offline_docs
from lite_bootstrap.instruments.cors_instrument import CorsConfig, CorsInstrument
from lite_bootstrap.instruments.healthchecks_instrument import (
HealthChecksConfig,
@@ -13,6 +14,7 @@
from lite_bootstrap.instruments.opentelemetry_instrument import OpentelemetryConfig, OpenTelemetryInstrument
from lite_bootstrap.instruments.prometheus_instrument import PrometheusConfig, PrometheusInstrument
from lite_bootstrap.instruments.sentry_instrument import SentryConfig, SentryInstrument
+from lite_bootstrap.instruments.swagger_instrument import SwaggerConfig, SwaggerInstrument
if import_checker.is_fastapi_installed:
@@ -28,7 +30,9 @@
@dataclasses.dataclass(kw_only=True, slots=True, frozen=True)
-class FastAPIConfig(CorsConfig, HealthChecksConfig, LoggingConfig, OpentelemetryConfig, PrometheusConfig, SentryConfig):
+class FastAPIConfig(
+ CorsConfig, HealthChecksConfig, LoggingConfig, OpentelemetryConfig, PrometheusConfig, SentryConfig, SwaggerConfig
+):
application: "fastapi.FastAPI" = dataclasses.field(default_factory=lambda: fastapi.FastAPI())
opentelemetry_excluded_urls: list[str] = dataclasses.field(default_factory=list)
prometheus_instrumentator_params: dict[str, typing.Any] = dataclasses.field(default_factory=dict)
@@ -129,6 +133,18 @@ def bootstrap(self) -> None:
)
+@dataclasses.dataclass(kw_only=True, frozen=True)
+class FastApiSwaggerInstrument(SwaggerInstrument):
+ bootstrap_config: FastAPIConfig
+
+ def bootstrap(self) -> None:
+ self.bootstrap_config.application.docs_url = self.bootstrap_config.swagger_path
+ if self.bootstrap_config.swagger_offline_docs:
+ enable_offline_docs(
+ self.bootstrap_config.application, static_files_handler=self.bootstrap_config.service_static_path
+ )
+
+
class FastAPIBootstrapper(BaseBootstrapper["fastapi.FastAPI"]):
__slots__ = "bootstrap_config", "instruments"
@@ -139,6 +155,7 @@ class FastAPIBootstrapper(BaseBootstrapper["fastapi.FastAPI"]):
FastAPIHealthChecksInstrument,
FastAPILoggingInstrument,
FastAPIPrometheusInstrument,
+ FastApiSwaggerInstrument,
]
bootstrap_config: FastAPIConfig
not_ready_message = "fastapi is not installed"
diff --git a/lite_bootstrap/bootstrappers/litestar_bootstrapper.py b/lite_bootstrap/bootstrappers/litestar_bootstrapper.py
index c7e4aaa..0810c93 100644
--- a/lite_bootstrap/bootstrappers/litestar_bootstrapper.py
+++ b/lite_bootstrap/bootstrappers/litestar_bootstrapper.py
@@ -1,4 +1,5 @@
import dataclasses
+import pathlib
import typing
from lite_bootstrap import import_checker
@@ -18,6 +19,7 @@
PrometheusInstrument,
)
from lite_bootstrap.instruments.sentry_instrument import SentryConfig, SentryInstrument
+from lite_bootstrap.instruments.swagger_instrument import SwaggerConfig, SwaggerInstrument
if import_checker.is_litestar_installed:
@@ -25,7 +27,10 @@
from litestar.config.app import AppConfig
from litestar.config.cors import CORSConfig
from litestar.contrib.opentelemetry import OpenTelemetryConfig
+ from litestar.openapi import OpenAPIConfig
+ from litestar.openapi.plugins import SwaggerRenderPlugin
from litestar.plugins.prometheus import PrometheusConfig, PrometheusController
+ from litestar.static_files import create_static_files_router
if import_checker.is_opentelemetry_installed:
from opentelemetry.trace import get_tracer_provider
@@ -33,7 +38,13 @@
@dataclasses.dataclass(kw_only=True, slots=True, frozen=True)
class LitestarConfig(
- CorsConfig, HealthChecksConfig, LoggingConfig, OpentelemetryConfig, PrometheusBootstrapperConfig, SentryConfig
+ CorsConfig,
+ HealthChecksConfig,
+ LoggingConfig,
+ OpentelemetryConfig,
+ PrometheusBootstrapperConfig,
+ SentryConfig,
+ SwaggerConfig,
):
application_config: "AppConfig" = dataclasses.field(default_factory=lambda: AppConfig())
opentelemetry_excluded_urls: list[str] = dataclasses.field(default_factory=list)
@@ -130,6 +141,41 @@ class LitestarPrometheusController(PrometheusController):
self.bootstrap_config.application_config.middleware.append(litestar_prometheus_config.middleware)
+@dataclasses.dataclass(kw_only=True, frozen=True)
+class LitestarSwaggerInstrument(SwaggerInstrument):
+ bootstrap_config: LitestarConfig
+
+ def bootstrap(self) -> None:
+ render_plugins: typing.Final = (
+ (
+ SwaggerRenderPlugin(
+ js_url=f"{self.bootstrap_config.service_static_path}/swagger-ui-bundle.js",
+ css_url=f"{self.bootstrap_config.service_static_path}/swagger-ui.css",
+ standalone_preset_js_url=(
+ f"{self.bootstrap_config.service_static_path}/swagger-ui-standalone-preset.js"
+ ),
+ ),
+ )
+ if self.bootstrap_config.swagger_offline_docs
+ else (SwaggerRenderPlugin(),)
+ )
+ self.bootstrap_config.application_config.openapi_config = OpenAPIConfig(
+ path=self.bootstrap_config.swagger_path,
+ title=self.bootstrap_config.service_name,
+ version=self.bootstrap_config.service_version,
+ description=self.bootstrap_config.service_description,
+ render_plugins=render_plugins,
+ **self.bootstrap_config.swagger_extra_params,
+ )
+ if self.bootstrap_config.swagger_offline_docs:
+ static_dir_path = pathlib.Path(__file__).parent.parent / "litestar_swagger_static"
+ self.bootstrap_config.application_config.route_handlers.append(
+ create_static_files_router(
+ path=self.bootstrap_config.service_static_path, directories=[static_dir_path]
+ )
+ )
+
+
class LitestarBootstrapper(BaseBootstrapper["litestar.Litestar"]):
__slots__ = "bootstrap_config", "instruments"
@@ -140,6 +186,7 @@ class LitestarBootstrapper(BaseBootstrapper["litestar.Litestar"]):
LitestarHealthChecksInstrument,
LitestarLoggingInstrument,
LitestarPrometheusInstrument,
+ LitestarSwaggerInstrument,
]
bootstrap_config: LitestarConfig
not_ready_message = "litestar is not installed"
diff --git a/lite_bootstrap/fastapi_offline_docs/__init__.py b/lite_bootstrap/fastapi_offline_docs/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/lite_bootstrap/fastapi_offline_docs/main.py b/lite_bootstrap/fastapi_offline_docs/main.py
new file mode 100644
index 0000000..a6790f3
--- /dev/null
+++ b/lite_bootstrap/fastapi_offline_docs/main.py
@@ -0,0 +1,61 @@
+import os
+import pathlib
+import typing
+
+from lite_bootstrap import import_checker
+
+
+if import_checker.is_fastapi_installed:
+ from fastapi import FastAPI, Request
+ from fastapi.openapi.docs import get_redoc_html, get_swagger_ui_html, get_swagger_ui_oauth2_redirect_html
+ from fastapi.responses import HTMLResponse
+ from fastapi.staticfiles import StaticFiles
+ from starlette.routing import Route
+
+
+def enable_offline_docs(
+ app: "FastAPI",
+ static_files_handler: str = "/static",
+ static_dir_path: os.PathLike[str] = pathlib.Path(__file__).parent / "static",
+ include_docs_in_schema: bool = False,
+) -> None:
+ if not (app_openapi_url := app.openapi_url):
+ msg = "No app.openapi_url specified"
+ raise RuntimeError(msg)
+
+ docs_url: str = app.docs_url or "/docs"
+ redoc_url: str = app.redoc_url or "/redoc"
+ swagger_ui_oauth2_redirect_url: str = app.swagger_ui_oauth2_redirect_url or "/docs/oauth2-redirect"
+
+ app.router.routes = [
+ route
+ for route in app.router.routes
+ if typing.cast(Route, route).path not in (docs_url, redoc_url, swagger_ui_oauth2_redirect_url)
+ ]
+
+ app.mount(static_files_handler, StaticFiles(directory=static_dir_path), name=static_files_handler)
+
+ @app.get(docs_url, include_in_schema=include_docs_in_schema)
+ async def custom_swagger_ui_html(request: Request) -> HTMLResponse:
+ root_path = typing.cast(str, request.scope.get("root_path", "").rstrip("/"))
+ swagger_js_url = f"{root_path}{static_files_handler}/swagger-ui-bundle.js"
+ swagger_css_url = f"{root_path}{static_files_handler}/swagger-ui.css"
+ return get_swagger_ui_html(
+ openapi_url=root_path + app_openapi_url,
+ title=f"{app.title} - Swagger UI",
+ oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
+ swagger_js_url=swagger_js_url,
+ swagger_css_url=swagger_css_url,
+ )
+
+ @app.get(swagger_ui_oauth2_redirect_url, include_in_schema=include_docs_in_schema)
+ async def swagger_ui_redirect() -> HTMLResponse:
+ return get_swagger_ui_oauth2_redirect_html()
+
+ @app.get(redoc_url, include_in_schema=include_docs_in_schema)
+ async def redoc_html() -> HTMLResponse:
+ return get_redoc_html(
+ openapi_url=app_openapi_url,
+ title=f"{app.title} - ReDoc",
+ redoc_js_url=f"{static_files_handler}/redoc.standalone.js",
+ )
diff --git a/lite_bootstrap/fastapi_offline_docs/static/redoc.standalone.js b/lite_bootstrap/fastapi_offline_docs/static/redoc.standalone.js
new file mode 100644
index 0000000..4508e66
--- /dev/null
+++ b/lite_bootstrap/fastapi_offline_docs/static/redoc.standalone.js
@@ -0,0 +1,1782 @@
+/*! For license information please see redoc.standalone.js.LICENSE.txt */
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("null")):"function"==typeof define&&define.amd?define(["null"],t):"object"==typeof exports?exports.Redoc=t(require("null")):e.Redoc=t(e.null)}(this,(function(e){return function(){var t={5499:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(3325),o=n(6479),i=n(5522),a=n(1603),s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=n(1321);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var p=n(4475);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}})},4667:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=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 n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{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=r;class o extends n{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 r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function i(e,...t){const n=[e[0]];let r=0;for(;r"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?o.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=R(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=R(this.rhs,e,t),this}get names(){return C(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends c{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class p extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends s{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=R(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||(j(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>$(e,t.names)),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends m{}class v extends g{}v.kind="else";class b extends g{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(T(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=R(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&$(e,this.else.names),e}}b.kind="if";class w extends g{}w.kind="for";class x extends w{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=R(this.iteration,e,t),this}get names(){return $(super.names,this.iteration.names)}}class k extends w{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?o.varKinds.var:this.varKind,{name:n,from:r,to:i}=this;return`for(${t} ${n}=${r}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class _ extends w{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}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=R(this.iterable,e,t),this}get names(){return $(super.names,this.iterable.names)}}class O extends g{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}O.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class E extends g{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 n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&$(e,this.catch.names),this.finally&&$(e,this.finally.names),e}}class P extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class A extends g{render(e){return"finally"+super.render(e)}}function $(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function C(e,t){return t instanceof r._CodeOrName?$(e,t.names):e}function R(e,t,n){return e instanceof r.Name?i(e):(o=e)instanceof r._Code&&o._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=i(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function i(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function j(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function T(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${L(e)}`}A.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 o.Scope({parent:e}),this._nodes=[new y]}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 n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}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,n,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new l(e,o,n)),o}const(e,t,n){return this._def(o.varKinds.const,e,t,n)}let(e,t,n){return this._def(o.varKinds.let,e,t,n)}var(e,t,n){return this._def(o.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new c(e,t,n))}add(e,n){return this._leafNode(new u(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[n,o]of e)t.length>1&&t.push(","),t.push(n),(n!==o||this.opts.es5)&&(t.push(":"),r.addCodeArg(t,o));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)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 x(e),t)}forRange(e,t,n,r,i=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const a=this._scope.toName(e);return this._for(new k(i,a,t,n),(()=>r(a)))}forOf(e,t,n,i=o.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),n(a)}))}return this._for(new _("of",i,a,t),(()=>n(a)))}forIn(e,t,n,i=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new _("in",i,a,t),(()=>n(a)))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new p(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new E;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new P(e),t(e)}return n&&(this._currNode=r.finally=new A,this.code(n)),this._endBlockNode(P,A)}throw(e){return this._leafNode(new f(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 n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,o){return this._blockNode(new O(e,t,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(O)}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 n=this._currNode;if(n instanceof e||t&&n 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=T;const I=D(t.operators.AND);t.and=function(...e){return e.reduce(I)};const N=D(t.operators.OR);function D(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${L(t)} ${e} ${L(n)}`}function L(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(N)}},7791:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(4667);class o extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var i;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(i=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.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=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:o}=r,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[o];if(a){const e=a.get(i);if(e)return e}else a=this._values[o]=new Map;a.set(i,r);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:o,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.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 r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const c in e){const u=e[c];if(!u)continue;const p=a[c]=a[c]||new Map;u.forEach((e=>{if(p.has(e))return;p.set(e,i.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new o(e);l=r._`${l}${a}${this.opts._n}`}p.set(e,i.Completed)}))}return l}}},1885:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(4475),o=n(6124),i=n(5018);function a(e,t){const n=e.const("err",t);e.if(r._`${i.default.vErrors} === null`,(()=>e.assign(i.default.vErrors,r._`[${n}]`)),r._`${i.default.vErrors}.push(${n})`),e.code(r._`${i.default.errors}++`)}function s(e,t){const{gen:n,validateName:o,schemaEnv:i}=e;i.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${o}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`should pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,o,i){const{it:l}=e,{gen:u,compositeRule:p,allErrors:d}=l,f=c(e,n,o);(null!=i?i:p||d)?a(u,f):s(l,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:o}=e,{gen:l,compositeRule:u,allErrors:p}=o;a(l,c(e,n,r)),u||p||s(o,i.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(i.default.errors,t),e.if(r._`${i.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${i.default.vErrors}.length`,t)),(()=>e.assign(i.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:o,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,i.default.errors,(a=>{e.const(l,r._`${i.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,(()=>e.assign(r._`${l}.instancePath`,r.strConcat(i.default.instancePath,s.errorPath)))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,o))}))};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function c(e,t,n){const{createErrors:o}=e.it;return!1===o?r._`{}`:function(e,t,n={}){const{gen:o,it:a}=e,s=[u(a,n),p(e,n)];return function(e,{params:t,message:n},o){const{keyword:a,data:s,schemaValue:c,it:u}=e,{opts:p,propertyName:d,topSchemaRef:f,schemaPath:h}=u;o.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),p.messages&&o.push([l.message,"function"==typeof n?n(e):n]),p.verbose&&o.push([l.schema,c],[l.parentSchema,r._`${f}${h}`],[i.default.data,s]),d&&o.push([l.propertyName,d])}(e,t,s),o.object(...s)}(e,t,n)}function u({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${o.getErrorPath(t,o.Type.Str)}`:e;return[i.default.instancePath,r.strConcat(i.default.instancePath,n)]}function p({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:i}){let a=i?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${o.getErrorPath(n,o.Type.Str)}`),[l.schemaPath,a]}},7805:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(4475),o=n(8451),i=n(5018),a=n(9826),s=n(6124),l=n(1321),c=n(540);class u{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=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:a.normalizeId(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function p(e){const t=f.call(this,e);if(t)return t;const n=a.getFullPath(e.root.baseId),{es5:s,lines:c}=this.opts.code,{ownProperties:u}=this.opts,p=new r.CodeGen(this.scope,{es5:s,lines:c,ownProperties:u});let d;e.$async&&(d=p.scopeValue("Error",{ref:o.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const h=p.scopeName("validate");e.validateName=h;const m={gen:p,allErrors:this.opts.allErrors,data:i.default.data,parentData:i.default.parentData,parentDataProperty:i.default.parentDataProperty,dataNames:[i.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:r.stringify(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:d,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),l.validateFunctionCode(m),p.optimize(this.opts.code.optimize);const t=p.toString();g=`const visitedNodesForRef = new WeakMap(); ${p.scopeRefs(i.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const n=new Function(`${i.default.self}`,`${i.default.scope}`,g)(this,this.scope.get());if(this.scope.value(h,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:h,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=r.stringify(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function d(e){return a.inlineRef(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:p.call(this,e)}function f(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function h(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){const n=c.parse(t),r=a._getFullPath(n);let o=a.getFullPath(e.baseId);if(Object.keys(e.schema).length>0&&r===o)return y.call(this,n,e);const i=a.normalizeId(r),s=this.refs[i]||this.schemas[i];if("string"==typeof s){const t=m.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||p.call(this,s),i===a.normalizeId(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(o=a.resolveUrl(o,r)),new u({schema:t,schemaId:n,root:e,baseId:o})}return y.call(this,n,s)}}t.SchemaEnv=u,t.compileSchema=p,t.resolveRef=function(e,t,n){var r;const o=a.resolveUrl(t,n),i=e.refs[o];if(i)return i;let s=h.call(this,e,o);if(void 0===s){const n=null===(r=e.localRefs)||void 0===r?void 0:r[o],{schemaId:i}=this.opts;n&&(s=new u({schema:n,schemaId:i,root:e,baseId:t}))}if(void 0===s&&this.opts.loadSchemaSync){const r=this.opts.loadSchemaSync(t,n,o);!r||this.refs[o]||this.schemas[o]||(this.addSchema(r,o,void 0),s=h.call(this,e,o))}return void 0!==s?e.refs[o]=d.call(this,s):void 0},t.getCompilingSchema=f,t.resolveSchema=m;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:r}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;if(void 0===(n=n[s.unescapeFragment(r)]))return;const e="object"==typeof n&&n[this.opts.schemaId];!g.has(r)&&e&&(t=a.resolveUrl(t,e))}let i;if("boolean"!=typeof n&&n.$ref&&!s.schemaHasRulesButRef(n,this.RULES)){const e=a.resolveUrl(t,n.$ref);i=m.call(this,r,e)}const{schemaId:l}=this.opts;return i=i||new u({schema:n,schemaId:l,root:r,baseId:t}),i.schema!==i.root.schema?i:void 0}},5018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=o},4143:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9826);class o extends Error{constructor(e,t,n){super(n||`can't resolve reference ${t} from id ${e}`),this.missingRef=r.resolveUrl(e,t),this.missingSchema=r.normalizeId(r.getFullPath(this.missingRef))}}t.default=o},9826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(6124),o=n(4063),i=n(4029),a=n(540),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&&u(e)<=t)};const l=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(l.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function u(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&r.eachItem(e[n],(e=>t+=u(e))),t===1/0))return 1/0}return t}function p(e="",t){return!1!==t&&(e=h(e)),d(a.parse(e))}function d(e){return a.serialize(e).split("#")[0]+"#"}t.getFullPath=p,t._getFullPath=d;const f=/#\/?$/;function h(e){return e?e.replace(f,""):""}t.normalizeId=h,t.resolveUrl=function(e,t){return t=h(t),a.resolve(e,t)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e){if("boolean"==typeof e)return{};const{schemaId:t}=this.opts,n=h(e[t]),r={"":n},s=p(n,!1),l={},c=new Set;return i(e,{allKeys:!0},((e,n,o,i)=>{if(void 0===i)return;const p=s+n;let f=r[i];function g(t){if(t=h(f?a.resolve(f,t):t),c.has(t))throw d(t);c.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==h(p)&&("#"===t[0]?(u(e,l[t],t),l[t]=e):this.refs[t]=p),t}function y(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);g.call(this,`#${e}`)}}"string"==typeof e[t]&&(f=g.call(this,e[t])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),r[n]=f})),l;function u(e,t,n){if(void 0!==t&&!o(e,t))throw d(n)}function d(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},3664:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.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:{}}}},6124:function(e,t,n){"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 r=n(4475),o=n(4667);function i(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const n in t)o[n]||h(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(i,a,s,l)=>{const c=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(i,a,s):t(i,a,s),s):a instanceof r.Name?(t(i,s,a),a):n(a,s);return l!==r.Name||c instanceof r.Name?c:o(i,c)}}function u(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&p(e,n,t),n}function p(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${r.getProperty(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(i(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=i,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,o,i){if(!i){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${r.getProperty(o)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),p(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=p;const d={};var f;function h(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const o=t===f.Num;return n?o?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:o?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?r.getProperty(e).toString():"/"+s(e)},t.checkStrictMode=h},4566:function(e,t){"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.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},r){const o=t.RULES.types[r];return o&&!0!==o&&n(e,o)},t.shouldUseGroup=n,t.shouldUseRule=r},7627:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(1885),o=n(4475),i=n(5018),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:o}=e,i={gen:n,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};r.reportError(i,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(i.default.data):(t.assign(o._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},7927:function(e,t,n){"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 r=n(3664),o=n(4566),i=n(1885),a=n(4475),s=n(6124);var l;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.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"}(l=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=c(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=c,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:i}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,i.coerceTypes),c=t.length>0&&!(0===s.length&&1===t.length&&o.schemaHasRulesForType(e,t[0]));if(c){const o=d(t,r,i.strictNumbers,l.Wrong);n.if(o,(()=>{s.length?function(e,t,n){const{gen:r,data:o,opts:i}=e,s=r.let("dataType",a._`typeof ${o}`),l=r.let("coerced",a._`undefined`);"array"===i.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>r.assign(o,a._`${o}[0]`).assign(s,a._`typeof ${o}`).if(d(t,o,i.strictNumbers),(()=>r.assign(l,o))))),r.if(a._`${l} !== undefined`);for(const e of n)(u.has(e)||"array"===e&&"array"===i.coerceTypes)&&c(e);function c(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${o}`).elseIf(a._`${o} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${o} === null
+ || (${s} == "string" && ${o} && ${o} == +${o})`).assign(l,a._`+${o}`);case"integer":return void r.elseIf(a._`${s} === "boolean" || ${o} === null
+ || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(l,a._`+${o}`);case"boolean":return void r.elseIf(a._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(l,!1).elseIf(a._`${o} === "true" || ${o} === 1`).assign(l,!0);case"null":return r.elseIf(a._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(l,null);case"array":r.elseIf(a._`${s} === "string" || ${s} === "number"
+ || ${s} === "boolean" || ${o} === null`).assign(l,a._`[${o}]`)}}r.else(),h(e),r.endIf(),r.if(a._`${l} !== undefined`,(()=>{r.assign(o,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${n}]`,r)))}(e,l)}))}(e,t,s):h(e)}))}return c};const u=new Set(["string","number","integer","boolean","null"]);function p(e,t,n,r=l.Correct){const o=r===l.Correct?a.operators.EQ:a.operators.NEQ;let i;switch(e){case"null":return a._`${t} ${o} null`;case"array":i=a._`Array.isArray(${t})`;break;case"object":i=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return a._`typeof ${t} ${o} ${e}`}return r===l.Correct?i:a.not(i);function s(e=a.nil){return a.and(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function d(e,t,n,r){if(1===e.length)return p(e[0],t,n,r);let o;const i=s.toHash(e);if(i.array&&i.object){const e=a._`typeof ${t} != "object"`;o=i.null?e:a._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else o=a.nil;i.number&&delete i.integer;for(const e in i)o=a.and(o,p(e,t,n,r));return o}t.checkDataType=p,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:n,schema:r}=e,o=s.schemaRefOrVal(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}(e);i.reportError(t,f)}t.reportTypeError=h},2537:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(4475),o=n(6124);function i(e,t,n){const{gen:i,compositeRule:a,data:s,opts:l}=e;if(void 0===n)return;const c=r._`${s}${r.getProperty(t)}`;if(a)return void o.checkStrictMode(e,`default is ignored for: ${c}`);let u=r._`${c} === undefined`;"empty"===l.useDefaults&&(u=r._`${u} || ${c} === null || ${c} === ""`),i.if(u,r._`${c} = ${r.stringify(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)i(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>i(e,n,t.default)))}},1321:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(7627),o=n(7927),i=n(4566),a=n(7927),s=n(2537),l=n(6488),c=n(4688),u=n(4475),p=n(5018),d=n(9826),f=n(6124),h=n(1885);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},i){o.code.es5?e.func(t,u._`${p.default.data}, ${p.default.valCxt}`,r.$async,(()=>{e.code(u._`"use strict"; ${g(n,o)}`),function(e,t){e.if(p.default.valCxt,(()=>{e.var(p.default.instancePath,u._`${p.default.valCxt}.${p.default.instancePath}`),e.var(p.default.parentData,u._`${p.default.valCxt}.${p.default.parentData}`),e.var(p.default.parentDataProperty,u._`${p.default.valCxt}.${p.default.parentDataProperty}`),e.var(p.default.rootData,u._`${p.default.valCxt}.${p.default.rootData}`),t.dynamicRef&&e.var(p.default.dynamicAnchors,u._`${p.default.valCxt}.${p.default.dynamicAnchors}`)}),(()=>{e.var(p.default.instancePath,u._`""`),e.var(p.default.parentData,u._`undefined`),e.var(p.default.parentDataProperty,u._`undefined`),e.var(p.default.rootData,p.default.data),t.dynamicRef&&e.var(p.default.dynamicAnchors,u._`{}`)}))}(e,o),e.code(i)})):e.func(t,u._`${p.default.data}, ${function(e){return u._`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${e.dynamicRef?u._`, ${p.default.dynamicAnchors}={}`:u.nil}}={}`}(o)}`,r.$async,(()=>e.code(g(n,o)).code(i)))}function g(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){f.checkUnknownRules(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&f.schemaHasRulesButRef(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,t){if(e.opts.jtd)return k(e,[],!1,t);const n=o.getSchemaTypes(e.schema);k(e,n,!o.coerceAndCheckDataType(e,n),t)}function x({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const i=n.$comment;if(!0===o.$comment)e.code(u._`${p.default.self}.logger.log(${i})`);else if("function"==typeof o.$comment){const n=u.str`${r}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(u._`${p.default.self}.opts.$comment(${i}, ${n}, ${o}.schema)`)}}function k(e,t,n,r){const{gen:o,schema:s,data:l,allErrors:c,opts:d,self:h}=e,{RULES:m}=h;function g(f){i.shouldUseGroup(s,f)&&(f.type?(o.if(a.checkDataType(f.type,l,d.strictNumbers)),_(e,f),1===t.length&&t[0]===f.type&&n&&(o.else(),a.reportTypeError(e)),o.endIf()):_(e,f),c||o.if(u._`${p.default.errors} === ${r||0}`))}!s.$ref||!d.ignoreKeywordsWithRef&&f.schemaHasRulesButRef(s,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{O(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>O(t,e)))):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if("object"==typeof o&&i.shouldUseRule(e.schema,o)){const{type:n}=o.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),o.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):o.block((()=>P(e,"$ref",m.all.$ref.definition)))}function _(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&s.assignDefaults(e,t.type),n.block((()=>{for(const n of t.rules)i.shouldUseRule(r,n)&&P(e,n.keyword,n.definition,t.type)}))}function O(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,f.checkStrictMode(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),y(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&x(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&f.checkStrictMode(e,"default is ignored in the schema root")}(e),r.let(p.default.vErrors,null),r.let(p.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",u._`${n}.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),w(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:i}=e;n.$async?t.if(u._`${p.default.errors} === 0`,(()=>t.return(p.default.data)),(()=>t.throw(u._`new ${o}(${p.default.vErrors})`))):(t.assign(u._`${r}.errors`,p.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof u.Name&&e.assign(u._`${t}.props`,n),r instanceof u.Name&&e.assign(u._`${t}.items`,r)}(e),t.return(u._`${p.default.errors} === 0`))}(e)}))}(e):m(e,(()=>r.topBoolOrEmptySchema(e)))};class E{constructor(e,t,n){if(l.validateKeywordUsage(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=f.schemaRefOrVal(e,this.schema,n,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",C(this.$data,e));else if(this.schemaCode=this.schemaValue,!l.validSchemaType(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",p.default.errors))}result(e,t,n){this.gen.if(u.not(e)),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.result(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 && (${u.or(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){h.reportError(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');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,n=u.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:o,def:i}=this;n.if(u.or(u._`${r} === undefined`,t)),e!==u.nil&&n.assign(e,!0),(o.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:o}=this;return u.or(function(){if(n.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return u._`${a.checkDataTypes(e,t,o.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return u._`!${n}(${t})`}return u.nil}())}subschema(e,t){const n=c.getSubschema(this.it,e);c.extendSubschemaData(n,this.it,e),c.extendSubschemaMode(n,e);const o={...this.it,...n,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),y(e))?function(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&x(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=d.resolveUrl(e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=r.const("_errs",p.default.errors);w(e,i),r.var(t,u._`${i} === ${p.default.errors}`)}(e,t):r.boolOrEmptySchema(e,t)}(o,t),o}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function P(e,t,n,r){const o=new E(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?l.funcKeywordCode(o,n):"macro"in n?l.macroKeywordCode(o,n):(n.compile||n.validate)&&l.funcKeywordCode(o,n)}t.KeywordCxt=E;const A=/^\/(?:[^~]|~0|~1)*$/,$=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function C(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,i;if(""===e)return p.default.rootData;if("/"===e[0]){if(!A.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=p.default.rootData}else{const a=$.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(o=a[2],"#"===o){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(i=n[t-s],!o)return i}let a=i;const s=o.split("/");for(const e of s)e&&(i=u._`${i}${u.getProperty(f.unescapeJsonPointer(e))}`,a=u._`${a} && ${i}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=C},6488:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(4475),o=n(5018),i=n(8619),a=n(1885);function s(e){const{gen:t,data:n,it:o}=e;t.if(o.parentData,(()=>t.assign(n,r._`${o.parentData}[${o.parentDataProperty}]`)))}function l(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:r.stringify(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:o,schema:i,parentSchema:a,it:s}=e,c=t.macro.call(s.self,i,a,s),u=l(n,o,c);!1!==s.opts.validateSchema&&s.self.validateSchema(c,!0);const p=n.name("valid");e.subschema({schema:c,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},p),e.pass(p,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:c,keyword:u,schema:p,parentSchema:d,$data:f,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!f&&t.compile?t.compile.call(h.self,p,d,h):t.validate,g=l(c,u,m),y=c.let("valid");function v(n=(t.async?r._`await `:r.nil)){const a=h.opts.passContext?o.default.this:o.default.self,s=!("compile"in t&&!f||!1===t.schema);c.assign(y,r._`${n}${i.callValidateCode(e,g,a,s)}`,t.modifying)}function b(e){var n;c.if(r.not(null!==(n=t.valid)&&void 0!==n?n:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&s(e),b((()=>e.error()));else{const n=t.async?function(){const e=c.let("ruleErrs",null);return c.try((()=>v(r._`await `)),(t=>c.assign(y,!1).if(r._`${t} instanceof ${h.ValidationError}`,(()=>c.assign(e,r._`${t}.errors`)),(()=>c.throw(t))))),e}():function(){const e=r._`${g}.errors`;return c.assign(e,null),v(r.nil),e}();t.modifying&&s(e),b((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(o.default.vErrors,r._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,r._`${o.default.vErrors}.length`),a.extendErrors(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");const a=o.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},4688:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(4475),o=n(6124);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:i,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const i=e.schema[t];return void 0===n?{schema:i,schemaPath:r._`${e.schemaPath}${r.getProperty(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[n],schemaPath:r._`${e.schemaPath}${r.getProperty(t)}${r.getProperty(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${o.escapeFragment(n)}`}}if(void 0!==i){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:i,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:l}=t;u(c.let("data",r._`${t.data}${r.getProperty(n)}`,!0)),e.errorPath=r.str`${a}${o.getErrorPath(n,i,l.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==a&&(u(a instanceof r.Name?a:c.let("data",a,!0)),void 0!==l&&(e.propertyName=l)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:i}){void 0!==r&&(e.compositeRule=r),void 0!==o&&(e.createErrors=o),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n}},3325:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(1321);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var o=n(4475);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const i=n(8451),a=n(4143),s=n(3664),l=n(7805),c=n(4475),u=n(9826),p=n(7927),d=n(6124),f=n(425),h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={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."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function v(e){var t,n,r,o,i,a,s,l,c,u,p,d,f,h,m,g,y,v,b,w,x,k;const _=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,S=!0===O||void 0===O?1:O||0;return{strictSchema:null===(r=null!==(n=e.strictSchema)&&void 0!==n?n:_)||void 0===r||r,strictNumbers:null===(i=null!==(o=e.strictNumbers)&&void 0!==o?o:_)||void 0===i||i,strictTypes:null!==(s=null!==(a=e.strictTypes)&&void 0!==a?a:_)&&void 0!==s?s:"log",strictTuples:null!==(c=null!==(l=e.strictTuples)&&void 0!==l?l:_)&&void 0!==c?c:"log",strictRequired:null!==(p=null!==(u=e.strictRequired)&&void 0!==u?u:_)&&void 0!==p&&p,code:e.code?{...e.code,optimize:S}:{optimize:S},loopRequired:null!==(d=e.loopRequired)&&void 0!==d?d:200,loopEnum:null!==(f=e.loopEnum)&&void 0!==f?f:200,meta:null===(h=e.meta)||void 0===h||h,messages:null===(m=e.messages)||void 0===m||m,inlineRefs:null===(g=e.inlineRefs)||void 0===g||g,schemaId:null!==(y=e.schemaId)&&void 0!==y?y:"$id",addUsedSchema:null===(v=e.addUsedSchema)||void 0===v||v,validateSchema:null===(b=e.validateSchema)||void 0===b||b,validateFormats:null===(w=e.validateFormats)||void 0===w||w,unicodeRegExp:null===(x=e.unicodeRegExp)||void 0===x||x,int32range:null===(k=e.int32range)||void 0===k||k}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...v(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:m,es5:t,lines:n}),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 r=e.validateFormats;e.validateFormats=!1,this.RULES=s.getRules(),w.call(this,g,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&O.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),k.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=f;"id"===n&&(r={...f},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!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 n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await o.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||i.call(this,n)}async function o(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await c.call(this,e);this.refs[e]||await o.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=u.normalizeId(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new l.SchemaEnv({schema:{},schemaId:n});if(t=l.resolveSchema.call(this,r,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 n=e[this.opts.schemaId];return n&&(n=u.normalizeId(n),delete this.schemas[n],delete this.refs[n]),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 n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,n,t),!t)return d.eachItem(n,(e=>$.call(this,e))),this;R.call(this,t);const r={...t,type:p.getJSONTypes(t.type),schemaType:p.getJSONTypes(t.schemaType)};return d.eachItem(n,0===r.type.length?e=>$.call(this,e,r):e=>r.type.forEach((t=>$.call(this,e,r,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 n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.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:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,i=o[e];r&&i&&(o[e]=T(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,o=this.opts.addUsedSchema){let i;const{schemaId:a}=this.opts;if("object"==typeof e)i=e[a];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 s=this._cache.get(e);if(void 0!==s)return s;const c=u.getSchemaRefs.call(this,e);return n=u.normalizeId(i||n),s=new l.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:c}),this._cache.set(s.schema,s),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_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):l.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{l.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,n,r="error"){for(const o in e){const i=o;i in t&&this.logger[r](`${n}: option ${o}. ${e[i]}`)}}function x(e){return e=u.normalizeId(e),this.schemas[e]||this.refs[e]}function k(){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 _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function O(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 n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function S(){const e={...this.opts};for(const t of h)delete e[t];return e}t.default=b,b.ValidationError=i.default,b.MissingRefError=a.default;const E={log(){},warn(){},error(){}},P=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,t){const{RULES:n}=this;if(d.eachItem(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!P.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 $(e,t,n){var r;const o=null==t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=o?i.post:i.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:p.getJSONTypes(t.type),schemaType:p.getJSONTypes(t.schemaType)}};t.before?C.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function C(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,j]}}},412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},5872:function(e,t){"use strict";function n(e){const t=e.length;let n,r=0,o=0;for(;o=55296&&n<=56319&&or.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):o.checkStrictMode(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:i,data:a,keyword:s,it:l}=e;l.items=!0;const c=n.const("len",r._`${a}.length`);if(!1===i)e.setParams({len:t.length}),e.pass(r._`${c} <= ${t.length}`);else if("object"==typeof i&&!o.alwaysValidSchema(l,i)){const i=n.var("valid",r._`${c} <= ${t.length}`);n.if(r.not(i),(()=>function(i){n.forRange("i",t.length,c,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:o.Type.Num},i),l.allErrors||n.if(r.not(i),(()=>n.break()))}))}(i))),e.ok(i)}}t.validateAdditionalItems=a,t.default=i},1422:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8619),o=n(4475),i=n(5018),a=n(6124),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>o._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,parentSchema:n,data:s,errsCount:l,it:c}=e,{schema:u=c.opts.defaultAdditionalProperties}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:p,opts:d}=c;if(c.props=!0,"all"!==d.removeAdditional&&a.alwaysValidSchema(c,u))return;const f=r.allSchemaProperties(n.properties),h=r.allSchemaProperties(n.patternProperties);function m(e){t.code(o._`delete ${s}[${e}]`)}function g(n){if("all"===d.removeAdditional||d.removeAdditional&&!1===u)m(n);else{if(!1===u)return e.setParams({additionalProperty:n}),e.error(),void(p||t.break());if("object"==typeof u&&!a.alwaysValidSchema(c,u)){const r=t.name("valid");"failing"===d.removeAdditional?(y(n,r,!1),t.if(o.not(r),(()=>{e.reset(),m(n)}))):(y(n,r),p||t.if(o.not(r),(()=>t.break())))}}}function y(t,n,r){const o={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,n)}t.forIn("key",s,(i=>{f.length||h.length?t.if(function(i){let s;if(f.length>8){const e=a.schemaRefOrVal(c,n.properties,"properties");s=r.isOwnProperty(t,e,i)}else s=f.length?o.or(...f.map((e=>o._`${i} === ${e}`))):o.nil;return h.length&&(s=o.or(s,...h.map((t=>o._`${r.usePattern(e,t)}.test(${i})`)))),o.not(s)}(i),(()=>g(i))):g(i)})),e.ok(o._`${l} === ${i.default.errors}`)}};t.default=s},5716:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6124),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=t.name("valid");n.forEach(((t,n)=>{if(r.alwaysValidSchema(o,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},i);e.ok(i),e.mergeEvaluated(a)}))}};t.default=o},1668:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(8619).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},9564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:i,data:a,it:s}=e;let l,c;const{minContains:u,maxContains:p}=i;s.opts.next?(l=void 0===u?1:u,c=p):l=1;const d=t.const("len",r._`${a}.length`);if(e.setParams({min:l,max:c}),void 0===c&&0===l)return void o.checkStrictMode(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==c&&l>c)return o.checkStrictMode(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if(o.alwaysValidSchema(s,n)){let t=r._`${d} >= ${l}`;return void 0!==c&&(t=r._`${t} && ${d} <= ${c}`),void e.pass(t)}s.items=!0;const f=t.name("valid");if(void 0===c&&1===l)h(f,(()=>t.if(f,(()=>t.break()))));else{t.let(f,!1);const e=t.name("_valid"),n=t.let("count",0);h(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===c?t.if(r._`${e} >= ${l}`,(()=>t.assign(f,!0).break())):(t.if(r._`${e} > ${c}`,(()=>t.assign(f,!1).break())),1===l?t.assign(f,!0):t.if(r._`${e} >= ${l}`,(()=>t.assign(f,!0))))}(n)))))}function h(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:o.Type.Num,compositeRule:!0},n),r()}))}e.result(f,(()=>e.reset()))}};t.default=i},1117:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(4475),o=n(6124),i=n(8619);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const o=1===t?"property":"properties";return r.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:o}})=>r._`{property: ${e},
+ missingProperty: ${o},
+ depsCount: ${t},
+ deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);s(e,t),l(e,n)}};function s(e,t=e.schema){const{gen:n,data:o,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const l in t){const c=t[l];if(0===c.length)continue;const u=i.propertyInData(n,o,l,a.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),a.allErrors?n.if(u,(()=>{for(const t of c)i.checkReportMissingProp(e,t)})):(n.if(r._`${u} && (${i.checkMissingProp(e,c,s)})`),i.reportMissingProp(e,s),n.else())}}function l(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,l=n.name("valid");for(const c in t)o.alwaysValidSchema(s,t[c])||(n.if(i.propertyInData(n,r,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>n.var(l,!0))),e.ok(l))}t.validatePropertyDeps=s,t.validateSchemaDeps=l,t.default=a},5184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:i}=e;void 0===n.then&&void 0===n.else&&o.checkStrictMode(i,'"if" without "then" and "else" is ignored');const s=a(i,"then"),l=a(i,"else");if(!s&&!l)return;const c=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(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,p("then",n),p("else",n))}else s?t.if(u,p("then")):t.if(r.not(u),p("else"));function p(n,o){return()=>{const i=e.subschema({keyword:n},u);t.assign(c,u),e.mergeValidEvaluated(i,c),o?t.assign(o,r._`${n}`):e.setParams({ifClause:n})}}e.pass(c,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!o.alwaysValidSchema(e,n)}t.default=i},9616:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3074),o=n(6988),i=n(6348),a=n(9822),s=n(9564),l=n(1117),c=n(4002),u=n(1422),p=n(9690),d=n(9883),f=n(8435),h=n(1668),m=n(9684),g=n(5716),y=n(5184),v=n(5642);t.default=function(e=!1){const t=[f.default,h.default,m.default,g.default,y.default,v.default,c.default,u.default,l.default,p.default,d.default];return e?t.push(o.default,a.default):t.push(r.default,i.default),t.push(s.default),t}},6348:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(4475),o=n(6124),i=n(8619),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,o.alwaysValidSchema(n,t)||e.ok(i.validateArray(e))}};function s(e,t,n=e.schema){const{gen:i,parentSchema:a,data:s,keyword:l,it:c}=e;!function(e){const{opts:r,errSchemaPath:i}=c,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;o.checkStrictMode(c,e,r.strictTuples)}}(a),c.opts.unevaluated&&n.length&&!0!==c.items&&(c.items=o.mergeEvaluated.items(i,n.length,c.items));const u=i.name("valid"),p=i.const("len",r._`${s}.length`);n.forEach(((t,n)=>{o.alwaysValidSchema(c,t)||(i.if(r._`${p} > ${n}`,(()=>e.subschema({keyword:l,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=s,t.default=a},9822:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i=n(8619),a=n(3074),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,o.alwaysValidSchema(r,t)||(s?a.validateAdditionalItems(e,s):e.ok(i.validateArray(e)))}};t.default=s},8435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6124),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if(r.alwaysValidSchema(o,n))return void e.fail();const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.result(i,(()=>e.error()),(()=>e.reset()))},error:{message:"must NOT be valid"}};t.default=o},9684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:i,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&i.discriminator)return;const s=n,l=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block((function(){s.forEach(((n,i)=>{let s;o.alwaysValidSchema(a,n)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},u),i>0&&t.if(r._`${u} && ${l}`).assign(l,!1).assign(c,r._`[${c}, ${i}]`).else(),t.if(u,(()=>{t.assign(l,!0),t.assign(c,i),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(l,(()=>e.reset()),(()=>e.error(!0)))}};t.default=i},9883:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8619),o=n(4475),i=n(6124),a=n(6124),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:l,it:c}=e,{opts:u}=c,p=r.allSchemaProperties(n),d=p.filter((e=>i.alwaysValidSchema(c,n[e])));if(0===p.length||d.length===p.length&&(!c.opts.unevaluated||!0===c.props))return;const f=u.strictSchema&&!u.allowMatchingProperties&&l.properties,h=t.name("valid");!0===c.props||c.props instanceof o.Name||(c.props=a.evaluatedPropsToName(t,c.props));const{props:m}=c;function g(e){for(const t in f)new RegExp(e).test(t)&&i.checkStrictMode(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(n){t.forIn("key",s,(i=>{t.if(o._`${r.usePattern(e,n)}.test(${i})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:i,dataPropType:a.Type.Str},h),c.opts.unevaluated&&!0!==m?t.assign(o._`${m}[${i}]`,!0):r||c.allErrors||t.if(o.not(h),(()=>t.break()))}))}))}!function(){for(const e of p)f&&g(e),c.allErrors?y(e):(t.var(h,!0),y(e),t.if(h))}()}};t.default=s},6988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6348),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>r.validateTuple(e,"items")};t.default=o},9690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1321),o=n(8619),i=n(6124),a=n(1422),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:l,it:c}=e;("all"===c.opts.removeAdditional&&void 0===s.additionalProperties||!1===c.opts.defaultAdditionalProperties)&&a.default.code(new r.KeywordCxt(c,a.default,"additionalProperties"));const u=o.allSchemaProperties(n);for(const e of u)c.definedProperties.add(e);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=i.mergeEvaluated.props(t,i.toHash(u),c.props));const p=u.filter((e=>!i.alwaysValidSchema(c,n[e])));if(0===p.length)return;const d=t.name("valid");for(const n of p)f(n)?h(n):(t.if(o.propertyInData(t,l,n,c.opts.ownProperties)),h(n),c.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function f(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==n[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=s},4002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:i,it:a}=e;if(o.alwaysValidSchema(a,n))return;const s=t.name("valid");t.forIn("key",i,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if(r.not(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=i},5642:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6124),o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&r.checkStrictMode(n,`"${e}" without "if" is ignored`)}};t.default=o},8619:function(e,t,n){"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 r=n(4475),o=n(6124),i=n(5018);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function s(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function l(e,t,n,o){const i=r._`${t}${r.getProperty(n)} === undefined`;return o?r.or(i,r.not(s(e,t,n))):i}function c(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:o,it:i}=e;n.if(l(n,o,t,i.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},o,i){return r.or(...o.map((o=>r.and(l(e,t,o,n.ownProperties),r._`${i} = ${o}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=s,t.propertyInData=function(e,t,n,o){const i=r._`${t}${r.getProperty(n)} !== undefined`;return o?r._`${i} && ${s(e,t,n)}`:i},t.noPropertyInData=l,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter((n=>!o.alwaysValidSchema(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:o,schemaPath:a,errorPath:s},it:l},c,u,p){const d=p?r._`${e}, ${t}, ${o}${a}`:t,f=[[i.default.instancePath,r.strConcat(i.default.instancePath,s)],[i.default.parentData,l.parentData],[i.default.parentDataProperty,l.parentDataProperty],[i.default.rootData,i.default.rootData]];l.opts.dynamicRef&&f.push([i.default.dynamicAnchors,i.default.dynamicAnchors]);const h=r._`${d}, ${n.object(...f)}`;return u!==r.nil?r._`${c}.call(${u}, ${h})`:r._`${c}(${h})`},t.usePattern=function({gen:e,it:{opts:t}},n){const o=t.unicodeRegExp?"u":"";return e.scopeValue("pattern",{key:n,ref:new RegExp(n,o),code:r._`new RegExp(${n}, ${o})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:i,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l((()=>t.assign(e,!1))),e}return t.var(s,!0),l((()=>t.break())),s;function l(a){const l=t.const("len",r._`${n}.length`);t.forRange("i",0,l,(n=>{e.subschema({keyword:i,dataProp:n,dataPropType:o.Type.Num},s),t.if(r.not(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:i,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>o.alwaysValidSchema(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block((()=>n.forEach(((n,o)=>{const a=e.subschema({keyword:i,schemaProp:o,compositeRule:!0},l);t.assign(s,r._`${s} || ${l}`),e.mergeValidEvaluated(a,l)||t.if(r.not(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},5060:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},8223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5060),o=n(4028),i=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,o.default];t.default=i},4028:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(4143),o=n(8619),i=n(4475),a=n(5018),s=n(7805),l=n(6124),c={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:o}=e,{baseId:a,schemaEnv:l,validateName:c,opts:d,self:f}=o,{root:h}=l;if(("#"===n||"#/"===n)&&a===h.baseId)return function(){if(l===h)return p(e,c,l,l.$async);const n=t.scopeValue("root",{ref:h});return p(e,i._`${n}.validate`,h,h.$async)}();const m=s.resolveRef.call(f,h,a,n);if(void 0===m)throw new r.default(a,n);return m instanceof s.SchemaEnv?function(t){const n=u(e,t);p(e,n,t,t.$async)}(m):function(r){const o=t.scopeValue("schema",!0===d.code.source?{ref:r,code:i.stringify(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:i.nil,topSchemaRef:o,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(m)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):i._`${n.scopeValue("wrapper",{ref:t})}.validate`}function p(e,t,n,r){const{gen:s,it:c}=e,{allErrors:u,schemaEnv:p,opts:d}=c,f=d.passContext?a.default.this:i.nil;function h(e){const t=i._`${e}.errors`;s.assign(a.default.vErrors,i._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,i._`${a.default.vErrors}.length`)}function m(e){var t;if(!c.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==c.props)if(r&&!r.dynamicProps)void 0!==r.props&&(c.props=l.mergeEvaluated.props(s,r.props,c.props));else{const t=s.var("props",i._`${e}.evaluated.props`);c.props=l.mergeEvaluated.props(s,t,c.props,i.Name)}if(!0!==c.items)if(r&&!r.dynamicItems)void 0!==r.items&&(c.items=l.mergeEvaluated.items(s,r.items,c.items));else{const t=s.var("items",i._`${e}.evaluated.items`);c.items=l.mergeEvaluated.items(s,t,c.items,i.Name)}}r?function(){if(!p.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(i._`await ${o.callValidateCode(e,t,f)}`),m(t),u||s.assign(n,!0)}),(e=>{s.if(i._`!(${e} instanceof ${c.ValidationError})`,(()=>s.throw(e))),h(e),u||s.assign(n,!1)})),e.ok(n)}():function(){const n=s.name("visitedNodes");s.code(i._`const ${n} = visitedNodesForRef.get(${t}) || new Set()`),s.if(i._`!${n}.has(${e.data})`,(()=>{s.code(i._`visitedNodesForRef.set(${t}, ${n})`),s.code(i._`const dataNode = ${e.data}`),s.code(i._`${n}.add(dataNode)`);const r=e.result(o.callValidateCode(e,t,f),(()=>m(t)),(()=>h(t)));return s.code(i._`${n}.delete(dataNode)`),r}))}()}t.getValidate=u,t.callRef=p,t.default=c},5522:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6545),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===o.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:i,parentSchema:a,it:s}=e,{oneOf:l}=a;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const c=i.propertyName;if("string"!=typeof c)throw new Error("discriminator: requires propertyName");if(!l)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),p=t.const("tag",r._`${n}${r.getProperty(c)}`);function d(n){const o=t.name("valid"),i=e.subschema({keyword:"oneOf",schemaProp:n},o);return e.mergeEvaluated(i,r.Name),o}function f(e){return e.hasOwnProperty("$ref")}t.if(r._`typeof ${p} == "string"`,(()=>function(){const n=function(){var e;const t={},n=o(a);let r=!0;for(let t=0;te.error(!1,{discrError:o.DiscrError.Tag,tag:p,tagName:c}))),e.ok(u)}};t.default=i},6545:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},6479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8223),o=n(3799),i=n(9616),a=n(3815),s=n(4826),l=[r.default,o.default,i.default(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},157:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:o,$data:i,schema:a,schemaCode:s,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:p,self:d}=l;c.validateFormats&&(i?function(){const i=n.scopeValue("formats",{ref:d.formats,code:c.code.formats}),a=n.const("fDef",r._`${i}[${s}]`),l=n.let("fType"),u=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(l,r._`${a}.type || "string"`).assign(u,r._`${a}.validate`)),(()=>n.assign(l,r._`"string"`).assign(u,a))),e.fail$data(r.or(!1===c.strictSchema?r.nil:r._`${s} && !${u}`,function(){const e=p.$async?r._`(${a}.async ? await ${u}(${o}) : ${u}(${o}))`:r._`${u}(${o})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${o}))`;return r._`${u} && ${u} !== true && ${l} === ${t} && !${n}`}()))}():function(){const i=d.formats[a];if(!i)return void function(){if(!1!==c.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}d.logger.warn(e())}();if(!0===i)return;const[s,l,f]=function(e){const t=e instanceof RegExp?r.regexpCode(e):c.code.formats?r._`${c.code.formats}${r.getProperty(a)}`:void 0,o=n.scopeValue("formats",{key:a,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,o]:[e.type||"string",e.validate,r._`${o}.validate`]}(i);s===t&&e.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!p.$async)throw new Error("async format in sync schema");return r._`await ${f}(${o})`}return"function"==typeof l?r._`${f}(${o})`:r._`${f}.test(${o})`}())}())}};t.default=o},3815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(157).default];t.default=r},4826:function(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"]},7535:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i=n(412),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(r._`!${o.useFunc(t,i.default)}(${n}, ${s})`):e.fail(r._`${l} !== ${n}`)}};t.default=a},4147:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i=n(412),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:l,it:c}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=c.opts.loopEnum,p=o.useFunc(t,i.default);let d;if(u||a)d=t.let("valid"),e.block$data(d,(function(){t.assign(d,!1),t.forOf("v",l,(e=>t.if(r._`${p}(${n}, ${e})`,(()=>t.assign(d,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);d=r.or(...s.map(((t,o)=>function(e,t){const o=s[t];return"object"==typeof o&&null!==o?r._`${p}(${n}, ${e}[${t}])`:r._`${n} === ${o}`}(e,o))))}e.pass(d)}};t.default=a},3799:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9640),o=n(7692),i=n(3765),a=n(8582),s=n(6711),l=n(7835),c=n(8950),u=n(7326),p=n(7535),d=n(4147),f=[r.default,o.default,i.default,a.default,s.default,l.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,d.default];t.default=f},8950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o}=e,i="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${i} ${o}`)}};t.default=o},3765:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=n(6124),i=n(5872),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,l="maxLength"===t?r.operators.GT:r.operators.LT,c=!1===s.opts.unicode?r._`${n}.length`:r._`${o.useFunc(e.gen,i.default)}(${n})`;e.fail$data(r._`${c} ${l} ${a}`)}};t.default=a},9640:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o=r.operators,i={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${i[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(i),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data(r._`${n} ${i[t].fail} ${o} || isNaN(${n})`)}};t.default=s},6711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o}=e,i="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${i} ${o}`)}};t.default=o},7692:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4475),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:o,it:i}=e,a=i.opts.multipleOfPrecision,s=t.let("res"),l=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${o} === 0 || (${s} = ${n}/${o}, ${l}))`)}};t.default=o},8582:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8619),o=n(4475),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:i,schemaCode:a,it:s}=e,l=s.opts.unicodeRegExp?"u":"",c=n?o._`(new RegExp(${a}, ${l}))`:r.usePattern(e,i);e.fail$data(o._`!${c}.test(${t})`)}};t.default=i},7835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8619),o=n(4475),i=n(6124),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>o.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>o._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:l,it:c}=e,{opts:u}=c;if(!l&&0===n.length)return;const p=n.length>=u.loopRequired;if(c.allErrors?function(){if(p||l)e.block$data(o.nil,d);else for(const t of n)r.checkReportMissingProp(e,t)}():function(){const i=t.let("missing");if(p||l){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,i){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(i,r.propertyInData(t,s,n,u.ownProperties)),t.if(o.not(i),(()=>{e.error(),t.break()}))}),o.nil)}(i,n))),e.ok(n)}else t.if(r.checkMissingProp(e,n,i)),r.reportMissingProp(e,i),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${c.schemaEnv.baseId+c.errSchemaPath}" (strictRequired)`;i.checkStrictMode(c,t,c.opts.strictRequired)}}function d(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if(r.noPropertyInData(t,s,n,u.ownProperties),(()=>e.error()))}))}}};t.default=a},7326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7927),o=n(4475),i=n(6124),a=n(412),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>o._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:l,parentSchema:c,schemaCode:u,it:p}=e;if(!s&&!l)return;const d=t.let("valid"),f=c.items?r.getSchemaTypes(c.items):[];function h(i,a){const s=t.name("item"),l=r.checkDataTypes(f,s,p.opts.strictNumbers,r.DataType.Wrong),c=t.const("indices",o._`{}`);t.for(o._`;${i}--;`,(()=>{t.let(s,o._`${n}[${i}]`),t.if(l,o._`continue`),f.length>1&&t.if(o._`typeof ${s} == "string"`,o._`${s} += "_"`),t.if(o._`typeof ${c}[${s}] == "number"`,(()=>{t.assign(a,o._`${c}[${s}]`),e.error(),t.assign(d,!1).break()})).code(o._`${c}[${s}] = ${i}`)}))}function m(r,s){const l=i.useFunc(t,a.default),c=t.name("outer");t.label(c).for(o._`;${r}--;`,(()=>t.for(o._`${s} = ${r}; ${s}--;`,(()=>t.if(o._`${l}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(d,!1).break(c)}))))))}e.block$data(d,(function(){const r=t.let("i",o._`${n}.length`),i=t.let("j");e.setParams({i:r,j:i}),t.assign(d,!0),t.if(o._`${r} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?h:m)(r,i)))}),o._`${u} === false`),e.ok(d)}};t.default=s},4029:function(e){"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,o,i,a,s,l,c,u,p){if(i&&"object"==typeof i&&!Array.isArray(i)){for(var d in r(i,a,s,l,c,u,p),i){var f=i[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var h=0;hn.addProblemToIgnore(e))),fileDependencies:o.getFiles(),rootType:S.DefinitionRoot,refTypes:A.refTypes,visitorsData:A.visitorsData}}))}function k(e,t){switch(t){case d.OasMajorVersion.Version3:switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case d.OasMajorVersion.Version2:switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}}}function _(e,t,n,r,a,s){let l;const c={ref:{leave(o,l,c){if(!c.location||void 0===c.node)return void m.reportUnresolvedRef(c,l.report,l.location);if(c.location.source===r.source&&c.location.source===l.location.source&&"scalar"!==l.type.name&&!t)return;if(n&&y.isRedoclyRegistryURL(o.$ref))return;if(s&&f.isAbsoluteUrl(o.$ref))return;const d=k(l.type.name,e);d?t?(p(d,c,l),u(o,c,l)):(o.$ref=p(d,c,l),function(e,t,n){const o=i.makeRefId(n.location.source.absoluteRef,e.$ref);a.set(o,{document:r,isRemote:!1,node:t.node,nodePointer:e.$ref,resolved:!0})}(o,c,l)):u(o,c,l)}},DefinitionRoot:{enter(t){e===d.OasMajorVersion.Version3?l=t.components=t.components||{}:e===d.OasMajorVersion.Version2&&(l=t)}}};function u(e,t,n){g.isPlainObject(t.node)?(delete e.$ref,Object.assign(e,t.node)):n.parent[n.key]=t.node}function p(t,n,r){l[t]=l[t]||{};const o=function(e,t,n){const[r,o]=[e.location.source.absoluteRef,e.location.pointer],i=l[t];let a="";const s=o.slice(2).split("/").filter(Boolean);for(;s.length>0;)if(a=s.pop()+(a?`-${a}`:""),!i||!i[a]||h(i[a],e,n))return a;if(a=f.refBaseName(r)+(a?`_${a}`:""),!i[a]||h(i[a],e,n))return a;const c=a;let u=2;for(;i[a]&&!h(i[a],e,n);)a=`${c}-${u}`,u++;return i[a]||n.report({message:`Two schemas are referenced with the same name but different content. Renamed ${c} to ${a}.`,location:n.location,forceSeverity:"warn"}),a}(n,t,r);return l[t][o]=n.node,e===d.OasMajorVersion.Version3?`#/components/${t}/${o}`:`#/${t}/${o}`}function h(e,t,n){var r;return!(!f.isRef(e)||(null===(r=n.resolve(e).location)||void 0===r?void 0:r.absolutePointer)!==t.location.absolutePointer)||o(e,t.node)}return e===d.OasMajorVersion.Version3&&(c.DiscriminatorMapping={leave(n,r){for(const o of Object.keys(n)){const i=n[o],a=r.resolve({$ref:i});if(!a.location||void 0===a.node)return void m.reportUnresolvedRef(a,r.report,r.location.child(o));const s=k("Schema",e);t?p(s,a,r):n[o]=p(s,a,r)}}}),c}!function(e){e.Version2="oas2",e.Version3_0="oas3_0",e.Version3_1="oas3_1"}(w=t.OasVersion||(t.OasVersion={})),t.bundle=function(e){return r(this,void 0,void 0,(function*(){const{ref:t,doc:n,externalRefResolver:r=new i.BaseResolver(e.config.resolve),base:o=null}=e;if(!t&&!n)throw new Error("Document or reference is required.\n");const a=void 0!==n?n:yield r.resolveDocument(o,t,!0);if(a instanceof Error)throw a;return x(Object.assign(Object.assign({document:a},e),{config:e.config.lint,externalRefResolver:r}))}))},t.bundleDocument=x,t.mapTypeToComponent=k},6877:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rules:{"info-description":"error","info-contact":"error","info-license":"error","info-license-url":"error","tag-description":"error","tags-alphabetical":"error","parameter-description":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-path-trailing-slash":"error","path-segment-plural":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error",assertions:"error","operation-operationId":"error","operation-summary":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-security-defined":"error","operation-singular-tag":"error","no-unresolved-refs":"error","no-enum-type-mismatch":"error","boolean-parameter-prefixes":"error","paths-kebab-case":"error","no-http-verbs-in-paths":"error","path-excludes-patterns":{severity:"error",patterns:[]},"request-mime-type":"error",spec:"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","scalar-property-missing-example":"error"},oas3_0Rules:{"no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-servers-empty-enum":"error"},oas3_1Rules:{"no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-servers-empty-enum":"error"}}},6242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPlugin=t.builtInConfigs=void 0;const r=n(8057),o=n(6877),i=n(9016),a=n(226),s=n(7523),l=n(226),c=n(7523),u=n(1753),p=n(7060);t.builtInConfigs={recommended:r.default,minimal:i.default,all:o.default,"redocly-registry":{decorators:{"registry-dependencies":"on"}}},t.defaultPlugin={id:"",rules:{oas3:a.rules,oas2:s.rules},preprocessors:{oas3:l.preprocessors,oas2:c.preprocessors},decorators:{oas3:u.decorators,oas2:p.decorators},configs:t.builtInConfigs}},7040:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(p.isString(e)&&s.isAbsoluteUrl(e))throw new Error(a.red("We don't support remote plugins yet."));const o=p.isString(e)?n(i.resolve(i.dirname(t),e)):e,l=o.id;if("string"!=typeof l)throw new Error(a.red(`Plugin must define \`id\` property in ${a.blue(e.toString())}.`));if(r.has(l)){const t=r.get(l);throw new Error(a.red(`Plugin "id" must be unique. Plugin ${a.blue(e.toString())} uses id "${a.blue(l)}" already seen in ${a.blue(t)}`))}r.set(l,e.toString());const c=Object.assign(Object.assign({id:l},o.configs?{configs:o.configs}:{}),o.typeExtension?{typeExtension:o.typeExtension}:{});if(o.rules){if(!o.rules.oas3&&!o.rules.oas2)throw new Error(`Plugin rules must have \`oas3\` or \`oas2\` rules "${e}.`);c.rules={},o.rules.oas3&&(c.rules.oas3=u.prefixRules(o.rules.oas3,l)),o.rules.oas2&&(c.rules.oas2=u.prefixRules(o.rules.oas2,l))}if(o.preprocessors){if(!o.preprocessors.oas3&&!o.preprocessors.oas2)throw new Error(`Plugin \`preprocessors\` must have \`oas3\` or \`oas2\` preprocessors "${e}.`);c.preprocessors={},o.preprocessors.oas3&&(c.preprocessors.oas3=u.prefixRules(o.preprocessors.oas3,l)),o.preprocessors.oas2&&(c.preprocessors.oas2=u.prefixRules(o.preprocessors.oas2,l))}if(o.decorators){if(!o.decorators.oas3&&!o.decorators.oas2)throw new Error(`Plugin \`decorators\` must have \`oas3\` or \`oas2\` decorators "${e}.`);c.decorators={},o.decorators.oas3&&(c.decorators.oas3=u.prefixRules(o.decorators.oas3,l)),o.decorators.oas2&&(c.decorators.oas2=u.prefixRules(o.decorators.oas2,l))}return c})).filter(p.notUndefined)}function h({rawConfig:e,configPath:t="",resolver:n}){var o,i;return r(this,void 0,void 0,(function*(){const{apis:r={},lint:a={}}=e;let s={};for(const[e,l]of Object.entries(r||{})){if(null===(i=null===(o=l.lint)||void 0===o?void 0:o.extends)||void 0===i?void 0:i.some(p.isNotString))throw new Error("Error configuration format not detected in extends value must contain strings");const r=v(a,l.lint),c=yield g({lintConfig:r,configPath:t,resolver:n});s[e]=Object.assign(Object.assign({},l),{lint:c})}return s}))}function m({lintConfig:e,configPath:t="",resolver:n=new l.BaseResolver},a=[],d=[]){var h,g,v;return r(this,void 0,void 0,(function*(){if(a.includes(t))throw new Error(`Circular dependency in config file: "${t}"`);const l=u.getUniquePlugins(f([...(null==e?void 0:e.plugins)||[],c.defaultPlugin],t)),b=null===(h=null==e?void 0:e.plugins)||void 0===h?void 0:h.filter(p.isString).map((e=>i.resolve(i.dirname(t),e))),w=s.isAbsoluteUrl(t)?t:t&&i.resolve(t),x=yield Promise.all((null===(g=null==e?void 0:e.extends)||void 0===g?void 0:g.map((e=>r(this,void 0,void 0,(function*(){if(!s.isAbsoluteUrl(e)&&!i.extname(e))return y(e,l);const o=s.isAbsoluteUrl(e)?e:s.isAbsoluteUrl(t)?new URL(e,t).href:i.resolve(i.dirname(t),e),c=yield function(e,t){return r(this,void 0,void 0,(function*(){try{const n=yield t.loadExternalRef(e),r=u.transformConfig(p.parseYaml(n.body));if(!r.lint)throw new Error(`Lint configuration format not detected: "${e}"`);return r.lint}catch(t){throw new Error(`Failed to load "${e}": ${t.message}`)}}))}(o,n);return yield m({lintConfig:c,configPath:o,resolver:n},[...a,w],d)})))))||[]),k=u.mergeExtends([...x,Object.assign(Object.assign({},e),{plugins:l,extends:void 0,extendPaths:[...a,w],pluginPaths:b})]),{plugins:_=[]}=k,O=o(k,["plugins"]);return Object.assign(Object.assign({},O),{extendPaths:null===(v=O.extendPaths)||void 0===v?void 0:v.filter((e=>e&&!s.isAbsoluteUrl(e))),plugins:u.getUniquePlugins(_),recommendedFallback:null==e?void 0:e.recommendedFallback,doNotResolveExamples:null==e?void 0:e.doNotResolveExamples})}))}function g(e,t=[],n=[]){return r(this,void 0,void 0,(function*(){const r=yield m(e,t,n);return Object.assign(Object.assign({},r),{rules:r.rules&&b(r.rules)})}))}function y(e,t){var n;const{pluginId:r,configName:o}=u.parsePresetName(e),i=t.find((e=>e.id===r));if(!i)throw new Error(`Invalid config ${a.red(e)}: plugin ${r} is not included.`);const s=null===(n=i.configs)||void 0===n?void 0:n[o];if(!s)throw new Error(r?`Invalid config ${a.red(e)}: plugin ${r} doesn't export config with name ${o}.`:`Invalid config ${a.red(e)}: there is no such built-in config.`);return s}function v(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{rules:Object.assign(Object.assign({},null==e?void 0:e.rules),null==t?void 0:t.rules),oas2Rules:Object.assign(Object.assign({},null==e?void 0:e.oas2Rules),null==t?void 0:t.oas2Rules),oas3_0Rules:Object.assign(Object.assign({},null==e?void 0:e.oas3_0Rules),null==t?void 0:t.oas3_0Rules),oas3_1Rules:Object.assign(Object.assign({},null==e?void 0:e.oas3_1Rules),null==t?void 0:t.oas3_1Rules),preprocessors:Object.assign(Object.assign({},null==e?void 0:e.preprocessors),null==t?void 0:t.preprocessors),oas2Preprocessors:Object.assign(Object.assign({},null==e?void 0:e.oas2Preprocessors),null==t?void 0:t.oas2Preprocessors),oas3_0Preprocessors:Object.assign(Object.assign({},null==e?void 0:e.oas3_0Preprocessors),null==t?void 0:t.oas3_0Preprocessors),oas3_1Preprocessors:Object.assign(Object.assign({},null==e?void 0:e.oas3_1Preprocessors),null==t?void 0:t.oas3_1Preprocessors),decorators:Object.assign(Object.assign({},null==e?void 0:e.decorators),null==t?void 0:t.decorators),oas2Decorators:Object.assign(Object.assign({},null==e?void 0:e.oas2Decorators),null==t?void 0:t.oas2Decorators),oas3_0Decorators:Object.assign(Object.assign({},null==e?void 0:e.oas3_0Decorators),null==t?void 0:t.oas3_0Decorators),oas3_1Decorators:Object.assign(Object.assign({},null==e?void 0:e.oas3_1Decorators),null==t?void 0:t.oas3_1Decorators),recommendedFallback:!(null==t?void 0:t.extends)&&e.recommendedFallback})}function b(e){if(!e)return e;const t={},n=[];for(const[r,o]of Object.entries(e))if(r.startsWith("assert/")&&"object"==typeof o&&null!==o){const e=o;n.push(Object.assign(Object.assign({},e),{assertionId:r.replace("assert/","")}))}else t[r]=o;return n.length>0&&(t.assertions=n),t}t.resolveConfig=function(e,t){var n,o,i,a,s;return r(this,void 0,void 0,(function*(){if(null===(o=null===(n=e.lint)||void 0===n?void 0:n.extends)||void 0===o?void 0:o.some(p.isNotString))throw new Error("Error configuration format not detected in extends value must contain strings");const r=new l.BaseResolver(u.getResolveConfig(e.resolve)),c=null!==(a=null===(i=null==e?void 0:e.lint)||void 0===i?void 0:i.extends)&&void 0!==a?a:["recommended"],f=!(null===(s=null==e?void 0:e.lint)||void 0===s?void 0:s.extends),m=Object.assign(Object.assign({},null==e?void 0:e.lint),{extends:c,recommendedFallback:f}),y=yield h({rawConfig:Object.assign(Object.assign({},e),{lint:m}),configPath:t,resolver:r}),v=yield g({lintConfig:m,configPath:t,resolver:r});return new d.Config(Object.assign(Object.assign({},e),{apis:y,lint:v}),t)}))},t.resolvePlugins=f,t.resolveApis=h,t.resolveLint=g,t.resolvePreset=y},3777:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Config=t.LintConfig=t.AVAILABLE_REGIONS=t.DOMAINS=t.DEFAULT_REGION=t.IGNORE_FILE=t.env=void 0;const r=n(5101),o=n(6470),i=n(5273),a=n(771),s=n(1510),l=n(2565);t.env="undefined"!=typeof process&&{}||{},t.IGNORE_FILE=".redocly.lint-ignore.yaml",t.DEFAULT_REGION="us",t.DOMAINS=function(){const e={us:"redocly.com",eu:"eu.redocly.com"},n=t.env.REDOCLY_DOMAIN;return(null==n?void 0:n.endsWith(".redocly.host"))&&(e[n.split(".")[0]]=n),"redoc.online"===n&&(e[n]=n),e}(),t.AVAILABLE_REGIONS=Object.keys(t.DOMAINS);class c{constructor(e,n){this.rawConfig=e,this.configFile=n,this.ignore={},this._usedRules=new Set,this._usedVersions=new Set,this.plugins=e.plugins||[],this.doNotResolveExamples=!!e.doNotResolveExamples,this.recommendedFallback=e.recommendedFallback||!1,this.rules={[s.OasVersion.Version2]:Object.assign(Object.assign({},e.rules),e.oas2Rules),[s.OasVersion.Version3_0]:Object.assign(Object.assign({},e.rules),e.oas3_0Rules),[s.OasVersion.Version3_1]:Object.assign(Object.assign({},e.rules),e.oas3_1Rules)},this.preprocessors={[s.OasVersion.Version2]:Object.assign(Object.assign({},e.preprocessors),e.oas2Preprocessors),[s.OasVersion.Version3_0]:Object.assign(Object.assign({},e.preprocessors),e.oas3_0Preprocessors),[s.OasVersion.Version3_1]:Object.assign(Object.assign({},e.preprocessors),e.oas3_1Preprocessors)},this.decorators={[s.OasVersion.Version2]:Object.assign(Object.assign({},e.decorators),e.oas2Decorators),[s.OasVersion.Version3_0]:Object.assign(Object.assign({},e.decorators),e.oas3_0Decorators),[s.OasVersion.Version3_1]:Object.assign(Object.assign({},e.decorators),e.oas3_1Decorators)},this.extendPaths=e.extendPaths||[],this.pluginPaths=e.pluginPaths||[];const a=this.configFile?o.dirname(this.configFile):"undefined"!=typeof process&&process.cwd()||"",l=o.join(a,t.IGNORE_FILE);if(r.hasOwnProperty("existsSync")&&r.existsSync(l)){this.ignore=i.parseYaml(r.readFileSync(l,"utf-8"))||{};for(const e of Object.keys(this.ignore)){this.ignore[o.resolve(o.dirname(l),e)]=this.ignore[e];for(const t of Object.keys(this.ignore[e]))this.ignore[e][t]=new Set(this.ignore[e][t]);delete this.ignore[e]}}}saveIgnore(){const e=this.configFile?o.dirname(this.configFile):process.cwd(),n=o.join(e,t.IGNORE_FILE),s={};for(const t of Object.keys(this.ignore)){const n=s[a.slash(o.relative(e,t))]=this.ignore[t];for(const e of Object.keys(n))n[e]=Array.from(n[e])}r.writeFileSync(n,"# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.\n# See https://redoc.ly/docs/cli/ for more information.\n"+i.stringifyYaml(s))}addIgnore(e){const t=this.ignore,n=e.location[0];if(void 0===n.pointer)return;const r=t[n.source.absoluteRef]=t[n.source.absoluteRef]||{};(r[e.ruleId]=r[e.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(e){const t=e.location[0];if(void 0===t.pointer)return e;const n=(this.ignore[t.source.absoluteRef]||{})[e.ruleId],r=n&&n.has(t.pointer);return r?Object.assign(Object.assign({},e),{ignored:r}):e}extendTypes(e,t){let n=e;for(const e of this.plugins)if(void 0!==e.typeExtension)switch(t){case s.OasVersion.Version3_0:case s.OasVersion.Version3_1:if(!e.typeExtension.oas3)continue;n=e.typeExtension.oas3(n,t);case s.OasVersion.Version2:if(!e.typeExtension.oas2)continue;n=e.typeExtension.oas2(n,t);default:throw new Error("Not implemented")}return n}getRuleSettings(e,t){this._usedRules.add(e),this._usedVersions.add(t);const n=this.rules[t][e]||"off";return"string"==typeof n?{severity:n}:Object.assign({severity:"error"},n)}getPreprocessorSettings(e,t){this._usedRules.add(e),this._usedVersions.add(t);const n=this.preprocessors[t][e]||"off";return"string"==typeof n?{severity:"on"===n?"error":n}:Object.assign({severity:"error"},n)}getDecoratorSettings(e,t){this._usedRules.add(e),this._usedVersions.add(t);const n=this.decorators[t][e]||"off";return"string"==typeof n?{severity:"on"===n?"error":n}:Object.assign({severity:"error"},n)}getUnusedRules(){const e=[],t=[],n=[];for(const r of Array.from(this._usedVersions))e.push(...Object.keys(this.rules[r]).filter((e=>!this._usedRules.has(e)))),t.push(...Object.keys(this.decorators[r]).filter((e=>!this._usedRules.has(e)))),n.push(...Object.keys(this.preprocessors[r]).filter((e=>!this._usedRules.has(e))));return{rules:e,preprocessors:n,decorators:t}}getRulesForOasVersion(e){switch(e){case s.OasMajorVersion.Version3:const e=[];return this.plugins.forEach((t=>{var n;return(null===(n=t.preprocessors)||void 0===n?void 0:n.oas3)&&e.push(t.preprocessors.oas3)})),this.plugins.forEach((t=>{var n;return(null===(n=t.rules)||void 0===n?void 0:n.oas3)&&e.push(t.rules.oas3)})),this.plugins.forEach((t=>{var n;return(null===(n=t.decorators)||void 0===n?void 0:n.oas3)&&e.push(t.decorators.oas3)})),e;case s.OasMajorVersion.Version2:const t=[];return this.plugins.forEach((e=>{var n;return(null===(n=e.preprocessors)||void 0===n?void 0:n.oas2)&&t.push(e.preprocessors.oas2)})),this.plugins.forEach((e=>{var n;return(null===(n=e.rules)||void 0===n?void 0:n.oas2)&&t.push(e.rules.oas2)})),this.plugins.forEach((e=>{var n;return(null===(n=e.decorators)||void 0===n?void 0:n.oas2)&&t.push(e.decorators.oas2)})),t}}skipRules(e){for(const t of e||[])for(const e of Object.values(s.OasVersion))this.rules[e][t]&&(this.rules[e][t]="off")}skipPreprocessors(e){for(const t of e||[])for(const e of Object.values(s.OasVersion))this.preprocessors[e][t]&&(this.preprocessors[e][t]="off")}skipDecorators(e){for(const t of e||[])for(const e of Object.values(s.OasVersion))this.decorators[e][t]&&(this.decorators[e][t]="off")}}t.LintConfig=c,t.Config=class{constructor(e,t){this.rawConfig=e,this.configFile=t,this.apis=e.apis||{},this.lint=new c(e.lint||{},t),this["features.openapi"]=e["features.openapi"]||{},this["features.mockServer"]=e["features.mockServer"]||{},this.resolve=l.getResolveConfig(null==e?void 0:e.resolve),this.region=e.region,this.organization=e.organization}}},8698:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3777),t),o(n(3865),t),o(n(5030),t),o(n(6242),t),o(n(9129),t),o(n(2565),t),o(n(7040),t)},9129:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getConfig=t.findConfig=t.CONFIG_FILE_NAMES=t.loadConfig=void 0;const o=n(5101),i=n(6470),a=n(1094),s=n(771),l=n(3777),c=n(2565),u=n(7040);function p(e){if(!o.hasOwnProperty("existsSync"))return;const n=t.CONFIG_FILE_NAMES.map((t=>e?i.resolve(e,t):t)).filter(o.existsSync);if(n.length>1)throw new Error(`\n Multiple configuration files are not allowed. \n Found the following files: ${n.join(", ")}. \n Please use 'redocly.yaml' instead.\n `);return n[0]}function d(e=p()){return r(this,void 0,void 0,(function*(){if(!e)return{};try{const t=(yield s.loadYaml(e))||{};return c.transformConfig(t)}catch(t){throw new Error(`Error parsing config file at '${e}': ${t.message}`)}}))}t.loadConfig=function(e=p(),t,n){return r(this,void 0,void 0,(function*(){const o=yield d(e);return"function"==typeof n&&(yield n(o)),yield function({rawConfig:e,customExtends:t,configPath:n}){var o;return r(this,void 0,void 0,(function*(){void 0!==t?(e.lint=e.lint||{},e.lint.extends=t):s.isEmptyObject(e);const r=new a.RedoclyClient,i=yield r.getTokens();if(i.length){e.resolve||(e.resolve={}),e.resolve.http||(e.resolve.http={}),e.resolve.http.headers=[...null!==(o=e.resolve.http.headers)&&void 0!==o?o:[]];for(const t of i){const n=l.DOMAINS[t.region];e.resolve.http.headers.push({matches:`https://api.${n}/registry/**`,name:"Authorization",envVariable:void 0,value:t.token},..."us"===t.region?[{matches:"https://api.redoc.ly/registry/**",name:"Authorization",envVariable:void 0,value:t.token}]:[])}}return u.resolveConfig(e,n)}))}({rawConfig:o,customExtends:t,configPath:e})}))},t.CONFIG_FILE_NAMES=["redocly.yaml","redocly.yml",".redocly.yaml",".redocly.yml"],t.findConfig=p,t.getConfig=d},9016:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rules:{"info-description":"warn","info-contact":"off","info-license":"off","info-license-url":"off","tag-description":"warn","tags-alphabetical":"off","parameter-description":"off","no-path-trailing-slash":"warn","no-identical-paths":"warn","no-ambiguous-paths":"warn","path-declaration-must-exist":"warn","path-not-include-query":"warn","path-parameters-defined":"warn","operation-description":"off","operation-2xx-response":"warn","operation-4xx-response":"off",assertions:"warn","operation-operationId":"warn","operation-summary":"warn","operation-operationId-unique":"warn","operation-parameters-unique":"warn","operation-tag-defined":"off","operation-security-defined":"warn","operation-operationId-url-safe":"warn","operation-singular-tag":"off","no-unresolved-refs":"error","no-enum-type-mismatch":"warn","boolean-parameter-prefixes":"off","paths-kebab-case":"off",spec:"error"},oas3_0Rules:{"no-invalid-media-type-examples":{severity:"warn",disallowAdditionalProperties:!0},"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"warn","no-example-value-and-externalValue":"warn","no-unused-components":"warn","no-undefined-server-variable":"warn","no-servers-empty-enum":"error"},oas3_1Rules:{"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"warn","no-example-value-and-externalValue":"warn","no-unused-components":"warn","no-undefined-server-variable":"warn","no-servers-empty-enum":"error"}}},8057:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rules:{"info-description":"warn","info-contact":"off","info-license":"warn","info-license-url":"warn","tag-description":"warn","tags-alphabetical":"off","parameter-description":"off","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"warn","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","operation-description":"off","operation-2xx-response":"warn",assertions:"warn","operation-4xx-response":"warn","operation-operationId":"warn","operation-summary":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-tag-defined":"off","operation-security-defined":"error","operation-singular-tag":"off","no-unresolved-refs":"error","no-enum-type-mismatch":"error","boolean-parameter-prefixes":"off","paths-kebab-case":"off",spec:"error"},oas3_0Rules:{"no-invalid-media-type-examples":{severity:"warn",disallowAdditionalProperties:!0},"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-servers-empty-enum":"error"},oas3_1Rules:{"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-servers-empty-enum":"error"}}},5030:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initRules=void 0;const r=n(771);t.initRules=function(e,t,n,o){return e.flatMap((e=>Object.keys(e).map((r=>{const i=e[r],a="rules"===n?t.getRuleSettings(r,o):"preprocessors"===n?t.getPreprocessorSettings(r,o):t.getDecoratorSettings(r,o);if("off"===a.severity)return;const s=i(a);return Array.isArray(s)?s.map((e=>({severity:a.severity,ruleId:r,visitor:e}))):{severity:a.severity,ruleId:r,visitor:s}})))).flatMap((e=>e)).filter(r.notUndefined)}},3865:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2565:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o-1){const[t,n]=e.split("/");return{pluginId:t,configName:n}}return{pluginId:"",configName:e}},t.transformApiDefinitionsToApis=s,t.prefixRules=function(e,t){if(!t)return e;const n={};for(const r of Object.keys(e))n[`${t}/${r}`]=e[r];return n},t.mergeExtends=function(e){const t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},plugins:[],pluginPaths:[],extendPaths:[]};for(let n of e){if(n.extends)throw new Error(`\`extends\` is not supported in shared configs yet: ${JSON.stringify(n,null,2)}.`);Object.assign(t.rules,n.rules),Object.assign(t.oas2Rules,n.oas2Rules),i.assignExisting(t.oas2Rules,n.rules||{}),Object.assign(t.oas3_0Rules,n.oas3_0Rules),i.assignExisting(t.oas3_0Rules,n.rules||{}),Object.assign(t.oas3_1Rules,n.oas3_1Rules),i.assignExisting(t.oas3_1Rules,n.rules||{}),Object.assign(t.preprocessors,n.preprocessors),Object.assign(t.oas2Preprocessors,n.oas2Preprocessors),i.assignExisting(t.oas2Preprocessors,n.preprocessors||{}),Object.assign(t.oas3_0Preprocessors,n.oas3_0Preprocessors),i.assignExisting(t.oas3_0Preprocessors,n.preprocessors||{}),Object.assign(t.oas3_1Preprocessors,n.oas3_1Preprocessors),i.assignExisting(t.oas3_1Preprocessors,n.preprocessors||{}),Object.assign(t.decorators,n.decorators),Object.assign(t.oas2Decorators,n.oas2Decorators),i.assignExisting(t.oas2Decorators,n.decorators||{}),Object.assign(t.oas3_0Decorators,n.oas3_0Decorators),i.assignExisting(t.oas3_0Decorators,n.decorators||{}),Object.assign(t.oas3_1Decorators,n.oas3_1Decorators),i.assignExisting(t.oas3_1Decorators,n.decorators||{}),t.plugins.push(...n.plugins||[]),t.pluginPaths.push(...n.pluginPaths||[]),t.extendPaths.push(...new Set(n.extendPaths))}return t},t.getMergedConfig=function(e,t){var n,r,o,i,s,l;const c=[...Object.values(e.apis).map((e=>{var t;return null===(t=null==e?void 0:e.lint)||void 0===t?void 0:t.extendPaths})),null===(r=null===(n=e.rawConfig)||void 0===n?void 0:n.lint)||void 0===r?void 0:r.extendPaths].flat().filter(Boolean),u=[...Object.values(e.apis).map((e=>{var t;return null===(t=null==e?void 0:e.lint)||void 0===t?void 0:t.pluginPaths})),null===(i=null===(o=e.rawConfig)||void 0===o?void 0:o.lint)||void 0===i?void 0:i.pluginPaths].flat().filter(Boolean);return t?new a.Config(Object.assign(Object.assign({},e.rawConfig),{lint:Object.assign(Object.assign({},e.apis[t]?e.apis[t].lint:e.rawConfig.lint),{extendPaths:c,pluginPaths:u}),"features.openapi":Object.assign(Object.assign({},e["features.openapi"]),null===(s=e.apis[t])||void 0===s?void 0:s["features.openapi"]),"features.mockServer":Object.assign(Object.assign({},e["features.mockServer"]),null===(l=e.apis[t])||void 0===l?void 0:l["features.mockServer"])}),e.configFile):e},t.transformConfig=function(e){if(e.apis&&e.apiDefinitions)throw new Error("Do not use 'apiDefinitions' field. Use 'apis' instead.\n");if(e["features.openapi"]&&e.referenceDocs)throw new Error("Do not use 'referenceDocs' field. Use 'features.openapi' instead.\n");const t=e,{apiDefinitions:n,referenceDocs:i}=t,a=r(t,["apiDefinitions","referenceDocs"]);return n&&process.stderr.write(`The ${o.yellow("apiDefinitions")} field is deprecated. Use ${o.green("apis")} instead. Read more about this change: https://redocly.com/docs/api-registry/guides/migration-guide-config-file/#changed-properties\n`),i&&process.stderr.write(`The ${o.yellow("referenceDocs")} field is deprecated. Use ${o.green("features.openapi")} instead. Read more about this change: https://redocly.com/docs/api-registry/guides/migration-guide-config-file/#changed-properties\n`),Object.assign({"features.openapi":i,apis:s(n)},a)},t.getResolveConfig=function(e){var t,n;return{http:{headers:null!==(n=null===(t=null==e?void 0:e.http)||void 0===t?void 0:t.headers)&&void 0!==n?n:[],customFetch:void 0}}},t.getUniquePlugins=function(e){const t=new Set,n=[];for(const r of e)t.has(r.id)?r.id&&process.stderr.write(`Duplicate plugin id "${o.yellow(r.id)}".\n`):(n.push(r),t.add(r.id));return n}},1988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkIfMatchByStrategy=t.filter=void 0;const r=n(7468),o=n(771);function i(e){return Array.isArray(e)?e:[e]}t.filter=function(e,t,n){const{parent:i,key:a}=t;let s=!1;if(Array.isArray(e))for(let o=0;oe.includes(t))):"all"===n&&t.every((t=>e.includes(t)))):e===t)}},9244:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIn=void 0;const r=n(1988);t.FilterIn=({property:e,value:t,matchStrategy:n})=>{const o=n||"any",i=n=>(null==n?void 0:n[e])&&!r.checkIfMatchByStrategy(null==n?void 0:n[e],t,o);return{any:{enter:(e,t)=>{r.filter(e,t,i)}}}}},8623:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterOut=void 0;const r=n(1988);t.FilterOut=({property:e,value:t,matchStrategy:n})=>{const o=n||"any",i=n=>r.checkIfMatchByStrategy(null==n?void 0:n[e],t,o);return{any:{enter:(e,t)=>{r.filter(e,t,i)}}}}},4555:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoDescriptionOverride=void 0;const r=n(771);t.InfoDescriptionOverride=({filePath:e})=>({Info:{leave(t,{report:n,location:o}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=r.readFileAsStringSync(e)}catch(e){n({message:`Failed to read markdown override file for "info.description".\n${e.message}`,location:o.child("description")})}}}})},7802:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationDescriptionOverride=void 0;const r=n(771);t.OperationDescriptionOverride=({operationIds:e})=>({Operation:{leave(t,{report:n,location:o}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');const i=t.operationId;if(e[i])try{t.description=r.readFileAsStringSync(e[i])}catch(e){n({message:`Failed to read markdown override file for operation "${i}".\n${e.message}`,location:o.child("operationId").key()})}}}})},2287:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegistryDependencies=void 0;const r=n(1094);t.RegistryDependencies=()=>{let e=new Set;return{DefinitionRoot:{leave(t,n){n.getVisitorData().links=Array.from(e)}},ref(t){if(t.$ref){const n=t.$ref.split("#/")[0];r.isRedoclyRegistryURL(n)&&e.add(n)}}}}},5830:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveXInternal=void 0;const r=n(771),o=n(7468);t.RemoveXInternal=({internalFlagProperty:e})=>{const t=e||"x-internal";return{any:{enter:(e,n)=>{!function(e,n){var i,a,s,l;const{parent:c,key:u}=n;let p=!1;if(Array.isArray(e))for(let r=0;r({Tag:{leave(t,{report:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');if(e[t.name])try{t.description=r.readFileAsStringSync(e[t.name])}catch(e){n({message:`Failed to read markdown override file for tag "${t.name}".\n${e.message}`})}}}})},7060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorators=void 0;const r=n(2287),o=n(7802),i=n(423),a=n(4555),s=n(5830),l=n(9244),c=n(8623);t.decorators={"registry-dependencies":r.RegistryDependencies,"operation-description-override":o.OperationDescriptionOverride,"tag-description-override":i.TagDescriptionOverride,"info-description-override":a.InfoDescriptionOverride,"remove-x-internal":s.RemoveXInternal,"filter-in":l.FilterIn,"filter-out":c.FilterOut}},1753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorators=void 0;const r=n(2287),o=n(7802),i=n(423),a=n(4555),s=n(5830),l=n(9244),c=n(8623);t.decorators={"registry-dependencies":r.RegistryDependencies,"operation-description-override":o.OperationDescriptionOverride,"tag-description-override":i.TagDescriptionOverride,"info-description-override":a.InfoDescriptionOverride,"remove-x-internal":s.RemoveXInternal,"filter-in":l.FilterIn,"filter-out":c.FilterOut}},5273:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyYaml=t.parseYaml=void 0;const r=n(3320),o=r.JSON_SCHEMA.extend({implicit:[r.types.merge],explicit:[r.types.binary,r.types.omap,r.types.pairs,r.types.set]});t.parseYaml=(e,t)=>r.load(e,Object.assign({schema:o},t)),t.stringifyYaml=(e,t)=>r.dump(e,t)},1510:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.openAPIMajor=t.detectOpenAPI=t.OasMajorVersion=t.OasVersion=void 0,function(e){e.Version2="oas2",e.Version3_0="oas3_0",e.Version3_1="oas3_1"}(n=t.OasVersion||(t.OasVersion={})),function(e){e.Version2="oas2",e.Version3="oas3"}(r=t.OasMajorVersion||(t.OasMajorVersion={})),t.detectOpenAPI=function(e){if("object"!=typeof e)throw new Error("Document must be JSON object, got "+typeof e);if(!e.openapi&&!e.swagger)throw new Error("This doesn’t look like an OpenAPI document.\n");if(e.openapi&&"string"!=typeof e.openapi)throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(e.openapi&&e.openapi.startsWith("3.0"))return n.Version3_0;if(e.openapi&&e.openapi.startsWith("3.1"))return n.Version3_1;if(e.swagger&&"2.0"===e.swagger)return n.Version2;throw new Error(`Unsupported OpenAPI Version: ${e.openapi||e.swagger}`)},t.openAPIMajor=function(e){return e===n.Version2?r.Version2:r.Version3}},1094:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isRedoclyRegistryURL=t.RedoclyClient=void 0;const o=n(2116),i=n(6470),a=n(6918),s=n(8836),l=n(1390),c=n(3777),u=n(771),p=".redocly-config.json";t.RedoclyClient=class{constructor(e){this.accessTokens={},this.region=this.loadRegion(e),this.loadTokens(),this.domain=e?c.DOMAINS[e]:c.env.REDOCLY_DOMAIN||c.DOMAINS[c.DEFAULT_REGION],c.env.REDOCLY_DOMAIN=this.domain,this.registryApi=new l.RegistryApi(this.accessTokens,this.region)}loadRegion(e){if(e&&!c.DOMAINS[e])throw new Error(`Invalid argument: region in config file.\nGiven: ${s.green(e)}, choices: "us", "eu".`);return c.env.REDOCLY_DOMAIN?c.AVAILABLE_REGIONS.find((e=>c.DOMAINS[e]===c.env.REDOCLY_DOMAIN))||c.DEFAULT_REGION:e||c.DEFAULT_REGION}getRegion(){return this.region}hasTokens(){return u.isNotEmptyObject(this.accessTokens)}hasToken(){return!!this.accessTokens[this.region]}getAuthorizationHeader(){return r(this,void 0,void 0,(function*(){return this.accessTokens[this.region]}))}setAccessTokens(e){this.accessTokens=e}loadTokens(){const e=i.resolve(a.homedir(),p),t=this.readCredentialsFile(e);u.isNotEmptyObject(t)&&this.setAccessTokens(Object.assign(Object.assign({},t),t.token&&!t[this.region]&&{[this.region]:t.token})),c.env.REDOCLY_AUTHORIZATION&&this.setAccessTokens(Object.assign(Object.assign({},this.accessTokens),{[this.region]:c.env.REDOCLY_AUTHORIZATION}))}getAllTokens(){return Object.entries(this.accessTokens).filter((([e])=>c.AVAILABLE_REGIONS.includes(e))).map((([e,t])=>({region:e,token:t})))}getValidTokens(){return r(this,void 0,void 0,(function*(){const e=this.getAllTokens(),t=yield Promise.allSettled(e.map((({token:e,region:t})=>this.verifyToken(e,t))));return e.filter(((e,n)=>"fulfilled"===t[n].status)).map((({token:e,region:t})=>({token:e,region:t,valid:!0})))}))}getTokens(){return r(this,void 0,void 0,(function*(){return this.hasTokens()?yield this.getValidTokens():[]}))}isAuthorizedWithRedoclyByRegion(){return r(this,void 0,void 0,(function*(){if(!this.hasTokens())return!1;const e=this.accessTokens[this.region];if(!e)return!1;try{return yield this.verifyToken(e,this.region),!0}catch(e){return!1}}))}isAuthorizedWithRedocly(){return r(this,void 0,void 0,(function*(){return this.hasTokens()&&u.isNotEmptyObject(yield this.getValidTokens())}))}readCredentialsFile(e){return o.existsSync(e)?JSON.parse(o.readFileSync(e,"utf-8")):{}}verifyToken(e,t,n=!1){return r(this,void 0,void 0,(function*(){return this.registryApi.authStatus(e,t,n)}))}login(e,t=!1){return r(this,void 0,void 0,(function*(){const n=i.resolve(a.homedir(),p);try{yield this.verifyToken(e,this.region,t)}catch(e){throw new Error("Authorization failed. Please check if you entered a valid API key.")}const r=Object.assign(Object.assign({},this.readCredentialsFile(n)),{[this.region]:e,token:e});this.accessTokens=r,this.registryApi.setAccessTokens(r),o.writeFileSync(n,JSON.stringify(r,null,2))}))}logout(){const e=i.resolve(a.homedir(),p);o.existsSync(e)&&o.unlinkSync(e)}},t.isRedoclyRegistryURL=function(e){const t=c.env.REDOCLY_DOMAIN||c.DOMAINS[c.DEFAULT_REGION],n="redocly.com"===t?"redoc.ly":t;return!(!e.startsWith(`https://api.${t}/registry/`)&&!e.startsWith(`https://api.${n}/registry/`))}},1390:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.RegistryApi=void 0;const o=n(8150),i=n(3777),a=n(771),s=n(3244).i8;t.RegistryApi=class{constructor(e,t){this.accessTokens=e,this.region=t}get accessToken(){return a.isNotEmptyObject(this.accessTokens)&&this.accessTokens[this.region]}getBaseUrl(e=i.DEFAULT_REGION){return`https://api.${i.DOMAINS[e]}/registry`}setAccessTokens(e){return this.accessTokens=e,this}request(e="",t={},n){return r(this,void 0,void 0,(function*(){const r=Object.assign({},t.headers||{},{"x-redocly-cli-version":s});if(!r.hasOwnProperty("authorization"))throw new Error("Unauthorized");const i=yield o.default(`${this.getBaseUrl(n)}${e}`,Object.assign({},t,{headers:r}));if(401===i.status)throw new Error("Unauthorized");if(404===i.status){const e=yield i.json();throw new Error(e.code)}return i}))}authStatus(e,t,n=!1){return r(this,void 0,void 0,(function*(){try{const n=yield this.request("",{headers:{authorization:e}},t);return yield n.json()}catch(e){throw n&&console.log(e),e}}))}prepareFileUpload({organizationId:e,name:t,version:n,filesHash:o,filename:i,isUpsert:a}){return r(this,void 0,void 0,(function*(){const r=yield this.request(`/${e}/${t}/${n}/prepare-file-upload`,{method:"POST",headers:{"content-type":"application/json",authorization:this.accessToken},body:JSON.stringify({filesHash:o,filename:i,isUpsert:a})},this.region);if(r.ok)return r.json();throw new Error("Could not prepare file upload")}))}pushApi({organizationId:e,name:t,version:n,rootFilePath:o,filePaths:i,branch:a,isUpsert:s,isPublic:l,batchId:c,batchSize:u}){return r(this,void 0,void 0,(function*(){if(!(yield this.request(`/${e}/${t}/${n}`,{method:"PUT",headers:{"content-type":"application/json",authorization:this.accessToken},body:JSON.stringify({rootFilePath:o,filePaths:i,branch:a,isUpsert:s,isPublic:l,batchId:c,batchSize:u})},this.region)).ok)throw new Error("Could not push api")}))}}},7468:function(e,t){"use strict";function n(e,t){return""===e&&(e="#/"),"/"===e[e.length-1]?e+t:e+"/"+t}Object.defineProperty(t,"__esModule",{value:!0}),t.isMappingRef=t.isAbsoluteUrl=t.refBaseName=t.pointerBaseName=t.parsePointer=t.parseRef=t.escapePointer=t.unescapePointer=t.Location=t.isRef=t.joinPointer=void 0,t.joinPointer=n,t.isRef=function(e){return e&&"string"==typeof e.$ref};class r{constructor(e,t){this.source=e,this.pointer=t}child(e){return new r(this.source,n(this.pointer,(Array.isArray(e)?e:[e]).map(i).join("/")))}key(){return Object.assign(Object.assign({},this),{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+("#/"===this.pointer?"":this.pointer)}}function o(e){return decodeURIComponent(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function i(e){return"number"==typeof e?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}t.Location=r,t.unescapePointer=o,t.escapePointer=i,t.parseRef=function(e){const[t,n]=e.split("#/");return{uri:t||null,pointer:n?n.split("/").map(o).filter(Boolean):[]}},t.parsePointer=function(e){return e.substr(2).split("/").map(o)},t.pointerBaseName=function(e){const t=e.split("/");return t[t.length-1]},t.refBaseName=function(e){const t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")},t.isAbsoluteUrl=function(e){return e.startsWith("http://")||e.startsWith("https://")},t.isMappingRef=function(e){return e.startsWith("#")||e.startsWith("https://")||e.startsWith("http://")||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1}},4182:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDocument=t.BaseResolver=t.makeDocumentFromString=t.makeRefId=t.YamlParseError=t.ResolveError=t.Source=void 0;const o=n(3197),i=n(6470),a=n(7468),s=n(5220),l=n(771);class c{constructor(e,t,n){this.absoluteRef=e,this.body=t,this.mimeType=n}getAst(e){var t;return void 0===this._ast&&(this._ast=null!==(t=e(this.body,{filename:this.absoluteRef}))&&void 0!==t?t:void 0,this._ast&&0===this._ast.kind&&""===this._ast.value&&1!==this._ast.startPosition&&(this._ast.startPosition=1,this._ast.endPosition=1)),this._ast}getLines(){return void 0===this._lines&&(this._lines=this.body.split(/\r\n|[\n\r]/g)),this._lines}}t.Source=c;class u extends Error{constructor(e){super(e.message),this.originalError=e,Object.setPrototypeOf(this,u.prototype)}}t.ResolveError=u;const p=/\((\d+):(\d+)\)$/;class d extends Error{constructor(e,t){super(e.message.split("\n")[0]),this.originalError=e,this.source=t,Object.setPrototypeOf(this,d.prototype);const[,n,r]=this.message.match(p)||[];this.line=parseInt(n,10),this.col=parseInt(r,10)}}function f(e,t){return e+"::"+t}function h(e,t){return{prev:e,node:t}}t.YamlParseError=d,t.makeRefId=f,t.makeDocumentFromString=function(e,t){const n=new c(t,e);try{return{source:n,parsed:l.parseYaml(e,{filename:t})}}catch(e){throw new d(e,n)}},t.BaseResolver=class{constructor(e={http:{headers:[]}}){this.config=e,this.cache=new Map}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(e,t){return a.isAbsoluteUrl(t)?t:e&&a.isAbsoluteUrl(e)?new URL(t,e).href:i.resolve(e?i.dirname(e):process.cwd(),t)}loadExternalRef(e){return r(this,void 0,void 0,(function*(){try{if(a.isAbsoluteUrl(e)){const{body:t,mimeType:n}=yield l.readFileFromUrl(e,this.config.http);return new c(e,t,n)}return new c(e,yield o.promises.readFile(e,"utf-8"))}catch(e){throw new u(e)}}))}parseDocument(e,t=!1){var n;const r=e.absoluteRef.substr(e.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(r)&&!(null===(n=e.mimeType)||void 0===n?void 0:n.match(/(json|yaml|openapi)/))&&!t)return{source:e,parsed:e.body};try{return{source:e,parsed:l.parseYaml(e.body,{filename:e.absoluteRef})}}catch(t){throw new d(t,e)}}resolveDocument(e,t,n=!1){return r(this,void 0,void 0,(function*(){const r=this.resolveExternalRef(e,t),o=this.cache.get(r);if(o)return o;const i=this.loadExternalRef(r).then((e=>this.parseDocument(e,n)));return this.cache.set(r,i),i}))}};const m={name:"unknown",properties:{}},g={name:"scalar",properties:{}};t.resolveDocument=function(e){return r(this,void 0,void 0,(function*(){const{rootDocument:t,externalRefResolver:n,rootType:o}=e,i=new Map,l=new Set,c=[];let u;!function e(t,o,u,p){function d(e,t,o){return r(this,void 0,void 0,(function*(){if(function(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}(o.prev,t))throw new Error("Self-referencing circular pointer");const{uri:r,pointer:s}=a.parseRef(t.$ref),l=null!==r;let c;try{c=l?yield n.resolveDocument(e.source.absoluteRef,r):e}catch(n){const r={resolved:!1,isRemote:l,document:void 0,error:n},o=f(e.source.absoluteRef,t.$ref);return i.set(o,r),r}let u={resolved:!0,document:c,isRemote:l,node:e.parsed,nodePointer:"#/"},p=c.parsed;const m=s;for(let e of m){if("object"!=typeof p){p=void 0;break}if(void 0!==p[e])p=p[e],u.nodePointer=a.joinPointer(u.nodePointer,a.escapePointer(e));else{if(!a.isRef(p)){p=void 0;break}if(u=yield d(c,p,h(o,p)),c=u.document||c,"object"!=typeof u.node){p=void 0;break}p=u.node[e],u.nodePointer=a.joinPointer(u.nodePointer,a.escapePointer(e))}}u.node=p,u.document=c;const g=f(e.source.absoluteRef,t.$ref);return u.document&&a.isRef(p)&&(u=yield d(u.document,p,h(o,p))),i.set(g,u),Object.assign({},u)}))}!function t(n,r,i){if("object"!=typeof n||null===n)return;const u=`${r.name}::${i}`;if(!l.has(u))if(l.add(u),Array.isArray(n)){const e=r.items;if(r!==m&&void 0===e)return;for(let r=0;r{t.resolved&&e(t.node,t.document,t.nodePointer,r)}));c.push(t)}}}(t,p,o.source.absoluteRef+u)}(t.parsed,t,"#/",o);do{u=yield Promise.all(c)}while(c.length!==u.length);return i}))}},7275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonSchema=t.releaseAjvInstance=void 0;const r=n(5499),o=n(7468);let i=null;t.releaseAjvInstance=function(){i=null},t.validateJsonSchema=function(e,t,n,a,s,l){const c=function(e,t,n,o){const a=function(e,t){return i||(i=new r.default({schemaId:"$id",meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!1,defaultAdditionalProperties:!t,loadSchemaSync(t,n){const r=e({$ref:n},t.split("#")[0]);return!(!r||!r.location)&&Object.assign({$id:r.location.absolutePointer},r.node)},logger:!1})),i}(n,o);return a.getSchema(t.absolutePointer)||a.addSchema(Object.assign({$id:t.absolutePointer},e),t.absolutePointer),a.getSchema(t.absolutePointer)}(t,n,s,l);return c?{valid:!!c(e,{instancePath:a,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}}),errors:(c.errors||[]).map((function(e){let t=e.message,n="enum"===e.keyword?e.params.allowedValues:void 0;n&&(t+=` ${n.map((e=>`"${e}"`)).join(", ")}`),"type"===e.keyword&&(t=`type ${t}`);const r=e.instancePath.substring(a.length+1),i=r.substring(r.lastIndexOf("/")+1);if(i&&(t=`\`${i}\` property ${t}`),"additionalProperties"===e.keyword){const n=e.params.additionalProperty;t=`${t} \`${n}\``,e.instancePath+="/"+o.escapePointer(n)}return Object.assign(Object.assign({},e),{message:t,suggest:n})}))}:{valid:!0,errors:[]}}},9740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asserts=t.runOnValuesSet=t.runOnKeysSet=void 0;const r=n(771),o=n(5738);t.runOnKeysSet=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref"]),t.runOnValuesSet=new Set(["pattern","enum","defined","undefined","nonEmpty","minLength","maxLength","casing","sortOrder","ref"]),t.asserts={pattern:(e,t,n)=>{if(void 0===e)return{isValid:!0};const i=r.isString(e)?[e]:e,a=o.regexFromString(t);for(let t of i)if(!(null==a?void 0:a.test(t)))return{isValid:!1,location:r.isString(e)?n:n.key()};return{isValid:!0}},enum:(e,t,n)=>{if(void 0===e)return{isValid:!0};const o=r.isString(e)?[e]:e;for(let i of o)if(!t.includes(i))return{isValid:!1,location:r.isString(e)?n:n.child(i).key()};return{isValid:!0}},defined:(e,t=!0,n)=>{const r=void 0!==e;return{isValid:t?r:!r,location:n}},required:(e,t,n)=>{for(const r of t)if(!e.includes(r))return{isValid:!1,location:n.key()};return{isValid:!0}},disallowed:(e,t,n)=>{if(void 0===e)return{isValid:!0};const o=r.isString(e)?[e]:e;for(let i of o)if(t.includes(i))return{isValid:!1,location:r.isString(e)?n:n.child(i).key()};return{isValid:!0}},undefined:(e,t=!0,n)=>{const r=void 0===e;return{isValid:t?r:!r,location:n}},nonEmpty:(e,t=!0,n)=>{const r=null==e||""===e;return{isValid:t?!r:r,location:n}},minLength:(e,t,n)=>void 0===e?{isValid:!0}:{isValid:e.length>=t,location:n},maxLength:(e,t,n)=>void 0===e?{isValid:!0}:{isValid:e.length<=t,location:n},casing:(e,t,n)=>{if(void 0===e)return{isValid:!0};const o=r.isString(e)?[e]:e;for(let i of o){let o=!1;switch(t){case"camelCase":o=!!i.match(/^[a-z][a-zA-Z0-9]+$/g);break;case"kebab-case":o=!!i.match(/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g);break;case"snake_case":o=!!i.match(/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g);break;case"PascalCase":o=!!i.match(/^[A-Z][a-zA-Z0-9]+$/g);break;case"MACRO_CASE":o=!!i.match(/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g);break;case"COBOL-CASE":o=!!i.match(/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g);break;case"flatcase":o=!!i.match(/^[a-z][a-z0-9]+$/g)}if(!o)return{isValid:!1,location:r.isString(e)?n:n.child(i).key()}}return{isValid:!0}},sortOrder:(e,t,n)=>void 0===e?{isValid:!0}:{isValid:o.isOrdered(e,t),location:n},mutuallyExclusive:(e,t,n)=>({isValid:o.getIntersectionLength(e,t)<2,location:n.key()}),mutuallyRequired:(e,t,n)=>({isValid:!(o.getIntersectionLength(e,t)>0)||o.getIntersectionLength(e,t)===t.length,location:n.key()}),requireAny:(e,t,n)=>({isValid:o.getIntersectionLength(e,t)>=1,location:n.key()}),ref:(e,t,n,r)=>{if(void 0===r)return{isValid:!0};const i=r.hasOwnProperty("$ref");if("boolean"==typeof t)return{isValid:t?i:!i,location:i?n:n.key()};const a=o.regexFromString(t);return{isValid:i&&(null==a?void 0:a.test(r.$ref)),location:i?n:n.key()}}}},4015:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Assertions=void 0;const r=n(9740),o=n(5738);t.Assertions=e=>{let t=[];const n=Object.values(e).filter((e=>"object"==typeof e&&null!==e));for(const[e,i]of n.entries()){const n=i.assertionId&&`${i.assertionId} assertion`||`assertion #${e+1}`;if(!i.subject)throw new Error(`${n}: 'subject' is required`);const a=Array.isArray(i.subject)?i.subject:[i.subject],s=Object.keys(r.asserts).filter((e=>void 0!==i[e])).map((e=>({assertId:n,name:e,conditions:i[e],message:i.message,severity:i.severity||"error",suggest:i.suggest||[],runsOnKeys:r.runOnKeysSet.has(e),runsOnValues:r.runOnValuesSet.has(e)}))),l=s.find((e=>e.runsOnKeys&&!e.runsOnValues)),c=s.find((e=>e.runsOnValues&&!e.runsOnKeys));if(c&&!i.property)throw new Error(`${c.name} can't be used on all keys. Please provide a single property.`);if(l&&i.property)throw new Error(`${l.name} can't be used on a single property. Please use 'property'.`);for(const e of a){const n=o.buildSubjectVisitor(i.property,s,i.context),r=o.buildVisitorObject(e,i.context,n);t.push(r)}}return t}},5738:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexFromString=t.isOrdered=t.getIntersectionLength=t.buildSubjectVisitor=t.buildVisitorObject=void 0;const r=n(7468),o=n(9740);function i({values:e,rawValues:t,assert:n,location:r,report:i}){const a=o.asserts[n.name](e,n.conditions,r,t);a.isValid||i({message:n.message||`The ${n.assertId} doesn't meet required conditions`,location:a.location||r,forceSeverity:n.severity,suggest:n.suggest,ruleId:n.assertId})}t.buildVisitorObject=function(e,t,n){if(!t)return{[e]:n};let r={};const o=r;for(let n=0;ni?!i.includes(t):a?a.includes(t):void 0}:{},r=r[o.type]}return r[e]=n,o},t.buildSubjectVisitor=function(e,t,n){return(o,{report:a,location:s,rawLocation:l,key:c,type:u,resolve:p,rawNode:d})=>{var f;if(n){const e=n[n.length-1];if(e.type===u.name){const t=e.matchParentKeys,n=e.excludeParentKeys;if(t&&!t.includes(c))return;if(n&&n.includes(c))return}}e&&(e=Array.isArray(e)?e:[e]);for(const n of t){const t="ref"===n.name?l:s;if(e)for(const s of e)i({values:r.isRef(o[s])?null===(f=p(o[s]))||void 0===f?void 0:f.node:o[s],rawValues:d[s],assert:n,location:t.child(s),report:a});else{const e="ref"===n.name?d:Object.keys(o);i({values:Object.keys(o),rawValues:e,assert:n,location:t,report:a})}}}},t.getIntersectionLength=function(e,t){const n=new Set(t);let r=0;for(const t of e)n.has(t)&&r++;return r},t.isOrdered=function(e,t){const n=t.direction||t,r=t.property;for(let t=1;t=i:o<=i))return!1}return!0},t.regexFromString=function(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}},8265:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoContact=void 0;const r=n(780);t.InfoContact=()=>({Info(e,{report:t,location:n}){e.contact||t({message:r.missingRequiredField("Info","contact"),location:n.child("contact").key()})}})},8675:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoDescription=void 0;const r=n(780);t.InfoDescription=()=>({Info(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},9622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoLicense=void 0;const r=n(780);t.InfoLicense=()=>({Info(e,{report:t}){e.license||t({message:r.missingRequiredField("Info","license"),location:{reportOnKey:!0}})}})},476:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoLicenseUrl=void 0;const r=n(780);t.InfoLicenseUrl=()=>({License(e,t){r.validateDefinedAndNonEmpty("url",e,t)}})},3467:function(e,t){"use strict";function n(e,t){const n=e.split("/"),r=t.split("/");if(n.length!==r.length)return!1;let o=0,i=0,a=!0;for(let e=0;e({PathMap(e,{report:t,location:r}){const o=[];for(const i of Object.keys(e)){const e=o.find((e=>n(e,i)));e&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${e}\` and \`${i}\`.`,location:r.child([i]).key()}),o.push(i)}}})},2319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoEnumTypeMismatch=void 0;const r=n(780);t.NoEnumTypeMismatch=()=>({Schema(e,{report:t,location:n}){if(!e.enum||Array.isArray(e.enum)){if(e.enum&&e.type&&!Array.isArray(e.type)){const o=e.enum.filter((t=>!r.matchesJsonSchemaType(t,e.type,e.nullable)));for(const i of o)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${r.oasTypeOf(i)}".`,location:n.child(["enum",e.enum.indexOf(i)])})}if(e.enum&&e.type&&Array.isArray(e.type)){const o={};for(const t of e.enum){o[t]=[];for(const n of e.type)r.matchesJsonSchemaType(t,n,e.nullable)||o[t].push(n);o[t].length!==e.type.length&&delete o[t]}for(const r of Object.keys(o))t({message:`Enum value \`${r}\` must be of one type. Allowed types: \`${e.type}\`.`,location:n.child(["enum",e.enum.indexOf(r)])})}}}})},525:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoHttpVerbsInPaths=void 0;const r=n(771),o=["get","head","post","put","patch","delete","options","trace"];t.NoHttpVerbsInPaths=({splitIntoWords:e})=>({PathItem(t,{key:n,report:i,location:a}){const s=n.toString();if(!s.startsWith("/"))return;const l=s.split("/");for(const t of l){if(!t||r.isPathParameter(t))continue;const n=n=>e?r.splitCamelCaseIntoWords(t).has(n):t.toLocaleLowerCase().includes(n);for(const e of o)n(e)&&i({message:`path \`${s}\` should not contain http verb ${e}`,location:a.key()})}}})},4628:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoIdenticalPaths=void 0,t.NoIdenticalPaths=()=>({PathMap(e,{report:t,location:n}){const r=new Map;for(const o of Object.keys(e)){const e=o.replace(/{.+?}/g,"{VARIABLE}"),i=r.get(e);i?t({message:`The path already exists which differs only by path parameter name(s): \`${i}\` and \`${o}\`.`,location:n.child([o]).key()}):r.set(e,o)}}})},1562:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoInvalidParameterExamples=void 0;const r=n(780);t.NoInvalidParameterExamples=e=>{var t;const n=null===(t=e.disallowAdditionalProperties)||void 0===t||t;return{Parameter:{leave(e,t){if(e.example&&r.validateExample(e.example,e.schema,t.location.child("example"),t,n),e.examples)for(const[n,o]of Object.entries(e.examples))"value"in o&&r.validateExample(o.value,e.schema,t.location.child(["examples",n]),t,!1)}}}}},78:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoInvalidSchemaExamples=void 0;const r=n(780);t.NoInvalidSchemaExamples=e=>{var t;const n=null===(t=e.disallowAdditionalProperties)||void 0===t||t;return{Schema:{leave(e,t){if(e.examples)for(const o of e.examples)r.validateExample(o,e,t.location.child(["examples",e.examples.indexOf(o)]),t,n);e.example&&r.validateExample(e.example,e,t.location.child("example"),t,!1)}}}}},700:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoPathTrailingSlash=void 0,t.NoPathTrailingSlash=()=>({PathItem(e,{report:t,key:n,location:r}){n.endsWith("/")&&"/"!==n&&t({message:`\`${n}\` should not have a trailing slash.`,location:r.key()})}})},5946:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation2xxResponse=void 0,t.Operation2xxResponse=()=>({ResponsesMap(e,{report:t}){Object.keys(e).some((e=>"default"===e||/2[Xx0-9]{2}/.test(e)))||t({message:"Operation must have at least one `2xx` response.",location:{reportOnKey:!0}})}})},5281:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation4xxResponse=void 0,t.Operation4xxResponse=()=>({ResponsesMap(e,{report:t}){Object.keys(e).some((e=>/4[Xx0-9]{2}/.test(e)))||t({message:"Operation must have at least one `4xx` response.",location:{reportOnKey:!0}})}})},3408:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationDescription=void 0;const r=n(780);t.OperationDescription=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},8742:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationIdUnique=void 0,t.OperationIdUnique=()=>{const e=new Set;return{Operation(t,{report:n,location:r}){t.operationId&&(e.has(t.operationId)&&n({message:"Every operation must have a unique `operationId`.",location:r.child([t.operationId])}),e.add(t.operationId))}}}},5064:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationIdUrlSafe=void 0;const n=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/;t.OperationIdUrlSafe=()=>({Operation(e,{report:t,location:r}){e.operationId&&!n.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"])})}})},8786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationOperationId=void 0;const r=n(780);t.OperationOperationId=()=>({DefinitionRoot:{PathItem:{Operation(e,t){r.validateDefinedAndNonEmpty("operationId",e,t)}}}})},4112:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationParametersUnique=void 0,t.OperationParametersUnique=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(t,{report:n,key:r,parentLocations:o}){const i=`${t.in}___${t.name}`;e.has(i)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.\nRepeats of \`in:${t.in}\` + \`name:${t.name}\`.`,location:o.PathItem.child(["parameters",r])}),e.add(`${t.in}___${t.name}`)},Operation:{enter(){t=new Set},Parameter(e,{report:n,key:r,parentLocations:o}){const i=`${e.in}___${e.name}`;t.has(i)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${e.in}\` + \`name:${e.name}\`.`,location:o.Operation.child(["parameters",r])}),t.add(i)}}}}}},7892:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSecurityDefined=void 0,t.OperationSecurityDefined=()=>{let e=new Map;return{DefinitionRoot:{leave(t,{report:n}){for(const[t,r]of e.entries())if(!r.defined)for(const e of r.from)n({message:`There is no \`${t}\` security scheme defined.`,location:e.key()})}},SecurityScheme(t,{key:n}){e.set(n.toString(),{defined:!0,from:[]})},SecurityRequirement(t,{location:n}){for(const r of Object.keys(t)){const t=e.get(r),o=n.child([r]);t?t.from.push(o):e.set(r,{from:[o]})}}}}},8613:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSingularTag=void 0,t.OperationSingularTag=()=>({Operation(e,{report:t,location:n}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:n.child(["tags"]).key()})}})},9578:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSummary=void 0;const r=n(780);t.OperationSummary=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("summary",e,t)}})},5097:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTagDefined=void 0,t.OperationTagDefined=()=>{let e;return{DefinitionRoot(t){var n;e=new Set((null!==(n=t.tags)&&void 0!==n?n:[]).map((e=>e.name)))},Operation(t,{report:n,location:r}){if(t.tags)for(let o=0;o({Parameter(e,{report:t,location:n}){void 0===e.description?t({message:"Parameter object description must be present.",location:{reportOnKey:!0}}):e.description||t({message:"Parameter object description must be non-empty string.",location:n.child(["description"])})}})},7890:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathDeclarationMustExist=void 0,t.PathDeclarationMustExist=()=>({PathItem(e,{report:t,key:n}){-1!==n.indexOf("{}")&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0}})}})},3689:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathExcludesPatterns=void 0,t.PathExcludesPatterns=({patterns:e})=>({PathItem(t,{report:n,key:r,location:o}){if(!e)throw new Error('Parameter "patterns" is not provided for "path-excludes-patterns" rule');const i=r.toString();if(i.startsWith("/")){const t=e.filter((e=>i.match(e)));for(const e of t)n({message:`path \`${i}\` should not match regex pattern: \`${e}\``,location:o.key()})}}})},2332:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathHttpVerbsOrder=void 0;const n=["get","head","post","put","patch","delete","options","trace"];t.PathHttpVerbsOrder=e=>{const t=e&&e.order||n;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(e,{report:n,location:r}){const o=Object.keys(e).filter((e=>t.includes(e)));for(let e=0;e({PathMap:{PathItem(e,{report:t,key:n}){n.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0}})}}})},7421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathParamsDefined=void 0;const n=/\{([a-zA-Z0-9_.-]+)\}+/g;t.PathParamsDefined=()=>{let e,t,r;return{PathItem:{enter(o,{key:i}){t=new Set,r=i,e=new Set(Array.from(i.toString().matchAll(n)).map((e=>e[1])))},Parameter(n,{report:o,location:i}){"path"===n.in&&n.name&&(t.add(n.name),e.has(n.name)||o({message:`Path parameter \`${n.name}\` is not used in the path \`${r}\`.`,location:i.child(["name"])}))},Operation:{leave(n,{report:o,location:i}){for(const n of Array.from(e.keys()))t.has(n)||o({message:`The operation does not define the path parameter \`{${n}}\` expected by path \`${r}\`.`,location:i.child(["parameters"]).key()})},Parameter(n,{report:o,location:i}){"path"===n.in&&n.name&&(t.add(n.name),e.has(n.name)||o({message:`Path parameter \`${n.name}\` is not used in the path \`${r}\`.`,location:i.child(["name"])}))}}}}}},3807:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathSegmentPlural=void 0;const r=n(771);t.PathSegmentPlural=e=>{const{ignoreLastPathSegment:t,exceptions:n}=e;return{PathItem:{leave(e,{report:o,key:i,location:a}){const s=i.toString();if(s.startsWith("/")){const e=s.split("/");e.shift(),t&&e.length>1&&e.pop();for(const t of e)n&&n.includes(t)||!r.isPathParameter(t)&&r.isSingular(t)&&o({message:`path segment \`${t}\` should be plural.`,location:a.key()})}}}}}},9527:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathsKebabCase=void 0,t.PathsKebabCase=()=>({PathItem(e,{report:t,key:n}){n.substr(1).split("/").filter((e=>""!==e)).every((e=>/^{.+}$/.test(e)||/^[a-z0-9-.]+$/.test(e)))||t({message:`\`${n}\` does not use kebab-case.`,location:{reportOnKey:!0}})}})},5839:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseContainsHeader=void 0;const r=n(771);t.ResponseContainsHeader=e=>{const t=e.names||{};return{Operation:{Response:{enter:(e,{report:n,location:o,key:i})=>{var a;const s=t[i]||t[r.getMatchingStatusCodeRange(i)]||t[r.getMatchingStatusCodeRange(i).toLowerCase()]||[];for(const t of s)(null===(a=e.headers)||void 0===a?void 0:a[t])||n({message:`Response object must contain a "${t}" header.`,location:o.child("headers").key()})}}}}}},5669:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScalarPropertyMissingExample=void 0;const r=n(1510),o=["string","integer","number","boolean","null"];t.ScalarPropertyMissingExample=()=>({SchemaProperties(e,{report:t,location:n,oasVersion:i,resolve:a}){for(const l of Object.keys(e)){const c=a(e[l]).node;c&&((s=c).type&&!(s.allOf||s.anyOf||s.oneOf)&&"binary"!==s.format&&(Array.isArray(s.type)?s.type.every((e=>o.includes(e))):o.includes(s.type)))&&void 0===c.example&&void 0===c.examples&&t({message:`Scalar property should have "example"${i===r.OasVersion.Version3_1?' or "examples"':""} defined.`,location:n.child(l).key()})}var s}})},6471:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OasSpec=void 0;const r=n(5220),o=n(780),i=n(7468),a=n(771);t.OasSpec=()=>({any(e,{report:t,type:n,location:s,key:l,resolve:c,ignoreNextVisitorsOnNode:u}){var p,d,f,h;const m=o.oasTypeOf(e);if(n.items)return void("array"!==m&&(t({message:`Expected type \`${n.name}\` (array) but got \`${m}\``}),u()));if("object"!==m)return t({message:`Expected type \`${n.name}\` (object) but got \`${m}\``}),void u();const g="function"==typeof n.required?n.required(e,l):n.required;for(let n of g||[])e.hasOwnProperty(n)||t({message:`The field \`${n}\` must be present on this level.`,location:[{reportOnKey:!0}]});const y=null===(p=n.allowed)||void 0===p?void 0:p.call(n,e);if(y&&a.isPlainObject(e))for(const r in e)y.includes(r)||n.extensionsPrefix&&r.startsWith(n.extensionsPrefix)||!Object.keys(n.properties).includes(r)||t({message:`The field \`${r}\` is not allowed here.`,location:s.child([r]).key()});const v=n.requiredOneOf||null;if(v){let r=!1;for(let t of v||[])e.hasOwnProperty(t)&&(r=!0);r||t({message:`Must contain at least one of the following fields: ${null===(d=n.requiredOneOf)||void 0===d?void 0:d.join(", ")}.`,location:[{reportOnKey:!0}]})}for(const a of Object.keys(e)){const l=s.child([a]);let u=e[a],p=n.properties[a];if(void 0===p&&(p=n.additionalProperties),"function"==typeof p&&(p=p(u,a)),r.isNamedType(p))continue;const d=p,m=o.oasTypeOf(u);if(void 0!==d){if(null!==d){if(!1!==d.resolvable&&i.isRef(u)&&(u=c(u).node),d.enum)d.enum.includes(u)||t({location:l,message:`\`${a}\` can be one of the following only: ${d.enum.map((e=>`"${e}"`)).join(", ")}.`,suggest:o.getSuggest(u,d.enum)});else if(d.type&&!o.matchesJsonSchemaType(u,d.type,!1))t({message:`Expected type \`${d.type}\` but got \`${m}\`.`,location:l});else if("array"===m&&(null===(f=d.items)||void 0===f?void 0:f.type)){const e=null===(h=d.items)||void 0===h?void 0:h.type;for(let n=0;ne[a]&&t({message:`The value of the ${a} field must be greater than or equal to ${d.minimum}`,location:s.child([a])})}}else{if(a.startsWith("x-"))continue;t({message:`Property \`${a}\` is not expected here.`,suggest:o.getSuggest(a,Object.keys(n.properties)),location:l.key()})}}}})},7281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagDescription=void 0;const r=n(780);t.TagDescription=()=>({Tag(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},6855:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagsAlphabetical=void 0,t.TagsAlphabetical=()=>({DefinitionRoot(e,{report:t,location:n}){if(e.tags)for(let r=0;re.tags[r+1].name&&t({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",r])})}})},348:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnresolvedRef=t.NoUnresolvedRefs=void 0;const r=n(4182);function o(e,t,n){var o;const i=e.error;i instanceof r.YamlParseError&&t({message:"Failed to parse: "+i.message,location:{source:i.source,pointer:void 0,start:{col:i.col,line:i.line}}});const a=null===(o=e.error)||void 0===o?void 0:o.message;t({location:n,message:"Can't resolve $ref"+(a?": "+a:"")})}t.NoUnresolvedRefs=()=>({ref:{leave(e,{report:t,location:n},r){void 0===r.node&&o(r,t,n)}},DiscriminatorMapping(e,{report:t,resolve:n,location:r}){for(const i of Object.keys(e)){const a=n({$ref:e[i]});if(void 0!==a.node)return;o(a,t,r.child(i))}}}),t.reportUnresolvedRef=o},9566:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanParameterPrefixes=void 0,t.BooleanParameterPrefixes=e=>{const t=e.prefixes||["is","has"],n=new RegExp(`^(${t.join("|")})[A-Z-_]`),r=t.map((e=>`\`${e}\``)),o=1===r.length?r[0]:r.slice(0,-1).join(", ")+" or "+r[t.length-1];return{Parameter(e,{report:t,location:r}){"boolean"!==e.type||n.test(e.name)||t({message:`Boolean parameter \`${e.name}\` should have ${o} prefix.`,location:r.child("name")})}}}},7523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preprocessors=t.rules=void 0;const r=n(6471),o=n(78),i=n(1562),a=n(8675),s=n(8265),l=n(9622),c=n(476),u=n(9566),p=n(7281),d=n(6855),f=n(9527),h=n(2319),m=n(700),g=n(5946),y=n(5281),v=n(4015),b=n(8742),w=n(4112),x=n(7421),k=n(5097),_=n(7890),O=n(5064),S=n(3408),E=n(5023),P=n(3529),A=n(8613),$=n(7892),C=n(348),R=n(2332),j=n(4628),T=n(8786),I=n(9578),N=n(3467),D=n(525),L=n(3689),M=n(7028),F=n(1750),z=n(3807),U=n(5839),V=n(7899),B=n(5669);t.rules={spec:r.OasSpec,"no-invalid-schema-examples":o.NoInvalidSchemaExamples,"no-invalid-parameter-examples":i.NoInvalidParameterExamples,"info-description":a.InfoDescription,"info-contact":s.InfoContact,"info-license":l.InfoLicense,"info-license-url":c.InfoLicenseUrl,"tag-description":p.TagDescription,"tags-alphabetical":d.TagsAlphabetical,"paths-kebab-case":f.PathsKebabCase,"no-enum-type-mismatch":h.NoEnumTypeMismatch,"boolean-parameter-prefixes":u.BooleanParameterPrefixes,"no-path-trailing-slash":m.NoPathTrailingSlash,"operation-2xx-response":g.Operation2xxResponse,"operation-4xx-response":y.Operation4xxResponse,assertions:v.Assertions,"operation-operationId-unique":b.OperationIdUnique,"operation-parameters-unique":w.OperationParametersUnique,"path-parameters-defined":x.PathParamsDefined,"operation-tag-defined":k.OperationTagDefined,"path-declaration-must-exist":_.PathDeclarationMustExist,"operation-operationId-url-safe":O.OperationIdUrlSafe,"operation-operationId":T.OperationOperationId,"operation-summary":I.OperationSummary,"operation-description":S.OperationDescription,"path-not-include-query":E.PathNotIncludeQuery,"path-params-defined":x.PathParamsDefined,"parameter-description":P.ParameterDescription,"operation-singular-tag":A.OperationSingularTag,"operation-security-defined":$.OperationSecurityDefined,"no-unresolved-refs":C.NoUnresolvedRefs,"no-identical-paths":j.NoIdenticalPaths,"no-ambiguous-paths":N.NoAmbiguousPaths,"path-http-verbs-order":R.PathHttpVerbsOrder,"no-http-verbs-in-paths":D.NoHttpVerbsInPaths,"path-excludes-patterns":L.PathExcludesPatterns,"request-mime-type":M.RequestMimeType,"response-mime-type":F.ResponseMimeType,"path-segment-plural":z.PathSegmentPlural,"response-contains-header":U.ResponseContainsHeader,"response-contains-property":V.ResponseContainsProperty,"scalar-property-missing-example":B.ScalarPropertyMissingExample},t.preprocessors={}},4508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveUnusedComponents=void 0;const r=n(771);t.RemoveUnusedComponents=()=>{let e=new Map;function t(t,n,r){var o;e.set(t.absolutePointer,{used:(null===(o=e.get(t.absolutePointer))||void 0===o?void 0:o.used)||!1,componentType:n,name:r})}return{ref:{leave(t,{type:n,resolve:r,key:o}){if(["Schema","Parameter","Response","SecurityScheme"].includes(n.name)){const n=r(t);if(!n.location)return;e.set(n.location.absolutePointer,{used:!0,name:o.toString()})}}},DefinitionRoot:{leave(t,n){const o=n.getVisitorData();o.removedCount=0;let i=new Set;e.forEach((e=>{const{used:n,name:r,componentType:a}=e;!n&&a&&(i.add(a),delete t[a][r],o.removedCount++)}));for(const e of i)r.isEmptyObject(t[e])&&delete t[e]}},NamedSchemas:{Schema(e,{location:n,key:r}){e.allOf||t(n,"definitions",r.toString())}},NamedParameters:{Parameter(e,{location:n,key:r}){t(n,"parameters",r.toString())}},NamedResponses:{Response(e,{location:n,key:r}){t(n,"responses",r.toString())}},NamedSecuritySchemes:{SecurityScheme(e,{location:n,key:r}){t(n,"securityDefinitions",r.toString())}}}}},7028:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMimeType=void 0;const r=n(771);t.RequestMimeType=({allowedValues:e})=>({DefinitionRoot(t,n){r.validateMimeType({type:"consumes",value:t},n,e)},Operation:{leave(t,n){r.validateMimeType({type:"consumes",value:t},n,e)}}})},7899:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseContainsProperty=void 0;const r=n(771);t.ResponseContainsProperty=e=>{const t=e.names||{};let n;return{Operation:{Response:{skip:(e,t)=>"204"==`${t}`,enter:(e,t)=>{n=t.key},Schema(e,{report:o,location:i}){var a;if("object"!==e.type)return;const s=t[n]||t[r.getMatchingStatusCodeRange(n)]||t[r.getMatchingStatusCodeRange(n).toLowerCase()]||[];for(const t of s)(null===(a=e.properties)||void 0===a?void 0:a[t])||o({message:`Response object must contain a top-level "${t}" property.`,location:i.child("properties").key()})}}}}}},1750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseMimeType=void 0;const r=n(771);t.ResponseMimeType=({allowedValues:e})=>({DefinitionRoot(t,n){r.validateMimeType({type:"produces",value:t},n,e)},Operation:{leave(t,n){r.validateMimeType({type:"produces",value:t},n,e)}}})},962:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanParameterPrefixes=void 0,t.BooleanParameterPrefixes=e=>{const t=e.prefixes||["is","has"],n=new RegExp(`^(${t.join("|")})[A-Z-_]`),r=t.map((e=>`\`${e}\``)),o=1===r.length?r[0]:r.slice(0,-1).join(", ")+" or "+r[t.length-1];return{Parameter:{Schema(e,{report:t,parentLocations:r},i){"boolean"!==e.type||n.test(i.Parameter.name)||t({message:`Boolean parameter \`${i.Parameter.name}\` should have ${o} prefix.`,location:r.Parameter.child(["name"])})}}}}},226:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preprocessors=t.rules=void 0;const r=n(6471),o=n(5946),i=n(5281),a=n(4015),s=n(8742),l=n(4112),c=n(7421),u=n(5097),p=n(1265),d=n(2319),f=n(700),h=n(7890),m=n(5064),g=n(6855),y=n(5486),v=n(2947),b=n(8675),w=n(7281),x=n(8265),k=n(9622),_=n(3408),O=n(897),S=n(5023),E=n(3529),P=n(8613),A=n(476),$=n(7892),C=n(348),R=n(962),j=n(9527),T=n(2332),I=n(7020),N=n(9336),D=n(4628),L=n(6208),M=n(8786),F=n(9578),z=n(3467),U=n(472),V=n(525),B=n(3736),q=n(503),W=n(3807),H=n(3689),Y=n(78),K=n(1562),G=n(5839),Q=n(7557),X=n(5669);t.rules={spec:r.OasSpec,"info-description":b.InfoDescription,"info-contact":x.InfoContact,"info-license":k.InfoLicense,"info-license-url":A.InfoLicenseUrl,"operation-2xx-response":o.Operation2xxResponse,"operation-4xx-response":i.Operation4xxResponse,assertions:a.Assertions,"operation-operationId-unique":s.OperationIdUnique,"operation-parameters-unique":l.OperationParametersUnique,"path-parameters-defined":c.PathParamsDefined,"operation-tag-defined":u.OperationTagDefined,"no-example-value-and-externalValue":p.NoExampleValueAndExternalValue,"no-enum-type-mismatch":d.NoEnumTypeMismatch,"no-path-trailing-slash":f.NoPathTrailingSlash,"no-empty-servers":I.NoEmptyServers,"path-declaration-must-exist":h.PathDeclarationMustExist,"operation-operationId-url-safe":m.OperationIdUrlSafe,"operation-operationId":M.OperationOperationId,"operation-summary":F.OperationSummary,"tags-alphabetical":g.TagsAlphabetical,"no-server-example.com":y.NoServerExample,"no-server-trailing-slash":v.NoServerTrailingSlash,"tag-description":w.TagDescription,"operation-description":_.OperationDescription,"no-unused-components":O.NoUnusedComponents,"path-not-include-query":S.PathNotIncludeQuery,"path-params-defined":c.PathParamsDefined,"parameter-description":E.ParameterDescription,"operation-singular-tag":P.OperationSingularTag,"operation-security-defined":$.OperationSecurityDefined,"no-unresolved-refs":C.NoUnresolvedRefs,"paths-kebab-case":j.PathsKebabCase,"boolean-parameter-prefixes":R.BooleanParameterPrefixes,"path-http-verbs-order":T.PathHttpVerbsOrder,"no-invalid-media-type-examples":N.ValidContentExamples,"no-identical-paths":D.NoIdenticalPaths,"no-ambiguous-paths":z.NoAmbiguousPaths,"no-undefined-server-variable":L.NoUndefinedServerVariable,"no-servers-empty-enum":U.NoEmptyEnumServers,"no-http-verbs-in-paths":V.NoHttpVerbsInPaths,"path-excludes-patterns":H.PathExcludesPatterns,"request-mime-type":B.RequestMimeType,"response-mime-type":q.ResponseMimeType,"path-segment-plural":W.PathSegmentPlural,"no-invalid-schema-examples":Y.NoInvalidSchemaExamples,"no-invalid-parameter-examples":K.NoInvalidParameterExamples,"response-contains-header":G.ResponseContainsHeader,"response-contains-property":Q.ResponseContainsProperty,"scalar-property-missing-example":X.ScalarPropertyMissingExample},t.preprocessors={}},7020:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoEmptyServers=void 0,t.NoEmptyServers=()=>({DefinitionRoot(e,{report:t,location:n}){e.hasOwnProperty("servers")?Array.isArray(e.servers)&&0!==e.servers.length||t({message:"Servers must be a non-empty array.",location:n.child(["servers"]).key()}):t({message:"Servers must be present.",location:n.child(["openapi"]).key()})}})},1265:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoExampleValueAndExternalValue=void 0,t.NoExampleValueAndExternalValue=()=>({Example(e,{report:t,location:n}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:n.child(["value"]).key()})}})},9336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidContentExamples=void 0;const r=n(7468),o=n(780);t.ValidContentExamples=e=>{var t;const n=null===(t=e.disallowAdditionalProperties)||void 0===t||t;return{MediaType:{leave(e,t){const{location:i,resolve:a}=t;if(e.schema)if(e.example)s(e.example,i.child("example"));else if(e.examples)for(const t of Object.keys(e.examples))s(e.examples[t],i.child(["examples",t,"value"]),!0);function s(i,s,l){if(r.isRef(i)){const e=a(i);if(!e.location)return;s=l?e.location.child("value"):e.location,i=e.node}o.validateExample(l?i.value:i,e.schema,s,t,n)}}}}}},5486:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoServerExample=void 0,t.NoServerExample=()=>({Server(e,{report:t,location:n}){-1!==["example.com","localhost"].indexOf(e.url)&&t({message:"Server `url` should not point at example.com.",location:n.child(["url"])})}})},2947:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoServerTrailingSlash=void 0,t.NoServerTrailingSlash=()=>({Server(e,{report:t,location:n}){e.url&&e.url.endsWith("/")&&"/"!==e.url&&t({message:"Server `url` should not have a trailing slash.",location:n.child(["url"])})}})},472:function(e,t){"use strict";var n;function r(e){var t;if(e.variables&&0===Object.keys(e.variables).length)return;const r=[];for(var o in e.variables){const i=e.variables[o];if(!i.enum)continue;if(Array.isArray(i.enum)&&0===(null===(t=i.enum)||void 0===t?void 0:t.length)&&r.push(n.empty),!i.default)continue;const a=e.variables[o].default;i.enum&&!i.enum.includes(a)&&r.push(n.invalidDefaultValue)}return r.length?r:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.NoEmptyEnumServers=void 0,function(e){e.empty="empty",e.invalidDefaultValue="invalidDefaultValue"}(n||(n={})),t.NoEmptyEnumServers=()=>({DefinitionRoot(e,{report:t,location:o}){if(!e.servers||0===e.servers.length)return;const i=[];if(Array.isArray(e.servers))for(const t of e.servers){const e=r(t);e&&i.push(...e)}else{const t=r(e.servers);if(!t)return;i.push(...t)}for(const e of i)e===n.empty&&t({message:"Server variable with `enum` must be a non-empty array.",location:o.child(["servers"]).key()}),e===n.invalidDefaultValue&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:o.child(["servers"]).key()})}})},6208:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUndefinedServerVariable=void 0,t.NoUndefinedServerVariable=()=>({Server(e,{report:t,location:n}){var r;if(!e.url)return;const o=(null===(r=e.url.match(/{[^}]+}/g))||void 0===r?void 0:r.map((e=>e.slice(1,e.length-1))))||[],i=(null==e?void 0:e.variables)&&Object.keys(e.variables)||[];for(const e of o)i.includes(e)||t({message:`The \`${e}\` variable is not defined in the \`variables\` objects.`,location:n.child(["url"])});for(const e of i)o.includes(e)||t({message:`The \`${e}\` variable is not used in the server's \`url\` field.`,location:n.child(["variables",e]).key(),from:n.child("url")})}})},897:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoUnusedComponents=void 0,t.NoUnusedComponents=()=>{let e=new Map;function t(t,n){var r;e.set(t.absolutePointer,{used:(null===(r=e.get(t.absolutePointer))||void 0===r?void 0:r.used)||!1,location:t,name:n})}return{ref(t,{type:n,resolve:r,key:o,location:i}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(n.name)){const n=r(t);if(!n.location)return;e.set(n.location.absolutePointer,{used:!0,name:o.toString(),location:i})}},DefinitionRoot:{leave(t,{report:n}){e.forEach((e=>{e.used||n({message:`Component: "${e.name}" is never used.`,location:e.location.key()})}))}},NamedSchemas:{Schema(e,{location:n,key:r}){e.allOf||t(n,r.toString())}},NamedParameters:{Parameter(e,{location:n,key:r}){t(n,r.toString())}},NamedResponses:{Response(e,{location:n,key:r}){t(n,r.toString())}},NamedExamples:{Example(e,{location:n,key:r}){t(n,r.toString())}},NamedRequestBodies:{RequestBody(e,{location:n,key:r}){t(n,r.toString())}},NamedHeaders:{Header(e,{location:n,key:r}){t(n,r.toString())}}}}},6350:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveUnusedComponents=void 0;const r=n(771);t.RemoveUnusedComponents=()=>{let e=new Map;function t(t,n,r){var o;e.set(t.absolutePointer,{used:(null===(o=e.get(t.absolutePointer))||void 0===o?void 0:o.used)||!1,componentType:n,name:r})}return{ref:{leave(t,{type:n,resolve:r,key:o}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(n.name)){const n=r(t);if(!n.location)return;e.set(n.location.absolutePointer,{used:!0,name:o.toString()})}}},DefinitionRoot:{leave(t,n){const o=n.getVisitorData();o.removedCount=0,e.forEach((e=>{const{used:n,componentType:i,name:a}=e;if(!n&&i){let e=t.components[i];delete e[a],o.removedCount++,r.isEmptyObject(e)&&delete t.components[i]}})),r.isEmptyObject(t.components)&&delete t.components}},NamedSchemas:{Schema(e,{location:n,key:r}){e.allOf||t(n,"schemas",r.toString())}},NamedParameters:{Parameter(e,{location:n,key:r}){t(n,"parameters",r.toString())}},NamedResponses:{Response(e,{location:n,key:r}){t(n,"responses",r.toString())}},NamedExamples:{Example(e,{location:n,key:r}){t(n,"examples",r.toString())}},NamedRequestBodies:{RequestBody(e,{location:n,key:r}){t(n,"requestBodies",r.toString())}},NamedHeaders:{Header(e,{location:n,key:r}){t(n,"headers",r.toString())}}}}},3736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMimeType=void 0;const r=n(771);t.RequestMimeType=({allowedValues:e})=>({PathMap:{RequestBody:{leave(t,n){r.validateMimeTypeOAS3({type:"consumes",value:t},n,e)}},Callback:{RequestBody(){},Response:{leave(t,n){r.validateMimeTypeOAS3({type:"consumes",value:t},n,e)}}}},WebhooksMap:{Response:{leave(t,n){r.validateMimeTypeOAS3({type:"consumes",value:t},n,e)}}}})},7557:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseContainsProperty=void 0;const r=n(771);t.ResponseContainsProperty=e=>{const t=e.names||{};let n;return{Operation:{Response:{skip:(e,t)=>"204"==`${t}`,enter:(e,t)=>{n=t.key},MediaType:{Schema(e,{report:o,location:i}){var a;if("object"!==e.type)return;const s=t[n]||t[r.getMatchingStatusCodeRange(n)]||t[r.getMatchingStatusCodeRange(n).toLowerCase()]||[];for(const t of s)(null===(a=e.properties)||void 0===a?void 0:a[t])||o({message:`Response object must contain a top-level "${t}" property.`,location:i.child("properties").key()})}}}}}}},503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseMimeType=void 0;const r=n(771);t.ResponseMimeType=({allowedValues:e})=>({PathMap:{Response:{leave(t,n){r.validateMimeTypeOAS3({type:"produces",value:t},n,e)}},Callback:{Response(){},RequestBody:{leave(t,n){r.validateMimeTypeOAS3({type:"produces",value:t},n,e)}}}},WebhooksMap:{RequestBody:{leave(t,n){r.validateMimeTypeOAS3({type:"produces",value:t},n,e)}}}})},780:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateExample=t.getSuggest=t.validateDefinedAndNonEmpty=t.fieldNonEmpty=t.missingRequiredField=t.matchesJsonSchemaType=t.oasTypeOf=void 0;const r=n(9991),o=n(7468),i=n(7275);function a(e,t){return`${e} object should contain \`${t}\` field.`}function s(e,t){return`${e} object \`${t}\` must be non-empty string.`}t.oasTypeOf=function(e){return Array.isArray(e)?"array":null===e?"null":typeof e},t.matchesJsonSchemaType=function(e,t,n){if(n&&null===e)return null===e;switch(t){case"array":return Array.isArray(e);case"object":return"object"==typeof e&&null!==e&&!Array.isArray(e);case"null":return null===e;case"integer":return Number.isInteger(e);default:return typeof e===t}},t.missingRequiredField=a,t.fieldNonEmpty=s,t.validateDefinedAndNonEmpty=function(e,t,n){"object"==typeof t&&(void 0===t[e]?n.report({message:a(n.type.name,e),location:n.location.child([e]).key()}):t[e]||n.report({message:s(n.type.name,e),location:n.location.child([e]).key()}))},t.getSuggest=function(e,t){if("string"!=typeof e||!t.length)return[];const n=[];for(let o=0;oe.distance-t.distance)),n.map((e=>e.variant))},t.validateExample=function(e,t,n,{resolve:r,location:a,report:s},l){try{const{valid:c,errors:u}=i.validateJsonSchema(e,t,a.child("schema"),n.pointer,r,l);if(!c)for(let e of u)s({message:`Example value must conform to the schema: ${e.message}.`,location:Object.assign(Object.assign({},new o.Location(n.source,e.instancePath)),{reportOnKey:"additionalProperties"===e.keyword}),from:a,suggest:e.suggest})}catch(e){s({message:`Example validation errored: ${e.message}.`,location:a.child("schema"),from:a})}}},5220:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNamedType=t.normalizeTypes=t.mapOf=t.listOf=void 0,t.listOf=function(e){return{name:`${e}List`,properties:{},items:e}},t.mapOf=function(e){return{name:`${e}Map`,properties:{},additionalProperties:()=>e}},t.normalizeTypes=function(e,t={}){const n={};for(const t of Object.keys(e))n[t]=Object.assign(Object.assign({},e[t]),{name:t});for(const e of Object.values(n))r(e);return n;function r(e){if(e.additionalProperties&&(e.additionalProperties=o(e.additionalProperties)),e.items&&(e.items=o(e.items)),e.properties){const n={};for(const[r,i]of Object.entries(e.properties))n[r]=o(i),t.doNotResolveExamples&&i&&i.isExample&&(n[r]=Object.assign(Object.assign({},i),{resolvable:!1}));e.properties=n}}function o(e){if("string"==typeof e){if(!n[e])throw new Error(`Unknown type name found: ${e}`);return n[e]}return"function"==typeof e?(t,n)=>o(e(t,n)):e&&e.name?(r(e=Object.assign({},e)),e):e&&e.directResolveAs?Object.assign(Object.assign({},e),{directResolveAs:o(e.directResolveAs)}):e}},t.isNamedType=function(e){return"string"==typeof(null==e?void 0:e.name)}},388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Oas2Types=void 0;const r=n(5220),o=/^[0-9][0-9Xx]{2}$/,i={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"PathMap",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:r.listOf("SecurityRequirement"),tags:r.listOf("Tag"),externalDocs:"ExternalDocs"},required:["swagger","paths","info"]},a={properties:{$ref:{type:"string"},parameters:r.listOf("Parameter"),get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"}},s={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:r.listOf("Parameter"),responses:"ResponsesMap",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:r.listOf("SecurityRequirement"),"x-codeSamples":r.listOf("XCodeSample"),"x-code-samples":r.listOf("XCodeSample"),"x-hideTryItPanel":{type:"boolean"}},required:["responses"]},l={properties:{default:"Response"},additionalProperties:(e,t)=>o.test(t)?"Response":void 0},c={properties:{description:{type:"string"},schema:"Schema",headers:r.mapOf("Header"),examples:"Examples"},required:["description"]},u={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?r.listOf("Schema"):"Schema",allOf:r.listOf("Schema"),properties:"SchemaProperties",additionalProperties:e=>"boolean"==typeof e?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}}}},p={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}}},required(e){switch(null==e?void 0:e.type){case"apiKey":return["type","name","in"];case"oauth2":switch(null==e?void 0:e.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(null==e?void 0:e.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(null==e?void 0:e.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"};t.Oas2Types={DefinitionRoot:i,Tag:{properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},ExternalDocs:{properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},SecurityRequirement:{properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Info:{properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"}},required:["title","version"]},Contact:{properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},License:{properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},PathMap:{properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},PathItem:a,Parameter:{properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required:e=>e&&e.in?"body"===e.in?["name","in","schema"]:"array"===e.type?["name","in","type","items"]:["name","in","type"]:["name","in"]},ParameterItems:{properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required:e=>e&&"array"===e.type?["type","items"]:["type"]},Operation:s,Examples:{properties:{},additionalProperties:{isExample:!0}},Header:{properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required:e=>e&&"array"===e.type?["type","items"]:["type"]},ResponsesMap:l,Response:c,Schema:u,Xml:{properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}}},SchemaProperties:{properties:{},additionalProperties:"Schema"},NamedSchemas:r.mapOf("Schema"),NamedResponses:r.mapOf("Response"),NamedParameters:r.mapOf("Parameter"),NamedSecuritySchemes:r.mapOf("SecurityScheme"),SecurityScheme:p,XCodeSample:{properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}}}},5241:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Oas3Types=void 0;const r=n(5220),o=n(7468),i=/^[0-9][0-9Xx]{2}$/,a={properties:{openapi:null,info:"Info",servers:r.listOf("Server"),security:r.listOf("SecurityRequirement"),tags:r.listOf("Tag"),externalDocs:"ExternalDocs",paths:"PathMap",components:"Components","x-webhooks":"WebhooksMap"},required:["openapi","paths","info"]},s={properties:{url:{type:"string"},description:{type:"string"},variables:r.mapOf("ServerVariable")},required:["url"]},l={properties:{$ref:{type:"string"},servers:r.listOf("Server"),parameters:r.listOf("Parameter"),summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"}},c={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:r.mapOf("Example"),content:"MediaTypeMap"},required:["name","in"],requiredOneOf:["schema","content"]},u={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:r.listOf("Parameter"),security:r.listOf("SecurityRequirement"),servers:r.listOf("Server"),requestBody:"RequestBody",responses:"ResponsesMap",deprecated:{type:"boolean"},callbacks:r.mapOf("Callback"),"x-codeSamples":r.listOf("XCodeSample"),"x-code-samples":r.listOf("XCodeSample"),"x-hideTryItPanel":{type:"boolean"}},required:["responses"]},p={properties:{schema:"Schema",example:{isExample:!0},examples:r.mapOf("Example"),encoding:r.mapOf("Encoding")}},d={properties:{contentType:{type:"string"},headers:r.mapOf("Header"),style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}}},f={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:r.mapOf("Example"),content:"MediaTypeMap"}},h={properties:{default:"Response"},additionalProperties:(e,t)=>i.test(t)?"Response":void 0},m={properties:{description:{type:"string"},headers:r.mapOf("Header"),content:"MediaTypeMap",links:r.mapOf("Link")},required:["description"]},g={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean","null"]},allOf:r.listOf("Schema"),anyOf:r.listOf("Schema"),oneOf:r.listOf("Schema"),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?r.listOf("Schema"):"Schema",additionalItems:e=>"boolean"==typeof e?{type:"boolean"}:"Schema",additionalProperties:e=>"boolean"==typeof e?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}}}},y={properties:{},additionalProperties:e=>o.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},v={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(e){switch(null==e?void 0:e.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(null==e?void 0:e.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"};t.Oas3Types={DefinitionRoot:a,Tag:{properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},ExternalDocs:{properties:{description:{type:"string"},url:{type:"string"}},required:["url"]},Server:s,ServerVariable:{properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:null},required:["default"]},SecurityRequirement:{properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Info:{properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},Contact:{properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},License:{properties:{name:{type:"string"},url:{type:"string"}},required:["name"]},PathMap:{properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},PathItem:l,Parameter:c,Operation:u,Callback:r.mapOf("PathItem"),RequestBody:{properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypeMap"},required:["content"]},MediaTypeMap:{properties:{},additionalProperties:"MediaType"},MediaType:p,Example:{properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}}},Encoding:d,Header:f,ResponsesMap:h,Response:m,Link:{properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"}},Schema:g,Xml:{properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}}},SchemaProperties:{properties:{},additionalProperties:"Schema"},DiscriminatorMapping:y,Discriminator:{properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Components:{properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"}},NamedSchemas:r.mapOf("Schema"),NamedResponses:r.mapOf("Response"),NamedParameters:r.mapOf("Parameter"),NamedExamples:r.mapOf("Example"),NamedRequestBodies:r.mapOf("RequestBody"),NamedHeaders:r.mapOf("Header"),NamedSecuritySchemes:r.mapOf("SecurityScheme"),NamedLinks:r.mapOf("Link"),NamedCallbacks:r.mapOf("Callback"),ImplicitFlow:{properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},PasswordFlow:{properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},ClientCredentials:{properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},AuthorizationCode:{properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]},SecuritySchemeFlows:{properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},SecurityScheme:v,XCodeSample:{properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},WebhooksMap:{properties:{},additionalProperties:()=>"PathItem"}}},2608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Oas3_1Types=void 0;const r=n(5220),o=n(5241),i={properties:{openapi:null,info:"Info",servers:r.listOf("Server"),security:r.listOf("SecurityRequirement"),tags:r.listOf("Tag"),externalDocs:"ExternalDocs",paths:"PathMap",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"]},a={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:r.listOf("Parameter"),security:r.listOf("SecurityRequirement"),servers:r.listOf("Server"),requestBody:"RequestBody",responses:"ResponsesMap",deprecated:{type:"boolean"},callbacks:r.mapOf("Callback"),"x-codeSamples":r.listOf("XCodeSample"),"x-code-samples":r.listOf("XCodeSample"),"x-hideTryItPanel":{type:"boolean"}}},s={properties:{$id:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",myArbitraryKeyword:{type:"boolean"},title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:r.listOf("Schema"),anyOf:r.listOf("Schema"),oneOf:r.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:r.listOf("Schema"),prefixItems:r.listOf("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:{type:"object"},propertyNames:"Schema",unevaluatedItems:"Schema",unevaluatedProperties:e=>"boolean"==typeof e?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>"boolean"==typeof e?{type:"boolean"}:"Schema",additionalProperties:e=>"boolean"==typeof e?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}}}},l={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(e){switch(null==e?void 0:e.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(null==e?void 0:e.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(null==e?void 0:e.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"};t.Oas3_1Types=Object.assign(Object.assign({},o.Oas3Types),{Info:{properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]},DefinitionRoot:i,Schema:s,License:{properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"]},Components:{properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"}},NamedPathItems:r.mapOf("PathItem"),SecurityScheme:l,Operation:a})},771:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isCustomRuleId=t.getMatchingStatusCodeRange=t.assignExisting=t.isNotString=t.isString=t.isNotEmptyObject=t.slash=t.isPathParameter=t.readFileAsStringSync=t.isSingular=t.validateMimeTypeOAS3=t.validateMimeType=t.splitCamelCaseIntoWords=t.omitObjectProps=t.pickObjectProps=t.readFileFromUrl=t.isEmptyArray=t.isEmptyObject=t.isPlainObject=t.notUndefined=t.loadYaml=t.popStack=t.pushStack=t.stringifyYaml=t.parseYaml=void 0;const o=n(3197),i=n(4099),a=n(8150),s=n(3450),l=n(5273),c=n(8698);var u=n(5273);function p(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function d(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),i(e,t)}function f(e){return"string"==typeof e}Object.defineProperty(t,"parseYaml",{enumerable:!0,get:function(){return u.parseYaml}}),Object.defineProperty(t,"stringifyYaml",{enumerable:!0,get:function(){return u.stringifyYaml}}),t.pushStack=function(e,t){return{prev:e,value:t}},t.popStack=function(e){var t;return null!==(t=null==e?void 0:e.prev)&&void 0!==t?t:null},t.loadYaml=function(e){return r(this,void 0,void 0,(function*(){const t=yield o.promises.readFile(e,"utf-8");return l.parseYaml(t)}))},t.notUndefined=function(e){return void 0!==e},t.isPlainObject=p,t.isEmptyObject=function(e){return p(e)&&0===Object.keys(e).length},t.isEmptyArray=function(e){return Array.isArray(e)&&0===e.length},t.readFileFromUrl=function(e,t){return r(this,void 0,void 0,(function*(){const n={};for(const r of t.headers)d(e,r.matches)&&(n[r.name]=void 0!==r.envVariable?c.env[r.envVariable]||"":r.value);const r=yield(t.customFetch||a.default)(e,{headers:n});if(!r.ok)throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);return{body:yield r.text(),mimeType:r.headers.get("content-type")}}))},t.pickObjectProps=function(e,t){return Object.fromEntries(t.filter((t=>t in e)).map((t=>[t,e[t]])))},t.omitObjectProps=function(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))},t.splitCamelCaseIntoWords=function(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Boolean).map((e=>e.toLocaleLowerCase())),n=e.split(/([A-Z]{2,})/).filter((e=>e&&e===e.toUpperCase())).map((e=>e.toLocaleLowerCase()));return new Set([...t,...n])},t.validateMimeType=function({type:e,value:t},{report:n,location:r},o){if(!o)throw new Error(`Parameter "allowedValues" is not provided for "${"consumes"===e?"request":"response"}-mime-type" rule`);if(t[e])for(const i of t[e])o.includes(i)||n({message:`Mime type "${i}" is not allowed`,location:r.child(t[e].indexOf(i)).key()})},t.validateMimeTypeOAS3=function({type:e,value:t},{report:n,location:r},o){if(!o)throw new Error(`Parameter "allowedValues" is not provided for "${"consumes"===e?"request":"response"}-mime-type" rule`);if(t.content)for(const e of Object.keys(t.content))o.includes(e)||n({message:`Mime type "${e}" is not allowed`,location:r.child("content").child(e).key()})},t.isSingular=function(e){return s.isSingular(e)},t.readFileAsStringSync=function(e){return o.readFileSync(e,"utf-8")},t.isPathParameter=function(e){return e.startsWith("{")&&e.endsWith("}")},t.slash=function(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")},t.isNotEmptyObject=function(e){return!!e&&Object.keys(e).length>0},t.isString=f,t.isNotString=function(e){return!f(e)},t.assignExisting=function(e,t){for(let n of Object.keys(t))e.hasOwnProperty(n)&&(e[n]=t[n])},t.getMatchingStatusCodeRange=e=>`${e}`.replace(/^(\d)\d\d$/,((e,t)=>`${t}XX`)),t.isCustomRuleId=function(e){return e.includes("/")}},8065:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeVisitors=void 0,t.normalizeVisitors=function(e,t){const n={any:{enter:[],leave:[]}};for(const e of Object.keys(t))n[e]={enter:[],leave:[]};n.ref={enter:[],leave:[]};for(const{ruleId:t,severity:n,visitor:r}of e)o({ruleId:t,severity:n},r,null);for(const e of Object.keys(n))n[e].enter.sort(((e,t)=>t.depth-e.depth)),n[e].leave.sort(((e,t)=>e.depth-t.depth));return n;function r(e,t,o,i,a=[]){if(a.includes(t))return;a=[...a,t];const s=new Set;for(let n of Object.values(t.properties))n!==o?"object"==typeof n&&null!==n&&n.name&&s.add(n):l(e,a);t.additionalProperties&&"function"!=typeof t.additionalProperties&&(t.additionalProperties===o?l(e,a):void 0!==t.additionalProperties.name&&s.add(t.additionalProperties)),t.items&&(t.items===o?l(e,a):void 0!==t.items.name&&s.add(t.items));for(let t of Array.from(s.values()))r(e,t,o,i,a);function l(e,t){for(const r of t.slice(1))n[r.name]=n[r.name]||{enter:[],leave:[]},n[r.name].enter.push(Object.assign(Object.assign({},e),{visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:i}}))}}function o(e,i,a,s=0){const l=Object.keys(t);if(0===s)l.push("any"),l.push("ref");else{if(i.any)throw new Error("any() is allowed only on top level");if(i.ref)throw new Error("ref() is allowed only on top level")}for(const c of l){const l=i[c],u=n[c];if(!l)continue;let p,d,f;const h="object"==typeof l;if("ref"===c&&h&&l.skip)throw new Error("ref() visitor does not support skip");"function"==typeof l?p=l:h&&(p=l.enter,d=l.leave,f=l.skip);const m={activatedOn:null,type:t[c],parent:a,isSkippedLevel:!1};if("object"==typeof l&&o(e,l,m,s+1),a&&r(e,a.type,t[c],a),p||h){if(p&&"function"!=typeof p)throw new Error("DEV: should be function");u.enter.push(Object.assign(Object.assign({},e),{visit:p||(()=>{}),skip:f,depth:s,context:m}))}if(d){if("function"!=typeof d)throw new Error("DEV: should be function");u.leave.push(Object.assign(Object.assign({},e),{visit:d,depth:s,context:m}))}}}}},9443:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walkDocument=void 0;const r=n(7468),o=n(4182),i=n(771),a=n(5220);function s(e){var t,n;const r={};for(;e.parent;)(null===(t=e.parent.activatedOn)||void 0===t?void 0:t.value.location)&&(r[e.parent.type.name]=null===(n=e.parent.activatedOn)||void 0===n?void 0:n.value.location),e=e.parent;return r}t.walkDocument=function(e){const{document:t,rootType:n,normalizedVisitors:l,resolvedRefMap:c,ctx:u}=e,p={},d=new Set;!function e(t,n,f,h,m){var g,y,v,b,w,x,k,_,O,S,E;const P=(e,t=$.source.absoluteRef)=>{if(!r.isRef(e))return{location:f,node:e};const n=o.makeRefId(t,e.$ref),i=c.get(n);if(!i)return{location:void 0,node:void 0};const{resolved:a,node:s,document:l,nodePointer:u,error:p}=i;return{location:a?new r.Location(l.source,u):p instanceof o.YamlParseError?new r.Location(p.source,""):void 0,node:s,error:p}},A=f;let $=f;const{node:C,location:R,error:j}=P(t),T=new Set;if(r.isRef(t)){const e=l.ref.enter;for(const{visit:r,ruleId:o,severity:i,context:a}of e)if(!d.has(t)){T.add(a);r(t,{report:N.bind(void 0,o,i),resolve:P,rawNode:t,rawLocation:A,location:f,type:n,parent:h,key:m,parentLocations:{},oasVersion:u.oasVersion,getVisitorData:D.bind(void 0,o)},{node:C,location:R,error:j}),(null==R?void 0:R.source.absoluteRef)&&u.refTypes&&u.refTypes.set(null==R?void 0:R.source.absoluteRef,n)}}if(void 0!==C&&R&&"scalar"!==n.name){$=R;const o=null===(y=null===(g=p[n.name])||void 0===g?void 0:g.has)||void 0===y?void 0:y.call(g,C);let s=!1;const c=l.any.enter.concat((null===(v=l[n.name])||void 0===v?void 0:v.enter)||[]),u=[];for(const{context:e,visit:r,skip:a,ruleId:l,severity:p}of c)if(e.isSkippedLevel)!e.parent.activatedOn||e.parent.activatedOn.value.nextLevelTypeActivated||e.seen.has(t)||(e.seen.add(t),s=!0,u.push(e));else if(e.parent&&e.parent.activatedOn&&(null===(b=e.activatedOn)||void 0===b?void 0:b.value.withParentNode)!==e.parent.activatedOn.value.node&&(null===(w=e.parent.activatedOn.value.nextLevelTypeActivated)||void 0===w?void 0:w.value)!==n||!e.parent&&!o){u.push(e);const o={node:C,location:R,nextLevelTypeActivated:null,withParentNode:null===(k=null===(x=e.parent)||void 0===x?void 0:x.activatedOn)||void 0===k?void 0:k.value.node,skipped:null!==(S=(null===(O=null===(_=e.parent)||void 0===_?void 0:_.activatedOn)||void 0===O?void 0:O.value.skipped)||(null==a?void 0:a(C,m)))&&void 0!==S&&S};e.activatedOn=i.pushStack(e.activatedOn,o);let c=e.parent;for(;c;)c.activatedOn.value.nextLevelTypeActivated=i.pushStack(c.activatedOn.value.nextLevelTypeActivated,n),c=c.parent;if(!o.skipped){s=!0,T.add(e);const{ignoreNextVisitorsOnNode:n}=I(r,C,t,e,l,p);if(n)break}}if(s||!o)if(p[n.name]=p[n.name]||new Set,p[n.name].add(C),Array.isArray(C)){const t=n.items;if(void 0!==t)for(let n=0;n!o.includes(e)))),r.isRef(t)&&o.push(...Object.keys(t).filter((e=>"$ref"!==e&&!o.includes(e))));for(const i of o){let o=C[i],s=R;void 0===o&&(o=t[i],s=f);let l=n.properties[i];void 0===l&&(l=n.additionalProperties),"function"==typeof l&&(l=l(o,i)),!a.isNamedType(l)&&(null==l?void 0:l.directResolveAs)&&(l=l.directResolveAs,o={$ref:o}),l&&void 0===l.name&&!1!==l.resolvable&&(l={name:"scalar",properties:{}}),a.isNamedType(l)&&("scalar"!==l.name||r.isRef(o))&&e(o,l,s.child([i]),C,i)}}const d=l.any.leave,h=((null===(E=l[n.name])||void 0===E?void 0:E.leave)||[]).concat(d);for(const e of u.reverse())if(e.isSkippedLevel)e.seen.delete(C);else if(e.activatedOn=i.popStack(e.activatedOn),e.parent){let t=e.parent;for(;t;)t.activatedOn.value.nextLevelTypeActivated=i.popStack(t.activatedOn.value.nextLevelTypeActivated),t=t.parent}for(const{context:e,visit:n,ruleId:r,severity:o}of h)!e.isSkippedLevel&&T.has(e)&&I(n,C,t,e,r,o)}if($=f,r.isRef(t)){const e=l.ref.leave;for(const{visit:r,ruleId:o,severity:i,context:a}of e)if(T.has(a)){r(t,{report:N.bind(void 0,o,i),resolve:P,rawNode:t,rawLocation:A,location:f,type:n,parent:h,key:m,parentLocations:{},oasVersion:u.oasVersion,getVisitorData:D.bind(void 0,o)},{node:C,location:R,error:j})}}function I(e,t,r,o,i,a){const l=N.bind(void 0,i,a);let c=!1;return e(t,{report:l,resolve:P,rawNode:r,location:$,rawLocation:A,type:n,parent:h,key:m,parentLocations:s(o),oasVersion:u.oasVersion,ignoreNextVisitorsOnNode:()=>{c=!0},getVisitorData:D.bind(void 0,i)},function(e){var t;const n={};for(;e.parent;)n[e.parent.type.name]=null===(t=e.parent.activatedOn)||void 0===t?void 0:t.value.node,e=e.parent;return n}(o),o),{ignoreNextVisitorsOnNode:c}}function N(e,t,n){const r=n.location?Array.isArray(n.location)?n.location:[n.location]:[Object.assign(Object.assign({},$),{reportOnKey:!1})];u.problems.push(Object.assign(Object.assign({ruleId:n.ruleId||e,severity:n.forceSeverity||t},n),{suggest:n.suggest||[],location:r.map((e=>Object.assign(Object.assign(Object.assign({},$),{reportOnKey:!1}),e)))}))}function D(e){return u.visitorsData[e]=u.visitorsData[e]||{},u.visitorsData[e]}}(t.parsed,n,new r.Location(t.source,"#/"),void 0,"")}},5019:function(e,t,n){var r=n(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(i).split("\\}").join(a).split("\\,").join(s).split("\\.").join(l)}(e),!0).map(u)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(o).join("\\").split(i).join("{").split(a).join("}").split(s).join(",").split(l).join(".")}function p(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var o=n.pre,i=n.body,a=n.post,s=o.split(",");s[s.length-1]+="{"+i+"}";var l=p(a);return a.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),t.push.apply(t,s),t}function d(e){return"{"+e+"}"}function f(e){return/^-?0\d/.test(e)}function h(e,t){return e<=t}function m(e,t){return e>=t}function g(e,t){var n=[],o=r("{","}",e);if(!o)return[e];var i=o.pre,s=o.post.length?g(o.post,!1):[""];if(/\$$/.test(o.pre))for(var l=0;l=0;if(!x&&!k)return o.post.match(/,.*\}/)?g(e=o.pre+"{"+o.body+a+o.post):[e];if(x)y=o.body.split(/\.\./);else if(1===(y=p(o.body)).length&&1===(y=g(y[0],!1).map(d)).length)return s.map((function(e){return o.pre+y[0]+e}));if(x){var _=c(y[0]),O=c(y[1]),S=Math.max(y[0].length,y[1].length),E=3==y.length?Math.abs(c(y[2])):1,P=h;O<_&&(E*=-1,P=m);var A=y.some(f);v=[];for(var $=_;P($,O);$+=E){var C;if(w)"\\"===(C=String.fromCharCode($))&&(C="");else if(C=String($),A){var R=S-C.length;if(R>0){var j=new Array(R+1).join("0");C=$<0?"-"+j+C.slice(1):j+C}}v.push(C)}}else{v=[];for(var T=0;T(g(t),!(!n.nocomment&&"#"===t.charAt(0))&&new v(t,n).match(e));e.exports=r;const o=n(5751);r.sep=o.sep;const i=Symbol("globstar **");r.GLOBSTAR=i;const a=n(5019),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},l="[^/]",c="[^/]*?",u=e=>e.split("").reduce(((e,t)=>(e[t]=!0,e)),{}),p=u("().*{}+?[]^$\\!"),d=u("[.("),f=/\/+/;r.filter=(e,t={})=>(n,o,i)=>r(n,e,t);const h=(e,t={})=>{const n={};return Object.keys(e).forEach((t=>n[t]=e[t])),Object.keys(t).forEach((e=>n[e]=t[e])),n};r.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return r;const t=r,n=(n,r,o)=>t(n,r,h(e,o));return(n.Minimatch=class extends t.Minimatch{constructor(t,n){super(t,h(e,n))}}).defaults=n=>t.defaults(h(e,n)).Minimatch,n.filter=(n,r)=>t.filter(n,h(e,r)),n.defaults=n=>t.defaults(h(e,n)),n.makeRe=(n,r)=>t.makeRe(n,h(e,r)),n.braceExpand=(n,r)=>t.braceExpand(n,h(e,r)),n.match=(n,r,o)=>t.match(n,r,h(e,o)),n},r.braceExpand=(e,t)=>m(e,t);const m=(e,t={})=>(g(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:a(e)),g=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},y=Symbol("subparse");r.makeRe=(e,t)=>new v(e,t||{}).makeRe(),r.match=(e,t,n={})=>{const r=new v(t,n);return e=e.filter((e=>r.match(e))),r.options.nonull&&!e.length&&e.push(t),e};class v{constructor(e,t){g(e),t||(t={}),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()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();let n=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,n),n=this.globParts=n.map((e=>e.split(f))),this.debug(this.pattern,n),n=n.map(((e,t,n)=>e.map(this.parse,this))),this.debug(this.pattern,n),n=n.filter((e=>-1===e.indexOf(!1))),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,n=0;for(let r=0;r>> no match, partial?",e,d,t,f),d!==s))}if("string"==typeof u?(c=p===u,this.debug("string match",u,p,c)):(c=p.match(u),this.debug("pattern match",u,p,c)),!c)return!1}if(o===s&&a===l)return!0;if(o===s)return n;if(a===l)return o===s-1&&""===e[o];throw new Error("wtf?")}braceExpand(){return m(this.pattern,this.options)}parse(e,t){g(e);const n=this.options;if("**"===e){if(!n.noglobstar)return i;e="*"}if(""===e)return"";let r="",o=!!n.nocase,a=!1;const u=[],f=[];let h,m,v,b,w=!1,x=-1,k=-1;const _="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",O=()=>{if(h){switch(h){case"*":r+=c,o=!0;break;case"?":r+=l,o=!0;break;default:r+="\\"+h}this.debug("clearStateChar %j %j",h,r),h=!1}};for(let t,i=0;i(n||(n="\\"),t+t+n+"|"))),this.debug("tail=%j\n %s",e,e,v,r);const t="*"===v.type?c:"?"===v.type?l:"\\"+v.type;o=!0,r=r.slice(0,v.reStart)+t+"\\("+e}O(),a&&(r+="\\\\");const S=d[r.charAt(0)];for(let e=f.length-1;e>-1;e--){const n=f[e],o=r.slice(0,n.reStart),i=r.slice(n.reStart,n.reEnd-8);let a=r.slice(n.reEnd);const s=r.slice(n.reEnd-8,n.reEnd)+a,l=o.split("(").length-1;let c=a;for(let e=0;e(e=e.map((e=>"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===i?i:e._src)).reduce(((e,t)=>(e[e.length-1]===i&&t===i||e.push(t),e)),[]),e.forEach(((t,r)=>{t===i&&e[r-1]!==i&&(0===r?e.length>1?e[r+1]="(?:\\/|"+n+"\\/)?"+e[r+1]:e[r]=n:r===e.length-1?e[r-1]+="(?:\\/|"+n+")?":(e[r-1]+="(?:\\/|\\/"+n+"\\/)"+e[r+1],e[r+1]=i))})),e.filter((e=>e!==i)).join("/")))).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,r)}catch(e){this.regexp=!1}return this.regexp}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const n=this.options;"/"!==o.sep&&(e=e.split(o.sep).join("/")),e=e.split(f),this.debug(this.pattern,"split",e);const r=this.set;let i;this.debug(this.pattern,"set",r);for(let t=e.length-1;t>=0&&(i=e[t],!i);t--);for(let o=0;o=0&&c>0){if(e===t)return[l,c];for(r=[],i=n.length;u>=0&&!s;)u==l?(r.push(u),l=n.indexOf(e,u+1)):1==r.length?s=[r.pop(),c]:((o=r.pop())=0?l:c;r.length&&(s=[i,a])}return s}e.exports=t,t.range=r},4480:function(e,t,n){"use strict";var r=n.g.process&&process.nextTick||n.g.setImmediate||function(e){setTimeout(e,0)};e.exports=function(e,t){return e?void t.then((function(t){r((function(){e(null,t)}))}),(function(t){r((function(){e(t)}))})):t}},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;tu;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,n){var r=n(9974),o=n(8361),i=n(7908),a=n(7466),s=n(5417),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,p=6==e,d=7==e,f=5==e||p;return function(h,m,g,y){for(var v,b,w=i(h),x=o(w),k=r(m,g,3),_=a(x.length),O=0,S=y||s,E=t?S(h,_):n||d?S(h,0):void 0;_>O;O++)if((f||O in x)&&(b=k(v=x[O],O,w),e))if(t)E[O]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return O;case 2:l.call(E,v)}else switch(e){case 4:return!1;case 7:l.call(E,v)}return p?-1:c||u?u:E}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},1194:function(e,t,n){var r=n(7293),o=n(5112),i=n(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},5417:function(e,t,n){var r=n(111),o=n(3157),i=n(5112)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,n){var r=n(1694),o=n(4326),i=n(5112)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},9920:function(e,t,n){var r=n(6656),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t){for(var n=o(t),s=a.f,l=i.f,c=0;c=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(1320),s=n(3505),l=n(9920),c=n(4705);e.exports=function(e,t){var n,u,p,d,f,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],p=e.noTargetGet?(f=o(n,u))&&f.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;l(d,p)}(e.sham||p&&p.sham)&&i(d,"sham",!0),a(n,u,d,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9974:function(e,t,n){var r=n(3099);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},5005:function(e,t,n){var r=n(857),o=n(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(e,t,n){var r=n(7908),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(r(e),t)}},3501:function(e){e.exports={}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7293),o=n(4326),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},2788:function(e,t,n){var r=n(5465),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},9909:function(e,t,n){var r,o,i,a=n(8536),s=n(7854),l=n(111),c=n(8880),u=n(6656),p=n(5465),d=n(6200),f=n(3501),h="Object already initialized",m=s.WeakMap;if(a||p.state){var g=p.state||(p.state=new m),y=g.get,v=g.has,b=g.set;r=function(e,t){if(v.call(g,e))throw new TypeError(h);return t.facade=e,b.call(g,e,t),t},o=function(e){return y.call(g,e)||{}},i=function(e){return v.call(g,e)}}else{var w=d("state");f[w]=!0,r=function(e,t){if(u(e,w))throw new TypeError(h);return t.facade=e,c(e,w,t),t},o=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4705:function(e,t,n){var r=n(7293),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},133:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(e,t,n){var r=n(7854),o=n(2788),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},30:function(e,t,n){var r,o=n(9670),i=n(6048),a=n(748),s=n(3501),l=n(490),c=n(317),u=n(6200)("IE_PROTO"),p=function(){},d=function(e){return"'),
+ (e = e.removeChild(e.firstChild)))
+ : 'string' == typeof r.is
+ ? (e = c.createElement(o, { is: r.is }))
+ : ((e = c.createElement(o)),
+ 'select' === o && ((c = e), r.multiple ? (c.multiple = !0) : r.size && (c.size = r.size)))
+ : (e = c.createElementNS(e, o)),
+ (e[jn] = t),
+ (e[Sn] = r),
+ La(e, t),
+ (t.stateNode = e),
+ (c = an(o, r)),
+ o)
+ ) {
+ case 'iframe':
+ case 'object':
+ case 'embed':
+ Kt('load', e), (u = r);
+ break;
+ case 'video':
+ case 'audio':
+ for (u = 0; u < Ge.length; u++) Kt(Ge[u], e);
+ u = r;
+ break;
+ case 'source':
+ Kt('error', e), (u = r);
+ break;
+ case 'img':
+ case 'image':
+ case 'link':
+ Kt('error', e), Kt('load', e), (u = r);
+ break;
+ case 'form':
+ Kt('reset', e), Kt('submit', e), (u = r);
+ break;
+ case 'details':
+ Kt('toggle', e), (u = r);
+ break;
+ case 'input':
+ _e(e, r), (u = Ee(e, r)), Kt('invalid', e), cn(n, 'onChange');
+ break;
+ case 'option':
+ u = ke(e, r);
+ break;
+ case 'select':
+ (e._wrapperState = { wasMultiple: !!r.multiple }),
+ (u = i({}, r, { value: void 0 })),
+ Kt('invalid', e),
+ cn(n, 'onChange');
+ break;
+ case 'textarea':
+ Te(e, r), (u = Pe(e, r)), Kt('invalid', e), cn(n, 'onChange');
+ break;
+ default:
+ u = r;
+ }
+ on(o, u);
+ var l = u;
+ for (s in l)
+ if (l.hasOwnProperty(s)) {
+ var p = l[s];
+ 'style' === s
+ ? nn(e, p)
+ : 'dangerouslySetInnerHTML' === s
+ ? null != (p = p ? p.__html : void 0) && Me(e, p)
+ : 'children' === s
+ ? 'string' == typeof p
+ ? ('textarea' !== o || '' !== p) && Le(e, p)
+ : 'number' == typeof p && Le(e, '' + p)
+ : 'suppressContentEditableWarning' !== s &&
+ 'suppressHydrationWarning' !== s &&
+ 'autoFocus' !== s &&
+ (j.hasOwnProperty(s) ? null != p && cn(n, s) : null != p && Y(e, s, p, c));
+ }
+ switch (o) {
+ case 'input':
+ xe(e), De(e, r, !1);
+ break;
+ case 'textarea':
+ xe(e), Oe(e);
+ break;
+ case 'option':
+ null != r.value && e.setAttribute('value', '' + ve(r.value));
+ break;
+ case 'select':
+ (e.multiple = !!r.multiple),
+ null != (n = r.value)
+ ? Ce(e, !!r.multiple, n, !1)
+ : null != r.defaultValue && Ce(e, !!r.multiple, r.defaultValue, !0);
+ break;
+ default:
+ 'function' == typeof u.onClick && (e.onclick = un);
+ }
+ gn(o, r) && (t.effectTag |= 4);
+ }
+ null !== t.ref && (t.effectTag |= 128);
+ }
+ return null;
+ case 6:
+ if (e && null != t.stateNode) Ua(0, t, e.memoizedProps, r);
+ else {
+ if ('string' != typeof r && null === t.stateNode) throw Error(a(166));
+ (n = To(Po.current)),
+ To(ko.current),
+ Aa(t)
+ ? ((n = t.stateNode), (r = t.memoizedProps), (n[jn] = t), n.nodeValue !== r && (t.effectTag |= 4))
+ : (((n = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[jn] = t), (t.stateNode = n));
+ }
+ return null;
+ case 13:
+ return (
+ ci(No),
+ (r = t.memoizedState),
+ 0 != (64 & t.effectTag)
+ ? ((t.expirationTime = n), t)
+ : ((n = null !== r),
+ (r = !1),
+ null === e
+ ? void 0 !== t.memoizedProps.fallback && Aa(t)
+ : ((r = null !== (o = e.memoizedState)),
+ n ||
+ null === o ||
+ (null !== (o = e.child.sibling) &&
+ (null !== (s = t.firstEffect)
+ ? ((t.firstEffect = o), (o.nextEffect = s))
+ : ((t.firstEffect = t.lastEffect = o), (o.nextEffect = null)),
+ (o.effectTag = 8)))),
+ n &&
+ !r &&
+ 0 != (2 & t.mode) &&
+ ((null === e && !0 !== t.memoizedProps.unstable_avoidThisFallback) || 0 != (1 & No.current)
+ ? As === xs && (As = ws)
+ : ((As !== xs && As !== ws) || (As = Es), 0 !== $s && null !== js && (Oc(js, Ds), Fc(js, $s)))),
+ (n || r) && (t.effectTag |= 4),
+ null)
+ );
+ case 4:
+ return Oo(), null;
+ case 10:
+ return eo(t), null;
+ case 17:
+ return mi(t.type) && yi(), null;
+ case 19:
+ if ((ci(No), null === (r = t.memoizedState))) return null;
+ if (((o = 0 != (64 & t.effectTag)), null === (s = r.rendering))) {
+ if (o) Xa(r, !1);
+ else if (As !== xs || (null !== e && 0 != (64 & e.effectTag)))
+ for (s = t.child; null !== s; ) {
+ if (null !== (e = Ro(s))) {
+ for (
+ t.effectTag |= 64,
+ Xa(r, !1),
+ null !== (o = e.updateQueue) && ((t.updateQueue = o), (t.effectTag |= 4)),
+ null === r.lastEffect && (t.firstEffect = null),
+ t.lastEffect = r.lastEffect,
+ r = t.child;
+ null !== r;
+
+ )
+ (s = n),
+ ((o = r).effectTag &= 2),
+ (o.nextEffect = null),
+ (o.firstEffect = null),
+ (o.lastEffect = null),
+ null === (e = o.alternate)
+ ? ((o.childExpirationTime = 0),
+ (o.expirationTime = s),
+ (o.child = null),
+ (o.memoizedProps = null),
+ (o.memoizedState = null),
+ (o.updateQueue = null),
+ (o.dependencies = null))
+ : ((o.childExpirationTime = e.childExpirationTime),
+ (o.expirationTime = e.expirationTime),
+ (o.child = e.child),
+ (o.memoizedProps = e.memoizedProps),
+ (o.memoizedState = e.memoizedState),
+ (o.updateQueue = e.updateQueue),
+ (s = e.dependencies),
+ (o.dependencies =
+ null === s
+ ? null
+ : {
+ expirationTime: s.expirationTime,
+ firstContext: s.firstContext,
+ responders: s.responders,
+ })),
+ (r = r.sibling);
+ return ui(No, (1 & No.current) | 2), t.child;
+ }
+ s = s.sibling;
+ }
+ } else {
+ if (!o)
+ if (null !== (e = Ro(s))) {
+ if (
+ ((t.effectTag |= 64),
+ (o = !0),
+ null !== (n = e.updateQueue) && ((t.updateQueue = n), (t.effectTag |= 4)),
+ Xa(r, !0),
+ null === r.tail && 'hidden' === r.tailMode && !s.alternate)
+ )
+ return null !== (t = t.lastEffect = r.lastEffect) && (t.nextEffect = null), null;
+ } else
+ 2 * Mi() - r.renderingStartTime > r.tailExpiration &&
+ 1 < n &&
+ ((t.effectTag |= 64), (o = !0), Xa(r, !1), (t.expirationTime = t.childExpirationTime = n - 1));
+ r.isBackwards
+ ? ((s.sibling = t.child), (t.child = s))
+ : (null !== (n = r.last) ? (n.sibling = s) : (t.child = s), (r.last = s));
+ }
+ return null !== r.tail
+ ? (0 === r.tailExpiration && (r.tailExpiration = Mi() + 500),
+ (n = r.tail),
+ (r.rendering = n),
+ (r.tail = n.sibling),
+ (r.lastEffect = t.lastEffect),
+ (r.renderingStartTime = Mi()),
+ (n.sibling = null),
+ (t = No.current),
+ ui(No, o ? (1 & t) | 2 : 1 & t),
+ n)
+ : null;
+ }
+ throw Error(a(156, t.tag));
+ }
+ function Ya(e) {
+ switch (e.tag) {
+ case 1:
+ mi(e.type) && yi();
+ var t = e.effectTag;
+ return 4096 & t ? ((e.effectTag = (-4097 & t) | 64), e) : null;
+ case 3:
+ if ((Oo(), ci(fi), ci(pi), 0 != (64 & (t = e.effectTag)))) throw Error(a(285));
+ return (e.effectTag = (-4097 & t) | 64), e;
+ case 5:
+ return Io(e), null;
+ case 13:
+ return ci(No), 4096 & (t = e.effectTag) ? ((e.effectTag = (-4097 & t) | 64), e) : null;
+ case 19:
+ return ci(No), null;
+ case 4:
+ return Oo(), null;
+ case 10:
+ return eo(e), null;
+ default:
+ return null;
+ }
+ }
+ function Za(e, t) {
+ return { value: e, source: t, stack: ge(t) };
+ }
+ (La = function (e, t) {
+ for (var n = t.child; null !== n; ) {
+ if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode);
+ else if (4 !== n.tag && null !== n.child) {
+ (n.child.return = n), (n = n.child);
+ continue;
+ }
+ if (n === t) break;
+ for (; null === n.sibling; ) {
+ if (null === n.return || n.return === t) return;
+ n = n.return;
+ }
+ (n.sibling.return = n.return), (n = n.sibling);
+ }
+ }),
+ (za = function (e, t, n, r, o) {
+ var a = e.memoizedProps;
+ if (a !== r) {
+ var s,
+ c,
+ u = t.stateNode;
+ switch ((To(ko.current), (e = null), n)) {
+ case 'input':
+ (a = Ee(u, a)), (r = Ee(u, r)), (e = []);
+ break;
+ case 'option':
+ (a = ke(u, a)), (r = ke(u, r)), (e = []);
+ break;
+ case 'select':
+ (a = i({}, a, { value: void 0 })), (r = i({}, r, { value: void 0 })), (e = []);
+ break;
+ case 'textarea':
+ (a = Pe(u, a)), (r = Pe(u, r)), (e = []);
+ break;
+ default:
+ 'function' != typeof a.onClick && 'function' == typeof r.onClick && (u.onclick = un);
+ }
+ for (s in (on(n, r), (n = null), a))
+ if (!r.hasOwnProperty(s) && a.hasOwnProperty(s) && null != a[s])
+ if ('style' === s) for (c in (u = a[s])) u.hasOwnProperty(c) && (n || (n = {}), (n[c] = ''));
+ else
+ 'dangerouslySetInnerHTML' !== s &&
+ 'children' !== s &&
+ 'suppressContentEditableWarning' !== s &&
+ 'suppressHydrationWarning' !== s &&
+ 'autoFocus' !== s &&
+ (j.hasOwnProperty(s) ? e || (e = []) : (e = e || []).push(s, null));
+ for (s in r) {
+ var l = r[s];
+ if (((u = null != a ? a[s] : void 0), r.hasOwnProperty(s) && l !== u && (null != l || null != u)))
+ if ('style' === s)
+ if (u) {
+ for (c in u) !u.hasOwnProperty(c) || (l && l.hasOwnProperty(c)) || (n || (n = {}), (n[c] = ''));
+ for (c in l) l.hasOwnProperty(c) && u[c] !== l[c] && (n || (n = {}), (n[c] = l[c]));
+ } else n || (e || (e = []), e.push(s, n)), (n = l);
+ else
+ 'dangerouslySetInnerHTML' === s
+ ? ((l = l ? l.__html : void 0),
+ (u = u ? u.__html : void 0),
+ null != l && u !== l && (e = e || []).push(s, l))
+ : 'children' === s
+ ? u === l || ('string' != typeof l && 'number' != typeof l) || (e = e || []).push(s, '' + l)
+ : 'suppressContentEditableWarning' !== s &&
+ 'suppressHydrationWarning' !== s &&
+ (j.hasOwnProperty(s)
+ ? (null != l && cn(o, s), e || u === l || (e = []))
+ : (e = e || []).push(s, l));
+ }
+ n && (e = e || []).push('style', n), (o = e), (t.updateQueue = o) && (t.effectTag |= 4);
+ }
+ }),
+ (Ua = function (e, t, n, r) {
+ n !== r && (t.effectTag |= 4);
+ });
+ var Qa = 'function' == typeof WeakSet ? WeakSet : Set;
+ function es(e, t) {
+ var n = t.source,
+ r = t.stack;
+ null === r && null !== n && (r = ge(n)),
+ null !== n && ye(n.type),
+ (t = t.value),
+ null !== e && 1 === e.tag && ye(e.type);
+ try {
+ console.error(t);
+ } catch (e) {
+ setTimeout(function () {
+ throw e;
+ });
+ }
+ }
+ function ts(e) {
+ var t = e.ref;
+ if (null !== t)
+ if ('function' == typeof t)
+ try {
+ t(null);
+ } catch (t) {
+ vc(e, t);
+ }
+ else t.current = null;
+ }
+ function ns(e, t) {
+ switch (t.tag) {
+ case 0:
+ case 11:
+ case 15:
+ case 22:
+ return;
+ case 1:
+ if (256 & t.effectTag && null !== e) {
+ var n = e.memoizedProps,
+ r = e.memoizedState;
+ (t = (e = t.stateNode).getSnapshotBeforeUpdate(t.elementType === t.type ? n : Wi(t.type, n), r)),
+ (e.__reactInternalSnapshotBeforeUpdate = t);
+ }
+ return;
+ case 3:
+ case 5:
+ case 6:
+ case 4:
+ case 17:
+ return;
+ }
+ throw Error(a(163));
+ }
+ function rs(e, t) {
+ if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) {
+ var n = (t = t.next);
+ do {
+ if ((n.tag & e) === e) {
+ var r = n.destroy;
+ (n.destroy = void 0), void 0 !== r && r();
+ }
+ n = n.next;
+ } while (n !== t);
+ }
+ }
+ function is(e, t) {
+ if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) {
+ var n = (t = t.next);
+ do {
+ if ((n.tag & e) === e) {
+ var r = n.create;
+ n.destroy = r();
+ }
+ n = n.next;
+ } while (n !== t);
+ }
+ }
+ function os(e, t, n) {
+ switch (n.tag) {
+ case 0:
+ case 11:
+ case 15:
+ case 22:
+ return void is(3, n);
+ case 1:
+ if (((e = n.stateNode), 4 & n.effectTag))
+ if (null === t) e.componentDidMount();
+ else {
+ var r = n.elementType === n.type ? t.memoizedProps : Wi(n.type, t.memoizedProps);
+ e.componentDidUpdate(r, t.memoizedState, e.__reactInternalSnapshotBeforeUpdate);
+ }
+ return void (null !== (t = n.updateQueue) && po(n, t, e));
+ case 3:
+ if (null !== (t = n.updateQueue)) {
+ if (((e = null), null !== n.child))
+ switch (n.child.tag) {
+ case 5:
+ e = n.child.stateNode;
+ break;
+ case 1:
+ e = n.child.stateNode;
+ }
+ po(n, t, e);
+ }
+ return;
+ case 5:
+ return (e = n.stateNode), void (null === t && 4 & n.effectTag && gn(n.type, n.memoizedProps) && e.focus());
+ case 6:
+ case 4:
+ case 12:
+ return;
+ case 13:
+ return void (
+ null === n.memoizedState &&
+ ((n = n.alternate),
+ null !== n && ((n = n.memoizedState), null !== n && ((n = n.dehydrated), null !== n && Nt(n))))
+ );
+ case 19:
+ case 17:
+ case 20:
+ case 21:
+ return;
+ }
+ throw Error(a(163));
+ }
+ function as(e, t, n) {
+ switch (('function' == typeof Ec && Ec(t), t.tag)) {
+ case 0:
+ case 11:
+ case 14:
+ case 15:
+ case 22:
+ if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) {
+ var r = e.next;
+ Ui(97 < n ? 97 : n, function () {
+ var e = r;
+ do {
+ var n = e.destroy;
+ if (void 0 !== n) {
+ var i = t;
+ try {
+ n();
+ } catch (e) {
+ vc(i, e);
+ }
+ }
+ e = e.next;
+ } while (e !== r);
+ });
+ }
+ break;
+ case 1:
+ ts(t),
+ 'function' == typeof (n = t.stateNode).componentWillUnmount &&
+ (function (e, t) {
+ try {
+ (t.props = e.memoizedProps), (t.state = e.memoizedState), t.componentWillUnmount();
+ } catch (t) {
+ vc(e, t);
+ }
+ })(t, n);
+ break;
+ case 5:
+ ts(t);
+ break;
+ case 4:
+ ls(e, t, n);
+ }
+ }
+ function ss(e) {
+ var t = e.alternate;
+ (e.return = null),
+ (e.child = null),
+ (e.memoizedState = null),
+ (e.updateQueue = null),
+ (e.dependencies = null),
+ (e.alternate = null),
+ (e.firstEffect = null),
+ (e.lastEffect = null),
+ (e.pendingProps = null),
+ (e.memoizedProps = null),
+ (e.stateNode = null),
+ null !== t && ss(t);
+ }
+ function cs(e) {
+ return 5 === e.tag || 3 === e.tag || 4 === e.tag;
+ }
+ function us(e) {
+ e: {
+ for (var t = e.return; null !== t; ) {
+ if (cs(t)) {
+ var n = t;
+ break e;
+ }
+ t = t.return;
+ }
+ throw Error(a(160));
+ }
+ switch (((t = n.stateNode), n.tag)) {
+ case 5:
+ var r = !1;
+ break;
+ case 3:
+ case 4:
+ (t = t.containerInfo), (r = !0);
+ break;
+ default:
+ throw Error(a(161));
+ }
+ 16 & n.effectTag && (Le(t, ''), (n.effectTag &= -17));
+ e: t: for (n = e; ; ) {
+ for (; null === n.sibling; ) {
+ if (null === n.return || cs(n.return)) {
+ n = null;
+ break e;
+ }
+ n = n.return;
+ }
+ for (n.sibling.return = n.return, n = n.sibling; 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; ) {
+ if (2 & n.effectTag) continue t;
+ if (null === n.child || 4 === n.tag) continue t;
+ (n.child.return = n), (n = n.child);
+ }
+ if (!(2 & n.effectTag)) {
+ n = n.stateNode;
+ break e;
+ }
+ }
+ r
+ ? (function e(t, n, r) {
+ var i = t.tag,
+ o = 5 === i || 6 === i;
+ if (o)
+ (t = o ? t.stateNode : t.stateNode.instance),
+ n
+ ? 8 === r.nodeType
+ ? r.parentNode.insertBefore(t, n)
+ : r.insertBefore(t, n)
+ : (8 === r.nodeType ? (n = r.parentNode).insertBefore(t, r) : (n = r).appendChild(t),
+ (null !== (r = r._reactRootContainer) && void 0 !== r) || null !== n.onclick || (n.onclick = un));
+ else if (4 !== i && null !== (t = t.child))
+ for (e(t, n, r), t = t.sibling; null !== t; ) e(t, n, r), (t = t.sibling);
+ })(e, n, t)
+ : (function e(t, n, r) {
+ var i = t.tag,
+ o = 5 === i || 6 === i;
+ if (o) (t = o ? t.stateNode : t.stateNode.instance), n ? r.insertBefore(t, n) : r.appendChild(t);
+ else if (4 !== i && null !== (t = t.child))
+ for (e(t, n, r), t = t.sibling; null !== t; ) e(t, n, r), (t = t.sibling);
+ })(e, n, t);
+ }
+ function ls(e, t, n) {
+ for (var r, i, o = t, s = !1; ; ) {
+ if (!s) {
+ s = o.return;
+ e: for (;;) {
+ if (null === s) throw Error(a(160));
+ switch (((r = s.stateNode), s.tag)) {
+ case 5:
+ i = !1;
+ break e;
+ case 3:
+ case 4:
+ (r = r.containerInfo), (i = !0);
+ break e;
+ }
+ s = s.return;
+ }
+ s = !0;
+ }
+ if (5 === o.tag || 6 === o.tag) {
+ e: for (var c = e, u = o, l = n, p = u; ; )
+ if ((as(c, p, l), null !== p.child && 4 !== p.tag)) (p.child.return = p), (p = p.child);
+ else {
+ if (p === u) break e;
+ for (; null === p.sibling; ) {
+ if (null === p.return || p.return === u) break e;
+ p = p.return;
+ }
+ (p.sibling.return = p.return), (p = p.sibling);
+ }
+ i
+ ? ((c = r), (u = o.stateNode), 8 === c.nodeType ? c.parentNode.removeChild(u) : c.removeChild(u))
+ : r.removeChild(o.stateNode);
+ } else if (4 === o.tag) {
+ if (null !== o.child) {
+ (r = o.stateNode.containerInfo), (i = !0), (o.child.return = o), (o = o.child);
+ continue;
+ }
+ } else if ((as(e, o, n), null !== o.child)) {
+ (o.child.return = o), (o = o.child);
+ continue;
+ }
+ if (o === t) break;
+ for (; null === o.sibling; ) {
+ if (null === o.return || o.return === t) return;
+ 4 === (o = o.return).tag && (s = !1);
+ }
+ (o.sibling.return = o.return), (o = o.sibling);
+ }
+ }
+ function ps(e, t) {
+ switch (t.tag) {
+ case 0:
+ case 11:
+ case 14:
+ case 15:
+ case 22:
+ return void rs(3, t);
+ case 1:
+ return;
+ case 5:
+ var n = t.stateNode;
+ if (null != n) {
+ var r = t.memoizedProps,
+ i = null !== e ? e.memoizedProps : r;
+ e = t.type;
+ var o = t.updateQueue;
+ if (((t.updateQueue = null), null !== o)) {
+ for (
+ n[Sn] = r,
+ 'input' === e && 'radio' === r.type && null != r.name && je(n, r),
+ an(e, i),
+ t = an(e, r),
+ i = 0;
+ i < o.length;
+ i += 2
+ ) {
+ var s = o[i],
+ c = o[i + 1];
+ 'style' === s
+ ? nn(n, c)
+ : 'dangerouslySetInnerHTML' === s
+ ? Me(n, c)
+ : 'children' === s
+ ? Le(n, c)
+ : Y(n, s, c, t);
+ }
+ switch (e) {
+ case 'input':
+ Se(n, r);
+ break;
+ case 'textarea':
+ $e(n, r);
+ break;
+ case 'select':
+ (t = n._wrapperState.wasMultiple),
+ (n._wrapperState.wasMultiple = !!r.multiple),
+ null != (e = r.value)
+ ? Ce(n, !!r.multiple, e, !1)
+ : t !== !!r.multiple &&
+ (null != r.defaultValue
+ ? Ce(n, !!r.multiple, r.defaultValue, !0)
+ : Ce(n, !!r.multiple, r.multiple ? [] : '', !1));
+ }
+ }
+ }
+ return;
+ case 6:
+ if (null === t.stateNode) throw Error(a(162));
+ return void (t.stateNode.nodeValue = t.memoizedProps);
+ case 3:
+ return void ((t = t.stateNode).hydrate && ((t.hydrate = !1), Nt(t.containerInfo)));
+ case 12:
+ return;
+ case 13:
+ if (((n = t), null === t.memoizedState ? (r = !1) : ((r = !0), (n = t.child), (Fs = Mi())), null !== n))
+ e: for (e = n; ; ) {
+ if (5 === e.tag)
+ (o = e.stateNode),
+ r
+ ? 'function' == typeof (o = o.style).setProperty
+ ? o.setProperty('display', 'none', 'important')
+ : (o.display = 'none')
+ : ((o = e.stateNode),
+ (i = null != (i = e.memoizedProps.style) && i.hasOwnProperty('display') ? i.display : null),
+ (o.style.display = tn('display', i)));
+ else if (6 === e.tag) e.stateNode.nodeValue = r ? '' : e.memoizedProps;
+ else {
+ if (13 === e.tag && null !== e.memoizedState && null === e.memoizedState.dehydrated) {
+ ((o = e.child.sibling).return = e), (e = o);
+ continue;
+ }
+ if (null !== e.child) {
+ (e.child.return = e), (e = e.child);
+ continue;
+ }
+ }
+ if (e === n) break;
+ for (; null === e.sibling; ) {
+ if (null === e.return || e.return === n) break e;
+ e = e.return;
+ }
+ (e.sibling.return = e.return), (e = e.sibling);
+ }
+ return void fs(t);
+ case 19:
+ return void fs(t);
+ case 17:
+ return;
+ }
+ throw Error(a(163));
+ }
+ function fs(e) {
+ var t = e.updateQueue;
+ if (null !== t) {
+ e.updateQueue = null;
+ var n = e.stateNode;
+ null === n && (n = e.stateNode = new Qa()),
+ t.forEach(function (t) {
+ var r = xc.bind(null, e, t);
+ n.has(t) || (n.add(t), t.then(r, r));
+ });
+ }
+ }
+ var hs = 'function' == typeof WeakMap ? WeakMap : Map;
+ function ds(e, t, n) {
+ ((n = so(n, null)).tag = 3), (n.payload = { element: null });
+ var r = t.value;
+ return (
+ (n.callback = function () {
+ Ns || ((Ns = !0), (Rs = r)), es(e, t);
+ }),
+ n
+ );
+ }
+ function ms(e, t, n) {
+ (n = so(n, null)).tag = 3;
+ var r = e.type.getDerivedStateFromError;
+ if ('function' == typeof r) {
+ var i = t.value;
+ n.payload = function () {
+ return es(e, t), r(i);
+ };
+ }
+ var o = e.stateNode;
+ return (
+ null !== o &&
+ 'function' == typeof o.componentDidCatch &&
+ (n.callback = function () {
+ 'function' != typeof r && (null === Bs ? (Bs = new Set([this])) : Bs.add(this), es(e, t));
+ var n = t.stack;
+ this.componentDidCatch(t.value, { componentStack: null !== n ? n : '' });
+ }),
+ n
+ );
+ }
+ var ys,
+ gs = Math.ceil,
+ vs = G.ReactCurrentDispatcher,
+ bs = G.ReactCurrentOwner,
+ xs = 0,
+ ws = 3,
+ Es = 4,
+ _s = 0,
+ js = null,
+ Ss = null,
+ Ds = 0,
+ As = xs,
+ ks = null,
+ Cs = 1073741823,
+ Ps = 1073741823,
+ Ts = null,
+ $s = 0,
+ Os = !1,
+ Fs = 0,
+ Is = null,
+ Ns = !1,
+ Rs = null,
+ Bs = null,
+ Ms = !1,
+ Ls = null,
+ zs = 90,
+ Us = null,
+ qs = 0,
+ Hs = null,
+ Vs = 0;
+ function Js() {
+ return 0 != (48 & _s) ? 1073741821 - ((Mi() / 10) | 0) : 0 !== Vs ? Vs : (Vs = 1073741821 - ((Mi() / 10) | 0));
+ }
+ function Ks(e, t, n) {
+ if (0 == (2 & (t = t.mode))) return 1073741823;
+ var r = Li();
+ if (0 == (4 & t)) return 99 === r ? 1073741823 : 1073741822;
+ if (0 != (16 & _s)) return Ds;
+ if (null !== n) e = Ki(e, 0 | n.timeoutMs || 5e3, 250);
+ else
+ switch (r) {
+ case 99:
+ e = 1073741823;
+ break;
+ case 98:
+ e = Ki(e, 150, 100);
+ break;
+ case 97:
+ case 96:
+ e = Ki(e, 5e3, 250);
+ break;
+ case 95:
+ e = 2;
+ break;
+ default:
+ throw Error(a(326));
+ }
+ return null !== js && e === Ds && --e, e;
+ }
+ function Ws(e, t) {
+ if (50 < qs) throw ((qs = 0), (Hs = null), Error(a(185)));
+ if (null !== (e = Xs(e, t))) {
+ var n = Li();
+ 1073741823 === t ? (0 != (8 & _s) && 0 == (48 & _s) ? Qs(e) : (Ys(e), 0 === _s && Vi())) : Ys(e),
+ 0 == (4 & _s) ||
+ (98 !== n && 99 !== n) ||
+ (null === Us ? (Us = new Map([[e, t]])) : (void 0 === (n = Us.get(e)) || n > t) && Us.set(e, t));
+ }
+ }
+ function Xs(e, t) {
+ e.expirationTime < t && (e.expirationTime = t);
+ var n = e.alternate;
+ null !== n && n.expirationTime < t && (n.expirationTime = t);
+ var r = e.return,
+ i = null;
+ if (null === r && 3 === e.tag) i = e.stateNode;
+ else
+ for (; null !== r; ) {
+ if (
+ ((n = r.alternate),
+ r.childExpirationTime < t && (r.childExpirationTime = t),
+ null !== n && n.childExpirationTime < t && (n.childExpirationTime = t),
+ null === r.return && 3 === r.tag)
+ ) {
+ i = r.stateNode;
+ break;
+ }
+ r = r.return;
+ }
+ return null !== i && (js === i && (ac(t), As === Es && Oc(i, Ds)), Fc(i, t)), i;
+ }
+ function Gs(e) {
+ var t = e.lastExpiredTime;
+ if (0 !== t) return t;
+ if (!$c(e, (t = e.firstPendingTime))) return t;
+ var n = e.lastPingedTime;
+ return 2 >= (e = n > (e = e.nextKnownPendingLevel) ? n : e) && t !== e ? 0 : e;
+ }
+ function Ys(e) {
+ if (0 !== e.lastExpiredTime)
+ (e.callbackExpirationTime = 1073741823), (e.callbackPriority = 99), (e.callbackNode = Hi(Qs.bind(null, e)));
+ else {
+ var t = Gs(e),
+ n = e.callbackNode;
+ if (0 === t)
+ null !== n && ((e.callbackNode = null), (e.callbackExpirationTime = 0), (e.callbackPriority = 90));
+ else {
+ var r = Js();
+ if (
+ (1073741823 === t
+ ? (r = 99)
+ : 1 === t || 2 === t
+ ? (r = 95)
+ : (r =
+ 0 >= (r = 10 * (1073741821 - t) - 10 * (1073741821 - r))
+ ? 99
+ : 250 >= r
+ ? 98
+ : 5250 >= r
+ ? 97
+ : 95),
+ null !== n)
+ ) {
+ var i = e.callbackPriority;
+ if (e.callbackExpirationTime === t && i >= r) return;
+ n !== $i && _i(n);
+ }
+ (e.callbackExpirationTime = t),
+ (e.callbackPriority = r),
+ (t =
+ 1073741823 === t
+ ? Hi(Qs.bind(null, e))
+ : qi(r, Zs.bind(null, e), { timeout: 10 * (1073741821 - t) - Mi() })),
+ (e.callbackNode = t);
+ }
+ }
+ }
+ function Zs(e, t) {
+ if (((Vs = 0), t)) return Ic(e, (t = Js())), Ys(e), null;
+ var n = Gs(e);
+ if (0 !== n) {
+ if (((t = e.callbackNode), 0 != (48 & _s))) throw Error(a(327));
+ if ((mc(), (e === js && n === Ds) || nc(e, n), null !== Ss)) {
+ var r = _s;
+ _s |= 16;
+ for (var i = ic(); ; )
+ try {
+ cc();
+ break;
+ } catch (t) {
+ rc(e, t);
+ }
+ if ((Qi(), (_s = r), (vs.current = i), 1 === As)) throw ((t = ks), nc(e, n), Oc(e, n), Ys(e), t);
+ if (null === Ss)
+ switch (
+ ((i = e.finishedWork = e.current.alternate), (e.finishedExpirationTime = n), (r = As), (js = null), r)
+ ) {
+ case xs:
+ case 1:
+ throw Error(a(345));
+ case 2:
+ Ic(e, 2 < n ? 2 : n);
+ break;
+ case ws:
+ if (
+ (Oc(e, n),
+ n === (r = e.lastSuspendedTime) && (e.nextKnownPendingLevel = pc(i)),
+ 1073741823 === Cs && 10 < (i = Fs + 500 - Mi()))
+ ) {
+ if (Os) {
+ var o = e.lastPingedTime;
+ if (0 === o || o >= n) {
+ (e.lastPingedTime = n), nc(e, n);
+ break;
+ }
+ }
+ if (0 !== (o = Gs(e)) && o !== n) break;
+ if (0 !== r && r !== n) {
+ e.lastPingedTime = r;
+ break;
+ }
+ e.timeoutHandle = bn(fc.bind(null, e), i);
+ break;
+ }
+ fc(e);
+ break;
+ case Es:
+ if (
+ (Oc(e, n),
+ n === (r = e.lastSuspendedTime) && (e.nextKnownPendingLevel = pc(i)),
+ Os && (0 === (i = e.lastPingedTime) || i >= n))
+ ) {
+ (e.lastPingedTime = n), nc(e, n);
+ break;
+ }
+ if (0 !== (i = Gs(e)) && i !== n) break;
+ if (0 !== r && r !== n) {
+ e.lastPingedTime = r;
+ break;
+ }
+ if (
+ (1073741823 !== Ps
+ ? (r = 10 * (1073741821 - Ps) - Mi())
+ : 1073741823 === Cs
+ ? (r = 0)
+ : ((r = 10 * (1073741821 - Cs) - 5e3),
+ 0 > (r = (i = Mi()) - r) && (r = 0),
+ (n = 10 * (1073741821 - n) - i) <
+ (r =
+ (120 > r
+ ? 120
+ : 480 > r
+ ? 480
+ : 1080 > r
+ ? 1080
+ : 1920 > r
+ ? 1920
+ : 3e3 > r
+ ? 3e3
+ : 4320 > r
+ ? 4320
+ : 1960 * gs(r / 1960)) - r) && (r = n)),
+ 10 < r)
+ ) {
+ e.timeoutHandle = bn(fc.bind(null, e), r);
+ break;
+ }
+ fc(e);
+ break;
+ case 5:
+ if (1073741823 !== Cs && null !== Ts) {
+ o = Cs;
+ var s = Ts;
+ if (
+ (0 >= (r = 0 | s.busyMinDurationMs)
+ ? (r = 0)
+ : ((i = 0 | s.busyDelayMs),
+ (r = (o = Mi() - (10 * (1073741821 - o) - (0 | s.timeoutMs || 5e3))) <= i ? 0 : i + r - o)),
+ 10 < r)
+ ) {
+ Oc(e, n), (e.timeoutHandle = bn(fc.bind(null, e), r));
+ break;
+ }
+ }
+ fc(e);
+ break;
+ default:
+ throw Error(a(329));
+ }
+ if ((Ys(e), e.callbackNode === t)) return Zs.bind(null, e);
+ }
+ }
+ return null;
+ }
+ function Qs(e) {
+ var t = e.lastExpiredTime;
+ if (((t = 0 !== t ? t : 1073741823), 0 != (48 & _s))) throw Error(a(327));
+ if ((mc(), (e === js && t === Ds) || nc(e, t), null !== Ss)) {
+ var n = _s;
+ _s |= 16;
+ for (var r = ic(); ; )
+ try {
+ sc();
+ break;
+ } catch (t) {
+ rc(e, t);
+ }
+ if ((Qi(), (_s = n), (vs.current = r), 1 === As)) throw ((n = ks), nc(e, t), Oc(e, t), Ys(e), n);
+ if (null !== Ss) throw Error(a(261));
+ (e.finishedWork = e.current.alternate), (e.finishedExpirationTime = t), (js = null), fc(e), Ys(e);
+ }
+ return null;
+ }
+ function ec(e, t) {
+ var n = _s;
+ _s |= 1;
+ try {
+ return e(t);
+ } finally {
+ 0 === (_s = n) && Vi();
+ }
+ }
+ function tc(e, t) {
+ var n = _s;
+ (_s &= -2), (_s |= 8);
+ try {
+ return e(t);
+ } finally {
+ 0 === (_s = n) && Vi();
+ }
+ }
+ function nc(e, t) {
+ (e.finishedWork = null), (e.finishedExpirationTime = 0);
+ var n = e.timeoutHandle;
+ if ((-1 !== n && ((e.timeoutHandle = -1), xn(n)), null !== Ss))
+ for (n = Ss.return; null !== n; ) {
+ var r = n;
+ switch (r.tag) {
+ case 1:
+ null != (r = r.type.childContextTypes) && yi();
+ break;
+ case 3:
+ Oo(), ci(fi), ci(pi);
+ break;
+ case 5:
+ Io(r);
+ break;
+ case 4:
+ Oo();
+ break;
+ case 13:
+ case 19:
+ ci(No);
+ break;
+ case 10:
+ eo(r);
+ }
+ n = n.return;
+ }
+ (js = e),
+ (Ss = Dc(e.current, null)),
+ (Ds = t),
+ (As = xs),
+ (ks = null),
+ (Ps = Cs = 1073741823),
+ (Ts = null),
+ ($s = 0),
+ (Os = !1);
+ }
+ function rc(e, t) {
+ for (;;) {
+ try {
+ if ((Qi(), (Mo.current = ya), Vo))
+ for (var n = Uo.memoizedState; null !== n; ) {
+ var r = n.queue;
+ null !== r && (r.pending = null), (n = n.next);
+ }
+ if (((zo = 0), (Ho = qo = Uo = null), (Vo = !1), null === Ss || null === Ss.return))
+ return (As = 1), (ks = t), (Ss = null);
+ e: {
+ var i = e,
+ o = Ss.return,
+ a = Ss,
+ s = t;
+ if (
+ ((t = Ds),
+ (a.effectTag |= 2048),
+ (a.firstEffect = a.lastEffect = null),
+ null !== s && 'object' == typeof s && 'function' == typeof s.then)
+ ) {
+ var c = s;
+ if (0 == (2 & a.mode)) {
+ var u = a.alternate;
+ u
+ ? ((a.updateQueue = u.updateQueue),
+ (a.memoizedState = u.memoizedState),
+ (a.expirationTime = u.expirationTime))
+ : ((a.updateQueue = null), (a.memoizedState = null));
+ }
+ var l = 0 != (1 & No.current),
+ p = o;
+ do {
+ var f;
+ if ((f = 13 === p.tag)) {
+ var h = p.memoizedState;
+ if (null !== h) f = null !== h.dehydrated;
+ else {
+ var d = p.memoizedProps;
+ f = void 0 !== d.fallback && (!0 !== d.unstable_avoidThisFallback || !l);
+ }
+ }
+ if (f) {
+ var m = p.updateQueue;
+ if (null === m) {
+ var y = new Set();
+ y.add(c), (p.updateQueue = y);
+ } else m.add(c);
+ if (0 == (2 & p.mode)) {
+ if (((p.effectTag |= 64), (a.effectTag &= -2981), 1 === a.tag))
+ if (null === a.alternate) a.tag = 17;
+ else {
+ var g = so(1073741823, null);
+ (g.tag = 2), co(a, g);
+ }
+ a.expirationTime = 1073741823;
+ break e;
+ }
+ (s = void 0), (a = t);
+ var v = i.pingCache;
+ if (
+ (null === v
+ ? ((v = i.pingCache = new hs()), (s = new Set()), v.set(c, s))
+ : void 0 === (s = v.get(c)) && ((s = new Set()), v.set(c, s)),
+ !s.has(a))
+ ) {
+ s.add(a);
+ var b = bc.bind(null, i, c, a);
+ c.then(b, b);
+ }
+ (p.effectTag |= 4096), (p.expirationTime = t);
+ break e;
+ }
+ p = p.return;
+ } while (null !== p);
+ s = Error(
+ (ye(a.type) || 'A React component') +
+ ' suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.' +
+ ge(a)
+ );
+ }
+ 5 !== As && (As = 2), (s = Za(s, a)), (p = o);
+ do {
+ switch (p.tag) {
+ case 3:
+ (c = s), (p.effectTag |= 4096), (p.expirationTime = t), uo(p, ds(p, c, t));
+ break e;
+ case 1:
+ c = s;
+ var x = p.type,
+ w = p.stateNode;
+ if (
+ 0 == (64 & p.effectTag) &&
+ ('function' == typeof x.getDerivedStateFromError ||
+ (null !== w && 'function' == typeof w.componentDidCatch && (null === Bs || !Bs.has(w))))
+ ) {
+ (p.effectTag |= 4096), (p.expirationTime = t), uo(p, ms(p, c, t));
+ break e;
+ }
+ }
+ p = p.return;
+ } while (null !== p);
+ }
+ Ss = lc(Ss);
+ } catch (e) {
+ t = e;
+ continue;
+ }
+ break;
+ }
+ }
+ function ic() {
+ var e = vs.current;
+ return (vs.current = ya), null === e ? ya : e;
+ }
+ function oc(e, t) {
+ e < Cs && 2 < e && (Cs = e), null !== t && e < Ps && 2 < e && ((Ps = e), (Ts = t));
+ }
+ function ac(e) {
+ e > $s && ($s = e);
+ }
+ function sc() {
+ for (; null !== Ss; ) Ss = uc(Ss);
+ }
+ function cc() {
+ for (; null !== Ss && !Oi(); ) Ss = uc(Ss);
+ }
+ function uc(e) {
+ var t = ys(e.alternate, e, Ds);
+ return (e.memoizedProps = e.pendingProps), null === t && (t = lc(e)), (bs.current = null), t;
+ }
+ function lc(e) {
+ Ss = e;
+ do {
+ var t = Ss.alternate;
+ if (((e = Ss.return), 0 == (2048 & Ss.effectTag))) {
+ if (((t = Ga(t, Ss, Ds)), 1 === Ds || 1 !== Ss.childExpirationTime)) {
+ for (var n = 0, r = Ss.child; null !== r; ) {
+ var i = r.expirationTime,
+ o = r.childExpirationTime;
+ i > n && (n = i), o > n && (n = o), (r = r.sibling);
+ }
+ Ss.childExpirationTime = n;
+ }
+ if (null !== t) return t;
+ null !== e &&
+ 0 == (2048 & e.effectTag) &&
+ (null === e.firstEffect && (e.firstEffect = Ss.firstEffect),
+ null !== Ss.lastEffect &&
+ (null !== e.lastEffect && (e.lastEffect.nextEffect = Ss.firstEffect), (e.lastEffect = Ss.lastEffect)),
+ 1 < Ss.effectTag &&
+ (null !== e.lastEffect ? (e.lastEffect.nextEffect = Ss) : (e.firstEffect = Ss), (e.lastEffect = Ss)));
+ } else {
+ if (null !== (t = Ya(Ss))) return (t.effectTag &= 2047), t;
+ null !== e && ((e.firstEffect = e.lastEffect = null), (e.effectTag |= 2048));
+ }
+ if (null !== (t = Ss.sibling)) return t;
+ Ss = e;
+ } while (null !== Ss);
+ return As === xs && (As = 5), null;
+ }
+ function pc(e) {
+ var t = e.expirationTime;
+ return t > (e = e.childExpirationTime) ? t : e;
+ }
+ function fc(e) {
+ var t = Li();
+ return Ui(99, hc.bind(null, e, t)), null;
+ }
+ function hc(e, t) {
+ do {
+ mc();
+ } while (null !== Ls);
+ if (0 != (48 & _s)) throw Error(a(327));
+ var n = e.finishedWork,
+ r = e.finishedExpirationTime;
+ if (null === n) return null;
+ if (((e.finishedWork = null), (e.finishedExpirationTime = 0), n === e.current)) throw Error(a(177));
+ (e.callbackNode = null),
+ (e.callbackExpirationTime = 0),
+ (e.callbackPriority = 90),
+ (e.nextKnownPendingLevel = 0);
+ var i = pc(n);
+ if (
+ ((e.firstPendingTime = i),
+ r <= e.lastSuspendedTime
+ ? (e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0)
+ : r <= e.firstSuspendedTime && (e.firstSuspendedTime = r - 1),
+ r <= e.lastPingedTime && (e.lastPingedTime = 0),
+ r <= e.lastExpiredTime && (e.lastExpiredTime = 0),
+ e === js && ((Ss = js = null), (Ds = 0)),
+ 1 < n.effectTag
+ ? null !== n.lastEffect
+ ? ((n.lastEffect.nextEffect = n), (i = n.firstEffect))
+ : (i = n)
+ : (i = n.firstEffect),
+ null !== i)
+ ) {
+ var o = _s;
+ (_s |= 32), (bs.current = null), (mn = Jt);
+ var s = hn();
+ if (dn(s)) {
+ if ('selectionStart' in s) var c = { start: s.selectionStart, end: s.selectionEnd };
+ else
+ e: {
+ var u = (c = ((c = s.ownerDocument) && c.defaultView) || window).getSelection && c.getSelection();
+ if (u && 0 !== u.rangeCount) {
+ c = u.anchorNode;
+ var l = u.anchorOffset,
+ p = u.focusNode;
+ u = u.focusOffset;
+ try {
+ c.nodeType, p.nodeType;
+ } catch (e) {
+ c = null;
+ break e;
+ }
+ var f = 0,
+ h = -1,
+ d = -1,
+ m = 0,
+ y = 0,
+ g = s,
+ v = null;
+ t: for (;;) {
+ for (
+ var b;
+ g !== c || (0 !== l && 3 !== g.nodeType) || (h = f + l),
+ g !== p || (0 !== u && 3 !== g.nodeType) || (d = f + u),
+ 3 === g.nodeType && (f += g.nodeValue.length),
+ null !== (b = g.firstChild);
+
+ )
+ (v = g), (g = b);
+ for (;;) {
+ if (g === s) break t;
+ if (
+ (v === c && ++m === l && (h = f), v === p && ++y === u && (d = f), null !== (b = g.nextSibling))
+ )
+ break;
+ v = (g = v).parentNode;
+ }
+ g = b;
+ }
+ c = -1 === h || -1 === d ? null : { start: h, end: d };
+ } else c = null;
+ }
+ c = c || { start: 0, end: 0 };
+ } else c = null;
+ (yn = { activeElementDetached: null, focusedElem: s, selectionRange: c }), (Jt = !1), (Is = i);
+ do {
+ try {
+ dc();
+ } catch (e) {
+ if (null === Is) throw Error(a(330));
+ vc(Is, e), (Is = Is.nextEffect);
+ }
+ } while (null !== Is);
+ Is = i;
+ do {
+ try {
+ for (s = e, c = t; null !== Is; ) {
+ var x = Is.effectTag;
+ if ((16 & x && Le(Is.stateNode, ''), 128 & x)) {
+ var w = Is.alternate;
+ if (null !== w) {
+ var E = w.ref;
+ null !== E && ('function' == typeof E ? E(null) : (E.current = null));
+ }
+ }
+ switch (1038 & x) {
+ case 2:
+ us(Is), (Is.effectTag &= -3);
+ break;
+ case 6:
+ us(Is), (Is.effectTag &= -3), ps(Is.alternate, Is);
+ break;
+ case 1024:
+ Is.effectTag &= -1025;
+ break;
+ case 1028:
+ (Is.effectTag &= -1025), ps(Is.alternate, Is);
+ break;
+ case 4:
+ ps(Is.alternate, Is);
+ break;
+ case 8:
+ ls(s, (l = Is), c), ss(l);
+ }
+ Is = Is.nextEffect;
+ }
+ } catch (e) {
+ if (null === Is) throw Error(a(330));
+ vc(Is, e), (Is = Is.nextEffect);
+ }
+ } while (null !== Is);
+ if (
+ ((E = yn),
+ (w = hn()),
+ (x = E.focusedElem),
+ (c = E.selectionRange),
+ w !== x &&
+ x &&
+ x.ownerDocument &&
+ (function e(t, n) {
+ return (
+ !(!t || !n) &&
+ (t === n ||
+ ((!t || 3 !== t.nodeType) &&
+ (n && 3 === n.nodeType
+ ? e(t, n.parentNode)
+ : 'contains' in t
+ ? t.contains(n)
+ : !!t.compareDocumentPosition && !!(16 & t.compareDocumentPosition(n)))))
+ );
+ })(x.ownerDocument.documentElement, x))
+ ) {
+ null !== c &&
+ dn(x) &&
+ ((w = c.start),
+ void 0 === (E = c.end) && (E = w),
+ 'selectionStart' in x
+ ? ((x.selectionStart = w), (x.selectionEnd = Math.min(E, x.value.length)))
+ : (E = ((w = x.ownerDocument || document) && w.defaultView) || window).getSelection &&
+ ((E = E.getSelection()),
+ (l = x.textContent.length),
+ (s = Math.min(c.start, l)),
+ (c = void 0 === c.end ? s : Math.min(c.end, l)),
+ !E.extend && s > c && ((l = c), (c = s), (s = l)),
+ (l = fn(x, s)),
+ (p = fn(x, c)),
+ l &&
+ p &&
+ (1 !== E.rangeCount ||
+ E.anchorNode !== l.node ||
+ E.anchorOffset !== l.offset ||
+ E.focusNode !== p.node ||
+ E.focusOffset !== p.offset) &&
+ ((w = w.createRange()).setStart(l.node, l.offset),
+ E.removeAllRanges(),
+ s > c
+ ? (E.addRange(w), E.extend(p.node, p.offset))
+ : (w.setEnd(p.node, p.offset), E.addRange(w))))),
+ (w = []);
+ for (E = x; (E = E.parentNode); )
+ 1 === E.nodeType && w.push({ element: E, left: E.scrollLeft, top: E.scrollTop });
+ for ('function' == typeof x.focus && x.focus(), x = 0; x < w.length; x++)
+ ((E = w[x]).element.scrollLeft = E.left), (E.element.scrollTop = E.top);
+ }
+ (Jt = !!mn), (yn = mn = null), (e.current = n), (Is = i);
+ do {
+ try {
+ for (x = e; null !== Is; ) {
+ var _ = Is.effectTag;
+ if ((36 & _ && os(x, Is.alternate, Is), 128 & _)) {
+ w = void 0;
+ var j = Is.ref;
+ if (null !== j) {
+ var S = Is.stateNode;
+ switch (Is.tag) {
+ case 5:
+ w = S;
+ break;
+ default:
+ w = S;
+ }
+ 'function' == typeof j ? j(w) : (j.current = w);
+ }
+ }
+ Is = Is.nextEffect;
+ }
+ } catch (e) {
+ if (null === Is) throw Error(a(330));
+ vc(Is, e), (Is = Is.nextEffect);
+ }
+ } while (null !== Is);
+ (Is = null), Fi(), (_s = o);
+ } else e.current = n;
+ if (Ms) (Ms = !1), (Ls = e), (zs = t);
+ else for (Is = i; null !== Is; ) (t = Is.nextEffect), (Is.nextEffect = null), (Is = t);
+ if (
+ (0 === (t = e.firstPendingTime) && (Bs = null),
+ 1073741823 === t ? (e === Hs ? qs++ : ((qs = 0), (Hs = e))) : (qs = 0),
+ 'function' == typeof wc && wc(n.stateNode, r),
+ Ys(e),
+ Ns)
+ )
+ throw ((Ns = !1), (e = Rs), (Rs = null), e);
+ return 0 != (8 & _s) || Vi(), null;
+ }
+ function dc() {
+ for (; null !== Is; ) {
+ var e = Is.effectTag;
+ 0 != (256 & e) && ns(Is.alternate, Is),
+ 0 == (512 & e) ||
+ Ms ||
+ ((Ms = !0),
+ qi(97, function () {
+ return mc(), null;
+ })),
+ (Is = Is.nextEffect);
+ }
+ }
+ function mc() {
+ if (90 !== zs) {
+ var e = 97 < zs ? 97 : zs;
+ return (zs = 90), Ui(e, yc);
+ }
+ }
+ function yc() {
+ if (null === Ls) return !1;
+ var e = Ls;
+ if (((Ls = null), 0 != (48 & _s))) throw Error(a(331));
+ var t = _s;
+ for (_s |= 32, e = e.current.firstEffect; null !== e; ) {
+ try {
+ var n = e;
+ if (0 != (512 & n.effectTag))
+ switch (n.tag) {
+ case 0:
+ case 11:
+ case 15:
+ case 22:
+ rs(5, n), is(5, n);
+ }
+ } catch (t) {
+ if (null === e) throw Error(a(330));
+ vc(e, t);
+ }
+ (n = e.nextEffect), (e.nextEffect = null), (e = n);
+ }
+ return (_s = t), Vi(), !0;
+ }
+ function gc(e, t, n) {
+ co(e, (t = ds(e, (t = Za(n, t)), 1073741823))), null !== (e = Xs(e, 1073741823)) && Ys(e);
+ }
+ function vc(e, t) {
+ if (3 === e.tag) gc(e, e, t);
+ else
+ for (var n = e.return; null !== n; ) {
+ if (3 === n.tag) {
+ gc(n, e, t);
+ break;
+ }
+ if (1 === n.tag) {
+ var r = n.stateNode;
+ if (
+ 'function' == typeof n.type.getDerivedStateFromError ||
+ ('function' == typeof r.componentDidCatch && (null === Bs || !Bs.has(r)))
+ ) {
+ co(n, (e = ms(n, (e = Za(t, e)), 1073741823))), null !== (n = Xs(n, 1073741823)) && Ys(n);
+ break;
+ }
+ }
+ n = n.return;
+ }
+ }
+ function bc(e, t, n) {
+ var r = e.pingCache;
+ null !== r && r.delete(t),
+ js === e && Ds === n
+ ? As === Es || (As === ws && 1073741823 === Cs && Mi() - Fs < 500)
+ ? nc(e, Ds)
+ : (Os = !0)
+ : $c(e, n) && ((0 !== (t = e.lastPingedTime) && t < n) || ((e.lastPingedTime = n), Ys(e)));
+ }
+ function xc(e, t) {
+ var n = e.stateNode;
+ null !== n && n.delete(t), 0 === (t = 0) && (t = Ks((t = Js()), e, null)), null !== (e = Xs(e, t)) && Ys(e);
+ }
+ ys = function (e, t, n) {
+ var r = t.expirationTime;
+ if (null !== e) {
+ var i = t.pendingProps;
+ if (e.memoizedProps !== i || fi.current) Pa = !0;
+ else {
+ if (r < n) {
+ switch (((Pa = !1), t.tag)) {
+ case 3:
+ Ma(t), ka();
+ break;
+ case 5:
+ if ((Fo(t), 4 & t.mode && 1 !== n && i.hidden))
+ return (t.expirationTime = t.childExpirationTime = 1), null;
+ break;
+ case 1:
+ mi(t.type) && bi(t);
+ break;
+ case 4:
+ $o(t, t.stateNode.containerInfo);
+ break;
+ case 10:
+ (r = t.memoizedProps.value), (i = t.type._context), ui(Xi, i._currentValue), (i._currentValue = r);
+ break;
+ case 13:
+ if (null !== t.memoizedState)
+ return 0 !== (r = t.child.childExpirationTime) && r >= n
+ ? Ha(e, t, n)
+ : (ui(No, 1 & No.current), null !== (t = Wa(e, t, n)) ? t.sibling : null);
+ ui(No, 1 & No.current);
+ break;
+ case 19:
+ if (((r = t.childExpirationTime >= n), 0 != (64 & e.effectTag))) {
+ if (r) return Ka(e, t, n);
+ t.effectTag |= 64;
+ }
+ if (
+ (null !== (i = t.memoizedState) && ((i.rendering = null), (i.tail = null)), ui(No, No.current), !r)
+ )
+ return null;
+ }
+ return Wa(e, t, n);
+ }
+ Pa = !1;
+ }
+ } else Pa = !1;
+ switch (((t.expirationTime = 0), t.tag)) {
+ case 2:
+ if (
+ ((r = t.type),
+ null !== e && ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)),
+ (e = t.pendingProps),
+ (i = di(t, pi.current)),
+ no(t, n),
+ (i = Wo(null, t, r, e, i, n)),
+ (t.effectTag |= 1),
+ 'object' == typeof i && null !== i && 'function' == typeof i.render && void 0 === i.$$typeof)
+ ) {
+ if (((t.tag = 1), (t.memoizedState = null), (t.updateQueue = null), mi(r))) {
+ var o = !0;
+ bi(t);
+ } else o = !1;
+ (t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null), oo(t);
+ var s = r.getDerivedStateFromProps;
+ 'function' == typeof s && mo(t, r, s, e),
+ (i.updater = yo),
+ (t.stateNode = i),
+ (i._reactInternalFiber = t),
+ xo(t, r, e, n),
+ (t = Ba(null, t, r, !0, o, n));
+ } else (t.tag = 0), Ta(null, t, i, n), (t = t.child);
+ return t;
+ case 16:
+ e: {
+ if (
+ ((i = t.elementType),
+ null !== e && ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)),
+ (e = t.pendingProps),
+ (function (e) {
+ if (-1 === e._status) {
+ e._status = 0;
+ var t = e._ctor;
+ (t = t()),
+ (e._result = t),
+ t.then(
+ function (t) {
+ 0 === e._status && ((t = t.default), (e._status = 1), (e._result = t));
+ },
+ function (t) {
+ 0 === e._status && ((e._status = 2), (e._result = t));
+ }
+ );
+ }
+ })(i),
+ 1 !== i._status)
+ )
+ throw i._result;
+ switch (
+ ((i = i._result),
+ (t.type = i),
+ (o = t.tag =
+ (function (e) {
+ if ('function' == typeof e) return Sc(e) ? 1 : 0;
+ if (null != e) {
+ if ((e = e.$$typeof) === ce) return 11;
+ if (e === pe) return 14;
+ }
+ return 2;
+ })(i)),
+ (e = Wi(i, e)),
+ o)
+ ) {
+ case 0:
+ t = Na(null, t, i, e, n);
+ break e;
+ case 1:
+ t = Ra(null, t, i, e, n);
+ break e;
+ case 11:
+ t = $a(null, t, i, e, n);
+ break e;
+ case 14:
+ t = Oa(null, t, i, Wi(i.type, e), r, n);
+ break e;
+ }
+ throw Error(a(306, i, ''));
+ }
+ return t;
+ case 0:
+ return (r = t.type), (i = t.pendingProps), Na(e, t, r, (i = t.elementType === r ? i : Wi(r, i)), n);
+ case 1:
+ return (r = t.type), (i = t.pendingProps), Ra(e, t, r, (i = t.elementType === r ? i : Wi(r, i)), n);
+ case 3:
+ if ((Ma(t), (r = t.updateQueue), null === e || null === r)) throw Error(a(282));
+ if (
+ ((r = t.pendingProps),
+ (i = null !== (i = t.memoizedState) ? i.element : null),
+ ao(e, t),
+ lo(t, r, null, n),
+ (r = t.memoizedState.element) === i)
+ )
+ ka(), (t = Wa(e, t, n));
+ else {
+ if (
+ ((i = t.stateNode.hydrate) &&
+ ((wa = wn(t.stateNode.containerInfo.firstChild)), (xa = t), (i = Ea = !0)),
+ i)
+ )
+ for (n = Do(t, null, r, n), t.child = n; n; )
+ (n.effectTag = (-3 & n.effectTag) | 1024), (n = n.sibling);
+ else Ta(e, t, r, n), ka();
+ t = t.child;
+ }
+ return t;
+ case 5:
+ return (
+ Fo(t),
+ null === e && Sa(t),
+ (r = t.type),
+ (i = t.pendingProps),
+ (o = null !== e ? e.memoizedProps : null),
+ (s = i.children),
+ vn(r, i) ? (s = null) : null !== o && vn(r, o) && (t.effectTag |= 16),
+ Ia(e, t),
+ 4 & t.mode && 1 !== n && i.hidden
+ ? ((t.expirationTime = t.childExpirationTime = 1), (t = null))
+ : (Ta(e, t, s, n), (t = t.child)),
+ t
+ );
+ case 6:
+ return null === e && Sa(t), null;
+ case 13:
+ return Ha(e, t, n);
+ case 4:
+ return (
+ $o(t, t.stateNode.containerInfo),
+ (r = t.pendingProps),
+ null === e ? (t.child = So(t, null, r, n)) : Ta(e, t, r, n),
+ t.child
+ );
+ case 11:
+ return (r = t.type), (i = t.pendingProps), $a(e, t, r, (i = t.elementType === r ? i : Wi(r, i)), n);
+ case 7:
+ return Ta(e, t, t.pendingProps, n), t.child;
+ case 8:
+ case 12:
+ return Ta(e, t, t.pendingProps.children, n), t.child;
+ case 10:
+ e: {
+ (r = t.type._context), (i = t.pendingProps), (s = t.memoizedProps), (o = i.value);
+ var c = t.type._context;
+ if ((ui(Xi, c._currentValue), (c._currentValue = o), null !== s))
+ if (
+ ((c = s.value),
+ 0 ===
+ (o = Rr(c, o)
+ ? 0
+ : 0 |
+ ('function' == typeof r._calculateChangedBits ? r._calculateChangedBits(c, o) : 1073741823)))
+ ) {
+ if (s.children === i.children && !fi.current) {
+ t = Wa(e, t, n);
+ break e;
+ }
+ } else
+ for (null !== (c = t.child) && (c.return = t); null !== c; ) {
+ var u = c.dependencies;
+ if (null !== u) {
+ s = c.child;
+ for (var l = u.firstContext; null !== l; ) {
+ if (l.context === r && 0 != (l.observedBits & o)) {
+ 1 === c.tag && (((l = so(n, null)).tag = 2), co(c, l)),
+ c.expirationTime < n && (c.expirationTime = n),
+ null !== (l = c.alternate) && l.expirationTime < n && (l.expirationTime = n),
+ to(c.return, n),
+ u.expirationTime < n && (u.expirationTime = n);
+ break;
+ }
+ l = l.next;
+ }
+ } else s = 10 === c.tag && c.type === t.type ? null : c.child;
+ if (null !== s) s.return = c;
+ else
+ for (s = c; null !== s; ) {
+ if (s === t) {
+ s = null;
+ break;
+ }
+ if (null !== (c = s.sibling)) {
+ (c.return = s.return), (s = c);
+ break;
+ }
+ s = s.return;
+ }
+ c = s;
+ }
+ Ta(e, t, i.children, n), (t = t.child);
+ }
+ return t;
+ case 9:
+ return (
+ (i = t.type),
+ (r = (o = t.pendingProps).children),
+ no(t, n),
+ (r = r((i = ro(i, o.unstable_observedBits)))),
+ (t.effectTag |= 1),
+ Ta(e, t, r, n),
+ t.child
+ );
+ case 14:
+ return (o = Wi((i = t.type), t.pendingProps)), Oa(e, t, i, (o = Wi(i.type, o)), r, n);
+ case 15:
+ return Fa(e, t, t.type, t.pendingProps, r, n);
+ case 17:
+ return (
+ (r = t.type),
+ (i = t.pendingProps),
+ (i = t.elementType === r ? i : Wi(r, i)),
+ null !== e && ((e.alternate = null), (t.alternate = null), (t.effectTag |= 2)),
+ (t.tag = 1),
+ mi(r) ? ((e = !0), bi(t)) : (e = !1),
+ no(t, n),
+ vo(t, r, i),
+ xo(t, r, i, n),
+ Ba(null, t, r, !0, e, n)
+ );
+ case 19:
+ return Ka(e, t, n);
+ }
+ throw Error(a(156, t.tag));
+ };
+ var wc = null,
+ Ec = null;
+ function _c(e, t, n, r) {
+ (this.tag = e),
+ (this.key = n),
+ (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null),
+ (this.index = 0),
+ (this.ref = null),
+ (this.pendingProps = t),
+ (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null),
+ (this.mode = r),
+ (this.effectTag = 0),
+ (this.lastEffect = this.firstEffect = this.nextEffect = null),
+ (this.childExpirationTime = this.expirationTime = 0),
+ (this.alternate = null);
+ }
+ function jc(e, t, n, r) {
+ return new _c(e, t, n, r);
+ }
+ function Sc(e) {
+ return !(!(e = e.prototype) || !e.isReactComponent);
+ }
+ function Dc(e, t) {
+ var n = e.alternate;
+ return (
+ null === n
+ ? (((n = jc(e.tag, t, e.key, e.mode)).elementType = e.elementType),
+ (n.type = e.type),
+ (n.stateNode = e.stateNode),
+ (n.alternate = e),
+ (e.alternate = n))
+ : ((n.pendingProps = t),
+ (n.effectTag = 0),
+ (n.nextEffect = null),
+ (n.firstEffect = null),
+ (n.lastEffect = null)),
+ (n.childExpirationTime = e.childExpirationTime),
+ (n.expirationTime = e.expirationTime),
+ (n.child = e.child),
+ (n.memoizedProps = e.memoizedProps),
+ (n.memoizedState = e.memoizedState),
+ (n.updateQueue = e.updateQueue),
+ (t = e.dependencies),
+ (n.dependencies =
+ null === t
+ ? null
+ : { expirationTime: t.expirationTime, firstContext: t.firstContext, responders: t.responders }),
+ (n.sibling = e.sibling),
+ (n.index = e.index),
+ (n.ref = e.ref),
+ n
+ );
+ }
+ function Ac(e, t, n, r, i, o) {
+ var s = 2;
+ if (((r = e), 'function' == typeof e)) Sc(e) && (s = 1);
+ else if ('string' == typeof e) s = 5;
+ else
+ e: switch (e) {
+ case ne:
+ return kc(n.children, i, o, t);
+ case se:
+ (s = 8), (i |= 7);
+ break;
+ case re:
+ (s = 8), (i |= 1);
+ break;
+ case ie:
+ return ((e = jc(12, n, t, 8 | i)).elementType = ie), (e.type = ie), (e.expirationTime = o), e;
+ case ue:
+ return ((e = jc(13, n, t, i)).type = ue), (e.elementType = ue), (e.expirationTime = o), e;
+ case le:
+ return ((e = jc(19, n, t, i)).elementType = le), (e.expirationTime = o), e;
+ default:
+ if ('object' == typeof e && null !== e)
+ switch (e.$$typeof) {
+ case oe:
+ s = 10;
+ break e;
+ case ae:
+ s = 9;
+ break e;
+ case ce:
+ s = 11;
+ break e;
+ case pe:
+ s = 14;
+ break e;
+ case fe:
+ (s = 16), (r = null);
+ break e;
+ case he:
+ s = 22;
+ break e;
+ }
+ throw Error(a(130, null == e ? e : typeof e, ''));
+ }
+ return ((t = jc(s, n, t, i)).elementType = e), (t.type = r), (t.expirationTime = o), t;
+ }
+ function kc(e, t, n, r) {
+ return ((e = jc(7, e, r, t)).expirationTime = n), e;
+ }
+ function Cc(e, t, n) {
+ return ((e = jc(6, e, null, t)).expirationTime = n), e;
+ }
+ function Pc(e, t, n) {
+ return (
+ ((t = jc(4, null !== e.children ? e.children : [], e.key, t)).expirationTime = n),
+ (t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }),
+ t
+ );
+ }
+ function Tc(e, t, n) {
+ (this.tag = t),
+ (this.current = null),
+ (this.containerInfo = e),
+ (this.pingCache = this.pendingChildren = null),
+ (this.finishedExpirationTime = 0),
+ (this.finishedWork = null),
+ (this.timeoutHandle = -1),
+ (this.pendingContext = this.context = null),
+ (this.hydrate = n),
+ (this.callbackNode = null),
+ (this.callbackPriority = 90),
+ (this.lastExpiredTime =
+ this.lastPingedTime =
+ this.nextKnownPendingLevel =
+ this.lastSuspendedTime =
+ this.firstSuspendedTime =
+ this.firstPendingTime =
+ 0);
+ }
+ function $c(e, t) {
+ var n = e.firstSuspendedTime;
+ return (e = e.lastSuspendedTime), 0 !== n && n >= t && e <= t;
+ }
+ function Oc(e, t) {
+ var n = e.firstSuspendedTime,
+ r = e.lastSuspendedTime;
+ n < t && (e.firstSuspendedTime = t),
+ (r > t || 0 === n) && (e.lastSuspendedTime = t),
+ t <= e.lastPingedTime && (e.lastPingedTime = 0),
+ t <= e.lastExpiredTime && (e.lastExpiredTime = 0);
+ }
+ function Fc(e, t) {
+ t > e.firstPendingTime && (e.firstPendingTime = t);
+ var n = e.firstSuspendedTime;
+ 0 !== n &&
+ (t >= n
+ ? (e.firstSuspendedTime = e.lastSuspendedTime = e.nextKnownPendingLevel = 0)
+ : t >= e.lastSuspendedTime && (e.lastSuspendedTime = t + 1),
+ t > e.nextKnownPendingLevel && (e.nextKnownPendingLevel = t));
+ }
+ function Ic(e, t) {
+ var n = e.lastExpiredTime;
+ (0 === n || n > t) && (e.lastExpiredTime = t);
+ }
+ function Nc(e, t, n, r) {
+ var i = t.current,
+ o = Js(),
+ s = fo.suspense;
+ o = Ks(o, i, s);
+ e: if (n) {
+ t: {
+ if (Qe((n = n._reactInternalFiber)) !== n || 1 !== n.tag) throw Error(a(170));
+ var c = n;
+ do {
+ switch (c.tag) {
+ case 3:
+ c = c.stateNode.context;
+ break t;
+ case 1:
+ if (mi(c.type)) {
+ c = c.stateNode.__reactInternalMemoizedMergedChildContext;
+ break t;
+ }
+ }
+ c = c.return;
+ } while (null !== c);
+ throw Error(a(171));
+ }
+ if (1 === n.tag) {
+ var u = n.type;
+ if (mi(u)) {
+ n = vi(n, u, c);
+ break e;
+ }
+ }
+ n = c;
+ } else n = li;
+ return (
+ null === t.context ? (t.context = n) : (t.pendingContext = n),
+ ((t = so(o, s)).payload = { element: e }),
+ null !== (r = void 0 === r ? null : r) && (t.callback = r),
+ co(i, t),
+ Ws(i, o),
+ o
+ );
+ }
+ function Rc(e) {
+ if (!(e = e.current).child) return null;
+ switch (e.child.tag) {
+ case 5:
+ default:
+ return e.child.stateNode;
+ }
+ }
+ function Bc(e, t) {
+ null !== (e = e.memoizedState) && null !== e.dehydrated && e.retryTime < t && (e.retryTime = t);
+ }
+ function Mc(e, t) {
+ Bc(e, t), (e = e.alternate) && Bc(e, t);
+ }
+ function Lc(e, t, n) {
+ var r = new Tc(e, t, (n = null != n && !0 === n.hydrate)),
+ i = jc(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0);
+ (r.current = i),
+ (i.stateNode = r),
+ oo(i),
+ (e[Dn] = r.current),
+ n &&
+ 0 !== t &&
+ (function (e, t) {
+ var n = Ze(t);
+ Dt.forEach(function (e) {
+ dt(e, t, n);
+ }),
+ At.forEach(function (e) {
+ dt(e, t, n);
+ });
+ })(0, 9 === e.nodeType ? e : e.ownerDocument),
+ (this._internalRoot = r);
+ }
+ function zc(e) {
+ return !(
+ !e ||
+ (1 !== e.nodeType &&
+ 9 !== e.nodeType &&
+ 11 !== e.nodeType &&
+ (8 !== e.nodeType || ' react-mount-point-unstable ' !== e.nodeValue))
+ );
+ }
+ function Uc(e, t, n, r, i) {
+ var o = n._reactRootContainer;
+ if (o) {
+ var a = o._internalRoot;
+ if ('function' == typeof i) {
+ var s = i;
+ i = function () {
+ var e = Rc(a);
+ s.call(e);
+ };
+ }
+ Nc(t, a, e, i);
+ } else {
+ if (
+ ((o = n._reactRootContainer =
+ (function (e, t) {
+ if (
+ (t ||
+ (t = !(
+ !(t = e ? (9 === e.nodeType ? e.documentElement : e.firstChild) : null) ||
+ 1 !== t.nodeType ||
+ !t.hasAttribute('data-reactroot')
+ )),
+ !t)
+ )
+ for (var n; (n = e.lastChild); ) e.removeChild(n);
+ return new Lc(e, 0, t ? { hydrate: !0 } : void 0);
+ })(n, r)),
+ (a = o._internalRoot),
+ 'function' == typeof i)
+ ) {
+ var c = i;
+ i = function () {
+ var e = Rc(a);
+ c.call(e);
+ };
+ }
+ tc(function () {
+ Nc(t, a, e, i);
+ });
+ }
+ return Rc(a);
+ }
+ function qc(e, t, n) {
+ var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
+ return { $$typeof: te, key: null == r ? null : '' + r, children: e, containerInfo: t, implementation: n };
+ }
+ function Hc(e, t) {
+ var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
+ if (!zc(t)) throw Error(a(200));
+ return qc(e, t, null, n);
+ }
+ (Lc.prototype.render = function (e) {
+ Nc(e, this._internalRoot, null, null);
+ }),
+ (Lc.prototype.unmount = function () {
+ var e = this._internalRoot,
+ t = e.containerInfo;
+ Nc(null, e, null, function () {
+ t[Dn] = null;
+ });
+ }),
+ (mt = function (e) {
+ if (13 === e.tag) {
+ var t = Ki(Js(), 150, 100);
+ Ws(e, t), Mc(e, t);
+ }
+ }),
+ (yt = function (e) {
+ 13 === e.tag && (Ws(e, 3), Mc(e, 3));
+ }),
+ (gt = function (e) {
+ if (13 === e.tag) {
+ var t = Js();
+ Ws(e, (t = Ks(t, e, null))), Mc(e, t);
+ }
+ }),
+ (k = function (e, t, n) {
+ switch (t) {
+ case 'input':
+ if ((Se(e, n), (t = n.name), 'radio' === n.type && null != t)) {
+ for (n = e; n.parentNode; ) n = n.parentNode;
+ for (
+ n = n.querySelectorAll('input[name=' + JSON.stringify('' + t) + '][type="radio"]'), t = 0;
+ t < n.length;
+ t++
+ ) {
+ var r = n[t];
+ if (r !== e && r.form === e.form) {
+ var i = Pn(r);
+ if (!i) throw Error(a(90));
+ we(r), Se(r, i);
+ }
+ }
+ }
+ break;
+ case 'textarea':
+ $e(e, n);
+ break;
+ case 'select':
+ null != (t = n.value) && Ce(e, !!n.multiple, t, !1);
+ }
+ }),
+ (F = ec),
+ (I = function (e, t, n, r, i) {
+ var o = _s;
+ _s |= 4;
+ try {
+ return Ui(98, e.bind(null, t, n, r, i));
+ } finally {
+ 0 === (_s = o) && Vi();
+ }
+ }),
+ (N = function () {
+ 0 == (49 & _s) &&
+ ((function () {
+ if (null !== Us) {
+ var e = Us;
+ (Us = null),
+ e.forEach(function (e, t) {
+ Ic(t, e), Ys(t);
+ }),
+ Vi();
+ }
+ })(),
+ mc());
+ }),
+ (R = function (e, t) {
+ var n = _s;
+ _s |= 2;
+ try {
+ return e(t);
+ } finally {
+ 0 === (_s = n) && Vi();
+ }
+ });
+ var Vc,
+ Jc,
+ Kc = {
+ Events: [
+ kn,
+ Cn,
+ Pn,
+ D,
+ _,
+ Rn,
+ function (e) {
+ it(e, Nn);
+ },
+ $,
+ O,
+ Yt,
+ st,
+ mc,
+ { current: !1 },
+ ],
+ };
+ (Jc = (Vc = { findFiberByHostInstance: An, bundleType: 0, version: '16.14.0', rendererPackageName: 'react-dom' })
+ .findFiberByHostInstance),
+ (function (e) {
+ if ('undefined' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
+ var t = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (t.isDisabled || !t.supportsFiber) return !0;
+ try {
+ var n = t.inject(e);
+ (wc = function (e) {
+ try {
+ t.onCommitFiberRoot(n, e, void 0, 64 == (64 & e.current.effectTag));
+ } catch (e) {}
+ }),
+ (Ec = function (e) {
+ try {
+ t.onCommitFiberUnmount(n, e);
+ } catch (e) {}
+ });
+ } catch (e) {}
+ })(
+ i({}, Vc, {
+ overrideHookState: null,
+ overrideProps: null,
+ setSuspenseHandler: null,
+ scheduleUpdate: null,
+ currentDispatcherRef: G.ReactCurrentDispatcher,
+ findHostInstanceByFiber: function (e) {
+ return null === (e = nt(e)) ? null : e.stateNode;
+ },
+ findFiberByHostInstance: function (e) {
+ return Jc ? Jc(e) : null;
+ },
+ findHostInstancesForRefresh: null,
+ scheduleRefresh: null,
+ scheduleRoot: null,
+ setRefreshHandler: null,
+ getCurrentFiber: null,
+ })
+ ),
+ (t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Kc),
+ (t.createPortal = Hc),
+ (t.findDOMNode = function (e) {
+ if (null == e) return null;
+ if (1 === e.nodeType) return e;
+ var t = e._reactInternalFiber;
+ if (void 0 === t) {
+ if ('function' == typeof e.render) throw Error(a(188));
+ throw Error(a(268, Object.keys(e)));
+ }
+ return (e = null === (e = nt(t)) ? null : e.stateNode);
+ }),
+ (t.flushSync = function (e, t) {
+ if (0 != (48 & _s)) throw Error(a(187));
+ var n = _s;
+ _s |= 1;
+ try {
+ return Ui(99, e.bind(null, t));
+ } finally {
+ (_s = n), Vi();
+ }
+ }),
+ (t.hydrate = function (e, t, n) {
+ if (!zc(t)) throw Error(a(200));
+ return Uc(null, e, t, !0, n);
+ }),
+ (t.render = function (e, t, n) {
+ if (!zc(t)) throw Error(a(200));
+ return Uc(null, e, t, !1, n);
+ }),
+ (t.unmountComponentAtNode = function (e) {
+ if (!zc(e)) throw Error(a(40));
+ return (
+ !!e._reactRootContainer &&
+ (tc(function () {
+ Uc(null, null, e, !1, function () {
+ (e._reactRootContainer = null), (e[Dn] = null);
+ });
+ }),
+ !0)
+ );
+ }),
+ (t.unstable_batchedUpdates = ec),
+ (t.unstable_createPortal = function (e, t) {
+ return Hc(e, t, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null);
+ }),
+ (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) {
+ if (!zc(n)) throw Error(a(200));
+ if (null == e || void 0 === e._reactInternalFiber) throw Error(a(38));
+ return Uc(e, t, n, !1, r);
+ }),
+ (t.version = '16.14.0');
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = n(119);
+ },
+ function (e, t, n) {
+ 'use strict';
+ /** @license React v0.19.1
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */ var r, i, o, a, s;
+ if ('undefined' == typeof window || 'function' != typeof MessageChannel) {
+ var c = null,
+ u = null,
+ l = function () {
+ if (null !== c)
+ try {
+ var e = t.unstable_now();
+ c(!0, e), (c = null);
+ } catch (e) {
+ throw (setTimeout(l, 0), e);
+ }
+ },
+ p = Date.now();
+ (t.unstable_now = function () {
+ return Date.now() - p;
+ }),
+ (r = function (e) {
+ null !== c ? setTimeout(r, 0, e) : ((c = e), setTimeout(l, 0));
+ }),
+ (i = function (e, t) {
+ u = setTimeout(e, t);
+ }),
+ (o = function () {
+ clearTimeout(u);
+ }),
+ (a = function () {
+ return !1;
+ }),
+ (s = t.unstable_forceFrameRate = function () {});
+ } else {
+ var f = window.performance,
+ h = window.Date,
+ d = window.setTimeout,
+ m = window.clearTimeout;
+ if ('undefined' != typeof console) {
+ var y = window.cancelAnimationFrame;
+ 'function' != typeof window.requestAnimationFrame &&
+ console.error(
+ "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"
+ ),
+ 'function' != typeof y &&
+ console.error(
+ "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"
+ );
+ }
+ if ('object' == typeof f && 'function' == typeof f.now)
+ t.unstable_now = function () {
+ return f.now();
+ };
+ else {
+ var g = h.now();
+ t.unstable_now = function () {
+ return h.now() - g;
+ };
+ }
+ var v = !1,
+ b = null,
+ x = -1,
+ w = 5,
+ E = 0;
+ (a = function () {
+ return t.unstable_now() >= E;
+ }),
+ (s = function () {}),
+ (t.unstable_forceFrameRate = function (e) {
+ 0 > e || 125 < e
+ ? console.error(
+ 'forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported'
+ )
+ : (w = 0 < e ? Math.floor(1e3 / e) : 5);
+ });
+ var _ = new MessageChannel(),
+ j = _.port2;
+ (_.port1.onmessage = function () {
+ if (null !== b) {
+ var e = t.unstable_now();
+ E = e + w;
+ try {
+ b(!0, e) ? j.postMessage(null) : ((v = !1), (b = null));
+ } catch (e) {
+ throw (j.postMessage(null), e);
+ }
+ } else v = !1;
+ }),
+ (r = function (e) {
+ (b = e), v || ((v = !0), j.postMessage(null));
+ }),
+ (i = function (e, n) {
+ x = d(function () {
+ e(t.unstable_now());
+ }, n);
+ }),
+ (o = function () {
+ m(x), (x = -1);
+ });
+ }
+ function S(e, t) {
+ var n = e.length;
+ e.push(t);
+ e: for (;;) {
+ var r = (n - 1) >>> 1,
+ i = e[r];
+ if (!(void 0 !== i && 0 < k(i, t))) break e;
+ (e[r] = t), (e[n] = i), (n = r);
+ }
+ }
+ function D(e) {
+ return void 0 === (e = e[0]) ? null : e;
+ }
+ function A(e) {
+ var t = e[0];
+ if (void 0 !== t) {
+ var n = e.pop();
+ if (n !== t) {
+ e[0] = n;
+ e: for (var r = 0, i = e.length; r < i; ) {
+ var o = 2 * (r + 1) - 1,
+ a = e[o],
+ s = o + 1,
+ c = e[s];
+ if (void 0 !== a && 0 > k(a, n))
+ void 0 !== c && 0 > k(c, a) ? ((e[r] = c), (e[s] = n), (r = s)) : ((e[r] = a), (e[o] = n), (r = o));
+ else {
+ if (!(void 0 !== c && 0 > k(c, n))) break e;
+ (e[r] = c), (e[s] = n), (r = s);
+ }
+ }
+ }
+ return t;
+ }
+ return null;
+ }
+ function k(e, t) {
+ var n = e.sortIndex - t.sortIndex;
+ return 0 !== n ? n : e.id - t.id;
+ }
+ var C = [],
+ P = [],
+ T = 1,
+ $ = null,
+ O = 3,
+ F = !1,
+ I = !1,
+ N = !1;
+ function R(e) {
+ for (var t = D(P); null !== t; ) {
+ if (null === t.callback) A(P);
+ else {
+ if (!(t.startTime <= e)) break;
+ A(P), (t.sortIndex = t.expirationTime), S(C, t);
+ }
+ t = D(P);
+ }
+ }
+ function B(e) {
+ if (((N = !1), R(e), !I))
+ if (null !== D(C)) (I = !0), r(M);
+ else {
+ var t = D(P);
+ null !== t && i(B, t.startTime - e);
+ }
+ }
+ function M(e, n) {
+ (I = !1), N && ((N = !1), o()), (F = !0);
+ var r = O;
+ try {
+ for (R(n), $ = D(C); null !== $ && (!($.expirationTime > n) || (e && !a())); ) {
+ var s = $.callback;
+ if (null !== s) {
+ ($.callback = null), (O = $.priorityLevel);
+ var c = s($.expirationTime <= n);
+ (n = t.unstable_now()), 'function' == typeof c ? ($.callback = c) : $ === D(C) && A(C), R(n);
+ } else A(C);
+ $ = D(C);
+ }
+ if (null !== $) var u = !0;
+ else {
+ var l = D(P);
+ null !== l && i(B, l.startTime - n), (u = !1);
+ }
+ return u;
+ } finally {
+ ($ = null), (O = r), (F = !1);
+ }
+ }
+ function L(e) {
+ switch (e) {
+ case 1:
+ return -1;
+ case 2:
+ return 250;
+ case 5:
+ return 1073741823;
+ case 4:
+ return 1e4;
+ default:
+ return 5e3;
+ }
+ }
+ var z = s;
+ (t.unstable_IdlePriority = 5),
+ (t.unstable_ImmediatePriority = 1),
+ (t.unstable_LowPriority = 4),
+ (t.unstable_NormalPriority = 3),
+ (t.unstable_Profiling = null),
+ (t.unstable_UserBlockingPriority = 2),
+ (t.unstable_cancelCallback = function (e) {
+ e.callback = null;
+ }),
+ (t.unstable_continueExecution = function () {
+ I || F || ((I = !0), r(M));
+ }),
+ (t.unstable_getCurrentPriorityLevel = function () {
+ return O;
+ }),
+ (t.unstable_getFirstCallbackNode = function () {
+ return D(C);
+ }),
+ (t.unstable_next = function (e) {
+ switch (O) {
+ case 1:
+ case 2:
+ case 3:
+ var t = 3;
+ break;
+ default:
+ t = O;
+ }
+ var n = O;
+ O = t;
+ try {
+ return e();
+ } finally {
+ O = n;
+ }
+ }),
+ (t.unstable_pauseExecution = function () {}),
+ (t.unstable_requestPaint = z),
+ (t.unstable_runWithPriority = function (e, t) {
+ switch (e) {
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ default:
+ e = 3;
+ }
+ var n = O;
+ O = e;
+ try {
+ return t();
+ } finally {
+ O = n;
+ }
+ }),
+ (t.unstable_scheduleCallback = function (e, n, a) {
+ var s = t.unstable_now();
+ if ('object' == typeof a && null !== a) {
+ var c = a.delay;
+ (c = 'number' == typeof c && 0 < c ? s + c : s), (a = 'number' == typeof a.timeout ? a.timeout : L(e));
+ } else (a = L(e)), (c = s);
+ return (
+ (e = { id: T++, callback: n, priorityLevel: e, startTime: c, expirationTime: (a = c + a), sortIndex: -1 }),
+ c > s
+ ? ((e.sortIndex = c), S(P, e), null === D(C) && e === D(P) && (N ? o() : (N = !0), i(B, c - s)))
+ : ((e.sortIndex = a), S(C, e), I || F || ((I = !0), r(M))),
+ e
+ );
+ }),
+ (t.unstable_shouldYield = function () {
+ var e = t.unstable_now();
+ R(e);
+ var n = D(C);
+ return (
+ (n !== $ &&
+ null !== $ &&
+ null !== n &&
+ null !== n.callback &&
+ n.startTime <= e &&
+ n.expirationTime < $.expirationTime) ||
+ a()
+ );
+ }),
+ (t.unstable_wrapCallback = function (e) {
+ var t = O;
+ return function () {
+ var n = O;
+ O = t;
+ try {
+ return e.apply(this, arguments);
+ } finally {
+ O = n;
+ }
+ };
+ });
+ },
+ function (e, t, n) {
+ const { mix: r } = n(2),
+ i = n(3),
+ o = n(121),
+ a = n(122),
+ s = n(10),
+ c = n(5);
+ e.exports = r(
+ class extends i {
+ title() {
+ return this._json.title;
+ }
+ version() {
+ return this._json.version;
+ }
+ termsOfService() {
+ return this._json.termsOfService;
+ }
+ license() {
+ return this._json.license ? new o(this._json.license) : null;
+ }
+ contact() {
+ return this._json.contact ? new a(this._json.contact) : null;
+ }
+ },
+ s,
+ c
+ );
+ },
+ function (e, t, n) {
+ const { mix: r } = n(2),
+ i = n(3),
+ o = n(5);
+ e.exports = r(
+ class extends i {
+ name() {
+ return this._json.name;
+ }
+ url() {
+ return this._json.url;
+ }
+ },
+ o
+ );
+ },
+ function (e, t, n) {
+ const { mix: r } = n(2),
+ i = n(3),
+ o = n(5);
+ e.exports = r(
+ class extends i {
+ name() {
+ return this._json.name;
+ }
+ url() {
+ return this._json.url;
+ }
+ email() {
+ return this._json.email;
+ }
+ },
+ o
+ );
+ },
+ function (e, t, n) {
+ const r = n(3);
+ e.exports = class extends r {};
+ },
+ function (e, t, n) {
+ const { mix: r } = n(2),
+ i = n(3),
+ o = n(10),
+ a = n(28),
+ s = n(5);
+ e.exports = r(
+ class extends i {
+ name() {
+ return this._json.name;
+ }
+ },
+ o,
+ a,
+ s
+ );
+ },
+ function (e, t, n) {
+ const { mix: r } = n(2),
+ i = n(3),
+ o = n(10),
+ a = n(5);
+ e.exports = r(
+ class extends i {
+ url() {
+ return this._json.url;
+ }
+ },
+ o,
+ a
+ );
+ },
+ function (e, t, n) {
+ const r = n(52);
+ e.exports = class extends r {
+ isPublish() {
+ return !0;
+ }
+ isSubscribe() {
+ return !1;
+ }
+ kind() {
+ return 'publish';
+ }
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ (t.byteLength = function (e) {
+ var t = u(e),
+ n = t[0],
+ r = t[1];
+ return (3 * (n + r)) / 4 - r;
+ }),
+ (t.toByteArray = function (e) {
+ var t,
+ n,
+ r = u(e),
+ a = r[0],
+ s = r[1],
+ c = new o(
+ (function (e, t, n) {
+ return (3 * (t + n)) / 4 - n;
+ })(0, a, s)
+ ),
+ l = 0,
+ p = s > 0 ? a - 4 : a;
+ for (n = 0; n < p; n += 4)
+ (t =
+ (i[e.charCodeAt(n)] << 18) |
+ (i[e.charCodeAt(n + 1)] << 12) |
+ (i[e.charCodeAt(n + 2)] << 6) |
+ i[e.charCodeAt(n + 3)]),
+ (c[l++] = (t >> 16) & 255),
+ (c[l++] = (t >> 8) & 255),
+ (c[l++] = 255 & t);
+ 2 === s && ((t = (i[e.charCodeAt(n)] << 2) | (i[e.charCodeAt(n + 1)] >> 4)), (c[l++] = 255 & t));
+ 1 === s &&
+ ((t = (i[e.charCodeAt(n)] << 10) | (i[e.charCodeAt(n + 1)] << 4) | (i[e.charCodeAt(n + 2)] >> 2)),
+ (c[l++] = (t >> 8) & 255),
+ (c[l++] = 255 & t));
+ return c;
+ }),
+ (t.fromByteArray = function (e) {
+ for (var t, n = e.length, i = n % 3, o = [], a = 0, s = n - i; a < s; a += 16383)
+ o.push(l(e, a, a + 16383 > s ? s : a + 16383));
+ 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] + '='));
+ return o.join('');
+ });
+ for (
+ var r = [],
+ i = [],
+ o = 'undefined' != typeof Uint8Array ? Uint8Array : Array,
+ a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
+ s = 0,
+ c = a.length;
+ s < c;
+ ++s
+ )
+ (r[s] = a[s]), (i[a.charCodeAt(s)] = s);
+ function u(e) {
+ var t = e.length;
+ if (t % 4 > 0) throw new Error('Invalid string. Length must be a multiple of 4');
+ var n = e.indexOf('=');
+ return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)];
+ }
+ function l(e, t, n) {
+ for (var i, o, a = [], s = t; s < n; s += 3)
+ (i = ((e[s] << 16) & 16711680) + ((e[s + 1] << 8) & 65280) + (255 & e[s + 2])),
+ a.push(r[((o = i) >> 18) & 63] + r[(o >> 12) & 63] + r[(o >> 6) & 63] + r[63 & o]);
+ return a.join('');
+ }
+ (i['-'.charCodeAt(0)] = 62), (i['_'.charCodeAt(0)] = 63);
+ },
+ function (e, t) {
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */
+ (t.read = function (e, t, n, r, i) {
+ var o,
+ a,
+ s = 8 * i - r - 1,
+ c = (1 << s) - 1,
+ u = c >> 1,
+ l = -7,
+ p = n ? i - 1 : 0,
+ f = n ? -1 : 1,
+ h = e[t + p];
+ for (p += f, o = h & ((1 << -l) - 1), h >>= -l, l += s; l > 0; o = 256 * o + e[t + p], p += f, l -= 8);
+ for (a = o & ((1 << -l) - 1), o >>= -l, l += r; l > 0; a = 256 * a + e[t + p], p += f, l -= 8);
+ if (0 === o) o = 1 - u;
+ else {
+ if (o === c) return a ? NaN : (1 / 0) * (h ? -1 : 1);
+ (a += Math.pow(2, r)), (o -= u);
+ }
+ return (h ? -1 : 1) * a * Math.pow(2, o - r);
+ }),
+ (t.write = function (e, t, n, r, i, o) {
+ var a,
+ s,
+ c,
+ u = 8 * o - i - 1,
+ l = (1 << u) - 1,
+ p = l >> 1,
+ f = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
+ h = r ? 0 : o - 1,
+ d = r ? 1 : -1,
+ m = t < 0 || (0 === t && 1 / t < 0) ? 1 : 0;
+ for (
+ t = Math.abs(t),
+ isNaN(t) || t === 1 / 0
+ ? ((s = isNaN(t) ? 1 : 0), (a = l))
+ : ((a = Math.floor(Math.log(t) / Math.LN2)),
+ t * (c = Math.pow(2, -a)) < 1 && (a--, (c *= 2)),
+ (t += a + p >= 1 ? f / c : f * Math.pow(2, 1 - p)) * c >= 2 && (a++, (c /= 2)),
+ a + p >= l
+ ? ((s = 0), (a = l))
+ : a + p >= 1
+ ? ((s = (t * c - 1) * Math.pow(2, i)), (a += p))
+ : ((s = t * Math.pow(2, p - 1) * Math.pow(2, i)), (a = 0)));
+ i >= 8;
+ e[n + h] = 255 & s, h += d, s /= 256, i -= 8
+ );
+ for (a = (a << i) | s, u += i; u > 0; e[n + h] = 255 & a, h += d, a /= 256, u -= 8);
+ e[n + h - d] |= 128 * m;
+ });
+ },
+ function (e, t, n) {
+ const r = n(3);
+ e.exports = class extends r {};
+ },
+ function (e, t, n) {
+ const r = n(52);
+ e.exports = class extends r {
+ isPublish() {
+ return !1;
+ }
+ isSubscribe() {
+ return !0;
+ }
+ kind() {
+ return 'subscribe';
+ }
+ };
+ },
+ function (e, t, n) {
+ const { createMapOfType: r, getMapValueOfType: i, mix: o } = n(2),
+ a = n(3),
+ s = n(63),
+ c = n(66),
+ u = n(17),
+ l = n(132),
+ p = n(61),
+ f = n(64),
+ h = n(70),
+ d = n(71),
+ m = n(68),
+ y = n(62),
+ g = n(5);
+ e.exports = o(
+ class extends a {
+ channels() {
+ return r(this._json.channels, s);
+ }
+ hasChannels() {
+ return !!this._json.channels;
+ }
+ channel(e) {
+ return i(this._json.channels, e, s);
+ }
+ messages() {
+ return r(this._json.messages, c);
+ }
+ hasMessages() {
+ return !!this._json.messages;
+ }
+ message(e) {
+ return i(this._json.messages, e, c);
+ }
+ schemas() {
+ return r(this._json.schemas, u);
+ }
+ hasSchemas() {
+ return !!this._json.schemas;
+ }
+ schema(e) {
+ return i(this._json.schemas, e, u);
+ }
+ securitySchemes() {
+ return r(this._json.securitySchemes, l);
+ }
+ hasSecuritySchemes() {
+ return !!this._json.securitySchemes;
+ }
+ securityScheme(e) {
+ return i(this._json.securitySchemes, e, l);
+ }
+ servers() {
+ return r(this._json.servers, p);
+ }
+ hasServers() {
+ return !!this._json.servers;
+ }
+ server(e) {
+ return i(this._json.servers, e, p);
+ }
+ parameters() {
+ return r(this._json.parameters, f);
+ }
+ hasParameters() {
+ return !!this._json.parameters;
+ }
+ parameter(e) {
+ return i(this._json.parameters, e, f);
+ }
+ correlationIds() {
+ return r(this._json.correlationIds, h);
+ }
+ hasCorrelationIds() {
+ return !!this._json.correlationIds;
+ }
+ correlationId(e) {
+ return i(this._json.correlationIds, e, h);
+ }
+ operationTraits() {
+ return r(this._json.operationTraits, d);
+ }
+ hasOperationTraits() {
+ return !!this._json.operationTraits;
+ }
+ operationTrait(e) {
+ return i(this._json.operationTraits, e, d);
+ }
+ messageTraits() {
+ return r(this._json.messageTraits, m);
+ }
+ hasMessageTraits() {
+ return !!this._json.messageTraits;
+ }
+ messageTrait(e) {
+ return i(this._json.messageTraits, e, m);
+ }
+ serverVariables() {
+ return r(this._json.serverVariables, y);
+ }
+ hasServerVariables() {
+ return !!this._json.serverVariables;
+ }
+ serverVariable(e) {
+ return i(this._json.serverVariables, e, y);
+ }
+ },
+ g
+ );
+ },
+ function (e, t, n) {
+ const { createMapOfType: r, mix: i } = n(2),
+ o = n(3),
+ a = n(133),
+ s = n(10),
+ c = n(5);
+ e.exports = i(
+ class extends o {
+ 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 r(this._json.flows, a);
+ }
+ },
+ s,
+ c
+ );
+ },
+ function (e, t, n) {
+ const { mix: r } = n(2),
+ i = n(3),
+ o = n(5);
+ e.exports = r(
+ class extends i {
+ authorizationUrl() {
+ return this._json.authorizationUrl;
+ }
+ tokenUrl() {
+ return this._json.tokenUrl;
+ }
+ refreshUrl() {
+ return this._json.refreshUrl;
+ }
+ scopes() {
+ return this._json.scopes;
+ }
+ },
+ o
+ );
+ },
+ function (e, t, n) {
+ const { xParserMessageName: r, xParserSchemaId: i } = n(51),
+ { traverseAsyncApiDocument: o } = n(72);
+ function a(e) {
+ for (const [t, n] of Object.entries(e)) n.schema() && (n.schema().json()[String(i)] = t);
+ }
+ function s(e, t) {
+ e.forEach((e) => {
+ void 0 === e.name() && void 0 === e.ext(r) && (e.json()[String(r)] = ``);
+ });
+ }
+ e.exports = {
+ assignNameToComponentMessages: function (e) {
+ if (e.hasComponents())
+ for (const [t, n] of Object.entries(e.components().messages()))
+ void 0 === n.name() && (n.json()[String(r)] = t);
+ },
+ assignUidToParameterSchemas: function (e) {
+ e.channelNames().forEach((t) => {
+ a(e.channel(t).parameters());
+ });
+ },
+ assignUidToComponentSchemas: function (e) {
+ if (e.hasComponents()) for (const [t, n] of Object.entries(e.components().schemas())) n.json()[String(i)] = t;
+ },
+ assignUidToComponentParameterSchemas: function (e) {
+ e.hasComponents() && a(e.components().parameters());
+ },
+ assignNameToAnonymousMessages: function (e) {
+ let t = 0;
+ e.hasChannels() &&
+ e.channelNames().forEach((n) => {
+ const r = e.channel(n);
+ r.hasPublish() && s(r.publish().messages(), ++t), r.hasSubscribe() && s(r.subscribe().messages(), ++t);
+ });
+ },
+ assignIdToAnonymousSchemas: function (e) {
+ let t = 0;
+ o(e, (e) => {
+ e.uid() || (e.json()[String(i)] = ``);
+ });
+ },
+ };
+ },
+ function (e, t) {
+ var n = Object.prototype.hasOwnProperty,
+ r = Object.prototype.toString;
+ e.exports = function (e, t, i) {
+ if ('[object Function]' !== r.call(t)) throw new TypeError('iterator must be a function');
+ var o = e.length;
+ if (o === +o) for (var a = 0; a < o; a++) t.call(i, e[a], a, e);
+ else for (var s in e) n.call(e, s) && t.call(i, e[s], s, e);
+ };
+ },
+ function (e, t, n) {
+ (function (t) {
+ const r = n(74),
+ i = n(137),
+ o = n(75),
+ a = n(84),
+ s = n(178),
+ c = n(214).apply,
+ u = n(27),
+ {
+ validateChannels: l,
+ validateTags: p,
+ validateServerVariables: f,
+ validateOperationId: h,
+ validateServerSecurity: d,
+ validateMessageId: m,
+ } = n(215),
+ {
+ toJS: y,
+ findRefs: g,
+ getLocationOf: v,
+ improveAjvErrors: b,
+ getDefaultSchemaFormat: x,
+ getBaseUrl: w,
+ } = n(56),
+ E = n(49),
+ _ = ['publish', 'subscribe'],
+ j = ['oauth2', 'openIdConnect'],
+ S = {},
+ D = new o({ jsonPointers: !0, allErrors: !0, schemaId: 'auto', logger: !1, validateSchema: !0 });
+ async function A(e, n = {}) {
+ let i, o;
+ 'undefined' == typeof window || n.hasOwnProperty('path')
+ ? (n.path = n.path || `${t.cwd()}${r.sep}`)
+ : (n.path = w(window.location.href));
+ try {
+ if ((({ initialFormat: o, parsedJSON: i } = y(e)), 'object' != typeof i))
+ throw new u({
+ 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 (!i.asyncapi)
+ throw new u({ type: 'missing-asyncapi-field', title: 'The `asyncapi` field is missing.', parsedJSON: i });
+ if (i.asyncapi.startsWith('1.') || !a[i.asyncapi])
+ throw new u({
+ type: 'unsupported-version',
+ title: `Version ${i.asyncapi} is not supported.`,
+ detail: 'Please use latest version of the specification.',
+ parsedJSON: i,
+ validationErrors: [v('/asyncapi', e, o)],
+ });
+ void 0 === n.applyTraits && (n.applyTraits = !0);
+ const t = new s();
+ await k(t, i, o, e, { ...n, dereference: { circular: 'ignore' } });
+ const r = (function (e) {
+ let t = D.getSchema(e);
+ if (!t) {
+ const n = a[String(e)];
+ delete n.definitions['http://json-schema.org/draft-07/schema'],
+ delete n.definitions['http://json-schema.org/draft-04/schema'],
+ D.addSchema(n, e),
+ (t = D.getSchema(e));
+ }
+ return t;
+ })(i.asyncapi),
+ c = r(i),
+ g = r.errors && [...r.errors];
+ if (!c)
+ throw new u({
+ type: 'validation-errors',
+ title: 'There were errors validating the AsyncAPI document.',
+ parsedJSON: i,
+ validationErrors: b(g, e, o),
+ });
+ await (async function (e, t, n, r) {
+ if ((f(e, t, n), d(e, t, n, j), !e.channels)) return;
+ p(e, t, n),
+ l(e, t, n),
+ h(e, t, n, _),
+ m(e, t, n, _),
+ await (async function (e, t, n, r) {
+ if (!e.components || !e.components.messages) return;
+ const i = [];
+ Object.entries(e.components.messages).forEach(([o, a]) => {
+ r.applyTraits && P(a);
+ const s = `/components/messages/${o}/payload`;
+ i.push(C(a, t, n, e, s));
+ }),
+ await Promise.all(i);
+ })(e, t, n, r),
+ await (async function (e, t, n, r) {
+ const i = [];
+ Object.entries(e.channels).forEach(([o, a]) => {
+ i.push(
+ ..._.map(async (i) => {
+ const s = a[String(i)];
+ if (!s) return;
+ const c = s.message ? s.message.oneOf || [s.message] : [];
+ r.applyTraits && (P(s), c.forEach((e) => P(e)));
+ const u = `/channels/${o}/${i}/message/payload`;
+ for (const r of c) await C(r, t, n, e, u);
+ })
+ );
+ }),
+ await Promise.all(i);
+ })(e, t, n, r);
+ })(i, e, o, n),
+ t.$refs.circular &&
+ (await (async function (e, t, n, r, i) {
+ await k(e, t, n, r, { ...i, dereference: { circular: !0 } }), (t[String('x-parser-circular')] = !0);
+ })(t, i, o, e, n));
+ } catch (e) {
+ if (e instanceof u) throw e;
+ throw new u({ type: 'unexpected-error', title: e.message, parsedJSON: i });
+ }
+ return new E(i);
+ }
+ async function k(e, t, n, r, i) {
+ try {
+ return await e.dereference(i.path, t, {
+ continueOnError: !0,
+ parse: i.parse,
+ resolve: i.resolve,
+ dereference: i.dereference,
+ });
+ } catch (e) {
+ throw new u({
+ type: 'dereference-error',
+ title: e.errors[0].message,
+ parsedJSON: t,
+ refs: g(e.errors, n, r),
+ });
+ }
+ }
+ async function C(e, t, n, r, i) {
+ if ('x-parser-message-parsed' in e && !0 === e[String('x-parser-message-parsed')]) return;
+ const o = x(r.asyncapi),
+ a = e.schemaFormat || o;
+ await S[String(a)]({
+ schemaFormat: a,
+ message: e,
+ defaultSchemaFormat: o,
+ originalAsyncAPIDocument: t,
+ parsedAsyncAPIDocument: r,
+ fileFormat: n,
+ pathToPayload: i,
+ }),
+ (e.schemaFormat = o),
+ (e[String('x-parser-message-parsed')] = !0);
+ }
+ function P(e) {
+ if (Array.isArray(e.traits)) {
+ for (const t of e.traits) for (const n in t) e[String(n)] = c(e[String(n)], t[String(n)]);
+ (e['x-parser-original-traits'] = e.traits), delete e.traits;
+ }
+ }
+ D.addMetaSchema(n(101)),
+ (e.exports = {
+ parse: A,
+ parseFromUrl: function (e, t, n = {}) {
+ t || (t = {});
+ n.hasOwnProperty('path') || (n = { ...n, path: w(e) });
+ return new Promise((r, o) => {
+ i(e, t)
+ .then((e) => e.text())
+ .then((e) => A(e, n))
+ .then((e) => r(e))
+ .catch((e) => o(e instanceof u ? e : new u({ type: 'fetch-url-error', title: e.message })));
+ });
+ },
+ registerSchemaParser: function (e) {
+ if ('object' != typeof e || 'function' != typeof e.parse || 'function' != typeof e.getMimeTypes)
+ throw new u({
+ type: 'impossible-to-register-parser',
+ title: 'parserModule must have parse() and getMimeTypes() functions.',
+ });
+ e.getMimeTypes().forEach((t) => {
+ S[String(t)] = e.parse;
+ });
+ },
+ ParserError: u,
+ AsyncAPIDocument: E,
+ });
+ }).call(this, n(6));
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (n) {
+ var r = (function () {
+ if ('undefined' != typeof self) return self;
+ if ('undefined' != typeof window) return window;
+ if (void 0 !== n) return n;
+ 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);
+ }).call(this, n(8));
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(53),
+ i = n(22),
+ o = n(54),
+ a = n(77),
+ s = n(78),
+ c = i.ucs2length,
+ u = n(39),
+ l = o.Validation;
+ function p(e, t, n) {
+ var r = h.call(this, e, t, n);
+ return r >= 0
+ ? { index: r, compiling: !0 }
+ : ((r = this._compilations.length),
+ (this._compilations[r] = { schema: e, root: t, baseId: n }),
+ { index: r, compiling: !1 });
+ }
+ function f(e, t, n) {
+ var r = h.call(this, e, t, n);
+ r >= 0 && this._compilations.splice(r, 1);
+ }
+ function h(e, t, n) {
+ for (var r = 0; r < this._compilations.length; r++) {
+ var i = this._compilations[r];
+ if (i.schema == e && i.root == t && i.baseId == n) return r;
+ }
+ return -1;
+ }
+ function d(e, t) {
+ return 'var pattern' + e + ' = new RegExp(' + i.toQuotedString(t[e]) + ');';
+ }
+ function m(e) {
+ return 'var default' + e + ' = defaults[' + e + '];';
+ }
+ function y(e, t) {
+ return void 0 === t[e] ? '' : 'var refVal' + e + ' = refVal[' + e + '];';
+ }
+ function g(e) {
+ return 'var customRule' + e + ' = customRules[' + e + '];';
+ }
+ function v(e, t) {
+ if (!e.length) return '';
+ for (var n = '', r = 0; r < e.length; r++) n += t(r, e);
+ return n;
+ }
+ e.exports = function e(t, n, h, b) {
+ var x = this,
+ w = this._opts,
+ E = [void 0],
+ _ = {},
+ j = [],
+ S = {},
+ D = [],
+ A = {},
+ k = [];
+ n = n || { schema: t, refVal: E, refs: _ };
+ var C = p.call(this, t, n, b),
+ P = this._compilations[C.index];
+ if (C.compiling)
+ return (P.callValidate = function e() {
+ var t = P.validate,
+ n = t.apply(this, arguments);
+ return (e.errors = t.errors), n;
+ });
+ var T = this._formats,
+ $ = this.RULES;
+ try {
+ var O = I(t, n, h, b);
+ P.validate = O;
+ var F = P.callValidate;
+ return (
+ F &&
+ ((F.schema = O.schema),
+ (F.errors = null),
+ (F.refs = O.refs),
+ (F.refVal = O.refVal),
+ (F.root = O.root),
+ (F.$async = O.$async),
+ w.sourceCode && (F.source = O.source)),
+ O
+ );
+ } finally {
+ f.call(this, t, n, b);
+ }
+ function I(t, a, p, f) {
+ var h = !a || (a && a.schema == t);
+ if (a.schema != n.schema) return e.call(x, t, a, p, f);
+ var b,
+ S = !0 === t.$async,
+ A = s({
+ isTop: !0,
+ schema: t,
+ isRoot: h,
+ baseId: f,
+ root: a,
+ schemaPath: '',
+ errSchemaPath: '#',
+ errorPath: '""',
+ MissingRefError: o.MissingRef,
+ RULES: $,
+ validate: s,
+ util: i,
+ resolve: r,
+ resolveRef: N,
+ usePattern: M,
+ useDefault: L,
+ useCustomRule: z,
+ opts: w,
+ formats: T,
+ logger: x.logger,
+ self: x,
+ });
+ (A = v(E, y) + v(j, d) + v(D, m) + v(k, g) + A), w.processCode && (A = w.processCode(A, t));
+ try {
+ (b = new Function(
+ 'self',
+ 'RULES',
+ 'formats',
+ 'root',
+ 'refVal',
+ 'defaults',
+ 'customRules',
+ 'equal',
+ 'ucs2length',
+ 'ValidationError',
+ A
+ )(x, $, T, n, E, D, k, u, c, l)),
+ (E[0] = b);
+ } catch (e) {
+ throw (x.logger.error('Error compiling schema, function code:', A), e);
+ }
+ return (
+ (b.schema = t),
+ (b.errors = null),
+ (b.refs = _),
+ (b.refVal = E),
+ (b.root = h ? b : a),
+ S && (b.$async = !0),
+ !0 === w.sourceCode && (b.source = { code: A, patterns: j, defaults: D }),
+ b
+ );
+ }
+ function N(t, i, o) {
+ i = r.url(t, i);
+ var a,
+ s,
+ c = _[i];
+ if (void 0 !== c) return B((a = E[c]), (s = 'refVal[' + c + ']'));
+ if (!o && n.refs) {
+ var u = n.refs[i];
+ if (void 0 !== u) return B((a = n.refVal[u]), (s = R(i, a)));
+ }
+ s = R(i);
+ var l = r.call(x, I, n, i);
+ if (void 0 === l) {
+ var p = h && h[i];
+ p && (l = r.inlineRef(p, w.inlineRefs) ? p : e.call(x, p, n, h, t));
+ }
+ if (void 0 !== l)
+ return (
+ (function (e, t) {
+ var n = _[e];
+ E[n] = t;
+ })(i, l),
+ B(l, s)
+ );
+ !(function (e) {
+ delete _[e];
+ })(i);
+ }
+ function R(e, t) {
+ var n = E.length;
+ return (E[n] = t), (_[e] = n), 'refVal' + n;
+ }
+ function B(e, t) {
+ return 'object' == typeof e || 'boolean' == typeof e
+ ? { code: t, schema: e, inline: !0 }
+ : { code: t, $async: e && !!e.$async };
+ }
+ function M(e) {
+ var t = S[e];
+ return void 0 === t && ((t = S[e] = j.length), (j[t] = e)), 'pattern' + t;
+ }
+ function L(e) {
+ switch (typeof e) {
+ case 'boolean':
+ case 'number':
+ return '' + e;
+ case 'string':
+ return i.toQuotedString(e);
+ case 'object':
+ if (null === e) return 'null';
+ var t = a(e),
+ n = A[t];
+ return void 0 === n && ((n = A[t] = D.length), (D[n] = e)), 'default' + n;
+ }
+ }
+ function z(e, t, n, r) {
+ if (!1 !== x._opts.validateSchema) {
+ var i = e.definition.dependencies;
+ if (
+ i &&
+ !i.every(function (e) {
+ return Object.prototype.hasOwnProperty.call(n, e);
+ })
+ )
+ throw new Error('parent schema must have all required keywords: ' + i.join(','));
+ var o = e.definition.validateSchema;
+ if (o)
+ if (!o(t)) {
+ var a = 'keyword schema is invalid: ' + x.errorsText(o.errors);
+ if ('log' != x._opts.validateSchema) throw new Error(a);
+ x.logger.error(a);
+ }
+ }
+ var s,
+ c = e.definition.compile,
+ u = e.definition.inline,
+ l = e.definition.macro;
+ if (c) s = c.call(x, t, n, r);
+ else if (l) (s = l.call(x, t, n, r)), !1 !== w.validateSchema && x.validateSchema(s, !0);
+ else if (u) s = u.call(x, r, e.keyword, t, n);
+ else if (!(s = e.definition.validate)) return;
+ if (void 0 === s) throw new Error('custom keyword "' + e.keyword + '"failed to compile');
+ var p = k.length;
+ return (k[p] = s), { code: 'customRule' + p, validate: s };
+ }
+ };
+ },
+ function (e, t, n) {
+ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
+ !(function (e) {
+ 'use strict';
+ function t() {
+ for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n];
+ if (t.length > 1) {
+ t[0] = t[0].slice(0, -1);
+ for (var r = t.length - 1, i = 1; i < r; ++i) t[i] = t[i].slice(1, -1);
+ return (t[r] = t[r].slice(1)), t.join('');
+ }
+ return t[0];
+ }
+ function n(e) {
+ return '(?:' + e + ')';
+ }
+ function r(e) {
+ return void 0 === e
+ ? 'undefined'
+ : null === e
+ ? 'null'
+ : Object.prototype.toString.call(e).split(' ').pop().split(']').shift().toLowerCase();
+ }
+ function i(e) {
+ return e.toUpperCase();
+ }
+ function o(e) {
+ var r = t('[0-9]', '[A-Fa-f]'),
+ i = n(
+ n('%[EFef]' + r + '%' + r + r + '%' + r + r) +
+ '|' +
+ n('%[89A-Fa-f]' + r + '%' + r + r) +
+ '|' +
+ n('%' + r + r)
+ ),
+ o = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
+ a = t('[\\:\\/\\?\\#\\[\\]\\@]', o),
+ s = e ? '[\\uE000-\\uF8FF]' : '[]',
+ c = t(
+ '[A-Za-z]',
+ '[0-9]',
+ '[\\-\\.\\_\\~]',
+ e ? '[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]' : '[]'
+ ),
+ u = n('[A-Za-z]' + t('[A-Za-z]', '[0-9]', '[\\+\\-\\.]') + '*'),
+ l = n(n(i + '|' + t(c, o, '[\\:]')) + '*'),
+ p =
+ (n(n('25[0-5]') + '|' + n('2[0-4][0-9]') + '|' + n('1[0-9][0-9]') + '|' + n('[1-9][0-9]') + '|[0-9]'),
+ n(
+ n('25[0-5]') + '|' + n('2[0-4][0-9]') + '|' + n('1[0-9][0-9]') + '|' + n('0?[1-9][0-9]') + '|0?0?[0-9]'
+ )),
+ f = n(p + '\\.' + p + '\\.' + p + '\\.' + p),
+ h = n(r + '{1,4}'),
+ d = n(n(h + '\\:' + h) + '|' + f),
+ m = n(n(h + '\\:') + '{6}' + d),
+ y = n('\\:\\:' + n(h + '\\:') + '{5}' + d),
+ g = n(n(h) + '?\\:\\:' + n(h + '\\:') + '{4}' + d),
+ v = n(n(n(h + '\\:') + '{0,1}' + h) + '?\\:\\:' + n(h + '\\:') + '{3}' + d),
+ b = n(n(n(h + '\\:') + '{0,2}' + h) + '?\\:\\:' + n(h + '\\:') + '{2}' + d),
+ x = n(n(n(h + '\\:') + '{0,3}' + h) + '?\\:\\:' + h + '\\:' + d),
+ w = n(n(n(h + '\\:') + '{0,4}' + h) + '?\\:\\:' + d),
+ E = n(n(n(h + '\\:') + '{0,5}' + h) + '?\\:\\:' + h),
+ _ = n(n(n(h + '\\:') + '{0,6}' + h) + '?\\:\\:'),
+ j = n([m, y, g, v, b, x, w, E, _].join('|')),
+ S = n(n(c + '|' + i) + '+'),
+ D = (n(j + '\\%25' + S), n(j + n('\\%25|\\%(?!' + r + '{2})') + S)),
+ A = n('[vV]' + r + '+\\.' + t(c, o, '[\\:]') + '+'),
+ k = n('\\[' + n(D + '|' + j + '|' + A) + '\\]'),
+ C = n(n(i + '|' + t(c, o)) + '*'),
+ P = n(k + '|' + f + '(?!' + C + ')|' + C),
+ T = n('[0-9]*'),
+ $ = n(n(l + '@') + '?' + P + n('\\:' + T) + '?'),
+ O = n(i + '|' + t(c, o, '[\\:\\@]')),
+ F = n(O + '*'),
+ I = n(O + '+'),
+ N = n(n(i + '|' + t(c, o, '[\\@]')) + '+'),
+ R = n(n('\\/' + F) + '*'),
+ B = n('\\/' + n(I + R) + '?'),
+ M = n(N + R),
+ L = n(I + R),
+ z = '(?!' + O + ')',
+ U = (n(R + '|' + B + '|' + M + '|' + L + '|' + z), n(n(O + '|' + t('[\\/\\?]', s)) + '*')),
+ q = n(n(O + '|[\\/\\?]') + '*'),
+ H = n(n('\\/\\/' + $ + R) + '|' + B + '|' + L + '|' + z),
+ V = n(u + '\\:' + H + n('\\?' + U) + '?' + n('\\#' + q) + '?'),
+ J = n(n('\\/\\/' + $ + R) + '|' + B + '|' + M + '|' + z),
+ K = n(J + n('\\?' + U) + '?' + n('\\#' + q) + '?');
+ return (
+ n(V + '|' + K),
+ n(u + '\\:' + H + n('\\?' + U) + '?'),
+ n(
+ n('\\/\\/(' + n('(' + l + ')@') + '?(' + P + ')' + n('\\:(' + T + ')') + '?)') +
+ '?(' +
+ R +
+ '|' +
+ B +
+ '|' +
+ L +
+ '|' +
+ z +
+ ')'
+ ),
+ n('\\?(' + U + ')'),
+ n('\\#(' + q + ')'),
+ n(
+ n('\\/\\/(' + n('(' + l + ')@') + '?(' + P + ')' + n('\\:(' + T + ')') + '?)') +
+ '?(' +
+ R +
+ '|' +
+ B +
+ '|' +
+ M +
+ '|' +
+ z +
+ ')'
+ ),
+ n('\\?(' + U + ')'),
+ n('\\#(' + q + ')'),
+ n(
+ n('\\/\\/(' + n('(' + l + ')@') + '?(' + P + ')' + n('\\:(' + T + ')') + '?)') +
+ '?(' +
+ R +
+ '|' +
+ B +
+ '|' +
+ L +
+ '|' +
+ z +
+ ')'
+ ),
+ n('\\?(' + U + ')'),
+ n('\\#(' + q + ')'),
+ n('(' + l + ')@'),
+ n('\\:(' + T + ')'),
+ {
+ NOT_SCHEME: new RegExp(t('[^]', '[A-Za-z]', '[0-9]', '[\\+\\-\\.]'), 'g'),
+ NOT_USERINFO: new RegExp(t('[^\\%\\:]', c, o), 'g'),
+ NOT_HOST: new RegExp(t('[^\\%\\[\\]\\:]', c, o), 'g'),
+ NOT_PATH: new RegExp(t('[^\\%\\/\\:\\@]', c, o), 'g'),
+ NOT_PATH_NOSCHEME: new RegExp(t('[^\\%\\/\\@]', c, o), 'g'),
+ NOT_QUERY: new RegExp(t('[^\\%]', c, o, '[\\:\\@\\/\\?]', s), 'g'),
+ NOT_FRAGMENT: new RegExp(t('[^\\%]', c, o, '[\\:\\@\\/\\?]'), 'g'),
+ ESCAPE: new RegExp(t('[^]', c, o), 'g'),
+ UNRESERVED: new RegExp(c, 'g'),
+ OTHER_CHARS: new RegExp(t('[^\\%]', c, a), 'g'),
+ PCT_ENCODED: new RegExp(i, 'g'),
+ IPV4ADDRESS: new RegExp('^(' + f + ')$'),
+ IPV6ADDRESS: new RegExp(
+ '^\\[?(' + j + ')' + n(n('\\%25|\\%(?!' + r + '{2})') + '(' + S + ')') + '?\\]?$'
+ ),
+ }
+ );
+ }
+ var a = o(!1),
+ s = o(!0),
+ c = function (e, t) {
+ if (Array.isArray(e)) return e;
+ if (Symbol.iterator in Object(e))
+ return (function (e, t) {
+ var n = [],
+ r = !0,
+ i = !1,
+ o = void 0;
+ try {
+ for (
+ var a, s = e[Symbol.iterator]();
+ !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
+ r = !0
+ );
+ } catch (e) {
+ (i = !0), (o = e);
+ } finally {
+ try {
+ !r && s.return && s.return();
+ } finally {
+ if (i) throw o;
+ }
+ }
+ return n;
+ })(e, t);
+ throw new TypeError('Invalid attempt to destructure non-iterable instance');
+ },
+ u = 2147483647,
+ l = /^xn--/,
+ p = /[^\0-\x7E]/,
+ f = /[\x2E\u3002\uFF0E\uFF61]/g,
+ h = {
+ overflow: 'Overflow: input needs wider integers to process',
+ 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
+ 'invalid-input': 'Invalid input',
+ },
+ d = Math.floor,
+ m = String.fromCharCode;
+ function y(e) {
+ throw new RangeError(h[e]);
+ }
+ function g(e, t) {
+ var n = e.split('@'),
+ r = '';
+ n.length > 1 && ((r = n[0] + '@'), (e = n[1]));
+ var i = (function (e, t) {
+ for (var n = [], r = e.length; r--; ) n[r] = t(e[r]);
+ return n;
+ })((e = e.replace(f, '.')).split('.'), t).join('.');
+ return r + i;
+ }
+ function v(e) {
+ for (var t = [], n = 0, r = e.length; n < r; ) {
+ var i = e.charCodeAt(n++);
+ if (i >= 55296 && i <= 56319 && n < r) {
+ var o = e.charCodeAt(n++);
+ 56320 == (64512 & o) ? t.push(((1023 & i) << 10) + (1023 & o) + 65536) : (t.push(i), n--);
+ } else t.push(i);
+ }
+ return t;
+ }
+ var b = function (e, t) {
+ return e + 22 + 75 * (e < 26) - ((0 != t) << 5);
+ },
+ x = function (e, t, n) {
+ var r = 0;
+ for (e = n ? d(e / 700) : e >> 1, e += d(e / t); e > 455; r += 36) e = d(e / 35);
+ return d(r + (36 * e) / (e + 38));
+ },
+ w = function (e) {
+ var t,
+ n = [],
+ r = e.length,
+ i = 0,
+ o = 128,
+ a = 72,
+ s = e.lastIndexOf('-');
+ s < 0 && (s = 0);
+ for (var c = 0; c < s; ++c) e.charCodeAt(c) >= 128 && y('not-basic'), n.push(e.charCodeAt(c));
+ for (var l = s > 0 ? s + 1 : 0; l < r; ) {
+ for (var p = i, f = 1, h = 36; ; h += 36) {
+ l >= r && y('invalid-input');
+ var m = (t = e.charCodeAt(l++)) - 48 < 10 ? t - 22 : t - 65 < 26 ? t - 65 : t - 97 < 26 ? t - 97 : 36;
+ (m >= 36 || m > d((u - i) / f)) && y('overflow'), (i += m * f);
+ var g = h <= a ? 1 : h >= a + 26 ? 26 : h - a;
+ if (m < g) break;
+ var v = 36 - g;
+ f > d(u / v) && y('overflow'), (f *= v);
+ }
+ var b = n.length + 1;
+ (a = x(i - p, b, 0 == p)),
+ d(i / b) > u - o && y('overflow'),
+ (o += d(i / b)),
+ (i %= b),
+ n.splice(i++, 0, o);
+ }
+ return String.fromCodePoint.apply(String, n);
+ },
+ E = function (e) {
+ var t = [],
+ n = (e = v(e)).length,
+ r = 128,
+ i = 0,
+ o = 72,
+ a = !0,
+ s = !1,
+ c = void 0;
+ try {
+ for (var l, p = e[Symbol.iterator](); !(a = (l = p.next()).done); a = !0) {
+ var f = l.value;
+ f < 128 && t.push(m(f));
+ }
+ } catch (e) {
+ (s = !0), (c = e);
+ } finally {
+ try {
+ !a && p.return && p.return();
+ } finally {
+ if (s) throw c;
+ }
+ }
+ var h = t.length,
+ g = h;
+ for (h && t.push('-'); g < n; ) {
+ var w = u,
+ E = !0,
+ _ = !1,
+ j = void 0;
+ try {
+ for (var S, D = e[Symbol.iterator](); !(E = (S = D.next()).done); E = !0) {
+ var A = S.value;
+ A >= r && A < w && (w = A);
+ }
+ } catch (e) {
+ (_ = !0), (j = e);
+ } finally {
+ try {
+ !E && D.return && D.return();
+ } finally {
+ if (_) throw j;
+ }
+ }
+ var k = g + 1;
+ w - r > d((u - i) / k) && y('overflow'), (i += (w - r) * k), (r = w);
+ var C = !0,
+ P = !1,
+ T = void 0;
+ try {
+ for (var $, O = e[Symbol.iterator](); !(C = ($ = O.next()).done); C = !0) {
+ var F = $.value;
+ if ((F < r && ++i > u && y('overflow'), F == r)) {
+ for (var I = i, N = 36; ; N += 36) {
+ var R = N <= o ? 1 : N >= o + 26 ? 26 : N - o;
+ if (I < R) break;
+ var B = I - R,
+ M = 36 - R;
+ t.push(m(b(R + (B % M), 0))), (I = d(B / M));
+ }
+ t.push(m(b(I, 0))), (o = x(i, k, g == h)), (i = 0), ++g;
+ }
+ }
+ } catch (e) {
+ (P = !0), (T = e);
+ } finally {
+ try {
+ !C && O.return && O.return();
+ } finally {
+ if (P) throw T;
+ }
+ }
+ ++i, ++r;
+ }
+ return t.join('');
+ },
+ _ = function (e) {
+ return g(e, function (e) {
+ return p.test(e) ? 'xn--' + E(e) : e;
+ });
+ },
+ j = function (e) {
+ return g(e, function (e) {
+ return l.test(e) ? w(e.slice(4).toLowerCase()) : e;
+ });
+ },
+ S = {};
+ function D(e) {
+ var t = e.charCodeAt(0);
+ return t < 16
+ ? '%0' + t.toString(16).toUpperCase()
+ : t < 128
+ ? '%' + t.toString(16).toUpperCase()
+ : t < 2048
+ ? '%' + ((t >> 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 A(e) {
+ for (var t = '', n = 0, r = e.length; n < r; ) {
+ var i = parseInt(e.substr(n + 1, 2), 16);
+ if (i < 128) (t += String.fromCharCode(i)), (n += 3);
+ else if (i >= 194 && i < 224) {
+ if (r - n >= 6) {
+ var o = parseInt(e.substr(n + 4, 2), 16);
+ t += String.fromCharCode(((31 & i) << 6) | (63 & o));
+ } else t += e.substr(n, 6);
+ n += 6;
+ } else if (i >= 224) {
+ if (r - n >= 9) {
+ var a = parseInt(e.substr(n + 4, 2), 16),
+ s = parseInt(e.substr(n + 7, 2), 16);
+ t += String.fromCharCode(((15 & i) << 12) | ((63 & a) << 6) | (63 & s));
+ } else t += e.substr(n, 9);
+ n += 9;
+ } else (t += e.substr(n, 3)), (n += 3);
+ }
+ return t;
+ }
+ function k(e, t) {
+ function n(e) {
+ var n = A(e);
+ return n.match(t.UNRESERVED) ? n : e;
+ }
+ return (
+ e.scheme && (e.scheme = String(e.scheme).replace(t.PCT_ENCODED, n).toLowerCase().replace(t.NOT_SCHEME, '')),
+ void 0 !== e.userinfo &&
+ (e.userinfo = String(e.userinfo)
+ .replace(t.PCT_ENCODED, n)
+ .replace(t.NOT_USERINFO, D)
+ .replace(t.PCT_ENCODED, i)),
+ void 0 !== e.host &&
+ (e.host = String(e.host)
+ .replace(t.PCT_ENCODED, n)
+ .toLowerCase()
+ .replace(t.NOT_HOST, D)
+ .replace(t.PCT_ENCODED, i)),
+ void 0 !== e.path &&
+ (e.path = String(e.path)
+ .replace(t.PCT_ENCODED, n)
+ .replace(e.scheme ? t.NOT_PATH : t.NOT_PATH_NOSCHEME, D)
+ .replace(t.PCT_ENCODED, i)),
+ void 0 !== e.query &&
+ (e.query = String(e.query).replace(t.PCT_ENCODED, n).replace(t.NOT_QUERY, D).replace(t.PCT_ENCODED, i)),
+ void 0 !== e.fragment &&
+ (e.fragment = String(e.fragment)
+ .replace(t.PCT_ENCODED, n)
+ .replace(t.NOT_FRAGMENT, D)
+ .replace(t.PCT_ENCODED, i)),
+ e
+ );
+ }
+ function C(e) {
+ return e.replace(/^0*(.*)/, '$1') || '0';
+ }
+ function P(e, t) {
+ var n = e.match(t.IPV4ADDRESS) || [],
+ r = c(n, 2)[1];
+ return r ? r.split('.').map(C).join('.') : e;
+ }
+ function T(e, t) {
+ var n = e.match(t.IPV6ADDRESS) || [],
+ r = c(n, 3),
+ i = r[1],
+ o = r[2];
+ if (i) {
+ for (
+ var a = i.toLowerCase().split('::').reverse(),
+ s = c(a, 2),
+ u = s[0],
+ l = s[1],
+ p = l ? l.split(':').map(C) : [],
+ f = u.split(':').map(C),
+ h = t.IPV4ADDRESS.test(f[f.length - 1]),
+ d = h ? 7 : 8,
+ m = f.length - d,
+ y = Array(d),
+ g = 0;
+ g < d;
+ ++g
+ )
+ y[g] = p[g] || f[m + g] || '';
+ h && (y[d - 1] = P(y[d - 1], t));
+ var v = y
+ .reduce(function (e, t, n) {
+ if (!t || '0' === t) {
+ var r = e[e.length - 1];
+ r && r.index + r.length === n ? r.length++ : e.push({ index: n, length: 1 });
+ }
+ return e;
+ }, [])
+ .sort(function (e, t) {
+ return t.length - e.length;
+ })[0],
+ b = void 0;
+ if (v && v.length > 1) {
+ var x = y.slice(0, v.index),
+ w = y.slice(v.index + v.length);
+ b = x.join(':') + '::' + w.join(':');
+ } else b = y.join(':');
+ return o && (b += '%' + o), b;
+ }
+ return e;
+ }
+ var $ =
+ /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,
+ O = void 0 === ''.match(/(){0}/)[1];
+ function F(e) {
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
+ n = {},
+ r = !1 !== t.iri ? s : a;
+ 'suffix' === t.reference && (e = (t.scheme ? t.scheme + ':' : '') + '//' + e);
+ var i = e.match($);
+ if (i) {
+ O
+ ? ((n.scheme = i[1]),
+ (n.userinfo = i[3]),
+ (n.host = i[4]),
+ (n.port = parseInt(i[5], 10)),
+ (n.path = i[6] || ''),
+ (n.query = i[7]),
+ (n.fragment = i[8]),
+ isNaN(n.port) && (n.port = i[5]))
+ : ((n.scheme = i[1] || void 0),
+ (n.userinfo = -1 !== e.indexOf('@') ? i[3] : void 0),
+ (n.host = -1 !== e.indexOf('//') ? i[4] : void 0),
+ (n.port = parseInt(i[5], 10)),
+ (n.path = i[6] || ''),
+ (n.query = -1 !== e.indexOf('?') ? i[7] : void 0),
+ (n.fragment = -1 !== e.indexOf('#') ? i[8] : void 0),
+ isNaN(n.port) && (n.port = e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? i[4] : void 0)),
+ n.host && (n.host = T(P(n.host, r), r)),
+ void 0 !== n.scheme ||
+ void 0 !== n.userinfo ||
+ void 0 !== n.host ||
+ void 0 !== n.port ||
+ n.path ||
+ void 0 !== n.query
+ ? void 0 === n.scheme
+ ? (n.reference = 'relative')
+ : void 0 === n.fragment
+ ? (n.reference = 'absolute')
+ : (n.reference = 'uri')
+ : (n.reference = 'same-document'),
+ t.reference &&
+ 'suffix' !== t.reference &&
+ t.reference !== n.reference &&
+ (n.error = n.error || 'URI is not a ' + t.reference + ' reference.');
+ var o = S[(t.scheme || n.scheme || '').toLowerCase()];
+ if (t.unicodeSupport || (o && o.unicodeSupport)) k(n, r);
+ else {
+ if (n.host && (t.domainHost || (o && o.domainHost)))
+ try {
+ n.host = _(n.host.replace(r.PCT_ENCODED, A).toLowerCase());
+ } catch (e) {
+ n.error = n.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
+ }
+ k(n, a);
+ }
+ o && o.parse && o.parse(n, t);
+ } else n.error = n.error || 'URI can not be parsed.';
+ return n;
+ }
+ function I(e, t) {
+ var n = !1 !== t.iri ? s : a,
+ r = [];
+ return (
+ void 0 !== e.userinfo && (r.push(e.userinfo), r.push('@')),
+ void 0 !== e.host &&
+ r.push(
+ T(P(String(e.host), n), n).replace(n.IPV6ADDRESS, function (e, t, n) {
+ return '[' + t + (n ? '%25' + n : '') + ']';
+ })
+ ),
+ ('number' != typeof e.port && 'string' != typeof e.port) || (r.push(':'), r.push(String(e.port))),
+ r.length ? r.join('') : void 0
+ );
+ }
+ var N = /^\.\.?\//,
+ R = /^\/\.(\/|$)/,
+ B = /^\/\.\.(\/|$)/,
+ M = /^\/?(?:.|\n)*?(?=\/|$)/;
+ function L(e) {
+ for (var t = []; e.length; )
+ if (e.match(N)) e = e.replace(N, '');
+ else if (e.match(R)) e = e.replace(R, '/');
+ else if (e.match(B)) (e = e.replace(B, '/')), t.pop();
+ else if ('.' === e || '..' === e) e = '';
+ else {
+ var n = e.match(M);
+ if (!n) throw new Error('Unexpected dot segment condition');
+ var r = n[0];
+ (e = e.slice(r.length)), t.push(r);
+ }
+ return t.join('');
+ }
+ function z(e) {
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
+ n = t.iri ? s : a,
+ r = [],
+ i = S[(t.scheme || e.scheme || '').toLowerCase()];
+ if ((i && i.serialize && i.serialize(e, t), e.host))
+ if (n.IPV6ADDRESS.test(e.host));
+ else if (t.domainHost || (i && i.domainHost))
+ try {
+ e.host = t.iri ? j(e.host) : _(e.host.replace(n.PCT_ENCODED, A).toLowerCase());
+ } catch (n) {
+ e.error =
+ e.error ||
+ "Host's domain name can not be converted to " + (t.iri ? 'Unicode' : 'ASCII') + ' via punycode: ' + n;
+ }
+ k(e, n), 'suffix' !== t.reference && e.scheme && (r.push(e.scheme), r.push(':'));
+ var o = I(e, t);
+ if (
+ (void 0 !== o &&
+ ('suffix' !== t.reference && r.push('//'), r.push(o), e.path && '/' !== e.path.charAt(0) && r.push('/')),
+ void 0 !== e.path)
+ ) {
+ var c = e.path;
+ t.absolutePath || (i && i.absolutePath) || (c = L(c)),
+ void 0 === o && (c = c.replace(/^\/\//, '/%2F')),
+ r.push(c);
+ }
+ return (
+ void 0 !== e.query && (r.push('?'), r.push(e.query)),
+ void 0 !== e.fragment && (r.push('#'), r.push(e.fragment)),
+ r.join('')
+ );
+ }
+ function U(e, t) {
+ var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
+ r = arguments[3],
+ i = {};
+ return (
+ r || ((e = F(z(e, n), n)), (t = F(z(t, n), n))),
+ !(n = n || {}).tolerant && t.scheme
+ ? ((i.scheme = t.scheme),
+ (i.userinfo = t.userinfo),
+ (i.host = t.host),
+ (i.port = t.port),
+ (i.path = L(t.path || '')),
+ (i.query = t.query))
+ : (void 0 !== t.userinfo || void 0 !== t.host || void 0 !== t.port
+ ? ((i.userinfo = t.userinfo),
+ (i.host = t.host),
+ (i.port = t.port),
+ (i.path = L(t.path || '')),
+ (i.query = t.query))
+ : (t.path
+ ? ('/' === t.path.charAt(0)
+ ? (i.path = L(t.path))
+ : ((void 0 === e.userinfo && void 0 === e.host && void 0 === e.port) || e.path
+ ? e.path
+ ? (i.path = e.path.slice(0, e.path.lastIndexOf('/') + 1) + t.path)
+ : (i.path = t.path)
+ : (i.path = '/' + t.path),
+ (i.path = L(i.path))),
+ (i.query = t.query))
+ : ((i.path = e.path), void 0 !== t.query ? (i.query = t.query) : (i.query = e.query)),
+ (i.userinfo = e.userinfo),
+ (i.host = e.host),
+ (i.port = e.port)),
+ (i.scheme = e.scheme)),
+ (i.fragment = t.fragment),
+ i
+ );
+ }
+ function q(e, t) {
+ return e && e.toString().replace(t && t.iri ? s.PCT_ENCODED : a.PCT_ENCODED, A);
+ }
+ 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) {
+ var n = 'https' === String(e.scheme).toLowerCase();
+ return (e.port !== (n ? 443 : 80) && '' !== e.port) || (e.port = void 0), e.path || (e.path = '/'), e;
+ },
+ },
+ V = { scheme: 'https', domainHost: H.domainHost, parse: H.parse, serialize: H.serialize };
+ function J(e) {
+ return 'boolean' == typeof e.secure ? e.secure : 'wss' === String(e.scheme).toLowerCase();
+ }
+ var K = {
+ scheme: 'ws',
+ domainHost: !0,
+ parse: function (e, t) {
+ var n = e;
+ return (
+ (n.secure = J(n)),
+ (n.resourceName = (n.path || '/') + (n.query ? '?' + n.query : '')),
+ (n.path = void 0),
+ (n.query = void 0),
+ n
+ );
+ },
+ serialize: function (e, t) {
+ if (
+ ((e.port !== (J(e) ? 443 : 80) && '' !== e.port) || (e.port = void 0),
+ 'boolean' == typeof e.secure && ((e.scheme = e.secure ? 'wss' : 'ws'), (e.secure = void 0)),
+ e.resourceName)
+ ) {
+ var n = e.resourceName.split('?'),
+ r = c(n, 2),
+ i = r[0],
+ o = r[1];
+ (e.path = i && '/' !== i ? i : void 0), (e.query = o), (e.resourceName = void 0);
+ }
+ return (e.fragment = void 0), e;
+ },
+ },
+ W = { scheme: 'wss', domainHost: K.domainHost, parse: K.parse, serialize: K.serialize },
+ X = {},
+ G = '[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]',
+ Y = '[0-9A-Fa-f]',
+ Z = n(
+ n('%[EFef]' + Y + '%' + Y + Y + '%' + Y + Y) +
+ '|' +
+ n('%[89A-Fa-f]' + Y + '%' + Y + Y) +
+ '|' +
+ n('%' + Y + Y)
+ ),
+ Q = t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", '[\\"\\\\]'),
+ ee = new RegExp(G, 'g'),
+ te = new RegExp(Z, 'g'),
+ ne = new RegExp(t('[^]', "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", '[\\.]', '[\\"]', Q), 'g'),
+ re = new RegExp(t('[^]', G, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), 'g'),
+ ie = re;
+ function oe(e) {
+ var t = A(e);
+ return t.match(ee) ? t : e;
+ }
+ var ae = {
+ scheme: 'mailto',
+ parse: function (e, t) {
+ var n = e,
+ r = (n.to = n.path ? n.path.split(',') : []);
+ if (((n.path = void 0), n.query)) {
+ for (var i = !1, o = {}, a = n.query.split('&'), s = 0, c = a.length; s < c; ++s) {
+ var u = a[s].split('=');
+ switch (u[0]) {
+ case 'to':
+ for (var l = u[1].split(','), p = 0, f = l.length; p < f; ++p) r.push(l[p]);
+ break;
+ case 'subject':
+ n.subject = q(u[1], t);
+ break;
+ case 'body':
+ n.body = q(u[1], t);
+ break;
+ default:
+ (i = !0), (o[q(u[0], t)] = q(u[1], t));
+ }
+ }
+ i && (n.headers = o);
+ }
+ n.query = void 0;
+ for (var h = 0, d = r.length; h < d; ++h) {
+ var m = r[h].split('@');
+ if (((m[0] = q(m[0])), t.unicodeSupport)) m[1] = q(m[1], t).toLowerCase();
+ else
+ try {
+ m[1] = _(q(m[1], t).toLowerCase());
+ } catch (e) {
+ n.error = n.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
+ }
+ r[h] = m.join('@');
+ }
+ return n;
+ },
+ serialize: function (e, t) {
+ var n,
+ r = e,
+ o =
+ null != (n = e.to)
+ ? n instanceof Array
+ ? n
+ : 'number' != typeof n.length || n.split || n.setInterval || n.call
+ ? [n]
+ : Array.prototype.slice.call(n)
+ : [];
+ if (o) {
+ for (var a = 0, s = o.length; a < s; ++a) {
+ var c = String(o[a]),
+ u = c.lastIndexOf('@'),
+ l = c.slice(0, u).replace(te, oe).replace(te, i).replace(ne, D),
+ p = c.slice(u + 1);
+ try {
+ p = t.iri ? j(p) : _(q(p, t).toLowerCase());
+ } catch (e) {
+ r.error =
+ r.error ||
+ "Email address's domain name can not be converted to " +
+ (t.iri ? 'Unicode' : 'ASCII') +
+ ' via punycode: ' +
+ e;
+ }
+ o[a] = l + '@' + p;
+ }
+ r.path = o.join(',');
+ }
+ var f = (e.headers = e.headers || {});
+ e.subject && (f.subject = e.subject), e.body && (f.body = e.body);
+ var h = [];
+ for (var d in f)
+ f[d] !== X[d] &&
+ h.push(
+ d.replace(te, oe).replace(te, i).replace(re, D) +
+ '=' +
+ f[d].replace(te, oe).replace(te, i).replace(ie, D)
+ );
+ return h.length && (r.query = h.join('&')), r;
+ },
+ },
+ se = /^([^\:]+)\:(.*)/,
+ ce = {
+ scheme: 'urn',
+ parse: function (e, t) {
+ var n = e.path && e.path.match(se),
+ r = e;
+ if (n) {
+ var i = t.scheme || r.scheme || 'urn',
+ o = n[1].toLowerCase(),
+ a = n[2],
+ s = i + ':' + (t.nid || o),
+ c = S[s];
+ (r.nid = o), (r.nss = a), (r.path = void 0), c && (r = c.parse(r, t));
+ } else r.error = r.error || 'URN can not be parsed.';
+ return r;
+ },
+ serialize: function (e, t) {
+ var n = t.scheme || e.scheme || 'urn',
+ r = e.nid,
+ i = n + ':' + (t.nid || r),
+ o = S[i];
+ o && (e = o.serialize(e, t));
+ var a = e,
+ s = e.nss;
+ return (a.path = (r || t.nid) + ':' + s), a;
+ },
+ },
+ ue = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,
+ le = {
+ scheme: 'urn:uuid',
+ parse: function (e, t) {
+ var n = e;
+ return (
+ (n.uuid = n.nss),
+ (n.nss = void 0),
+ t.tolerant || (n.uuid && n.uuid.match(ue)) || (n.error = n.error || 'UUID is not valid.'),
+ n
+ );
+ },
+ serialize: function (e, t) {
+ var n = e;
+ return (n.nss = (e.uuid || '').toLowerCase()), n;
+ },
+ };
+ (S[H.scheme] = H),
+ (S[V.scheme] = V),
+ (S[K.scheme] = K),
+ (S[W.scheme] = W),
+ (S[ae.scheme] = ae),
+ (S[ce.scheme] = ce),
+ (S[le.scheme] = le),
+ (e.SCHEMES = S),
+ (e.pctEncChar = D),
+ (e.pctDecChars = A),
+ (e.parse = F),
+ (e.removeDotSegments = L),
+ (e.serialize = z),
+ (e.resolveComponents = U),
+ (e.resolve = function (e, t, n) {
+ var r = (function (e, t) {
+ var n = e;
+ if (t) for (var r in t) n[r] = t[r];
+ return n;
+ })({ scheme: 'null' }, n);
+ return z(U(F(e, r), F(t, r), r, !0), r);
+ }),
+ (e.normalize = function (e, t) {
+ return 'string' == typeof e ? (e = z(F(e, t), t)) : 'object' === r(e) && (e = F(z(e, t), t)), e;
+ }),
+ (e.equal = function (e, t, n) {
+ return (
+ 'string' == typeof e ? (e = z(F(e, n), n)) : 'object' === r(e) && (e = z(e, n)),
+ 'string' == typeof t ? (t = z(F(t, n), n)) : 'object' === r(t) && (t = z(t, n)),
+ e === t
+ );
+ }),
+ (e.escapeComponent = function (e, t) {
+ return e && e.toString().replace(t && t.iri ? s.ESCAPE : a.ESCAPE, D);
+ }),
+ (e.unescapeComponent = q),
+ Object.defineProperty(e, '__esModule', { value: !0 });
+ })(t);
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e) {
+ for (var t, n = 0, r = e.length, i = 0; i < r; )
+ n++,
+ (t = e.charCodeAt(i++)) >= 55296 && t <= 56319 && i < r && 56320 == (64512 & (t = e.charCodeAt(i))) && i++;
+ return n;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = (e.exports = function (e, t, n) {
+ 'function' == typeof t && ((n = t), (t = {})),
+ (function e(t, n, i, o, a, s, c, u, l, p) {
+ if (o && 'object' == typeof o && !Array.isArray(o)) {
+ for (var f in (n(o, a, s, c, u, l, p), o)) {
+ var h = o[f];
+ if (Array.isArray(h)) {
+ if (f in r.arrayKeywords)
+ for (var d = 0; d < h.length; d++) e(t, n, i, h[d], a + '/' + f + '/' + d, s, a, f, o, d);
+ } else if (f in r.propsKeywords) {
+ if (h && 'object' == typeof h)
+ for (var m in h)
+ e(t, n, i, h[m], a + '/' + f + '/' + m.replace(/~/g, '~0').replace(/\//g, '~1'), s, a, f, o, m);
+ } else
+ (f in r.keywords || (t.allKeys && !(f in r.skipKeywords))) && e(t, n, i, h, a + '/' + f, s, a, f, o);
+ }
+ i(o, a, s, c, u, l, p);
+ }
+ })(t, 'function' == typeof (n = t.cb || n) ? n : n.pre || function () {}, n.post || function () {}, e, '', e);
+ });
+ (r.keywords = {
+ additionalItems: !0,
+ items: !0,
+ contains: !0,
+ additionalProperties: !0,
+ propertyNames: !0,
+ not: !0,
+ }),
+ (r.arrayKeywords = { items: !0, allOf: !0, anyOf: !0, oneOf: !0 }),
+ (r.propsKeywords = { definitions: !0, properties: !0, patternProperties: !0, dependencies: !0 }),
+ (r.skipKeywords = {
+ default: !0,
+ enum: !0,
+ const: !0,
+ required: !0,
+ maximum: !0,
+ minimum: !0,
+ exclusiveMaximum: !0,
+ exclusiveMinimum: !0,
+ multipleOf: !0,
+ maxLength: !0,
+ minLength: !0,
+ pattern: !0,
+ format: !0,
+ maxItems: !0,
+ minItems: !0,
+ uniqueItems: !0,
+ maxProperties: !0,
+ minProperties: !0,
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = (e.exports = function () {
+ this._cache = {};
+ });
+ (r.prototype.put = function (e, t) {
+ this._cache[e] = t;
+ }),
+ (r.prototype.get = function (e) {
+ return this._cache[e];
+ }),
+ (r.prototype.del = function (e) {
+ delete this._cache[e];
+ }),
+ (r.prototype.clear = function () {
+ this._cache = {};
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(22),
+ i = /^(\d\d\d\d)-(\d\d)-(\d\d)$/,
+ o = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
+ a = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,
+ s = /^(?=.{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,
+ c =
+ /^(?:[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,
+ u =
+ /^(?:(?:[^\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,
+ l =
+ /^(?:(?: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-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-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,
+ p = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
+ f = /^(?:\/(?:[^~/]|~0|~1)*)*$/,
+ h = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
+ d = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
+ function m(e) {
+ return (e = 'full' == e ? 'full' : 'fast'), r.copy(m[e]);
+ }
+ function y(e) {
+ var t = e.match(i);
+ if (!t) return !1;
+ var n = +t[1],
+ r = +t[2],
+ a = +t[3];
+ return (
+ r >= 1 &&
+ r <= 12 &&
+ a >= 1 &&
+ a <=
+ (2 == r &&
+ (function (e) {
+ return e % 4 == 0 && (e % 100 != 0 || e % 400 == 0);
+ })(n)
+ ? 29
+ : o[r])
+ );
+ }
+ function g(e, t) {
+ var n = e.match(a);
+ if (!n) return !1;
+ var r = n[1],
+ i = n[2],
+ o = n[3],
+ s = n[5];
+ return ((r <= 23 && i <= 59 && o <= 59) || (23 == r && 59 == i && 60 == o)) && (!t || s);
+ }
+ (e.exports = m),
+ (m.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': u,
+ url: l,
+ 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: s,
+ 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: w,
+ uuid: p,
+ 'json-pointer': f,
+ 'json-pointer-uri-fragment': h,
+ 'relative-json-pointer': d,
+ }),
+ (m.full = {
+ date: y,
+ time: g,
+ 'date-time': function (e) {
+ var t = e.split(v);
+ return 2 == t.length && y(t[0]) && g(t[1], !0);
+ },
+ uri: function (e) {
+ return b.test(e) && c.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': u,
+ url: l,
+ 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: s,
+ 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: w,
+ uuid: p,
+ 'json-pointer': f,
+ 'json-pointer-uri-fragment': h,
+ 'relative-json-pointer': d,
+ });
+ var v = /t|\s/i;
+ var b = /\/|:/;
+ var x = /[^\\]\\Z/;
+ function w(e) {
+ if (x.test(e)) return !1;
+ try {
+ return new RegExp(e), !0;
+ } catch (e) {
+ return !1;
+ }
+ }
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(145),
+ i = n(22).toHash;
+ e.exports = function () {
+ var e = [
+ {
+ type: 'number',
+ rules: [{ maximum: ['exclusiveMaximum'] }, { minimum: ['exclusiveMinimum'] }, 'multipleOf', 'format'],
+ },
+ { type: 'string', rules: ['maxLength', 'minLength', 'pattern', 'format'] },
+ { type: 'array', rules: ['maxItems', 'minItems', 'items', 'contains', 'uniqueItems'] },
+ {
+ type: 'object',
+ rules: [
+ 'maxProperties',
+ 'minProperties',
+ 'required',
+ 'dependencies',
+ 'propertyNames',
+ { properties: ['additionalProperties', 'patternProperties'] },
+ ],
+ },
+ { rules: ['$ref', 'const', 'enum', 'not', 'anyOf', 'oneOf', 'allOf', 'if'] },
+ ],
+ t = ['type', '$comment'];
+ return (
+ (e.all = i(t)),
+ (e.types = i(['number', 'integer', 'string', 'array', 'object', 'boolean', 'null'])),
+ e.forEach(function (n) {
+ (n.rules = n.rules.map(function (n) {
+ var i;
+ if ('object' == typeof n) {
+ var o = Object.keys(n)[0];
+ (i = n[o]),
+ (n = o),
+ i.forEach(function (n) {
+ t.push(n), (e.all[n] = !0);
+ });
+ }
+ return t.push(n), (e.all[n] = { keyword: n, code: r[n], implements: i });
+ })),
+ (e.all.$comment = { keyword: '$comment', code: r.$comment }),
+ n.type && (e.types[n.type] = n);
+ }),
+ (e.keywords = i(
+ t.concat([
+ '$schema',
+ '$id',
+ 'id',
+ '$data',
+ '$async',
+ 'title',
+ 'description',
+ 'default',
+ 'definitions',
+ 'examples',
+ 'readOnly',
+ 'writeOnly',
+ 'contentMediaType',
+ 'contentEncoding',
+ 'additionalItems',
+ 'then',
+ 'else',
+ ])
+ )),
+ (e.custom = {}),
+ e
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = {
+ $ref: n(146),
+ allOf: n(147),
+ anyOf: n(148),
+ $comment: n(149),
+ const: n(150),
+ contains: n(151),
+ dependencies: n(152),
+ enum: n(153),
+ format: n(154),
+ if: n(155),
+ items: n(156),
+ maximum: n(79),
+ minimum: n(79),
+ maxItems: n(80),
+ minItems: n(80),
+ maxLength: n(81),
+ minLength: n(81),
+ maxProperties: n(82),
+ minProperties: n(82),
+ multipleOf: n(157),
+ not: n(158),
+ oneOf: n(159),
+ pattern: n(160),
+ properties: n(161),
+ propertyNames: n(162),
+ required: n(163),
+ uniqueItems: n(164),
+ validate: n(78),
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r,
+ i,
+ o = ' ',
+ a = e.level,
+ s = e.dataLevel,
+ c = e.schema[t],
+ u = e.errSchemaPath + '/' + t,
+ l = !e.opts.allErrors,
+ p = 'data' + (s || ''),
+ f = 'valid' + a;
+ if ('#' == c || '#/' == c)
+ e.isRoot ? ((r = e.async), (i = 'validate')) : ((r = !0 === e.root.schema.$async), (i = 'root.refVal[0]'));
+ else {
+ var h = e.resolveRef(e.baseId, c, e.isRoot);
+ if (void 0 === h) {
+ var d = e.MissingRefError.message(e.baseId, c);
+ if ('fail' == e.opts.missingRefs) {
+ e.logger.error(d),
+ (v = v || []).push(o),
+ (o = ''),
+ !1 !== e.createErrors
+ ? ((o +=
+ " { keyword: '$ref' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(u) +
+ " , params: { ref: '" +
+ e.util.escapeQuotes(c) +
+ "' } "),
+ !1 !== e.opts.messages &&
+ (o += " , message: 'can\\'t resolve reference " + e.util.escapeQuotes(c) + "' "),
+ e.opts.verbose &&
+ (o +=
+ ' , schema: ' +
+ e.util.toQuotedString(c) +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ p +
+ ' '),
+ (o += ' } '))
+ : (o += ' {} ');
+ var m = o;
+ (o = v.pop()),
+ !e.compositeRule && l
+ ? e.async
+ ? (o += ' throw new ValidationError([' + m + ']); ')
+ : (o += ' validate.errors = [' + m + ']; return false; ')
+ : (o +=
+ ' var err = ' +
+ m +
+ '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ l && (o += ' if (false) { ');
+ } else {
+ if ('ignore' != e.opts.missingRefs) throw new e.MissingRefError(e.baseId, c, d);
+ e.logger.warn(d), l && (o += ' if (true) { ');
+ }
+ } else if (h.inline) {
+ var y = e.util.copy(e);
+ y.level++;
+ var g = 'valid' + y.level;
+ (y.schema = h.schema),
+ (y.schemaPath = ''),
+ (y.errSchemaPath = c),
+ (o += ' ' + e.validate(y).replace(/validate\.schema/g, h.code) + ' '),
+ l && (o += ' if (' + g + ') { ');
+ } else (r = !0 === h.$async || (e.async && !1 !== h.$async)), (i = h.code);
+ }
+ if (i) {
+ var v;
+ (v = v || []).push(o),
+ (o = ''),
+ e.opts.passContext ? (o += ' ' + i + '.call(this, ') : (o += ' ' + i + '( '),
+ (o += ' ' + p + ", (dataPath || '')"),
+ '""' != e.errorPath && (o += ' + ' + e.errorPath);
+ var b = (o +=
+ ' , ' +
+ (s ? 'data' + (s - 1 || '') : 'parentData') +
+ ' , ' +
+ (s ? e.dataPathArr[s] : 'parentDataProperty') +
+ ', rootData) ');
+ if (((o = v.pop()), r)) {
+ if (!e.async) throw new Error('async schema referenced by sync schema');
+ l && (o += ' var ' + f + '; '),
+ (o += ' try { await ' + b + '; '),
+ l && (o += ' ' + f + ' = true; '),
+ (o +=
+ ' } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; '),
+ l && (o += ' ' + f + ' = false; '),
+ (o += ' } '),
+ l && (o += ' if (' + f + ') { ');
+ } else
+ (o +=
+ ' if (!' +
+ b +
+ ') { if (vErrors === null) vErrors = ' +
+ i +
+ '.errors; else vErrors = vErrors.concat(' +
+ i +
+ '.errors); errors = vErrors.length; } '),
+ l && (o += ' else { ');
+ }
+ return o;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.schema[t],
+ o = e.schemaPath + e.util.getProperty(t),
+ a = e.errSchemaPath + '/' + t,
+ s = !e.opts.allErrors,
+ c = e.util.copy(e),
+ u = '';
+ c.level++;
+ var l = 'valid' + c.level,
+ p = c.baseId,
+ f = !0,
+ h = i;
+ if (h)
+ for (var d, m = -1, y = h.length - 1; m < y; )
+ (d = h[(m += 1)]),
+ (e.opts.strictKeywords
+ ? ('object' == typeof d && Object.keys(d).length > 0) || !1 === d
+ : e.util.schemaHasRules(d, e.RULES.all)) &&
+ ((f = !1),
+ (c.schema = d),
+ (c.schemaPath = o + '[' + m + ']'),
+ (c.errSchemaPath = a + '/' + m),
+ (r += ' ' + e.validate(c) + ' '),
+ (c.baseId = p),
+ s && ((r += ' if (' + l + ') { '), (u += '}')));
+ return s && (r += f ? ' if (true) { ' : ' ' + u.slice(0, -1) + ' '), r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'valid' + i,
+ f = 'errs__' + i,
+ h = e.util.copy(e),
+ d = '';
+ h.level++;
+ var m = 'valid' + h.level;
+ if (
+ a.every(function (t) {
+ return e.opts.strictKeywords
+ ? ('object' == typeof t && Object.keys(t).length > 0) || !1 === t
+ : e.util.schemaHasRules(t, e.RULES.all);
+ })
+ ) {
+ var y = h.baseId;
+ r += ' var ' + f + ' = errors; var ' + p + ' = false; ';
+ var g = e.compositeRule;
+ e.compositeRule = h.compositeRule = !0;
+ var v = a;
+ if (v)
+ for (var b, x = -1, w = v.length - 1; x < w; )
+ (b = v[(x += 1)]),
+ (h.schema = b),
+ (h.schemaPath = s + '[' + x + ']'),
+ (h.errSchemaPath = c + '/' + x),
+ (r += ' ' + e.validate(h) + ' '),
+ (h.baseId = y),
+ (r += ' ' + p + ' = ' + p + ' || ' + m + '; if (!' + p + ') { '),
+ (d += '}');
+ (e.compositeRule = h.compositeRule = g),
+ (r += ' ' + d + ' if (!' + p + ') { var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'anyOf' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: {} '),
+ !1 !== e.opts.messages && (r += " , message: 'should match some schema in anyOf' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ !e.compositeRule &&
+ u &&
+ (e.async
+ ? (r += ' throw new ValidationError(vErrors); ')
+ : (r += ' validate.errors = vErrors; return false; ')),
+ (r +=
+ ' } else { errors = ' +
+ f +
+ '; if (vErrors !== null) { if (' +
+ f +
+ ') vErrors.length = ' +
+ f +
+ '; else vErrors = null; } '),
+ e.opts.allErrors && (r += ' } ');
+ } else u && (r += ' if (true) { ');
+ return r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.schema[t],
+ o = e.errSchemaPath + '/' + t,
+ a = (e.opts.allErrors, e.util.toQuotedString(i));
+ return (
+ !0 === e.opts.$comment
+ ? (r += ' console.log(' + a + ');')
+ : 'function' == typeof e.opts.$comment &&
+ (r += ' self._opts.$comment(' + a + ', ' + e.util.toQuotedString(o) + ', validate.root.schema);'),
+ r
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'valid' + i,
+ f = e.opts.$data && a && a.$data;
+ f && (r += ' var schema' + i + ' = ' + e.util.getData(a.$data, o, e.dataPathArr) + '; '),
+ f || (r += ' var schema' + i + ' = validate.schema' + s + ';'),
+ (r += 'var ' + p + ' = equal(' + l + ', schema' + i + '); if (!' + p + ') { ');
+ var h = h || [];
+ h.push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'const' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: { allowedValue: schema' +
+ i +
+ ' } '),
+ !1 !== e.opts.messages && (r += " , message: 'should be equal to constant' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var d = r;
+ return (
+ (r = h.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + d + ']); ')
+ : (r += ' validate.errors = [' + d + ']; return false; ')
+ : (r += ' var err = ' + d + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r += ' }'),
+ u && (r += ' else { '),
+ r
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'valid' + i,
+ f = 'errs__' + i,
+ h = e.util.copy(e);
+ h.level++;
+ var d = 'valid' + h.level,
+ m = 'i' + i,
+ y = (h.dataLevel = e.dataLevel + 1),
+ g = 'data' + y,
+ v = e.baseId,
+ b = e.opts.strictKeywords
+ ? ('object' == typeof a && Object.keys(a).length > 0) || !1 === a
+ : e.util.schemaHasRules(a, e.RULES.all);
+ if (((r += 'var ' + f + ' = errors;var ' + p + ';'), b)) {
+ var x = e.compositeRule;
+ (e.compositeRule = h.compositeRule = !0),
+ (h.schema = a),
+ (h.schemaPath = s),
+ (h.errSchemaPath = c),
+ (r += ' var ' + d + ' = false; for (var ' + m + ' = 0; ' + m + ' < ' + l + '.length; ' + m + '++) { '),
+ (h.errorPath = e.util.getPathExpr(e.errorPath, m, e.opts.jsonPointers, !0));
+ var w = l + '[' + m + ']';
+ h.dataPathArr[y] = m;
+ var E = e.validate(h);
+ (h.baseId = v),
+ e.util.varOccurences(E, g) < 2
+ ? (r += ' ' + e.util.varReplace(E, g, w) + ' ')
+ : (r += ' var ' + g + ' = ' + w + '; ' + E + ' '),
+ (r += ' if (' + d + ') break; } '),
+ (e.compositeRule = h.compositeRule = x),
+ (r += ' if (!' + d + ') {');
+ } else r += ' if (' + l + '.length == 0) {';
+ var _ = _ || [];
+ _.push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'contains' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: {} '),
+ !1 !== e.opts.messages && (r += " , message: 'should contain a valid item' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var j = r;
+ return (
+ (r = _.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + j + ']); ')
+ : (r += ' validate.errors = [' + j + ']; return false; ')
+ : (r += ' var err = ' + j + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r += ' } else { '),
+ b &&
+ (r +=
+ ' errors = ' +
+ f +
+ '; if (vErrors !== null) { if (' +
+ f +
+ ') vErrors.length = ' +
+ f +
+ '; else vErrors = null; } '),
+ e.opts.allErrors && (r += ' } '),
+ r
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'errs__' + i,
+ f = e.util.copy(e),
+ h = '';
+ f.level++;
+ var d = 'valid' + f.level,
+ m = {},
+ y = {},
+ g = e.opts.ownProperties;
+ for (w in a)
+ if ('__proto__' != w) {
+ var v = a[w],
+ b = Array.isArray(v) ? y : m;
+ b[w] = v;
+ }
+ r += 'var ' + p + ' = errors;';
+ var x = e.errorPath;
+ for (var w in ((r += 'var missing' + i + ';'), y))
+ if ((b = y[w]).length) {
+ if (
+ ((r += ' if ( ' + l + e.util.getProperty(w) + ' !== undefined '),
+ g && (r += ' && Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(w) + "') "),
+ u)
+ ) {
+ r += ' && ( ';
+ var E = b;
+ if (E)
+ for (var _ = -1, j = E.length - 1; _ < j; ) {
+ (P = E[(_ += 1)]),
+ _ && (r += ' || '),
+ (r += ' ( ( ' + (F = l + (O = e.util.getProperty(P))) + ' === undefined '),
+ g &&
+ (r += ' || ! Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(P) + "') "),
+ (r += ') && (missing' + i + ' = ' + e.util.toQuotedString(e.opts.jsonPointers ? P : O) + ') ) ');
+ }
+ r += ')) { ';
+ var S = 'missing' + i,
+ D = "' + " + S + " + '";
+ e.opts._errorDataPathProperty &&
+ (e.errorPath = e.opts.jsonPointers ? e.util.getPathExpr(x, S, !0) : x + ' + ' + S);
+ var A = A || [];
+ A.push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'dependencies' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { property: '" +
+ e.util.escapeQuotes(w) +
+ "', missingProperty: '" +
+ D +
+ "', depsCount: " +
+ b.length +
+ ", deps: '" +
+ e.util.escapeQuotes(1 == b.length ? b[0] : b.join(', ')) +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: 'should have "),
+ 1 == b.length
+ ? (r += 'property ' + e.util.escapeQuotes(b[0]))
+ : (r += 'properties ' + e.util.escapeQuotes(b.join(', '))),
+ (r += ' when property ' + e.util.escapeQuotes(w) + " is present' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var k = r;
+ (r = A.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + k + ']); ')
+ : (r += ' validate.errors = [' + k + ']; return false; ')
+ : (r +=
+ ' var err = ' +
+ k +
+ '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ');
+ } else {
+ r += ' ) { ';
+ var C = b;
+ if (C)
+ for (var P, T = -1, $ = C.length - 1; T < $; ) {
+ P = C[(T += 1)];
+ var O = e.util.getProperty(P),
+ F = ((D = e.util.escapeQuotes(P)), l + O);
+ e.opts._errorDataPathProperty && (e.errorPath = e.util.getPath(x, P, e.opts.jsonPointers)),
+ (r += ' if ( ' + F + ' === undefined '),
+ g &&
+ (r += ' || ! Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(P) + "') "),
+ (r += ') { var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'dependencies' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { property: '" +
+ e.util.escapeQuotes(w) +
+ "', missingProperty: '" +
+ D +
+ "', depsCount: " +
+ b.length +
+ ", deps: '" +
+ e.util.escapeQuotes(1 == b.length ? b[0] : b.join(', ')) +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: 'should have "),
+ 1 == b.length
+ ? (r += 'property ' + e.util.escapeQuotes(b[0]))
+ : (r += 'properties ' + e.util.escapeQuotes(b.join(', '))),
+ (r += ' when property ' + e.util.escapeQuotes(w) + " is present' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ');
+ }
+ }
+ (r += ' } '), u && ((h += '}'), (r += ' else { '));
+ }
+ e.errorPath = x;
+ var I = f.baseId;
+ for (var w in m) {
+ v = m[w];
+ (e.opts.strictKeywords
+ ? ('object' == typeof v && Object.keys(v).length > 0) || !1 === v
+ : e.util.schemaHasRules(v, e.RULES.all)) &&
+ ((r += ' ' + d + ' = true; if ( ' + l + e.util.getProperty(w) + ' !== undefined '),
+ g && (r += ' && Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(w) + "') "),
+ (r += ') { '),
+ (f.schema = v),
+ (f.schemaPath = s + e.util.getProperty(w)),
+ (f.errSchemaPath = c + '/' + e.util.escapeFragment(w)),
+ (r += ' ' + e.validate(f) + ' '),
+ (f.baseId = I),
+ (r += ' } '),
+ u && ((r += ' if (' + d + ') { '), (h += '}')));
+ }
+ return u && (r += ' ' + h + ' if (' + p + ' == errors) {'), r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'valid' + i,
+ f = e.opts.$data && a && a.$data;
+ f && (r += ' var schema' + i + ' = ' + e.util.getData(a.$data, o, e.dataPathArr) + '; ');
+ var h = 'i' + i,
+ d = 'schema' + i;
+ f || (r += ' var ' + d + ' = validate.schema' + s + ';'),
+ (r += 'var ' + p + ';'),
+ f &&
+ (r +=
+ ' if (schema' +
+ i +
+ ' === undefined) ' +
+ p +
+ ' = true; else if (!Array.isArray(schema' +
+ i +
+ ')) ' +
+ p +
+ ' = false; else {'),
+ (r +=
+ p +
+ ' = false;for (var ' +
+ h +
+ '=0; ' +
+ h +
+ '<' +
+ d +
+ '.length; ' +
+ h +
+ '++) if (equal(' +
+ l +
+ ', ' +
+ d +
+ '[' +
+ h +
+ '])) { ' +
+ p +
+ ' = true; break; }'),
+ f && (r += ' } '),
+ (r += ' if (!' + p + ') { ');
+ var m = m || [];
+ m.push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'enum' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: { allowedValues: schema' +
+ i +
+ ' } '),
+ !1 !== e.opts.messages && (r += " , message: 'should be equal to one of the allowed values' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var y = r;
+ return (
+ (r = m.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + y + ']); ')
+ : (r += ' validate.errors = [' + y + ']; return false; ')
+ : (r += ' var err = ' + y + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r += ' }'),
+ u && (r += ' else { '),
+ r
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || '');
+ if (!1 === e.opts.format) return u && (r += ' if (true) { '), r;
+ var p,
+ f = e.opts.$data && a && a.$data;
+ f
+ ? ((r += ' var schema' + i + ' = ' + e.util.getData(a.$data, o, e.dataPathArr) + '; '), (p = 'schema' + i))
+ : (p = a);
+ var h = e.opts.unknownFormats,
+ d = Array.isArray(h);
+ if (f) {
+ (r +=
+ ' var ' +
+ (m = 'format' + i) +
+ ' = formats[' +
+ p +
+ ']; var ' +
+ (y = 'isObject' + i) +
+ ' = typeof ' +
+ m +
+ " == 'object' && !(" +
+ m +
+ ' instanceof RegExp) && ' +
+ m +
+ '.validate; var ' +
+ (g = 'formatType' + i) +
+ ' = ' +
+ y +
+ ' && ' +
+ m +
+ ".type || 'string'; if (" +
+ y +
+ ') { '),
+ e.async && (r += ' var async' + i + ' = ' + m + '.async; '),
+ (r += ' ' + m + ' = ' + m + '.validate; } if ( '),
+ f && (r += ' (' + p + ' !== undefined && typeof ' + p + " != 'string') || "),
+ (r += ' ('),
+ 'ignore' != h &&
+ ((r += ' (' + p + ' && !' + m + ' '),
+ d && (r += ' && self._opts.unknownFormats.indexOf(' + p + ') == -1 '),
+ (r += ') || ')),
+ (r += ' (' + m + ' && ' + g + " == '" + n + "' && !(typeof " + m + " == 'function' ? "),
+ e.async
+ ? (r += ' (async' + i + ' ? await ' + m + '(' + l + ') : ' + m + '(' + l + ')) ')
+ : (r += ' ' + m + '(' + l + ') '),
+ (r += ' : ' + m + '.test(' + l + '))))) {');
+ } else {
+ var m;
+ if (!(m = e.formats[a])) {
+ if ('ignore' == h)
+ return (
+ e.logger.warn('unknown format "' + a + '" ignored in schema at path "' + e.errSchemaPath + '"'),
+ u && (r += ' if (true) { '),
+ r
+ );
+ if (d && h.indexOf(a) >= 0) return u && (r += ' if (true) { '), r;
+ throw new Error('unknown format "' + a + '" is used in schema at path "' + e.errSchemaPath + '"');
+ }
+ var y,
+ g = ((y = 'object' == typeof m && !(m instanceof RegExp) && m.validate) && m.type) || 'string';
+ if (y) {
+ var v = !0 === m.async;
+ m = m.validate;
+ }
+ if (g != n) return u && (r += ' if (true) { '), r;
+ if (v) {
+ if (!e.async) throw new Error('async format in sync schema');
+ r += ' if (!(await ' + (b = 'formats' + e.util.getProperty(a) + '.validate') + '(' + l + '))) { ';
+ } else {
+ r += ' if (! ';
+ var b = 'formats' + e.util.getProperty(a);
+ y && (b += '.validate'),
+ (r += 'function' == typeof m ? ' ' + b + '(' + l + ') ' : ' ' + b + '.test(' + l + ') '),
+ (r += ') { ');
+ }
+ }
+ var x = x || [];
+ x.push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'format' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: { format: '),
+ (r += f ? '' + p : '' + e.util.toQuotedString(a)),
+ (r += ' } '),
+ !1 !== e.opts.messages &&
+ ((r += ' , message: \'should match format "'),
+ (r += f ? "' + " + p + " + '" : '' + e.util.escapeQuotes(a)),
+ (r += '"\' ')),
+ e.opts.verbose &&
+ ((r += ' , schema: '),
+ (r += f ? 'validate.schema' + s : '' + e.util.toQuotedString(a)),
+ (r += ' , parentSchema: validate.schema' + e.schemaPath + ' , data: ' + l + ' ')),
+ (r += ' } '))
+ : (r += ' {} ');
+ var w = r;
+ return (
+ (r = x.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + w + ']); ')
+ : (r += ' validate.errors = [' + w + ']; return false; ')
+ : (r += ' var err = ' + w + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r += ' } '),
+ u && (r += ' else { '),
+ r
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'valid' + i,
+ f = 'errs__' + i,
+ h = e.util.copy(e);
+ h.level++;
+ var d = 'valid' + h.level,
+ m = e.schema.then,
+ y = e.schema.else,
+ g =
+ void 0 !== m &&
+ (e.opts.strictKeywords
+ ? ('object' == typeof m && Object.keys(m).length > 0) || !1 === m
+ : e.util.schemaHasRules(m, e.RULES.all)),
+ v =
+ void 0 !== y &&
+ (e.opts.strictKeywords
+ ? ('object' == typeof y && Object.keys(y).length > 0) || !1 === y
+ : e.util.schemaHasRules(y, e.RULES.all)),
+ b = h.baseId;
+ if (g || v) {
+ var x;
+ (h.createErrors = !1),
+ (h.schema = a),
+ (h.schemaPath = s),
+ (h.errSchemaPath = c),
+ (r += ' var ' + f + ' = errors; var ' + p + ' = true; ');
+ var w = e.compositeRule;
+ (e.compositeRule = h.compositeRule = !0),
+ (r += ' ' + e.validate(h) + ' '),
+ (h.baseId = b),
+ (h.createErrors = !0),
+ (r +=
+ ' errors = ' +
+ f +
+ '; if (vErrors !== null) { if (' +
+ f +
+ ') vErrors.length = ' +
+ f +
+ '; else vErrors = null; } '),
+ (e.compositeRule = h.compositeRule = w),
+ g
+ ? ((r += ' if (' + d + ') { '),
+ (h.schema = e.schema.then),
+ (h.schemaPath = e.schemaPath + '.then'),
+ (h.errSchemaPath = e.errSchemaPath + '/then'),
+ (r += ' ' + e.validate(h) + ' '),
+ (h.baseId = b),
+ (r += ' ' + p + ' = ' + d + '; '),
+ g && v ? (r += ' var ' + (x = 'ifClause' + i) + " = 'then'; ") : (x = "'then'"),
+ (r += ' } '),
+ v && (r += ' else { '))
+ : (r += ' if (!' + d + ') { '),
+ v &&
+ ((h.schema = e.schema.else),
+ (h.schemaPath = e.schemaPath + '.else'),
+ (h.errSchemaPath = e.errSchemaPath + '/else'),
+ (r += ' ' + e.validate(h) + ' '),
+ (h.baseId = b),
+ (r += ' ' + p + ' = ' + d + '; '),
+ g && v ? (r += ' var ' + (x = 'ifClause' + i) + " = 'else'; ") : (x = "'else'"),
+ (r += ' } ')),
+ (r += ' if (!' + p + ') { var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'if' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: { failingKeyword: ' +
+ x +
+ ' } '),
+ !1 !== e.opts.messages && (r += " , message: 'should match \"' + " + x + " + '\" schema' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ !e.compositeRule &&
+ u &&
+ (e.async
+ ? (r += ' throw new ValidationError(vErrors); ')
+ : (r += ' validate.errors = vErrors; return false; ')),
+ (r += ' } '),
+ u && (r += ' else { ');
+ } else u && (r += ' if (true) { ');
+ return r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'valid' + i,
+ f = 'errs__' + i,
+ h = e.util.copy(e),
+ d = '';
+ h.level++;
+ var m = 'valid' + h.level,
+ y = 'i' + i,
+ g = (h.dataLevel = e.dataLevel + 1),
+ v = 'data' + g,
+ b = e.baseId;
+ if (((r += 'var ' + f + ' = errors;var ' + p + ';'), Array.isArray(a))) {
+ var x = e.schema.additionalItems;
+ if (!1 === x) {
+ r += ' ' + p + ' = ' + l + '.length <= ' + a.length + '; ';
+ var w = c;
+ (c = e.errSchemaPath + '/additionalItems'), (r += ' if (!' + p + ') { ');
+ var E = E || [];
+ E.push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'additionalItems' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: { limit: ' +
+ a.length +
+ ' } '),
+ !1 !== e.opts.messages && (r += " , message: 'should NOT have more than " + a.length + " items' "),
+ e.opts.verbose &&
+ (r += ' , schema: false , parentSchema: validate.schema' + e.schemaPath + ' , data: ' + l + ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var _ = r;
+ (r = E.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + _ + ']); ')
+ : (r += ' validate.errors = [' + _ + ']; return false; ')
+ : (r +=
+ ' var err = ' + _ + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r += ' } '),
+ (c = w),
+ u && ((d += '}'), (r += ' else { '));
+ }
+ var j = a;
+ if (j)
+ for (var S, D = -1, A = j.length - 1; D < A; )
+ if (
+ ((S = j[(D += 1)]),
+ e.opts.strictKeywords
+ ? ('object' == typeof S && Object.keys(S).length > 0) || !1 === S
+ : e.util.schemaHasRules(S, e.RULES.all))
+ ) {
+ r += ' ' + m + ' = true; if (' + l + '.length > ' + D + ') { ';
+ var k = l + '[' + D + ']';
+ (h.schema = S),
+ (h.schemaPath = s + '[' + D + ']'),
+ (h.errSchemaPath = c + '/' + D),
+ (h.errorPath = e.util.getPathExpr(e.errorPath, D, e.opts.jsonPointers, !0)),
+ (h.dataPathArr[g] = D);
+ var C = e.validate(h);
+ (h.baseId = b),
+ e.util.varOccurences(C, v) < 2
+ ? (r += ' ' + e.util.varReplace(C, v, k) + ' ')
+ : (r += ' var ' + v + ' = ' + k + '; ' + C + ' '),
+ (r += ' } '),
+ u && ((r += ' if (' + m + ') { '), (d += '}'));
+ }
+ if (
+ 'object' == typeof x &&
+ (e.opts.strictKeywords
+ ? ('object' == typeof x && Object.keys(x).length > 0) || !1 === x
+ : e.util.schemaHasRules(x, e.RULES.all))
+ ) {
+ (h.schema = x),
+ (h.schemaPath = e.schemaPath + '.additionalItems'),
+ (h.errSchemaPath = e.errSchemaPath + '/additionalItems'),
+ (r +=
+ ' ' +
+ m +
+ ' = true; if (' +
+ l +
+ '.length > ' +
+ a.length +
+ ') { for (var ' +
+ y +
+ ' = ' +
+ a.length +
+ '; ' +
+ y +
+ ' < ' +
+ l +
+ '.length; ' +
+ y +
+ '++) { '),
+ (h.errorPath = e.util.getPathExpr(e.errorPath, y, e.opts.jsonPointers, !0));
+ k = l + '[' + y + ']';
+ h.dataPathArr[g] = y;
+ C = e.validate(h);
+ (h.baseId = b),
+ e.util.varOccurences(C, v) < 2
+ ? (r += ' ' + e.util.varReplace(C, v, k) + ' ')
+ : (r += ' var ' + v + ' = ' + k + '; ' + C + ' '),
+ u && (r += ' if (!' + m + ') break; '),
+ (r += ' } } '),
+ u && ((r += ' if (' + m + ') { '), (d += '}'));
+ }
+ } else if (
+ e.opts.strictKeywords
+ ? ('object' == typeof a && Object.keys(a).length > 0) || !1 === a
+ : e.util.schemaHasRules(a, e.RULES.all)
+ ) {
+ (h.schema = a),
+ (h.schemaPath = s),
+ (h.errSchemaPath = c),
+ (r += ' for (var ' + y + ' = 0; ' + y + ' < ' + l + '.length; ' + y + '++) { '),
+ (h.errorPath = e.util.getPathExpr(e.errorPath, y, e.opts.jsonPointers, !0));
+ k = l + '[' + y + ']';
+ h.dataPathArr[g] = y;
+ C = e.validate(h);
+ (h.baseId = b),
+ e.util.varOccurences(C, v) < 2
+ ? (r += ' ' + e.util.varReplace(C, v, k) + ' ')
+ : (r += ' var ' + v + ' = ' + k + '; ' + C + ' '),
+ u && (r += ' if (!' + m + ') break; '),
+ (r += ' }');
+ }
+ return u && (r += ' ' + d + ' if (' + f + ' == errors) {'), r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r,
+ i = ' ',
+ o = e.level,
+ a = e.dataLevel,
+ s = e.schema[t],
+ c = e.schemaPath + e.util.getProperty(t),
+ u = e.errSchemaPath + '/' + t,
+ l = !e.opts.allErrors,
+ p = 'data' + (a || ''),
+ f = e.opts.$data && s && s.$data;
+ if (
+ (f
+ ? ((i += ' var schema' + o + ' = ' + e.util.getData(s.$data, a, e.dataPathArr) + '; '), (r = 'schema' + o))
+ : (r = s),
+ !f && 'number' != typeof s)
+ )
+ throw new Error(t + ' must be number');
+ (i += 'var division' + o + ';if ('),
+ f && (i += ' ' + r + ' !== undefined && ( typeof ' + r + " != 'number' || "),
+ (i += ' (division' + o + ' = ' + p + ' / ' + r + ', '),
+ e.opts.multipleOfPrecision
+ ? (i +=
+ ' Math.abs(Math.round(division' + o + ') - division' + o + ') > 1e-' + e.opts.multipleOfPrecision + ' ')
+ : (i += ' division' + o + ' !== parseInt(division' + o + ') '),
+ (i += ' ) '),
+ f && (i += ' ) '),
+ (i += ' ) { ');
+ var h = h || [];
+ h.push(i),
+ (i = ''),
+ !1 !== e.createErrors
+ ? ((i +=
+ " { keyword: 'multipleOf' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(u) +
+ ' , params: { multipleOf: ' +
+ r +
+ ' } '),
+ !1 !== e.opts.messages && ((i += " , message: 'should be multiple of "), (i += f ? "' + " + r : r + "'")),
+ e.opts.verbose &&
+ ((i += ' , schema: '),
+ (i += f ? 'validate.schema' + c : '' + s),
+ (i += ' , parentSchema: validate.schema' + e.schemaPath + ' , data: ' + p + ' ')),
+ (i += ' } '))
+ : (i += ' {} ');
+ var d = i;
+ return (
+ (i = h.pop()),
+ !e.compositeRule && l
+ ? e.async
+ ? (i += ' throw new ValidationError([' + d + ']); ')
+ : (i += ' validate.errors = [' + d + ']; return false; ')
+ : (i += ' var err = ' + d + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (i += '} '),
+ l && (i += ' else { '),
+ i
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'errs__' + i,
+ f = e.util.copy(e);
+ f.level++;
+ var h = 'valid' + f.level;
+ if (
+ e.opts.strictKeywords
+ ? ('object' == typeof a && Object.keys(a).length > 0) || !1 === a
+ : e.util.schemaHasRules(a, e.RULES.all)
+ ) {
+ (f.schema = a), (f.schemaPath = s), (f.errSchemaPath = c), (r += ' var ' + p + ' = errors; ');
+ var d,
+ m = e.compositeRule;
+ (e.compositeRule = f.compositeRule = !0),
+ (f.createErrors = !1),
+ f.opts.allErrors && ((d = f.opts.allErrors), (f.opts.allErrors = !1)),
+ (r += ' ' + e.validate(f) + ' '),
+ (f.createErrors = !0),
+ d && (f.opts.allErrors = d),
+ (e.compositeRule = f.compositeRule = m),
+ (r += ' if (' + h + ') { ');
+ var y = y || [];
+ y.push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'not' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: {} '),
+ !1 !== e.opts.messages && (r += " , message: 'should NOT be valid' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var g = r;
+ (r = y.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + g + ']); ')
+ : (r += ' validate.errors = [' + g + ']; return false; ')
+ : (r +=
+ ' var err = ' + g + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r +=
+ ' } else { errors = ' +
+ p +
+ '; if (vErrors !== null) { if (' +
+ p +
+ ') vErrors.length = ' +
+ p +
+ '; else vErrors = null; } '),
+ e.opts.allErrors && (r += ' } ');
+ } else
+ (r += ' var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'not' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: {} '),
+ !1 !== e.opts.messages && (r += " , message: 'should NOT be valid' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ u && (r += ' if (false) { ');
+ return r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'valid' + i,
+ f = 'errs__' + i,
+ h = e.util.copy(e),
+ d = '';
+ h.level++;
+ var m = 'valid' + h.level,
+ y = h.baseId,
+ g = 'prevValid' + i,
+ v = 'passingSchemas' + i;
+ r += 'var ' + f + ' = errors , ' + g + ' = false , ' + p + ' = false , ' + v + ' = null; ';
+ var b = e.compositeRule;
+ e.compositeRule = h.compositeRule = !0;
+ var x = a;
+ if (x)
+ for (var w, E = -1, _ = x.length - 1; E < _; )
+ (w = x[(E += 1)]),
+ (
+ e.opts.strictKeywords
+ ? ('object' == typeof w && Object.keys(w).length > 0) || !1 === w
+ : e.util.schemaHasRules(w, e.RULES.all)
+ )
+ ? ((h.schema = w),
+ (h.schemaPath = s + '[' + E + ']'),
+ (h.errSchemaPath = c + '/' + E),
+ (r += ' ' + e.validate(h) + ' '),
+ (h.baseId = y))
+ : (r += ' var ' + m + ' = true; '),
+ E &&
+ ((r +=
+ ' if (' + m + ' && ' + g + ') { ' + p + ' = false; ' + v + ' = [' + v + ', ' + E + ']; } else { '),
+ (d += '}')),
+ (r += ' if (' + m + ') { ' + p + ' = ' + g + ' = true; ' + v + ' = ' + E + '; }');
+ return (
+ (e.compositeRule = h.compositeRule = b),
+ (r += d + 'if (!' + p + ') { var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'oneOf' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ ' , params: { passingSchemas: ' +
+ v +
+ ' } '),
+ !1 !== e.opts.messages && (r += " , message: 'should match exactly one schema in oneOf' "),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ !e.compositeRule &&
+ u &&
+ (e.async
+ ? (r += ' throw new ValidationError(vErrors); ')
+ : (r += ' validate.errors = vErrors; return false; ')),
+ (r +=
+ '} else { errors = ' +
+ f +
+ '; if (vErrors !== null) { if (' +
+ f +
+ ') vErrors.length = ' +
+ f +
+ '; else vErrors = null; }'),
+ e.opts.allErrors && (r += ' } '),
+ r
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r,
+ i = ' ',
+ o = e.level,
+ a = e.dataLevel,
+ s = e.schema[t],
+ c = e.schemaPath + e.util.getProperty(t),
+ u = e.errSchemaPath + '/' + t,
+ l = !e.opts.allErrors,
+ p = 'data' + (a || ''),
+ f = e.opts.$data && s && s.$data;
+ f
+ ? ((i += ' var schema' + o + ' = ' + e.util.getData(s.$data, a, e.dataPathArr) + '; '), (r = 'schema' + o))
+ : (r = s),
+ (i += 'if ( '),
+ f && (i += ' (' + r + ' !== undefined && typeof ' + r + " != 'string') || "),
+ (i += ' !' + (f ? '(new RegExp(' + r + '))' : e.usePattern(s)) + '.test(' + p + ') ) { ');
+ var h = h || [];
+ h.push(i),
+ (i = ''),
+ !1 !== e.createErrors
+ ? ((i +=
+ " { keyword: 'pattern' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(u) +
+ ' , params: { pattern: '),
+ (i += f ? '' + r : '' + e.util.toQuotedString(s)),
+ (i += ' } '),
+ !1 !== e.opts.messages &&
+ ((i += ' , message: \'should match pattern "'),
+ (i += f ? "' + " + r + " + '" : '' + e.util.escapeQuotes(s)),
+ (i += '"\' ')),
+ e.opts.verbose &&
+ ((i += ' , schema: '),
+ (i += f ? 'validate.schema' + c : '' + e.util.toQuotedString(s)),
+ (i += ' , parentSchema: validate.schema' + e.schemaPath + ' , data: ' + p + ' ')),
+ (i += ' } '))
+ : (i += ' {} ');
+ var d = i;
+ return (
+ (i = h.pop()),
+ !e.compositeRule && l
+ ? e.async
+ ? (i += ' throw new ValidationError([' + d + ']); ')
+ : (i += ' validate.errors = [' + d + ']; return false; ')
+ : (i += ' var err = ' + d + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (i += '} '),
+ l && (i += ' else { '),
+ i
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'errs__' + i,
+ f = e.util.copy(e),
+ h = '';
+ f.level++;
+ var d = 'valid' + f.level,
+ m = 'key' + i,
+ y = 'idx' + i,
+ g = (f.dataLevel = e.dataLevel + 1),
+ v = 'data' + g,
+ b = 'dataProperties' + i,
+ x = Object.keys(a || {}).filter(O),
+ w = e.schema.patternProperties || {},
+ E = Object.keys(w).filter(O),
+ _ = e.schema.additionalProperties,
+ j = x.length || E.length,
+ S = !1 === _,
+ D = 'object' == typeof _ && Object.keys(_).length,
+ A = e.opts.removeAdditional,
+ k = S || D || A,
+ C = e.opts.ownProperties,
+ P = e.baseId,
+ T = e.schema.required;
+ if (T && (!e.opts.$data || !T.$data) && T.length < e.opts.loopRequired) var $ = e.util.toHash(T);
+ function O(e) {
+ return '__proto__' !== e;
+ }
+ if (((r += 'var ' + p + ' = errors;var ' + d + ' = true;'), C && (r += ' var ' + b + ' = undefined;'), k)) {
+ if (
+ ((r += C
+ ? ' ' +
+ b +
+ ' = ' +
+ b +
+ ' || Object.keys(' +
+ l +
+ '); for (var ' +
+ y +
+ '=0; ' +
+ y +
+ '<' +
+ b +
+ '.length; ' +
+ y +
+ '++) { var ' +
+ m +
+ ' = ' +
+ b +
+ '[' +
+ y +
+ ']; '
+ : ' for (var ' + m + ' in ' + l + ') { '),
+ j)
+ ) {
+ if (((r += ' var isAdditional' + i + ' = !(false '), x.length))
+ if (x.length > 8) r += ' || validate.schema' + s + '.hasOwnProperty(' + m + ') ';
+ else {
+ var F = x;
+ if (F)
+ for (var I = -1, N = F.length - 1; I < N; )
+ (X = F[(I += 1)]), (r += ' || ' + m + ' == ' + e.util.toQuotedString(X) + ' ');
+ }
+ if (E.length) {
+ var R = E;
+ if (R)
+ for (var B = -1, M = R.length - 1; B < M; )
+ (oe = R[(B += 1)]), (r += ' || ' + e.usePattern(oe) + '.test(' + m + ') ');
+ }
+ r += ' ); if (isAdditional' + i + ') { ';
+ }
+ if ('all' == A) r += ' delete ' + l + '[' + m + ']; ';
+ else {
+ var L = e.errorPath,
+ z = "' + " + m + " + '";
+ if (
+ (e.opts._errorDataPathProperty && (e.errorPath = e.util.getPathExpr(e.errorPath, m, e.opts.jsonPointers)),
+ S)
+ )
+ if (A) r += ' delete ' + l + '[' + m + ']; ';
+ else {
+ r += ' ' + d + ' = false; ';
+ var U = c;
+ (c = e.errSchemaPath + '/additionalProperties'),
+ (ne = ne || []).push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'additionalProperties' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { additionalProperty: '" +
+ z +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: '"),
+ e.opts._errorDataPathProperty
+ ? (r += 'is an invalid additional property')
+ : (r += 'should NOT have additional properties'),
+ (r += "' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: false , parentSchema: validate.schema' + e.schemaPath + ' , data: ' + l + ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var q = r;
+ (r = ne.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + q + ']); ')
+ : (r += ' validate.errors = [' + q + ']; return false; ')
+ : (r +=
+ ' var err = ' +
+ q +
+ '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (c = U),
+ u && (r += ' break; ');
+ }
+ else if (D)
+ if ('failing' == A) {
+ r += ' var ' + p + ' = errors; ';
+ var H = e.compositeRule;
+ (e.compositeRule = f.compositeRule = !0),
+ (f.schema = _),
+ (f.schemaPath = e.schemaPath + '.additionalProperties'),
+ (f.errSchemaPath = e.errSchemaPath + '/additionalProperties'),
+ (f.errorPath = e.opts._errorDataPathProperty
+ ? e.errorPath
+ : e.util.getPathExpr(e.errorPath, m, e.opts.jsonPointers));
+ var V = l + '[' + m + ']';
+ f.dataPathArr[g] = m;
+ var J = e.validate(f);
+ (f.baseId = P),
+ e.util.varOccurences(J, v) < 2
+ ? (r += ' ' + e.util.varReplace(J, v, V) + ' ')
+ : (r += ' var ' + v + ' = ' + V + '; ' + J + ' '),
+ (r +=
+ ' if (!' +
+ d +
+ ') { errors = ' +
+ p +
+ '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' +
+ l +
+ '[' +
+ m +
+ ']; } '),
+ (e.compositeRule = f.compositeRule = H);
+ } else {
+ (f.schema = _),
+ (f.schemaPath = e.schemaPath + '.additionalProperties'),
+ (f.errSchemaPath = e.errSchemaPath + '/additionalProperties'),
+ (f.errorPath = e.opts._errorDataPathProperty
+ ? e.errorPath
+ : e.util.getPathExpr(e.errorPath, m, e.opts.jsonPointers));
+ V = l + '[' + m + ']';
+ f.dataPathArr[g] = m;
+ J = e.validate(f);
+ (f.baseId = P),
+ e.util.varOccurences(J, v) < 2
+ ? (r += ' ' + e.util.varReplace(J, v, V) + ' ')
+ : (r += ' var ' + v + ' = ' + V + '; ' + J + ' '),
+ u && (r += ' if (!' + d + ') break; ');
+ }
+ e.errorPath = L;
+ }
+ j && (r += ' } '), (r += ' } '), u && ((r += ' if (' + d + ') { '), (h += '}'));
+ }
+ var K = e.opts.useDefaults && !e.compositeRule;
+ if (x.length) {
+ var W = x;
+ if (W)
+ for (var X, G = -1, Y = W.length - 1; G < Y; ) {
+ var Z = a[(X = W[(G += 1)])];
+ if (
+ e.opts.strictKeywords
+ ? ('object' == typeof Z && Object.keys(Z).length > 0) || !1 === Z
+ : e.util.schemaHasRules(Z, e.RULES.all)
+ ) {
+ var Q = e.util.getProperty(X),
+ ee = ((V = l + Q), K && void 0 !== Z.default);
+ (f.schema = Z),
+ (f.schemaPath = s + Q),
+ (f.errSchemaPath = c + '/' + e.util.escapeFragment(X)),
+ (f.errorPath = e.util.getPath(e.errorPath, X, e.opts.jsonPointers)),
+ (f.dataPathArr[g] = e.util.toQuotedString(X));
+ J = e.validate(f);
+ if (((f.baseId = P), e.util.varOccurences(J, v) < 2)) {
+ J = e.util.varReplace(J, v, V);
+ var te = V;
+ } else {
+ te = v;
+ r += ' var ' + v + ' = ' + V + '; ';
+ }
+ if (ee) r += ' ' + J + ' ';
+ else {
+ if ($ && $[X]) {
+ (r += ' if ( ' + te + ' === undefined '),
+ C &&
+ (r +=
+ ' || ! Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(X) + "') "),
+ (r += ') { ' + d + ' = false; ');
+ (L = e.errorPath), (U = c);
+ var ne,
+ re = e.util.escapeQuotes(X);
+ e.opts._errorDataPathProperty && (e.errorPath = e.util.getPath(L, X, e.opts.jsonPointers)),
+ (c = e.errSchemaPath + '/required'),
+ (ne = ne || []).push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'required' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { missingProperty: '" +
+ re +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: '"),
+ e.opts._errorDataPathProperty
+ ? (r += 'is a required property')
+ : (r += "should have required property \\'" + re + "\\'"),
+ (r += "' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ q = r;
+ (r = ne.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + q + ']); ')
+ : (r += ' validate.errors = [' + q + ']; return false; ')
+ : (r +=
+ ' var err = ' +
+ q +
+ '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (c = U),
+ (e.errorPath = L),
+ (r += ' } else { ');
+ } else
+ u
+ ? ((r += ' if ( ' + te + ' === undefined '),
+ C &&
+ (r +=
+ ' || ! Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(X) + "') "),
+ (r += ') { ' + d + ' = true; } else { '))
+ : ((r += ' if (' + te + ' !== undefined '),
+ C &&
+ (r +=
+ ' && Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(X) + "') "),
+ (r += ' ) { '));
+ r += ' ' + J + ' } ';
+ }
+ }
+ u && ((r += ' if (' + d + ') { '), (h += '}'));
+ }
+ }
+ if (E.length) {
+ var ie = E;
+ if (ie)
+ for (var oe, ae = -1, se = ie.length - 1; ae < se; ) {
+ Z = w[(oe = ie[(ae += 1)])];
+ if (
+ e.opts.strictKeywords
+ ? ('object' == typeof Z && Object.keys(Z).length > 0) || !1 === Z
+ : e.util.schemaHasRules(Z, e.RULES.all)
+ ) {
+ (f.schema = Z),
+ (f.schemaPath = e.schemaPath + '.patternProperties' + e.util.getProperty(oe)),
+ (f.errSchemaPath = e.errSchemaPath + '/patternProperties/' + e.util.escapeFragment(oe)),
+ (r += C
+ ? ' ' +
+ b +
+ ' = ' +
+ b +
+ ' || Object.keys(' +
+ l +
+ '); for (var ' +
+ y +
+ '=0; ' +
+ y +
+ '<' +
+ b +
+ '.length; ' +
+ y +
+ '++) { var ' +
+ m +
+ ' = ' +
+ b +
+ '[' +
+ y +
+ ']; '
+ : ' for (var ' + m + ' in ' + l + ') { '),
+ (r += ' if (' + e.usePattern(oe) + '.test(' + m + ')) { '),
+ (f.errorPath = e.util.getPathExpr(e.errorPath, m, e.opts.jsonPointers));
+ V = l + '[' + m + ']';
+ f.dataPathArr[g] = m;
+ J = e.validate(f);
+ (f.baseId = P),
+ e.util.varOccurences(J, v) < 2
+ ? (r += ' ' + e.util.varReplace(J, v, V) + ' ')
+ : (r += ' var ' + v + ' = ' + V + '; ' + J + ' '),
+ u && (r += ' if (!' + d + ') break; '),
+ (r += ' } '),
+ u && (r += ' else ' + d + ' = true; '),
+ (r += ' } '),
+ u && ((r += ' if (' + d + ') { '), (h += '}'));
+ }
+ }
+ }
+ return u && (r += ' ' + h + ' if (' + p + ' == errors) {'), r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r = ' ',
+ i = e.level,
+ o = e.dataLevel,
+ a = e.schema[t],
+ s = e.schemaPath + e.util.getProperty(t),
+ c = e.errSchemaPath + '/' + t,
+ u = !e.opts.allErrors,
+ l = 'data' + (o || ''),
+ p = 'errs__' + i,
+ f = e.util.copy(e);
+ f.level++;
+ var h = 'valid' + f.level;
+ if (
+ ((r += 'var ' + p + ' = errors;'),
+ e.opts.strictKeywords
+ ? ('object' == typeof a && Object.keys(a).length > 0) || !1 === a
+ : e.util.schemaHasRules(a, e.RULES.all))
+ ) {
+ (f.schema = a), (f.schemaPath = s), (f.errSchemaPath = c);
+ var d = 'key' + i,
+ m = 'idx' + i,
+ y = 'i' + i,
+ g = "' + " + d + " + '",
+ v = 'data' + (f.dataLevel = e.dataLevel + 1),
+ b = 'dataProperties' + i,
+ x = e.opts.ownProperties,
+ w = e.baseId;
+ x && (r += ' var ' + b + ' = undefined; '),
+ (r += x
+ ? ' ' +
+ b +
+ ' = ' +
+ b +
+ ' || Object.keys(' +
+ l +
+ '); for (var ' +
+ m +
+ '=0; ' +
+ m +
+ '<' +
+ b +
+ '.length; ' +
+ m +
+ '++) { var ' +
+ d +
+ ' = ' +
+ b +
+ '[' +
+ m +
+ ']; '
+ : ' for (var ' + d + ' in ' + l + ') { '),
+ (r += ' var startErrs' + i + ' = errors; ');
+ var E = d,
+ _ = e.compositeRule;
+ e.compositeRule = f.compositeRule = !0;
+ var j = e.validate(f);
+ (f.baseId = w),
+ e.util.varOccurences(j, v) < 2
+ ? (r += ' ' + e.util.varReplace(j, v, E) + ' ')
+ : (r += ' var ' + v + ' = ' + E + '; ' + j + ' '),
+ (e.compositeRule = f.compositeRule = _),
+ (r +=
+ ' if (!' +
+ h +
+ ') { for (var ' +
+ y +
+ '=startErrs' +
+ i +
+ '; ' +
+ y +
+ ' 0) || !1 === b
+ : e.util.schemaHasRules(b, e.RULES.all))) ||
+ (d[d.length] = y);
+ }
+ } else d = a;
+ if (f || d.length) {
+ var x = e.errorPath,
+ w = f || d.length >= e.opts.loopRequired,
+ E = e.opts.ownProperties;
+ if (u)
+ if (((r += ' var missing' + i + '; '), w)) {
+ f || (r += ' var ' + h + ' = validate.schema' + s + '; ');
+ var _ = "' + " + (C = 'schema' + i + '[' + (D = 'i' + i) + ']') + " + '";
+ e.opts._errorDataPathProperty && (e.errorPath = e.util.getPathExpr(x, C, e.opts.jsonPointers)),
+ (r += ' var ' + p + ' = true; '),
+ f &&
+ (r +=
+ ' if (schema' +
+ i +
+ ' === undefined) ' +
+ p +
+ ' = true; else if (!Array.isArray(schema' +
+ i +
+ ')) ' +
+ p +
+ ' = false; else {'),
+ (r +=
+ ' for (var ' +
+ D +
+ ' = 0; ' +
+ D +
+ ' < ' +
+ h +
+ '.length; ' +
+ D +
+ '++) { ' +
+ p +
+ ' = ' +
+ l +
+ '[' +
+ h +
+ '[' +
+ D +
+ ']] !== undefined '),
+ E && (r += ' && Object.prototype.hasOwnProperty.call(' + l + ', ' + h + '[' + D + ']) '),
+ (r += '; if (!' + p + ') break; } '),
+ f && (r += ' } '),
+ (r += ' if (!' + p + ') { '),
+ (k = k || []).push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'required' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { missingProperty: '" +
+ _ +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: '"),
+ e.opts._errorDataPathProperty
+ ? (r += 'is a required property')
+ : (r += "should have required property \\'" + _ + "\\'"),
+ (r += "' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ var j = r;
+ (r = k.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + j + ']); ')
+ : (r += ' validate.errors = [' + j + ']; return false; ')
+ : (r +=
+ ' var err = ' +
+ j +
+ '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r += ' } else { ');
+ } else {
+ r += ' if ( ';
+ var S = d;
+ if (S)
+ for (var D = -1, A = S.length - 1; D < A; ) {
+ (T = S[(D += 1)]),
+ D && (r += ' || '),
+ (r += ' ( ( ' + (I = l + (F = e.util.getProperty(T))) + ' === undefined '),
+ E &&
+ (r += ' || ! Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(T) + "') "),
+ (r += ') && (missing' + i + ' = ' + e.util.toQuotedString(e.opts.jsonPointers ? T : F) + ') ) ');
+ }
+ r += ') { ';
+ var k;
+ _ = "' + " + (C = 'missing' + i) + " + '";
+ e.opts._errorDataPathProperty &&
+ (e.errorPath = e.opts.jsonPointers ? e.util.getPathExpr(x, C, !0) : x + ' + ' + C),
+ (k = k || []).push(r),
+ (r = ''),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'required' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { missingProperty: '" +
+ _ +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: '"),
+ e.opts._errorDataPathProperty
+ ? (r += 'is a required property')
+ : (r += "should have required property \\'" + _ + "\\'"),
+ (r += "' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} ');
+ j = r;
+ (r = k.pop()),
+ !e.compositeRule && u
+ ? e.async
+ ? (r += ' throw new ValidationError([' + j + ']); ')
+ : (r += ' validate.errors = [' + j + ']; return false; ')
+ : (r +=
+ ' var err = ' +
+ j +
+ '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (r += ' } else { ');
+ }
+ else if (w) {
+ f || (r += ' var ' + h + ' = validate.schema' + s + '; ');
+ var C;
+ _ = "' + " + (C = 'schema' + i + '[' + (D = 'i' + i) + ']') + " + '";
+ e.opts._errorDataPathProperty && (e.errorPath = e.util.getPathExpr(x, C, e.opts.jsonPointers)),
+ f &&
+ ((r += ' if (' + h + ' && !Array.isArray(' + h + ')) { var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'required' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { missingProperty: '" +
+ _ +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: '"),
+ e.opts._errorDataPathProperty
+ ? (r += 'is a required property')
+ : (r += "should have required property \\'" + _ + "\\'"),
+ (r += "' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r +=
+ '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' +
+ h +
+ ' !== undefined) { ')),
+ (r +=
+ ' for (var ' +
+ D +
+ ' = 0; ' +
+ D +
+ ' < ' +
+ h +
+ '.length; ' +
+ D +
+ '++) { if (' +
+ l +
+ '[' +
+ h +
+ '[' +
+ D +
+ ']] === undefined '),
+ E && (r += ' || ! Object.prototype.hasOwnProperty.call(' + l + ', ' + h + '[' + D + ']) '),
+ (r += ') { var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'required' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { missingProperty: '" +
+ _ +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: '"),
+ e.opts._errorDataPathProperty
+ ? (r += 'is a required property')
+ : (r += "should have required property \\'" + _ + "\\'"),
+ (r += "' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } '),
+ f && (r += ' } ');
+ } else {
+ var P = d;
+ if (P)
+ for (var T, $ = -1, O = P.length - 1; $ < O; ) {
+ T = P[($ += 1)];
+ var F = e.util.getProperty(T),
+ I = ((_ = e.util.escapeQuotes(T)), l + F);
+ e.opts._errorDataPathProperty && (e.errorPath = e.util.getPath(x, T, e.opts.jsonPointers)),
+ (r += ' if ( ' + I + ' === undefined '),
+ E &&
+ (r += ' || ! Object.prototype.hasOwnProperty.call(' + l + ", '" + e.util.escapeQuotes(T) + "') "),
+ (r += ') { var err = '),
+ !1 !== e.createErrors
+ ? ((r +=
+ " { keyword: 'required' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(c) +
+ " , params: { missingProperty: '" +
+ _ +
+ "' } "),
+ !1 !== e.opts.messages &&
+ ((r += " , message: '"),
+ e.opts._errorDataPathProperty
+ ? (r += 'is a required property')
+ : (r += "should have required property \\'" + _ + "\\'"),
+ (r += "' ")),
+ e.opts.verbose &&
+ (r +=
+ ' , schema: validate.schema' +
+ s +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ l +
+ ' '),
+ (r += ' } '))
+ : (r += ' {} '),
+ (r += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ');
+ }
+ }
+ e.errorPath = x;
+ } else u && (r += ' if (true) {');
+ return r;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r,
+ i = ' ',
+ o = e.level,
+ a = e.dataLevel,
+ s = e.schema[t],
+ c = e.schemaPath + e.util.getProperty(t),
+ u = e.errSchemaPath + '/' + t,
+ l = !e.opts.allErrors,
+ p = 'data' + (a || ''),
+ f = 'valid' + o,
+ h = e.opts.$data && s && s.$data;
+ if (
+ (h
+ ? ((i += ' var schema' + o + ' = ' + e.util.getData(s.$data, a, e.dataPathArr) + '; '), (r = 'schema' + o))
+ : (r = s),
+ (s || h) && !1 !== e.opts.uniqueItems)
+ ) {
+ h &&
+ (i +=
+ ' var ' +
+ f +
+ '; if (' +
+ r +
+ ' === false || ' +
+ r +
+ ' === undefined) ' +
+ f +
+ ' = true; else if (typeof ' +
+ r +
+ " != 'boolean') " +
+ f +
+ ' = false; else { '),
+ (i += ' var i = ' + p + '.length , ' + f + ' = true , j; if (i > 1) { ');
+ var d = e.schema.items && e.schema.items.type,
+ m = Array.isArray(d);
+ if (!d || 'object' == d || 'array' == d || (m && (d.indexOf('object') >= 0 || d.indexOf('array') >= 0)))
+ i +=
+ ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' +
+ p +
+ '[i], ' +
+ p +
+ '[j])) { ' +
+ f +
+ ' = false; break outer; } } } ';
+ else {
+ i += ' var itemIndices = {}, item; for (;i--;) { var item = ' + p + '[i]; ';
+ var y = 'checkDataType' + (m ? 's' : '');
+ (i += ' if (' + e.util[y](d, 'item', e.opts.strictNumbers, !0) + ') continue; '),
+ m && (i += " if (typeof item == 'string') item = '\"' + item; "),
+ (i +=
+ " if (typeof itemIndices[item] == 'number') { " +
+ f +
+ ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ');
+ }
+ (i += ' } '), h && (i += ' } '), (i += ' if (!' + f + ') { ');
+ var g = g || [];
+ g.push(i),
+ (i = ''),
+ !1 !== e.createErrors
+ ? ((i +=
+ " { keyword: 'uniqueItems' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(u) +
+ ' , params: { i: i, j: j } '),
+ !1 !== e.opts.messages &&
+ (i +=
+ " , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),
+ e.opts.verbose &&
+ ((i += ' , schema: '),
+ (i += h ? 'validate.schema' + c : '' + s),
+ (i += ' , parentSchema: validate.schema' + e.schemaPath + ' , data: ' + p + ' ')),
+ (i += ' } '))
+ : (i += ' {} ');
+ var v = i;
+ (i = g.pop()),
+ !e.compositeRule && l
+ ? e.async
+ ? (i += ' throw new ValidationError([' + v + ']); ')
+ : (i += ' validate.errors = [' + v + ']; return false; ')
+ : (i +=
+ ' var err = ' + v + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; '),
+ (i += ' } '),
+ l && (i += ' else { ');
+ } else l && (i += ' if (true) { ');
+ return i;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = [
+ 'multipleOf',
+ 'maximum',
+ 'exclusiveMaximum',
+ 'minimum',
+ 'exclusiveMinimum',
+ 'maxLength',
+ 'minLength',
+ 'pattern',
+ 'additionalItems',
+ 'maxItems',
+ 'minItems',
+ 'uniqueItems',
+ 'maxProperties',
+ 'minProperties',
+ 'required',
+ 'additionalProperties',
+ 'enum',
+ 'format',
+ 'const',
+ ];
+ e.exports = function (e, t) {
+ for (var n = 0; n < t.length; n++) {
+ e = JSON.parse(JSON.stringify(e));
+ var i,
+ o = t[n].split('/'),
+ a = e;
+ for (i = 1; i < o.length; i++) a = a[o[i]];
+ for (i = 0; i < r.length; i++) {
+ var s = r[i],
+ c = a[s];
+ c &&
+ (a[s] = {
+ anyOf: [c, { $ref: 'https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#' }],
+ });
+ }
+ }
+ return e;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(54).MissingRef;
+ e.exports = function e(t, n, i) {
+ var o = this;
+ if ('function' != typeof this._opts.loadSchema) throw new Error('options.loadSchema should be a function');
+ 'function' == typeof n && ((i = n), (n = void 0));
+ var a = s(t).then(function () {
+ var e = o._addSchema(t, void 0, n);
+ return (
+ e.validate ||
+ (function e(t) {
+ try {
+ return o._compile(t);
+ } catch (e) {
+ if (e instanceof r) return i(e);
+ throw e;
+ }
+ function i(r) {
+ var i = r.missingSchema;
+ if (u(i)) throw new Error('Schema ' + i + ' is loaded but ' + r.missingRef + ' cannot be resolved');
+ var a = o._loadingSchemas[i];
+ return (
+ a || (a = o._loadingSchemas[i] = o._opts.loadSchema(i)).then(c, c),
+ a
+ .then(function (e) {
+ if (!u(i))
+ return s(e).then(function () {
+ u(i) || o.addSchema(e, i, void 0, n);
+ });
+ })
+ .then(function () {
+ return e(t);
+ })
+ );
+ function c() {
+ delete o._loadingSchemas[i];
+ }
+ function u(e) {
+ return o._refs[e] || o._schemas[e];
+ }
+ }
+ })(e)
+ );
+ });
+ i &&
+ a.then(function (e) {
+ i(null, e);
+ }, i);
+ return a;
+ function s(t) {
+ var n = t.$schema;
+ return n && !o.getSchema(n) ? e.call(o, { $ref: n }, !0) : Promise.resolve();
+ }
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = /^[a-z_$][a-z0-9_$-]*$/i,
+ i = n(168),
+ o = n(169);
+ e.exports = {
+ add: function (e, t) {
+ var n = this.RULES;
+ if (n.keywords[e]) throw new Error('Keyword ' + e + ' is already defined');
+ if (!r.test(e)) throw new Error('Keyword ' + e + ' is not a valid identifier');
+ if (t) {
+ this.validateKeyword(t, !0);
+ var o = t.type;
+ if (Array.isArray(o)) for (var a = 0; a < o.length; a++) c(e, o[a], t);
+ else c(e, o, t);
+ var s = t.metaSchema;
+ s &&
+ (t.$data &&
+ this._opts.$data &&
+ (s = {
+ anyOf: [
+ s,
+ { $ref: 'https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#' },
+ ],
+ }),
+ (t.validateSchema = this.compile(s, !0)));
+ }
+ function c(e, t, r) {
+ for (var o, a = 0; a < n.length; a++) {
+ var s = n[a];
+ if (s.type == t) {
+ o = s;
+ break;
+ }
+ }
+ o || ((o = { type: t, rules: [] }), n.push(o));
+ var c = { keyword: e, definition: r, custom: !0, code: i, implements: r.implements };
+ o.rules.push(c), (n.custom[e] = c);
+ }
+ return (n.keywords[e] = n.all[e] = !0), this;
+ },
+ get: function (e) {
+ var t = this.RULES.custom[e];
+ return t ? t.definition : this.RULES.keywords[e] || !1;
+ },
+ remove: function (e) {
+ var t = this.RULES;
+ delete t.keywords[e], delete t.all[e], delete t.custom[e];
+ for (var n = 0; n < t.length; n++)
+ for (var r = t[n].rules, i = 0; i < r.length; i++)
+ if (r[i].keyword == e) {
+ r.splice(i, 1);
+ break;
+ }
+ return this;
+ },
+ validate: function e(t, n) {
+ e.errors = null;
+ var r = (this._validateKeyword = this._validateKeyword || this.compile(o, !0));
+ if (r(t)) return !0;
+ if (((e.errors = r.errors), n))
+ throw new Error('custom keyword definition is invalid: ' + this.errorsText(r.errors));
+ return !1;
+ },
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t, n) {
+ var r,
+ i,
+ o = ' ',
+ a = e.level,
+ s = e.dataLevel,
+ c = e.schema[t],
+ u = e.schemaPath + e.util.getProperty(t),
+ l = e.errSchemaPath + '/' + t,
+ p = !e.opts.allErrors,
+ f = 'data' + (s || ''),
+ h = 'valid' + a,
+ d = 'errs__' + a,
+ m = e.opts.$data && c && c.$data;
+ m
+ ? ((o += ' var schema' + a + ' = ' + e.util.getData(c.$data, s, e.dataPathArr) + '; '), (i = 'schema' + a))
+ : (i = c);
+ var y,
+ g,
+ v,
+ b,
+ x,
+ w = 'definition' + a,
+ E = this.definition,
+ _ = '';
+ if (m && E.$data) {
+ x = 'keywordValidate' + a;
+ var j = E.validateSchema;
+ o += ' var ' + w + " = RULES.custom['" + t + "'].definition; var " + x + ' = ' + w + '.validate;';
+ } else {
+ if (!(b = e.useCustomRule(this, c, e.schema, e))) return;
+ (i = 'validate.schema' + u), (x = b.code), (y = E.compile), (g = E.inline), (v = E.macro);
+ }
+ var S = x + '.errors',
+ D = 'i' + a,
+ A = 'ruleErr' + a,
+ k = E.async;
+ if (k && !e.async) throw new Error('async keyword in sync schema');
+ if (
+ (g || v || (o += S + ' = null;'),
+ (o += 'var ' + d + ' = errors;var ' + h + ';'),
+ m &&
+ E.$data &&
+ ((_ += '}'),
+ (o += ' if (' + i + ' === undefined) { ' + h + ' = true; } else { '),
+ j && ((_ += '}'), (o += ' ' + h + ' = ' + w + '.validateSchema(' + i + '); if (' + h + ') { '))),
+ g)
+ )
+ E.statements ? (o += ' ' + b.validate + ' ') : (o += ' ' + h + ' = ' + b.validate + '; ');
+ else if (v) {
+ var C = e.util.copy(e);
+ _ = '';
+ C.level++;
+ var P = 'valid' + C.level;
+ (C.schema = b.validate), (C.schemaPath = '');
+ var T = e.compositeRule;
+ e.compositeRule = C.compositeRule = !0;
+ var $ = e.validate(C).replace(/validate\.schema/g, x);
+ (e.compositeRule = C.compositeRule = T), (o += ' ' + $);
+ } else {
+ (N = N || []).push(o),
+ (o = ''),
+ (o += ' ' + x + '.call( '),
+ e.opts.passContext ? (o += 'this') : (o += 'self'),
+ y || !1 === E.schema
+ ? (o += ' , ' + f + ' ')
+ : (o += ' , ' + i + ' , ' + f + ' , validate.schema' + e.schemaPath + ' '),
+ (o += " , (dataPath || '')"),
+ '""' != e.errorPath && (o += ' + ' + e.errorPath);
+ var O = s ? 'data' + (s - 1 || '') : 'parentData',
+ F = s ? e.dataPathArr[s] : 'parentDataProperty',
+ I = (o += ' , ' + O + ' , ' + F + ' , rootData ) ');
+ (o = N.pop()),
+ !1 === E.errors
+ ? ((o += ' ' + h + ' = '), k && (o += 'await '), (o += I + '; '))
+ : (o += k
+ ? ' var ' +
+ (S = 'customErrors' + a) +
+ ' = null; try { ' +
+ h +
+ ' = await ' +
+ I +
+ '; } catch (e) { ' +
+ h +
+ ' = false; if (e instanceof ValidationError) ' +
+ S +
+ ' = e.errors; else throw e; } '
+ : ' ' + S + ' = null; ' + h + ' = ' + I + '; ');
+ }
+ if ((E.modifying && (o += ' if (' + O + ') ' + f + ' = ' + O + '[' + F + '];'), (o += '' + _), E.valid))
+ p && (o += ' if (true) { ');
+ else {
+ var N;
+ (o += ' if ( '),
+ void 0 === E.valid ? ((o += ' !'), (o += v ? '' + P : '' + h)) : (o += ' ' + !E.valid + ' '),
+ (o += ') { '),
+ (r = this.keyword),
+ (N = N || []).push(o),
+ (o = ''),
+ (N = N || []).push(o),
+ (o = ''),
+ !1 !== e.createErrors
+ ? ((o +=
+ " { keyword: '" +
+ (r || 'custom') +
+ "' , dataPath: (dataPath || '') + " +
+ e.errorPath +
+ ' , schemaPath: ' +
+ e.util.toQuotedString(l) +
+ " , params: { keyword: '" +
+ this.keyword +
+ "' } "),
+ !1 !== e.opts.messages &&
+ (o += ' , message: \'should pass "' + this.keyword + '" keyword validation\' '),
+ e.opts.verbose &&
+ (o +=
+ ' , schema: validate.schema' +
+ u +
+ ' , parentSchema: validate.schema' +
+ e.schemaPath +
+ ' , data: ' +
+ f +
+ ' '),
+ (o += ' } '))
+ : (o += ' {} ');
+ var R = o;
+ (o = N.pop()),
+ !e.compositeRule && p
+ ? e.async
+ ? (o += ' throw new ValidationError([' + R + ']); ')
+ : (o += ' validate.errors = [' + R + ']; return false; ')
+ : (o +=
+ ' var err = ' + R + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ');
+ var B = o;
+ (o = N.pop()),
+ g
+ ? E.errors
+ ? 'full' != E.errors &&
+ ((o +=
+ ' for (var ' +
+ D +
+ '=' +
+ d +
+ '; ' +
+ D +
+ ' 0) throw new v(e);
+ }
+ (e.exports = w),
+ (e.exports.default = w),
+ (e.exports.JSONParserError = l),
+ (e.exports.InvalidPointerError = p),
+ (e.exports.MissingPointerError = f),
+ (e.exports.ResolverError = h),
+ (e.exports.ParserError = d),
+ (e.exports.UnmatchedParserError = m),
+ (e.exports.UnmatchedResolverError = y),
+ (w.parse = function (e, t, n, r) {
+ let i = this,
+ o = new i();
+ return o.parse.apply(o, arguments);
+ }),
+ (w.prototype.parse = async function (e, n, a, s) {
+ let c,
+ l = o(arguments);
+ if (!l.path && !l.schema) {
+ let e = x('Expected a file path, URL, or object. Got ' + (l.path || l.schema));
+ return b(l.callback, Promise.reject(e));
+ }
+ (this.schema = null), (this.$refs = new r());
+ let p = 'http';
+ if (
+ (u.isFileSystemPath(l.path) && ((l.path = u.fromFileSystemPath(l.path)), (p = 'file')),
+ (l.path = u.resolve(u.cwd(), l.path)),
+ l.schema && 'object' == typeof l.schema)
+ ) {
+ let e = this.$refs._add(l.path);
+ (e.value = l.schema), (e.pathType = p), (c = Promise.resolve(l.schema));
+ } else c = i(l.path, this.$refs, l.options);
+ let f = this;
+ try {
+ let e = await c;
+ if (null === e || 'object' != typeof e || t.isBuffer(e)) {
+ if (l.options.continueOnError) return (f.schema = null), b(l.callback, Promise.resolve(f.schema));
+ throw x.syntax(`"${f.$refs._root$Ref.path || e}" is not a valid JSON Schema`);
+ }
+ return (f.schema = e), b(l.callback, Promise.resolve(f.schema));
+ } catch (e) {
+ return l.options.continueOnError && g(e)
+ ? (this.$refs._$refs[u.stripHash(l.path)] && this.$refs._$refs[u.stripHash(l.path)].addError(e),
+ b(l.callback, Promise.resolve(null)))
+ : b(l.callback, Promise.reject(e));
+ }
+ }),
+ (w.resolve = function (e, t, n, r) {
+ let i = this,
+ o = new i();
+ return o.resolve.apply(o, arguments);
+ }),
+ (w.prototype.resolve = async function (e, t, n, r) {
+ let i = this,
+ s = o(arguments);
+ try {
+ return (
+ await this.parse(s.path, s.schema, s.options),
+ await a(i, s.options),
+ E(i),
+ b(s.callback, Promise.resolve(i.$refs))
+ );
+ } catch (e) {
+ return b(s.callback, Promise.reject(e));
+ }
+ }),
+ (w.bundle = function (e, t, n, r) {
+ let i = this,
+ o = new i();
+ return o.bundle.apply(o, arguments);
+ }),
+ (w.prototype.bundle = async function (e, t, n, r) {
+ let i = this,
+ a = o(arguments);
+ try {
+ return (
+ await this.resolve(a.path, a.schema, a.options),
+ s(i, a.options),
+ E(i),
+ b(a.callback, Promise.resolve(i.schema))
+ );
+ } catch (e) {
+ return b(a.callback, Promise.reject(e));
+ }
+ }),
+ (w.dereference = function (e, t, n, r) {
+ let i = this,
+ o = new i();
+ return o.dereference.apply(o, arguments);
+ }),
+ (w.prototype.dereference = async function (e, t, n, r) {
+ let i = this,
+ a = o(arguments);
+ try {
+ return (
+ await this.resolve(a.path, a.schema, a.options),
+ c(i, a.options),
+ E(i),
+ b(a.callback, Promise.resolve(i.schema))
+ );
+ } catch (e) {
+ return b(a.callback, Promise.reject(e));
+ }
+ });
+ }).call(this, n(1).Buffer);
+ },
+ function (e, t, n) {
+ 'use strict';
+ const { ono: r } = n(19),
+ i = n(29),
+ o = n(12);
+ function a() {
+ (this.circular = !1), (this._$refs = {}), (this._root$Ref = null);
+ }
+ function s(e, t) {
+ let n = Object.keys(e);
+ return (
+ (t = Array.isArray(t[0]) ? t[0] : Array.prototype.slice.call(t)).length > 0 &&
+ t[0] &&
+ (n = n.filter((n) => -1 !== t.indexOf(e[n].pathType))),
+ n.map((t) => ({ encoded: t, decoded: 'file' === e[t].pathType ? o.toFileSystemPath(t, !0) : t }))
+ );
+ }
+ (e.exports = a),
+ (a.prototype.paths = function (e) {
+ let t = s(this._$refs, arguments);
+ return t.map((e) => e.decoded);
+ }),
+ (a.prototype.values = function (e) {
+ let t = this._$refs,
+ n = s(t, arguments);
+ return n.reduce((e, n) => ((e[n.decoded] = t[n.encoded].value), e), {});
+ }),
+ (a.prototype.toJSON = a.prototype.values),
+ (a.prototype.exists = function (e, t) {
+ try {
+ return this._resolve(e, '', t), !0;
+ } catch (e) {
+ return !1;
+ }
+ }),
+ (a.prototype.get = function (e, t) {
+ return this._resolve(e, '', t).value;
+ }),
+ (a.prototype.set = function (e, t) {
+ let n = o.resolve(this._root$Ref.path, e),
+ i = o.stripHash(n),
+ a = this._$refs[i];
+ if (!a) throw r(`Error resolving $ref pointer "${e}". \n"${i}" not found.`);
+ a.set(n, t);
+ }),
+ (a.prototype._add = function (e) {
+ let t = o.stripHash(e),
+ n = new i();
+ return (n.path = t), (n.$refs = this), (this._$refs[t] = n), (this._root$Ref = this._root$Ref || n), n;
+ }),
+ (a.prototype._resolve = function (e, t, n) {
+ let i = o.resolve(this._root$Ref.path, e),
+ a = o.stripHash(i),
+ s = this._$refs[a];
+ if (!s) throw r(`Error resolving $ref pointer "${e}". \n"${a}" not found.`);
+ return s.resolve(i, n, e, t);
+ }),
+ (a.prototype._get$Ref = function (e) {
+ e = o.resolve(this._root$Ref.path, e);
+ let t = o.stripHash(e);
+ return this._$refs[t];
+ });
+ },
+ function (e, t) {
+ e.exports = function (e) {
+ if (!e.webpackPolyfill) {
+ var t = Object.create(e);
+ t.children || (t.children = []),
+ Object.defineProperty(t, 'loaded', {
+ enumerable: !0,
+ get: function () {
+ return t.l;
+ },
+ }),
+ Object.defineProperty(t, 'id', {
+ enumerable: !0,
+ get: function () {
+ return t.i;
+ },
+ }),
+ Object.defineProperty(t, 'exports', { enumerable: !0 }),
+ (t.webpackPolyfill = 1);
+ }
+ return t;
+ };
+ },
+ function (e, t) {
+ e.exports = function (e) {
+ return (
+ e &&
+ 'object' == typeof e &&
+ 'function' == typeof e.copy &&
+ 'function' == typeof e.fill &&
+ 'function' == typeof e.readUInt8
+ );
+ };
+ },
+ function (e, t) {
+ 'function' == typeof Object.create
+ ? (e.exports = function (e, t) {
+ (e.super_ = t),
+ (e.prototype = Object.create(t.prototype, {
+ constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 },
+ }));
+ })
+ : (e.exports = function (e, t) {
+ e.super_ = t;
+ var n = function () {};
+ (n.prototype = t.prototype), (e.prototype = new n()), (e.prototype.constructor = e);
+ });
+ },
+ function (e, t, n) {
+ (function (e, r) {
+ var i;
+ /*! https://mths.be/punycode v1.4.1 by @mathias */ !(function (o) {
+ t && t.nodeType, e && e.nodeType;
+ var a = 'object' == typeof r && r;
+ a.global !== a && a.window !== a && a.self;
+ var s,
+ c = 2147483647,
+ u = /^xn--/,
+ l = /[^\x20-\x7E]/,
+ p = /[\x2E\u3002\uFF0E\uFF61]/g,
+ f = {
+ overflow: 'Overflow: input needs wider integers to process',
+ 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
+ 'invalid-input': 'Invalid input',
+ },
+ h = Math.floor,
+ d = String.fromCharCode;
+ function m(e) {
+ throw new RangeError(f[e]);
+ }
+ function y(e, t) {
+ for (var n = e.length, r = []; n--; ) r[n] = t(e[n]);
+ return r;
+ }
+ function g(e, t) {
+ var n = e.split('@'),
+ r = '';
+ return (
+ n.length > 1 && ((r = n[0] + '@'), (e = n[1])), r + y((e = e.replace(p, '.')).split('.'), t).join('.')
+ );
+ }
+ function v(e) {
+ for (var t, n, r = [], i = 0, o = e.length; i < o; )
+ (t = e.charCodeAt(i++)) >= 55296 && t <= 56319 && i < o
+ ? 56320 == (64512 & (n = e.charCodeAt(i++)))
+ ? r.push(((1023 & t) << 10) + (1023 & n) + 65536)
+ : (r.push(t), i--)
+ : r.push(t);
+ return r;
+ }
+ function b(e) {
+ return y(e, function (e) {
+ var t = '';
+ return (
+ e > 65535 && ((t += d((((e -= 65536) >>> 10) & 1023) | 55296)), (e = 56320 | (1023 & e))), (t += d(e))
+ );
+ }).join('');
+ }
+ function x(e, t) {
+ return e + 22 + 75 * (e < 26) - ((0 != t) << 5);
+ }
+ function w(e, t, n) {
+ var r = 0;
+ for (e = n ? h(e / 700) : e >> 1, e += h(e / t); e > 455; r += 36) e = h(e / 35);
+ return h(r + (36 * e) / (e + 38));
+ }
+ function E(e) {
+ var t,
+ n,
+ r,
+ i,
+ o,
+ a,
+ s,
+ u,
+ l,
+ p,
+ f,
+ d = [],
+ y = e.length,
+ g = 0,
+ v = 128,
+ x = 72;
+ for ((n = e.lastIndexOf('-')) < 0 && (n = 0), r = 0; r < n; ++r)
+ e.charCodeAt(r) >= 128 && m('not-basic'), d.push(e.charCodeAt(r));
+ for (i = n > 0 ? n + 1 : 0; i < y; ) {
+ for (
+ o = g, a = 1, s = 36;
+ i >= y && m('invalid-input'),
+ ((u =
+ (f = e.charCodeAt(i++)) - 48 < 10 ? f - 22 : f - 65 < 26 ? f - 65 : f - 97 < 26 ? f - 97 : 36) >=
+ 36 ||
+ u > h((c - g) / a)) &&
+ m('overflow'),
+ (g += u * a),
+ !(u < (l = s <= x ? 1 : s >= x + 26 ? 26 : s - x));
+ s += 36
+ )
+ a > h(c / (p = 36 - l)) && m('overflow'), (a *= p);
+ (x = w(g - o, (t = d.length + 1), 0 == o)),
+ h(g / t) > c - v && m('overflow'),
+ (v += h(g / t)),
+ (g %= t),
+ d.splice(g++, 0, v);
+ }
+ return b(d);
+ }
+ function _(e) {
+ var t,
+ n,
+ r,
+ i,
+ o,
+ a,
+ s,
+ u,
+ l,
+ p,
+ f,
+ y,
+ g,
+ b,
+ E,
+ _ = [];
+ for (y = (e = v(e)).length, t = 128, n = 0, o = 72, a = 0; a < y; ++a) (f = e[a]) < 128 && _.push(d(f));
+ for (r = i = _.length, i && _.push('-'); r < y; ) {
+ for (s = c, a = 0; a < y; ++a) (f = e[a]) >= t && f < s && (s = f);
+ for (s - t > h((c - n) / (g = r + 1)) && m('overflow'), n += (s - t) * g, t = s, a = 0; a < y; ++a)
+ if (((f = e[a]) < t && ++n > c && m('overflow'), f == t)) {
+ for (u = n, l = 36; !(u < (p = l <= o ? 1 : l >= o + 26 ? 26 : l - o)); l += 36)
+ (E = u - p), (b = 36 - p), _.push(d(x(p + (E % b), 0))), (u = h(E / b));
+ _.push(d(x(u, 0))), (o = w(n, g, r == i)), (n = 0), ++r;
+ }
+ ++n, ++t;
+ }
+ return _.join('');
+ }
+ (s = {
+ version: '1.4.1',
+ ucs2: { decode: v, encode: b },
+ decode: E,
+ encode: _,
+ toASCII: function (e) {
+ return g(e, function (e) {
+ return l.test(e) ? 'xn--' + _(e) : e;
+ });
+ },
+ toUnicode: function (e) {
+ return g(e, function (e) {
+ return u.test(e) ? E(e.slice(4).toLowerCase()) : e;
+ });
+ },
+ }),
+ void 0 ===
+ (i = function () {
+ return s;
+ }.call(t, n, t, e)) || (e.exports = i);
+ })();
+ }).call(this, n(86)(e), n(8));
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = {
+ isString: function (e) {
+ return 'string' == typeof e;
+ },
+ isObject: function (e) {
+ return 'object' == typeof e && null !== e;
+ },
+ isNull: function (e) {
+ return null === e;
+ },
+ isNullOrUndefined: function (e) {
+ return null == e;
+ },
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ (t.decode = t.parse = n(186)), (t.encode = t.stringify = n(187));
+ },
+ function (e, t, n) {
+ 'use strict';
+ function r(e, t) {
+ return Object.prototype.hasOwnProperty.call(e, t);
+ }
+ e.exports = function (e, t, n, o) {
+ (t = t || '&'), (n = n || '=');
+ var a = {};
+ if ('string' != typeof e || 0 === e.length) return a;
+ var s = /\+/g;
+ e = e.split(t);
+ var c = 1e3;
+ o && 'number' == typeof o.maxKeys && (c = o.maxKeys);
+ var u = e.length;
+ c > 0 && u > c && (u = c);
+ for (var l = 0; l < u; ++l) {
+ var p,
+ f,
+ h,
+ d,
+ m = e[l].replace(s, '%20'),
+ y = m.indexOf(n);
+ y >= 0 ? ((p = m.substr(0, y)), (f = m.substr(y + 1))) : ((p = m), (f = '')),
+ (h = decodeURIComponent(p)),
+ (d = decodeURIComponent(f)),
+ r(a, h) ? (i(a[h]) ? a[h].push(d) : (a[h] = [a[h], d])) : (a[h] = d);
+ }
+ return a;
+ };
+ var i =
+ Array.isArray ||
+ function (e) {
+ return '[object Array]' === Object.prototype.toString.call(e);
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = function (e) {
+ switch (typeof e) {
+ case 'string':
+ return e;
+ case 'boolean':
+ return e ? 'true' : 'false';
+ case 'number':
+ return isFinite(e) ? e : '';
+ default:
+ return '';
+ }
+ };
+ e.exports = function (e, t, n, s) {
+ return (
+ (t = t || '&'),
+ (n = n || '='),
+ null === e && (e = void 0),
+ 'object' == typeof e
+ ? o(a(e), function (a) {
+ var s = encodeURIComponent(r(a)) + n;
+ return i(e[a])
+ ? o(e[a], function (e) {
+ return s + encodeURIComponent(r(e));
+ }).join(t)
+ : s + encodeURIComponent(r(e[a]));
+ }).join(t)
+ : s
+ ? encodeURIComponent(r(s)) + n + encodeURIComponent(r(e))
+ : ''
+ );
+ };
+ var i =
+ Array.isArray ||
+ function (e) {
+ return '[object Array]' === Object.prototype.toString.call(e);
+ };
+ function o(e, t) {
+ if (e.map) return e.map(t);
+ for (var n = [], r = 0; r < e.length; r++) n.push(t(e[r], r));
+ return n;
+ }
+ var a =
+ Object.keys ||
+ function (e) {
+ var t = [];
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.push(n);
+ return t;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ function r(e, t, n, r, i) {
+ let o = e[t];
+ if ('function' == typeof o) return o.apply(e, [n, r, i]);
+ if (!r) {
+ if (o instanceof RegExp) return o.test(n.url);
+ if ('string' == typeof o) return o === n.extension;
+ if (Array.isArray(o)) return -1 !== o.indexOf(n.extension);
+ }
+ return o;
+ }
+ (t.all = function (e) {
+ return Object.keys(e)
+ .filter((t) => 'object' == typeof e[t])
+ .map((t) => ((e[t].name = t), e[t]));
+ }),
+ (t.filter = function (e, t, n) {
+ return e.filter((e) => !!r(e, t, n));
+ }),
+ (t.sort = function (e) {
+ for (let t of e) t.order = t.order || Number.MAX_SAFE_INTEGER;
+ return e.sort((e, t) => e.order - t.order);
+ }),
+ (t.run = function (e, t, n, i) {
+ let o,
+ a,
+ s = 0;
+ return new Promise((c, u) => {
+ function l() {
+ if (((o = e[s++]), !o)) return u(a);
+ try {
+ let a = r(o, t, n, p, i);
+ if (a && 'function' == typeof a.then) a.then(f, h);
+ else if (void 0 !== a) f(a);
+ else if (s === e.length) throw new Error('No promise has been returned or callback has been called.');
+ } catch (e) {
+ h(e);
+ }
+ }
+ function p(e, t) {
+ e ? h(e) : f(t);
+ }
+ function f(e) {
+ c({ plugin: o, result: e });
+ }
+ function h(e) {
+ (a = { plugin: o, error: e }), l();
+ }
+ l();
+ });
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ const r = n(190);
+ e.exports = function (e) {
+ let t, n, i, o;
+ 'function' == typeof (e = Array.prototype.slice.call(e))[e.length - 1] && (o = e.pop());
+ 'string' == typeof e[0]
+ ? ((t = e[0]), 'object' == typeof e[2] ? ((n = e[1]), (i = e[2])) : ((n = void 0), (i = e[1])))
+ : ((t = ''), (n = e[0]), (i = e[1]));
+ i instanceof r || (i = new r(i));
+ return { path: t, schema: n, options: i, callback: o };
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ const r = n(191),
+ i = n(192),
+ o = n(193),
+ a = n(194),
+ s = n(195),
+ c = n(197);
+ function u(e) {
+ l(this, u.defaults), l(this, e);
+ }
+ function l(e, t) {
+ if (p(t)) {
+ let n = Object.keys(t);
+ for (let r = 0; r < n.length; r++) {
+ let i = n[r],
+ o = t[i],
+ a = e[i];
+ p(o) ? (e[i] = l(a || {}, o)) : void 0 !== o && (e[i] = o);
+ }
+ }
+ return e;
+ }
+ function p(e) {
+ return e && 'object' == typeof e && !Array.isArray(e) && !(e instanceof RegExp) && !(e instanceof Date);
+ }
+ (e.exports = u),
+ (u.defaults = {
+ parse: { json: r, yaml: i, text: o, binary: a },
+ resolve: { file: s, http: c, external: !0 },
+ continueOnError: !1,
+ dereference: { circular: !0, excludedPathMatcher: () => !1 },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (t) {
+ const { ParserError: r } = n(13);
+ e.exports = {
+ order: 100,
+ allowEmpty: !0,
+ canParse: '.json',
+ async parse(e) {
+ let n = e.data;
+ if ((t.isBuffer(n) && (n = n.toString()), 'string' != typeof n)) return n;
+ if (0 !== n.trim().length)
+ try {
+ return JSON.parse(n);
+ } catch (t) {
+ throw new r(t.message, e.url);
+ }
+ },
+ };
+ }).call(this, n(1).Buffer);
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (t) {
+ const { ParserError: r } = n(13),
+ i = n(88),
+ { JSON_SCHEMA: o } = n(88);
+ e.exports = {
+ order: 200,
+ allowEmpty: !0,
+ canParse: ['.yaml', '.yml', '.json'],
+ async parse(e) {
+ let n = e.data;
+ if ((t.isBuffer(n) && (n = n.toString()), 'string' != typeof n)) return n;
+ try {
+ return i.load(n, { schema: o });
+ } catch (t) {
+ throw new r(t.message, e.url);
+ }
+ },
+ };
+ }).call(this, n(1).Buffer);
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (t) {
+ const { ParserError: r } = n(13);
+ let i = /\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;
+ e.exports = {
+ order: 300,
+ allowEmpty: !0,
+ encoding: 'utf8',
+ canParse: (e) => ('string' == typeof e.data || t.isBuffer(e.data)) && i.test(e.url),
+ parse(e) {
+ if ('string' == typeof e.data) return e.data;
+ if (t.isBuffer(e.data)) return e.data.toString(this.encoding);
+ throw new r('data is not text', e.url);
+ },
+ };
+ }).call(this, n(1).Buffer);
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (t) {
+ let n = /\.(jpeg|jpg|gif|png|bmp|ico)$/i;
+ e.exports = {
+ order: 400,
+ allowEmpty: !0,
+ canParse: (e) => t.isBuffer(e.data) && n.test(e.url),
+ parse: (e) => (t.isBuffer(e.data) ? e.data : t.from(e.data)),
+ };
+ }).call(this, n(1).Buffer);
+ },
+ function (e, t, n) {
+ 'use strict';
+ const r = n(196),
+ { ono: i } = n(19),
+ o = n(12),
+ { ResolverError: a } = n(13);
+ e.exports = {
+ order: 100,
+ canRead: (e) => o.isFileSystemPath(e.url),
+ read: (e) =>
+ new Promise((t, n) => {
+ let s;
+ try {
+ s = o.toFileSystemPath(e.url);
+ } catch (t) {
+ n(new a(i.uri(t, 'Malformed URI: ' + e.url), e.url));
+ }
+ try {
+ r.readFile(s, (e, r) => {
+ e ? n(new a(i(e, `Error opening file "${s}"`), s)) : t(r);
+ });
+ } catch (e) {
+ n(new a(i(e, `Error opening file "${s}"`), s));
+ }
+ }),
+ };
+ },
+ function (e, t) {},
+ function (e, t, n) {
+ 'use strict';
+ (function (t, r) {
+ const i = n(89),
+ o = n(208),
+ { ono: a } = n(19),
+ s = n(12),
+ { ResolverError: c } = n(13);
+ e.exports = {
+ order: 200,
+ headers: null,
+ timeout: 5e3,
+ redirects: 5,
+ withCredentials: !1,
+ canRead: (e) => s.isHttp(e.url),
+ read(e) {
+ let n = s.parse(e.url);
+ return (
+ t.browser && !n.protocol && (n.protocol = s.parse(location.href).protocol),
+ (function e(t, n, u) {
+ return new Promise((l, p) => {
+ (t = s.parse(t)),
+ (u = u || []).push(t.href),
+ (function (e, t) {
+ return new Promise((n, a) => {
+ let s = ('https:' === e.protocol ? o : i).get({
+ hostname: e.hostname,
+ port: e.port,
+ path: e.path,
+ auth: e.auth,
+ protocol: e.protocol,
+ headers: t.headers || {},
+ withCredentials: t.withCredentials,
+ });
+ 'function' == typeof s.setTimeout && s.setTimeout(t.timeout),
+ s.on('timeout', () => {
+ s.abort();
+ }),
+ s.on('error', a),
+ s.once('response', (e) => {
+ (e.body = r.alloc(0)),
+ e.on('data', (t) => {
+ e.body = r.concat([e.body, r.from(t)]);
+ }),
+ e.on('error', a),
+ e.on('end', () => {
+ n(e);
+ });
+ });
+ });
+ })(t, n)
+ .then((i) => {
+ if (i.statusCode >= 400) throw a({ status: i.statusCode }, 'HTTP ERROR ' + i.statusCode);
+ if (i.statusCode >= 300)
+ if (u.length > n.redirects)
+ p(
+ new c(
+ a(
+ { status: i.statusCode },
+ `Error downloading ${u[0]}. \nToo many redirects: \n ${u.join(' \n ')}`
+ )
+ )
+ );
+ else {
+ if (!i.headers.location)
+ throw a(
+ { status: i.statusCode },
+ `HTTP ${i.statusCode} redirect with no location header`
+ );
+ {
+ let r = s.resolve(t, i.headers.location);
+ e(r, n, u).then(l, p);
+ }
+ }
+ else l(i.body || r.alloc(0));
+ })
+ .catch((e) => {
+ p(new c(a(e, 'Error downloading ' + t.href), t.href));
+ });
+ });
+ })(n, this)
+ );
+ },
+ };
+ }).call(this, n(6), n(1).Buffer);
+ },
+ function (e, t, n) {
+ (function (t, r, i) {
+ var o = n(90),
+ a = n(18),
+ s = n(91),
+ c = n(30),
+ u = n(205),
+ l = s.IncomingMessage,
+ p = s.readyStates;
+ var f = (e.exports = function (e) {
+ var n,
+ r = this;
+ c.Writable.call(r),
+ (r._opts = e),
+ (r._body = []),
+ (r._headers = {}),
+ e.auth && r.setHeader('Authorization', 'Basic ' + new t(e.auth).toString('base64')),
+ Object.keys(e.headers).forEach(function (t) {
+ r.setHeader(t, e.headers[t]);
+ });
+ var i = !0;
+ if ('disable-fetch' === e.mode || ('requestTimeout' in e && !o.abortController)) (i = !1), (n = !0);
+ else if ('prefer-streaming' === e.mode) n = !1;
+ else if ('allow-wrong-content-type' === e.mode) n = !o.overrideMimeType;
+ else {
+ if (e.mode && 'default' !== e.mode && 'prefer-fast' !== e.mode)
+ throw new Error('Invalid value for opts.mode');
+ n = !0;
+ }
+ (r._mode = (function (e, t) {
+ return o.fetch && t
+ ? 'fetch'
+ : o.mozchunkedarraybuffer
+ ? 'moz-chunked-arraybuffer'
+ : o.msstream
+ ? 'ms-stream'
+ : o.arraybuffer && e
+ ? 'arraybuffer'
+ : o.vbArray && e
+ ? 'text:vbarray'
+ : 'text';
+ })(n, i)),
+ (r._fetchTimer = null),
+ r.on('finish', function () {
+ r._onFinish();
+ });
+ });
+ a(f, c.Writable),
+ (f.prototype.setHeader = function (e, t) {
+ var n = e.toLowerCase();
+ -1 === h.indexOf(n) && (this._headers[n] = { name: e, value: t });
+ }),
+ (f.prototype.getHeader = function (e) {
+ var t = this._headers[e.toLowerCase()];
+ return t ? t.value : null;
+ }),
+ (f.prototype.removeHeader = function (e) {
+ delete this._headers[e.toLowerCase()];
+ }),
+ (f.prototype._onFinish = function () {
+ var e = this;
+ if (!e._destroyed) {
+ var n = e._opts,
+ a = e._headers,
+ s = null;
+ 'GET' !== n.method &&
+ 'HEAD' !== n.method &&
+ (s = o.arraybuffer
+ ? u(t.concat(e._body))
+ : o.blobConstructor
+ ? new r.Blob(
+ e._body.map(function (e) {
+ return u(e);
+ }),
+ { type: (a['content-type'] || {}).value || '' }
+ )
+ : t.concat(e._body).toString());
+ var c = [];
+ if (
+ (Object.keys(a).forEach(function (e) {
+ var t = a[e].name,
+ n = a[e].value;
+ Array.isArray(n)
+ ? n.forEach(function (e) {
+ c.push([t, e]);
+ })
+ : c.push([t, n]);
+ }),
+ 'fetch' === e._mode)
+ ) {
+ var l = null;
+ if (o.abortController) {
+ var f = new AbortController();
+ (l = f.signal),
+ (e._fetchAbortController = f),
+ 'requestTimeout' in n &&
+ 0 !== n.requestTimeout &&
+ (e._fetchTimer = r.setTimeout(function () {
+ e.emit('requestTimeout'), e._fetchAbortController && e._fetchAbortController.abort();
+ }, n.requestTimeout));
+ }
+ r.fetch(e._opts.url, {
+ method: e._opts.method,
+ headers: c,
+ body: s || void 0,
+ mode: 'cors',
+ credentials: n.withCredentials ? 'include' : 'same-origin',
+ signal: l,
+ }).then(
+ function (t) {
+ (e._fetchResponse = t), e._connect();
+ },
+ function (t) {
+ r.clearTimeout(e._fetchTimer), e._destroyed || e.emit('error', t);
+ }
+ );
+ } else {
+ var h = (e._xhr = new r.XMLHttpRequest());
+ try {
+ h.open(e._opts.method, e._opts.url, !0);
+ } catch (t) {
+ return void i.nextTick(function () {
+ e.emit('error', t);
+ });
+ }
+ 'responseType' in h && (h.responseType = e._mode.split(':')[0]),
+ 'withCredentials' in h && (h.withCredentials = !!n.withCredentials),
+ 'text' === e._mode &&
+ 'overrideMimeType' in h &&
+ h.overrideMimeType('text/plain; charset=x-user-defined'),
+ 'requestTimeout' in n &&
+ ((h.timeout = n.requestTimeout),
+ (h.ontimeout = function () {
+ e.emit('requestTimeout');
+ })),
+ c.forEach(function (e) {
+ h.setRequestHeader(e[0], e[1]);
+ }),
+ (e._response = null),
+ (h.onreadystatechange = function () {
+ switch (h.readyState) {
+ case p.LOADING:
+ case p.DONE:
+ e._onXHRProgress();
+ }
+ }),
+ 'moz-chunked-arraybuffer' === e._mode &&
+ (h.onprogress = function () {
+ e._onXHRProgress();
+ }),
+ (h.onerror = function () {
+ e._destroyed || e.emit('error', new Error('XHR error'));
+ });
+ try {
+ h.send(s);
+ } catch (t) {
+ return void i.nextTick(function () {
+ e.emit('error', t);
+ });
+ }
+ }
+ }
+ }),
+ (f.prototype._onXHRProgress = function () {
+ (function (e) {
+ try {
+ var t = e.status;
+ return null !== t && 0 !== t;
+ } catch (e) {
+ return !1;
+ }
+ })(this._xhr) &&
+ !this._destroyed &&
+ (this._response || this._connect(), this._response._onXHRProgress());
+ }),
+ (f.prototype._connect = function () {
+ var e = this;
+ e._destroyed ||
+ ((e._response = new l(e._xhr, e._fetchResponse, e._mode, e._fetchTimer)),
+ e._response.on('error', function (t) {
+ e.emit('error', t);
+ }),
+ e.emit('response', e._response));
+ }),
+ (f.prototype._write = function (e, t, n) {
+ this._body.push(e), n();
+ }),
+ (f.prototype.abort = f.prototype.destroy =
+ function () {
+ (this._destroyed = !0),
+ r.clearTimeout(this._fetchTimer),
+ this._response && (this._response._destroyed = !0),
+ this._xhr ? this._xhr.abort() : this._fetchAbortController && this._fetchAbortController.abort();
+ }),
+ (f.prototype.end = function (e, t, n) {
+ 'function' == typeof e && ((n = e), (e = void 0)), c.Writable.prototype.end.call(this, e, t, n);
+ }),
+ (f.prototype.flushHeaders = function () {}),
+ (f.prototype.setTimeout = function () {}),
+ (f.prototype.setNoDelay = function () {}),
+ (f.prototype.setSocketKeepAlive = function () {});
+ var h = [
+ 'accept-charset',
+ 'accept-encoding',
+ 'access-control-request-headers',
+ 'access-control-request-method',
+ 'connection',
+ 'content-length',
+ 'cookie',
+ 'cookie2',
+ 'date',
+ 'dnt',
+ 'expect',
+ 'host',
+ 'keep-alive',
+ 'origin',
+ 'referer',
+ 'te',
+ 'trailer',
+ 'transfer-encoding',
+ 'upgrade',
+ 'via',
+ ];
+ }).call(this, n(1).Buffer, n(8), n(6));
+ },
+ function (e, t) {},
+ function (e, t, n) {
+ 'use strict';
+ var r = n(44).Buffer,
+ i = n(201);
+ (e.exports = (function () {
+ function e() {
+ !(function (e, t) {
+ if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
+ })(this, e),
+ (this.head = null),
+ (this.tail = null),
+ (this.length = 0);
+ }
+ return (
+ (e.prototype.push = function (e) {
+ var t = { data: e, next: null };
+ this.length > 0 ? (this.tail.next = t) : (this.head = t), (this.tail = t), ++this.length;
+ }),
+ (e.prototype.unshift = function (e) {
+ var t = { data: e, next: this.head };
+ 0 === this.length && (this.tail = t), (this.head = t), ++this.length;
+ }),
+ (e.prototype.shift = function () {
+ if (0 !== this.length) {
+ var e = this.head.data;
+ return (
+ 1 === this.length ? (this.head = this.tail = null) : (this.head = this.head.next), --this.length, e
+ );
+ }
+ }),
+ (e.prototype.clear = function () {
+ (this.head = this.tail = null), (this.length = 0);
+ }),
+ (e.prototype.join = function (e) {
+ if (0 === this.length) return '';
+ for (var t = this.head, n = '' + t.data; (t = t.next); ) n += e + t.data;
+ return n;
+ }),
+ (e.prototype.concat = function (e) {
+ if (0 === this.length) return r.alloc(0);
+ if (1 === this.length) return this.head.data;
+ for (var t, n, i, o = r.allocUnsafe(e >>> 0), a = this.head, s = 0; a; )
+ (t = a.data), (n = o), (i = s), t.copy(n, i), (s += a.data.length), (a = a.next);
+ return o;
+ }),
+ e
+ );
+ })()),
+ i &&
+ i.inspect &&
+ i.inspect.custom &&
+ (e.exports.prototype[i.inspect.custom] = function () {
+ var e = i.inspect({ length: this.length });
+ return this.constructor.name + ' ' + e;
+ });
+ },
+ function (e, t) {},
+ function (e, t, n) {
+ (function (e, t) {
+ !(function (e, n) {
+ 'use strict';
+ if (!e.setImmediate) {
+ var r,
+ i,
+ o,
+ a,
+ s,
+ c = 1,
+ u = {},
+ l = !1,
+ p = e.document,
+ f = Object.getPrototypeOf && Object.getPrototypeOf(e);
+ (f = f && f.setTimeout ? f : e),
+ '[object process]' === {}.toString.call(e.process)
+ ? (r = function (e) {
+ t.nextTick(function () {
+ d(e);
+ });
+ })
+ : !(function () {
+ if (e.postMessage && !e.importScripts) {
+ var t = !0,
+ n = e.onmessage;
+ return (
+ (e.onmessage = function () {
+ t = !1;
+ }),
+ e.postMessage('', '*'),
+ (e.onmessage = n),
+ t
+ );
+ }
+ })()
+ ? e.MessageChannel
+ ? (((o = new MessageChannel()).port1.onmessage = function (e) {
+ d(e.data);
+ }),
+ (r = function (e) {
+ o.port2.postMessage(e);
+ }))
+ : p && 'onreadystatechange' in p.createElement('script')
+ ? ((i = p.documentElement),
+ (r = function (e) {
+ var t = p.createElement('script');
+ (t.onreadystatechange = function () {
+ d(e), (t.onreadystatechange = null), i.removeChild(t), (t = null);
+ }),
+ i.appendChild(t);
+ }))
+ : (r = function (e) {
+ setTimeout(d, 0, e);
+ })
+ : ((a = 'setImmediate$' + Math.random() + '$'),
+ (s = function (t) {
+ t.source === e &&
+ 'string' == typeof t.data &&
+ 0 === t.data.indexOf(a) &&
+ d(+t.data.slice(a.length));
+ }),
+ e.addEventListener ? e.addEventListener('message', s, !1) : e.attachEvent('onmessage', s),
+ (r = function (t) {
+ e.postMessage(a + t, '*');
+ })),
+ (f.setImmediate = function (e) {
+ 'function' != typeof e && (e = new Function('' + e));
+ for (var t = new Array(arguments.length - 1), n = 0; n < t.length; n++) t[n] = arguments[n + 1];
+ var i = { callback: e, args: t };
+ return (u[c] = i), r(c), c++;
+ }),
+ (f.clearImmediate = h);
+ }
+ function h(e) {
+ delete u[e];
+ }
+ function d(e) {
+ if (l) setTimeout(d, 0, e);
+ else {
+ var t = u[e];
+ if (t) {
+ l = !0;
+ try {
+ !(function (e) {
+ var t = e.callback,
+ n = e.args;
+ switch (n.length) {
+ case 0:
+ t();
+ break;
+ case 1:
+ t(n[0]);
+ break;
+ case 2:
+ t(n[0], n[1]);
+ break;
+ case 3:
+ t(n[0], n[1], n[2]);
+ break;
+ default:
+ t.apply(void 0, n);
+ }
+ })(t);
+ } finally {
+ h(e), (l = !1);
+ }
+ }
+ }
+ }
+ })('undefined' == typeof self ? (void 0 === e ? this : e) : self);
+ }).call(this, n(8), n(6));
+ },
+ function (e, t, n) {
+ (function (t) {
+ function n(e) {
+ try {
+ if (!t.localStorage) return !1;
+ } catch (e) {
+ return !1;
+ }
+ var n = t.localStorage[e];
+ return null != n && 'true' === String(n).toLowerCase();
+ }
+ e.exports = function (e, t) {
+ if (n('noDeprecation')) return e;
+ var r = !1;
+ return function () {
+ if (!r) {
+ if (n('throwDeprecation')) throw new Error(t);
+ n('traceDeprecation') ? console.trace(t) : console.warn(t), (r = !0);
+ }
+ return e.apply(this, arguments);
+ };
+ };
+ }).call(this, n(8));
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = o;
+ var r = n(97),
+ i = Object.create(n(31));
+ function o(e) {
+ if (!(this instanceof o)) return new o(e);
+ r.call(this, e);
+ }
+ (i.inherits = n(18)),
+ i.inherits(o, r),
+ (o.prototype._transform = function (e, t, n) {
+ n(null, e);
+ });
+ },
+ function (e, t, n) {
+ var r = n(1).Buffer;
+ e.exports = function (e) {
+ if (e instanceof Uint8Array) {
+ if (0 === e.byteOffset && e.byteLength === e.buffer.byteLength) return e.buffer;
+ if ('function' == typeof e.buffer.slice) return e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength);
+ }
+ if (r.isBuffer(e)) {
+ for (var t = new Uint8Array(e.length), n = e.length, i = 0; i < n; i++) t[i] = e[i];
+ return t.buffer;
+ }
+ throw new Error('Argument must be a Buffer');
+ };
+ },
+ function (e, t) {
+ e.exports = function () {
+ for (var e = {}, t = 0; t < arguments.length; t++) {
+ var r = arguments[t];
+ for (var i in r) n.call(r, i) && (e[i] = r[i]);
+ }
+ return e;
+ };
+ var n = Object.prototype.hasOwnProperty;
+ },
+ function (e, t) {
+ e.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',
+ };
+ },
+ function (e, t, n) {
+ var r = n(89),
+ i = n(41),
+ o = e.exports;
+ for (var a in r) r.hasOwnProperty(a) && (o[a] = r[a]);
+ function s(e) {
+ if (('string' == typeof e && (e = i.parse(e)), e.protocol || (e.protocol = 'https:'), 'https:' !== e.protocol))
+ throw new Error('Protocol "' + e.protocol + '" not supported. Expected "https:"');
+ return e;
+ }
+ (o.request = function (e, t) {
+ return (e = s(e)), r.request.call(this, e, t);
+ }),
+ (o.get = function (e, t) {
+ return (e = s(e)), r.get.call(this, e, t);
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ const r = n(29),
+ i = n(40),
+ o = n(87),
+ a = n(12),
+ { isHandledError: s } = n(13);
+ function c(e, t, n, o, a) {
+ a = a || new Set();
+ let s = [];
+ if (e && 'object' == typeof e && !ArrayBuffer.isView(e) && !a.has(e))
+ if ((a.add(e), r.isExternal$Ref(e))) s.push(u(e, t, n, o));
+ else
+ for (let l of Object.keys(e)) {
+ let p = i.join(t, l),
+ f = e[l];
+ r.isExternal$Ref(f) ? s.push(u(f, p, n, o)) : (s = s.concat(c(f, p, n, o, a)));
+ }
+ return s;
+ }
+ async function u(e, t, n, r) {
+ let i = a.resolve(t, e.$ref),
+ u = a.stripHash(i);
+ if ((e = n._$refs[u])) return Promise.resolve(e.value);
+ try {
+ let e = c(await o(i, n, r), u + '#', n, r);
+ return Promise.all(e);
+ } catch (e) {
+ if (!r.continueOnError || !s(e)) throw e;
+ return (
+ n._$refs[u] && ((e.source = decodeURI(a.stripHash(t))), (e.path = a.safePointerToPath(a.getHash(t)))), []
+ );
+ }
+ }
+ e.exports = function (e, t) {
+ if (!t.resolve.external) return Promise.resolve();
+ try {
+ let n = c(e.schema, e.$refs._root$Ref.path + '#', e.$refs, t);
+ return Promise.all(n);
+ } catch (e) {
+ return Promise.reject(e);
+ }
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ const r = n(29),
+ i = n(40),
+ o = n(12);
+ function a(e, t, n, o, c, u, l, p) {
+ let f = null === t ? e : e[t];
+ if (f && 'object' == typeof f && !ArrayBuffer.isView(f))
+ if (r.isAllowed$Ref(f)) s(e, t, n, o, c, u, l, p);
+ else {
+ let e = Object.keys(f).sort((e, t) =>
+ 'definitions' === e ? -1 : 'definitions' === t ? 1 : e.length - t.length
+ );
+ for (let t of e) {
+ let e = i.join(n, t),
+ h = i.join(o, t),
+ d = f[t];
+ r.isAllowed$Ref(d) ? s(f, t, n, h, c, u, l, p) : a(f, t, e, h, c, u, l, p);
+ }
+ }
+ }
+ function s(e, t, n, s, c, u, l, p) {
+ let f = null === t ? e : e[t],
+ h = o.resolve(n, f.$ref),
+ d = l._resolve(h, s, p);
+ if (null === d) return;
+ let m = i.parse(s).length,
+ y = o.stripHash(d.path),
+ g = o.getHash(d.path),
+ v = y !== l._root$Ref.path,
+ b = r.isExtended$Ref(f);
+ c += d.indirections;
+ let x = (function (e, t, n) {
+ for (let r = 0; r < e.length; r++) {
+ let i = e[r];
+ if (i.parent === t && i.key === n) return i;
+ }
+ })(u, e, t);
+ if (x) {
+ if (!(m < x.depth || c < x.indirections)) return;
+ !(function (e, t) {
+ let n = e.indexOf(t);
+ e.splice(n, 1);
+ })(u, x);
+ }
+ u.push({
+ $ref: f,
+ parent: e,
+ key: t,
+ pathFromRoot: s,
+ depth: m,
+ file: y,
+ hash: g,
+ value: d.value,
+ circular: d.circular,
+ extended: b,
+ external: v,
+ indirections: c,
+ }),
+ x || a(d.value, null, d.path, s, c + 1, u, l, p);
+ }
+ e.exports = function (e, t) {
+ let n = [];
+ a(e, 'schema', e.$refs._root$Ref.path + '#', '#', 0, n, e.$refs, t),
+ (function (e) {
+ let t, n, o;
+ e.sort((e, t) => {
+ if (e.file !== t.file) return e.file < t.file ? -1 : 1;
+ if (e.hash !== t.hash) return e.hash < t.hash ? -1 : 1;
+ if (e.circular !== t.circular) return e.circular ? -1 : 1;
+ if (e.extended !== t.extended) return e.extended ? 1 : -1;
+ if (e.indirections !== t.indirections) return e.indirections - t.indirections;
+ if (e.depth !== t.depth) return e.depth - t.depth;
+ {
+ let n = e.pathFromRoot.lastIndexOf('/definitions'),
+ r = t.pathFromRoot.lastIndexOf('/definitions');
+ return n !== r ? r - n : e.pathFromRoot.length - t.pathFromRoot.length;
+ }
+ });
+ for (let a of e)
+ a.external
+ ? a.file === t && a.hash === n
+ ? (a.$ref.$ref = o)
+ : a.file === t && 0 === a.hash.indexOf(n + '/')
+ ? (a.$ref.$ref = i.join(o, i.parse(a.hash.replace(n, '#'))))
+ : ((t = a.file),
+ (n = a.hash),
+ (o = a.pathFromRoot),
+ (a.$ref = a.parent[a.key] = r.dereference(a.$ref, a.value)),
+ a.circular && (a.$ref.$ref = a.pathFromRoot))
+ : (a.$ref.$ref = a.hash);
+ })(n);
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ const r = n(29),
+ i = n(40),
+ { ono: o } = n(19),
+ a = n(12);
+ function s(e, t, n, o, a, l, p, f) {
+ let h,
+ d = { value: e, circular: !1 },
+ m = f.dereference.excludedPathMatcher;
+ if (
+ ('ignore' === f.dereference.circular || !a.has(e)) &&
+ e &&
+ 'object' == typeof e &&
+ !ArrayBuffer.isView(e) &&
+ !m(n)
+ ) {
+ if ((o.add(e), a.add(e), r.isAllowed$Ref(e, f)))
+ (h = c(e, t, n, o, a, l, p, f)), (d.circular = h.circular), (d.value = h.value);
+ else
+ for (const y of Object.keys(e)) {
+ let g = i.join(t, y),
+ v = i.join(n, y);
+ if (m(v)) continue;
+ let b = e[y],
+ x = !1;
+ r.isAllowed$Ref(b, f)
+ ? ((h = c(b, g, v, o, a, l, p, f)), (x = h.circular), e[y] !== h.value && (e[y] = h.value))
+ : o.has(b)
+ ? (x = u(g, p, f))
+ : ((h = s(b, g, v, o, a, l, p, f)), (x = h.circular), e[y] !== h.value && (e[y] = h.value)),
+ (d.circular = d.circular || x);
+ }
+ o.delete(e);
+ }
+ return d;
+ }
+ function c(e, t, n, i, o, c, l, p) {
+ let f = a.resolve(t, e.$ref);
+ const h = c.get(f);
+ if (h) {
+ const t = Object.keys(e);
+ if (t.length > 1) {
+ const n = {};
+ for (let r of t) '$ref' === r || r in h.value || (n[r] = e[r]);
+ return { circular: h.circular, value: Object.assign({}, h.value, n) };
+ }
+ return h;
+ }
+ let d = l._resolve(f, t, p);
+ if (null === d) return { circular: !1, value: null };
+ let m = d.circular,
+ y = m || i.has(d.value);
+ y && u(t, l, p);
+ let g = r.dereference(e, d.value);
+ if (!y) {
+ let e = s(g, d.path, n, i, o, c, l, p);
+ (y = e.circular), (g = e.value);
+ }
+ y && !m && 'ignore' === p.dereference.circular && (g = e), m && (g.$ref = n);
+ const v = { circular: y, value: g };
+ return 1 === Object.keys(e).length && c.set(f, v), v;
+ }
+ function u(e, t, n) {
+ if (((t.circular = !0), !n.dereference.circular)) throw o.reference('Circular $ref pointer found at ' + e);
+ return !0;
+ }
+ e.exports = function (e, t) {
+ let n = s(e.schema, e.$refs._root$Ref.path, '#', new Set(), new Set(), new Map(), e.$refs, t);
+ (e.$refs.circular = n.circular), (e.schema = n.value);
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(213);
+ e.exports = function (e, t) {
+ return e
+ ? void t.then(
+ function (t) {
+ r(function () {
+ e(null, t);
+ });
+ },
+ function (t) {
+ r(function () {
+ e(t);
+ });
+ }
+ )
+ : t;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (t, n) {
+ e.exports =
+ 'object' == typeof t && 'function' == typeof t.nextTick
+ ? t.nextTick
+ : 'function' == typeof n
+ ? n
+ : function (e) {
+ setTimeout(e, 0);
+ };
+ }).call(this, n(6), n(95).setImmediate);
+ },
+ function (e, t, n) {
+ 'use strict';
+ n.r(t),
+ n.d(t, 'apply', function () {
+ return i;
+ });
+ const r = (e) => null != e && 'object' == typeof e && !1 === Array.isArray(e);
+ function i(e, t) {
+ if (!r(t)) return t;
+ const n = r(e) ? Object.assign({}, e) : {};
+ return (
+ Object.keys(t).forEach((e) => {
+ const r = t[e];
+ null === r ? delete n[e] : (n[e] = i(n[e], r));
+ }),
+ n
+ );
+ }
+ t.default = i;
+ },
+ function (e, t, n) {
+ const r = n(27),
+ {
+ parseUrlVariables: i,
+ getMissingProps: o,
+ groupValidationErrors: a,
+ tilde: s,
+ parseUrlQueryParameters: c,
+ setNotProvidedParams: u,
+ getUnknownServers: l,
+ } = (n(52), n(56));
+ function p(e, t, n) {
+ t &&
+ (f(e, n + '/tags', t.tags),
+ t.message &&
+ (t.message.oneOf
+ ? t.message.oneOf.forEach((t, r) => {
+ f(e, `${n}/message/oneOf/${r}/tags`, t.tags);
+ })
+ : f(e, n + '/message/tags', t.message.tags)));
+ }
+ function f(e, t, n) {
+ const r = n && h(n);
+ r && r.length && e.set(t, r.toString());
+ }
+ function h(e) {
+ if (!e) return null;
+ return e
+ .map((e) => e.name)
+ .reduce((e, t, n, r) => (r.indexOf(t) !== n && e.indexOf(t) < 0 && e.push(t), e), []);
+ }
+ e.exports = {
+ validateServerVariables: function (e, t, n) {
+ const c = e.servers;
+ if (!c) return !0;
+ const u = new Map(Object.entries(c)),
+ l = new Map(),
+ p = new Map();
+ if (
+ (u.forEach((e, t) => {
+ const n = i(e.url),
+ r = e.variables,
+ a = l.get(s(t));
+ if (!n) return;
+ const c = o(n, r);
+ c.length && l.set(s(t), a ? a.concat(c) : c),
+ r &&
+ (function (e, t, n) {
+ new Map(Object.entries(e)).forEach((e, r) => {
+ if (e.enum && e.examples) {
+ const i = e.examples.filter((t) => !e.enum.includes(t));
+ i.length && n.set(`${s(t)}/variables/${s(r)}`, i);
+ }
+ });
+ })(r, t, p);
+ }),
+ l.size)
+ )
+ throw new r({
+ type: 'validation-errors',
+ title: 'Not all server variables are described with variable object',
+ parsedJSON: e,
+ validationErrors: a('servers', 'server does not have a corresponding variable object for', l, t, n),
+ });
+ if (p.size)
+ throw new r({
+ type: 'validation-errors',
+ title: 'Check your server variables. The example does not match the enum list',
+ parsedJSON: e,
+ validationErrors: a(
+ 'servers',
+ 'server variable provides an example that does not match the enum list',
+ p,
+ t,
+ n
+ ),
+ });
+ return !0;
+ },
+ validateOperationId: function (e, t, n, i) {
+ const o = e.channels;
+ if (!o) return !0;
+ const c = new Map(Object.entries(o)),
+ u = new Map(),
+ l = [];
+ if (
+ (c.forEach((e, t) => {
+ i.forEach((n) => {
+ const r = e[String(n)];
+ r &&
+ ((e, t, n) => {
+ const r = e.operationId;
+ if (!r) return;
+ const i = `${s(t)}/${n}/operationId`,
+ o = l.filter((e) => e[0] === r);
+ if (!o.length) return l.push([r, i]);
+ u.set(i, o[0][1]);
+ })(r, t, n);
+ });
+ }),
+ u.size)
+ )
+ throw new r({
+ type: 'validation-errors',
+ title: 'operationId must be unique across all the operations.',
+ parsedJSON: e,
+ validationErrors: a('channels', 'is a duplicate of', u, t, n),
+ });
+ return !0;
+ },
+ validateMessageId: function (e, t, n, i) {
+ const o = e.channels;
+ if (!o) return !0;
+ const c = new Map(Object.entries(o)),
+ u = new Map(),
+ l = [],
+ p = (e, t, n, r = '') => {
+ const i = e.messageId;
+ if (!i) return;
+ const o = `${s(t)}/${n}/message${r}/messageId`,
+ a = l.find((e) => e[0] === i);
+ if (!a) return l.push([i, o]);
+ u.set(o, a[1]);
+ };
+ if (
+ (c.forEach((e, t) => {
+ i.forEach((n) => {
+ const r = e[String(n)];
+ r &&
+ r.message &&
+ (r.message.oneOf ? r.message.oneOf.forEach((e, r) => p(e, t, n, '/oneOf/' + r)) : p(r.message, t, n));
+ });
+ }),
+ u.size)
+ )
+ throw new r({
+ type: 'validation-errors',
+ title: 'messageId must be unique across all the messages.',
+ parsedJSON: e,
+ validationErrors: a('channels', 'is a duplicate of', u, t, n),
+ });
+ return !0;
+ },
+ validateServerSecurity: function (e, t, n, i) {
+ const o = e.servers;
+ if (!o) return !0;
+ const s = new Map(Object.entries(o)),
+ c = new Map(),
+ u = new Map();
+ if (
+ (s.forEach((t, n) => {
+ const r = t.security;
+ if (!r) return !0;
+ r.forEach((t) => {
+ Object.keys(t).forEach((r) => {
+ const o = (function (e, t) {
+ const n = t && t.securitySchemes,
+ r = n ? new Map(Object.entries(n)) : new Map(),
+ i = [];
+ for (const [t, n] of r.entries()) if (t === e) return i.push(t, n.type), i;
+ return i;
+ })(r, e.components),
+ a = `${n}/security/${r}`;
+ if (!o.length) return c.set(a);
+ const s = o[1];
+ (function (e, t, n, r) {
+ if (!t.includes(e)) {
+ return !n[String(r)].length;
+ }
+ return !0;
+ })(s, i, t, r) || u.set(a, s);
+ });
+ });
+ }),
+ c.size)
+ )
+ throw new r({
+ type: 'validation-errors',
+ title:
+ 'Server security name must correspond to a security scheme which is declared in the security schemes under the components object.',
+ parsedJSON: e,
+ validationErrors: a(
+ 'servers',
+ "doesn't have a corresponding security schema under the components object",
+ c,
+ t,
+ n
+ ),
+ });
+ if (u.size)
+ throw new r({
+ type: 'validation-errors',
+ title:
+ 'Server security value must be an empty array if corresponding security schema type is not oauth2 or openIdConnect.',
+ parsedJSON: e,
+ validationErrors: a(
+ 'servers',
+ 'security info must have an empty array because its corresponding security schema type is',
+ u,
+ t,
+ n
+ ),
+ });
+ return !0;
+ },
+ validateChannels: function (e, t, n) {
+ const o = e.channels;
+ if (!o) return !0;
+ const p = new Map(Object.entries(o)),
+ f = new Map(),
+ h = new Map(),
+ d = new Map();
+ p.forEach((t, n) => {
+ const r = i(n),
+ o = f.get(s(n)),
+ a = c(n),
+ p = l(e, t);
+ r && u(r, t, n, o, f), a && h.set(s(n), a), p.length > 0 && d.set(s(n), p);
+ });
+ const m = a('channels', 'channel does not have a corresponding parameter object for', f, t, n),
+ y = a('channels', 'channel contains invalid name with url query parameters', h, t, n),
+ g = a(
+ 'channels',
+ 'channel contains servers that are not on the servers list in the root of the document',
+ d,
+ t,
+ n
+ ),
+ v = m.concat(y).concat(g);
+ if (f.size || h.size || d.size)
+ throw new r({
+ type: 'validation-errors',
+ title: 'Channel validation failed',
+ parsedJSON: e,
+ validationErrors: v,
+ });
+ return !0;
+ },
+ validateTags: function (e, t, n) {
+ const i = (function (e) {
+ const t = new Map(),
+ n = e.tags && h(e.tags);
+ n && n.length && t.set('tags', n.toString());
+ return t;
+ })(e),
+ o = (function (e) {
+ const t = e.channels;
+ if (!t) return !0;
+ const n = new Map(Object.entries(t)),
+ r = new Map();
+ return (
+ n.forEach((e, t) =>
+ (function (e, t, n) {
+ t.publish && p(e, t.publish, s(n) + '/publish');
+ t.subscribe && p(e, t.subscribe, s(n) + '/subscribe');
+ })(r, e, t)
+ ),
+ r
+ );
+ })(e),
+ c = (function (e) {
+ const t = new Map();
+ e &&
+ e.components &&
+ e.components.operationTraits &&
+ Object.keys(e.components.operationTraits).forEach((n) => {
+ const r = h(e.components.operationTraits[n].tags);
+ if (r && r.length) {
+ const e = `operationTraits/${n}/tags`;
+ t.set(e, r.toString());
+ }
+ });
+ return t;
+ })(e),
+ u = (function (e) {
+ const t = new Map();
+ e &&
+ e.components &&
+ e.components.messages &&
+ Object.keys(e.components.messages).forEach((n) => {
+ const r = h(e.components.messages[n].tags);
+ if (r && r.length) {
+ const e = `messages/${n}/tags`;
+ t.set(e, r.toString());
+ }
+ });
+ return t;
+ })(e),
+ l = (function (e) {
+ const t = new Map();
+ e &&
+ e.components &&
+ e.components.messageTraits &&
+ Object.keys(e.components.messageTraits).forEach((n) => {
+ const r = h(e.components.messageTraits[n].tags);
+ if (r && r.length) {
+ const e = `messageTraits/${n}/tags`;
+ t.set(e, r.toString());
+ }
+ });
+ return t;
+ })(e),
+ f = 'contains duplicate tag names';
+ let d = [],
+ m = [],
+ y = [],
+ g = [],
+ v = [];
+ i.size && (d = a(null, f, i, t, n)),
+ o.size && (m = a('channels', f, o, t, n)),
+ c.size && (y = a('components', f, c, t, n)),
+ u.size && (g = a('components', f, u, t, n)),
+ l.size && (v = a('components', f, l, t, n));
+ const b = d.concat(m).concat(y).concat(g).concat(v);
+ if (b.length)
+ throw new r({
+ type: 'validation-errors',
+ title: 'Tags validation failed',
+ parsedJSON: e,
+ validationErrors: b,
+ });
+ return !0;
+ },
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(217);
+ e.exports = r;
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(218),
+ i = n(237);
+ function o(e) {
+ return function () {
+ throw new Error('Function ' + e + ' is deprecated and cannot be used.');
+ };
+ }
+ (e.exports.Type = n(4)),
+ (e.exports.Schema = n(24)),
+ (e.exports.FAILSAFE_SCHEMA = n(57)),
+ (e.exports.JSON_SCHEMA = n(99)),
+ (e.exports.CORE_SCHEMA = n(98)),
+ (e.exports.DEFAULT_SAFE_SCHEMA = n(33)),
+ (e.exports.DEFAULT_FULL_SCHEMA = n(45)),
+ (e.exports.load = r.load),
+ (e.exports.loadAll = r.loadAll),
+ (e.exports.safeLoad = r.safeLoad),
+ (e.exports.safeLoadAll = r.safeLoadAll),
+ (e.exports.dump = i.dump),
+ (e.exports.safeDump = i.safeDump),
+ (e.exports.YAMLException = n(32)),
+ (e.exports.MINIMAL_SCHEMA = n(57)),
+ (e.exports.SAFE_SCHEMA = n(33)),
+ (e.exports.DEFAULT_SCHEMA = n(45)),
+ (e.exports.scan = o('scan')),
+ (e.exports.parse = o('parse')),
+ (e.exports.compose = o('compose')),
+ (e.exports.addConstructor = o('addConstructor'));
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(23),
+ i = n(32),
+ o = n(219),
+ a = n(33),
+ s = n(45),
+ c = Object.prototype.hasOwnProperty,
+ u =
+ /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,
+ l = /[\x85\u2028\u2029]/,
+ p = /[,\[\]\{\}]/,
+ f = /^(?:!|!!|![a-z\-]+!)$/i,
+ h = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
+ function d(e) {
+ return Object.prototype.toString.call(e);
+ }
+ 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 x(e) {
+ return 48 === e
+ ? '\0'
+ : 97 === e
+ ? ''
+ : 98 === e
+ ? '\b'
+ : 116 === e || 9 === e
+ ? '\t'
+ : 110 === e
+ ? '\n'
+ : 118 === e
+ ? '\v'
+ : 102 === e
+ ? '\f'
+ : 114 === e
+ ? '\r'
+ : 101 === e
+ ? ''
+ : 32 === e
+ ? ' '
+ : 34 === e
+ ? '"'
+ : 47 === e
+ ? '/'
+ : 92 === e
+ ? '\\'
+ : 78 === e
+ ? '
'
+ : 95 === e
+ ? ' '
+ : 76 === e
+ ? '\u2028'
+ : 80 === e
+ ? '\u2029'
+ : '';
+ }
+ function w(e) {
+ return e <= 65535
+ ? String.fromCharCode(e)
+ : String.fromCharCode(55296 + ((e - 65536) >> 10), 56320 + ((e - 65536) & 1023));
+ }
+ for (var E = new Array(256), _ = new Array(256), j = 0; j < 256; j++) (E[j] = x(j) ? 1 : 0), (_[j] = x(j));
+ function S(e, t) {
+ (this.input = e),
+ (this.filename = t.filename || null),
+ (this.schema = t.schema || s),
+ (this.onWarning = t.onWarning || null),
+ (this.legacy = t.legacy || !1),
+ (this.json = t.json || !1),
+ (this.listener = t.listener || null),
+ (this.implicitTypes = this.schema.compiledImplicit),
+ (this.typeMap = this.schema.compiledTypeMap),
+ (this.length = e.length),
+ (this.position = 0),
+ (this.line = 0),
+ (this.lineStart = 0),
+ (this.lineIndent = 0),
+ (this.documents = []);
+ }
+ function D(e, t) {
+ return new i(t, new o(e.filename, e.input, e.position, e.line, e.position - e.lineStart));
+ }
+ function A(e, t) {
+ throw D(e, t);
+ }
+ function k(e, t) {
+ e.onWarning && e.onWarning.call(null, D(e, t));
+ }
+ var C = {
+ YAML: function (e, t, n) {
+ var r, i, o;
+ null !== e.version && A(e, 'duplication of %YAML directive'),
+ 1 !== n.length && A(e, 'YAML directive accepts exactly one argument'),
+ null === (r = /^([0-9]+)\.([0-9]+)$/.exec(n[0])) && A(e, 'ill-formed argument of the YAML directive'),
+ (i = parseInt(r[1], 10)),
+ (o = parseInt(r[2], 10)),
+ 1 !== i && A(e, 'unacceptable YAML version of the document'),
+ (e.version = n[0]),
+ (e.checkLineBreaks = o < 2),
+ 1 !== o && 2 !== o && k(e, 'unsupported YAML version of the document');
+ },
+ TAG: function (e, t, n) {
+ var r, i;
+ 2 !== n.length && A(e, 'TAG directive accepts exactly two arguments'),
+ (r = n[0]),
+ (i = n[1]),
+ f.test(r) || A(e, 'ill-formed tag handle (first argument) of the TAG directive'),
+ c.call(e.tagMap, r) && A(e, 'there is a previously declared suffix for "' + r + '" tag handle'),
+ h.test(i) || A(e, 'ill-formed tag prefix (second argument) of the TAG directive'),
+ (e.tagMap[r] = i);
+ },
+ };
+ function P(e, t, n, r) {
+ var i, o, a, s;
+ if (t < n) {
+ if (((s = e.input.slice(t, n)), r))
+ for (i = 0, o = s.length; i < o; i += 1)
+ 9 === (a = s.charCodeAt(i)) || (32 <= a && a <= 1114111) || A(e, 'expected valid JSON character');
+ else u.test(s) && A(e, 'the stream contains non-printable characters');
+ e.result += s;
+ }
+ }
+ function T(e, t, n, i) {
+ var o, a, s, u;
+ for (
+ r.isObject(n) || A(e, 'cannot merge mappings; the provided source object is unacceptable'),
+ s = 0,
+ u = (o = Object.keys(n)).length;
+ s < u;
+ s += 1
+ )
+ (a = o[s]), c.call(t, a) || ((t[a] = n[a]), (i[a] = !0));
+ }
+ function $(e, t, n, r, i, o, a, s) {
+ var u, l;
+ if (Array.isArray(i))
+ for (u = 0, l = (i = Array.prototype.slice.call(i)).length; u < l; u += 1)
+ Array.isArray(i[u]) && A(e, 'nested arrays are not supported inside keys'),
+ 'object' == typeof i && '[object Object]' === d(i[u]) && (i[u] = '[object Object]');
+ if (
+ ('object' == typeof i && '[object Object]' === d(i) && (i = '[object Object]'),
+ (i = String(i)),
+ null === t && (t = {}),
+ 'tag:yaml.org,2002:merge' === r)
+ )
+ if (Array.isArray(o)) for (u = 0, l = o.length; u < l; u += 1) T(e, t, o[u], n);
+ else T(e, t, o, n);
+ else
+ e.json ||
+ c.call(n, i) ||
+ !c.call(t, i) ||
+ ((e.line = a || e.line), (e.position = s || e.position), A(e, 'duplicated mapping key')),
+ (t[i] = o),
+ delete n[i];
+ return t;
+ }
+ function O(e) {
+ var t;
+ 10 === (t = e.input.charCodeAt(e.position))
+ ? e.position++
+ : 13 === t
+ ? (e.position++, 10 === e.input.charCodeAt(e.position) && e.position++)
+ : A(e, 'a line break is expected'),
+ (e.line += 1),
+ (e.lineStart = e.position);
+ }
+ function F(e, t, n) {
+ for (var r = 0, i = e.input.charCodeAt(e.position); 0 !== i; ) {
+ for (; y(i); ) 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 (O(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; 32 === i; )
+ e.lineIndent++, (i = e.input.charCodeAt(++e.position));
+ }
+ return -1 !== n && 0 !== r && e.lineIndent < n && k(e, 'deficient indentation'), r;
+ }
+ function I(e) {
+ var t,
+ n = e.position;
+ return !(
+ (45 !== (t = e.input.charCodeAt(n)) && 46 !== t) ||
+ t !== e.input.charCodeAt(n + 1) ||
+ t !== e.input.charCodeAt(n + 2) ||
+ ((n += 3), 0 !== (t = e.input.charCodeAt(n)) && !g(t))
+ );
+ }
+ function N(e, t) {
+ 1 === t ? (e.result += ' ') : t > 1 && (e.result += r.repeat('\n', t - 1));
+ }
+ function R(e, t) {
+ var n,
+ r,
+ i = e.tag,
+ o = e.anchor,
+ a = [],
+ s = !1;
+ for (
+ null !== e.anchor && (e.anchorMap[e.anchor] = a), r = e.input.charCodeAt(e.position);
+ 0 !== r && 45 === r && g(e.input.charCodeAt(e.position + 1));
+
+ )
+ if (((s = !0), e.position++, F(e, !0, -1) && e.lineIndent <= t))
+ a.push(null), (r = e.input.charCodeAt(e.position));
+ else if (
+ ((n = e.line),
+ L(e, t, 3, !1, !0),
+ a.push(e.result),
+ F(e, !0, -1),
+ (r = e.input.charCodeAt(e.position)),
+ (e.line === n || e.lineIndent > t) && 0 !== r)
+ )
+ A(e, 'bad indentation of a sequence entry');
+ else if (e.lineIndent < t) break;
+ return !!s && ((e.tag = i), (e.anchor = o), (e.kind = 'sequence'), (e.result = a), !0);
+ }
+ function B(e) {
+ var t,
+ n,
+ r,
+ i,
+ o = !1,
+ a = !1;
+ if (33 !== (i = e.input.charCodeAt(e.position))) return !1;
+ if (
+ (null !== e.tag && A(e, 'duplication of a tag property'),
+ 60 === (i = e.input.charCodeAt(++e.position))
+ ? ((o = !0), (i = e.input.charCodeAt(++e.position)))
+ : 33 === i
+ ? ((a = !0), (n = '!!'), (i = e.input.charCodeAt(++e.position)))
+ : (n = '!'),
+ (t = e.position),
+ o)
+ ) {
+ do {
+ i = e.input.charCodeAt(++e.position);
+ } while (0 !== i && 62 !== i);
+ e.position < e.length
+ ? ((r = e.input.slice(t, e.position)), (i = e.input.charCodeAt(++e.position)))
+ : A(e, 'unexpected end of the stream within a verbatim tag');
+ } else {
+ for (; 0 !== i && !g(i); )
+ 33 === i &&
+ (a
+ ? A(e, 'tag suffix cannot contain exclamation marks')
+ : ((n = e.input.slice(t - 1, e.position + 1)),
+ f.test(n) || A(e, 'named tag handle cannot contain such characters'),
+ (a = !0),
+ (t = e.position + 1))),
+ (i = e.input.charCodeAt(++e.position));
+ (r = e.input.slice(t, e.position)), p.test(r) && A(e, 'tag suffix cannot contain flow indicator characters');
+ }
+ return (
+ r && !h.test(r) && A(e, 'tag name cannot contain such characters: ' + r),
+ o
+ ? (e.tag = r)
+ : c.call(e.tagMap, n)
+ ? (e.tag = e.tagMap[n] + r)
+ : '!' === n
+ ? (e.tag = '!' + r)
+ : '!!' === n
+ ? (e.tag = 'tag:yaml.org,2002:' + r)
+ : A(e, 'undeclared tag handle "' + n + '"'),
+ !0
+ );
+ }
+ function M(e) {
+ var t, n;
+ if (38 !== (n = e.input.charCodeAt(e.position))) return !1;
+ for (
+ null !== e.anchor && A(e, 'duplication of an anchor property'),
+ n = e.input.charCodeAt(++e.position),
+ t = e.position;
+ 0 !== n && !g(n) && !v(n);
+
+ )
+ n = e.input.charCodeAt(++e.position);
+ return (
+ e.position === t && A(e, 'name of an anchor node must contain at least one character'),
+ (e.anchor = e.input.slice(t, e.position)),
+ !0
+ );
+ }
+ function L(e, t, n, i, o) {
+ var a,
+ s,
+ u,
+ l,
+ p,
+ f,
+ h,
+ d,
+ x = 1,
+ j = !1,
+ S = !1;
+ if (
+ (null !== e.listener && e.listener('open', e),
+ (e.tag = null),
+ (e.anchor = null),
+ (e.kind = null),
+ (e.result = null),
+ (a = s = u = 4 === n || 3 === n),
+ i &&
+ F(e, !0, -1) &&
+ ((j = !0), e.lineIndent > t ? (x = 1) : e.lineIndent === t ? (x = 0) : e.lineIndent < t && (x = -1)),
+ 1 === x)
+ )
+ for (; B(e) || M(e); )
+ F(e, !0, -1)
+ ? ((j = !0),
+ (u = a),
+ e.lineIndent > t ? (x = 1) : e.lineIndent === t ? (x = 0) : e.lineIndent < t && (x = -1))
+ : (u = !1);
+ if (
+ (u && (u = j || o),
+ (1 !== x && 4 !== n) ||
+ ((h = 1 === n || 2 === n ? t : t + 1),
+ (d = e.position - e.lineStart),
+ 1 === x
+ ? (u &&
+ (R(e, d) ||
+ (function (e, t, n) {
+ var r,
+ i,
+ o,
+ a,
+ s,
+ c = e.tag,
+ u = e.anchor,
+ l = {},
+ p = {},
+ f = null,
+ h = null,
+ d = null,
+ m = !1,
+ v = !1;
+ for (
+ null !== e.anchor && (e.anchorMap[e.anchor] = l), s = e.input.charCodeAt(e.position);
+ 0 !== s;
+
+ ) {
+ if (
+ ((r = e.input.charCodeAt(e.position + 1)),
+ (o = e.line),
+ (a = e.position),
+ (63 !== s && 58 !== s) || !g(r))
+ ) {
+ if (!L(e, n, 2, !1, !0)) break;
+ if (e.line === o) {
+ for (s = e.input.charCodeAt(e.position); y(s); ) s = e.input.charCodeAt(++e.position);
+ if (58 === s)
+ g((s = e.input.charCodeAt(++e.position))) ||
+ A(
+ e,
+ 'a whitespace character is expected after the key-value separator within a block mapping'
+ ),
+ m && ($(e, l, p, f, h, null), (f = h = d = null)),
+ (v = !0),
+ (m = !1),
+ (i = !1),
+ (f = e.tag),
+ (h = e.result);
+ else {
+ if (!v) return (e.tag = c), (e.anchor = u), !0;
+ A(e, 'can not read an implicit mapping pair; a colon is missed');
+ }
+ } else {
+ if (!v) return (e.tag = c), (e.anchor = u), !0;
+ A(e, 'can not read a block mapping entry; a multiline key may not be an implicit key');
+ }
+ } else
+ 63 === s
+ ? (m && ($(e, l, p, f, h, null), (f = h = d = null)), (v = !0), (m = !0), (i = !0))
+ : m
+ ? ((m = !1), (i = !0))
+ : A(
+ e,
+ 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'
+ ),
+ (e.position += 1),
+ (s = r);
+ if (
+ ((e.line === o || e.lineIndent > t) &&
+ (L(e, t, 4, !0, i) && (m ? (h = e.result) : (d = e.result)),
+ m || ($(e, l, p, f, h, d, o, a), (f = h = d = null)),
+ F(e, !0, -1),
+ (s = e.input.charCodeAt(e.position))),
+ e.lineIndent > t && 0 !== s)
+ )
+ A(e, 'bad indentation of a mapping entry');
+ else if (e.lineIndent < t) break;
+ }
+ return (
+ m && $(e, l, p, f, h, null),
+ v && ((e.tag = c), (e.anchor = u), (e.kind = 'mapping'), (e.result = l)),
+ v
+ );
+ })(e, d, h))) ||
+ (function (e, t) {
+ var n,
+ r,
+ i,
+ o,
+ a,
+ s,
+ c,
+ u,
+ l,
+ p,
+ f = !0,
+ h = e.tag,
+ d = e.anchor,
+ m = {};
+ if (91 === (p = e.input.charCodeAt(e.position))) (i = 93), (s = !1), (r = []);
+ else {
+ if (123 !== p) return !1;
+ (i = 125), (s = !0), (r = {});
+ }
+ for (
+ null !== e.anchor && (e.anchorMap[e.anchor] = r), p = e.input.charCodeAt(++e.position);
+ 0 !== p;
+
+ ) {
+ if ((F(e, !0, t), (p = e.input.charCodeAt(e.position)) === i))
+ return (
+ e.position++,
+ (e.tag = h),
+ (e.anchor = d),
+ (e.kind = s ? 'mapping' : 'sequence'),
+ (e.result = r),
+ !0
+ );
+ f || A(e, 'missed comma between flow collection entries'),
+ (l = null),
+ (o = a = !1),
+ 63 === p && g(e.input.charCodeAt(e.position + 1)) && ((o = a = !0), e.position++, F(e, !0, t)),
+ (n = e.line),
+ L(e, t, 1, !1, !0),
+ (u = e.tag),
+ (c = e.result),
+ F(e, !0, t),
+ (p = e.input.charCodeAt(e.position)),
+ (!a && e.line !== n) ||
+ 58 !== p ||
+ ((o = !0),
+ (p = e.input.charCodeAt(++e.position)),
+ F(e, !0, t),
+ L(e, t, 1, !1, !0),
+ (l = e.result)),
+ s ? $(e, r, m, u, c, l) : o ? r.push($(e, null, m, u, c, l)) : r.push(c),
+ F(e, !0, t),
+ 44 === (p = e.input.charCodeAt(e.position))
+ ? ((f = !0), (p = e.input.charCodeAt(++e.position)))
+ : (f = !1);
+ }
+ A(e, 'unexpected end of the stream within a flow collection');
+ })(e, h)
+ ? (S = !0)
+ : ((s &&
+ (function (e, t) {
+ var n,
+ i,
+ o,
+ a,
+ s,
+ c = 1,
+ u = !1,
+ l = !1,
+ p = t,
+ f = 0,
+ h = !1;
+ if (124 === (a = e.input.charCodeAt(e.position))) i = !1;
+ else {
+ if (62 !== a) return !1;
+ i = !0;
+ }
+ for (e.kind = 'scalar', e.result = ''; 0 !== a; )
+ if (43 === (a = e.input.charCodeAt(++e.position)) || 45 === a)
+ 1 === c ? (c = 43 === a ? 3 : 2) : A(e, 'repeat of a chomping mode identifier');
+ else {
+ if (!((o = 48 <= (s = a) && s <= 57 ? s - 48 : -1) >= 0)) break;
+ 0 === o
+ ? A(e, 'bad explicit indentation width of a block scalar; it cannot be less than one')
+ : l
+ ? A(e, 'repeat of an indentation width identifier')
+ : ((p = t + o - 1), (l = !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 (
+ O(e), e.lineIndent = 0, a = e.input.charCodeAt(e.position);
+ (!l || e.lineIndent < p) && 32 === a;
+
+ )
+ e.lineIndent++, (a = e.input.charCodeAt(++e.position));
+ if ((!l && e.lineIndent > p && (p = e.lineIndent), m(a))) f++;
+ else {
+ if (e.lineIndent < p) {
+ 3 === c ? (e.result += r.repeat('\n', u ? 1 + f : f)) : 1 === c && u && (e.result += '\n');
+ break;
+ }
+ for (
+ i
+ ? y(a)
+ ? ((h = !0), (e.result += r.repeat('\n', u ? 1 + f : f)))
+ : h
+ ? ((h = !1), (e.result += r.repeat('\n', f + 1)))
+ : 0 === f
+ ? u && (e.result += ' ')
+ : (e.result += r.repeat('\n', f))
+ : (e.result += r.repeat('\n', u ? 1 + f : f)),
+ u = !0,
+ l = !0,
+ f = 0,
+ n = e.position;
+ !m(a) && 0 !== a;
+
+ )
+ a = e.input.charCodeAt(++e.position);
+ P(e, n, e.position, !1);
+ }
+ }
+ return !0;
+ })(e, h)) ||
+ (function (e, t) {
+ var n, r, i;
+ if (39 !== (n = e.input.charCodeAt(e.position))) return !1;
+ for (
+ e.kind = 'scalar', e.result = '', e.position++, r = i = e.position;
+ 0 !== (n = e.input.charCodeAt(e.position));
+
+ )
+ if (39 === n) {
+ if ((P(e, r, e.position, !0), 39 !== (n = e.input.charCodeAt(++e.position)))) return !0;
+ (r = e.position), e.position++, (i = e.position);
+ } else
+ m(n)
+ ? (P(e, r, i, !0), N(e, F(e, !1, t)), (r = i = e.position))
+ : e.position === e.lineStart && I(e)
+ ? A(e, 'unexpected end of the document within a single quoted scalar')
+ : (e.position++, (i = e.position));
+ A(e, 'unexpected end of the stream within a single quoted scalar');
+ })(e, h) ||
+ (function (e, t) {
+ var n, r, i, o, a, s, c;
+ if (34 !== (s = e.input.charCodeAt(e.position))) return !1;
+ for (
+ e.kind = 'scalar', e.result = '', e.position++, n = r = e.position;
+ 0 !== (s = e.input.charCodeAt(e.position));
+
+ ) {
+ if (34 === s) return P(e, n, e.position, !0), e.position++, !0;
+ if (92 === s) {
+ if ((P(e, n, e.position, !0), m((s = e.input.charCodeAt(++e.position))))) F(e, !1, t);
+ else if (s < 256 && E[s]) (e.result += _[s]), e.position++;
+ else if ((a = 120 === (c = s) ? 2 : 117 === c ? 4 : 85 === c ? 8 : 0) > 0) {
+ for (i = a, o = 0; i > 0; i--)
+ (a = b((s = e.input.charCodeAt(++e.position)))) >= 0
+ ? (o = (o << 4) + a)
+ : A(e, 'expected hexadecimal character');
+ (e.result += w(o)), e.position++;
+ } else A(e, 'unknown escape sequence');
+ n = r = e.position;
+ } else
+ m(s)
+ ? (P(e, n, r, !0), N(e, F(e, !1, t)), (n = r = e.position))
+ : e.position === e.lineStart && I(e)
+ ? A(e, 'unexpected end of the document within a double quoted scalar')
+ : (e.position++, (r = e.position));
+ }
+ A(e, 'unexpected end of the stream within a double quoted scalar');
+ })(e, h)
+ ? (S = !0)
+ : !(function (e) {
+ var t, n, r;
+ if (42 !== (r = e.input.charCodeAt(e.position))) return !1;
+ for (r = e.input.charCodeAt(++e.position), t = e.position; 0 !== r && !g(r) && !v(r); )
+ r = e.input.charCodeAt(++e.position);
+ return (
+ e.position === t && A(e, 'name of an alias node must contain at least one character'),
+ (n = e.input.slice(t, e.position)),
+ c.call(e.anchorMap, n) || A(e, 'unidentified alias "' + n + '"'),
+ (e.result = e.anchorMap[n]),
+ F(e, !0, -1),
+ !0
+ );
+ })(e)
+ ? (function (e, t, n) {
+ var r,
+ i,
+ o,
+ a,
+ s,
+ c,
+ u,
+ l,
+ p = e.kind,
+ f = e.result;
+ if (
+ g((l = e.input.charCodeAt(e.position))) ||
+ v(l) ||
+ 35 === l ||
+ 38 === l ||
+ 42 === l ||
+ 33 === l ||
+ 124 === l ||
+ 62 === l ||
+ 39 === l ||
+ 34 === l ||
+ 37 === l ||
+ 64 === l ||
+ 96 === l
+ )
+ return !1;
+ if ((63 === l || 45 === l) && (g((r = e.input.charCodeAt(e.position + 1))) || (n && v(r))))
+ return !1;
+ for (e.kind = 'scalar', e.result = '', i = o = e.position, a = !1; 0 !== l; ) {
+ if (58 === l) {
+ if (g((r = e.input.charCodeAt(e.position + 1))) || (n && v(r))) break;
+ } else if (35 === l) {
+ if (g(e.input.charCodeAt(e.position - 1))) break;
+ } else {
+ if ((e.position === e.lineStart && I(e)) || (n && v(l))) break;
+ if (m(l)) {
+ if (
+ ((s = e.line), (c = e.lineStart), (u = e.lineIndent), F(e, !1, -1), e.lineIndent >= t)
+ ) {
+ (a = !0), (l = e.input.charCodeAt(e.position));
+ continue;
+ }
+ (e.position = o), (e.line = s), (e.lineStart = c), (e.lineIndent = u);
+ break;
+ }
+ }
+ a && (P(e, i, o, !1), N(e, e.line - s), (i = o = e.position), (a = !1)),
+ y(l) || (o = e.position + 1),
+ (l = e.input.charCodeAt(++e.position));
+ }
+ return P(e, i, o, !1), !!e.result || ((e.kind = p), (e.result = f), !1);
+ })(e, h, 1 === n) && ((S = !0), null === e.tag && (e.tag = '?'))
+ : ((S = !0),
+ (null === e.tag && null === e.anchor) || A(e, 'alias node should not have any properties')),
+ null !== e.anchor && (e.anchorMap[e.anchor] = e.result))
+ : 0 === x && (S = u && R(e, d))),
+ null !== e.tag && '!' !== e.tag)
+ )
+ if ('?' === e.tag) {
+ for (
+ null !== e.result &&
+ 'scalar' !== e.kind &&
+ A(e, 'unacceptable node kind for !> tag; it should be "scalar", not "' + e.kind + '"'),
+ l = 0,
+ p = e.implicitTypes.length;
+ l < p;
+ l += 1
+ )
+ if ((f = e.implicitTypes[l]).resolve(e.result)) {
+ (e.result = f.construct(e.result)),
+ (e.tag = f.tag),
+ null !== e.anchor && (e.anchorMap[e.anchor] = e.result);
+ break;
+ }
+ } else
+ c.call(e.typeMap[e.kind || 'fallback'], e.tag)
+ ? ((f = e.typeMap[e.kind || 'fallback'][e.tag]),
+ null !== e.result &&
+ f.kind !== e.kind &&
+ A(
+ e,
+ 'unacceptable node kind for !<' +
+ e.tag +
+ '> tag; it should be "' +
+ f.kind +
+ '", not "' +
+ e.kind +
+ '"'
+ ),
+ f.resolve(e.result)
+ ? ((e.result = f.construct(e.result)), null !== e.anchor && (e.anchorMap[e.anchor] = e.result))
+ : A(e, 'cannot resolve a node with !<' + e.tag + '> explicit tag'))
+ : A(e, 'unknown tag !<' + e.tag + '>');
+ return null !== e.listener && e.listener('close', e), null !== e.tag || null !== e.anchor || S;
+ }
+ function z(e) {
+ var t,
+ n,
+ r,
+ i,
+ o = e.position,
+ a = !1;
+ for (
+ e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = {}, e.anchorMap = {};
+ 0 !== (i = e.input.charCodeAt(e.position)) &&
+ (F(e, !0, -1), (i = e.input.charCodeAt(e.position)), !(e.lineIndent > 0 || 37 !== i));
+
+ ) {
+ for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; 0 !== i && !g(i); )
+ i = e.input.charCodeAt(++e.position);
+ for (
+ r = [],
+ (n = e.input.slice(t, e.position)).length < 1 &&
+ A(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);
+ r.push(e.input.slice(t, e.position));
+ }
+ 0 !== i && O(e), c.call(C, n) ? C[n](e, n, r) : k(e, 'unknown document directive "' + n + '"');
+ }
+ F(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), F(e, !0, -1))
+ : a && A(e, 'directives end mark is expected'),
+ L(e, e.lineIndent - 1, 4, !1, !0),
+ F(e, !0, -1),
+ e.checkLineBreaks &&
+ l.test(e.input.slice(o, e.position)) &&
+ k(e, 'non-ASCII line breaks are interpreted as content'),
+ e.documents.push(e.result),
+ e.position === e.lineStart && I(e)
+ ? 46 === e.input.charCodeAt(e.position) && ((e.position += 3), F(e, !0, -1))
+ : e.position < e.length - 1 && A(e, 'end of the stream or a document separator is expected');
+ }
+ function U(e, t) {
+ (t = t || {}),
+ 0 !== (e = String(e)).length &&
+ (10 !== e.charCodeAt(e.length - 1) && 13 !== e.charCodeAt(e.length - 1) && (e += '\n'),
+ 65279 === e.charCodeAt(0) && (e = e.slice(1)));
+ var n = new S(e, t),
+ r = e.indexOf('\0');
+ for (
+ -1 !== r && ((n.position = r), A(n, 'null byte is not allowed in input')), n.input += '\0';
+ 32 === n.input.charCodeAt(n.position);
+
+ )
+ (n.lineIndent += 1), (n.position += 1);
+ for (; n.position < n.length - 1; ) z(n);
+ return n.documents;
+ }
+ function q(e, t, n) {
+ null !== t && 'object' == typeof t && void 0 === n && ((n = t), (t = null));
+ var r = U(e, n);
+ if ('function' != typeof t) return r;
+ for (var i = 0, o = r.length; i < o; i += 1) t(r[i]);
+ }
+ function H(e, t) {
+ var n = U(e, t);
+ if (0 !== n.length) {
+ if (1 === n.length) return n[0];
+ throw new i('expected a single document in the stream, but found more');
+ }
+ }
+ (e.exports.loadAll = q),
+ (e.exports.load = H),
+ (e.exports.safeLoadAll = function (e, t, n) {
+ return (
+ 'object' == typeof t && null !== t && void 0 === n && ((n = t), (t = null)),
+ q(e, t, r.extend({ schema: a }, n))
+ );
+ }),
+ (e.exports.safeLoad = function (e, t) {
+ return H(e, r.extend({ schema: a }, t));
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(23);
+ function i(e, t, n, r, i) {
+ (this.name = e), (this.buffer = t), (this.position = n), (this.line = r), (this.column = i);
+ }
+ (i.prototype.getSnippet = function (e, t) {
+ var n, i, o, a, s;
+ if (!this.buffer) return null;
+ for (
+ e = e || 4, t = t || 75, n = '', 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)) {
+ (n = ' ... '), (i += 5);
+ break;
+ }
+ for (
+ o = '', a = this.position;
+ a < this.buffer.length && -1 === '\0\r\n
\u2028\u2029'.indexOf(this.buffer.charAt(a));
+
+ )
+ if ((a += 1) - this.position > t / 2 - 1) {
+ (o = ' ... '), (a -= 5);
+ break;
+ }
+ return (
+ (s = this.buffer.slice(i, a)),
+ r.repeat(' ', e) + n + s + o + '\n' + r.repeat(' ', e + this.position - i + n.length) + '^'
+ );
+ }),
+ (i.prototype.toString = function (e) {
+ var t,
+ n = '';
+ return (
+ this.name && (n += 'in "' + this.name + '" '),
+ (n += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1)),
+ e || ((t = this.getSnippet()) && (n += ':\n' + t)),
+ n
+ );
+ }),
+ (e.exports = i);
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('tag:yaml.org,2002:str', {
+ kind: 'scalar',
+ construct: function (e) {
+ return null !== e ? e : '';
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('tag:yaml.org,2002:seq', {
+ kind: 'sequence',
+ construct: function (e) {
+ return null !== e ? e : [];
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('tag:yaml.org,2002:map', {
+ kind: 'mapping',
+ construct: function (e) {
+ return null !== e ? e : {};
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('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',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('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',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(23),
+ i = n(4);
+ function o(e) {
+ return 48 <= e && e <= 55;
+ }
+ function a(e) {
+ return 48 <= e && e <= 57;
+ }
+ e.exports = new i('tag:yaml.org,2002:int', {
+ kind: 'scalar',
+ resolve: function (e) {
+ if (null === e) return !1;
+ var t,
+ n,
+ r = e.length,
+ i = 0,
+ s = !1;
+ if (!r) return !1;
+ if ((('-' !== (t = e[i]) && '+' !== t) || (t = e[++i]), '0' === t)) {
+ if (i + 1 === r) return !0;
+ if ('b' === (t = e[++i])) {
+ for (i++; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if ('0' !== t && '1' !== t) return !1;
+ s = !0;
+ }
+ return s && '_' !== t;
+ }
+ if ('x' === t) {
+ for (i++; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if (!((48 <= (n = e.charCodeAt(i)) && n <= 57) || (65 <= n && n <= 70) || (97 <= n && n <= 102)))
+ return !1;
+ s = !0;
+ }
+ return s && '_' !== t;
+ }
+ for (; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if (!o(e.charCodeAt(i))) return !1;
+ s = !0;
+ }
+ return s && '_' !== t;
+ }
+ if ('_' === t) return !1;
+ for (; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if (':' === t) break;
+ if (!a(e.charCodeAt(i))) return !1;
+ s = !0;
+ }
+ return !(!s || '_' === t) && (':' !== t || /^(:[0-5]?[0-9])+$/.test(e.slice(i)));
+ },
+ construct: function (e) {
+ var t,
+ n,
+ r = e,
+ i = 1,
+ o = [];
+ return (
+ -1 !== r.indexOf('_') && (r = r.replace(/_/g, '')),
+ ('-' !== (t = r[0]) && '+' !== t) || ('-' === t && (i = -1), (t = (r = r.slice(1))[0])),
+ '0' === r
+ ? 0
+ : '0' === t
+ ? 'b' === r[1]
+ ? i * parseInt(r.slice(2), 2)
+ : 'x' === r[1]
+ ? i * parseInt(r, 16)
+ : i * parseInt(r, 8)
+ : -1 !== r.indexOf(':')
+ ? (r.split(':').forEach(function (e) {
+ o.unshift(parseInt(e, 10));
+ }),
+ (r = 0),
+ (n = 1),
+ o.forEach(function (e) {
+ (r += e * n), (n *= 60);
+ }),
+ i * r)
+ : i * parseInt(r, 10)
+ );
+ },
+ predicate: function (e) {
+ return '[object Number]' === Object.prototype.toString.call(e) && e % 1 == 0 && !r.isNegativeZero(e);
+ },
+ represent: {
+ binary: function (e) {
+ return e >= 0 ? '0b' + e.toString(2) : '-0b' + e.toString(2).slice(1);
+ },
+ octal: function (e) {
+ return e >= 0 ? '0' + e.toString(8) : '-0' + e.toString(8).slice(1);
+ },
+ decimal: function (e) {
+ return e.toString(10);
+ },
+ hexadecimal: function (e) {
+ return e >= 0 ? '0x' + e.toString(16).toUpperCase() : '-0x' + e.toString(16).toUpperCase().slice(1);
+ },
+ },
+ defaultStyle: 'decimal',
+ styleAliases: { binary: [2, 'bin'], octal: [8, 'oct'], decimal: [10, 'dec'], hexadecimal: [16, 'hex'] },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(23),
+ i = n(4),
+ o = 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))$'
+ );
+ var a = /^[-+]?[0-9]+e/;
+ e.exports = new i('tag:yaml.org,2002:float', {
+ kind: 'scalar',
+ resolve: function (e) {
+ return null !== e && !(!o.test(e) || '_' === e[e.length - 1]);
+ },
+ construct: function (e) {
+ var t, n, r, i;
+ return (
+ (n = '-' === (t = e.replace(/_/g, '').toLowerCase())[0] ? -1 : 1),
+ (i = []),
+ '+-'.indexOf(t[0]) >= 0 && (t = t.slice(1)),
+ '.inf' === t
+ ? 1 === n
+ ? Number.POSITIVE_INFINITY
+ : Number.NEGATIVE_INFINITY
+ : '.nan' === t
+ ? NaN
+ : t.indexOf(':') >= 0
+ ? (t.split(':').forEach(function (e) {
+ i.unshift(parseFloat(e, 10));
+ }),
+ (t = 0),
+ (r = 1),
+ i.forEach(function (e) {
+ (t += e * r), (r *= 60);
+ }),
+ n * t)
+ : n * parseFloat(t, 10)
+ );
+ },
+ predicate: function (e) {
+ return '[object Number]' === Object.prototype.toString.call(e) && (e % 1 != 0 || r.isNegativeZero(e));
+ },
+ represent: function (e, t) {
+ var n;
+ 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 (r.isNegativeZero(e)) return '-0.0';
+ return (n = e.toString(10)), a.test(n) ? n.replace('e', '.e') : n;
+ },
+ defaultStyle: 'lowercase',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4),
+ i = new RegExp('^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$'),
+ o = 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 r('tag:yaml.org,2002:timestamp', {
+ kind: 'scalar',
+ resolve: function (e) {
+ return null !== e && (null !== i.exec(e) || null !== o.exec(e));
+ },
+ construct: function (e) {
+ var t,
+ n,
+ r,
+ a,
+ s,
+ c,
+ u,
+ l,
+ p = 0,
+ f = null;
+ if ((null === (t = i.exec(e)) && (t = o.exec(e)), null === t)) throw new Error('Date resolve error');
+ if (((n = +t[1]), (r = +t[2] - 1), (a = +t[3]), !t[4])) return new Date(Date.UTC(n, r, a));
+ if (((s = +t[4]), (c = +t[5]), (u = +t[6]), t[7])) {
+ for (p = t[7].slice(0, 3); p.length < 3; ) p += '0';
+ p = +p;
+ }
+ return (
+ t[9] && ((f = 6e4 * (60 * +t[10] + +(t[11] || 0))), '-' === t[9] && (f = -f)),
+ (l = new Date(Date.UTC(n, r, a, s, c, u, p))),
+ f && l.setTime(l.getTime() - f),
+ l
+ );
+ },
+ instanceOf: Date,
+ represent: function (e) {
+ return e.toISOString();
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('tag:yaml.org,2002:merge', {
+ kind: 'scalar',
+ resolve: function (e) {
+ return '<<' === e || null === e;
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r;
+ try {
+ r = n(1).Buffer;
+ } catch (e) {}
+ var i = n(4),
+ o = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
+ e.exports = new i('tag:yaml.org,2002:binary', {
+ kind: 'scalar',
+ resolve: function (e) {
+ if (null === e) return !1;
+ var t,
+ n,
+ r = 0,
+ i = e.length,
+ a = o;
+ for (n = 0; n < i; n++)
+ if (!((t = a.indexOf(e.charAt(n))) > 64)) {
+ if (t < 0) return !1;
+ r += 6;
+ }
+ return r % 8 == 0;
+ },
+ construct: function (e) {
+ var t,
+ n,
+ i = e.replace(/[\r\n=]/g, ''),
+ a = i.length,
+ s = o,
+ c = 0,
+ u = [];
+ for (t = 0; t < a; t++)
+ t % 4 == 0 && t && (u.push((c >> 16) & 255), u.push((c >> 8) & 255), u.push(255 & c)),
+ (c = (c << 6) | s.indexOf(i.charAt(t)));
+ return (
+ 0 === (n = (a % 4) * 6)
+ ? (u.push((c >> 16) & 255), u.push((c >> 8) & 255), u.push(255 & c))
+ : 18 === n
+ ? (u.push((c >> 10) & 255), u.push((c >> 2) & 255))
+ : 12 === n && u.push((c >> 4) & 255),
+ r ? (r.from ? r.from(u) : new r(u)) : u
+ );
+ },
+ predicate: function (e) {
+ return r && r.isBuffer(e);
+ },
+ represent: function (e) {
+ var t,
+ n,
+ r = '',
+ i = 0,
+ a = e.length,
+ s = o;
+ for (t = 0; t < a; t++)
+ t % 3 == 0 &&
+ t &&
+ ((r += s[(i >> 18) & 63]), (r += s[(i >> 12) & 63]), (r += s[(i >> 6) & 63]), (r += s[63 & i])),
+ (i = (i << 8) + e[t]);
+ return (
+ 0 === (n = a % 3)
+ ? ((r += s[(i >> 18) & 63]), (r += s[(i >> 12) & 63]), (r += s[(i >> 6) & 63]), (r += s[63 & i]))
+ : 2 === n
+ ? ((r += s[(i >> 10) & 63]), (r += s[(i >> 4) & 63]), (r += s[(i << 2) & 63]), (r += s[64]))
+ : 1 === n && ((r += s[(i >> 2) & 63]), (r += s[(i << 4) & 63]), (r += s[64]), (r += s[64])),
+ r
+ );
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4),
+ i = Object.prototype.hasOwnProperty,
+ o = Object.prototype.toString;
+ e.exports = new r('tag:yaml.org,2002:omap', {
+ kind: 'sequence',
+ resolve: function (e) {
+ if (null === e) return !0;
+ var t,
+ n,
+ r,
+ a,
+ s,
+ c = [],
+ u = e;
+ for (t = 0, n = u.length; t < n; t += 1) {
+ if (((r = u[t]), (s = !1), '[object Object]' !== o.call(r))) return !1;
+ for (a in r)
+ if (i.call(r, a)) {
+ if (s) return !1;
+ s = !0;
+ }
+ if (!s) return !1;
+ if (-1 !== c.indexOf(a)) return !1;
+ c.push(a);
+ }
+ return !0;
+ },
+ construct: function (e) {
+ return null !== e ? e : [];
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4),
+ i = Object.prototype.toString;
+ e.exports = new r('tag:yaml.org,2002:pairs', {
+ kind: 'sequence',
+ resolve: function (e) {
+ if (null === e) return !0;
+ var t,
+ n,
+ r,
+ o,
+ a,
+ s = e;
+ for (a = new Array(s.length), t = 0, n = s.length; t < n; t += 1) {
+ if (((r = s[t]), '[object Object]' !== i.call(r))) return !1;
+ if (1 !== (o = Object.keys(r)).length) return !1;
+ a[t] = [o[0], r[o[0]]];
+ }
+ return !0;
+ },
+ construct: function (e) {
+ if (null === e) return [];
+ var t,
+ n,
+ r,
+ i,
+ o,
+ a = e;
+ for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
+ (r = a[t]), (i = Object.keys(r)), (o[t] = [i[0], r[i[0]]]);
+ return o;
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4),
+ i = Object.prototype.hasOwnProperty;
+ e.exports = new r('tag:yaml.org,2002:set', {
+ kind: 'mapping',
+ resolve: function (e) {
+ if (null === e) return !0;
+ var t,
+ n = e;
+ for (t in n) if (i.call(n, t) && null !== n[t]) return !1;
+ return !0;
+ },
+ construct: function (e) {
+ return null !== e ? e : {};
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('tag:yaml.org,2002:js/undefined', {
+ kind: 'scalar',
+ resolve: function () {
+ return !0;
+ },
+ construct: function () {},
+ predicate: function (e) {
+ return void 0 === e;
+ },
+ represent: function () {
+ return '';
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = new r('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,
+ n = /\/([gim]*)$/.exec(e),
+ r = '';
+ if ('/' === t[0]) {
+ if ((n && (r = n[1]), r.length > 3)) return !1;
+ if ('/' !== t[t.length - r.length - 1]) return !1;
+ }
+ return !0;
+ },
+ construct: function (e) {
+ var t = e,
+ n = /\/([gim]*)$/.exec(e),
+ r = '';
+ return '/' === t[0] && (n && (r = n[1]), (t = t.slice(1, t.length - r.length - 1))), new RegExp(t, r);
+ },
+ 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;
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r;
+ try {
+ r = n(236);
+ } catch (e) {
+ 'undefined' != typeof window && (r = window.esprima);
+ }
+ var i = n(4);
+ e.exports = new i('tag:yaml.org,2002:js/function', {
+ kind: 'scalar',
+ resolve: function (e) {
+ if (null === e) return !1;
+ try {
+ var t = '(' + e + ')',
+ n = r.parse(t, { range: !0 });
+ return (
+ 'Program' === n.type &&
+ 1 === n.body.length &&
+ 'ExpressionStatement' === n.body[0].type &&
+ ('ArrowFunctionExpression' === n.body[0].expression.type ||
+ 'FunctionExpression' === n.body[0].expression.type)
+ );
+ } catch (e) {
+ return !1;
+ }
+ },
+ construct: function (e) {
+ var t,
+ n = '(' + e + ')',
+ i = r.parse(n, { range: !0 }),
+ o = [];
+ if (
+ 'Program' !== i.type ||
+ 1 !== i.body.length ||
+ 'ExpressionStatement' !== i.body[0].type ||
+ ('ArrowFunctionExpression' !== i.body[0].expression.type &&
+ 'FunctionExpression' !== i.body[0].expression.type)
+ )
+ throw new Error('Failed to resolve function');
+ return (
+ i.body[0].expression.params.forEach(function (e) {
+ o.push(e.name);
+ }),
+ (t = i.body[0].expression.body.range),
+ 'BlockStatement' === i.body[0].expression.body.type
+ ? new Function(o, n.slice(t[0] + 1, t[1] - 1))
+ : new Function(o, 'return ' + n.slice(t[0], t[1]))
+ );
+ },
+ predicate: function (e) {
+ return '[object Function]' === Object.prototype.toString.call(e);
+ },
+ represent: function (e) {
+ return e.toString();
+ },
+ });
+ },
+ function (e, t, n) {
+ var r;
+ (r = function () {
+ return (function (e) {
+ var t = {};
+ function n(r) {
+ if (t[r]) return t[r].exports;
+ var i = (t[r] = { exports: {}, id: r, loaded: !1 });
+ return e[r].call(i.exports, i, i.exports, n), (i.loaded = !0), i.exports;
+ }
+ return (n.m = e), (n.c = t), (n.p = ''), n(0);
+ })([
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(1),
+ i = n(3),
+ o = n(8),
+ a = n(15);
+ function s(e, t, n) {
+ var a = null,
+ s = function (e, t) {
+ n && n(e, t), a && a.visit(e, t);
+ },
+ c = 'function' == typeof n ? s : null,
+ u = !1;
+ if (t) {
+ u = 'boolean' == typeof t.comment && t.comment;
+ var l = 'boolean' == typeof t.attachComment && t.attachComment;
+ (u || l) && (((a = new r.CommentHandler()).attach = l), (t.comment = !0), (c = s));
+ }
+ var p,
+ f = !1;
+ t && 'string' == typeof t.sourceType && (f = 'module' === t.sourceType),
+ (p = t && 'boolean' == typeof t.jsx && t.jsx ? new i.JSXParser(e, t, c) : new o.Parser(e, t, c));
+ var h = f ? p.parseModule() : p.parseScript();
+ return (
+ u && a && (h.comments = a.comments),
+ p.config.tokens && (h.tokens = p.tokens),
+ p.config.tolerant && (h.errors = p.errorHandler.errors),
+ h
+ );
+ }
+ (t.parse = s),
+ (t.parseModule = function (e, t, n) {
+ var r = t || {};
+ return (r.sourceType = 'module'), s(e, r, n);
+ }),
+ (t.parseScript = function (e, t, n) {
+ var r = t || {};
+ return (r.sourceType = 'script'), s(e, r, n);
+ }),
+ (t.tokenize = function (e, t, n) {
+ var r,
+ i = new a.Tokenizer(e, t);
+ r = [];
+ try {
+ for (;;) {
+ var o = i.getNextToken();
+ if (!o) break;
+ n && (o = n(o)), r.push(o);
+ }
+ } catch (e) {
+ i.errorHandler.tolerate(e);
+ }
+ return i.errorHandler.tolerant && (r.errors = i.errors()), r;
+ });
+ var c = n(2);
+ (t.Syntax = c.Syntax), (t.version = '4.0.1');
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(2),
+ i = (function () {
+ function e() {
+ (this.attach = !1),
+ (this.comments = []),
+ (this.stack = []),
+ (this.leading = []),
+ (this.trailing = []);
+ }
+ return (
+ (e.prototype.insertInnerComments = function (e, t) {
+ if (e.type === r.Syntax.BlockStatement && 0 === e.body.length) {
+ for (var n = [], i = this.leading.length - 1; i >= 0; --i) {
+ var o = this.leading[i];
+ t.end.offset >= o.start &&
+ (n.unshift(o.comment), this.leading.splice(i, 1), this.trailing.splice(i, 1));
+ }
+ n.length && (e.innerComments = n);
+ }
+ }),
+ (e.prototype.findTrailingComments = function (e) {
+ var t = [];
+ if (this.trailing.length > 0) {
+ for (var n = this.trailing.length - 1; n >= 0; --n) {
+ var r = this.trailing[n];
+ r.start >= e.end.offset && t.unshift(r.comment);
+ }
+ return (this.trailing.length = 0), t;
+ }
+ var i = this.stack[this.stack.length - 1];
+ if (i && i.node.trailingComments) {
+ var o = i.node.trailingComments[0];
+ o &&
+ o.range[0] >= e.end.offset &&
+ ((t = i.node.trailingComments), delete i.node.trailingComments);
+ }
+ return t;
+ }),
+ (e.prototype.findLeadingComments = function (e) {
+ for (
+ var t, n = [];
+ this.stack.length > 0 && (o = this.stack[this.stack.length - 1]) && o.start >= e.start.offset;
+
+ )
+ (t = o.node), this.stack.pop();
+ if (t) {
+ for (var r = (t.leadingComments ? t.leadingComments.length : 0) - 1; r >= 0; --r) {
+ var i = t.leadingComments[r];
+ i.range[1] <= e.start.offset && (n.unshift(i), t.leadingComments.splice(r, 1));
+ }
+ return t.leadingComments && 0 === t.leadingComments.length && delete t.leadingComments, n;
+ }
+ for (r = this.leading.length - 1; r >= 0; --r) {
+ var o;
+ (o = this.leading[r]).start <= e.start.offset &&
+ (n.unshift(o.comment), this.leading.splice(r, 1));
+ }
+ return n;
+ }),
+ (e.prototype.visitNode = function (e, t) {
+ if (!(e.type === r.Syntax.Program && e.body.length > 0)) {
+ this.insertInnerComments(e, t);
+ var n = this.findTrailingComments(t),
+ i = this.findLeadingComments(t);
+ i.length > 0 && (e.leadingComments = i),
+ n.length > 0 && (e.trailingComments = n),
+ this.stack.push({ node: e, start: t.start.offset });
+ }
+ }),
+ (e.prototype.visitComment = function (e, t) {
+ var n = 'L' === e.type[0] ? 'Line' : 'Block',
+ r = { type: n, value: e.value };
+ if (
+ (e.range && (r.range = e.range), e.loc && (r.loc = e.loc), this.comments.push(r), this.attach)
+ ) {
+ var i = {
+ comment: { type: n, value: e.value, range: [t.start.offset, t.end.offset] },
+ start: t.start.offset,
+ };
+ e.loc && (i.comment.loc = e.loc), (e.type = n), this.leading.push(i), this.trailing.push(i);
+ }
+ }),
+ (e.prototype.visit = function (e, t) {
+ 'LineComment' === e.type || 'BlockComment' === e.type
+ ? this.visitComment(e, t)
+ : this.attach && this.visitNode(e, t);
+ }),
+ e
+ );
+ })();
+ t.CommentHandler = i;
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 }),
+ (t.Syntax = {
+ AssignmentExpression: 'AssignmentExpression',
+ AssignmentPattern: 'AssignmentPattern',
+ ArrayExpression: 'ArrayExpression',
+ ArrayPattern: 'ArrayPattern',
+ ArrowFunctionExpression: 'ArrowFunctionExpression',
+ AwaitExpression: 'AwaitExpression',
+ BlockStatement: 'BlockStatement',
+ BinaryExpression: 'BinaryExpression',
+ BreakStatement: 'BreakStatement',
+ CallExpression: 'CallExpression',
+ CatchClause: 'CatchClause',
+ ClassBody: 'ClassBody',
+ ClassDeclaration: 'ClassDeclaration',
+ ClassExpression: 'ClassExpression',
+ ConditionalExpression: 'ConditionalExpression',
+ ContinueStatement: 'ContinueStatement',
+ DoWhileStatement: 'DoWhileStatement',
+ DebuggerStatement: 'DebuggerStatement',
+ EmptyStatement: 'EmptyStatement',
+ ExportAllDeclaration: 'ExportAllDeclaration',
+ ExportDefaultDeclaration: 'ExportDefaultDeclaration',
+ ExportNamedDeclaration: 'ExportNamedDeclaration',
+ ExportSpecifier: 'ExportSpecifier',
+ ExpressionStatement: 'ExpressionStatement',
+ ForStatement: 'ForStatement',
+ ForOfStatement: 'ForOfStatement',
+ ForInStatement: 'ForInStatement',
+ FunctionDeclaration: 'FunctionDeclaration',
+ FunctionExpression: 'FunctionExpression',
+ Identifier: 'Identifier',
+ IfStatement: 'IfStatement',
+ ImportDeclaration: 'ImportDeclaration',
+ ImportDefaultSpecifier: 'ImportDefaultSpecifier',
+ ImportNamespaceSpecifier: 'ImportNamespaceSpecifier',
+ ImportSpecifier: 'ImportSpecifier',
+ Literal: 'Literal',
+ LabeledStatement: 'LabeledStatement',
+ LogicalExpression: 'LogicalExpression',
+ MemberExpression: 'MemberExpression',
+ MetaProperty: 'MetaProperty',
+ MethodDefinition: 'MethodDefinition',
+ NewExpression: 'NewExpression',
+ ObjectExpression: 'ObjectExpression',
+ ObjectPattern: 'ObjectPattern',
+ Program: 'Program',
+ Property: 'Property',
+ RestElement: 'RestElement',
+ ReturnStatement: 'ReturnStatement',
+ SequenceExpression: 'SequenceExpression',
+ SpreadElement: 'SpreadElement',
+ Super: 'Super',
+ SwitchCase: 'SwitchCase',
+ SwitchStatement: 'SwitchStatement',
+ TaggedTemplateExpression: 'TaggedTemplateExpression',
+ TemplateElement: 'TemplateElement',
+ TemplateLiteral: 'TemplateLiteral',
+ ThisExpression: 'ThisExpression',
+ ThrowStatement: 'ThrowStatement',
+ TryStatement: 'TryStatement',
+ UnaryExpression: 'UnaryExpression',
+ UpdateExpression: 'UpdateExpression',
+ VariableDeclaration: 'VariableDeclaration',
+ VariableDeclarator: 'VariableDeclarator',
+ WhileStatement: 'WhileStatement',
+ WithStatement: 'WithStatement',
+ YieldExpression: 'YieldExpression',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r,
+ i =
+ (this && this.__extends) ||
+ ((r =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
+ }),
+ function (e, t) {
+ function n() {
+ this.constructor = e;
+ }
+ r(e, t), (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
+ });
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var o = n(4),
+ a = n(5),
+ s = n(6),
+ c = n(7),
+ u = n(8),
+ l = n(13),
+ p = n(14);
+ function f(e) {
+ var t;
+ switch (e.type) {
+ case s.JSXSyntax.JSXIdentifier:
+ t = e.name;
+ break;
+ case s.JSXSyntax.JSXNamespacedName:
+ var n = e;
+ t = f(n.namespace) + ':' + f(n.name);
+ break;
+ case s.JSXSyntax.JSXMemberExpression:
+ var r = e;
+ t = f(r.object) + '.' + f(r.property);
+ }
+ return t;
+ }
+ (l.TokenName[100] = 'JSXIdentifier'), (l.TokenName[101] = 'JSXText');
+ var h = (function (e) {
+ function t(t, n, r) {
+ return e.call(this, t, n, r) || this;
+ }
+ return (
+ i(t, e),
+ (t.prototype.parsePrimaryExpression = function () {
+ return this.match('<') ? this.parseJSXRoot() : e.prototype.parsePrimaryExpression.call(this);
+ }),
+ (t.prototype.startJSX = function () {
+ (this.scanner.index = this.startMarker.index),
+ (this.scanner.lineNumber = this.startMarker.line),
+ (this.scanner.lineStart = this.startMarker.index - this.startMarker.column);
+ }),
+ (t.prototype.finishJSX = function () {
+ this.nextToken();
+ }),
+ (t.prototype.reenterJSX = function () {
+ this.startJSX(), this.expectJSX('}'), this.config.tokens && this.tokens.pop();
+ }),
+ (t.prototype.createJSXNode = function () {
+ return (
+ this.collectComments(),
+ {
+ index: this.scanner.index,
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart,
+ }
+ );
+ }),
+ (t.prototype.createJSXChildNode = function () {
+ return {
+ index: this.scanner.index,
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart,
+ };
+ }),
+ (t.prototype.scanXHTMLEntity = function (e) {
+ for (var t = '&', n = !0, r = !1, i = !1, a = !1; !this.scanner.eof() && n && !r; ) {
+ var s = this.scanner.source[this.scanner.index];
+ if (s === e) break;
+ if (((r = ';' === s), (t += s), ++this.scanner.index, !r))
+ switch (t.length) {
+ case 2:
+ i = '#' === s;
+ break;
+ case 3:
+ i && ((n = (a = 'x' === s) || o.Character.isDecimalDigit(s.charCodeAt(0))), (i = i && !a));
+ break;
+ default:
+ n =
+ (n = n && !(i && !o.Character.isDecimalDigit(s.charCodeAt(0)))) &&
+ !(a && !o.Character.isHexDigit(s.charCodeAt(0)));
+ }
+ }
+ if (n && r && t.length > 2) {
+ var c = t.substr(1, t.length - 2);
+ i && c.length > 1
+ ? (t = String.fromCharCode(parseInt(c.substr(1), 10)))
+ : a && c.length > 2
+ ? (t = String.fromCharCode(parseInt('0' + c.substr(1), 16)))
+ : i || a || !p.XHTMLEntities[c] || (t = p.XHTMLEntities[c]);
+ }
+ return t;
+ }),
+ (t.prototype.lexJSX = function () {
+ var e = this.scanner.source.charCodeAt(this.scanner.index);
+ if (60 === e || 62 === e || 47 === e || 58 === e || 61 === e || 123 === e || 125 === e)
+ return {
+ type: 7,
+ value: (s = this.scanner.source[this.scanner.index++]),
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: this.scanner.index - 1,
+ end: this.scanner.index,
+ };
+ if (34 === e || 39 === e) {
+ for (
+ var t = this.scanner.index, n = this.scanner.source[this.scanner.index++], r = '';
+ !this.scanner.eof() && (c = this.scanner.source[this.scanner.index++]) !== n;
+
+ )
+ r += '&' === c ? this.scanXHTMLEntity(n) : c;
+ return {
+ type: 8,
+ value: r,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: t,
+ end: this.scanner.index,
+ };
+ }
+ if (46 === e) {
+ var i = this.scanner.source.charCodeAt(this.scanner.index + 1),
+ a = this.scanner.source.charCodeAt(this.scanner.index + 2),
+ s = 46 === i && 46 === a ? '...' : '.';
+ return (
+ (t = this.scanner.index),
+ (this.scanner.index += s.length),
+ {
+ type: 7,
+ value: s,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: t,
+ end: this.scanner.index,
+ }
+ );
+ }
+ if (96 === e)
+ return {
+ type: 10,
+ value: '',
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: this.scanner.index,
+ end: this.scanner.index,
+ };
+ if (o.Character.isIdentifierStart(e) && 92 !== e) {
+ for (t = this.scanner.index, ++this.scanner.index; !this.scanner.eof(); ) {
+ var c = this.scanner.source.charCodeAt(this.scanner.index);
+ if (o.Character.isIdentifierPart(c) && 92 !== c) ++this.scanner.index;
+ else {
+ if (45 !== c) break;
+ ++this.scanner.index;
+ }
+ }
+ return {
+ type: 100,
+ value: this.scanner.source.slice(t, this.scanner.index),
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: t,
+ end: this.scanner.index,
+ };
+ }
+ return this.scanner.lex();
+ }),
+ (t.prototype.nextJSXToken = function () {
+ this.collectComments(),
+ (this.startMarker.index = this.scanner.index),
+ (this.startMarker.line = this.scanner.lineNumber),
+ (this.startMarker.column = this.scanner.index - this.scanner.lineStart);
+ var e = this.lexJSX();
+ return (
+ (this.lastMarker.index = this.scanner.index),
+ (this.lastMarker.line = this.scanner.lineNumber),
+ (this.lastMarker.column = this.scanner.index - this.scanner.lineStart),
+ this.config.tokens && this.tokens.push(this.convertToken(e)),
+ e
+ );
+ }),
+ (t.prototype.nextJSXText = function () {
+ (this.startMarker.index = this.scanner.index),
+ (this.startMarker.line = this.scanner.lineNumber),
+ (this.startMarker.column = this.scanner.index - this.scanner.lineStart);
+ for (var e = this.scanner.index, t = ''; !this.scanner.eof(); ) {
+ var n = this.scanner.source[this.scanner.index];
+ if ('{' === n || '<' === n) break;
+ ++this.scanner.index,
+ (t += n),
+ o.Character.isLineTerminator(n.charCodeAt(0)) &&
+ (++this.scanner.lineNumber,
+ '\r' === n && '\n' === this.scanner.source[this.scanner.index] && ++this.scanner.index,
+ (this.scanner.lineStart = this.scanner.index));
+ }
+ (this.lastMarker.index = this.scanner.index),
+ (this.lastMarker.line = this.scanner.lineNumber),
+ (this.lastMarker.column = this.scanner.index - this.scanner.lineStart);
+ var r = {
+ type: 101,
+ value: t,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: e,
+ end: this.scanner.index,
+ };
+ return t.length > 0 && this.config.tokens && this.tokens.push(this.convertToken(r)), r;
+ }),
+ (t.prototype.peekJSXToken = function () {
+ var e = this.scanner.saveState();
+ this.scanner.scanComments();
+ var t = this.lexJSX();
+ return this.scanner.restoreState(e), t;
+ }),
+ (t.prototype.expectJSX = function (e) {
+ var t = this.nextJSXToken();
+ (7 === t.type && t.value === e) || this.throwUnexpectedToken(t);
+ }),
+ (t.prototype.matchJSX = function (e) {
+ var t = this.peekJSXToken();
+ return 7 === t.type && t.value === e;
+ }),
+ (t.prototype.parseJSXIdentifier = function () {
+ var e = this.createJSXNode(),
+ t = this.nextJSXToken();
+ return 100 !== t.type && this.throwUnexpectedToken(t), this.finalize(e, new a.JSXIdentifier(t.value));
+ }),
+ (t.prototype.parseJSXElementName = function () {
+ var e = this.createJSXNode(),
+ t = this.parseJSXIdentifier();
+ if (this.matchJSX(':')) {
+ var n = t;
+ this.expectJSX(':');
+ var r = this.parseJSXIdentifier();
+ t = this.finalize(e, new a.JSXNamespacedName(n, r));
+ } else if (this.matchJSX('.'))
+ for (; this.matchJSX('.'); ) {
+ var i = t;
+ this.expectJSX('.');
+ var o = this.parseJSXIdentifier();
+ t = this.finalize(e, new a.JSXMemberExpression(i, o));
+ }
+ return t;
+ }),
+ (t.prototype.parseJSXAttributeName = function () {
+ var e,
+ t = this.createJSXNode(),
+ n = this.parseJSXIdentifier();
+ if (this.matchJSX(':')) {
+ var r = n;
+ this.expectJSX(':');
+ var i = this.parseJSXIdentifier();
+ e = this.finalize(t, new a.JSXNamespacedName(r, i));
+ } else e = n;
+ return e;
+ }),
+ (t.prototype.parseJSXStringLiteralAttribute = function () {
+ var e = this.createJSXNode(),
+ t = this.nextJSXToken();
+ 8 !== t.type && this.throwUnexpectedToken(t);
+ var n = this.getTokenRaw(t);
+ return this.finalize(e, new c.Literal(t.value, n));
+ }),
+ (t.prototype.parseJSXExpressionAttribute = function () {
+ var e = this.createJSXNode();
+ this.expectJSX('{'),
+ this.finishJSX(),
+ this.match('}') &&
+ this.tolerateError('JSX attributes must only be assigned a non-empty expression');
+ var t = this.parseAssignmentExpression();
+ return this.reenterJSX(), this.finalize(e, new a.JSXExpressionContainer(t));
+ }),
+ (t.prototype.parseJSXAttributeValue = function () {
+ return this.matchJSX('{')
+ ? this.parseJSXExpressionAttribute()
+ : this.matchJSX('<')
+ ? this.parseJSXElement()
+ : this.parseJSXStringLiteralAttribute();
+ }),
+ (t.prototype.parseJSXNameValueAttribute = function () {
+ var e = this.createJSXNode(),
+ t = this.parseJSXAttributeName(),
+ n = null;
+ return (
+ this.matchJSX('=') && (this.expectJSX('='), (n = this.parseJSXAttributeValue())),
+ this.finalize(e, new a.JSXAttribute(t, n))
+ );
+ }),
+ (t.prototype.parseJSXSpreadAttribute = function () {
+ var e = this.createJSXNode();
+ this.expectJSX('{'), this.expectJSX('...'), this.finishJSX();
+ var t = this.parseAssignmentExpression();
+ return this.reenterJSX(), this.finalize(e, new a.JSXSpreadAttribute(t));
+ }),
+ (t.prototype.parseJSXAttributes = function () {
+ for (var e = []; !this.matchJSX('/') && !this.matchJSX('>'); ) {
+ var t = this.matchJSX('{') ? this.parseJSXSpreadAttribute() : this.parseJSXNameValueAttribute();
+ e.push(t);
+ }
+ return e;
+ }),
+ (t.prototype.parseJSXOpeningElement = function () {
+ var e = this.createJSXNode();
+ this.expectJSX('<');
+ var t = this.parseJSXElementName(),
+ n = this.parseJSXAttributes(),
+ r = this.matchJSX('/');
+ return (
+ r && this.expectJSX('/'), this.expectJSX('>'), this.finalize(e, new a.JSXOpeningElement(t, r, n))
+ );
+ }),
+ (t.prototype.parseJSXBoundaryElement = function () {
+ var e = this.createJSXNode();
+ if ((this.expectJSX('<'), this.matchJSX('/'))) {
+ this.expectJSX('/');
+ var t = this.parseJSXElementName();
+ return this.expectJSX('>'), this.finalize(e, new a.JSXClosingElement(t));
+ }
+ var n = this.parseJSXElementName(),
+ r = this.parseJSXAttributes(),
+ i = this.matchJSX('/');
+ return (
+ i && this.expectJSX('/'), this.expectJSX('>'), this.finalize(e, new a.JSXOpeningElement(n, i, r))
+ );
+ }),
+ (t.prototype.parseJSXEmptyExpression = function () {
+ var e = this.createJSXChildNode();
+ return (
+ this.collectComments(),
+ (this.lastMarker.index = this.scanner.index),
+ (this.lastMarker.line = this.scanner.lineNumber),
+ (this.lastMarker.column = this.scanner.index - this.scanner.lineStart),
+ this.finalize(e, new a.JSXEmptyExpression())
+ );
+ }),
+ (t.prototype.parseJSXExpressionContainer = function () {
+ var e,
+ t = this.createJSXNode();
+ return (
+ this.expectJSX('{'),
+ this.matchJSX('}')
+ ? ((e = this.parseJSXEmptyExpression()), this.expectJSX('}'))
+ : (this.finishJSX(), (e = this.parseAssignmentExpression()), this.reenterJSX()),
+ this.finalize(t, new a.JSXExpressionContainer(e))
+ );
+ }),
+ (t.prototype.parseJSXChildren = function () {
+ for (var e = []; !this.scanner.eof(); ) {
+ var t = this.createJSXChildNode(),
+ n = this.nextJSXText();
+ if (n.start < n.end) {
+ var r = this.getTokenRaw(n),
+ i = this.finalize(t, new a.JSXText(n.value, r));
+ e.push(i);
+ }
+ if ('{' !== this.scanner.source[this.scanner.index]) break;
+ var o = this.parseJSXExpressionContainer();
+ e.push(o);
+ }
+ return e;
+ }),
+ (t.prototype.parseComplexJSXElement = function (e) {
+ for (var t = []; !this.scanner.eof(); ) {
+ e.children = e.children.concat(this.parseJSXChildren());
+ var n = this.createJSXChildNode(),
+ r = this.parseJSXBoundaryElement();
+ if (r.type === s.JSXSyntax.JSXOpeningElement) {
+ var i = r;
+ if (i.selfClosing) {
+ var o = this.finalize(n, new a.JSXElement(i, [], null));
+ e.children.push(o);
+ } else t.push(e), (e = { node: n, opening: i, closing: null, children: [] });
+ }
+ if (r.type === s.JSXSyntax.JSXClosingElement) {
+ e.closing = r;
+ var c = f(e.opening.name);
+ if (
+ (c !== f(e.closing.name) &&
+ this.tolerateError('Expected corresponding JSX closing tag for %0', c),
+ !(t.length > 0))
+ )
+ break;
+ (o = this.finalize(e.node, new a.JSXElement(e.opening, e.children, e.closing))),
+ (e = t[t.length - 1]).children.push(o),
+ t.pop();
+ }
+ }
+ return e;
+ }),
+ (t.prototype.parseJSXElement = function () {
+ var e = this.createJSXNode(),
+ t = this.parseJSXOpeningElement(),
+ n = [],
+ r = null;
+ if (!t.selfClosing) {
+ var i = this.parseComplexJSXElement({ node: e, opening: t, closing: r, children: n });
+ (n = i.children), (r = i.closing);
+ }
+ return this.finalize(e, new a.JSXElement(t, n, r));
+ }),
+ (t.prototype.parseJSXRoot = function () {
+ this.config.tokens && this.tokens.pop(), this.startJSX();
+ var e = this.parseJSXElement();
+ return this.finishJSX(), e;
+ }),
+ (t.prototype.isStartOfExpression = function () {
+ return e.prototype.isStartOfExpression.call(this) || this.match('<');
+ }),
+ t
+ );
+ })(u.Parser);
+ t.JSXParser = h;
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var n = {
+ NonAsciiIdentifierStart:
+ /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
+ NonAsciiIdentifierPart:
+ /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,
+ };
+ t.Character = {
+ fromCodePoint: function (e) {
+ return e < 65536
+ ? String.fromCharCode(e)
+ : String.fromCharCode(55296 + ((e - 65536) >> 10)) +
+ String.fromCharCode(56320 + ((e - 65536) & 1023));
+ },
+ isWhiteSpace: function (e) {
+ return (
+ 32 === e ||
+ 9 === e ||
+ 11 === e ||
+ 12 === e ||
+ 160 === e ||
+ (e >= 5760 &&
+ [
+ 5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279,
+ ].indexOf(e) >= 0)
+ );
+ },
+ isLineTerminator: function (e) {
+ return 10 === e || 13 === e || 8232 === e || 8233 === e;
+ },
+ isIdentifierStart: function (e) {
+ return (
+ 36 === e ||
+ 95 === e ||
+ (e >= 65 && e <= 90) ||
+ (e >= 97 && e <= 122) ||
+ 92 === e ||
+ (e >= 128 && n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e)))
+ );
+ },
+ isIdentifierPart: function (e) {
+ return (
+ 36 === e ||
+ 95 === e ||
+ (e >= 65 && e <= 90) ||
+ (e >= 97 && e <= 122) ||
+ (e >= 48 && e <= 57) ||
+ 92 === e ||
+ (e >= 128 && n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e)))
+ );
+ },
+ isDecimalDigit: function (e) {
+ return e >= 48 && e <= 57;
+ },
+ isHexDigit: function (e) {
+ return (e >= 48 && e <= 57) || (e >= 65 && e <= 70) || (e >= 97 && e <= 102);
+ },
+ isOctalDigit: function (e) {
+ return e >= 48 && e <= 55;
+ },
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(6),
+ i = function (e) {
+ (this.type = r.JSXSyntax.JSXClosingElement), (this.name = e);
+ };
+ t.JSXClosingElement = i;
+ var o = function (e, t, n) {
+ (this.type = r.JSXSyntax.JSXElement),
+ (this.openingElement = e),
+ (this.children = t),
+ (this.closingElement = n);
+ };
+ t.JSXElement = o;
+ var a = function () {
+ this.type = r.JSXSyntax.JSXEmptyExpression;
+ };
+ t.JSXEmptyExpression = a;
+ var s = function (e) {
+ (this.type = r.JSXSyntax.JSXExpressionContainer), (this.expression = e);
+ };
+ t.JSXExpressionContainer = s;
+ var c = function (e) {
+ (this.type = r.JSXSyntax.JSXIdentifier), (this.name = e);
+ };
+ t.JSXIdentifier = c;
+ var u = function (e, t) {
+ (this.type = r.JSXSyntax.JSXMemberExpression), (this.object = e), (this.property = t);
+ };
+ t.JSXMemberExpression = u;
+ var l = function (e, t) {
+ (this.type = r.JSXSyntax.JSXAttribute), (this.name = e), (this.value = t);
+ };
+ t.JSXAttribute = l;
+ var p = function (e, t) {
+ (this.type = r.JSXSyntax.JSXNamespacedName), (this.namespace = e), (this.name = t);
+ };
+ t.JSXNamespacedName = p;
+ var f = function (e, t, n) {
+ (this.type = r.JSXSyntax.JSXOpeningElement),
+ (this.name = e),
+ (this.selfClosing = t),
+ (this.attributes = n);
+ };
+ t.JSXOpeningElement = f;
+ var h = function (e) {
+ (this.type = r.JSXSyntax.JSXSpreadAttribute), (this.argument = e);
+ };
+ t.JSXSpreadAttribute = h;
+ var d = function (e, t) {
+ (this.type = r.JSXSyntax.JSXText), (this.value = e), (this.raw = t);
+ };
+ t.JSXText = d;
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 }),
+ (t.JSXSyntax = {
+ JSXAttribute: 'JSXAttribute',
+ JSXClosingElement: 'JSXClosingElement',
+ JSXElement: 'JSXElement',
+ JSXEmptyExpression: 'JSXEmptyExpression',
+ JSXExpressionContainer: 'JSXExpressionContainer',
+ JSXIdentifier: 'JSXIdentifier',
+ JSXMemberExpression: 'JSXMemberExpression',
+ JSXNamespacedName: 'JSXNamespacedName',
+ JSXOpeningElement: 'JSXOpeningElement',
+ JSXSpreadAttribute: 'JSXSpreadAttribute',
+ JSXText: 'JSXText',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(2),
+ i = function (e) {
+ (this.type = r.Syntax.ArrayExpression), (this.elements = e);
+ };
+ t.ArrayExpression = i;
+ var o = function (e) {
+ (this.type = r.Syntax.ArrayPattern), (this.elements = e);
+ };
+ t.ArrayPattern = o;
+ var a = function (e, t, n) {
+ (this.type = r.Syntax.ArrowFunctionExpression),
+ (this.id = null),
+ (this.params = e),
+ (this.body = t),
+ (this.generator = !1),
+ (this.expression = n),
+ (this.async = !1);
+ };
+ t.ArrowFunctionExpression = a;
+ var s = function (e, t, n) {
+ (this.type = r.Syntax.AssignmentExpression), (this.operator = e), (this.left = t), (this.right = n);
+ };
+ t.AssignmentExpression = s;
+ var c = function (e, t) {
+ (this.type = r.Syntax.AssignmentPattern), (this.left = e), (this.right = t);
+ };
+ t.AssignmentPattern = c;
+ var u = function (e, t, n) {
+ (this.type = r.Syntax.ArrowFunctionExpression),
+ (this.id = null),
+ (this.params = e),
+ (this.body = t),
+ (this.generator = !1),
+ (this.expression = n),
+ (this.async = !0);
+ };
+ t.AsyncArrowFunctionExpression = u;
+ var l = function (e, t, n) {
+ (this.type = r.Syntax.FunctionDeclaration),
+ (this.id = e),
+ (this.params = t),
+ (this.body = n),
+ (this.generator = !1),
+ (this.expression = !1),
+ (this.async = !0);
+ };
+ t.AsyncFunctionDeclaration = l;
+ var p = function (e, t, n) {
+ (this.type = r.Syntax.FunctionExpression),
+ (this.id = e),
+ (this.params = t),
+ (this.body = n),
+ (this.generator = !1),
+ (this.expression = !1),
+ (this.async = !0);
+ };
+ t.AsyncFunctionExpression = p;
+ var f = function (e) {
+ (this.type = r.Syntax.AwaitExpression), (this.argument = e);
+ };
+ t.AwaitExpression = f;
+ var h = function (e, t, n) {
+ var i = '||' === e || '&&' === e;
+ (this.type = i ? r.Syntax.LogicalExpression : r.Syntax.BinaryExpression),
+ (this.operator = e),
+ (this.left = t),
+ (this.right = n);
+ };
+ t.BinaryExpression = h;
+ var d = function (e) {
+ (this.type = r.Syntax.BlockStatement), (this.body = e);
+ };
+ t.BlockStatement = d;
+ var m = function (e) {
+ (this.type = r.Syntax.BreakStatement), (this.label = e);
+ };
+ t.BreakStatement = m;
+ var y = function (e, t) {
+ (this.type = r.Syntax.CallExpression), (this.callee = e), (this.arguments = t);
+ };
+ t.CallExpression = y;
+ var g = function (e, t) {
+ (this.type = r.Syntax.CatchClause), (this.param = e), (this.body = t);
+ };
+ t.CatchClause = g;
+ var v = function (e) {
+ (this.type = r.Syntax.ClassBody), (this.body = e);
+ };
+ t.ClassBody = v;
+ var b = function (e, t, n) {
+ (this.type = r.Syntax.ClassDeclaration), (this.id = e), (this.superClass = t), (this.body = n);
+ };
+ t.ClassDeclaration = b;
+ var x = function (e, t, n) {
+ (this.type = r.Syntax.ClassExpression), (this.id = e), (this.superClass = t), (this.body = n);
+ };
+ t.ClassExpression = x;
+ var w = function (e, t) {
+ (this.type = r.Syntax.MemberExpression), (this.computed = !0), (this.object = e), (this.property = t);
+ };
+ t.ComputedMemberExpression = w;
+ var E = function (e, t, n) {
+ (this.type = r.Syntax.ConditionalExpression),
+ (this.test = e),
+ (this.consequent = t),
+ (this.alternate = n);
+ };
+ t.ConditionalExpression = E;
+ var _ = function (e) {
+ (this.type = r.Syntax.ContinueStatement), (this.label = e);
+ };
+ t.ContinueStatement = _;
+ var j = function () {
+ this.type = r.Syntax.DebuggerStatement;
+ };
+ t.DebuggerStatement = j;
+ var S = function (e, t) {
+ (this.type = r.Syntax.ExpressionStatement), (this.expression = e), (this.directive = t);
+ };
+ t.Directive = S;
+ var D = function (e, t) {
+ (this.type = r.Syntax.DoWhileStatement), (this.body = e), (this.test = t);
+ };
+ t.DoWhileStatement = D;
+ var A = function () {
+ this.type = r.Syntax.EmptyStatement;
+ };
+ t.EmptyStatement = A;
+ var k = function (e) {
+ (this.type = r.Syntax.ExportAllDeclaration), (this.source = e);
+ };
+ t.ExportAllDeclaration = k;
+ var C = function (e) {
+ (this.type = r.Syntax.ExportDefaultDeclaration), (this.declaration = e);
+ };
+ t.ExportDefaultDeclaration = C;
+ var P = function (e, t, n) {
+ (this.type = r.Syntax.ExportNamedDeclaration),
+ (this.declaration = e),
+ (this.specifiers = t),
+ (this.source = n);
+ };
+ t.ExportNamedDeclaration = P;
+ var T = function (e, t) {
+ (this.type = r.Syntax.ExportSpecifier), (this.exported = t), (this.local = e);
+ };
+ t.ExportSpecifier = T;
+ var $ = function (e) {
+ (this.type = r.Syntax.ExpressionStatement), (this.expression = e);
+ };
+ t.ExpressionStatement = $;
+ var O = function (e, t, n) {
+ (this.type = r.Syntax.ForInStatement),
+ (this.left = e),
+ (this.right = t),
+ (this.body = n),
+ (this.each = !1);
+ };
+ t.ForInStatement = O;
+ var F = function (e, t, n) {
+ (this.type = r.Syntax.ForOfStatement), (this.left = e), (this.right = t), (this.body = n);
+ };
+ t.ForOfStatement = F;
+ var I = function (e, t, n, i) {
+ (this.type = r.Syntax.ForStatement), (this.init = e), (this.test = t), (this.update = n), (this.body = i);
+ };
+ t.ForStatement = I;
+ var N = function (e, t, n, i) {
+ (this.type = r.Syntax.FunctionDeclaration),
+ (this.id = e),
+ (this.params = t),
+ (this.body = n),
+ (this.generator = i),
+ (this.expression = !1),
+ (this.async = !1);
+ };
+ t.FunctionDeclaration = N;
+ var R = function (e, t, n, i) {
+ (this.type = r.Syntax.FunctionExpression),
+ (this.id = e),
+ (this.params = t),
+ (this.body = n),
+ (this.generator = i),
+ (this.expression = !1),
+ (this.async = !1);
+ };
+ t.FunctionExpression = R;
+ var B = function (e) {
+ (this.type = r.Syntax.Identifier), (this.name = e);
+ };
+ t.Identifier = B;
+ var M = function (e, t, n) {
+ (this.type = r.Syntax.IfStatement), (this.test = e), (this.consequent = t), (this.alternate = n);
+ };
+ t.IfStatement = M;
+ var L = function (e, t) {
+ (this.type = r.Syntax.ImportDeclaration), (this.specifiers = e), (this.source = t);
+ };
+ t.ImportDeclaration = L;
+ var z = function (e) {
+ (this.type = r.Syntax.ImportDefaultSpecifier), (this.local = e);
+ };
+ t.ImportDefaultSpecifier = z;
+ var U = function (e) {
+ (this.type = r.Syntax.ImportNamespaceSpecifier), (this.local = e);
+ };
+ t.ImportNamespaceSpecifier = U;
+ var q = function (e, t) {
+ (this.type = r.Syntax.ImportSpecifier), (this.local = e), (this.imported = t);
+ };
+ t.ImportSpecifier = q;
+ var H = function (e, t) {
+ (this.type = r.Syntax.LabeledStatement), (this.label = e), (this.body = t);
+ };
+ t.LabeledStatement = H;
+ var V = function (e, t) {
+ (this.type = r.Syntax.Literal), (this.value = e), (this.raw = t);
+ };
+ t.Literal = V;
+ var J = function (e, t) {
+ (this.type = r.Syntax.MetaProperty), (this.meta = e), (this.property = t);
+ };
+ t.MetaProperty = J;
+ var K = function (e, t, n, i, o) {
+ (this.type = r.Syntax.MethodDefinition),
+ (this.key = e),
+ (this.computed = t),
+ (this.value = n),
+ (this.kind = i),
+ (this.static = o);
+ };
+ t.MethodDefinition = K;
+ var W = function (e) {
+ (this.type = r.Syntax.Program), (this.body = e), (this.sourceType = 'module');
+ };
+ t.Module = W;
+ var X = function (e, t) {
+ (this.type = r.Syntax.NewExpression), (this.callee = e), (this.arguments = t);
+ };
+ t.NewExpression = X;
+ var G = function (e) {
+ (this.type = r.Syntax.ObjectExpression), (this.properties = e);
+ };
+ t.ObjectExpression = G;
+ var Y = function (e) {
+ (this.type = r.Syntax.ObjectPattern), (this.properties = e);
+ };
+ t.ObjectPattern = Y;
+ var Z = function (e, t, n, i, o, a) {
+ (this.type = r.Syntax.Property),
+ (this.key = t),
+ (this.computed = n),
+ (this.value = i),
+ (this.kind = e),
+ (this.method = o),
+ (this.shorthand = a);
+ };
+ t.Property = Z;
+ var Q = function (e, t, n, i) {
+ (this.type = r.Syntax.Literal), (this.value = e), (this.raw = t), (this.regex = { pattern: n, flags: i });
+ };
+ t.RegexLiteral = Q;
+ var ee = function (e) {
+ (this.type = r.Syntax.RestElement), (this.argument = e);
+ };
+ t.RestElement = ee;
+ var te = function (e) {
+ (this.type = r.Syntax.ReturnStatement), (this.argument = e);
+ };
+ t.ReturnStatement = te;
+ var ne = function (e) {
+ (this.type = r.Syntax.Program), (this.body = e), (this.sourceType = 'script');
+ };
+ t.Script = ne;
+ var re = function (e) {
+ (this.type = r.Syntax.SequenceExpression), (this.expressions = e);
+ };
+ t.SequenceExpression = re;
+ var ie = function (e) {
+ (this.type = r.Syntax.SpreadElement), (this.argument = e);
+ };
+ t.SpreadElement = ie;
+ var oe = function (e, t) {
+ (this.type = r.Syntax.MemberExpression), (this.computed = !1), (this.object = e), (this.property = t);
+ };
+ t.StaticMemberExpression = oe;
+ var ae = function () {
+ this.type = r.Syntax.Super;
+ };
+ t.Super = ae;
+ var se = function (e, t) {
+ (this.type = r.Syntax.SwitchCase), (this.test = e), (this.consequent = t);
+ };
+ t.SwitchCase = se;
+ var ce = function (e, t) {
+ (this.type = r.Syntax.SwitchStatement), (this.discriminant = e), (this.cases = t);
+ };
+ t.SwitchStatement = ce;
+ var ue = function (e, t) {
+ (this.type = r.Syntax.TaggedTemplateExpression), (this.tag = e), (this.quasi = t);
+ };
+ t.TaggedTemplateExpression = ue;
+ var le = function (e, t) {
+ (this.type = r.Syntax.TemplateElement), (this.value = e), (this.tail = t);
+ };
+ t.TemplateElement = le;
+ var pe = function (e, t) {
+ (this.type = r.Syntax.TemplateLiteral), (this.quasis = e), (this.expressions = t);
+ };
+ t.TemplateLiteral = pe;
+ var fe = function () {
+ this.type = r.Syntax.ThisExpression;
+ };
+ t.ThisExpression = fe;
+ var he = function (e) {
+ (this.type = r.Syntax.ThrowStatement), (this.argument = e);
+ };
+ t.ThrowStatement = he;
+ var de = function (e, t, n) {
+ (this.type = r.Syntax.TryStatement), (this.block = e), (this.handler = t), (this.finalizer = n);
+ };
+ t.TryStatement = de;
+ var me = function (e, t) {
+ (this.type = r.Syntax.UnaryExpression), (this.operator = e), (this.argument = t), (this.prefix = !0);
+ };
+ t.UnaryExpression = me;
+ var ye = function (e, t, n) {
+ (this.type = r.Syntax.UpdateExpression), (this.operator = e), (this.argument = t), (this.prefix = n);
+ };
+ t.UpdateExpression = ye;
+ var ge = function (e, t) {
+ (this.type = r.Syntax.VariableDeclaration), (this.declarations = e), (this.kind = t);
+ };
+ t.VariableDeclaration = ge;
+ var ve = function (e, t) {
+ (this.type = r.Syntax.VariableDeclarator), (this.id = e), (this.init = t);
+ };
+ t.VariableDeclarator = ve;
+ var be = function (e, t) {
+ (this.type = r.Syntax.WhileStatement), (this.test = e), (this.body = t);
+ };
+ t.WhileStatement = be;
+ var xe = function (e, t) {
+ (this.type = r.Syntax.WithStatement), (this.object = e), (this.body = t);
+ };
+ t.WithStatement = xe;
+ var we = function (e, t) {
+ (this.type = r.Syntax.YieldExpression), (this.argument = e), (this.delegate = t);
+ };
+ t.YieldExpression = we;
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(9),
+ i = n(10),
+ o = n(11),
+ a = n(7),
+ s = n(12),
+ c = n(2),
+ u = n(13),
+ l = (function () {
+ function e(e, t, n) {
+ void 0 === t && (t = {}),
+ (this.config = {
+ range: 'boolean' == typeof t.range && t.range,
+ loc: 'boolean' == typeof t.loc && t.loc,
+ source: null,
+ tokens: 'boolean' == typeof t.tokens && t.tokens,
+ comment: 'boolean' == typeof t.comment && t.comment,
+ tolerant: 'boolean' == typeof t.tolerant && t.tolerant,
+ }),
+ this.config.loc && t.source && null !== t.source && (this.config.source = String(t.source)),
+ (this.delegate = n),
+ (this.errorHandler = new i.ErrorHandler()),
+ (this.errorHandler.tolerant = this.config.tolerant),
+ (this.scanner = new s.Scanner(e, this.errorHandler)),
+ (this.scanner.trackComment = this.config.comment),
+ (this.operatorPrecedence = {
+ ')': 0,
+ ';': 0,
+ ',': 0,
+ '=': 0,
+ ']': 0,
+ '||': 1,
+ '&&': 2,
+ '|': 3,
+ '^': 4,
+ '&': 5,
+ '==': 6,
+ '!=': 6,
+ '===': 6,
+ '!==': 6,
+ '<': 7,
+ '>': 7,
+ '<=': 7,
+ '>=': 7,
+ '<<': 8,
+ '>>': 8,
+ '>>>': 8,
+ '+': 9,
+ '-': 9,
+ '*': 11,
+ '/': 11,
+ '%': 11,
+ }),
+ (this.lookahead = {
+ type: 2,
+ value: '',
+ lineNumber: this.scanner.lineNumber,
+ lineStart: 0,
+ start: 0,
+ end: 0,
+ }),
+ (this.hasLineTerminator = !1),
+ (this.context = {
+ isModule: !1,
+ await: !1,
+ allowIn: !0,
+ allowStrictDirective: !0,
+ allowYield: !0,
+ firstCoverInitializedNameError: null,
+ isAssignmentTarget: !1,
+ isBindingElement: !1,
+ inFunctionBody: !1,
+ inIteration: !1,
+ inSwitch: !1,
+ labelSet: {},
+ strict: !1,
+ }),
+ (this.tokens = []),
+ (this.startMarker = { index: 0, line: this.scanner.lineNumber, column: 0 }),
+ (this.lastMarker = { index: 0, line: this.scanner.lineNumber, column: 0 }),
+ this.nextToken(),
+ (this.lastMarker = {
+ index: this.scanner.index,
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart,
+ });
+ }
+ return (
+ (e.prototype.throwError = function (e) {
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
+ var i = Array.prototype.slice.call(arguments, 1),
+ o = e.replace(/%(\d)/g, function (e, t) {
+ return r.assert(t < i.length, 'Message reference must be in range'), i[t];
+ }),
+ a = this.lastMarker.index,
+ s = this.lastMarker.line,
+ c = this.lastMarker.column + 1;
+ throw this.errorHandler.createError(a, s, c, o);
+ }),
+ (e.prototype.tolerateError = function (e) {
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
+ var i = Array.prototype.slice.call(arguments, 1),
+ o = e.replace(/%(\d)/g, function (e, t) {
+ return r.assert(t < i.length, 'Message reference must be in range'), i[t];
+ }),
+ a = this.lastMarker.index,
+ s = this.scanner.lineNumber,
+ c = this.lastMarker.column + 1;
+ this.errorHandler.tolerateError(a, s, c, o);
+ }),
+ (e.prototype.unexpectedTokenError = function (e, t) {
+ var n,
+ r = t || o.Messages.UnexpectedToken;
+ if (
+ (e
+ ? (t ||
+ ((r =
+ 2 === e.type
+ ? o.Messages.UnexpectedEOS
+ : 3 === e.type
+ ? o.Messages.UnexpectedIdentifier
+ : 6 === e.type
+ ? o.Messages.UnexpectedNumber
+ : 8 === e.type
+ ? o.Messages.UnexpectedString
+ : 10 === e.type
+ ? o.Messages.UnexpectedTemplate
+ : o.Messages.UnexpectedToken),
+ 4 === e.type &&
+ (this.scanner.isFutureReservedWord(e.value)
+ ? (r = o.Messages.UnexpectedReserved)
+ : this.context.strict &&
+ this.scanner.isStrictModeReservedWord(e.value) &&
+ (r = o.Messages.StrictReservedWord))),
+ (n = e.value))
+ : (n = 'ILLEGAL'),
+ (r = r.replace('%0', n)),
+ e && 'number' == typeof e.lineNumber)
+ ) {
+ var i = e.start,
+ a = e.lineNumber,
+ s = this.lastMarker.index - this.lastMarker.column,
+ c = e.start - s + 1;
+ return this.errorHandler.createError(i, a, c, r);
+ }
+ return (
+ (i = this.lastMarker.index),
+ (a = this.lastMarker.line),
+ (c = this.lastMarker.column + 1),
+ this.errorHandler.createError(i, a, c, r)
+ );
+ }),
+ (e.prototype.throwUnexpectedToken = function (e, t) {
+ throw this.unexpectedTokenError(e, t);
+ }),
+ (e.prototype.tolerateUnexpectedToken = function (e, t) {
+ this.errorHandler.tolerate(this.unexpectedTokenError(e, t));
+ }),
+ (e.prototype.collectComments = function () {
+ if (this.config.comment) {
+ var e = this.scanner.scanComments();
+ if (e.length > 0 && this.delegate)
+ for (var t = 0; t < e.length; ++t) {
+ var n = e[t],
+ r = void 0;
+ (r = {
+ type: n.multiLine ? 'BlockComment' : 'LineComment',
+ value: this.scanner.source.slice(n.slice[0], n.slice[1]),
+ }),
+ this.config.range && (r.range = n.range),
+ this.config.loc && (r.loc = n.loc);
+ var i = {
+ start: { line: n.loc.start.line, column: n.loc.start.column, offset: n.range[0] },
+ end: { line: n.loc.end.line, column: n.loc.end.column, offset: n.range[1] },
+ };
+ this.delegate(r, i);
+ }
+ } else this.scanner.scanComments();
+ }),
+ (e.prototype.getTokenRaw = function (e) {
+ return this.scanner.source.slice(e.start, e.end);
+ }),
+ (e.prototype.convertToken = function (e) {
+ var t = { type: u.TokenName[e.type], value: this.getTokenRaw(e) };
+ if (
+ (this.config.range && (t.range = [e.start, e.end]),
+ this.config.loc &&
+ (t.loc = {
+ start: { line: this.startMarker.line, column: this.startMarker.column },
+ end: { line: this.scanner.lineNumber, column: this.scanner.index - this.scanner.lineStart },
+ }),
+ 9 === e.type)
+ ) {
+ var n = e.pattern,
+ r = e.flags;
+ t.regex = { pattern: n, flags: r };
+ }
+ return t;
+ }),
+ (e.prototype.nextToken = function () {
+ var e = this.lookahead;
+ (this.lastMarker.index = this.scanner.index),
+ (this.lastMarker.line = this.scanner.lineNumber),
+ (this.lastMarker.column = this.scanner.index - this.scanner.lineStart),
+ this.collectComments(),
+ this.scanner.index !== this.startMarker.index &&
+ ((this.startMarker.index = this.scanner.index),
+ (this.startMarker.line = this.scanner.lineNumber),
+ (this.startMarker.column = this.scanner.index - this.scanner.lineStart));
+ var t = this.scanner.lex();
+ return (
+ (this.hasLineTerminator = e.lineNumber !== t.lineNumber),
+ t &&
+ this.context.strict &&
+ 3 === t.type &&
+ this.scanner.isStrictModeReservedWord(t.value) &&
+ (t.type = 4),
+ (this.lookahead = t),
+ this.config.tokens && 2 !== t.type && this.tokens.push(this.convertToken(t)),
+ e
+ );
+ }),
+ (e.prototype.nextRegexToken = function () {
+ this.collectComments();
+ var e = this.scanner.scanRegExp();
+ return (
+ this.config.tokens && (this.tokens.pop(), this.tokens.push(this.convertToken(e))),
+ (this.lookahead = e),
+ this.nextToken(),
+ e
+ );
+ }),
+ (e.prototype.createNode = function () {
+ return {
+ index: this.startMarker.index,
+ line: this.startMarker.line,
+ column: this.startMarker.column,
+ };
+ }),
+ (e.prototype.startNode = function (e, t) {
+ void 0 === t && (t = 0);
+ var n = e.start - e.lineStart,
+ r = e.lineNumber;
+ return n < 0 && ((n += t), r--), { index: e.start, line: r, column: n };
+ }),
+ (e.prototype.finalize = function (e, t) {
+ if (
+ (this.config.range && (t.range = [e.index, this.lastMarker.index]),
+ this.config.loc &&
+ ((t.loc = {
+ start: { line: e.line, column: e.column },
+ end: { line: this.lastMarker.line, column: this.lastMarker.column },
+ }),
+ this.config.source && (t.loc.source = this.config.source)),
+ this.delegate)
+ ) {
+ var n = {
+ start: { line: e.line, column: e.column, offset: e.index },
+ end: {
+ line: this.lastMarker.line,
+ column: this.lastMarker.column,
+ offset: this.lastMarker.index,
+ },
+ };
+ this.delegate(t, n);
+ }
+ return t;
+ }),
+ (e.prototype.expect = function (e) {
+ var t = this.nextToken();
+ (7 === t.type && t.value === e) || this.throwUnexpectedToken(t);
+ }),
+ (e.prototype.expectCommaSeparator = function () {
+ if (this.config.tolerant) {
+ var e = this.lookahead;
+ 7 === e.type && ',' === e.value
+ ? this.nextToken()
+ : 7 === e.type && ';' === e.value
+ ? (this.nextToken(), this.tolerateUnexpectedToken(e))
+ : this.tolerateUnexpectedToken(e, o.Messages.UnexpectedToken);
+ } else this.expect(',');
+ }),
+ (e.prototype.expectKeyword = function (e) {
+ var t = this.nextToken();
+ (4 === t.type && t.value === e) || this.throwUnexpectedToken(t);
+ }),
+ (e.prototype.match = function (e) {
+ return 7 === this.lookahead.type && this.lookahead.value === e;
+ }),
+ (e.prototype.matchKeyword = function (e) {
+ return 4 === this.lookahead.type && this.lookahead.value === e;
+ }),
+ (e.prototype.matchContextualKeyword = function (e) {
+ return 3 === this.lookahead.type && this.lookahead.value === e;
+ }),
+ (e.prototype.matchAssign = function () {
+ if (7 !== this.lookahead.type) return !1;
+ var e = this.lookahead.value;
+ return (
+ '=' === e ||
+ '*=' === e ||
+ '**=' === e ||
+ '/=' === e ||
+ '%=' === e ||
+ '+=' === e ||
+ '-=' === e ||
+ '<<=' === e ||
+ '>>=' === e ||
+ '>>>=' === e ||
+ '&=' === e ||
+ '^=' === e ||
+ '|=' === e
+ );
+ }),
+ (e.prototype.isolateCoverGrammar = function (e) {
+ var t = this.context.isBindingElement,
+ n = this.context.isAssignmentTarget,
+ r = this.context.firstCoverInitializedNameError;
+ (this.context.isBindingElement = !0),
+ (this.context.isAssignmentTarget = !0),
+ (this.context.firstCoverInitializedNameError = null);
+ var i = e.call(this);
+ return (
+ null !== this.context.firstCoverInitializedNameError &&
+ this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),
+ (this.context.isBindingElement = t),
+ (this.context.isAssignmentTarget = n),
+ (this.context.firstCoverInitializedNameError = r),
+ i
+ );
+ }),
+ (e.prototype.inheritCoverGrammar = function (e) {
+ var t = this.context.isBindingElement,
+ n = this.context.isAssignmentTarget,
+ r = this.context.firstCoverInitializedNameError;
+ (this.context.isBindingElement = !0),
+ (this.context.isAssignmentTarget = !0),
+ (this.context.firstCoverInitializedNameError = null);
+ var i = e.call(this);
+ return (
+ (this.context.isBindingElement = this.context.isBindingElement && t),
+ (this.context.isAssignmentTarget = this.context.isAssignmentTarget && n),
+ (this.context.firstCoverInitializedNameError = r || this.context.firstCoverInitializedNameError),
+ i
+ );
+ }),
+ (e.prototype.consumeSemicolon = function () {
+ this.match(';')
+ ? this.nextToken()
+ : this.hasLineTerminator ||
+ (2 === this.lookahead.type || this.match('}') || this.throwUnexpectedToken(this.lookahead),
+ (this.lastMarker.index = this.startMarker.index),
+ (this.lastMarker.line = this.startMarker.line),
+ (this.lastMarker.column = this.startMarker.column));
+ }),
+ (e.prototype.parsePrimaryExpression = function () {
+ var e,
+ t,
+ n,
+ r = this.createNode();
+ switch (this.lookahead.type) {
+ case 3:
+ (this.context.isModule || this.context.await) &&
+ 'await' === this.lookahead.value &&
+ this.tolerateUnexpectedToken(this.lookahead),
+ (e = this.matchAsyncFunction()
+ ? this.parseFunctionExpression()
+ : this.finalize(r, new a.Identifier(this.nextToken().value)));
+ break;
+ case 6:
+ case 8:
+ this.context.strict &&
+ this.lookahead.octal &&
+ this.tolerateUnexpectedToken(this.lookahead, o.Messages.StrictOctalLiteral),
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1),
+ (t = this.nextToken()),
+ (n = this.getTokenRaw(t)),
+ (e = this.finalize(r, new a.Literal(t.value, n)));
+ break;
+ case 1:
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1),
+ (t = this.nextToken()),
+ (n = this.getTokenRaw(t)),
+ (e = this.finalize(r, new a.Literal('true' === t.value, n)));
+ break;
+ case 5:
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1),
+ (t = this.nextToken()),
+ (n = this.getTokenRaw(t)),
+ (e = this.finalize(r, new a.Literal(null, n)));
+ break;
+ case 10:
+ e = this.parseTemplateLiteral();
+ break;
+ case 7:
+ switch (this.lookahead.value) {
+ case '(':
+ (this.context.isBindingElement = !1),
+ (e = this.inheritCoverGrammar(this.parseGroupExpression));
+ break;
+ case '[':
+ e = this.inheritCoverGrammar(this.parseArrayInitializer);
+ break;
+ case '{':
+ e = this.inheritCoverGrammar(this.parseObjectInitializer);
+ break;
+ case '/':
+ case '/=':
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1),
+ (this.scanner.index = this.startMarker.index),
+ (t = this.nextRegexToken()),
+ (n = this.getTokenRaw(t)),
+ (e = this.finalize(r, new a.RegexLiteral(t.regex, n, t.pattern, t.flags)));
+ break;
+ default:
+ e = this.throwUnexpectedToken(this.nextToken());
+ }
+ break;
+ case 4:
+ !this.context.strict && this.context.allowYield && this.matchKeyword('yield')
+ ? (e = this.parseIdentifierName())
+ : !this.context.strict && this.matchKeyword('let')
+ ? (e = this.finalize(r, new a.Identifier(this.nextToken().value)))
+ : ((this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1),
+ this.matchKeyword('function')
+ ? (e = this.parseFunctionExpression())
+ : this.matchKeyword('this')
+ ? (this.nextToken(), (e = this.finalize(r, new a.ThisExpression())))
+ : (e = this.matchKeyword('class')
+ ? this.parseClassExpression()
+ : this.throwUnexpectedToken(this.nextToken())));
+ break;
+ default:
+ e = this.throwUnexpectedToken(this.nextToken());
+ }
+ return e;
+ }),
+ (e.prototype.parseSpreadElement = function () {
+ var e = this.createNode();
+ this.expect('...');
+ var t = this.inheritCoverGrammar(this.parseAssignmentExpression);
+ return this.finalize(e, new a.SpreadElement(t));
+ }),
+ (e.prototype.parseArrayInitializer = function () {
+ var e = this.createNode(),
+ t = [];
+ for (this.expect('['); !this.match(']'); )
+ if (this.match(',')) this.nextToken(), t.push(null);
+ else if (this.match('...')) {
+ var n = this.parseSpreadElement();
+ this.match(']') ||
+ ((this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1),
+ this.expect(',')),
+ t.push(n);
+ } else
+ t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),
+ this.match(']') || this.expect(',');
+ return this.expect(']'), this.finalize(e, new a.ArrayExpression(t));
+ }),
+ (e.prototype.parsePropertyMethod = function (e) {
+ (this.context.isAssignmentTarget = !1), (this.context.isBindingElement = !1);
+ var t = this.context.strict,
+ n = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = e.simple;
+ var r = this.isolateCoverGrammar(this.parseFunctionSourceElements);
+ return (
+ this.context.strict &&
+ e.firstRestricted &&
+ this.tolerateUnexpectedToken(e.firstRestricted, e.message),
+ this.context.strict && e.stricted && this.tolerateUnexpectedToken(e.stricted, e.message),
+ (this.context.strict = t),
+ (this.context.allowStrictDirective = n),
+ r
+ );
+ }),
+ (e.prototype.parsePropertyMethodFunction = function () {
+ var e = this.createNode(),
+ t = this.context.allowYield;
+ this.context.allowYield = !0;
+ var n = this.parseFormalParameters(),
+ r = this.parsePropertyMethod(n);
+ return (
+ (this.context.allowYield = t), this.finalize(e, new a.FunctionExpression(null, n.params, r, !1))
+ );
+ }),
+ (e.prototype.parsePropertyMethodAsyncFunction = function () {
+ var e = this.createNode(),
+ t = this.context.allowYield,
+ n = this.context.await;
+ (this.context.allowYield = !1), (this.context.await = !0);
+ var r = this.parseFormalParameters(),
+ i = this.parsePropertyMethod(r);
+ return (
+ (this.context.allowYield = t),
+ (this.context.await = n),
+ this.finalize(e, new a.AsyncFunctionExpression(null, r.params, i))
+ );
+ }),
+ (e.prototype.parseObjectPropertyKey = function () {
+ var e,
+ t = this.createNode(),
+ n = this.nextToken();
+ switch (n.type) {
+ case 8:
+ case 6:
+ this.context.strict &&
+ n.octal &&
+ this.tolerateUnexpectedToken(n, o.Messages.StrictOctalLiteral);
+ var r = this.getTokenRaw(n);
+ e = this.finalize(t, new a.Literal(n.value, r));
+ break;
+ case 3:
+ case 1:
+ case 5:
+ case 4:
+ e = this.finalize(t, new a.Identifier(n.value));
+ break;
+ case 7:
+ '[' === n.value
+ ? ((e = this.isolateCoverGrammar(this.parseAssignmentExpression)), this.expect(']'))
+ : (e = this.throwUnexpectedToken(n));
+ break;
+ default:
+ e = this.throwUnexpectedToken(n);
+ }
+ return e;
+ }),
+ (e.prototype.isPropertyKey = function (e, t) {
+ return (
+ (e.type === c.Syntax.Identifier && e.name === t) || (e.type === c.Syntax.Literal && e.value === t)
+ );
+ }),
+ (e.prototype.parseObjectProperty = function (e) {
+ var t,
+ n = this.createNode(),
+ r = this.lookahead,
+ i = null,
+ s = null,
+ c = !1,
+ u = !1,
+ l = !1,
+ p = !1;
+ if (3 === r.type) {
+ var f = r.value;
+ this.nextToken(),
+ (c = this.match('[')),
+ (i = (p = !(
+ this.hasLineTerminator ||
+ 'async' !== f ||
+ this.match(':') ||
+ this.match('(') ||
+ this.match('*') ||
+ this.match(',')
+ ))
+ ? this.parseObjectPropertyKey()
+ : this.finalize(n, new a.Identifier(f)));
+ } else
+ this.match('*') ? this.nextToken() : ((c = this.match('[')), (i = this.parseObjectPropertyKey()));
+ var h = this.qualifiedPropertyName(this.lookahead);
+ if (3 === r.type && !p && 'get' === r.value && h)
+ (t = 'get'),
+ (c = this.match('[')),
+ (i = this.parseObjectPropertyKey()),
+ (this.context.allowYield = !1),
+ (s = this.parseGetterMethod());
+ else if (3 === r.type && !p && 'set' === r.value && h)
+ (t = 'set'),
+ (c = this.match('[')),
+ (i = this.parseObjectPropertyKey()),
+ (s = this.parseSetterMethod());
+ else if (7 === r.type && '*' === r.value && h)
+ (t = 'init'),
+ (c = this.match('[')),
+ (i = this.parseObjectPropertyKey()),
+ (s = this.parseGeneratorMethod()),
+ (u = !0);
+ else if ((i || this.throwUnexpectedToken(this.lookahead), (t = 'init'), this.match(':') && !p))
+ !c &&
+ this.isPropertyKey(i, '__proto__') &&
+ (e.value && this.tolerateError(o.Messages.DuplicateProtoProperty), (e.value = !0)),
+ this.nextToken(),
+ (s = this.inheritCoverGrammar(this.parseAssignmentExpression));
+ else if (this.match('('))
+ (s = p ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction()), (u = !0);
+ else if (3 === r.type)
+ if (((f = this.finalize(n, new a.Identifier(r.value))), this.match('='))) {
+ (this.context.firstCoverInitializedNameError = this.lookahead), this.nextToken(), (l = !0);
+ var d = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ s = this.finalize(n, new a.AssignmentPattern(f, d));
+ } else (l = !0), (s = f);
+ else this.throwUnexpectedToken(this.nextToken());
+ return this.finalize(n, new a.Property(t, i, c, s, u, l));
+ }),
+ (e.prototype.parseObjectInitializer = function () {
+ var e = this.createNode();
+ this.expect('{');
+ for (var t = [], n = { value: !1 }; !this.match('}'); )
+ t.push(this.parseObjectProperty(n)), this.match('}') || this.expectCommaSeparator();
+ return this.expect('}'), this.finalize(e, new a.ObjectExpression(t));
+ }),
+ (e.prototype.parseTemplateHead = function () {
+ r.assert(this.lookahead.head, 'Template literal must start with a template head');
+ var e = this.createNode(),
+ t = this.nextToken(),
+ n = t.value,
+ i = t.cooked;
+ return this.finalize(e, new a.TemplateElement({ raw: n, cooked: i }, t.tail));
+ }),
+ (e.prototype.parseTemplateElement = function () {
+ 10 !== this.lookahead.type && this.throwUnexpectedToken();
+ var e = this.createNode(),
+ t = this.nextToken(),
+ n = t.value,
+ r = t.cooked;
+ return this.finalize(e, new a.TemplateElement({ raw: n, cooked: r }, t.tail));
+ }),
+ (e.prototype.parseTemplateLiteral = function () {
+ var e = this.createNode(),
+ t = [],
+ n = [],
+ r = this.parseTemplateHead();
+ for (n.push(r); !r.tail; )
+ t.push(this.parseExpression()), (r = this.parseTemplateElement()), n.push(r);
+ return this.finalize(e, new a.TemplateLiteral(n, t));
+ }),
+ (e.prototype.reinterpretExpressionAsPattern = function (e) {
+ switch (e.type) {
+ case c.Syntax.Identifier:
+ case c.Syntax.MemberExpression:
+ case c.Syntax.RestElement:
+ case c.Syntax.AssignmentPattern:
+ break;
+ case c.Syntax.SpreadElement:
+ (e.type = c.Syntax.RestElement), this.reinterpretExpressionAsPattern(e.argument);
+ break;
+ case c.Syntax.ArrayExpression:
+ e.type = c.Syntax.ArrayPattern;
+ for (var t = 0; t < e.elements.length; t++)
+ null !== e.elements[t] && this.reinterpretExpressionAsPattern(e.elements[t]);
+ break;
+ case c.Syntax.ObjectExpression:
+ for (e.type = c.Syntax.ObjectPattern, t = 0; t < e.properties.length; t++)
+ this.reinterpretExpressionAsPattern(e.properties[t].value);
+ break;
+ case c.Syntax.AssignmentExpression:
+ (e.type = c.Syntax.AssignmentPattern),
+ delete e.operator,
+ this.reinterpretExpressionAsPattern(e.left);
+ }
+ }),
+ (e.prototype.parseGroupExpression = function () {
+ var e;
+ if ((this.expect('('), this.match(')')))
+ this.nextToken(),
+ this.match('=>') || this.expect('=>'),
+ (e = { type: 'ArrowParameterPlaceHolder', params: [], async: !1 });
+ else {
+ var t = this.lookahead,
+ n = [];
+ if (this.match('...'))
+ (e = this.parseRestElement(n)),
+ this.expect(')'),
+ this.match('=>') || this.expect('=>'),
+ (e = { type: 'ArrowParameterPlaceHolder', params: [e], async: !1 });
+ else {
+ var r = !1;
+ if (
+ ((this.context.isBindingElement = !0),
+ (e = this.inheritCoverGrammar(this.parseAssignmentExpression)),
+ this.match(','))
+ ) {
+ var i = [];
+ for (
+ this.context.isAssignmentTarget = !1, i.push(e);
+ 2 !== this.lookahead.type && this.match(',');
+
+ ) {
+ if ((this.nextToken(), this.match(')'))) {
+ this.nextToken();
+ for (var o = 0; o < i.length; o++) this.reinterpretExpressionAsPattern(i[o]);
+ (r = !0), (e = { type: 'ArrowParameterPlaceHolder', params: i, async: !1 });
+ } else if (this.match('...')) {
+ for (
+ this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead),
+ i.push(this.parseRestElement(n)),
+ this.expect(')'),
+ this.match('=>') || this.expect('=>'),
+ this.context.isBindingElement = !1,
+ o = 0;
+ o < i.length;
+ o++
+ )
+ this.reinterpretExpressionAsPattern(i[o]);
+ (r = !0), (e = { type: 'ArrowParameterPlaceHolder', params: i, async: !1 });
+ } else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
+ if (r) break;
+ }
+ r || (e = this.finalize(this.startNode(t), new a.SequenceExpression(i)));
+ }
+ if (!r) {
+ if (
+ (this.expect(')'),
+ this.match('=>') &&
+ (e.type === c.Syntax.Identifier &&
+ 'yield' === e.name &&
+ ((r = !0), (e = { type: 'ArrowParameterPlaceHolder', params: [e], async: !1 })),
+ !r))
+ ) {
+ if (
+ (this.context.isBindingElement || this.throwUnexpectedToken(this.lookahead),
+ e.type === c.Syntax.SequenceExpression)
+ )
+ for (o = 0; o < e.expressions.length; o++)
+ this.reinterpretExpressionAsPattern(e.expressions[o]);
+ else this.reinterpretExpressionAsPattern(e);
+ e = {
+ type: 'ArrowParameterPlaceHolder',
+ params: e.type === c.Syntax.SequenceExpression ? e.expressions : [e],
+ async: !1,
+ };
+ }
+ this.context.isBindingElement = !1;
+ }
+ }
+ }
+ return e;
+ }),
+ (e.prototype.parseArguments = function () {
+ this.expect('(');
+ var e = [];
+ if (!this.match(')'))
+ for (;;) {
+ var t = this.match('...')
+ ? this.parseSpreadElement()
+ : this.isolateCoverGrammar(this.parseAssignmentExpression);
+ if ((e.push(t), this.match(')'))) break;
+ if ((this.expectCommaSeparator(), this.match(')'))) break;
+ }
+ return this.expect(')'), e;
+ }),
+ (e.prototype.isIdentifierName = function (e) {
+ return 3 === e.type || 4 === e.type || 1 === e.type || 5 === e.type;
+ }),
+ (e.prototype.parseIdentifierName = function () {
+ var e = this.createNode(),
+ t = this.nextToken();
+ return (
+ this.isIdentifierName(t) || this.throwUnexpectedToken(t),
+ this.finalize(e, new a.Identifier(t.value))
+ );
+ }),
+ (e.prototype.parseNewExpression = function () {
+ var e,
+ t = this.createNode(),
+ n = this.parseIdentifierName();
+ if ((r.assert('new' === n.name, 'New expression must start with `new`'), this.match('.')))
+ if (
+ (this.nextToken(),
+ 3 === this.lookahead.type && this.context.inFunctionBody && 'target' === this.lookahead.value)
+ ) {
+ var i = this.parseIdentifierName();
+ e = new a.MetaProperty(n, i);
+ } else this.throwUnexpectedToken(this.lookahead);
+ else {
+ var o = this.isolateCoverGrammar(this.parseLeftHandSideExpression),
+ s = this.match('(') ? this.parseArguments() : [];
+ (e = new a.NewExpression(o, s)),
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1);
+ }
+ return this.finalize(t, e);
+ }),
+ (e.prototype.parseAsyncArgument = function () {
+ var e = this.parseAssignmentExpression();
+ return (this.context.firstCoverInitializedNameError = null), e;
+ }),
+ (e.prototype.parseAsyncArguments = function () {
+ this.expect('(');
+ var e = [];
+ if (!this.match(')'))
+ for (;;) {
+ var t = this.match('...')
+ ? this.parseSpreadElement()
+ : this.isolateCoverGrammar(this.parseAsyncArgument);
+ if ((e.push(t), this.match(')'))) break;
+ if ((this.expectCommaSeparator(), this.match(')'))) break;
+ }
+ return this.expect(')'), e;
+ }),
+ (e.prototype.parseLeftHandSideExpressionAllowCall = function () {
+ var e,
+ t = this.lookahead,
+ n = this.matchContextualKeyword('async'),
+ r = this.context.allowIn;
+ for (
+ this.context.allowIn = !0,
+ this.matchKeyword('super') && this.context.inFunctionBody
+ ? ((e = this.createNode()),
+ this.nextToken(),
+ (e = this.finalize(e, new a.Super())),
+ this.match('(') ||
+ this.match('.') ||
+ this.match('[') ||
+ this.throwUnexpectedToken(this.lookahead))
+ : (e = this.inheritCoverGrammar(
+ this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression
+ ));
+ ;
+
+ )
+ if (this.match('.')) {
+ (this.context.isBindingElement = !1), (this.context.isAssignmentTarget = !0), this.expect('.');
+ var i = this.parseIdentifierName();
+ e = this.finalize(this.startNode(t), new a.StaticMemberExpression(e, i));
+ } else if (this.match('(')) {
+ var o = n && t.lineNumber === this.lookahead.lineNumber;
+ (this.context.isBindingElement = !1), (this.context.isAssignmentTarget = !1);
+ var s = o ? this.parseAsyncArguments() : this.parseArguments();
+ if (
+ ((e = this.finalize(this.startNode(t), new a.CallExpression(e, s))), o && this.match('=>'))
+ ) {
+ for (var c = 0; c < s.length; ++c) this.reinterpretExpressionAsPattern(s[c]);
+ e = { type: 'ArrowParameterPlaceHolder', params: s, async: !0 };
+ }
+ } else if (this.match('['))
+ (this.context.isBindingElement = !1),
+ (this.context.isAssignmentTarget = !0),
+ this.expect('['),
+ (i = this.isolateCoverGrammar(this.parseExpression)),
+ this.expect(']'),
+ (e = this.finalize(this.startNode(t), new a.ComputedMemberExpression(e, i)));
+ else {
+ if (10 !== this.lookahead.type || !this.lookahead.head) break;
+ var u = this.parseTemplateLiteral();
+ e = this.finalize(this.startNode(t), new a.TaggedTemplateExpression(e, u));
+ }
+ return (this.context.allowIn = r), e;
+ }),
+ (e.prototype.parseSuper = function () {
+ var e = this.createNode();
+ return (
+ this.expectKeyword('super'),
+ this.match('[') || this.match('.') || this.throwUnexpectedToken(this.lookahead),
+ this.finalize(e, new a.Super())
+ );
+ }),
+ (e.prototype.parseLeftHandSideExpression = function () {
+ r.assert(this.context.allowIn, 'callee of new expression always allow in keyword.');
+ for (
+ var e = this.startNode(this.lookahead),
+ t =
+ this.matchKeyword('super') && this.context.inFunctionBody
+ ? this.parseSuper()
+ : this.inheritCoverGrammar(
+ this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression
+ );
+ ;
+
+ )
+ if (this.match('[')) {
+ (this.context.isBindingElement = !1), (this.context.isAssignmentTarget = !0), this.expect('[');
+ var n = this.isolateCoverGrammar(this.parseExpression);
+ this.expect(']'), (t = this.finalize(e, new a.ComputedMemberExpression(t, n)));
+ } else if (this.match('.'))
+ (this.context.isBindingElement = !1),
+ (this.context.isAssignmentTarget = !0),
+ this.expect('.'),
+ (n = this.parseIdentifierName()),
+ (t = this.finalize(e, new a.StaticMemberExpression(t, n)));
+ else {
+ if (10 !== this.lookahead.type || !this.lookahead.head) break;
+ var i = this.parseTemplateLiteral();
+ t = this.finalize(e, new a.TaggedTemplateExpression(t, i));
+ }
+ return t;
+ }),
+ (e.prototype.parseUpdateExpression = function () {
+ var e,
+ t = this.lookahead;
+ if (this.match('++') || this.match('--')) {
+ var n = this.startNode(t),
+ r = this.nextToken();
+ (e = this.inheritCoverGrammar(this.parseUnaryExpression)),
+ this.context.strict &&
+ e.type === c.Syntax.Identifier &&
+ this.scanner.isRestrictedWord(e.name) &&
+ this.tolerateError(o.Messages.StrictLHSPrefix),
+ this.context.isAssignmentTarget || this.tolerateError(o.Messages.InvalidLHSInAssignment);
+ var i = !0;
+ (e = this.finalize(n, new a.UpdateExpression(r.value, e, i))),
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1);
+ } else if (
+ ((e = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall)),
+ !this.hasLineTerminator && 7 === this.lookahead.type && (this.match('++') || this.match('--')))
+ ) {
+ this.context.strict &&
+ e.type === c.Syntax.Identifier &&
+ this.scanner.isRestrictedWord(e.name) &&
+ this.tolerateError(o.Messages.StrictLHSPostfix),
+ this.context.isAssignmentTarget || this.tolerateError(o.Messages.InvalidLHSInAssignment),
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1);
+ var s = this.nextToken().value;
+ (i = !1), (e = this.finalize(this.startNode(t), new a.UpdateExpression(s, e, i)));
+ }
+ return e;
+ }),
+ (e.prototype.parseAwaitExpression = function () {
+ var e = this.createNode();
+ this.nextToken();
+ var t = this.parseUnaryExpression();
+ return this.finalize(e, new a.AwaitExpression(t));
+ }),
+ (e.prototype.parseUnaryExpression = function () {
+ var e;
+ if (
+ this.match('+') ||
+ this.match('-') ||
+ this.match('~') ||
+ this.match('!') ||
+ this.matchKeyword('delete') ||
+ this.matchKeyword('void') ||
+ this.matchKeyword('typeof')
+ ) {
+ var t = this.startNode(this.lookahead),
+ n = this.nextToken();
+ (e = this.inheritCoverGrammar(this.parseUnaryExpression)),
+ (e = this.finalize(t, new a.UnaryExpression(n.value, e))),
+ this.context.strict &&
+ 'delete' === e.operator &&
+ e.argument.type === c.Syntax.Identifier &&
+ this.tolerateError(o.Messages.StrictDelete),
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1);
+ } else
+ e =
+ this.context.await && this.matchContextualKeyword('await')
+ ? this.parseAwaitExpression()
+ : this.parseUpdateExpression();
+ return e;
+ }),
+ (e.prototype.parseExponentiationExpression = function () {
+ var e = this.lookahead,
+ t = this.inheritCoverGrammar(this.parseUnaryExpression);
+ if (t.type !== c.Syntax.UnaryExpression && this.match('**')) {
+ this.nextToken(), (this.context.isAssignmentTarget = !1), (this.context.isBindingElement = !1);
+ var n = t,
+ r = this.isolateCoverGrammar(this.parseExponentiationExpression);
+ t = this.finalize(this.startNode(e), new a.BinaryExpression('**', n, r));
+ }
+ return t;
+ }),
+ (e.prototype.binaryPrecedence = function (e) {
+ var t = e.value;
+ return 7 === e.type
+ ? this.operatorPrecedence[t] || 0
+ : 4 === e.type && ('instanceof' === t || (this.context.allowIn && 'in' === t))
+ ? 7
+ : 0;
+ }),
+ (e.prototype.parseBinaryExpression = function () {
+ var e = this.lookahead,
+ t = this.inheritCoverGrammar(this.parseExponentiationExpression),
+ n = this.lookahead,
+ r = this.binaryPrecedence(n);
+ if (r > 0) {
+ this.nextToken(), (this.context.isAssignmentTarget = !1), (this.context.isBindingElement = !1);
+ for (
+ var i = [e, this.lookahead],
+ o = t,
+ s = this.isolateCoverGrammar(this.parseExponentiationExpression),
+ c = [o, n.value, s],
+ u = [r];
+ !((r = this.binaryPrecedence(this.lookahead)) <= 0);
+
+ ) {
+ for (; c.length > 2 && r <= u[u.length - 1]; ) {
+ s = c.pop();
+ var l = c.pop();
+ u.pop(), (o = c.pop()), i.pop();
+ var p = this.startNode(i[i.length - 1]);
+ c.push(this.finalize(p, new a.BinaryExpression(l, o, s)));
+ }
+ c.push(this.nextToken().value),
+ u.push(r),
+ i.push(this.lookahead),
+ c.push(this.isolateCoverGrammar(this.parseExponentiationExpression));
+ }
+ var f = c.length - 1;
+ t = c[f];
+ for (var h = i.pop(); f > 1; ) {
+ var d = i.pop(),
+ m = h && h.lineStart;
+ (p = this.startNode(d, m)),
+ (l = c[f - 1]),
+ (t = this.finalize(p, new a.BinaryExpression(l, c[f - 2], t))),
+ (f -= 2),
+ (h = d);
+ }
+ }
+ return t;
+ }),
+ (e.prototype.parseConditionalExpression = function () {
+ var e = this.lookahead,
+ t = this.inheritCoverGrammar(this.parseBinaryExpression);
+ if (this.match('?')) {
+ this.nextToken();
+ var n = this.context.allowIn;
+ this.context.allowIn = !0;
+ var r = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ (this.context.allowIn = n), this.expect(':');
+ var i = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ (t = this.finalize(this.startNode(e), new a.ConditionalExpression(t, r, i))),
+ (this.context.isAssignmentTarget = !1),
+ (this.context.isBindingElement = !1);
+ }
+ return t;
+ }),
+ (e.prototype.checkPatternParam = function (e, t) {
+ switch (t.type) {
+ case c.Syntax.Identifier:
+ this.validateParam(e, t, t.name);
+ break;
+ case c.Syntax.RestElement:
+ this.checkPatternParam(e, t.argument);
+ break;
+ case c.Syntax.AssignmentPattern:
+ this.checkPatternParam(e, t.left);
+ break;
+ case c.Syntax.ArrayPattern:
+ for (var n = 0; n < t.elements.length; n++)
+ null !== t.elements[n] && this.checkPatternParam(e, t.elements[n]);
+ break;
+ case c.Syntax.ObjectPattern:
+ for (n = 0; n < t.properties.length; n++) this.checkPatternParam(e, t.properties[n].value);
+ }
+ e.simple = e.simple && t instanceof a.Identifier;
+ }),
+ (e.prototype.reinterpretAsCoverFormalsList = function (e) {
+ var t,
+ n = [e],
+ r = !1;
+ switch (e.type) {
+ case c.Syntax.Identifier:
+ break;
+ case 'ArrowParameterPlaceHolder':
+ (n = e.params), (r = e.async);
+ break;
+ default:
+ return null;
+ }
+ t = { simple: !0, paramSet: {} };
+ for (var i = 0; i < n.length; ++i)
+ (a = n[i]).type === c.Syntax.AssignmentPattern
+ ? a.right.type === c.Syntax.YieldExpression &&
+ (a.right.argument && this.throwUnexpectedToken(this.lookahead),
+ (a.right.type = c.Syntax.Identifier),
+ (a.right.name = 'yield'),
+ delete a.right.argument,
+ delete a.right.delegate)
+ : r &&
+ a.type === c.Syntax.Identifier &&
+ 'await' === a.name &&
+ this.throwUnexpectedToken(this.lookahead),
+ this.checkPatternParam(t, a),
+ (n[i] = a);
+ if (this.context.strict || !this.context.allowYield)
+ for (i = 0; i < n.length; ++i) {
+ var a;
+ (a = n[i]).type === c.Syntax.YieldExpression && this.throwUnexpectedToken(this.lookahead);
+ }
+ if (t.message === o.Messages.StrictParamDupe) {
+ var s = this.context.strict ? t.stricted : t.firstRestricted;
+ this.throwUnexpectedToken(s, t.message);
+ }
+ return {
+ simple: t.simple,
+ params: n,
+ stricted: t.stricted,
+ firstRestricted: t.firstRestricted,
+ message: t.message,
+ };
+ }),
+ (e.prototype.parseAssignmentExpression = function () {
+ var e;
+ if (!this.context.allowYield && this.matchKeyword('yield')) e = this.parseYieldExpression();
+ else {
+ var t = this.lookahead,
+ n = t;
+ if (
+ ((e = this.parseConditionalExpression()),
+ 3 === n.type &&
+ n.lineNumber === this.lookahead.lineNumber &&
+ 'async' === n.value &&
+ (3 === this.lookahead.type || this.matchKeyword('yield')))
+ ) {
+ var r = this.parsePrimaryExpression();
+ this.reinterpretExpressionAsPattern(r),
+ (e = { type: 'ArrowParameterPlaceHolder', params: [r], async: !0 });
+ }
+ if ('ArrowParameterPlaceHolder' === e.type || this.match('=>')) {
+ (this.context.isAssignmentTarget = !1), (this.context.isBindingElement = !1);
+ var i = e.async,
+ s = this.reinterpretAsCoverFormalsList(e);
+ if (s) {
+ this.hasLineTerminator && this.tolerateUnexpectedToken(this.lookahead),
+ (this.context.firstCoverInitializedNameError = null);
+ var u = this.context.strict,
+ l = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = s.simple;
+ var p = this.context.allowYield,
+ f = this.context.await;
+ (this.context.allowYield = !0), (this.context.await = i);
+ var h = this.startNode(t);
+ this.expect('=>');
+ var d = void 0;
+ if (this.match('{')) {
+ var m = this.context.allowIn;
+ (this.context.allowIn = !0),
+ (d = this.parseFunctionSourceElements()),
+ (this.context.allowIn = m);
+ } else d = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ var y = d.type !== c.Syntax.BlockStatement;
+ this.context.strict &&
+ s.firstRestricted &&
+ this.throwUnexpectedToken(s.firstRestricted, s.message),
+ this.context.strict && s.stricted && this.tolerateUnexpectedToken(s.stricted, s.message),
+ (e = i
+ ? this.finalize(h, new a.AsyncArrowFunctionExpression(s.params, d, y))
+ : this.finalize(h, new a.ArrowFunctionExpression(s.params, d, y))),
+ (this.context.strict = u),
+ (this.context.allowStrictDirective = l),
+ (this.context.allowYield = p),
+ (this.context.await = f);
+ }
+ } else if (this.matchAssign()) {
+ if (
+ (this.context.isAssignmentTarget || this.tolerateError(o.Messages.InvalidLHSInAssignment),
+ this.context.strict && e.type === c.Syntax.Identifier)
+ ) {
+ var g = e;
+ this.scanner.isRestrictedWord(g.name) &&
+ this.tolerateUnexpectedToken(n, o.Messages.StrictLHSAssignment),
+ this.scanner.isStrictModeReservedWord(g.name) &&
+ this.tolerateUnexpectedToken(n, o.Messages.StrictReservedWord);
+ }
+ this.match('=')
+ ? this.reinterpretExpressionAsPattern(e)
+ : ((this.context.isAssignmentTarget = !1), (this.context.isBindingElement = !1));
+ var v = (n = this.nextToken()).value,
+ b = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ (e = this.finalize(this.startNode(t), new a.AssignmentExpression(v, e, b))),
+ (this.context.firstCoverInitializedNameError = null);
+ }
+ }
+ return e;
+ }),
+ (e.prototype.parseExpression = function () {
+ var e = this.lookahead,
+ t = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ if (this.match(',')) {
+ var n = [];
+ for (n.push(t); 2 !== this.lookahead.type && this.match(','); )
+ this.nextToken(), n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
+ t = this.finalize(this.startNode(e), new a.SequenceExpression(n));
+ }
+ return t;
+ }),
+ (e.prototype.parseStatementListItem = function () {
+ var e;
+ if (
+ ((this.context.isAssignmentTarget = !0),
+ (this.context.isBindingElement = !0),
+ 4 === this.lookahead.type)
+ )
+ switch (this.lookahead.value) {
+ case 'export':
+ this.context.isModule ||
+ this.tolerateUnexpectedToken(this.lookahead, o.Messages.IllegalExportDeclaration),
+ (e = this.parseExportDeclaration());
+ break;
+ case 'import':
+ this.context.isModule ||
+ this.tolerateUnexpectedToken(this.lookahead, o.Messages.IllegalImportDeclaration),
+ (e = this.parseImportDeclaration());
+ break;
+ case 'const':
+ e = this.parseLexicalDeclaration({ inFor: !1 });
+ break;
+ case 'function':
+ e = this.parseFunctionDeclaration();
+ break;
+ case 'class':
+ e = this.parseClassDeclaration();
+ break;
+ case 'let':
+ e = this.isLexicalDeclaration()
+ ? this.parseLexicalDeclaration({ inFor: !1 })
+ : this.parseStatement();
+ break;
+ default:
+ e = this.parseStatement();
+ }
+ else e = this.parseStatement();
+ return e;
+ }),
+ (e.prototype.parseBlock = function () {
+ var e = this.createNode();
+ this.expect('{');
+ for (var t = []; !this.match('}'); ) t.push(this.parseStatementListItem());
+ return this.expect('}'), this.finalize(e, new a.BlockStatement(t));
+ }),
+ (e.prototype.parseLexicalBinding = function (e, t) {
+ var n = this.createNode(),
+ r = this.parsePattern([], e);
+ this.context.strict &&
+ r.type === c.Syntax.Identifier &&
+ this.scanner.isRestrictedWord(r.name) &&
+ this.tolerateError(o.Messages.StrictVarName);
+ var i = null;
+ return (
+ 'const' === e
+ ? this.matchKeyword('in') ||
+ this.matchContextualKeyword('of') ||
+ (this.match('=')
+ ? (this.nextToken(), (i = this.isolateCoverGrammar(this.parseAssignmentExpression)))
+ : this.throwError(o.Messages.DeclarationMissingInitializer, 'const'))
+ : ((!t.inFor && r.type !== c.Syntax.Identifier) || this.match('=')) &&
+ (this.expect('='), (i = this.isolateCoverGrammar(this.parseAssignmentExpression))),
+ this.finalize(n, new a.VariableDeclarator(r, i))
+ );
+ }),
+ (e.prototype.parseBindingList = function (e, t) {
+ for (var n = [this.parseLexicalBinding(e, t)]; this.match(','); )
+ this.nextToken(), n.push(this.parseLexicalBinding(e, t));
+ return n;
+ }),
+ (e.prototype.isLexicalDeclaration = function () {
+ var e = this.scanner.saveState();
+ this.scanner.scanComments();
+ var t = this.scanner.lex();
+ return (
+ this.scanner.restoreState(e),
+ 3 === t.type ||
+ (7 === t.type && '[' === t.value) ||
+ (7 === t.type && '{' === t.value) ||
+ (4 === t.type && 'let' === t.value) ||
+ (4 === t.type && 'yield' === t.value)
+ );
+ }),
+ (e.prototype.parseLexicalDeclaration = function (e) {
+ var t = this.createNode(),
+ n = this.nextToken().value;
+ r.assert('let' === n || 'const' === n, 'Lexical declaration must be either let or const');
+ var i = this.parseBindingList(n, e);
+ return this.consumeSemicolon(), this.finalize(t, new a.VariableDeclaration(i, n));
+ }),
+ (e.prototype.parseBindingRestElement = function (e, t) {
+ var n = this.createNode();
+ this.expect('...');
+ var r = this.parsePattern(e, t);
+ return this.finalize(n, new a.RestElement(r));
+ }),
+ (e.prototype.parseArrayPattern = function (e, t) {
+ var n = this.createNode();
+ this.expect('[');
+ for (var r = []; !this.match(']'); )
+ if (this.match(',')) this.nextToken(), r.push(null);
+ else {
+ if (this.match('...')) {
+ r.push(this.parseBindingRestElement(e, t));
+ break;
+ }
+ r.push(this.parsePatternWithDefault(e, t)), this.match(']') || this.expect(',');
+ }
+ return this.expect(']'), this.finalize(n, new a.ArrayPattern(r));
+ }),
+ (e.prototype.parsePropertyPattern = function (e, t) {
+ var n,
+ r,
+ i = this.createNode(),
+ o = !1,
+ s = !1;
+ if (3 === this.lookahead.type) {
+ var c = this.lookahead;
+ n = this.parseVariableIdentifier();
+ var u = this.finalize(i, new a.Identifier(c.value));
+ if (this.match('=')) {
+ e.push(c), (s = !0), this.nextToken();
+ var l = this.parseAssignmentExpression();
+ r = this.finalize(this.startNode(c), new a.AssignmentPattern(u, l));
+ } else
+ this.match(':')
+ ? (this.expect(':'), (r = this.parsePatternWithDefault(e, t)))
+ : (e.push(c), (s = !0), (r = u));
+ } else
+ (o = this.match('[')),
+ (n = this.parseObjectPropertyKey()),
+ this.expect(':'),
+ (r = this.parsePatternWithDefault(e, t));
+ return this.finalize(i, new a.Property('init', n, o, r, !1, s));
+ }),
+ (e.prototype.parseObjectPattern = function (e, t) {
+ var n = this.createNode(),
+ r = [];
+ for (this.expect('{'); !this.match('}'); )
+ r.push(this.parsePropertyPattern(e, t)), this.match('}') || this.expect(',');
+ return this.expect('}'), this.finalize(n, new a.ObjectPattern(r));
+ }),
+ (e.prototype.parsePattern = function (e, t) {
+ var n;
+ return (
+ this.match('[')
+ ? (n = this.parseArrayPattern(e, t))
+ : this.match('{')
+ ? (n = this.parseObjectPattern(e, t))
+ : (!this.matchKeyword('let') ||
+ ('const' !== t && 'let' !== t) ||
+ this.tolerateUnexpectedToken(this.lookahead, o.Messages.LetInLexicalBinding),
+ e.push(this.lookahead),
+ (n = this.parseVariableIdentifier(t))),
+ n
+ );
+ }),
+ (e.prototype.parsePatternWithDefault = function (e, t) {
+ var n = this.lookahead,
+ r = this.parsePattern(e, t);
+ if (this.match('=')) {
+ this.nextToken();
+ var i = this.context.allowYield;
+ this.context.allowYield = !0;
+ var o = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ (this.context.allowYield = i),
+ (r = this.finalize(this.startNode(n), new a.AssignmentPattern(r, o)));
+ }
+ return r;
+ }),
+ (e.prototype.parseVariableIdentifier = function (e) {
+ var t = this.createNode(),
+ n = this.nextToken();
+ return (
+ 4 === n.type && 'yield' === n.value
+ ? this.context.strict
+ ? this.tolerateUnexpectedToken(n, o.Messages.StrictReservedWord)
+ : this.context.allowYield || this.throwUnexpectedToken(n)
+ : 3 !== n.type
+ ? this.context.strict && 4 === n.type && this.scanner.isStrictModeReservedWord(n.value)
+ ? this.tolerateUnexpectedToken(n, o.Messages.StrictReservedWord)
+ : (this.context.strict || 'let' !== n.value || 'var' !== e) && this.throwUnexpectedToken(n)
+ : (this.context.isModule || this.context.await) &&
+ 3 === n.type &&
+ 'await' === n.value &&
+ this.tolerateUnexpectedToken(n),
+ this.finalize(t, new a.Identifier(n.value))
+ );
+ }),
+ (e.prototype.parseVariableDeclaration = function (e) {
+ var t = this.createNode(),
+ n = this.parsePattern([], 'var');
+ this.context.strict &&
+ n.type === c.Syntax.Identifier &&
+ this.scanner.isRestrictedWord(n.name) &&
+ this.tolerateError(o.Messages.StrictVarName);
+ var r = null;
+ return (
+ this.match('=')
+ ? (this.nextToken(), (r = this.isolateCoverGrammar(this.parseAssignmentExpression)))
+ : n.type === c.Syntax.Identifier || e.inFor || this.expect('='),
+ this.finalize(t, new a.VariableDeclarator(n, r))
+ );
+ }),
+ (e.prototype.parseVariableDeclarationList = function (e) {
+ var t = { inFor: e.inFor },
+ n = [];
+ for (n.push(this.parseVariableDeclaration(t)); this.match(','); )
+ this.nextToken(), n.push(this.parseVariableDeclaration(t));
+ return n;
+ }),
+ (e.prototype.parseVariableStatement = function () {
+ var e = this.createNode();
+ this.expectKeyword('var');
+ var t = this.parseVariableDeclarationList({ inFor: !1 });
+ return this.consumeSemicolon(), this.finalize(e, new a.VariableDeclaration(t, 'var'));
+ }),
+ (e.prototype.parseEmptyStatement = function () {
+ var e = this.createNode();
+ return this.expect(';'), this.finalize(e, new a.EmptyStatement());
+ }),
+ (e.prototype.parseExpressionStatement = function () {
+ var e = this.createNode(),
+ t = this.parseExpression();
+ return this.consumeSemicolon(), this.finalize(e, new a.ExpressionStatement(t));
+ }),
+ (e.prototype.parseIfClause = function () {
+ return (
+ this.context.strict &&
+ this.matchKeyword('function') &&
+ this.tolerateError(o.Messages.StrictFunction),
+ this.parseStatement()
+ );
+ }),
+ (e.prototype.parseIfStatement = function () {
+ var e,
+ t = this.createNode(),
+ n = null;
+ this.expectKeyword('if'), this.expect('(');
+ var r = this.parseExpression();
+ return (
+ !this.match(')') && this.config.tolerant
+ ? (this.tolerateUnexpectedToken(this.nextToken()),
+ (e = this.finalize(this.createNode(), new a.EmptyStatement())))
+ : (this.expect(')'),
+ (e = this.parseIfClause()),
+ this.matchKeyword('else') && (this.nextToken(), (n = this.parseIfClause()))),
+ this.finalize(t, new a.IfStatement(r, e, n))
+ );
+ }),
+ (e.prototype.parseDoWhileStatement = function () {
+ var e = this.createNode();
+ this.expectKeyword('do');
+ var t = this.context.inIteration;
+ this.context.inIteration = !0;
+ var n = this.parseStatement();
+ (this.context.inIteration = t), this.expectKeyword('while'), this.expect('(');
+ var r = this.parseExpression();
+ return (
+ !this.match(')') && this.config.tolerant
+ ? this.tolerateUnexpectedToken(this.nextToken())
+ : (this.expect(')'), this.match(';') && this.nextToken()),
+ this.finalize(e, new a.DoWhileStatement(n, r))
+ );
+ }),
+ (e.prototype.parseWhileStatement = function () {
+ var e,
+ t = this.createNode();
+ this.expectKeyword('while'), this.expect('(');
+ var n = this.parseExpression();
+ if (!this.match(')') && this.config.tolerant)
+ this.tolerateUnexpectedToken(this.nextToken()),
+ (e = this.finalize(this.createNode(), new a.EmptyStatement()));
+ else {
+ this.expect(')');
+ var r = this.context.inIteration;
+ (this.context.inIteration = !0), (e = this.parseStatement()), (this.context.inIteration = r);
+ }
+ return this.finalize(t, new a.WhileStatement(n, e));
+ }),
+ (e.prototype.parseForStatement = function () {
+ var e,
+ t,
+ n,
+ r = null,
+ i = null,
+ s = null,
+ u = !0,
+ l = this.createNode();
+ if ((this.expectKeyword('for'), this.expect('('), this.match(';'))) this.nextToken();
+ else if (this.matchKeyword('var')) {
+ (r = this.createNode()), this.nextToken();
+ var p = this.context.allowIn;
+ this.context.allowIn = !1;
+ var f = this.parseVariableDeclarationList({ inFor: !0 });
+ if (((this.context.allowIn = p), 1 === f.length && this.matchKeyword('in'))) {
+ var h = f[0];
+ h.init &&
+ (h.id.type === c.Syntax.ArrayPattern ||
+ h.id.type === c.Syntax.ObjectPattern ||
+ this.context.strict) &&
+ this.tolerateError(o.Messages.ForInOfLoopInitializer, 'for-in'),
+ (r = this.finalize(r, new a.VariableDeclaration(f, 'var'))),
+ this.nextToken(),
+ (e = r),
+ (t = this.parseExpression()),
+ (r = null);
+ } else
+ 1 === f.length && null === f[0].init && this.matchContextualKeyword('of')
+ ? ((r = this.finalize(r, new a.VariableDeclaration(f, 'var'))),
+ this.nextToken(),
+ (e = r),
+ (t = this.parseAssignmentExpression()),
+ (r = null),
+ (u = !1))
+ : ((r = this.finalize(r, new a.VariableDeclaration(f, 'var'))), this.expect(';'));
+ } else if (this.matchKeyword('const') || this.matchKeyword('let')) {
+ r = this.createNode();
+ var d = this.nextToken().value;
+ this.context.strict || 'in' !== this.lookahead.value
+ ? ((p = this.context.allowIn),
+ (this.context.allowIn = !1),
+ (f = this.parseBindingList(d, { inFor: !0 })),
+ (this.context.allowIn = p),
+ 1 === f.length && null === f[0].init && this.matchKeyword('in')
+ ? ((r = this.finalize(r, new a.VariableDeclaration(f, d))),
+ this.nextToken(),
+ (e = r),
+ (t = this.parseExpression()),
+ (r = null))
+ : 1 === f.length && null === f[0].init && this.matchContextualKeyword('of')
+ ? ((r = this.finalize(r, new a.VariableDeclaration(f, d))),
+ this.nextToken(),
+ (e = r),
+ (t = this.parseAssignmentExpression()),
+ (r = null),
+ (u = !1))
+ : (this.consumeSemicolon(), (r = this.finalize(r, new a.VariableDeclaration(f, d)))))
+ : ((r = this.finalize(r, new a.Identifier(d))),
+ this.nextToken(),
+ (e = r),
+ (t = this.parseExpression()),
+ (r = null));
+ } else {
+ var m = this.lookahead;
+ if (
+ ((p = this.context.allowIn),
+ (this.context.allowIn = !1),
+ (r = this.inheritCoverGrammar(this.parseAssignmentExpression)),
+ (this.context.allowIn = p),
+ this.matchKeyword('in'))
+ )
+ (this.context.isAssignmentTarget && r.type !== c.Syntax.AssignmentExpression) ||
+ this.tolerateError(o.Messages.InvalidLHSInForIn),
+ this.nextToken(),
+ this.reinterpretExpressionAsPattern(r),
+ (e = r),
+ (t = this.parseExpression()),
+ (r = null);
+ else if (this.matchContextualKeyword('of'))
+ (this.context.isAssignmentTarget && r.type !== c.Syntax.AssignmentExpression) ||
+ this.tolerateError(o.Messages.InvalidLHSInForLoop),
+ this.nextToken(),
+ this.reinterpretExpressionAsPattern(r),
+ (e = r),
+ (t = this.parseAssignmentExpression()),
+ (r = null),
+ (u = !1);
+ else {
+ if (this.match(',')) {
+ for (var y = [r]; this.match(','); )
+ this.nextToken(), y.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
+ r = this.finalize(this.startNode(m), new a.SequenceExpression(y));
+ }
+ this.expect(';');
+ }
+ }
+ if (
+ (void 0 === e &&
+ (this.match(';') || (i = this.parseExpression()),
+ this.expect(';'),
+ this.match(')') || (s = this.parseExpression())),
+ !this.match(')') && this.config.tolerant)
+ )
+ this.tolerateUnexpectedToken(this.nextToken()),
+ (n = this.finalize(this.createNode(), new a.EmptyStatement()));
+ else {
+ this.expect(')');
+ var g = this.context.inIteration;
+ (this.context.inIteration = !0),
+ (n = this.isolateCoverGrammar(this.parseStatement)),
+ (this.context.inIteration = g);
+ }
+ return void 0 === e
+ ? this.finalize(l, new a.ForStatement(r, i, s, n))
+ : u
+ ? this.finalize(l, new a.ForInStatement(e, t, n))
+ : this.finalize(l, new a.ForOfStatement(e, t, n));
+ }),
+ (e.prototype.parseContinueStatement = function () {
+ var e = this.createNode();
+ this.expectKeyword('continue');
+ var t = null;
+ if (3 === this.lookahead.type && !this.hasLineTerminator) {
+ var n = this.parseVariableIdentifier();
+ t = n;
+ var r = '$' + n.name;
+ Object.prototype.hasOwnProperty.call(this.context.labelSet, r) ||
+ this.throwError(o.Messages.UnknownLabel, n.name);
+ }
+ return (
+ this.consumeSemicolon(),
+ null !== t || this.context.inIteration || this.throwError(o.Messages.IllegalContinue),
+ this.finalize(e, new a.ContinueStatement(t))
+ );
+ }),
+ (e.prototype.parseBreakStatement = function () {
+ var e = this.createNode();
+ this.expectKeyword('break');
+ var t = null;
+ if (3 === this.lookahead.type && !this.hasLineTerminator) {
+ var n = this.parseVariableIdentifier(),
+ r = '$' + n.name;
+ Object.prototype.hasOwnProperty.call(this.context.labelSet, r) ||
+ this.throwError(o.Messages.UnknownLabel, n.name),
+ (t = n);
+ }
+ return (
+ this.consumeSemicolon(),
+ null !== t ||
+ this.context.inIteration ||
+ this.context.inSwitch ||
+ this.throwError(o.Messages.IllegalBreak),
+ this.finalize(e, new a.BreakStatement(t))
+ );
+ }),
+ (e.prototype.parseReturnStatement = function () {
+ this.context.inFunctionBody || this.tolerateError(o.Messages.IllegalReturn);
+ var e = this.createNode();
+ this.expectKeyword('return');
+ var t =
+ (this.match(';') || this.match('}') || this.hasLineTerminator || 2 === this.lookahead.type) &&
+ 8 !== this.lookahead.type &&
+ 10 !== this.lookahead.type
+ ? null
+ : this.parseExpression();
+ return this.consumeSemicolon(), this.finalize(e, new a.ReturnStatement(t));
+ }),
+ (e.prototype.parseWithStatement = function () {
+ this.context.strict && this.tolerateError(o.Messages.StrictModeWith);
+ var e,
+ t = this.createNode();
+ this.expectKeyword('with'), this.expect('(');
+ var n = this.parseExpression();
+ return (
+ !this.match(')') && this.config.tolerant
+ ? (this.tolerateUnexpectedToken(this.nextToken()),
+ (e = this.finalize(this.createNode(), new a.EmptyStatement())))
+ : (this.expect(')'), (e = this.parseStatement())),
+ this.finalize(t, new a.WithStatement(n, e))
+ );
+ }),
+ (e.prototype.parseSwitchCase = function () {
+ var e,
+ t = this.createNode();
+ this.matchKeyword('default')
+ ? (this.nextToken(), (e = null))
+ : (this.expectKeyword('case'), (e = this.parseExpression())),
+ this.expect(':');
+ for (var n = []; !(this.match('}') || this.matchKeyword('default') || this.matchKeyword('case')); )
+ n.push(this.parseStatementListItem());
+ return this.finalize(t, new a.SwitchCase(e, n));
+ }),
+ (e.prototype.parseSwitchStatement = function () {
+ var e = this.createNode();
+ this.expectKeyword('switch'), this.expect('(');
+ var t = this.parseExpression();
+ this.expect(')');
+ var n = this.context.inSwitch;
+ this.context.inSwitch = !0;
+ var r = [],
+ i = !1;
+ for (this.expect('{'); !this.match('}'); ) {
+ var s = this.parseSwitchCase();
+ null === s.test && (i && this.throwError(o.Messages.MultipleDefaultsInSwitch), (i = !0)),
+ r.push(s);
+ }
+ return this.expect('}'), (this.context.inSwitch = n), this.finalize(e, new a.SwitchStatement(t, r));
+ }),
+ (e.prototype.parseLabelledStatement = function () {
+ var e,
+ t = this.createNode(),
+ n = this.parseExpression();
+ if (n.type === c.Syntax.Identifier && this.match(':')) {
+ this.nextToken();
+ var r = n,
+ i = '$' + r.name;
+ Object.prototype.hasOwnProperty.call(this.context.labelSet, i) &&
+ this.throwError(o.Messages.Redeclaration, 'Label', r.name),
+ (this.context.labelSet[i] = !0);
+ var s = void 0;
+ if (this.matchKeyword('class'))
+ this.tolerateUnexpectedToken(this.lookahead), (s = this.parseClassDeclaration());
+ else if (this.matchKeyword('function')) {
+ var u = this.lookahead,
+ l = this.parseFunctionDeclaration();
+ this.context.strict
+ ? this.tolerateUnexpectedToken(u, o.Messages.StrictFunction)
+ : l.generator && this.tolerateUnexpectedToken(u, o.Messages.GeneratorInLegacyContext),
+ (s = l);
+ } else s = this.parseStatement();
+ delete this.context.labelSet[i], (e = new a.LabeledStatement(r, s));
+ } else this.consumeSemicolon(), (e = new a.ExpressionStatement(n));
+ return this.finalize(t, e);
+ }),
+ (e.prototype.parseThrowStatement = function () {
+ var e = this.createNode();
+ this.expectKeyword('throw'),
+ this.hasLineTerminator && this.throwError(o.Messages.NewlineAfterThrow);
+ var t = this.parseExpression();
+ return this.consumeSemicolon(), this.finalize(e, new a.ThrowStatement(t));
+ }),
+ (e.prototype.parseCatchClause = function () {
+ var e = this.createNode();
+ this.expectKeyword('catch'),
+ this.expect('('),
+ this.match(')') && this.throwUnexpectedToken(this.lookahead);
+ for (var t = [], n = this.parsePattern(t), r = {}, i = 0; i < t.length; i++) {
+ var s = '$' + t[i].value;
+ Object.prototype.hasOwnProperty.call(r, s) &&
+ this.tolerateError(o.Messages.DuplicateBinding, t[i].value),
+ (r[s] = !0);
+ }
+ this.context.strict &&
+ n.type === c.Syntax.Identifier &&
+ this.scanner.isRestrictedWord(n.name) &&
+ this.tolerateError(o.Messages.StrictCatchVariable),
+ this.expect(')');
+ var u = this.parseBlock();
+ return this.finalize(e, new a.CatchClause(n, u));
+ }),
+ (e.prototype.parseFinallyClause = function () {
+ return this.expectKeyword('finally'), this.parseBlock();
+ }),
+ (e.prototype.parseTryStatement = function () {
+ var e = this.createNode();
+ this.expectKeyword('try');
+ var t = this.parseBlock(),
+ n = this.matchKeyword('catch') ? this.parseCatchClause() : null,
+ r = this.matchKeyword('finally') ? this.parseFinallyClause() : null;
+ return (
+ n || r || this.throwError(o.Messages.NoCatchOrFinally),
+ this.finalize(e, new a.TryStatement(t, n, r))
+ );
+ }),
+ (e.prototype.parseDebuggerStatement = function () {
+ var e = this.createNode();
+ return (
+ this.expectKeyword('debugger'),
+ this.consumeSemicolon(),
+ this.finalize(e, new a.DebuggerStatement())
+ );
+ }),
+ (e.prototype.parseStatement = function () {
+ var e;
+ switch (this.lookahead.type) {
+ case 1:
+ case 5:
+ case 6:
+ case 8:
+ case 10:
+ case 9:
+ e = this.parseExpressionStatement();
+ break;
+ case 7:
+ var t = this.lookahead.value;
+ e =
+ '{' === t
+ ? this.parseBlock()
+ : '(' === t
+ ? this.parseExpressionStatement()
+ : ';' === t
+ ? this.parseEmptyStatement()
+ : this.parseExpressionStatement();
+ break;
+ case 3:
+ e = this.matchAsyncFunction() ? this.parseFunctionDeclaration() : this.parseLabelledStatement();
+ break;
+ case 4:
+ switch (this.lookahead.value) {
+ case 'break':
+ e = this.parseBreakStatement();
+ break;
+ case 'continue':
+ e = this.parseContinueStatement();
+ break;
+ case 'debugger':
+ e = this.parseDebuggerStatement();
+ break;
+ case 'do':
+ e = this.parseDoWhileStatement();
+ break;
+ case 'for':
+ e = this.parseForStatement();
+ break;
+ case 'function':
+ e = this.parseFunctionDeclaration();
+ break;
+ case 'if':
+ e = this.parseIfStatement();
+ break;
+ case 'return':
+ e = this.parseReturnStatement();
+ break;
+ case 'switch':
+ e = this.parseSwitchStatement();
+ break;
+ case 'throw':
+ e = this.parseThrowStatement();
+ break;
+ case 'try':
+ e = this.parseTryStatement();
+ break;
+ case 'var':
+ e = this.parseVariableStatement();
+ break;
+ case 'while':
+ e = this.parseWhileStatement();
+ break;
+ case 'with':
+ e = this.parseWithStatement();
+ break;
+ default:
+ e = this.parseExpressionStatement();
+ }
+ break;
+ default:
+ e = this.throwUnexpectedToken(this.lookahead);
+ }
+ return e;
+ }),
+ (e.prototype.parseFunctionSourceElements = function () {
+ var e = this.createNode();
+ this.expect('{');
+ var t = this.parseDirectivePrologues(),
+ n = this.context.labelSet,
+ r = this.context.inIteration,
+ i = this.context.inSwitch,
+ o = this.context.inFunctionBody;
+ for (
+ this.context.labelSet = {},
+ this.context.inIteration = !1,
+ this.context.inSwitch = !1,
+ this.context.inFunctionBody = !0;
+ 2 !== this.lookahead.type && !this.match('}');
+
+ )
+ t.push(this.parseStatementListItem());
+ return (
+ this.expect('}'),
+ (this.context.labelSet = n),
+ (this.context.inIteration = r),
+ (this.context.inSwitch = i),
+ (this.context.inFunctionBody = o),
+ this.finalize(e, new a.BlockStatement(t))
+ );
+ }),
+ (e.prototype.validateParam = function (e, t, n) {
+ var r = '$' + n;
+ this.context.strict
+ ? (this.scanner.isRestrictedWord(n) &&
+ ((e.stricted = t), (e.message = o.Messages.StrictParamName)),
+ Object.prototype.hasOwnProperty.call(e.paramSet, r) &&
+ ((e.stricted = t), (e.message = o.Messages.StrictParamDupe)))
+ : e.firstRestricted ||
+ (this.scanner.isRestrictedWord(n)
+ ? ((e.firstRestricted = t), (e.message = o.Messages.StrictParamName))
+ : this.scanner.isStrictModeReservedWord(n)
+ ? ((e.firstRestricted = t), (e.message = o.Messages.StrictReservedWord))
+ : Object.prototype.hasOwnProperty.call(e.paramSet, r) &&
+ ((e.stricted = t), (e.message = o.Messages.StrictParamDupe))),
+ 'function' == typeof Object.defineProperty
+ ? Object.defineProperty(e.paramSet, r, {
+ value: !0,
+ enumerable: !0,
+ writable: !0,
+ configurable: !0,
+ })
+ : (e.paramSet[r] = !0);
+ }),
+ (e.prototype.parseRestElement = function (e) {
+ var t = this.createNode();
+ this.expect('...');
+ var n = this.parsePattern(e);
+ return (
+ this.match('=') && this.throwError(o.Messages.DefaultRestParameter),
+ this.match(')') || this.throwError(o.Messages.ParameterAfterRestParameter),
+ this.finalize(t, new a.RestElement(n))
+ );
+ }),
+ (e.prototype.parseFormalParameter = function (e) {
+ for (
+ var t = [],
+ n = this.match('...') ? this.parseRestElement(t) : this.parsePatternWithDefault(t),
+ r = 0;
+ r < t.length;
+ r++
+ )
+ this.validateParam(e, t[r], t[r].value);
+ (e.simple = e.simple && n instanceof a.Identifier), e.params.push(n);
+ }),
+ (e.prototype.parseFormalParameters = function (e) {
+ var t;
+ if (((t = { simple: !0, params: [], firstRestricted: e }), this.expect('('), !this.match(')')))
+ for (
+ t.paramSet = {};
+ 2 !== this.lookahead.type &&
+ (this.parseFormalParameter(t), !this.match(')')) &&
+ (this.expect(','), !this.match(')'));
+
+ );
+ return (
+ this.expect(')'),
+ {
+ simple: t.simple,
+ params: t.params,
+ stricted: t.stricted,
+ firstRestricted: t.firstRestricted,
+ message: t.message,
+ }
+ );
+ }),
+ (e.prototype.matchAsyncFunction = function () {
+ var e = this.matchContextualKeyword('async');
+ if (e) {
+ var t = this.scanner.saveState();
+ this.scanner.scanComments();
+ var n = this.scanner.lex();
+ this.scanner.restoreState(t),
+ (e = t.lineNumber === n.lineNumber && 4 === n.type && 'function' === n.value);
+ }
+ return e;
+ }),
+ (e.prototype.parseFunctionDeclaration = function (e) {
+ var t = this.createNode(),
+ n = this.matchContextualKeyword('async');
+ n && this.nextToken(), this.expectKeyword('function');
+ var r,
+ i = !n && this.match('*');
+ i && this.nextToken();
+ var s = null,
+ c = null;
+ if (!e || !this.match('(')) {
+ var u = this.lookahead;
+ (s = this.parseVariableIdentifier()),
+ this.context.strict
+ ? this.scanner.isRestrictedWord(u.value) &&
+ this.tolerateUnexpectedToken(u, o.Messages.StrictFunctionName)
+ : this.scanner.isRestrictedWord(u.value)
+ ? ((c = u), (r = o.Messages.StrictFunctionName))
+ : this.scanner.isStrictModeReservedWord(u.value) &&
+ ((c = u), (r = o.Messages.StrictReservedWord));
+ }
+ var l = this.context.await,
+ p = this.context.allowYield;
+ (this.context.await = n), (this.context.allowYield = !i);
+ var f = this.parseFormalParameters(c),
+ h = f.params,
+ d = f.stricted;
+ (c = f.firstRestricted), f.message && (r = f.message);
+ var m = this.context.strict,
+ y = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = f.simple;
+ var g = this.parseFunctionSourceElements();
+ return (
+ this.context.strict && c && this.throwUnexpectedToken(c, r),
+ this.context.strict && d && this.tolerateUnexpectedToken(d, r),
+ (this.context.strict = m),
+ (this.context.allowStrictDirective = y),
+ (this.context.await = l),
+ (this.context.allowYield = p),
+ n
+ ? this.finalize(t, new a.AsyncFunctionDeclaration(s, h, g))
+ : this.finalize(t, new a.FunctionDeclaration(s, h, g, i))
+ );
+ }),
+ (e.prototype.parseFunctionExpression = function () {
+ var e = this.createNode(),
+ t = this.matchContextualKeyword('async');
+ t && this.nextToken(), this.expectKeyword('function');
+ var n,
+ r = !t && this.match('*');
+ r && this.nextToken();
+ var i,
+ s = null,
+ c = this.context.await,
+ u = this.context.allowYield;
+ if (((this.context.await = t), (this.context.allowYield = !r), !this.match('('))) {
+ var l = this.lookahead;
+ (s =
+ this.context.strict || r || !this.matchKeyword('yield')
+ ? this.parseVariableIdentifier()
+ : this.parseIdentifierName()),
+ this.context.strict
+ ? this.scanner.isRestrictedWord(l.value) &&
+ this.tolerateUnexpectedToken(l, o.Messages.StrictFunctionName)
+ : this.scanner.isRestrictedWord(l.value)
+ ? ((i = l), (n = o.Messages.StrictFunctionName))
+ : this.scanner.isStrictModeReservedWord(l.value) &&
+ ((i = l), (n = o.Messages.StrictReservedWord));
+ }
+ var p = this.parseFormalParameters(i),
+ f = p.params,
+ h = p.stricted;
+ (i = p.firstRestricted), p.message && (n = p.message);
+ var d = this.context.strict,
+ m = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = p.simple;
+ var y = this.parseFunctionSourceElements();
+ return (
+ this.context.strict && i && this.throwUnexpectedToken(i, n),
+ this.context.strict && h && this.tolerateUnexpectedToken(h, n),
+ (this.context.strict = d),
+ (this.context.allowStrictDirective = m),
+ (this.context.await = c),
+ (this.context.allowYield = u),
+ t
+ ? this.finalize(e, new a.AsyncFunctionExpression(s, f, y))
+ : this.finalize(e, new a.FunctionExpression(s, f, y, r))
+ );
+ }),
+ (e.prototype.parseDirective = function () {
+ var e = this.lookahead,
+ t = this.createNode(),
+ n = this.parseExpression(),
+ r = n.type === c.Syntax.Literal ? this.getTokenRaw(e).slice(1, -1) : null;
+ return (
+ this.consumeSemicolon(),
+ this.finalize(t, r ? new a.Directive(n, r) : new a.ExpressionStatement(n))
+ );
+ }),
+ (e.prototype.parseDirectivePrologues = function () {
+ for (var e = null, t = []; ; ) {
+ var n = this.lookahead;
+ if (8 !== n.type) break;
+ var r = this.parseDirective();
+ t.push(r);
+ var i = r.directive;
+ if ('string' != typeof i) break;
+ 'use strict' === i
+ ? ((this.context.strict = !0),
+ e && this.tolerateUnexpectedToken(e, o.Messages.StrictOctalLiteral),
+ this.context.allowStrictDirective ||
+ this.tolerateUnexpectedToken(n, o.Messages.IllegalLanguageModeDirective))
+ : !e && n.octal && (e = n);
+ }
+ return t;
+ }),
+ (e.prototype.qualifiedPropertyName = function (e) {
+ switch (e.type) {
+ case 3:
+ case 8:
+ case 1:
+ case 5:
+ case 6:
+ case 4:
+ return !0;
+ case 7:
+ return '[' === e.value;
+ }
+ return !1;
+ }),
+ (e.prototype.parseGetterMethod = function () {
+ var e = this.createNode(),
+ t = this.context.allowYield;
+ this.context.allowYield = !0;
+ var n = this.parseFormalParameters();
+ n.params.length > 0 && this.tolerateError(o.Messages.BadGetterArity);
+ var r = this.parsePropertyMethod(n);
+ return (
+ (this.context.allowYield = t), this.finalize(e, new a.FunctionExpression(null, n.params, r, !1))
+ );
+ }),
+ (e.prototype.parseSetterMethod = function () {
+ var e = this.createNode(),
+ t = this.context.allowYield;
+ this.context.allowYield = !0;
+ var n = this.parseFormalParameters();
+ 1 !== n.params.length
+ ? this.tolerateError(o.Messages.BadSetterArity)
+ : n.params[0] instanceof a.RestElement && this.tolerateError(o.Messages.BadSetterRestParameter);
+ var r = this.parsePropertyMethod(n);
+ return (
+ (this.context.allowYield = t), this.finalize(e, new a.FunctionExpression(null, n.params, r, !1))
+ );
+ }),
+ (e.prototype.parseGeneratorMethod = function () {
+ var e = this.createNode(),
+ t = this.context.allowYield;
+ this.context.allowYield = !0;
+ var n = this.parseFormalParameters();
+ this.context.allowYield = !1;
+ var r = this.parsePropertyMethod(n);
+ return (
+ (this.context.allowYield = t), this.finalize(e, new a.FunctionExpression(null, n.params, r, !0))
+ );
+ }),
+ (e.prototype.isStartOfExpression = function () {
+ var e = !0,
+ t = this.lookahead.value;
+ switch (this.lookahead.type) {
+ case 7:
+ e =
+ '[' === t ||
+ '(' === t ||
+ '{' === t ||
+ '+' === t ||
+ '-' === t ||
+ '!' === t ||
+ '~' === t ||
+ '++' === t ||
+ '--' === t ||
+ '/' === t ||
+ '/=' === t;
+ break;
+ case 4:
+ e =
+ 'class' === t ||
+ 'delete' === t ||
+ 'function' === t ||
+ 'let' === t ||
+ 'new' === t ||
+ 'super' === t ||
+ 'this' === t ||
+ 'typeof' === t ||
+ 'void' === t ||
+ 'yield' === t;
+ }
+ return e;
+ }),
+ (e.prototype.parseYieldExpression = function () {
+ var e = this.createNode();
+ this.expectKeyword('yield');
+ var t = null,
+ n = !1;
+ if (!this.hasLineTerminator) {
+ var r = this.context.allowYield;
+ (this.context.allowYield = !1),
+ (n = this.match('*'))
+ ? (this.nextToken(), (t = this.parseAssignmentExpression()))
+ : this.isStartOfExpression() && (t = this.parseAssignmentExpression()),
+ (this.context.allowYield = r);
+ }
+ return this.finalize(e, new a.YieldExpression(t, n));
+ }),
+ (e.prototype.parseClassElement = function (e) {
+ var t = this.lookahead,
+ n = this.createNode(),
+ r = '',
+ i = null,
+ s = null,
+ c = !1,
+ u = !1,
+ l = !1,
+ p = !1;
+ if (this.match('*')) this.nextToken();
+ else if (
+ ((c = this.match('[')),
+ 'static' === (i = this.parseObjectPropertyKey()).name &&
+ (this.qualifiedPropertyName(this.lookahead) || this.match('*')) &&
+ ((t = this.lookahead),
+ (l = !0),
+ (c = this.match('[')),
+ this.match('*') ? this.nextToken() : (i = this.parseObjectPropertyKey())),
+ 3 === t.type && !this.hasLineTerminator && 'async' === t.value)
+ ) {
+ var f = this.lookahead.value;
+ ':' !== f &&
+ '(' !== f &&
+ '*' !== f &&
+ ((p = !0),
+ (t = this.lookahead),
+ (i = this.parseObjectPropertyKey()),
+ 3 === t.type &&
+ 'constructor' === t.value &&
+ this.tolerateUnexpectedToken(t, o.Messages.ConstructorIsAsync));
+ }
+ var h = this.qualifiedPropertyName(this.lookahead);
+ return (
+ 3 === t.type
+ ? 'get' === t.value && h
+ ? ((r = 'get'),
+ (c = this.match('[')),
+ (i = this.parseObjectPropertyKey()),
+ (this.context.allowYield = !1),
+ (s = this.parseGetterMethod()))
+ : 'set' === t.value &&
+ h &&
+ ((r = 'set'),
+ (c = this.match('[')),
+ (i = this.parseObjectPropertyKey()),
+ (s = this.parseSetterMethod()))
+ : 7 === t.type &&
+ '*' === t.value &&
+ h &&
+ ((r = 'init'),
+ (c = this.match('[')),
+ (i = this.parseObjectPropertyKey()),
+ (s = this.parseGeneratorMethod()),
+ (u = !0)),
+ !r &&
+ i &&
+ this.match('(') &&
+ ((r = 'init'),
+ (s = p ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction()),
+ (u = !0)),
+ r || this.throwUnexpectedToken(this.lookahead),
+ 'init' === r && (r = 'method'),
+ c ||
+ (l &&
+ this.isPropertyKey(i, 'prototype') &&
+ this.throwUnexpectedToken(t, o.Messages.StaticPrototype),
+ !l &&
+ this.isPropertyKey(i, 'constructor') &&
+ (('method' !== r || !u || (s && s.generator)) &&
+ this.throwUnexpectedToken(t, o.Messages.ConstructorSpecialMethod),
+ e.value ? this.throwUnexpectedToken(t, o.Messages.DuplicateConstructor) : (e.value = !0),
+ (r = 'constructor'))),
+ this.finalize(n, new a.MethodDefinition(i, c, s, r, l))
+ );
+ }),
+ (e.prototype.parseClassElementList = function () {
+ var e = [],
+ t = { value: !1 };
+ for (this.expect('{'); !this.match('}'); )
+ this.match(';') ? this.nextToken() : e.push(this.parseClassElement(t));
+ return this.expect('}'), e;
+ }),
+ (e.prototype.parseClassBody = function () {
+ var e = this.createNode(),
+ t = this.parseClassElementList();
+ return this.finalize(e, new a.ClassBody(t));
+ }),
+ (e.prototype.parseClassDeclaration = function (e) {
+ var t = this.createNode(),
+ n = this.context.strict;
+ (this.context.strict = !0), this.expectKeyword('class');
+ var r = e && 3 !== this.lookahead.type ? null : this.parseVariableIdentifier(),
+ i = null;
+ this.matchKeyword('extends') &&
+ (this.nextToken(), (i = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall)));
+ var o = this.parseClassBody();
+ return (this.context.strict = n), this.finalize(t, new a.ClassDeclaration(r, i, o));
+ }),
+ (e.prototype.parseClassExpression = function () {
+ var e = this.createNode(),
+ t = this.context.strict;
+ (this.context.strict = !0), this.expectKeyword('class');
+ var n = 3 === this.lookahead.type ? this.parseVariableIdentifier() : null,
+ r = null;
+ this.matchKeyword('extends') &&
+ (this.nextToken(), (r = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall)));
+ var i = this.parseClassBody();
+ return (this.context.strict = t), this.finalize(e, new a.ClassExpression(n, r, i));
+ }),
+ (e.prototype.parseModule = function () {
+ (this.context.strict = !0), (this.context.isModule = !0), (this.scanner.isModule = !0);
+ for (var e = this.createNode(), t = this.parseDirectivePrologues(); 2 !== this.lookahead.type; )
+ t.push(this.parseStatementListItem());
+ return this.finalize(e, new a.Module(t));
+ }),
+ (e.prototype.parseScript = function () {
+ for (var e = this.createNode(), t = this.parseDirectivePrologues(); 2 !== this.lookahead.type; )
+ t.push(this.parseStatementListItem());
+ return this.finalize(e, new a.Script(t));
+ }),
+ (e.prototype.parseModuleSpecifier = function () {
+ var e = this.createNode();
+ 8 !== this.lookahead.type && this.throwError(o.Messages.InvalidModuleSpecifier);
+ var t = this.nextToken(),
+ n = this.getTokenRaw(t);
+ return this.finalize(e, new a.Literal(t.value, n));
+ }),
+ (e.prototype.parseImportSpecifier = function () {
+ var e,
+ t,
+ n = this.createNode();
+ return (
+ 3 === this.lookahead.type
+ ? ((t = e = this.parseVariableIdentifier()),
+ this.matchContextualKeyword('as') && (this.nextToken(), (t = this.parseVariableIdentifier())))
+ : ((t = e = this.parseIdentifierName()),
+ this.matchContextualKeyword('as')
+ ? (this.nextToken(), (t = this.parseVariableIdentifier()))
+ : this.throwUnexpectedToken(this.nextToken())),
+ this.finalize(n, new a.ImportSpecifier(t, e))
+ );
+ }),
+ (e.prototype.parseNamedImports = function () {
+ this.expect('{');
+ for (var e = []; !this.match('}'); )
+ e.push(this.parseImportSpecifier()), this.match('}') || this.expect(',');
+ return this.expect('}'), e;
+ }),
+ (e.prototype.parseImportDefaultSpecifier = function () {
+ var e = this.createNode(),
+ t = this.parseIdentifierName();
+ return this.finalize(e, new a.ImportDefaultSpecifier(t));
+ }),
+ (e.prototype.parseImportNamespaceSpecifier = function () {
+ var e = this.createNode();
+ this.expect('*'),
+ this.matchContextualKeyword('as') || this.throwError(o.Messages.NoAsAfterImportNamespace),
+ this.nextToken();
+ var t = this.parseIdentifierName();
+ return this.finalize(e, new a.ImportNamespaceSpecifier(t));
+ }),
+ (e.prototype.parseImportDeclaration = function () {
+ this.context.inFunctionBody && this.throwError(o.Messages.IllegalImportDeclaration);
+ var e,
+ t = this.createNode();
+ this.expectKeyword('import');
+ var n = [];
+ if (8 === this.lookahead.type) e = this.parseModuleSpecifier();
+ else {
+ if (
+ (this.match('{')
+ ? (n = n.concat(this.parseNamedImports()))
+ : this.match('*')
+ ? n.push(this.parseImportNamespaceSpecifier())
+ : this.isIdentifierName(this.lookahead) && !this.matchKeyword('default')
+ ? (n.push(this.parseImportDefaultSpecifier()),
+ this.match(',') &&
+ (this.nextToken(),
+ this.match('*')
+ ? n.push(this.parseImportNamespaceSpecifier())
+ : this.match('{')
+ ? (n = n.concat(this.parseNamedImports()))
+ : this.throwUnexpectedToken(this.lookahead)))
+ : this.throwUnexpectedToken(this.nextToken()),
+ !this.matchContextualKeyword('from'))
+ ) {
+ var r = this.lookahead.value ? o.Messages.UnexpectedToken : o.Messages.MissingFromClause;
+ this.throwError(r, this.lookahead.value);
+ }
+ this.nextToken(), (e = this.parseModuleSpecifier());
+ }
+ return this.consumeSemicolon(), this.finalize(t, new a.ImportDeclaration(n, e));
+ }),
+ (e.prototype.parseExportSpecifier = function () {
+ var e = this.createNode(),
+ t = this.parseIdentifierName(),
+ n = t;
+ return (
+ this.matchContextualKeyword('as') && (this.nextToken(), (n = this.parseIdentifierName())),
+ this.finalize(e, new a.ExportSpecifier(t, n))
+ );
+ }),
+ (e.prototype.parseExportDeclaration = function () {
+ this.context.inFunctionBody && this.throwError(o.Messages.IllegalExportDeclaration);
+ var e,
+ t = this.createNode();
+ if ((this.expectKeyword('export'), this.matchKeyword('default')))
+ if ((this.nextToken(), this.matchKeyword('function'))) {
+ var n = this.parseFunctionDeclaration(!0);
+ e = this.finalize(t, new a.ExportDefaultDeclaration(n));
+ } else
+ this.matchKeyword('class')
+ ? ((n = this.parseClassDeclaration(!0)),
+ (e = this.finalize(t, new a.ExportDefaultDeclaration(n))))
+ : this.matchContextualKeyword('async')
+ ? ((n = this.matchAsyncFunction()
+ ? this.parseFunctionDeclaration(!0)
+ : this.parseAssignmentExpression()),
+ (e = this.finalize(t, new a.ExportDefaultDeclaration(n))))
+ : (this.matchContextualKeyword('from') &&
+ this.throwError(o.Messages.UnexpectedToken, this.lookahead.value),
+ (n = this.match('{')
+ ? this.parseObjectInitializer()
+ : this.match('[')
+ ? this.parseArrayInitializer()
+ : this.parseAssignmentExpression()),
+ this.consumeSemicolon(),
+ (e = this.finalize(t, new a.ExportDefaultDeclaration(n))));
+ else if (this.match('*')) {
+ if ((this.nextToken(), !this.matchContextualKeyword('from'))) {
+ var r = this.lookahead.value ? o.Messages.UnexpectedToken : o.Messages.MissingFromClause;
+ this.throwError(r, this.lookahead.value);
+ }
+ this.nextToken();
+ var i = this.parseModuleSpecifier();
+ this.consumeSemicolon(), (e = this.finalize(t, new a.ExportAllDeclaration(i)));
+ } else if (4 === this.lookahead.type) {
+ switch (((n = void 0), this.lookahead.value)) {
+ case 'let':
+ case 'const':
+ n = this.parseLexicalDeclaration({ inFor: !1 });
+ break;
+ case 'var':
+ case 'class':
+ case 'function':
+ n = this.parseStatementListItem();
+ break;
+ default:
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ e = this.finalize(t, new a.ExportNamedDeclaration(n, [], null));
+ } else if (this.matchAsyncFunction())
+ (n = this.parseFunctionDeclaration()),
+ (e = this.finalize(t, new a.ExportNamedDeclaration(n, [], null)));
+ else {
+ var s = [],
+ c = null,
+ u = !1;
+ for (this.expect('{'); !this.match('}'); )
+ (u = u || this.matchKeyword('default')),
+ s.push(this.parseExportSpecifier()),
+ this.match('}') || this.expect(',');
+ this.expect('}'),
+ this.matchContextualKeyword('from')
+ ? (this.nextToken(), (c = this.parseModuleSpecifier()), this.consumeSemicolon())
+ : u
+ ? ((r = this.lookahead.value ? o.Messages.UnexpectedToken : o.Messages.MissingFromClause),
+ this.throwError(r, this.lookahead.value))
+ : this.consumeSemicolon(),
+ (e = this.finalize(t, new a.ExportNamedDeclaration(null, s, c)));
+ }
+ return e;
+ }),
+ e
+ );
+ })();
+ t.Parser = l;
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 }),
+ (t.assert = function (e, t) {
+ if (!e) throw new Error('ASSERT: ' + t);
+ });
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var n = (function () {
+ function e() {
+ (this.errors = []), (this.tolerant = !1);
+ }
+ return (
+ (e.prototype.recordError = function (e) {
+ this.errors.push(e);
+ }),
+ (e.prototype.tolerate = function (e) {
+ if (!this.tolerant) throw e;
+ this.recordError(e);
+ }),
+ (e.prototype.constructError = function (e, t) {
+ var n = new Error(e);
+ try {
+ throw n;
+ } catch (e) {
+ Object.create &&
+ Object.defineProperty &&
+ ((n = Object.create(e)), Object.defineProperty(n, 'column', { value: t }));
+ }
+ return n;
+ }),
+ (e.prototype.createError = function (e, t, n, r) {
+ var i = 'Line ' + t + ': ' + r,
+ o = this.constructError(i, n);
+ return (o.index = e), (o.lineNumber = t), (o.description = r), o;
+ }),
+ (e.prototype.throwError = function (e, t, n, r) {
+ throw this.createError(e, t, n, r);
+ }),
+ (e.prototype.tolerateError = function (e, t, n, r) {
+ var i = this.createError(e, t, n, r);
+ if (!this.tolerant) throw i;
+ this.recordError(i);
+ }),
+ e
+ );
+ })();
+ t.ErrorHandler = n;
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 }),
+ (t.Messages = {
+ BadGetterArity: 'Getter must not have any formal parameters',
+ BadSetterArity: 'Setter must have exactly one formal parameter',
+ BadSetterRestParameter: 'Setter function argument must not be a rest parameter',
+ ConstructorIsAsync: 'Class constructor may not be an async method',
+ ConstructorSpecialMethod: 'Class constructor may not be an accessor',
+ DeclarationMissingInitializer: 'Missing initializer in %0 declaration',
+ DefaultRestParameter: 'Unexpected token =',
+ DuplicateBinding: 'Duplicate binding %0',
+ DuplicateConstructor: 'A class may only have one constructor',
+ DuplicateProtoProperty: 'Duplicate __proto__ fields are not allowed in object literals',
+ ForInOfLoopInitializer: '%0 loop variable declaration may not have an initializer',
+ GeneratorInLegacyContext: 'Generator declarations are not allowed in legacy contexts',
+ IllegalBreak: 'Illegal break statement',
+ IllegalContinue: 'Illegal continue statement',
+ IllegalExportDeclaration: 'Unexpected token',
+ IllegalImportDeclaration: 'Unexpected token',
+ IllegalLanguageModeDirective:
+ "Illegal 'use strict' directive in function with non-simple parameter list",
+ IllegalReturn: 'Illegal return statement',
+ InvalidEscapedReservedWord: 'Keyword must not contain escaped characters',
+ InvalidHexEscapeSequence: 'Invalid hexadecimal escape sequence',
+ InvalidLHSInAssignment: 'Invalid left-hand side in assignment',
+ InvalidLHSInForIn: 'Invalid left-hand side in for-in',
+ InvalidLHSInForLoop: 'Invalid left-hand side in for-loop',
+ InvalidModuleSpecifier: 'Unexpected token',
+ InvalidRegExp: 'Invalid regular expression',
+ LetInLexicalBinding: 'let is disallowed as a lexically bound name',
+ MissingFromClause: 'Unexpected token',
+ MultipleDefaultsInSwitch: 'More than one default clause in switch statement',
+ NewlineAfterThrow: 'Illegal newline after throw',
+ NoAsAfterImportNamespace: 'Unexpected token',
+ NoCatchOrFinally: 'Missing catch or finally after try',
+ ParameterAfterRestParameter: 'Rest parameter must be last formal parameter',
+ Redeclaration: "%0 '%1' has already been declared",
+ StaticPrototype: 'Classes may not have static property named prototype',
+ StrictCatchVariable: 'Catch variable may not be eval or arguments in strict mode',
+ StrictDelete: 'Delete of an unqualified identifier in strict mode.',
+ StrictFunction: 'In strict mode code, functions can only be declared at top level or inside a block',
+ StrictFunctionName: 'Function name may not be eval or arguments in strict mode',
+ StrictLHSAssignment: 'Assignment to eval or arguments is not allowed in strict mode',
+ StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode',
+ StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode',
+ StrictModeWith: 'Strict mode code may not include a with statement',
+ StrictOctalLiteral: 'Octal literals are not allowed in strict mode.',
+ StrictParamDupe: 'Strict mode function may not have duplicate parameter names',
+ StrictParamName: 'Parameter name eval or arguments is not allowed in strict mode',
+ StrictReservedWord: 'Use of future reserved word in strict mode',
+ StrictVarName: 'Variable name may not be eval or arguments in strict mode',
+ TemplateOctalLiteral: 'Octal literals are not allowed in template strings.',
+ UnexpectedEOS: 'Unexpected end of input',
+ UnexpectedIdentifier: 'Unexpected identifier',
+ UnexpectedNumber: 'Unexpected number',
+ UnexpectedReserved: 'Unexpected reserved word',
+ UnexpectedString: 'Unexpected string',
+ UnexpectedTemplate: 'Unexpected quasi %0',
+ UnexpectedToken: 'Unexpected token %0',
+ UnexpectedTokenIllegal: 'Unexpected token ILLEGAL',
+ UnknownLabel: "Undefined label '%0'",
+ UnterminatedRegExp: 'Invalid regular expression: missing /',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(9),
+ i = n(4),
+ o = n(11);
+ function a(e) {
+ return '0123456789abcdef'.indexOf(e.toLowerCase());
+ }
+ function s(e) {
+ return '01234567'.indexOf(e);
+ }
+ var c = (function () {
+ function e(e, t) {
+ (this.source = e),
+ (this.errorHandler = t),
+ (this.trackComment = !1),
+ (this.isModule = !1),
+ (this.length = e.length),
+ (this.index = 0),
+ (this.lineNumber = e.length > 0 ? 1 : 0),
+ (this.lineStart = 0),
+ (this.curlyStack = []);
+ }
+ return (
+ (e.prototype.saveState = function () {
+ return { index: this.index, lineNumber: this.lineNumber, lineStart: this.lineStart };
+ }),
+ (e.prototype.restoreState = function (e) {
+ (this.index = e.index), (this.lineNumber = e.lineNumber), (this.lineStart = e.lineStart);
+ }),
+ (e.prototype.eof = function () {
+ return this.index >= this.length;
+ }),
+ (e.prototype.throwUnexpectedToken = function (e) {
+ return (
+ void 0 === e && (e = o.Messages.UnexpectedTokenIllegal),
+ this.errorHandler.throwError(this.index, this.lineNumber, this.index - this.lineStart + 1, e)
+ );
+ }),
+ (e.prototype.tolerateUnexpectedToken = function (e) {
+ void 0 === e && (e = o.Messages.UnexpectedTokenIllegal),
+ this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, e);
+ }),
+ (e.prototype.skipSingleLineComment = function (e) {
+ var t,
+ n,
+ r = [];
+ for (
+ this.trackComment &&
+ ((r = []),
+ (t = this.index - e),
+ (n = { start: { line: this.lineNumber, column: this.index - this.lineStart - e }, end: {} }));
+ !this.eof();
+
+ ) {
+ var o = this.source.charCodeAt(this.index);
+ if ((++this.index, i.Character.isLineTerminator(o))) {
+ if (this.trackComment) {
+ n.end = { line: this.lineNumber, column: this.index - this.lineStart - 1 };
+ var a = { multiLine: !1, slice: [t + e, this.index - 1], range: [t, this.index - 1], loc: n };
+ r.push(a);
+ }
+ return (
+ 13 === o && 10 === this.source.charCodeAt(this.index) && ++this.index,
+ ++this.lineNumber,
+ (this.lineStart = this.index),
+ r
+ );
+ }
+ }
+ return (
+ this.trackComment &&
+ ((n.end = { line: this.lineNumber, column: this.index - this.lineStart }),
+ (a = { multiLine: !1, slice: [t + e, this.index], range: [t, this.index], loc: n }),
+ r.push(a)),
+ r
+ );
+ }),
+ (e.prototype.skipMultiLineComment = function () {
+ var e,
+ t,
+ n = [];
+ for (
+ this.trackComment &&
+ ((n = []),
+ (e = this.index - 2),
+ (t = { start: { line: this.lineNumber, column: this.index - this.lineStart - 2 }, end: {} }));
+ !this.eof();
+
+ ) {
+ var r = this.source.charCodeAt(this.index);
+ if (i.Character.isLineTerminator(r))
+ 13 === r && 10 === this.source.charCodeAt(this.index + 1) && ++this.index,
+ ++this.lineNumber,
+ ++this.index,
+ (this.lineStart = this.index);
+ else if (42 === r) {
+ if (47 === this.source.charCodeAt(this.index + 1)) {
+ if (((this.index += 2), this.trackComment)) {
+ t.end = { line: this.lineNumber, column: this.index - this.lineStart };
+ var o = { multiLine: !0, slice: [e + 2, this.index - 2], range: [e, this.index], loc: t };
+ n.push(o);
+ }
+ return n;
+ }
+ ++this.index;
+ } else ++this.index;
+ }
+ return (
+ this.trackComment &&
+ ((t.end = { line: this.lineNumber, column: this.index - this.lineStart }),
+ (o = { multiLine: !0, slice: [e + 2, this.index], range: [e, this.index], loc: t }),
+ n.push(o)),
+ this.tolerateUnexpectedToken(),
+ n
+ );
+ }),
+ (e.prototype.scanComments = function () {
+ var e;
+ this.trackComment && (e = []);
+ for (var t = 0 === this.index; !this.eof(); ) {
+ var n = this.source.charCodeAt(this.index);
+ if (i.Character.isWhiteSpace(n)) ++this.index;
+ else if (i.Character.isLineTerminator(n))
+ ++this.index,
+ 13 === n && 10 === this.source.charCodeAt(this.index) && ++this.index,
+ ++this.lineNumber,
+ (this.lineStart = this.index),
+ (t = !0);
+ else if (47 === n)
+ if (47 === (n = this.source.charCodeAt(this.index + 1))) {
+ this.index += 2;
+ var r = this.skipSingleLineComment(2);
+ this.trackComment && (e = e.concat(r)), (t = !0);
+ } else {
+ if (42 !== n) break;
+ (this.index += 2), (r = this.skipMultiLineComment()), this.trackComment && (e = e.concat(r));
+ }
+ else if (t && 45 === n) {
+ if (
+ 45 !== this.source.charCodeAt(this.index + 1) ||
+ 62 !== this.source.charCodeAt(this.index + 2)
+ )
+ break;
+ (this.index += 3), (r = this.skipSingleLineComment(3)), this.trackComment && (e = e.concat(r));
+ } else {
+ if (60 !== n || this.isModule) break;
+ if ('!--' !== this.source.slice(this.index + 1, this.index + 4)) break;
+ (this.index += 4), (r = this.skipSingleLineComment(4)), this.trackComment && (e = e.concat(r));
+ }
+ }
+ return e;
+ }),
+ (e.prototype.isFutureReservedWord = function (e) {
+ switch (e) {
+ case 'enum':
+ case 'export':
+ case 'import':
+ case 'super':
+ return !0;
+ default:
+ return !1;
+ }
+ }),
+ (e.prototype.isStrictModeReservedWord = function (e) {
+ switch (e) {
+ case 'implements':
+ case 'interface':
+ case 'package':
+ case 'private':
+ case 'protected':
+ case 'public':
+ case 'static':
+ case 'yield':
+ case 'let':
+ return !0;
+ default:
+ return !1;
+ }
+ }),
+ (e.prototype.isRestrictedWord = function (e) {
+ return 'eval' === e || 'arguments' === e;
+ }),
+ (e.prototype.isKeyword = function (e) {
+ switch (e.length) {
+ case 2:
+ return 'if' === e || 'in' === e || 'do' === e;
+ case 3:
+ return 'var' === e || 'for' === e || 'new' === e || 'try' === e || 'let' === e;
+ case 4:
+ return (
+ 'this' === e || 'else' === e || 'case' === e || 'void' === e || 'with' === e || 'enum' === e
+ );
+ case 5:
+ return (
+ 'while' === e ||
+ 'break' === e ||
+ 'catch' === e ||
+ 'throw' === e ||
+ 'const' === e ||
+ 'yield' === e ||
+ 'class' === e ||
+ 'super' === e
+ );
+ case 6:
+ return (
+ 'return' === e ||
+ 'typeof' === e ||
+ 'delete' === e ||
+ 'switch' === e ||
+ 'export' === e ||
+ 'import' === e
+ );
+ case 7:
+ return 'default' === e || 'finally' === e || 'extends' === e;
+ case 8:
+ return 'function' === e || 'continue' === e || 'debugger' === e;
+ case 10:
+ return 'instanceof' === e;
+ default:
+ return !1;
+ }
+ }),
+ (e.prototype.codePointAt = function (e) {
+ var t = this.source.charCodeAt(e);
+ if (t >= 55296 && t <= 56319) {
+ var n = this.source.charCodeAt(e + 1);
+ n >= 56320 && n <= 57343 && (t = 1024 * (t - 55296) + n - 56320 + 65536);
+ }
+ return t;
+ }),
+ (e.prototype.scanHexEscape = function (e) {
+ for (var t = 'u' === e ? 4 : 2, n = 0, r = 0; r < t; ++r) {
+ if (this.eof() || !i.Character.isHexDigit(this.source.charCodeAt(this.index))) return null;
+ n = 16 * n + a(this.source[this.index++]);
+ }
+ return String.fromCharCode(n);
+ }),
+ (e.prototype.scanUnicodeCodePointEscape = function () {
+ var e = this.source[this.index],
+ t = 0;
+ for (
+ '}' === e && this.throwUnexpectedToken();
+ !this.eof() && ((e = this.source[this.index++]), i.Character.isHexDigit(e.charCodeAt(0)));
+
+ )
+ t = 16 * t + a(e);
+ return (t > 1114111 || '}' !== e) && this.throwUnexpectedToken(), i.Character.fromCodePoint(t);
+ }),
+ (e.prototype.getIdentifier = function () {
+ for (var e = this.index++; !this.eof(); ) {
+ var t = this.source.charCodeAt(this.index);
+ if (92 === t) return (this.index = e), this.getComplexIdentifier();
+ if (t >= 55296 && t < 57343) return (this.index = e), this.getComplexIdentifier();
+ if (!i.Character.isIdentifierPart(t)) break;
+ ++this.index;
+ }
+ return this.source.slice(e, this.index);
+ }),
+ (e.prototype.getComplexIdentifier = function () {
+ var e,
+ t = this.codePointAt(this.index),
+ n = i.Character.fromCodePoint(t);
+ for (
+ this.index += n.length,
+ 92 === t &&
+ (117 !== this.source.charCodeAt(this.index) && this.throwUnexpectedToken(),
+ ++this.index,
+ '{' === this.source[this.index]
+ ? (++this.index, (e = this.scanUnicodeCodePointEscape()))
+ : (null !== (e = this.scanHexEscape('u')) &&
+ '\\' !== e &&
+ i.Character.isIdentifierStart(e.charCodeAt(0))) ||
+ this.throwUnexpectedToken(),
+ (n = e));
+ !this.eof() && ((t = this.codePointAt(this.index)), i.Character.isIdentifierPart(t));
+
+ )
+ (n += e = i.Character.fromCodePoint(t)),
+ (this.index += e.length),
+ 92 === t &&
+ ((n = n.substr(0, n.length - 1)),
+ 117 !== this.source.charCodeAt(this.index) && this.throwUnexpectedToken(),
+ ++this.index,
+ '{' === this.source[this.index]
+ ? (++this.index, (e = this.scanUnicodeCodePointEscape()))
+ : (null !== (e = this.scanHexEscape('u')) &&
+ '\\' !== e &&
+ i.Character.isIdentifierPart(e.charCodeAt(0))) ||
+ this.throwUnexpectedToken(),
+ (n += e));
+ return n;
+ }),
+ (e.prototype.octalToDecimal = function (e) {
+ var t = '0' !== e,
+ n = s(e);
+ return (
+ !this.eof() &&
+ i.Character.isOctalDigit(this.source.charCodeAt(this.index)) &&
+ ((t = !0),
+ (n = 8 * n + s(this.source[this.index++])),
+ '0123'.indexOf(e) >= 0 &&
+ !this.eof() &&
+ i.Character.isOctalDigit(this.source.charCodeAt(this.index)) &&
+ (n = 8 * n + s(this.source[this.index++]))),
+ { code: n, octal: t }
+ );
+ }),
+ (e.prototype.scanIdentifier = function () {
+ var e,
+ t = this.index,
+ n = 92 === this.source.charCodeAt(t) ? this.getComplexIdentifier() : this.getIdentifier();
+ if (
+ 3 !=
+ (e =
+ 1 === n.length
+ ? 3
+ : this.isKeyword(n)
+ ? 4
+ : 'null' === n
+ ? 5
+ : 'true' === n || 'false' === n
+ ? 1
+ : 3) &&
+ t + n.length !== this.index
+ ) {
+ var r = this.index;
+ (this.index = t),
+ this.tolerateUnexpectedToken(o.Messages.InvalidEscapedReservedWord),
+ (this.index = r);
+ }
+ return {
+ type: e,
+ value: n,
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: t,
+ end: this.index,
+ };
+ }),
+ (e.prototype.scanPunctuator = function () {
+ var e = this.index,
+ t = this.source[this.index];
+ switch (t) {
+ case '(':
+ case '{':
+ '{' === t && this.curlyStack.push('{'), ++this.index;
+ break;
+ case '.':
+ ++this.index,
+ '.' === this.source[this.index] &&
+ '.' === this.source[this.index + 1] &&
+ ((this.index += 2), (t = '...'));
+ break;
+ case '}':
+ ++this.index, this.curlyStack.pop();
+ break;
+ case ')':
+ case ';':
+ case ',':
+ case '[':
+ case ']':
+ case ':':
+ case '?':
+ case '~':
+ ++this.index;
+ break;
+ default:
+ '>>>=' === (t = this.source.substr(this.index, 4))
+ ? (this.index += 4)
+ : '===' === (t = t.substr(0, 3)) ||
+ '!==' === t ||
+ '>>>' === t ||
+ '<<=' === t ||
+ '>>=' === t ||
+ '**=' === t
+ ? (this.index += 3)
+ : '&&' === (t = t.substr(0, 2)) ||
+ '||' === t ||
+ '==' === t ||
+ '!=' === t ||
+ '+=' === t ||
+ '-=' === t ||
+ '*=' === t ||
+ '/=' === t ||
+ '++' === t ||
+ '--' === t ||
+ '<<' === t ||
+ '>>' === t ||
+ '&=' === t ||
+ '|=' === t ||
+ '^=' === t ||
+ '%=' === t ||
+ '<=' === t ||
+ '>=' === t ||
+ '=>' === t ||
+ '**' === t
+ ? (this.index += 2)
+ : ((t = this.source[this.index]), '<>=!+-*%&|^/'.indexOf(t) >= 0 && ++this.index);
+ }
+ return (
+ this.index === e && this.throwUnexpectedToken(),
+ {
+ type: 7,
+ value: t,
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: e,
+ end: this.index,
+ }
+ );
+ }),
+ (e.prototype.scanHexLiteral = function (e) {
+ for (var t = ''; !this.eof() && i.Character.isHexDigit(this.source.charCodeAt(this.index)); )
+ t += this.source[this.index++];
+ return (
+ 0 === t.length && this.throwUnexpectedToken(),
+ i.Character.isIdentifierStart(this.source.charCodeAt(this.index)) && this.throwUnexpectedToken(),
+ {
+ type: 6,
+ value: parseInt('0x' + t, 16),
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: e,
+ end: this.index,
+ }
+ );
+ }),
+ (e.prototype.scanBinaryLiteral = function (e) {
+ for (var t, n = ''; !this.eof() && ('0' === (t = this.source[this.index]) || '1' === t); )
+ n += this.source[this.index++];
+ return (
+ 0 === n.length && this.throwUnexpectedToken(),
+ this.eof() ||
+ ((t = this.source.charCodeAt(this.index)),
+ (i.Character.isIdentifierStart(t) || i.Character.isDecimalDigit(t)) &&
+ this.throwUnexpectedToken()),
+ {
+ type: 6,
+ value: parseInt(n, 2),
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: e,
+ end: this.index,
+ }
+ );
+ }),
+ (e.prototype.scanOctalLiteral = function (e, t) {
+ var n = '',
+ r = !1;
+ for (
+ i.Character.isOctalDigit(e.charCodeAt(0))
+ ? ((r = !0), (n = '0' + this.source[this.index++]))
+ : ++this.index;
+ !this.eof() && i.Character.isOctalDigit(this.source.charCodeAt(this.index));
+
+ )
+ n += this.source[this.index++];
+ return (
+ r || 0 !== n.length || this.throwUnexpectedToken(),
+ (i.Character.isIdentifierStart(this.source.charCodeAt(this.index)) ||
+ i.Character.isDecimalDigit(this.source.charCodeAt(this.index))) &&
+ this.throwUnexpectedToken(),
+ {
+ type: 6,
+ value: parseInt(n, 8),
+ octal: r,
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: t,
+ end: this.index,
+ }
+ );
+ }),
+ (e.prototype.isImplicitOctalLiteral = function () {
+ for (var e = this.index + 1; e < this.length; ++e) {
+ var t = this.source[e];
+ if ('8' === t || '9' === t) return !1;
+ if (!i.Character.isOctalDigit(t.charCodeAt(0))) return !0;
+ }
+ return !0;
+ }),
+ (e.prototype.scanNumericLiteral = function () {
+ var e = this.index,
+ t = this.source[e];
+ r.assert(
+ i.Character.isDecimalDigit(t.charCodeAt(0)) || '.' === t,
+ 'Numeric literal must start with a decimal digit or a decimal point'
+ );
+ var n = '';
+ if ('.' !== t) {
+ if (((n = this.source[this.index++]), (t = this.source[this.index]), '0' === n)) {
+ if ('x' === t || 'X' === t) return ++this.index, this.scanHexLiteral(e);
+ if ('b' === t || 'B' === t) return ++this.index, this.scanBinaryLiteral(e);
+ if ('o' === t || 'O' === t) return this.scanOctalLiteral(t, e);
+ if (t && i.Character.isOctalDigit(t.charCodeAt(0)) && this.isImplicitOctalLiteral())
+ return this.scanOctalLiteral(t, e);
+ }
+ for (; i.Character.isDecimalDigit(this.source.charCodeAt(this.index)); )
+ n += this.source[this.index++];
+ t = this.source[this.index];
+ }
+ if ('.' === t) {
+ for (
+ n += this.source[this.index++];
+ i.Character.isDecimalDigit(this.source.charCodeAt(this.index));
+
+ )
+ n += this.source[this.index++];
+ t = this.source[this.index];
+ }
+ if ('e' === t || 'E' === t)
+ if (
+ ((n += this.source[this.index++]),
+ ('+' !== (t = this.source[this.index]) && '-' !== t) || (n += this.source[this.index++]),
+ i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))
+ )
+ for (; i.Character.isDecimalDigit(this.source.charCodeAt(this.index)); )
+ n += this.source[this.index++];
+ else this.throwUnexpectedToken();
+ return (
+ i.Character.isIdentifierStart(this.source.charCodeAt(this.index)) && this.throwUnexpectedToken(),
+ {
+ type: 6,
+ value: parseFloat(n),
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: e,
+ end: this.index,
+ }
+ );
+ }),
+ (e.prototype.scanStringLiteral = function () {
+ var e = this.index,
+ t = this.source[e];
+ r.assert("'" === t || '"' === t, 'String literal must starts with a quote'), ++this.index;
+ for (var n = !1, a = ''; !this.eof(); ) {
+ var s = this.source[this.index++];
+ if (s === t) {
+ t = '';
+ break;
+ }
+ if ('\\' === s)
+ if ((s = this.source[this.index++]) && i.Character.isLineTerminator(s.charCodeAt(0)))
+ ++this.lineNumber,
+ '\r' === s && '\n' === this.source[this.index] && ++this.index,
+ (this.lineStart = this.index);
+ else
+ switch (s) {
+ case 'u':
+ if ('{' === this.source[this.index]) ++this.index, (a += this.scanUnicodeCodePointEscape());
+ else {
+ var c = this.scanHexEscape(s);
+ null === c && this.throwUnexpectedToken(), (a += c);
+ }
+ break;
+ case 'x':
+ var u = this.scanHexEscape(s);
+ null === u && this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence), (a += u);
+ break;
+ case 'n':
+ a += '\n';
+ break;
+ case 'r':
+ a += '\r';
+ break;
+ case 't':
+ a += '\t';
+ break;
+ case 'b':
+ a += '\b';
+ break;
+ case 'f':
+ a += '\f';
+ break;
+ case 'v':
+ a += '\v';
+ break;
+ case '8':
+ case '9':
+ (a += s), this.tolerateUnexpectedToken();
+ break;
+ default:
+ if (s && i.Character.isOctalDigit(s.charCodeAt(0))) {
+ var l = this.octalToDecimal(s);
+ (n = l.octal || n), (a += String.fromCharCode(l.code));
+ } else a += s;
+ }
+ else {
+ if (i.Character.isLineTerminator(s.charCodeAt(0))) break;
+ a += s;
+ }
+ }
+ return (
+ '' !== t && ((this.index = e), this.throwUnexpectedToken()),
+ {
+ type: 8,
+ value: a,
+ octal: n,
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: e,
+ end: this.index,
+ }
+ );
+ }),
+ (e.prototype.scanTemplate = function () {
+ var e = '',
+ t = !1,
+ n = this.index,
+ r = '`' === this.source[n],
+ a = !1,
+ s = 2;
+ for (++this.index; !this.eof(); ) {
+ var c = this.source[this.index++];
+ if ('`' === c) {
+ (s = 1), (a = !0), (t = !0);
+ break;
+ }
+ if ('$' === c) {
+ if ('{' === this.source[this.index]) {
+ this.curlyStack.push('${'), ++this.index, (t = !0);
+ break;
+ }
+ e += c;
+ } else if ('\\' === c)
+ if (((c = this.source[this.index++]), i.Character.isLineTerminator(c.charCodeAt(0))))
+ ++this.lineNumber,
+ '\r' === c && '\n' === this.source[this.index] && ++this.index,
+ (this.lineStart = this.index);
+ else
+ switch (c) {
+ case 'n':
+ e += '\n';
+ break;
+ case 'r':
+ e += '\r';
+ break;
+ case 't':
+ e += '\t';
+ break;
+ case 'u':
+ if ('{' === this.source[this.index]) ++this.index, (e += this.scanUnicodeCodePointEscape());
+ else {
+ var u = this.index,
+ l = this.scanHexEscape(c);
+ null !== l ? (e += l) : ((this.index = u), (e += c));
+ }
+ break;
+ case 'x':
+ var p = this.scanHexEscape(c);
+ null === p && this.throwUnexpectedToken(o.Messages.InvalidHexEscapeSequence), (e += p);
+ break;
+ case 'b':
+ e += '\b';
+ break;
+ case 'f':
+ e += '\f';
+ break;
+ case 'v':
+ e += '\v';
+ break;
+ default:
+ '0' === c
+ ? (i.Character.isDecimalDigit(this.source.charCodeAt(this.index)) &&
+ this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral),
+ (e += '\0'))
+ : i.Character.isOctalDigit(c.charCodeAt(0))
+ ? this.throwUnexpectedToken(o.Messages.TemplateOctalLiteral)
+ : (e += c);
+ }
+ else
+ i.Character.isLineTerminator(c.charCodeAt(0))
+ ? (++this.lineNumber,
+ '\r' === c && '\n' === this.source[this.index] && ++this.index,
+ (this.lineStart = this.index),
+ (e += '\n'))
+ : (e += c);
+ }
+ return (
+ t || this.throwUnexpectedToken(),
+ r || this.curlyStack.pop(),
+ {
+ type: 10,
+ value: this.source.slice(n + 1, this.index - s),
+ cooked: e,
+ head: r,
+ tail: a,
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: n,
+ end: this.index,
+ }
+ );
+ }),
+ (e.prototype.testRegExp = function (e, t) {
+ var n = e,
+ r = this;
+ t.indexOf('u') >= 0 &&
+ (n = n
+ .replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g, function (e, t, n) {
+ var i = parseInt(t || n, 16);
+ return (
+ i > 1114111 && r.throwUnexpectedToken(o.Messages.InvalidRegExp),
+ i <= 65535 ? String.fromCharCode(i) : ''
+ );
+ })
+ .replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, ''));
+ try {
+ RegExp(n);
+ } catch (e) {
+ this.throwUnexpectedToken(o.Messages.InvalidRegExp);
+ }
+ try {
+ return new RegExp(e, t);
+ } catch (e) {
+ return null;
+ }
+ }),
+ (e.prototype.scanRegExpBody = function () {
+ var e = this.source[this.index];
+ r.assert('/' === e, 'Regular expression literal must start with a slash');
+ for (var t = this.source[this.index++], n = !1, a = !1; !this.eof(); )
+ if (((t += e = this.source[this.index++]), '\\' === e))
+ (e = this.source[this.index++]),
+ i.Character.isLineTerminator(e.charCodeAt(0)) &&
+ this.throwUnexpectedToken(o.Messages.UnterminatedRegExp),
+ (t += e);
+ else if (i.Character.isLineTerminator(e.charCodeAt(0)))
+ this.throwUnexpectedToken(o.Messages.UnterminatedRegExp);
+ else if (n) ']' === e && (n = !1);
+ else {
+ if ('/' === e) {
+ a = !0;
+ break;
+ }
+ '[' === e && (n = !0);
+ }
+ return a || this.throwUnexpectedToken(o.Messages.UnterminatedRegExp), t.substr(1, t.length - 2);
+ }),
+ (e.prototype.scanRegExpFlags = function () {
+ for (var e = ''; !this.eof(); ) {
+ var t = this.source[this.index];
+ if (!i.Character.isIdentifierPart(t.charCodeAt(0))) break;
+ if ((++this.index, '\\' !== t || this.eof())) e += t;
+ else if ('u' === (t = this.source[this.index])) {
+ ++this.index;
+ var n = this.index,
+ r = this.scanHexEscape('u');
+ if (null !== r) for (e += r; n < this.index; ++n) this.source[n];
+ else (this.index = n), (e += 'u');
+ this.tolerateUnexpectedToken();
+ } else this.tolerateUnexpectedToken();
+ }
+ return e;
+ }),
+ (e.prototype.scanRegExp = function () {
+ var e = this.index,
+ t = this.scanRegExpBody(),
+ n = this.scanRegExpFlags();
+ return {
+ type: 9,
+ value: '',
+ pattern: t,
+ flags: n,
+ regex: this.testRegExp(t, n),
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: e,
+ end: this.index,
+ };
+ }),
+ (e.prototype.lex = function () {
+ if (this.eof())
+ return {
+ type: 2,
+ value: '',
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart,
+ start: this.index,
+ end: this.index,
+ };
+ var e = this.source.charCodeAt(this.index);
+ return i.Character.isIdentifierStart(e)
+ ? this.scanIdentifier()
+ : 40 === e || 41 === e || 59 === e
+ ? this.scanPunctuator()
+ : 39 === e || 34 === e
+ ? this.scanStringLiteral()
+ : 46 === e
+ ? i.Character.isDecimalDigit(this.source.charCodeAt(this.index + 1))
+ ? this.scanNumericLiteral()
+ : this.scanPunctuator()
+ : i.Character.isDecimalDigit(e)
+ ? this.scanNumericLiteral()
+ : 96 === e || (125 === e && '${' === this.curlyStack[this.curlyStack.length - 1])
+ ? this.scanTemplate()
+ : e >= 55296 && e < 57343 && i.Character.isIdentifierStart(this.codePointAt(this.index))
+ ? this.scanIdentifier()
+ : this.scanPunctuator();
+ }),
+ e
+ );
+ })();
+ t.Scanner = c;
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 }),
+ (t.TokenName = {}),
+ (t.TokenName[1] = 'Boolean'),
+ (t.TokenName[2] = ''),
+ (t.TokenName[3] = 'Identifier'),
+ (t.TokenName[4] = 'Keyword'),
+ (t.TokenName[5] = 'Null'),
+ (t.TokenName[6] = 'Numeric'),
+ (t.TokenName[7] = 'Punctuator'),
+ (t.TokenName[8] = 'String'),
+ (t.TokenName[9] = 'RegularExpression'),
+ (t.TokenName[10] = 'Template');
+ },
+ function (e, t) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 }),
+ (t.XHTMLEntities = {
+ quot: '"',
+ amp: '&',
+ apos: "'",
+ gt: '>',
+ nbsp: ' ',
+ iexcl: '¡',
+ cent: '¢',
+ pound: '£',
+ curren: '¤',
+ yen: '¥',
+ brvbar: '¦',
+ sect: '§',
+ uml: '¨',
+ copy: '©',
+ ordf: 'ª',
+ laquo: '«',
+ not: '¬',
+ shy: '',
+ reg: '®',
+ macr: '¯',
+ deg: '°',
+ plusmn: '±',
+ sup2: '²',
+ sup3: '³',
+ acute: '´',
+ micro: 'µ',
+ para: '¶',
+ middot: '·',
+ cedil: '¸',
+ sup1: '¹',
+ ordm: 'º',
+ raquo: '»',
+ frac14: '¼',
+ frac12: '½',
+ frac34: '¾',
+ iquest: '¿',
+ Agrave: 'À',
+ Aacute: 'Á',
+ Acirc: 'Â',
+ Atilde: 'Ã',
+ Auml: 'Ä',
+ Aring: 'Å',
+ AElig: 'Æ',
+ Ccedil: 'Ç',
+ Egrave: 'È',
+ Eacute: 'É',
+ Ecirc: 'Ê',
+ Euml: 'Ë',
+ Igrave: 'Ì',
+ Iacute: 'Í',
+ Icirc: 'Î',
+ Iuml: 'Ï',
+ ETH: 'Ð',
+ Ntilde: 'Ñ',
+ Ograve: 'Ò',
+ Oacute: 'Ó',
+ Ocirc: 'Ô',
+ Otilde: 'Õ',
+ Ouml: 'Ö',
+ times: '×',
+ Oslash: 'Ø',
+ Ugrave: 'Ù',
+ Uacute: 'Ú',
+ Ucirc: 'Û',
+ Uuml: 'Ü',
+ Yacute: 'Ý',
+ THORN: 'Þ',
+ szlig: 'ß',
+ agrave: 'à',
+ aacute: 'á',
+ acirc: 'â',
+ atilde: 'ã',
+ auml: 'ä',
+ aring: 'å',
+ aelig: 'æ',
+ ccedil: 'ç',
+ egrave: 'è',
+ eacute: 'é',
+ ecirc: 'ê',
+ euml: 'ë',
+ igrave: 'ì',
+ iacute: 'í',
+ icirc: 'î',
+ iuml: 'ï',
+ eth: 'ð',
+ ntilde: 'ñ',
+ ograve: 'ò',
+ oacute: 'ó',
+ ocirc: 'ô',
+ otilde: 'õ',
+ ouml: 'ö',
+ divide: '÷',
+ oslash: 'ø',
+ ugrave: 'ù',
+ uacute: 'ú',
+ ucirc: 'û',
+ uuml: 'ü',
+ yacute: 'ý',
+ thorn: 'þ',
+ yuml: 'ÿ',
+ OElig: 'Œ',
+ oelig: 'œ',
+ Scaron: 'Š',
+ scaron: 'š',
+ Yuml: 'Ÿ',
+ fnof: 'ƒ',
+ circ: 'ˆ',
+ tilde: '˜',
+ Alpha: 'Α',
+ Beta: 'Β',
+ Gamma: 'Γ',
+ Delta: 'Δ',
+ Epsilon: 'Ε',
+ Zeta: 'Ζ',
+ Eta: 'Η',
+ Theta: 'Θ',
+ Iota: 'Ι',
+ Kappa: 'Κ',
+ Lambda: 'Λ',
+ Mu: 'Μ',
+ Nu: 'Ν',
+ Xi: 'Ξ',
+ Omicron: 'Ο',
+ Pi: 'Π',
+ Rho: 'Ρ',
+ Sigma: 'Σ',
+ Tau: 'Τ',
+ Upsilon: 'Υ',
+ Phi: 'Φ',
+ Chi: 'Χ',
+ Psi: 'Ψ',
+ Omega: 'Ω',
+ alpha: 'α',
+ beta: 'β',
+ gamma: 'γ',
+ delta: 'δ',
+ epsilon: 'ε',
+ zeta: 'ζ',
+ eta: 'η',
+ theta: 'θ',
+ iota: 'ι',
+ kappa: 'κ',
+ lambda: 'λ',
+ mu: 'μ',
+ nu: 'ν',
+ xi: 'ξ',
+ omicron: 'ο',
+ pi: 'π',
+ rho: 'ρ',
+ sigmaf: 'ς',
+ sigma: 'σ',
+ tau: 'τ',
+ upsilon: 'υ',
+ phi: 'φ',
+ chi: 'χ',
+ psi: 'ψ',
+ omega: 'ω',
+ thetasym: 'ϑ',
+ upsih: 'ϒ',
+ piv: 'ϖ',
+ ensp: ' ',
+ emsp: ' ',
+ thinsp: ' ',
+ zwnj: '',
+ zwj: '',
+ lrm: '',
+ rlm: '',
+ ndash: '–',
+ mdash: '—',
+ lsquo: '‘',
+ rsquo: '’',
+ sbquo: '‚',
+ ldquo: '“',
+ rdquo: '”',
+ bdquo: '„',
+ dagger: '†',
+ Dagger: '‡',
+ bull: '•',
+ hellip: '…',
+ permil: '‰',
+ prime: '′',
+ Prime: '″',
+ lsaquo: '‹',
+ rsaquo: '›',
+ oline: '‾',
+ frasl: '⁄',
+ euro: '€',
+ image: 'ℑ',
+ weierp: '℘',
+ real: 'ℜ',
+ trade: '™',
+ alefsym: 'ℵ',
+ larr: '←',
+ uarr: '↑',
+ rarr: '→',
+ darr: '↓',
+ harr: '↔',
+ crarr: '↵',
+ lArr: '⇐',
+ uArr: '⇑',
+ rArr: '⇒',
+ dArr: '⇓',
+ hArr: '⇔',
+ forall: '∀',
+ part: '∂',
+ exist: '∃',
+ empty: '∅',
+ nabla: '∇',
+ isin: '∈',
+ notin: '∉',
+ ni: '∋',
+ prod: '∏',
+ sum: '∑',
+ minus: '−',
+ lowast: '∗',
+ radic: '√',
+ prop: '∝',
+ infin: '∞',
+ ang: '∠',
+ and: '∧',
+ or: '∨',
+ cap: '∩',
+ cup: '∪',
+ int: '∫',
+ there4: '∴',
+ sim: '∼',
+ cong: '≅',
+ asymp: '≈',
+ ne: '≠',
+ equiv: '≡',
+ le: '≤',
+ ge: '≥',
+ sub: '⊂',
+ sup: '⊃',
+ nsub: '⊄',
+ sube: '⊆',
+ supe: '⊇',
+ oplus: '⊕',
+ otimes: '⊗',
+ perp: '⊥',
+ sdot: '⋅',
+ lceil: '⌈',
+ rceil: '⌉',
+ lfloor: '⌊',
+ rfloor: '⌋',
+ loz: '◊',
+ spades: '♠',
+ clubs: '♣',
+ hearts: '♥',
+ diams: '♦',
+ lang: '⟨',
+ rang: '⟩',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(10),
+ i = n(12),
+ o = n(13),
+ a = (function () {
+ function e() {
+ (this.values = []), (this.curly = this.paren = -1);
+ }
+ return (
+ (e.prototype.beforeFunctionExpression = function (e) {
+ return (
+ [
+ '(',
+ '{',
+ '[',
+ 'in',
+ 'typeof',
+ 'instanceof',
+ 'new',
+ 'return',
+ 'case',
+ 'delete',
+ 'throw',
+ 'void',
+ '=',
+ '+=',
+ '-=',
+ '*=',
+ '**=',
+ '/=',
+ '%=',
+ '<<=',
+ '>>=',
+ '>>>=',
+ '&=',
+ '|=',
+ '^=',
+ ',',
+ '+',
+ '-',
+ '*',
+ '**',
+ '/',
+ '%',
+ '++',
+ '--',
+ '<<',
+ '>>',
+ '>>>',
+ '&',
+ '|',
+ '^',
+ '!',
+ '~',
+ '&&',
+ '||',
+ '?',
+ ':',
+ '===',
+ '==',
+ '>=',
+ '<=',
+ '<',
+ '>',
+ '!=',
+ '!==',
+ ].indexOf(e) >= 0
+ );
+ }),
+ (e.prototype.isRegexStart = function () {
+ var e = this.values[this.values.length - 1],
+ t = null !== e;
+ switch (e) {
+ case 'this':
+ case ']':
+ t = !1;
+ break;
+ case ')':
+ var n = this.values[this.paren - 1];
+ t = 'if' === n || 'while' === n || 'for' === n || 'with' === n;
+ break;
+ case '}':
+ if (((t = !1), 'function' === this.values[this.curly - 3]))
+ t = !!(r = this.values[this.curly - 4]) && !this.beforeFunctionExpression(r);
+ else if ('function' === this.values[this.curly - 4]) {
+ var r;
+ t = !(r = this.values[this.curly - 5]) || !this.beforeFunctionExpression(r);
+ }
+ }
+ return t;
+ }),
+ (e.prototype.push = function (e) {
+ 7 === e.type || 4 === e.type
+ ? ('{' === e.value
+ ? (this.curly = this.values.length)
+ : '(' === e.value && (this.paren = this.values.length),
+ this.values.push(e.value))
+ : this.values.push(null);
+ }),
+ e
+ );
+ })(),
+ s = (function () {
+ function e(e, t) {
+ (this.errorHandler = new r.ErrorHandler()),
+ (this.errorHandler.tolerant = !!t && 'boolean' == typeof t.tolerant && t.tolerant),
+ (this.scanner = new i.Scanner(e, this.errorHandler)),
+ (this.scanner.trackComment = !!t && 'boolean' == typeof t.comment && t.comment),
+ (this.trackRange = !!t && 'boolean' == typeof t.range && t.range),
+ (this.trackLoc = !!t && 'boolean' == typeof t.loc && t.loc),
+ (this.buffer = []),
+ (this.reader = new a());
+ }
+ return (
+ (e.prototype.errors = function () {
+ return this.errorHandler.errors;
+ }),
+ (e.prototype.getNextToken = function () {
+ if (0 === this.buffer.length) {
+ var e = this.scanner.scanComments();
+ if (this.scanner.trackComment)
+ for (var t = 0; t < e.length; ++t) {
+ var n = e[t],
+ r = this.scanner.source.slice(n.slice[0], n.slice[1]),
+ i = { type: n.multiLine ? 'BlockComment' : 'LineComment', value: r };
+ this.trackRange && (i.range = n.range), this.trackLoc && (i.loc = n.loc), this.buffer.push(i);
+ }
+ if (!this.scanner.eof()) {
+ var a = void 0;
+ this.trackLoc &&
+ (a = {
+ start: {
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart,
+ },
+ end: {},
+ });
+ var s =
+ '/' === this.scanner.source[this.scanner.index] && this.reader.isRegexStart()
+ ? this.scanner.scanRegExp()
+ : this.scanner.lex();
+ this.reader.push(s);
+ var c = { type: o.TokenName[s.type], value: this.scanner.source.slice(s.start, s.end) };
+ if (
+ (this.trackRange && (c.range = [s.start, s.end]),
+ this.trackLoc &&
+ ((a.end = {
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart,
+ }),
+ (c.loc = a)),
+ 9 === s.type)
+ ) {
+ var u = s.pattern,
+ l = s.flags;
+ c.regex = { pattern: u, flags: l };
+ }
+ this.buffer.push(c);
+ }
+ }
+ return this.buffer.shift();
+ }),
+ e
+ );
+ })();
+ t.Tokenizer = s;
+ },
+ ]);
+ }),
+ (e.exports = r());
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(23),
+ i = n(32),
+ o = n(45),
+ a = n(33),
+ s = Object.prototype.toString,
+ c = Object.prototype.hasOwnProperty,
+ u = {
+ 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',
+ },
+ l = ['y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'];
+ function p(e) {
+ var t, n, o;
+ if (((t = e.toString(16).toUpperCase()), e <= 255)) (n = 'x'), (o = 2);
+ else if (e <= 65535) (n = 'u'), (o = 4);
+ else {
+ if (!(e <= 4294967295)) throw new i('code point within a string may not be greater than 0xFFFFFFFF');
+ (n = 'U'), (o = 8);
+ }
+ return '\\' + n + r.repeat('0', o - t.length) + t;
+ }
+ function f(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 = r.isNothing(e.flowLevel) ? -1 : e.flowLevel),
+ (this.styleMap = (function (e, t) {
+ var n, r, i, o, a, s, u;
+ if (null === t) return {};
+ for (n = {}, i = 0, o = (r = Object.keys(t)).length; i < o; i += 1)
+ (a = r[i]),
+ (s = String(t[a])),
+ '!!' === a.slice(0, 2) && (a = 'tag:yaml.org,2002:' + a.slice(2)),
+ (u = e.compiledTypeMap.fallback[a]) && c.call(u.styleAliases, s) && (s = u.styleAliases[s]),
+ (n[a] = s);
+ return n;
+ })(this.schema, e.styles || null)),
+ (this.sortKeys = e.sortKeys || !1),
+ (this.lineWidth = e.lineWidth || 80),
+ (this.noRefs = e.noRefs || !1),
+ (this.noCompatMode = e.noCompatMode || !1),
+ (this.condenseFlow = e.condenseFlow || !1),
+ (this.implicitTypes = this.schema.compiledImplicit),
+ (this.explicitTypes = this.schema.compiledExplicit),
+ (this.tag = null),
+ (this.result = ''),
+ (this.duplicates = []),
+ (this.usedDuplicates = null);
+ }
+ function h(e, t) {
+ for (var n, i = r.repeat(' ', t), o = 0, a = -1, s = '', c = e.length; o < c; )
+ -1 === (a = e.indexOf('\n', o)) ? ((n = e.slice(o)), (o = c)) : ((n = e.slice(o, a + 1)), (o = a + 1)),
+ n.length && '\n' !== n && (s += i),
+ (s += n);
+ return s;
+ }
+ function d(e, t) {
+ return '\n' + r.repeat(' ', e.indent * t);
+ }
+ function m(e) {
+ return 32 === e || 9 === e;
+ }
+ function y(e) {
+ return (
+ (32 <= e && e <= 126) ||
+ (161 <= e && e <= 55295 && 8232 !== e && 8233 !== e) ||
+ (57344 <= e && e <= 65533 && 65279 !== e) ||
+ (65536 <= e && e <= 1114111)
+ );
+ }
+ function g(e, t) {
+ return (
+ y(e) &&
+ 65279 !== e &&
+ 44 !== e &&
+ 91 !== e &&
+ 93 !== e &&
+ 123 !== e &&
+ 125 !== e &&
+ 58 !== e &&
+ (35 !== e ||
+ (t &&
+ (function (e) {
+ return y(e) && !m(e) && 65279 !== e && 13 !== e && 10 !== e;
+ })(t)))
+ );
+ }
+ function v(e) {
+ return /^\n* /.test(e);
+ }
+ function b(e, t, n, r, i) {
+ var o,
+ a,
+ s,
+ c,
+ u = !1,
+ l = !1,
+ p = -1 !== r,
+ f = -1,
+ h =
+ 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; o < e.length; o++) {
+ if (!y((a = e.charCodeAt(o)))) return 5;
+ (s = o > 0 ? e.charCodeAt(o - 1) : null), (h = h && g(a, s));
+ }
+ else {
+ for (o = 0; o < e.length; o++) {
+ if (10 === (a = e.charCodeAt(o))) (u = !0), p && ((l = l || (o - f - 1 > r && ' ' !== e[f + 1])), (f = o));
+ else if (!y(a)) return 5;
+ (s = o > 0 ? e.charCodeAt(o - 1) : null), (h = h && g(a, s));
+ }
+ l = l || (p && o - f - 1 > r && ' ' !== e[f + 1]);
+ }
+ return u || l ? (n > 9 && v(e) ? 5 : l ? 4 : 3) : h && !i(e) ? 1 : 2;
+ }
+ function x(e, t, n, r) {
+ e.dump = (function () {
+ if (0 === t.length) return "''";
+ if (!e.noCompatMode && -1 !== l.indexOf(t)) return "'" + t + "'";
+ var o = e.indent * Math.max(1, n),
+ a = -1 === e.lineWidth ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o),
+ s = r || (e.flowLevel > -1 && n >= e.flowLevel);
+ switch (
+ b(t, s, e.indent, a, function (t) {
+ return (function (e, t) {
+ var n, r;
+ for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (e.implicitTypes[n].resolve(t)) return !0;
+ return !1;
+ })(e, t);
+ })
+ ) {
+ case 1:
+ return t;
+ case 2:
+ return "'" + t.replace(/'/g, "''") + "'";
+ case 3:
+ return '|' + w(t, e.indent) + E(h(t, o));
+ case 4:
+ return (
+ '>' +
+ w(t, e.indent) +
+ E(
+ h(
+ (function (e, t) {
+ var n,
+ r,
+ i = /(\n+)([^\n]*)/g,
+ o =
+ ((s = e.indexOf('\n')),
+ (s = -1 !== s ? s : e.length),
+ (i.lastIndex = s),
+ _(e.slice(0, s), t)),
+ a = '\n' === e[0] || ' ' === e[0];
+ var s;
+ for (; (r = i.exec(e)); ) {
+ var c = r[1],
+ u = r[2];
+ (n = ' ' === u[0]), (o += c + (a || n || '' === u ? '' : '\n') + _(u, t)), (a = n);
+ }
+ return o;
+ })(t, a),
+ o
+ )
+ )
+ );
+ case 5:
+ return (
+ '"' +
+ (function (e) {
+ for (var t, n, r, i = '', o = 0; o < e.length; o++)
+ (t = e.charCodeAt(o)) >= 55296 && t <= 56319 && (n = e.charCodeAt(o + 1)) >= 56320 && n <= 57343
+ ? ((i += p(1024 * (t - 55296) + n - 56320 + 65536)), o++)
+ : ((r = u[t]), (i += !r && y(t) ? e[o] : r || p(t)));
+ return i;
+ })(t) +
+ '"'
+ );
+ default:
+ throw new i('impossible error: invalid scalar style');
+ }
+ })();
+ }
+ function w(e, t) {
+ var n = v(e) ? String(t) : '',
+ r = '\n' === e[e.length - 1];
+ return n + (r && ('\n' === e[e.length - 2] || '\n' === e) ? '+' : r ? '' : '-') + '\n';
+ }
+ function E(e) {
+ return '\n' === e[e.length - 1] ? e.slice(0, -1) : e;
+ }
+ function _(e, t) {
+ if ('' === e || ' ' === e[0]) return e;
+ for (var n, r, i = / [^ ]/g, o = 0, a = 0, s = 0, c = ''; (n = i.exec(e)); )
+ (s = n.index) - o > t && ((r = a > o ? a : s), (c += '\n' + e.slice(o, r)), (o = r + 1)), (a = s);
+ return (
+ (c += '\n'),
+ e.length - o > t && a > o ? (c += e.slice(o, a) + '\n' + e.slice(a + 1)) : (c += e.slice(o)),
+ c.slice(1)
+ );
+ }
+ function j(e, t, n) {
+ var r, o, a, u, l, p;
+ for (a = 0, u = (o = n ? e.explicitTypes : e.implicitTypes).length; a < u; a += 1)
+ if (
+ ((l = o[a]).instanceOf || l.predicate) &&
+ (!l.instanceOf || ('object' == typeof t && t instanceof l.instanceOf)) &&
+ (!l.predicate || l.predicate(t))
+ ) {
+ if (((e.tag = n ? l.tag : '?'), l.represent)) {
+ if (((p = e.styleMap[l.tag] || l.defaultStyle), '[object Function]' === s.call(l.represent)))
+ r = l.represent(t, p);
+ else {
+ if (!c.call(l.represent, p)) throw new i('!<' + l.tag + '> tag resolver accepts not "' + p + '" style');
+ r = l.represent[p](t, p);
+ }
+ e.dump = r;
+ }
+ return !0;
+ }
+ return !1;
+ }
+ function S(e, t, n, r, o, a) {
+ (e.tag = null), (e.dump = n), j(e, n, !1) || j(e, n, !0);
+ var c = s.call(e.dump);
+ r && (r = e.flowLevel < 0 || e.flowLevel > t);
+ var u,
+ l,
+ p = '[object Object]' === c || '[object Array]' === c;
+ if (
+ (p && (l = -1 !== (u = e.duplicates.indexOf(n))),
+ ((null !== e.tag && '?' !== e.tag) || l || (2 !== e.indent && t > 0)) && (o = !1),
+ l && e.usedDuplicates[u])
+ )
+ e.dump = '*ref_' + u;
+ else {
+ if ((p && l && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), '[object Object]' === c))
+ r && 0 !== Object.keys(e.dump).length
+ ? (!(function (e, t, n, r) {
+ var o,
+ a,
+ s,
+ c,
+ u,
+ l,
+ p = '',
+ f = e.tag,
+ h = Object.keys(n);
+ if (!0 === e.sortKeys) h.sort();
+ else if ('function' == typeof e.sortKeys) h.sort(e.sortKeys);
+ else if (e.sortKeys) throw new i('sortKeys must be a boolean or a function');
+ for (o = 0, a = h.length; o < a; o += 1)
+ (l = ''),
+ (r && 0 === o) || (l += d(e, t)),
+ (c = n[(s = h[o])]),
+ S(e, t + 1, s, !0, !0, !0) &&
+ ((u = (null !== e.tag && '?' !== e.tag) || (e.dump && e.dump.length > 1024)) &&
+ (e.dump && 10 === e.dump.charCodeAt(0) ? (l += '?') : (l += '? ')),
+ (l += e.dump),
+ u && (l += d(e, t)),
+ S(e, t + 1, c, !0, u) &&
+ (e.dump && 10 === e.dump.charCodeAt(0) ? (l += ':') : (l += ': '), (p += l += e.dump)));
+ (e.tag = f), (e.dump = p || '{}');
+ })(e, t, e.dump, o),
+ l && (e.dump = '&ref_' + u + e.dump))
+ : (!(function (e, t, n) {
+ var r,
+ i,
+ o,
+ a,
+ s,
+ c = '',
+ u = e.tag,
+ l = Object.keys(n);
+ for (r = 0, i = l.length; r < i; r += 1)
+ (s = ''),
+ 0 !== r && (s += ', '),
+ e.condenseFlow && (s += '"'),
+ (a = n[(o = l[r])]),
+ S(e, t, o, !1, !1) &&
+ (e.dump.length > 1024 && (s += '? '),
+ (s += e.dump + (e.condenseFlow ? '"' : '') + ':' + (e.condenseFlow ? '' : ' ')),
+ S(e, t, a, !1, !1) && (c += s += e.dump));
+ (e.tag = u), (e.dump = '{' + c + '}');
+ })(e, t, e.dump),
+ l && (e.dump = '&ref_' + u + ' ' + e.dump));
+ else if ('[object Array]' === c) {
+ var f = e.noArrayIndent && t > 0 ? t - 1 : t;
+ r && 0 !== e.dump.length
+ ? (!(function (e, t, n, r) {
+ var i,
+ o,
+ a = '',
+ s = e.tag;
+ for (i = 0, o = n.length; i < o; i += 1)
+ S(e, t + 1, n[i], !0, !0) &&
+ ((r && 0 === i) || (a += d(e, t)),
+ e.dump && 10 === e.dump.charCodeAt(0) ? (a += '-') : (a += '- '),
+ (a += e.dump));
+ (e.tag = s), (e.dump = a || '[]');
+ })(e, f, e.dump, o),
+ l && (e.dump = '&ref_' + u + e.dump))
+ : (!(function (e, t, n) {
+ var r,
+ i,
+ o = '',
+ a = e.tag;
+ for (r = 0, i = n.length; r < i; r += 1)
+ S(e, t, n[r], !1, !1) && (0 !== r && (o += ',' + (e.condenseFlow ? '' : ' ')), (o += e.dump));
+ (e.tag = a), (e.dump = '[' + o + ']');
+ })(e, f, e.dump),
+ l && (e.dump = '&ref_' + u + ' ' + e.dump));
+ } else {
+ if ('[object String]' !== c) {
+ if (e.skipInvalid) return !1;
+ throw new i('unacceptable kind of an object to dump ' + c);
+ }
+ '?' !== e.tag && x(e, e.dump, t, a);
+ }
+ null !== e.tag && '?' !== e.tag && (e.dump = '!<' + e.tag + '> ' + e.dump);
+ }
+ return !0;
+ }
+ function D(e, t) {
+ var n,
+ r,
+ i = [],
+ o = [];
+ for (
+ (function e(t, n, r) {
+ var i, o, a;
+ if (null !== t && 'object' == typeof t)
+ if (-1 !== (o = n.indexOf(t))) -1 === r.indexOf(o) && r.push(o);
+ else if ((n.push(t), Array.isArray(t))) for (o = 0, a = t.length; o < a; o += 1) e(t[o], n, r);
+ else for (i = Object.keys(t), o = 0, a = i.length; o < a; o += 1) e(t[i[o]], n, r);
+ })(e, i, o),
+ n = 0,
+ r = o.length;
+ n < r;
+ n += 1
+ )
+ t.duplicates.push(i[o[n]]);
+ t.usedDuplicates = new Array(r);
+ }
+ function A(e, t) {
+ var n = new f((t = t || {}));
+ return n.noRefs || D(e, n), S(n, 0, e, !0, !0) ? n.dump + '\n' : '';
+ }
+ (e.exports.dump = A),
+ (e.exports.safeDump = function (e, t) {
+ return A(e, r.extend({ schema: a }, t));
+ });
+ },
+ function (e, t, n) {
+ const { load: r, Kind: i } = n(239),
+ o = Symbol('pseudo-yaml-ast-loc'),
+ a = (e) => void 0 === e,
+ s = (e) => Number.isNaN(e) || ((e) => null === e)(e) || a(e) || 'symbol' == typeof e,
+ c = (e) => {
+ return (
+ s(e.value) ||
+ ((n = 'value'), !((t = e) && 'object' == typeof t && Object.prototype.hasOwnProperty.call(t, n)))
+ );
+ var t, n;
+ },
+ u = (e, t, n) => t <= n && t >= e,
+ l = (e, { start: t = 0, end: n = 0 }) => {
+ const r = e.split(/\n/),
+ i = { start: {}, end: {} };
+ let o = 0;
+ for (const e of r.keys()) {
+ const s = o,
+ c = o + r[e].length;
+ a(i.start.line) && u(s, t, c) && ((i.start.line = e + 1), (i.start.column = t - s), (i.start.offset = t)),
+ a(i.end.line) && u(s, n, c) && ((i.end.line = e + 1), (i.end.column = n - s), (i.end.offset = n)),
+ (o = c + 1);
+ }
+ return i;
+ },
+ p = {
+ MAP: (e = {}, t = '', n = {}) =>
+ Object.assign(f(e.mappings, t), { [o]: l(t, { start: e.startPosition, end: e.endPosition }) }),
+ MAPPING: (e = {}, t = '', n = {}) => {
+ const r = f([e.value], t);
+ return (
+ s(r) || (r[o] = l(t, { start: e.startPosition, end: e.endPosition })),
+ Object.assign(n, { [e.key.value]: r })
+ );
+ },
+ SCALAR: (e = {}, t = '') => {
+ if (c(e)) return e.value;
+ const n = l(t, { start: e.startPosition, end: e.endPosition }),
+ r = (t) => () => {
+ const r = new t(e.value);
+ return (r[o] = n), r;
+ },
+ i = () => ((e.value[o] = n), e.value);
+ return { boolean: r(Boolean), number: r(Number), string: r(String), function: i, object: i }[
+ typeof e.value
+ ]();
+ },
+ SEQ: (e = {}, t = '') => {
+ const n = f(e.items, t, []);
+ return (n[o] = l(t, { start: e.startPosition, end: e.endPosition })), n;
+ },
+ },
+ f = (e = [], t, n = {}) => {
+ const r = (e, n, r) => {
+ let o;
+ return e && (o = p[i[e.kind]]), o ? o(e, t, n) : r;
+ };
+ return Array.isArray(n) ? e.map((e) => r(e, n, null), n).filter(Boolean) : e.reduce((e, t) => r(t, e, e), n);
+ };
+ (e.exports.loc = o), (e.exports.yamlAST = (e) => f([r(e)], e));
+ },
+ function (e, t, n) {
+ 'use strict';
+ function r(e) {
+ for (var n in e) t.hasOwnProperty(n) || (t[n] = e[n]);
+ }
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var i = n(240);
+ (t.load = i.load), (t.loadAll = i.loadAll), (t.safeLoad = i.safeLoad), (t.safeLoadAll = i.safeLoadAll);
+ var o = n(260);
+ (t.dump = o.dump), (t.safeDump = o.safeDump), (t.YAMLException = n(34)), r(n(46)), r(n(261));
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(46),
+ i = n(25),
+ o = n(34),
+ a = n(241),
+ s = n(58),
+ c = n(100),
+ u = Object.prototype.hasOwnProperty,
+ l =
+ /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,
+ p = /[\x85\u2028\u2029]/,
+ f = /[,\[\]\{\}]/,
+ h = /^(?:!|!!|![a-z\-]+!)$/i,
+ d = /^(?:!|[^,\[\]\{\}])(?:%[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 x(e) {
+ return 120 === e ? 2 : 117 === e ? 4 : 85 === e ? 8 : 0;
+ }
+ function w(e) {
+ return 48 <= e && e <= 57 ? e - 48 : -1;
+ }
+ function E(e) {
+ return e <= 65535
+ ? String.fromCharCode(e)
+ : String.fromCharCode(55296 + ((e - 65536) >> 10), 56320 + ((e - 65536) & 1023));
+ }
+ for (var _, j = new Array(256), S = new Array(256), D = new Array(256), A = new Array(256), k = 0; k < 256; k++)
+ (A[k] = S[k] =
+ 48 === (_ = k)
+ ? '\0'
+ : 97 === _
+ ? ''
+ : 98 === _
+ ? '\b'
+ : 116 === _ || 9 === _
+ ? '\t'
+ : 110 === _
+ ? '\n'
+ : 118 === _
+ ? '\v'
+ : 102 === _
+ ? '\f'
+ : 114 === _
+ ? '\r'
+ : 101 === _
+ ? ''
+ : 32 === _
+ ? ' '
+ : 34 === _
+ ? '"'
+ : 47 === _
+ ? '/'
+ : 92 === _
+ ? '\\'
+ : 78 === _
+ ? '
'
+ : 95 === _
+ ? ' '
+ : 76 === _
+ ? '\u2028'
+ : 80 === _
+ ? '\u2029'
+ : ''),
+ (j[k] = S[k] ? 1 : 0),
+ (D[k] = 1),
+ j[k] || (A[k] = '\\' + String.fromCharCode(k));
+ var C = function (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 P(e, t, n) {
+ return (
+ void 0 === n && (n = !1),
+ new o(t, new a(e.filename, e.input, e.position, e.line, e.position - e.lineStart), n)
+ );
+ }
+ function T(e, t, n, r, i) {
+ void 0 === r && (r = !1), void 0 === i && (i = !1);
+ var s = (function (e, t) {
+ for (var n, r = 0; r < e.lines.length && !(e.lines[r].start > t); r++) n = e.lines[r];
+ if (!n) return { start: 0, line: 0 };
+ return n;
+ })(e, t);
+ if (s) {
+ var c = n + t;
+ if (!e.errorMap[c]) {
+ var u = new a(e.filename, e.input, t, s.line, t - s.start);
+ i && (u.toLineEnd = !0);
+ var l = new o(n, u, r);
+ e.errors.push(l);
+ }
+ }
+ }
+ function $(e, t) {
+ var n = P(e, t),
+ r = n.message + n.mark.position;
+ if (!e.errorMap[r]) {
+ e.errors.push(n), (e.errorMap[r] = 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 O(e, t) {
+ var n = P(e, t);
+ e.onWarning && e.onWarning.call(null, n);
+ }
+ var F = {
+ YAML: function (e, t, n) {
+ var r, i, o;
+ null !== e.version && $(e, 'duplication of %YAML directive'),
+ 1 !== n.length && $(e, 'YAML directive accepts exactly one argument'),
+ null === (r = /^([0-9]+)\.([0-9]+)$/.exec(n[0])) && $(e, 'ill-formed argument of the YAML directive'),
+ (i = parseInt(r[1], 10)),
+ (o = parseInt(r[2], 10)),
+ 1 !== i && $(e, 'found incompatible YAML document (version 1.2 is required)'),
+ (e.version = n[0]),
+ (e.checkLineBreaks = o < 2),
+ 2 !== o && $(e, 'found incompatible YAML document (version 1.2 is required)');
+ },
+ TAG: function (e, t, n) {
+ var r, i;
+ 2 !== n.length && $(e, 'TAG directive accepts exactly two arguments'),
+ (r = n[0]),
+ (i = n[1]),
+ h.test(r) || $(e, 'ill-formed tag handle (first argument) of the TAG directive'),
+ u.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'),
+ d.test(i) || $(e, 'ill-formed tag prefix (second argument) of the TAG directive'),
+ (e.tagMap[r] = i);
+ },
+ };
+ function I(e, t, n, r) {
+ var i,
+ o,
+ a,
+ s,
+ c = e.result;
+ if ((-1 == c.startPosition && (c.startPosition = t), t <= n)) {
+ if (((s = e.input.slice(t, n)), r))
+ for (i = 0, o = s.length; i < o; i += 1)
+ 9 === (a = s.charCodeAt(i)) || (32 <= a && a <= 1114111) || $(e, 'expected valid JSON character');
+ else l.test(s) && $(e, 'the stream contains non-printable characters');
+ (c.value += s), (c.endPosition = n);
+ }
+ }
+ function N(e, t, n, i, o) {
+ if (null != i) {
+ null === t &&
+ (t = {
+ startPosition: i.startPosition,
+ endPosition: o.endPosition,
+ parent: null,
+ errors: [],
+ mappings: [],
+ kind: r.Kind.MAP,
+ });
+ var a = r.newMapping(i, o);
+ return (
+ (a.parent = t),
+ (i.parent = a),
+ null != o && (o.parent = a),
+ !e.ignoreDuplicateKeys &&
+ t.mappings.forEach(function (t) {
+ t.key &&
+ t.key.value === (a.key && a.key.value) &&
+ (T(e, a.key.startPosition, 'duplicate key'), T(e, t.key.startPosition, 'duplicate key'));
+ }),
+ t.mappings.push(a),
+ (t.endPosition = o ? o.endPosition : i.endPosition + 1),
+ t
+ );
+ }
+ }
+ function R(e) {
+ var t;
+ 10 === (t = e.input.charCodeAt(e.position))
+ ? e.position++
+ : 13 === t
+ ? (e.position++, 10 === e.input.charCodeAt(e.position) && e.position++)
+ : $(e, 'a line break is expected'),
+ (e.line += 1),
+ (e.lineStart = e.position),
+ e.lines.push({ start: e.lineStart, line: e.line });
+ }
+ function B(e, t, n) {
+ for (var r = 0, i = e.input.charCodeAt(e.position); 0 !== i; ) {
+ for (; y(i); )
+ 9 === i && e.errors.push(P(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 (R(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; 32 === i; )
+ e.lineIndent++, (i = e.input.charCodeAt(++e.position));
+ }
+ return -1 !== n && 0 !== r && e.lineIndent < n && O(e, 'deficient indentation'), r;
+ }
+ function M(e) {
+ var t,
+ n = e.position;
+ return !(
+ (45 !== (t = e.input.charCodeAt(n)) && 46 !== t) ||
+ e.input.charCodeAt(n + 1) !== t ||
+ e.input.charCodeAt(n + 2) !== t ||
+ ((n += 3), 0 !== (t = e.input.charCodeAt(n)) && !g(t))
+ );
+ }
+ function L(e, t, n) {
+ 1 === n ? (t.value += ' ') : n > 1 && (t.value += i.repeat('\n', n - 1));
+ }
+ function z(e, t) {
+ var n,
+ i,
+ o = e.tag,
+ a = e.anchor,
+ s = r.newItems(),
+ c = !1;
+ for (
+ null !== e.anchor && ((s.anchorId = e.anchor), (e.anchorMap[e.anchor] = s)),
+ s.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++, B(e, !0, -1) && e.lineIndent <= t))
+ s.items.push(null), (i = e.input.charCodeAt(e.position));
+ else if (
+ ((n = e.line),
+ H(e, t, 3, !1, !0),
+ e.result && ((e.result.parent = s), s.items.push(e.result)),
+ B(e, !0, -1),
+ (i = e.input.charCodeAt(e.position)),
+ (e.line === n || e.lineIndent > t) && 0 !== i)
+ )
+ $(e, 'bad indentation of a sequence entry');
+ else if (e.lineIndent < t) break;
+ return (
+ (s.endPosition = e.position),
+ !!c && ((e.tag = o), (e.anchor = a), (e.kind = 'sequence'), (e.result = s), (s.endPosition = e.position), !0)
+ );
+ }
+ function U(e) {
+ var t,
+ n,
+ r,
+ i,
+ o = !1,
+ a = !1;
+ if (33 !== (i = e.input.charCodeAt(e.position))) return !1;
+ if (
+ (null !== e.tag && $(e, 'duplication of a tag property'),
+ 60 === (i = e.input.charCodeAt(++e.position))
+ ? ((o = !0), (i = e.input.charCodeAt(++e.position)))
+ : 33 === i
+ ? ((a = !0), (n = '!!'), (i = e.input.charCodeAt(++e.position)))
+ : (n = '!'),
+ (t = e.position),
+ o)
+ ) {
+ do {
+ i = e.input.charCodeAt(++e.position);
+ } while (0 !== i && 62 !== i);
+ e.position < e.length
+ ? ((r = e.input.slice(t, e.position)), (i = e.input.charCodeAt(++e.position)))
+ : $(e, 'unexpected end of the stream within a verbatim tag');
+ } else {
+ for (; 0 !== i && !g(i); )
+ 33 === i &&
+ (a
+ ? $(e, 'tag suffix cannot contain exclamation marks')
+ : ((n = e.input.slice(t - 1, e.position + 1)),
+ h.test(n) || $(e, 'named tag handle cannot contain such characters'),
+ (a = !0),
+ (t = e.position + 1))),
+ (i = e.input.charCodeAt(++e.position));
+ (r = e.input.slice(t, e.position)), f.test(r) && $(e, 'tag suffix cannot contain flow indicator characters');
+ }
+ return (
+ r && !d.test(r) && $(e, 'tag name cannot contain such characters: ' + r),
+ o
+ ? (e.tag = r)
+ : u.call(e.tagMap, n)
+ ? (e.tag = e.tagMap[n] + r)
+ : '!' === n
+ ? (e.tag = '!' + r)
+ : '!!' === n
+ ? (e.tag = 'tag:yaml.org,2002:' + r)
+ : $(e, 'undeclared tag handle "' + n + '"'),
+ !0
+ );
+ }
+ function q(e) {
+ var t, n;
+ if (38 !== (n = e.input.charCodeAt(e.position))) return !1;
+ for (
+ null !== e.anchor && $(e, 'duplication of an anchor property'),
+ n = e.input.charCodeAt(++e.position),
+ t = e.position;
+ 0 !== n && !g(n) && !v(n);
+
+ )
+ n = e.input.charCodeAt(++e.position);
+ return (
+ e.position === t && $(e, 'name of an anchor node must contain at least one character'),
+ (e.anchor = e.input.slice(t, e.position)),
+ !0
+ );
+ }
+ function H(e, t, n, o, a) {
+ var s,
+ c,
+ l,
+ p,
+ f,
+ h,
+ d,
+ _,
+ k = 1,
+ C = !1,
+ P = !1;
+ (e.tag = null),
+ (e.anchor = null),
+ (e.kind = null),
+ (e.result = null),
+ (s = c = l = 4 === n || 3 === n),
+ o &&
+ B(e, !0, -1) &&
+ ((C = !0), e.lineIndent > t ? (k = 1) : e.lineIndent === t ? (k = 0) : e.lineIndent < t && (k = -1));
+ var O = e.position;
+ e.position, e.lineStart;
+ if (1 === k)
+ for (; U(e) || q(e); )
+ B(e, !0, -1)
+ ? ((C = !0),
+ (l = s),
+ e.lineIndent > t ? (k = 1) : e.lineIndent === t ? (k = 0) : e.lineIndent < t && (k = -1))
+ : (l = !1);
+ if (
+ (l && (l = C || a),
+ (1 !== k && 4 !== n) ||
+ ((d = 1 === n || 2 === n ? t : t + 1),
+ (_ = e.position - e.lineStart),
+ 1 === k
+ ? (l &&
+ (z(e, _) ||
+ (function (e, t, n) {
+ var i,
+ o,
+ a,
+ s,
+ c = e.tag,
+ u = e.anchor,
+ l = r.newMap(),
+ p = null,
+ f = null,
+ h = !1,
+ d = !1;
+ for (
+ l.startPosition = e.position,
+ null !== e.anchor && ((l.anchorId = e.anchor), (e.anchorMap[e.anchor] = l)),
+ s = e.input.charCodeAt(e.position);
+ 0 !== s;
+
+ ) {
+ if (((i = e.input.charCodeAt(e.position + 1)), (a = e.line), (63 !== s && 58 !== s) || !g(i))) {
+ if (!H(e, n, 2, !1, !0)) break;
+ if (e.line === a) {
+ for (s = e.input.charCodeAt(e.position); y(s); ) s = e.input.charCodeAt(++e.position);
+ if (58 === s)
+ g((s = e.input.charCodeAt(++e.position))) ||
+ $(
+ e,
+ 'a whitespace character is expected after the key-value separator within a block mapping'
+ ),
+ h && (N(e, l, 0, p, null), (p = f = null)),
+ (d = !0),
+ (h = !1),
+ (o = !1),
+ e.tag,
+ (p = e.result);
+ else {
+ if (e.position == e.lineStart && M(e)) break;
+ if (!d) return (e.tag = c), (e.anchor = u), !0;
+ $(e, 'can not read an implicit mapping pair; a colon is missed');
+ }
+ } else {
+ if (!d) return (e.tag = c), (e.anchor = u), !0;
+ for (
+ $(e, 'can not read a block mapping entry; a multiline key may not be an implicit key');
+ e.position > 0;
+
+ )
+ if (m((s = e.input.charCodeAt(--e.position)))) {
+ e.position++;
+ break;
+ }
+ }
+ } else
+ 63 === s
+ ? (h && (N(e, l, 0, p, null), (p = f = null)), (d = !0), (h = !0), (o = !0))
+ : h
+ ? ((h = !1), (o = !0))
+ : $(e, 'incomplete explicit mapping pair; a key node is missed'),
+ (e.position += 1),
+ (s = i);
+ if (
+ ((e.line === a || e.lineIndent > t) &&
+ (H(e, t, 4, !0, o) && (h ? (p = e.result) : (f = e.result)),
+ h || (N(e, l, 0, p, f), (p = f = null)),
+ B(e, !0, -1),
+ (s = e.input.charCodeAt(e.position))),
+ e.lineIndent > t && 0 !== s)
+ )
+ $(e, 'bad indentation of a mapping entry');
+ else if (e.lineIndent < t) break;
+ }
+ return (
+ h && N(e, l, 0, p, null),
+ d && ((e.tag = c), (e.anchor = u), (e.kind = 'mapping'), (e.result = l)),
+ d
+ );
+ })(e, _, d))) ||
+ (function (e, t) {
+ var n,
+ i,
+ o,
+ a,
+ s,
+ c,
+ u,
+ l,
+ p,
+ f = !0,
+ h = e.tag,
+ d = e.anchor;
+ if (91 === (p = e.input.charCodeAt(e.position)))
+ (o = 93), (c = !1), ((i = r.newItems()).startPosition = e.position);
+ else {
+ if (123 !== p) return !1;
+ (o = 125), (c = !0), ((i = r.newMap()).startPosition = e.position);
+ }
+ for (
+ null !== e.anchor && ((i.anchorId = e.anchor), (e.anchorMap[e.anchor] = i)),
+ p = e.input.charCodeAt(++e.position);
+ 0 !== p;
+
+ ) {
+ if ((B(e, !0, t), (p = e.input.charCodeAt(e.position)) === o))
+ return (
+ e.position++,
+ (e.tag = h),
+ (e.anchor = d),
+ (e.kind = c ? 'mapping' : 'sequence'),
+ (e.result = i),
+ (i.endPosition = e.position),
+ !0
+ );
+ if (!f) {
+ var m = e.position;
+ $(e, 'missed comma between flow collection entries'), (e.position = m + 1);
+ }
+ if (
+ ((u = l = null),
+ (a = s = !1),
+ 63 === p && g(e.input.charCodeAt(e.position + 1)) && ((a = s = !0), e.position++, B(e, !0, t)),
+ (n = e.line),
+ H(e, t, 1, !1, !0),
+ e.tag,
+ (u = e.result),
+ B(e, !0, t),
+ (p = e.input.charCodeAt(e.position)),
+ (!s && e.line !== n) ||
+ 58 !== p ||
+ ((a = !0),
+ (p = e.input.charCodeAt(++e.position)),
+ B(e, !0, t),
+ H(e, t, 1, !1, !0),
+ (l = e.result)),
+ c)
+ )
+ N(e, i, 0, u, l);
+ else if (a) {
+ var y = N(e, null, 0, u, l);
+ (y.parent = i), i.items.push(y);
+ } else u && (u.parent = i), i.items.push(u);
+ (i.endPosition = e.position + 1),
+ B(e, !0, t),
+ 44 === (p = e.input.charCodeAt(e.position))
+ ? ((f = !0), (p = e.input.charCodeAt(++e.position)))
+ : (f = !1);
+ }
+ $(e, 'unexpected end of the stream within a flow collection');
+ })(e, d)
+ ? (P = !0)
+ : ((c &&
+ (function (e, t) {
+ var n,
+ o,
+ a,
+ s,
+ c = 1,
+ u = !1,
+ l = t,
+ p = 0,
+ f = !1;
+ if (124 === (s = e.input.charCodeAt(e.position))) o = !1;
+ else {
+ if (62 !== s) return !1;
+ o = !0;
+ }
+ var h = r.newScalar();
+ for (e.kind = 'scalar', e.result = h, h.startPosition = e.position; 0 !== s; )
+ if (43 === (s = e.input.charCodeAt(++e.position)) || 45 === s)
+ 1 === c ? (c = 43 === s ? 3 : 2) : $(e, 'repeat of a chomping mode identifier');
+ else {
+ if (!((a = w(s)) >= 0)) break;
+ 0 === a
+ ? $(e, 'bad explicit indentation width of a block scalar; it cannot be less than one')
+ : u
+ ? $(e, 'repeat of an indentation width identifier')
+ : ((l = t + a - 1), (u = !0));
+ }
+ if (y(s)) {
+ do {
+ s = e.input.charCodeAt(++e.position);
+ } while (y(s));
+ if (35 === s)
+ do {
+ s = e.input.charCodeAt(++e.position);
+ } while (!m(s) && 0 !== s);
+ }
+ for (; 0 !== s; ) {
+ for (
+ R(e), e.lineIndent = 0, s = e.input.charCodeAt(e.position);
+ (!u || e.lineIndent < l) && 32 === s;
+
+ )
+ e.lineIndent++, (s = e.input.charCodeAt(++e.position));
+ if ((!u && e.lineIndent > l && (l = e.lineIndent), m(s))) p++;
+ else {
+ if (e.lineIndent < l) {
+ 3 === c ? (h.value += i.repeat('\n', p)) : 1 === c && u && (h.value += '\n');
+ break;
+ }
+ for (
+ o
+ ? y(s)
+ ? ((f = !0), (h.value += i.repeat('\n', p + 1)))
+ : f
+ ? ((f = !1), (h.value += i.repeat('\n', p + 1)))
+ : 0 === p
+ ? u && (h.value += ' ')
+ : (h.value += i.repeat('\n', p))
+ : u && (h.value += i.repeat('\n', p + 1)),
+ u = !0,
+ p = 0,
+ n = e.position;
+ !m(s) && 0 !== s;
+
+ )
+ s = e.input.charCodeAt(++e.position);
+ I(e, n, e.position, !1);
+ }
+ }
+ h.endPosition = e.position;
+ for (var d = e.position - 1; ; ) {
+ var g = e.input[d];
+ if ('\r' == g || '\n' == g) {
+ 0;
+ break;
+ }
+ if (' ' != g && '\t' != g) break;
+ d--;
+ }
+ return (h.endPosition = d), (h.rawValue = e.input.substring(h.startPosition, h.endPosition)), !0;
+ })(e, d)) ||
+ (function (e, t) {
+ var n, i, o;
+ if (39 !== (n = e.input.charCodeAt(e.position))) return !1;
+ var a = r.newScalar();
+ for (
+ a.singleQuoted = !0,
+ e.kind = 'scalar',
+ e.result = a,
+ a.startPosition = e.position,
+ e.position++,
+ i = o = e.position;
+ 0 !== (n = e.input.charCodeAt(e.position));
+
+ )
+ if (39 === n) {
+ if (
+ (I(e, i, e.position, !0),
+ (n = e.input.charCodeAt(++e.position)),
+ (a.endPosition = e.position),
+ 39 !== n)
+ )
+ return !0;
+ (i = o = e.position), e.position++;
+ } else
+ m(n)
+ ? (I(e, i, o, !0), L(0, a, B(e, !1, t)), (i = o = e.position))
+ : e.position === e.lineStart && M(e)
+ ? $(e, 'unexpected end of the document within a single quoted scalar')
+ : (e.position++, (o = e.position), (a.endPosition = e.position));
+ $(e, 'unexpected end of the stream within a single quoted scalar');
+ })(e, d) ||
+ (function (e, t) {
+ var n, i, o, a, s, c;
+ if (34 !== (c = e.input.charCodeAt(e.position))) return !1;
+ e.kind = 'scalar';
+ var u = r.newScalar();
+ for (
+ u.doubleQuoted = !0, e.result = u, u.startPosition = e.position, e.position++, n = i = e.position;
+ 0 !== (c = e.input.charCodeAt(e.position));
+
+ ) {
+ if (34 === c)
+ return (
+ I(e, n, e.position, !0),
+ e.position++,
+ (u.endPosition = e.position),
+ (u.rawValue = e.input.substring(u.startPosition, u.endPosition)),
+ !0
+ );
+ if (92 === c) {
+ if ((I(e, n, e.position, !0), m((c = e.input.charCodeAt(++e.position))))) B(e, !1, t);
+ else if (c < 256 && (e.allowAnyEscape ? D[c] : j[c]))
+ (u.value += e.allowAnyEscape ? A[c] : S[c]), e.position++;
+ else if ((s = x(c)) > 0) {
+ for (o = s, a = 0; o > 0; o--)
+ (s = b((c = e.input.charCodeAt(++e.position)))) >= 0
+ ? (a = (a << 4) + s)
+ : $(e, 'expected hexadecimal character');
+ (u.value += E(a)), e.position++;
+ } else $(e, 'unknown escape sequence');
+ n = i = e.position;
+ } else
+ m(c)
+ ? (I(e, n, i, !0), L(0, u, B(e, !1, t)), (n = i = e.position))
+ : e.position === e.lineStart && M(e)
+ ? $(e, 'unexpected end of the document within a double quoted scalar')
+ : (e.position++, (i = e.position));
+ }
+ $(e, 'unexpected end of the stream within a double quoted scalar');
+ })(e, d)
+ ? (P = !0)
+ : !(function (e) {
+ var t, n, 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 &&
+ ($(e, 'name of an alias node must contain at least one character'), (e.position = t + 1)),
+ (n = e.input.slice(t, e.position)),
+ e.anchorMap.hasOwnProperty(n) ||
+ ($(e, 'unidentified alias "' + n + '"'), e.position <= t && (e.position = t + 1)),
+ (e.result = r.newAnchorRef(n, t, e.position, e.anchorMap[n])),
+ B(e, !0, -1),
+ !0
+ );
+ })(e)
+ ? (function (e, t, n) {
+ var i,
+ o,
+ a,
+ s,
+ c,
+ u,
+ l,
+ p,
+ f = e.kind,
+ h = e.result,
+ d = r.newScalar();
+ if (
+ ((d.plainScalar = !0),
+ (e.result = d),
+ g((p = e.input.charCodeAt(e.position))) ||
+ v(p) ||
+ 35 === p ||
+ 38 === p ||
+ 42 === p ||
+ 33 === p ||
+ 124 === p ||
+ 62 === p ||
+ 39 === p ||
+ 34 === p ||
+ 37 === p ||
+ 64 === p ||
+ 96 === p)
+ )
+ return !1;
+ if ((63 === p || 45 === p) && (g((i = e.input.charCodeAt(e.position + 1))) || (n && v(i))))
+ return !1;
+ for (e.kind = 'scalar', o = a = e.position, s = !1; 0 !== p; ) {
+ if (58 === p) {
+ if (g((i = e.input.charCodeAt(e.position + 1))) || (n && v(i))) break;
+ } else if (35 === p) {
+ if (g(e.input.charCodeAt(e.position - 1))) break;
+ } else {
+ if ((e.position === e.lineStart && M(e)) || (n && v(p))) break;
+ if (m(p)) {
+ if (
+ ((c = e.line), (u = e.lineStart), (l = e.lineIndent), B(e, !1, -1), e.lineIndent >= t)
+ ) {
+ (s = !0), (p = e.input.charCodeAt(e.position));
+ continue;
+ }
+ (e.position = a), (e.line = c), (e.lineStart = u), (e.lineIndent = l);
+ break;
+ }
+ }
+ if (
+ (s && (I(e, o, a, !1), L(0, d, e.line - c), (o = a = e.position), (s = !1)),
+ y(p) || (a = e.position + 1),
+ (p = e.input.charCodeAt(++e.position)),
+ e.position >= e.input.length)
+ )
+ return !1;
+ }
+ return (
+ I(e, o, a, !1),
+ -1 != e.result.startPosition
+ ? ((d.rawValue = e.input.substring(d.startPosition, d.endPosition)), !0)
+ : ((e.kind = f), (e.result = h), !1)
+ );
+ })(e, d, 1 === n) && ((P = !0), null === e.tag && (e.tag = '?'))
+ : ((P = !0),
+ (null === e.tag && null === e.anchor) || $(e, 'alias node should not have any properties')),
+ null !== e.anchor && ((e.anchorMap[e.anchor] = e.result), (e.result.anchorId = e.anchor)))
+ : 0 === k && (P = l && z(e, _))),
+ null !== e.tag && '!' !== e.tag)
+ )
+ if ('!include' == e.tag)
+ e.result ||
+ ((e.result = r.newScalar()),
+ (e.result.startPosition = e.position),
+ (e.result.endPosition = e.position),
+ $(e, '!include without value')),
+ (e.result.kind = r.Kind.INCLUDE_REF);
+ else if ('?' === e.tag)
+ for (p = 0, f = e.implicitTypes.length; p < f; p += 1) {
+ h = e.implicitTypes[p];
+ var F = e.result.value;
+ if (h.resolve(F)) {
+ (e.result.valueObject = h.construct(e.result.value)),
+ (e.tag = h.tag),
+ null !== e.anchor && ((e.result.anchorId = e.anchor), (e.anchorMap[e.anchor] = e.result));
+ break;
+ }
+ }
+ else
+ u.call(e.typeMap, e.tag)
+ ? ((h = e.typeMap[e.tag]),
+ null !== e.result &&
+ h.kind !== e.kind &&
+ $(
+ e,
+ 'unacceptable node kind for !<' +
+ e.tag +
+ '> tag; it should be "' +
+ h.kind +
+ '", not "' +
+ e.kind +
+ '"'
+ ),
+ h.resolve(e.result)
+ ? ((e.result = h.construct(e.result)),
+ null !== e.anchor && ((e.result.anchorId = e.anchor), (e.anchorMap[e.anchor] = e.result)))
+ : $(e, 'cannot resolve a node with !<' + e.tag + '> explicit tag'))
+ : T(e, O, 'unknown tag <' + e.tag + '>', !1, !0);
+ return null !== e.tag || null !== e.anchor || P;
+ }
+ function V(e) {
+ var t,
+ n,
+ r,
+ i,
+ o = e.position,
+ a = !1;
+ for (
+ e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = {}, e.anchorMap = {};
+ 0 !== (i = e.input.charCodeAt(e.position)) &&
+ (B(e, !0, -1), (i = e.input.charCodeAt(e.position)), !(e.lineIndent > 0 || 37 !== i));
+
+ ) {
+ for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; 0 !== i && !g(i); )
+ i = e.input.charCodeAt(++e.position);
+ for (
+ r = [],
+ (n = e.input.slice(t, e.position)).length < 1 &&
+ $(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);
+ r.push(e.input.slice(t, e.position));
+ }
+ 0 !== i && R(e),
+ u.call(F, n) ? F[n](e, n, r) : (O(e, 'unknown document directive "' + n + '"'), e.position++);
+ }
+ B(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), B(e, !0, -1))
+ : a && $(e, 'directives end mark is expected'),
+ H(e, e.lineIndent - 1, 4, !1, !0),
+ B(e, !0, -1),
+ e.checkLineBreaks &&
+ p.test(e.input.slice(o, e.position)) &&
+ O(e, 'non-ASCII line breaks are interpreted as content'),
+ e.documents.push(e.result),
+ e.position === e.lineStart && M(e)
+ ? 46 === e.input.charCodeAt(e.position) && ((e.position += 3), B(e, !0, -1))
+ : e.position < e.length - 1 && $(e, 'end of the stream or a document separator is expected');
+ }
+ function J(e, t) {
+ t = t || {};
+ var n = (e = String(e)).length;
+ 0 !== n &&
+ (10 !== e.charCodeAt(n - 1) && 13 !== e.charCodeAt(n - 1) && (e += '\n'),
+ 65279 === e.charCodeAt(0) && (e = e.slice(1)));
+ var r = new C(e, t);
+ for (r.input += '\0'; 32 === r.input.charCodeAt(r.position); ) (r.lineIndent += 1), (r.position += 1);
+ for (; r.position < r.length - 1; ) {
+ var i = r.position;
+ if ((V(r), r.position <= i))
+ for (; r.position < r.length - 1; r.position++) {
+ if ('\n' == r.input.charAt(r.position)) break;
+ }
+ }
+ var o = r.documents,
+ a = o.length;
+ a > 0 && (o[a - 1].endPosition = n);
+ for (var s = 0, c = o; s < c.length; s++) {
+ var u = c[s];
+ (u.errors = r.errors), u.startPosition > u.endPosition && (u.startPosition = u.endPosition);
+ }
+ return o;
+ }
+ function K(e, t, n) {
+ void 0 === n && (n = {});
+ var r,
+ i,
+ o = J(e, n);
+ for (r = 0, i = o.length; r < i; r += 1) t(o[r]);
+ }
+ function W(e, t) {
+ void 0 === t && (t = {});
+ var n = J(e, t);
+ if (0 !== n.length) {
+ if (1 === n.length) return n[0];
+ var r = new o('expected a single document in the stream, but found more');
+ return (r.mark = new a('', '', 0, 0, 0)), (r.mark.position = n[0].endPosition), n[0].errors.push(r), n[0];
+ }
+ }
+ function X(e, t, n) {
+ void 0 === n && (n = {}), K(e, t, i.extend({ schema: s }, n));
+ }
+ function G(e, t) {
+ return void 0 === t && (t = {}), W(e, i.extend({ schema: s }, t));
+ }
+ (t.loadAll = K),
+ (t.load = W),
+ (t.safeLoadAll = X),
+ (t.safeLoad = G),
+ (e.exports.loadAll = K),
+ (e.exports.load = W),
+ (e.exports.safeLoadAll = X),
+ (e.exports.safeLoad = G);
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(25),
+ i = (function () {
+ function e(e, t, n, r, i) {
+ (this.name = e), (this.buffer = t), (this.position = n), (this.line = r), (this.column = i);
+ }
+ return (
+ (e.prototype.getSnippet = function (e, t) {
+ var n, i, o, a, s;
+ if ((void 0 === e && (e = 0), void 0 === t && (t = 75), !this.buffer)) return null;
+ for (
+ e = e || 4, t = t || 75, n = '', 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)) {
+ (n = ' ... '), (i += 5);
+ break;
+ }
+ for (
+ o = '', a = this.position;
+ a < this.buffer.length && -1 === '\0\r\n
\u2028\u2029'.indexOf(this.buffer.charAt(a));
+
+ )
+ if ((a += 1) - this.position > t / 2 - 1) {
+ (o = ' ... '), (a -= 5);
+ break;
+ }
+ return (
+ (s = this.buffer.slice(i, a)),
+ r.repeat(' ', e) + n + s + o + '\n' + r.repeat(' ', e + this.position - i + n.length) + '^'
+ );
+ }),
+ (e.prototype.toString = function (e) {
+ void 0 === e && (e = !0);
+ var t,
+ n = '';
+ return (
+ this.name && (n += 'in "' + this.name + '" '),
+ (n += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1)),
+ e || ((t = this.getSnippet()) && (n += ':\n' + t)),
+ n
+ );
+ }),
+ e
+ );
+ })();
+ e.exports = i;
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(35);
+ e.exports = new r.Schema({ include: [n(243)] });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(35);
+ e.exports = new r.Schema({ include: [n(244)], implicit: [n(248), n(249), n(250), n(251)] });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(35);
+ e.exports = new r.Schema({ explicit: [n(245), n(246), n(247)] });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.Type('tag:yaml.org,2002:str', {
+ kind: 'scalar',
+ construct: function (e) {
+ return null !== e ? e : '';
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.Type('tag:yaml.org,2002:seq', {
+ kind: 'sequence',
+ construct: function (e) {
+ return null !== e ? e : [];
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.Type('tag:yaml.org,2002:map', {
+ kind: 'mapping',
+ construct: function (e) {
+ return null !== e ? e : {};
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.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',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.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',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(25),
+ i = n(7);
+ function o(e) {
+ return 48 <= e && e <= 55;
+ }
+ function a(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,
+ n,
+ r = e.length,
+ i = 0,
+ s = !1;
+ if (!r) return !1;
+ if ((('-' !== (t = e[i]) && '+' !== t) || (t = e[++i]), '0' === t)) {
+ if (i + 1 === r) return !0;
+ if ('b' === (t = e[++i])) {
+ for (i++; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if ('0' !== t && '1' !== t) return !1;
+ s = !0;
+ }
+ return s;
+ }
+ if ('x' === t) {
+ for (i++; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if (!((48 <= (n = e.charCodeAt(i)) && n <= 57) || (65 <= n && n <= 70) || (97 <= n && n <= 102)))
+ return !1;
+ s = !0;
+ }
+ return s;
+ }
+ for (; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if (!o(e.charCodeAt(i))) return !1;
+ s = !0;
+ }
+ return s;
+ }
+ for (; i < r; i++)
+ if ('_' !== (t = e[i])) {
+ if (':' === t) break;
+ if (!a(e.charCodeAt(i))) return !1;
+ s = !0;
+ }
+ return !!s && (':' !== t || /^(:[0-5]?[0-9])+$/.test(e.slice(i)));
+ },
+ construct: function (e) {
+ var t,
+ n,
+ r = e,
+ i = 1,
+ o = [];
+ return (
+ -1 !== r.indexOf('_') && (r = r.replace(/_/g, '')),
+ ('-' !== (t = r[0]) && '+' !== t) || ('-' === t && (i = -1), (t = (r = r.slice(1))[0])),
+ '0' === r
+ ? 0
+ : '0' === t
+ ? 'b' === r[1]
+ ? i * parseInt(r.slice(2), 2)
+ : 'x' === r[1]
+ ? i * parseInt(r, 16)
+ : i * parseInt(r, 8)
+ : -1 !== r.indexOf(':')
+ ? (r.split(':').forEach(function (e) {
+ o.unshift(parseInt(e, 10));
+ }),
+ (r = 0),
+ (n = 1),
+ o.forEach(function (e) {
+ (r += e * n), (n *= 60);
+ }),
+ i * r)
+ : i * parseInt(r, 10)
+ );
+ },
+ predicate: function (e) {
+ return '[object Number]' === Object.prototype.toString.call(e) && 0 == e % 1 && !r.isNegativeZero(e);
+ },
+ represent: {
+ binary: function (e) {
+ return '0b' + e.toString(2);
+ },
+ octal: function (e) {
+ return '0' + e.toString(8);
+ },
+ decimal: function (e) {
+ return e.toString(10);
+ },
+ hexadecimal: function (e) {
+ return '0x' + e.toString(16).toUpperCase();
+ },
+ },
+ defaultStyle: 'decimal',
+ styleAliases: { binary: [2, 'bin'], octal: [8, 'oct'], decimal: [10, 'dec'], hexadecimal: [16, 'hex'] },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(25),
+ i = n(7),
+ 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, n, r, i;
+ return (
+ (n = '-' === (t = e.replace(/_/g, '').toLowerCase())[0] ? -1 : 1),
+ (i = []),
+ 0 <= '+-'.indexOf(t[0]) && (t = t.slice(1)),
+ '.inf' === t
+ ? 1 === n
+ ? Number.POSITIVE_INFINITY
+ : Number.NEGATIVE_INFINITY
+ : '.nan' === t
+ ? NaN
+ : 0 <= t.indexOf(':')
+ ? (t.split(':').forEach(function (e) {
+ i.unshift(parseFloat(e, 10));
+ }),
+ (t = 0),
+ (r = 1),
+ i.forEach(function (e) {
+ (t += e * r), (r *= 60);
+ }),
+ n * t)
+ : n * parseFloat(t, 10)
+ );
+ },
+ predicate: function (e) {
+ return '[object Number]' === Object.prototype.toString.call(e) && (0 != e % 1 || r.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 (r.isNegativeZero(e)) return '-0.0';
+ return e.toString(10);
+ },
+ defaultStyle: 'lowercase',
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7),
+ 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 r.Type('tag:yaml.org,2002:timestamp', {
+ kind: 'scalar',
+ resolve: function (e) {
+ return null !== e && null !== i.exec(e);
+ },
+ construct: function (e) {
+ var t,
+ n,
+ r,
+ o,
+ a,
+ s,
+ c,
+ u,
+ l = 0,
+ p = null;
+ if (null === (t = i.exec(e))) throw new Error('Date resolve error');
+ if (((n = +t[1]), (r = +t[2] - 1), (o = +t[3]), !t[4])) return new Date(Date.UTC(n, r, o));
+ if (((a = +t[4]), (s = +t[5]), (c = +t[6]), t[7])) {
+ for (l = t[7].slice(0, 3); l.length < 3; ) l += '0';
+ l = +l;
+ }
+ return (
+ t[9] && ((p = 6e4 * (60 * +t[10] + +(t[11] || 0))), '-' === t[9] && (p = -p)),
+ (u = new Date(Date.UTC(n, r, o, a, s, c, l))),
+ p && u.setTime(u.getTime() - p),
+ u
+ );
+ },
+ instanceOf: Date,
+ represent: function (e) {
+ return e.toISOString();
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.Type('tag:yaml.org,2002:merge', {
+ kind: 'scalar',
+ resolve: function (e) {
+ return '<<' === e || null === e;
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(1).Buffer,
+ i = n(7),
+ 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,
+ n,
+ r = 0,
+ i = e.length,
+ a = o;
+ for (n = 0; n < i; n++)
+ if (!((t = a.indexOf(e.charAt(n))) > 64)) {
+ if (t < 0) return !1;
+ r += 6;
+ }
+ return r % 8 == 0;
+ },
+ construct: function (e) {
+ var t,
+ n,
+ i = e.replace(/[\r\n=]/g, ''),
+ a = i.length,
+ s = o,
+ c = 0,
+ u = [];
+ for (t = 0; t < a; t++)
+ t % 4 == 0 && t && (u.push((c >> 16) & 255), u.push((c >> 8) & 255), u.push(255 & c)),
+ (c = (c << 6) | s.indexOf(i.charAt(t)));
+ return (
+ 0 === (n = (a % 4) * 6)
+ ? (u.push((c >> 16) & 255), u.push((c >> 8) & 255), u.push(255 & c))
+ : 18 === n
+ ? (u.push((c >> 10) & 255), u.push((c >> 2) & 255))
+ : 12 === n && u.push((c >> 4) & 255),
+ r ? new r(u) : u
+ );
+ },
+ predicate: function (e) {
+ return r && r.isBuffer(e);
+ },
+ represent: function (e) {
+ var t,
+ n,
+ r = '',
+ i = 0,
+ a = e.length,
+ s = o;
+ for (t = 0; t < a; t++)
+ t % 3 == 0 &&
+ t &&
+ ((r += s[(i >> 18) & 63]), (r += s[(i >> 12) & 63]), (r += s[(i >> 6) & 63]), (r += s[63 & i])),
+ (i = (i << 8) + e[t]);
+ return (
+ 0 === (n = a % 3)
+ ? ((r += s[(i >> 18) & 63]), (r += s[(i >> 12) & 63]), (r += s[(i >> 6) & 63]), (r += s[63 & i]))
+ : 2 === n
+ ? ((r += s[(i >> 10) & 63]), (r += s[(i >> 4) & 63]), (r += s[(i << 2) & 63]), (r += s[64]))
+ : 1 === n && ((r += s[(i >> 2) & 63]), (r += s[(i << 4) & 63]), (r += s[64]), (r += s[64])),
+ r
+ );
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7),
+ i = Object.prototype.hasOwnProperty,
+ o = Object.prototype.toString;
+ e.exports = new r.Type('tag:yaml.org,2002:omap', {
+ kind: 'sequence',
+ resolve: function (e) {
+ if (null === e) return !0;
+ var t,
+ n,
+ r,
+ a,
+ s,
+ c = [],
+ u = e;
+ for (t = 0, n = u.length; t < n; t += 1) {
+ if (((r = u[t]), (s = !1), '[object Object]' !== o.call(r))) return !1;
+ for (a in r)
+ if (i.call(r, a)) {
+ if (s) return !1;
+ s = !0;
+ }
+ if (!s) return !1;
+ if (-1 !== c.indexOf(a)) return !1;
+ c.push(a);
+ }
+ return !0;
+ },
+ construct: function (e) {
+ return null !== e ? e : [];
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7),
+ i = n(46),
+ o = Object.prototype.toString;
+ e.exports = new r.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,
+ n,
+ r,
+ a = e.items;
+ for (t = 0, n = a.length; t < n; t += 1) {
+ if (((r = a[t]), '[object Object]' !== o.call(r))) return !1;
+ if (!Array.isArray(r.mappings)) return !1;
+ if (1 !== r.mappings.length) return !1;
+ }
+ return !0;
+ },
+ construct: function (e) {
+ if (null === e || !Array.isArray(e.items)) return [];
+ var t,
+ n,
+ r,
+ o = e.items;
+ for (
+ (r = i.newItems()).parent = e.parent,
+ r.startPosition = e.startPosition,
+ r.endPosition = e.endPosition,
+ t = 0,
+ n = o.length;
+ t < n;
+ t += 1
+ ) {
+ var a = o[t].mappings[0],
+ s = i.newItems();
+ (s.parent = r),
+ (s.startPosition = a.key.startPosition),
+ (s.endPosition = a.value.startPosition),
+ (a.key.parent = s),
+ (a.value.parent = s),
+ (s.items = [a.key, a.value]),
+ r.items.push(s);
+ }
+ return r;
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7),
+ i = n(46);
+ Object.prototype.hasOwnProperty;
+ e.exports = new r.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 : {};
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.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 '';
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(7);
+ e.exports = new r.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,
+ n = /\/([gim]*)$/.exec(e),
+ r = '';
+ if ('/' === t[0]) {
+ if ((n && (r = n[1]), r.length > 3)) return !1;
+ if ('/' !== t[t.length - r.length - 1]) return !1;
+ t = t.slice(1, t.length - r.length - 1);
+ }
+ try {
+ new RegExp(t, r);
+ return !0;
+ } catch (e) {
+ return !1;
+ }
+ },
+ construct: function (e) {
+ var t = e,
+ n = /\/([gim]*)$/.exec(e),
+ r = '';
+ return '/' === t[0] && (n && (r = n[1]), (t = t.slice(1, t.length - r.length - 1))), new RegExp(t, r);
+ },
+ 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;
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ var r = n(25),
+ i = n(34),
+ o = n(100),
+ a = n(58),
+ s = Object.prototype.toString,
+ c = Object.prototype.hasOwnProperty,
+ u = {
+ 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',
+ },
+ l = ['y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'];
+ function p(e) {
+ (this.schema = e.schema || o),
+ (this.indent = Math.max(1, e.indent || 2)),
+ (this.skipInvalid = e.skipInvalid || !1),
+ (this.flowLevel = r.isNothing(e.flowLevel) ? -1 : e.flowLevel),
+ (this.styleMap = (function (e, t) {
+ var n, r, i, o, a, s, u;
+ if (null === t) return {};
+ for (n = {}, i = 0, o = (r = Object.keys(t)).length; i < o; i += 1)
+ (a = r[i]),
+ (s = String(t[a])),
+ '!!' === a.slice(0, 2) && (a = 'tag:yaml.org,2002:' + a.slice(2)),
+ (u = e.compiledTypeMap[a]) && c.call(u.styleAliases, s) && (s = u.styleAliases[s]),
+ (n[a] = s);
+ return n;
+ })(this.schema, e.styles || null)),
+ (this.implicitTypes = this.schema.compiledImplicit),
+ (this.explicitTypes = this.schema.compiledExplicit),
+ (this.tag = null),
+ (this.result = ''),
+ (this.duplicates = []),
+ (this.usedDuplicates = null);
+ }
+ function f(e, t) {
+ for (var n, i = r.repeat(' ', t), o = 0, a = -1, s = '', c = e.length; o < c; )
+ -1 === (a = e.indexOf('\n', o)) ? ((n = e.slice(o)), (o = c)) : ((n = e.slice(o, a + 1)), (o = a + 1)),
+ n.length && '\n' !== n && (s += i),
+ (s += n);
+ return s;
+ }
+ function h(e, t) {
+ return '\n' + r.repeat(' ', e.indent * t);
+ }
+ function d(e) {
+ (this.source = e), (this.result = ''), (this.checkpoint = 0);
+ }
+ function m(e, t, n) {
+ var r, i, o, a, s, c, p, h, m, b, x, w, E, _, j, S, D, A, k;
+ if (0 !== t.length)
+ if (0 != t.indexOf('!include'))
+ if (0 != t.indexOf('!$$$novalue'))
+ if (-1 === l.indexOf(t)) {
+ for (
+ r = !0,
+ (45 !== (i = t.length ? t.charCodeAt(0) : 0) && 63 !== i && 64 !== i && 96 !== i) || (r = !1),
+ 32 === i || 32 === t.charCodeAt(t.length - 1)
+ ? ((r = !1), (o = !1), (a = !1))
+ : ((o = !0), (a = !0)),
+ s = !0,
+ c = new d(t),
+ p = !1,
+ h = 0,
+ m = 0,
+ x = 80,
+ (b = e.indent * n) < 40 ? (x -= b) : (x = 40),
+ E = 0;
+ E < t.length;
+ E++
+ ) {
+ if (((w = t.charCodeAt(E)), r)) {
+ if (g(w)) continue;
+ r = !1;
+ }
+ s && 39 === w && (s = !1),
+ (_ = u[w]),
+ (j = v(w)),
+ (_ || j) &&
+ (10 !== w && 34 !== w && 39 !== w
+ ? ((o = !1), (a = !1))
+ : 10 === w &&
+ ((p = !0),
+ (s = !1),
+ E > 0 && 32 === t.charCodeAt(E - 1) && ((a = !1), (o = !1)),
+ o && ((S = E - h), (h = E), S > m && (m = S))),
+ 34 !== w && (s = !1),
+ c.takeUpTo(E),
+ c.escapeChar());
+ }
+ if (
+ (r &&
+ (function (e, t) {
+ var n, r;
+ for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
+ if (e.implicitTypes[n].resolve(t)) return !0;
+ return !1;
+ })(e, t) &&
+ (r = !1),
+ (D = ''),
+ (o || a) &&
+ ((A = 0),
+ 10 === t.charCodeAt(t.length - 1) && ((A += 1), 10 === t.charCodeAt(t.length - 2) && (A += 1)),
+ 0 === A ? (D = '-') : 2 === A && (D = '+')),
+ a && m < x && (o = !1),
+ p || (a = !1),
+ r)
+ )
+ e.dump = t;
+ else if (s) e.dump = "'" + t + "'";
+ else if (o)
+ (k = (function (e, t) {
+ var n,
+ r = '',
+ i = 0,
+ o = e.length,
+ a = /\n+$/.exec(e);
+ a && (o = a.index + 1);
+ for (; i < o; )
+ (n = e.indexOf('\n', i)) > o || -1 === n
+ ? (r && (r += '\n\n'), (r += y(e.slice(i, o), t)), (i = o))
+ : (r && (r += '\n\n'), (r += y(e.slice(i, n), t)), (i = n + 1));
+ a && '\n' !== a[0] && (r += a[0]);
+ return r;
+ })(t, x)),
+ (e.dump = '>' + D + '\n' + f(k, b));
+ else if (a) D || (t = t.replace(/\n$/, '')), (e.dump = '|' + D + '\n' + f(t, b));
+ else {
+ if (!c) throw new Error('Failed to dump scalar value');
+ c.finish(), (e.dump = '"' + c.result + '"');
+ }
+ } else e.dump = "'" + t + "'";
+ else e.dump = '';
+ else e.dump = '' + t;
+ else e.dump = "''";
+ }
+ function y(e, t) {
+ if ('' === e) return e;
+ for (var n, r, i = /[^\s] [^\s]/g, o = '', a = 0, s = 0, c = i.exec(e); c; )
+ (n = c.index) - s > t && ((r = a !== s ? a : n), o && (o += '\n'), (o += e.slice(s, r)), (s = r + 1)),
+ (a = n + 1),
+ (c = i.exec(e));
+ return (
+ o && (o += '\n'),
+ s !== a && e.length - s > t ? (o += e.slice(s, a) + '\n' + e.slice(a + 1)) : (o += e.slice(s)),
+ o
+ );
+ }
+ function g(e) {
+ return (
+ 9 !== e &&
+ 10 !== e &&
+ 13 !== e &&
+ 44 !== e &&
+ 91 !== e &&
+ 93 !== e &&
+ 123 !== e &&
+ 125 !== e &&
+ 35 !== e &&
+ 38 !== e &&
+ 42 !== e &&
+ 33 !== e &&
+ 124 !== e &&
+ 62 !== e &&
+ 39 !== e &&
+ 34 !== e &&
+ 37 !== e &&
+ 58 !== e &&
+ !u[e] &&
+ !v(e)
+ );
+ }
+ function v(e) {
+ return !(
+ (32 <= e && e <= 126) ||
+ 133 === e ||
+ (160 <= e && e <= 55295) ||
+ (57344 <= e && e <= 65533) ||
+ (65536 <= e && e <= 1114111)
+ );
+ }
+ function b(e, t, n) {
+ var r, o, a, u, l, p;
+ for (a = 0, u = (o = n ? e.explicitTypes : e.implicitTypes).length; a < u; a += 1)
+ if (
+ ((l = o[a]).instanceOf || l.predicate) &&
+ (!l.instanceOf || ('object' == typeof t && t instanceof l.instanceOf)) &&
+ (!l.predicate || l.predicate(t))
+ ) {
+ if (((e.tag = n ? l.tag : '?'), l.represent)) {
+ if (((p = e.styleMap[l.tag] || l.defaultStyle), '[object Function]' === s.call(l.represent)))
+ r = l.represent(t, p);
+ else {
+ if (!c.call(l.represent, p)) throw new i('!<' + l.tag + '> tag resolver accepts not "' + p + '" style');
+ r = l.represent[p](t, p);
+ }
+ e.dump = r;
+ }
+ return !0;
+ }
+ return !1;
+ }
+ function x(e, t, n, r, o) {
+ (e.tag = null), (e.dump = n), b(e, n, !1) || b(e, n, !0);
+ var a = s.call(e.dump);
+ r && (r = 0 > e.flowLevel || e.flowLevel > t),
+ ((null !== e.tag && '?' !== e.tag) || (2 !== e.indent && t > 0)) && (o = !1);
+ var c,
+ u,
+ l = '[object Object]' === a || '[object Array]' === a;
+ if ((l && (u = -1 !== (c = e.duplicates.indexOf(n))), u && e.usedDuplicates[c])) e.dump = '*ref_' + c;
+ else {
+ if ((l && u && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), '[object Object]' === a))
+ r && 0 !== Object.keys(e.dump).length
+ ? (!(function (e, t, n, r) {
+ var i,
+ o,
+ a,
+ s,
+ c,
+ u,
+ l = '',
+ p = e.tag,
+ f = Object.keys(n);
+ for (i = 0, o = f.length; i < o; i += 1)
+ (u = ''),
+ (r && 0 === i) || (u += h(e, t)),
+ (s = n[(a = f[i])]),
+ x(e, t + 1, a, !0, !0) &&
+ ((c = (null !== e.tag && '?' !== e.tag) || (e.dump && e.dump.length > 1024)) &&
+ (e.dump && 10 === e.dump.charCodeAt(0) ? (u += '?') : (u += '? ')),
+ (u += e.dump),
+ c && (u += h(e, t)),
+ x(e, t + 1, s, !0, c) &&
+ (e.dump && 10 === e.dump.charCodeAt(0) ? (u += ':') : (u += ': '), (l += u += e.dump)));
+ (e.tag = p), (e.dump = l || '{}');
+ })(e, t, e.dump, o),
+ u && (e.dump = '&ref_' + c + (0 === t ? '\n' : '') + e.dump))
+ : (!(function (e, t, n) {
+ var r,
+ i,
+ o,
+ a,
+ s,
+ c = '',
+ u = e.tag,
+ l = Object.keys(n);
+ for (r = 0, i = l.length; r < i; r += 1)
+ (s = ''),
+ 0 !== r && (s += ', '),
+ (a = n[(o = l[r])]),
+ x(e, t, o, !1, !1) &&
+ (e.dump.length > 1024 && (s += '? '),
+ (s += e.dump + ': '),
+ x(e, t, a, !1, !1) && (c += s += e.dump));
+ (e.tag = u), (e.dump = '{' + c + '}');
+ })(e, t, e.dump),
+ u && (e.dump = '&ref_' + c + ' ' + e.dump));
+ else if ('[object Array]' === a)
+ r && 0 !== e.dump.length
+ ? (!(function (e, t, n, r) {
+ var i,
+ o,
+ a = '',
+ s = e.tag;
+ for (i = 0, o = n.length; i < o; i += 1)
+ x(e, t + 1, n[i], !0, !0) && ((r && 0 === i) || (a += h(e, t)), (a += '- ' + e.dump));
+ (e.tag = s), (e.dump = a || '[]');
+ })(e, t, e.dump, o),
+ u && (e.dump = '&ref_' + c + (0 === t ? '\n' : '') + e.dump))
+ : (!(function (e, t, n) {
+ var r,
+ i,
+ o = '',
+ a = e.tag;
+ for (r = 0, i = n.length; r < i; r += 1)
+ x(e, t, n[r], !1, !1) && (0 !== r && (o += ', '), (o += e.dump));
+ (e.tag = a), (e.dump = '[' + o + ']');
+ })(e, t, e.dump),
+ u && (e.dump = '&ref_' + c + ' ' + e.dump));
+ else {
+ if ('[object String]' !== a) {
+ if (e.skipInvalid) return !1;
+ throw new i('unacceptable kind of an object to dump ' + a);
+ }
+ '?' !== e.tag && m(e, e.dump, t);
+ }
+ null !== e.tag && '?' !== e.tag && (e.dump = '!<' + e.tag + '> ' + e.dump);
+ }
+ return !0;
+ }
+ function w(e, t) {
+ var n,
+ r,
+ i = [],
+ o = [];
+ for (
+ (function e(t, n, r) {
+ var i, o, a;
+ s.call(t);
+ if (null !== t && 'object' == typeof t)
+ if (-1 !== (o = n.indexOf(t))) -1 === r.indexOf(o) && r.push(o);
+ else if ((n.push(t), Array.isArray(t))) for (o = 0, a = t.length; o < a; o += 1) e(t[o], n, r);
+ else for (i = Object.keys(t), o = 0, a = i.length; o < a; o += 1) e(t[i[o]], n, r);
+ })(e, i, o),
+ n = 0,
+ r = o.length;
+ n < r;
+ n += 1
+ )
+ t.duplicates.push(i[o[n]]);
+ t.usedDuplicates = new Array(r);
+ }
+ function E(e, t) {
+ var n = new p((t = t || {}));
+ return w(e, n), x(n, 0, e, !0, !0) ? n.dump + '\n' : '';
+ }
+ (d.prototype.takeUpTo = function (e) {
+ var t;
+ if (e < this.checkpoint)
+ throw (
+ (((t = new Error('position should be > checkpoint')).position = e), (t.checkpoint = this.checkpoint), t)
+ );
+ return (this.result += this.source.slice(this.checkpoint, e)), (this.checkpoint = e), this;
+ }),
+ (d.prototype.escapeChar = function () {
+ var e, t;
+ return (
+ (e = this.source.charCodeAt(this.checkpoint)),
+ (t =
+ u[e] ||
+ (function (e) {
+ var t, n, o;
+ if (((t = e.toString(16).toUpperCase()), e <= 255)) (n = 'x'), (o = 2);
+ else if (e <= 65535) (n = 'u'), (o = 4);
+ else {
+ if (!(e <= 4294967295)) throw new i('code point within a string may not be greater than 0xFFFFFFFF');
+ (n = 'U'), (o = 8);
+ }
+ return '\\' + n + r.repeat('0', o - t.length) + t;
+ })(e)),
+ (this.result += t),
+ (this.checkpoint += 1),
+ this
+ );
+ }),
+ (d.prototype.finish = function () {
+ this.source.length > this.checkpoint && this.takeUpTo(this.source.length);
+ }),
+ (t.dump = E),
+ (t.safeDump = function (e, t) {
+ return E(e, r.extend({ schema: a }, t));
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r;
+ 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 = function (e) {
+ var t = (function (e) {
+ return 0 === e.lastIndexOf('0o', 0) ? parseInt(e.substring(2), 8) : parseInt(e);
+ })(e);
+ if (isNaN(t)) throw 'Invalid integer "' + e + '"';
+ return t;
+ }),
+ (t.parseYamlFloat = function (e) {
+ if (['.nan', '.NaN', '.NAN'].lastIndexOf(e) >= 0) return NaN;
+ var t = /^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);
+ if (t) return '-' === t[1] ? -1 / 0 : 1 / 0;
+ var n = parseFloat(e);
+ if (!isNaN(n)) return n;
+ 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');
+ })((r = t.ScalarType || (t.ScalarType = {}))),
+ (t.determineScalarType = function (e) {
+ if (void 0 === e) return r.null;
+ if (e.doubleQuoted || !e.plainScalar || e.singleQuoted) return r.string;
+ var t = e.value;
+ return ['null', 'Null', 'NULL', '~', ''].indexOf(t) >= 0 || null == t
+ ? r.null
+ : ['true', 'True', 'TRUE', 'false', 'False', 'FALSE'].indexOf(t) >= 0
+ ? r.bool
+ : /^[-+]?[0-9]+$/.test(t) || /^0o[0-7]+$/.test(t) || /^0x[0-9a-fA-F]+$/.test(t)
+ ? r.int
+ : /^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/.test(t) ||
+ /^[-+]?(\.inf|\.Inf|\.INF)$/.test(t) ||
+ ['.nan', '.NaN', '.NAN'].indexOf(t) >= 0
+ ? r.float
+ : r.string;
+ });
+ },
+ function (e, t, n) {
+ (function (t) {
+ var n;
+ (n = function () {
+ 'use strict';
+ function e(e, t) {
+ return e((t = { exports: {} }), t.exports), t.exports;
+ }
+ 'undefined' != typeof window ? window : void 0 !== t || ('undefined' != typeof self && self);
+ var n = new (e(function (e) {
+ e.exports &&
+ (e.exports = function () {
+ var e = 3,
+ t = 4,
+ n = 12,
+ r = 13,
+ i = 16,
+ o = 17;
+ function a(e, t) {
+ void 0 === t && (t = 0);
+ var n = e.charCodeAt(t);
+ if (55296 <= n && n <= 56319 && t < e.length - 1) {
+ var r = n;
+ return 56320 <= (i = e.charCodeAt(t + 1)) && i <= 57343
+ ? 1024 * (r - 55296) + (i - 56320) + 65536
+ : r;
+ }
+ if (56320 <= n && n <= 57343 && t >= 1) {
+ var i = n;
+ return 55296 <= (r = e.charCodeAt(t - 1)) && r <= 56319
+ ? 1024 * (r - 55296) + (i - 56320) + 65536
+ : i;
+ }
+ return n;
+ }
+ function s(a, s, c) {
+ var u = [a].concat(s).concat([c]),
+ l = u[u.length - 2],
+ p = c,
+ f = u.lastIndexOf(14);
+ if (
+ f > 1 &&
+ u.slice(1, f).every(function (t) {
+ return t == e;
+ }) &&
+ -1 == [e, r, o].indexOf(a)
+ )
+ return 2;
+ var h = u.lastIndexOf(t);
+ if (
+ h > 0 &&
+ u.slice(1, h).every(function (e) {
+ return e == t;
+ }) &&
+ -1 == [n, t].indexOf(l)
+ )
+ return u.filter(function (e) {
+ return e == t;
+ }).length %
+ 2 ==
+ 1
+ ? 3
+ : 4;
+ if (0 == l && 1 == p) return 0;
+ if (2 == l || 0 == l || 1 == l)
+ return 14 == p &&
+ s.every(function (t) {
+ return t == e;
+ })
+ ? 2
+ : 1;
+ if (2 == p || 0 == p || 1 == p) return 1;
+ if (6 == l && (6 == p || 7 == p || 9 == p || 10 == p)) return 0;
+ if (!((9 != l && 7 != l) || (7 != p && 8 != p))) return 0;
+ if ((10 == l || 8 == l) && 8 == p) return 0;
+ if (p == e || 15 == p) return 0;
+ if (5 == p) return 0;
+ if (l == n) return 0;
+ var d = -1 != u.indexOf(e) ? u.lastIndexOf(e) - 1 : u.length - 2;
+ return (-1 != [r, o].indexOf(u[d]) &&
+ u.slice(d + 1, -1).every(function (t) {
+ return t == e;
+ }) &&
+ 14 == p) ||
+ (15 == l && -1 != [i, o].indexOf(p))
+ ? 0
+ : -1 != s.indexOf(t)
+ ? 2
+ : l == t && p == t
+ ? 0
+ : 1;
+ }
+ function c(a) {
+ return (1536 <= a && a <= 1541) ||
+ 1757 == a ||
+ 1807 == a ||
+ 2274 == a ||
+ 3406 == a ||
+ 69821 == a ||
+ (70082 <= a && a <= 70083) ||
+ 72250 == a ||
+ (72326 <= a && a <= 72329) ||
+ 73030 == a
+ ? n
+ : 13 == a
+ ? 0
+ : 10 == a
+ ? 1
+ : (0 <= a && a <= 9) ||
+ (11 <= a && a <= 12) ||
+ (14 <= a && a <= 31) ||
+ (127 <= a && a <= 159) ||
+ 173 == a ||
+ 1564 == a ||
+ 6158 == a ||
+ 8203 == a ||
+ (8206 <= a && a <= 8207) ||
+ 8232 == a ||
+ 8233 == a ||
+ (8234 <= a && a <= 8238) ||
+ (8288 <= a && a <= 8292) ||
+ 8293 == a ||
+ (8294 <= a && a <= 8303) ||
+ (55296 <= a && a <= 57343) ||
+ 65279 == a ||
+ (65520 <= a && a <= 65528) ||
+ (65529 <= a && a <= 65531) ||
+ (113824 <= a && a <= 113827) ||
+ (119155 <= a && a <= 119162) ||
+ 917504 == a ||
+ 917505 == a ||
+ (917506 <= a && a <= 917535) ||
+ (917632 <= a && a <= 917759) ||
+ (918e3 <= a && a <= 921599)
+ ? 2
+ : (768 <= a && a <= 879) ||
+ (1155 <= a && a <= 1159) ||
+ (1160 <= a && a <= 1161) ||
+ (1425 <= a && a <= 1469) ||
+ 1471 == a ||
+ (1473 <= a && a <= 1474) ||
+ (1476 <= a && a <= 1477) ||
+ 1479 == a ||
+ (1552 <= a && a <= 1562) ||
+ (1611 <= a && a <= 1631) ||
+ 1648 == a ||
+ (1750 <= a && a <= 1756) ||
+ (1759 <= a && a <= 1764) ||
+ (1767 <= a && a <= 1768) ||
+ (1770 <= a && a <= 1773) ||
+ 1809 == a ||
+ (1840 <= a && a <= 1866) ||
+ (1958 <= a && a <= 1968) ||
+ (2027 <= a && a <= 2035) ||
+ (2070 <= a && a <= 2073) ||
+ (2075 <= a && a <= 2083) ||
+ (2085 <= a && a <= 2087) ||
+ (2089 <= a && a <= 2093) ||
+ (2137 <= a && a <= 2139) ||
+ (2260 <= a && a <= 2273) ||
+ (2275 <= a && a <= 2306) ||
+ 2362 == a ||
+ 2364 == a ||
+ (2369 <= a && a <= 2376) ||
+ 2381 == a ||
+ (2385 <= a && a <= 2391) ||
+ (2402 <= a && a <= 2403) ||
+ 2433 == a ||
+ 2492 == a ||
+ 2494 == a ||
+ (2497 <= a && a <= 2500) ||
+ 2509 == a ||
+ 2519 == a ||
+ (2530 <= a && a <= 2531) ||
+ (2561 <= a && a <= 2562) ||
+ 2620 == a ||
+ (2625 <= a && a <= 2626) ||
+ (2631 <= a && a <= 2632) ||
+ (2635 <= a && a <= 2637) ||
+ 2641 == a ||
+ (2672 <= a && a <= 2673) ||
+ 2677 == a ||
+ (2689 <= a && a <= 2690) ||
+ 2748 == a ||
+ (2753 <= a && a <= 2757) ||
+ (2759 <= a && a <= 2760) ||
+ 2765 == a ||
+ (2786 <= a && a <= 2787) ||
+ (2810 <= a && a <= 2815) ||
+ 2817 == a ||
+ 2876 == a ||
+ 2878 == a ||
+ 2879 == a ||
+ (2881 <= a && a <= 2884) ||
+ 2893 == a ||
+ 2902 == a ||
+ 2903 == a ||
+ (2914 <= a && a <= 2915) ||
+ 2946 == a ||
+ 3006 == a ||
+ 3008 == a ||
+ 3021 == a ||
+ 3031 == a ||
+ 3072 == a ||
+ (3134 <= a && a <= 3136) ||
+ (3142 <= a && a <= 3144) ||
+ (3146 <= a && a <= 3149) ||
+ (3157 <= a && a <= 3158) ||
+ (3170 <= a && a <= 3171) ||
+ 3201 == a ||
+ 3260 == a ||
+ 3263 == a ||
+ 3266 == a ||
+ 3270 == a ||
+ (3276 <= a && a <= 3277) ||
+ (3285 <= a && a <= 3286) ||
+ (3298 <= a && a <= 3299) ||
+ (3328 <= a && a <= 3329) ||
+ (3387 <= a && a <= 3388) ||
+ 3390 == a ||
+ (3393 <= a && a <= 3396) ||
+ 3405 == a ||
+ 3415 == a ||
+ (3426 <= a && a <= 3427) ||
+ 3530 == a ||
+ 3535 == a ||
+ (3538 <= a && a <= 3540) ||
+ 3542 == a ||
+ 3551 == a ||
+ 3633 == a ||
+ (3636 <= a && a <= 3642) ||
+ (3655 <= a && a <= 3662) ||
+ 3761 == a ||
+ (3764 <= a && a <= 3769) ||
+ (3771 <= a && a <= 3772) ||
+ (3784 <= a && a <= 3789) ||
+ (3864 <= a && a <= 3865) ||
+ 3893 == a ||
+ 3895 == a ||
+ 3897 == a ||
+ (3953 <= a && a <= 3966) ||
+ (3968 <= a && a <= 3972) ||
+ (3974 <= a && a <= 3975) ||
+ (3981 <= a && a <= 3991) ||
+ (3993 <= a && a <= 4028) ||
+ 4038 == a ||
+ (4141 <= a && a <= 4144) ||
+ (4146 <= a && a <= 4151) ||
+ (4153 <= a && a <= 4154) ||
+ (4157 <= a && a <= 4158) ||
+ (4184 <= a && a <= 4185) ||
+ (4190 <= a && a <= 4192) ||
+ (4209 <= a && a <= 4212) ||
+ 4226 == a ||
+ (4229 <= a && a <= 4230) ||
+ 4237 == a ||
+ 4253 == a ||
+ (4957 <= a && a <= 4959) ||
+ (5906 <= a && a <= 5908) ||
+ (5938 <= a && a <= 5940) ||
+ (5970 <= a && a <= 5971) ||
+ (6002 <= a && a <= 6003) ||
+ (6068 <= a && a <= 6069) ||
+ (6071 <= a && a <= 6077) ||
+ 6086 == a ||
+ (6089 <= a && a <= 6099) ||
+ 6109 == a ||
+ (6155 <= a && a <= 6157) ||
+ (6277 <= a && a <= 6278) ||
+ 6313 == a ||
+ (6432 <= a && a <= 6434) ||
+ (6439 <= a && a <= 6440) ||
+ 6450 == a ||
+ (6457 <= a && a <= 6459) ||
+ (6679 <= a && a <= 6680) ||
+ 6683 == a ||
+ 6742 == a ||
+ (6744 <= a && a <= 6750) ||
+ 6752 == a ||
+ 6754 == a ||
+ (6757 <= a && a <= 6764) ||
+ (6771 <= a && a <= 6780) ||
+ 6783 == a ||
+ (6832 <= a && a <= 6845) ||
+ 6846 == a ||
+ (6912 <= a && a <= 6915) ||
+ 6964 == a ||
+ (6966 <= a && a <= 6970) ||
+ 6972 == a ||
+ 6978 == a ||
+ (7019 <= a && a <= 7027) ||
+ (7040 <= a && a <= 7041) ||
+ (7074 <= a && a <= 7077) ||
+ (7080 <= a && a <= 7081) ||
+ (7083 <= a && a <= 7085) ||
+ 7142 == a ||
+ (7144 <= a && a <= 7145) ||
+ 7149 == a ||
+ (7151 <= a && a <= 7153) ||
+ (7212 <= a && a <= 7219) ||
+ (7222 <= a && a <= 7223) ||
+ (7376 <= a && a <= 7378) ||
+ (7380 <= a && a <= 7392) ||
+ (7394 <= a && a <= 7400) ||
+ 7405 == a ||
+ 7412 == a ||
+ (7416 <= a && a <= 7417) ||
+ (7616 <= a && a <= 7673) ||
+ (7675 <= a && a <= 7679) ||
+ 8204 == a ||
+ (8400 <= a && a <= 8412) ||
+ (8413 <= a && a <= 8416) ||
+ 8417 == a ||
+ (8418 <= a && a <= 8420) ||
+ (8421 <= a && a <= 8432) ||
+ (11503 <= a && a <= 11505) ||
+ 11647 == a ||
+ (11744 <= a && a <= 11775) ||
+ (12330 <= a && a <= 12333) ||
+ (12334 <= a && a <= 12335) ||
+ (12441 <= a && a <= 12442) ||
+ 42607 == a ||
+ (42608 <= a && a <= 42610) ||
+ (42612 <= a && a <= 42621) ||
+ (42654 <= a && a <= 42655) ||
+ (42736 <= a && a <= 42737) ||
+ 43010 == a ||
+ 43014 == a ||
+ 43019 == a ||
+ (43045 <= a && a <= 43046) ||
+ (43204 <= a && a <= 43205) ||
+ (43232 <= a && a <= 43249) ||
+ (43302 <= a && a <= 43309) ||
+ (43335 <= a && a <= 43345) ||
+ (43392 <= a && a <= 43394) ||
+ 43443 == a ||
+ (43446 <= a && a <= 43449) ||
+ 43452 == a ||
+ 43493 == a ||
+ (43561 <= a && a <= 43566) ||
+ (43569 <= a && a <= 43570) ||
+ (43573 <= a && a <= 43574) ||
+ 43587 == a ||
+ 43596 == a ||
+ 43644 == a ||
+ 43696 == a ||
+ (43698 <= a && a <= 43700) ||
+ (43703 <= a && a <= 43704) ||
+ (43710 <= a && a <= 43711) ||
+ 43713 == a ||
+ (43756 <= a && a <= 43757) ||
+ 43766 == a ||
+ 44005 == a ||
+ 44008 == a ||
+ 44013 == a ||
+ 64286 == a ||
+ (65024 <= a && a <= 65039) ||
+ (65056 <= a && a <= 65071) ||
+ (65438 <= a && a <= 65439) ||
+ 66045 == a ||
+ 66272 == a ||
+ (66422 <= a && a <= 66426) ||
+ (68097 <= a && a <= 68099) ||
+ (68101 <= a && a <= 68102) ||
+ (68108 <= a && a <= 68111) ||
+ (68152 <= a && a <= 68154) ||
+ 68159 == a ||
+ (68325 <= a && a <= 68326) ||
+ 69633 == a ||
+ (69688 <= a && a <= 69702) ||
+ (69759 <= a && a <= 69761) ||
+ (69811 <= a && a <= 69814) ||
+ (69817 <= a && a <= 69818) ||
+ (69888 <= a && a <= 69890) ||
+ (69927 <= a && a <= 69931) ||
+ (69933 <= a && a <= 69940) ||
+ 70003 == a ||
+ (70016 <= a && a <= 70017) ||
+ (70070 <= a && a <= 70078) ||
+ (70090 <= a && a <= 70092) ||
+ (70191 <= a && a <= 70193) ||
+ 70196 == a ||
+ (70198 <= a && a <= 70199) ||
+ 70206 == a ||
+ 70367 == a ||
+ (70371 <= a && a <= 70378) ||
+ (70400 <= a && a <= 70401) ||
+ 70460 == a ||
+ 70462 == a ||
+ 70464 == a ||
+ 70487 == a ||
+ (70502 <= a && a <= 70508) ||
+ (70512 <= a && a <= 70516) ||
+ (70712 <= a && a <= 70719) ||
+ (70722 <= a && a <= 70724) ||
+ 70726 == a ||
+ 70832 == a ||
+ (70835 <= a && a <= 70840) ||
+ 70842 == a ||
+ 70845 == a ||
+ (70847 <= a && a <= 70848) ||
+ (70850 <= a && a <= 70851) ||
+ 71087 == a ||
+ (71090 <= a && a <= 71093) ||
+ (71100 <= a && a <= 71101) ||
+ (71103 <= a && a <= 71104) ||
+ (71132 <= a && a <= 71133) ||
+ (71219 <= a && a <= 71226) ||
+ 71229 == a ||
+ (71231 <= a && a <= 71232) ||
+ 71339 == a ||
+ 71341 == a ||
+ (71344 <= a && a <= 71349) ||
+ 71351 == a ||
+ (71453 <= a && a <= 71455) ||
+ (71458 <= a && a <= 71461) ||
+ (71463 <= a && a <= 71467) ||
+ (72193 <= a && a <= 72198) ||
+ (72201 <= a && a <= 72202) ||
+ (72243 <= a && a <= 72248) ||
+ (72251 <= a && a <= 72254) ||
+ 72263 == a ||
+ (72273 <= a && a <= 72278) ||
+ (72281 <= a && a <= 72283) ||
+ (72330 <= a && a <= 72342) ||
+ (72344 <= a && a <= 72345) ||
+ (72752 <= a && a <= 72758) ||
+ (72760 <= a && a <= 72765) ||
+ 72767 == a ||
+ (72850 <= a && a <= 72871) ||
+ (72874 <= a && a <= 72880) ||
+ (72882 <= a && a <= 72883) ||
+ (72885 <= a && a <= 72886) ||
+ (73009 <= a && a <= 73014) ||
+ 73018 == a ||
+ (73020 <= a && a <= 73021) ||
+ (73023 <= a && a <= 73029) ||
+ 73031 == a ||
+ (92912 <= a && a <= 92916) ||
+ (92976 <= a && a <= 92982) ||
+ (94095 <= a && a <= 94098) ||
+ (113821 <= a && a <= 113822) ||
+ 119141 == a ||
+ (119143 <= a && a <= 119145) ||
+ (119150 <= a && a <= 119154) ||
+ (119163 <= a && a <= 119170) ||
+ (119173 <= a && a <= 119179) ||
+ (119210 <= a && a <= 119213) ||
+ (119362 <= a && a <= 119364) ||
+ (121344 <= a && a <= 121398) ||
+ (121403 <= a && a <= 121452) ||
+ 121461 == a ||
+ 121476 == a ||
+ (121499 <= a && a <= 121503) ||
+ (121505 <= a && a <= 121519) ||
+ (122880 <= a && a <= 122886) ||
+ (122888 <= a && a <= 122904) ||
+ (122907 <= a && a <= 122913) ||
+ (122915 <= a && a <= 122916) ||
+ (122918 <= a && a <= 122922) ||
+ (125136 <= a && a <= 125142) ||
+ (125252 <= a && a <= 125258) ||
+ (917536 <= a && a <= 917631) ||
+ (917760 <= a && a <= 917999)
+ ? e
+ : 127462 <= a && a <= 127487
+ ? t
+ : 2307 == a ||
+ 2363 == a ||
+ (2366 <= a && a <= 2368) ||
+ (2377 <= a && a <= 2380) ||
+ (2382 <= a && a <= 2383) ||
+ (2434 <= a && a <= 2435) ||
+ (2495 <= a && a <= 2496) ||
+ (2503 <= a && a <= 2504) ||
+ (2507 <= a && a <= 2508) ||
+ 2563 == a ||
+ (2622 <= a && a <= 2624) ||
+ 2691 == a ||
+ (2750 <= a && a <= 2752) ||
+ 2761 == a ||
+ (2763 <= a && a <= 2764) ||
+ (2818 <= a && a <= 2819) ||
+ 2880 == a ||
+ (2887 <= a && a <= 2888) ||
+ (2891 <= a && a <= 2892) ||
+ 3007 == a ||
+ (3009 <= a && a <= 3010) ||
+ (3014 <= a && a <= 3016) ||
+ (3018 <= a && a <= 3020) ||
+ (3073 <= a && a <= 3075) ||
+ (3137 <= a && a <= 3140) ||
+ (3202 <= a && a <= 3203) ||
+ 3262 == a ||
+ (3264 <= a && a <= 3265) ||
+ (3267 <= a && a <= 3268) ||
+ (3271 <= a && a <= 3272) ||
+ (3274 <= a && a <= 3275) ||
+ (3330 <= a && a <= 3331) ||
+ (3391 <= a && a <= 3392) ||
+ (3398 <= a && a <= 3400) ||
+ (3402 <= a && a <= 3404) ||
+ (3458 <= a && a <= 3459) ||
+ (3536 <= a && a <= 3537) ||
+ (3544 <= a && a <= 3550) ||
+ (3570 <= a && a <= 3571) ||
+ 3635 == a ||
+ 3763 == a ||
+ (3902 <= a && a <= 3903) ||
+ 3967 == a ||
+ 4145 == a ||
+ (4155 <= a && a <= 4156) ||
+ (4182 <= a && a <= 4183) ||
+ 4228 == a ||
+ 6070 == a ||
+ (6078 <= a && a <= 6085) ||
+ (6087 <= a && a <= 6088) ||
+ (6435 <= a && a <= 6438) ||
+ (6441 <= a && a <= 6443) ||
+ (6448 <= a && a <= 6449) ||
+ (6451 <= a && a <= 6456) ||
+ (6681 <= a && a <= 6682) ||
+ 6741 == a ||
+ 6743 == a ||
+ (6765 <= a && a <= 6770) ||
+ 6916 == a ||
+ 6965 == a ||
+ 6971 == a ||
+ (6973 <= a && a <= 6977) ||
+ (6979 <= a && a <= 6980) ||
+ 7042 == a ||
+ 7073 == a ||
+ (7078 <= a && a <= 7079) ||
+ 7082 == a ||
+ 7143 == a ||
+ (7146 <= a && a <= 7148) ||
+ 7150 == a ||
+ (7154 <= a && a <= 7155) ||
+ (7204 <= a && a <= 7211) ||
+ (7220 <= a && a <= 7221) ||
+ 7393 == a ||
+ (7410 <= a && a <= 7411) ||
+ 7415 == a ||
+ (43043 <= a && a <= 43044) ||
+ 43047 == a ||
+ (43136 <= a && a <= 43137) ||
+ (43188 <= a && a <= 43203) ||
+ (43346 <= a && a <= 43347) ||
+ 43395 == a ||
+ (43444 <= a && a <= 43445) ||
+ (43450 <= a && a <= 43451) ||
+ (43453 <= a && a <= 43456) ||
+ (43567 <= a && a <= 43568) ||
+ (43571 <= a && a <= 43572) ||
+ 43597 == a ||
+ 43755 == a ||
+ (43758 <= a && a <= 43759) ||
+ 43765 == a ||
+ (44003 <= a && a <= 44004) ||
+ (44006 <= a && a <= 44007) ||
+ (44009 <= a && a <= 44010) ||
+ 44012 == a ||
+ 69632 == a ||
+ 69634 == a ||
+ 69762 == a ||
+ (69808 <= a && a <= 69810) ||
+ (69815 <= a && a <= 69816) ||
+ 69932 == a ||
+ 70018 == a ||
+ (70067 <= a && a <= 70069) ||
+ (70079 <= a && a <= 70080) ||
+ (70188 <= a && a <= 70190) ||
+ (70194 <= a && a <= 70195) ||
+ 70197 == a ||
+ (70368 <= a && a <= 70370) ||
+ (70402 <= a && a <= 70403) ||
+ 70463 == a ||
+ (70465 <= a && a <= 70468) ||
+ (70471 <= a && a <= 70472) ||
+ (70475 <= a && a <= 70477) ||
+ (70498 <= a && a <= 70499) ||
+ (70709 <= a && a <= 70711) ||
+ (70720 <= a && a <= 70721) ||
+ 70725 == a ||
+ (70833 <= a && a <= 70834) ||
+ 70841 == a ||
+ (70843 <= a && a <= 70844) ||
+ 70846 == a ||
+ 70849 == a ||
+ (71088 <= a && a <= 71089) ||
+ (71096 <= a && a <= 71099) ||
+ 71102 == a ||
+ (71216 <= a && a <= 71218) ||
+ (71227 <= a && a <= 71228) ||
+ 71230 == a ||
+ 71340 == a ||
+ (71342 <= a && a <= 71343) ||
+ 71350 == a ||
+ (71456 <= a && a <= 71457) ||
+ 71462 == a ||
+ (72199 <= a && a <= 72200) ||
+ 72249 == a ||
+ (72279 <= a && a <= 72280) ||
+ 72343 == a ||
+ 72751 == a ||
+ 72766 == a ||
+ 72873 == a ||
+ 72881 == a ||
+ 72884 == a ||
+ (94033 <= a && a <= 94078) ||
+ 119142 == a ||
+ 119149 == a
+ ? 5
+ : (4352 <= a && a <= 4447) || (43360 <= a && a <= 43388)
+ ? 6
+ : (4448 <= a && a <= 4519) || (55216 <= a && a <= 55238)
+ ? 7
+ : (4520 <= a && a <= 4607) || (55243 <= a && a <= 55291)
+ ? 8
+ : 44032 == a ||
+ 44060 == a ||
+ 44088 == a ||
+ 44116 == a ||
+ 44144 == a ||
+ 44172 == a ||
+ 44200 == a ||
+ 44228 == a ||
+ 44256 == a ||
+ 44284 == a ||
+ 44312 == a ||
+ 44340 == a ||
+ 44368 == a ||
+ 44396 == a ||
+ 44424 == a ||
+ 44452 == a ||
+ 44480 == a ||
+ 44508 == a ||
+ 44536 == a ||
+ 44564 == a ||
+ 44592 == a ||
+ 44620 == a ||
+ 44648 == a ||
+ 44676 == a ||
+ 44704 == a ||
+ 44732 == a ||
+ 44760 == a ||
+ 44788 == a ||
+ 44816 == a ||
+ 44844 == a ||
+ 44872 == a ||
+ 44900 == a ||
+ 44928 == a ||
+ 44956 == a ||
+ 44984 == a ||
+ 45012 == a ||
+ 45040 == a ||
+ 45068 == a ||
+ 45096 == a ||
+ 45124 == a ||
+ 45152 == a ||
+ 45180 == a ||
+ 45208 == a ||
+ 45236 == a ||
+ 45264 == a ||
+ 45292 == a ||
+ 45320 == a ||
+ 45348 == a ||
+ 45376 == a ||
+ 45404 == a ||
+ 45432 == a ||
+ 45460 == a ||
+ 45488 == a ||
+ 45516 == a ||
+ 45544 == a ||
+ 45572 == a ||
+ 45600 == a ||
+ 45628 == a ||
+ 45656 == a ||
+ 45684 == a ||
+ 45712 == a ||
+ 45740 == a ||
+ 45768 == a ||
+ 45796 == a ||
+ 45824 == a ||
+ 45852 == a ||
+ 45880 == a ||
+ 45908 == a ||
+ 45936 == a ||
+ 45964 == a ||
+ 45992 == a ||
+ 46020 == a ||
+ 46048 == a ||
+ 46076 == a ||
+ 46104 == a ||
+ 46132 == a ||
+ 46160 == a ||
+ 46188 == a ||
+ 46216 == a ||
+ 46244 == a ||
+ 46272 == a ||
+ 46300 == a ||
+ 46328 == a ||
+ 46356 == a ||
+ 46384 == a ||
+ 46412 == a ||
+ 46440 == a ||
+ 46468 == a ||
+ 46496 == a ||
+ 46524 == a ||
+ 46552 == a ||
+ 46580 == a ||
+ 46608 == a ||
+ 46636 == a ||
+ 46664 == a ||
+ 46692 == a ||
+ 46720 == a ||
+ 46748 == a ||
+ 46776 == a ||
+ 46804 == a ||
+ 46832 == a ||
+ 46860 == a ||
+ 46888 == a ||
+ 46916 == a ||
+ 46944 == a ||
+ 46972 == a ||
+ 47e3 == a ||
+ 47028 == a ||
+ 47056 == a ||
+ 47084 == a ||
+ 47112 == a ||
+ 47140 == a ||
+ 47168 == a ||
+ 47196 == a ||
+ 47224 == a ||
+ 47252 == a ||
+ 47280 == a ||
+ 47308 == a ||
+ 47336 == a ||
+ 47364 == a ||
+ 47392 == a ||
+ 47420 == a ||
+ 47448 == a ||
+ 47476 == a ||
+ 47504 == a ||
+ 47532 == a ||
+ 47560 == a ||
+ 47588 == a ||
+ 47616 == a ||
+ 47644 == a ||
+ 47672 == a ||
+ 47700 == a ||
+ 47728 == a ||
+ 47756 == a ||
+ 47784 == a ||
+ 47812 == a ||
+ 47840 == a ||
+ 47868 == a ||
+ 47896 == a ||
+ 47924 == a ||
+ 47952 == a ||
+ 47980 == a ||
+ 48008 == a ||
+ 48036 == a ||
+ 48064 == a ||
+ 48092 == a ||
+ 48120 == a ||
+ 48148 == a ||
+ 48176 == a ||
+ 48204 == a ||
+ 48232 == a ||
+ 48260 == a ||
+ 48288 == a ||
+ 48316 == a ||
+ 48344 == a ||
+ 48372 == a ||
+ 48400 == a ||
+ 48428 == a ||
+ 48456 == a ||
+ 48484 == a ||
+ 48512 == a ||
+ 48540 == a ||
+ 48568 == a ||
+ 48596 == a ||
+ 48624 == a ||
+ 48652 == a ||
+ 48680 == a ||
+ 48708 == a ||
+ 48736 == a ||
+ 48764 == a ||
+ 48792 == a ||
+ 48820 == a ||
+ 48848 == a ||
+ 48876 == a ||
+ 48904 == a ||
+ 48932 == a ||
+ 48960 == a ||
+ 48988 == a ||
+ 49016 == a ||
+ 49044 == a ||
+ 49072 == a ||
+ 49100 == a ||
+ 49128 == a ||
+ 49156 == a ||
+ 49184 == a ||
+ 49212 == a ||
+ 49240 == a ||
+ 49268 == a ||
+ 49296 == a ||
+ 49324 == a ||
+ 49352 == a ||
+ 49380 == a ||
+ 49408 == a ||
+ 49436 == a ||
+ 49464 == a ||
+ 49492 == a ||
+ 49520 == a ||
+ 49548 == a ||
+ 49576 == a ||
+ 49604 == a ||
+ 49632 == a ||
+ 49660 == a ||
+ 49688 == a ||
+ 49716 == a ||
+ 49744 == a ||
+ 49772 == a ||
+ 49800 == a ||
+ 49828 == a ||
+ 49856 == a ||
+ 49884 == a ||
+ 49912 == a ||
+ 49940 == a ||
+ 49968 == a ||
+ 49996 == a ||
+ 50024 == a ||
+ 50052 == a ||
+ 50080 == a ||
+ 50108 == a ||
+ 50136 == a ||
+ 50164 == a ||
+ 50192 == a ||
+ 50220 == a ||
+ 50248 == a ||
+ 50276 == a ||
+ 50304 == a ||
+ 50332 == a ||
+ 50360 == a ||
+ 50388 == a ||
+ 50416 == a ||
+ 50444 == a ||
+ 50472 == a ||
+ 50500 == a ||
+ 50528 == a ||
+ 50556 == a ||
+ 50584 == a ||
+ 50612 == a ||
+ 50640 == a ||
+ 50668 == a ||
+ 50696 == a ||
+ 50724 == a ||
+ 50752 == a ||
+ 50780 == a ||
+ 50808 == a ||
+ 50836 == a ||
+ 50864 == a ||
+ 50892 == a ||
+ 50920 == a ||
+ 50948 == a ||
+ 50976 == a ||
+ 51004 == a ||
+ 51032 == a ||
+ 51060 == a ||
+ 51088 == a ||
+ 51116 == a ||
+ 51144 == a ||
+ 51172 == a ||
+ 51200 == a ||
+ 51228 == a ||
+ 51256 == a ||
+ 51284 == a ||
+ 51312 == a ||
+ 51340 == a ||
+ 51368 == a ||
+ 51396 == a ||
+ 51424 == a ||
+ 51452 == a ||
+ 51480 == a ||
+ 51508 == a ||
+ 51536 == a ||
+ 51564 == a ||
+ 51592 == a ||
+ 51620 == a ||
+ 51648 == a ||
+ 51676 == a ||
+ 51704 == a ||
+ 51732 == a ||
+ 51760 == a ||
+ 51788 == a ||
+ 51816 == a ||
+ 51844 == a ||
+ 51872 == a ||
+ 51900 == a ||
+ 51928 == a ||
+ 51956 == a ||
+ 51984 == a ||
+ 52012 == a ||
+ 52040 == a ||
+ 52068 == a ||
+ 52096 == a ||
+ 52124 == a ||
+ 52152 == a ||
+ 52180 == a ||
+ 52208 == a ||
+ 52236 == a ||
+ 52264 == a ||
+ 52292 == a ||
+ 52320 == a ||
+ 52348 == a ||
+ 52376 == a ||
+ 52404 == a ||
+ 52432 == a ||
+ 52460 == a ||
+ 52488 == a ||
+ 52516 == a ||
+ 52544 == a ||
+ 52572 == a ||
+ 52600 == a ||
+ 52628 == a ||
+ 52656 == a ||
+ 52684 == a ||
+ 52712 == a ||
+ 52740 == a ||
+ 52768 == a ||
+ 52796 == a ||
+ 52824 == a ||
+ 52852 == a ||
+ 52880 == a ||
+ 52908 == a ||
+ 52936 == a ||
+ 52964 == a ||
+ 52992 == a ||
+ 53020 == a ||
+ 53048 == a ||
+ 53076 == a ||
+ 53104 == a ||
+ 53132 == a ||
+ 53160 == a ||
+ 53188 == a ||
+ 53216 == a ||
+ 53244 == a ||
+ 53272 == a ||
+ 53300 == a ||
+ 53328 == a ||
+ 53356 == a ||
+ 53384 == a ||
+ 53412 == a ||
+ 53440 == a ||
+ 53468 == a ||
+ 53496 == a ||
+ 53524 == a ||
+ 53552 == a ||
+ 53580 == a ||
+ 53608 == a ||
+ 53636 == a ||
+ 53664 == a ||
+ 53692 == a ||
+ 53720 == a ||
+ 53748 == a ||
+ 53776 == a ||
+ 53804 == a ||
+ 53832 == a ||
+ 53860 == a ||
+ 53888 == a ||
+ 53916 == a ||
+ 53944 == a ||
+ 53972 == a ||
+ 54e3 == a ||
+ 54028 == a ||
+ 54056 == a ||
+ 54084 == a ||
+ 54112 == a ||
+ 54140 == a ||
+ 54168 == a ||
+ 54196 == a ||
+ 54224 == a ||
+ 54252 == a ||
+ 54280 == a ||
+ 54308 == a ||
+ 54336 == a ||
+ 54364 == a ||
+ 54392 == a ||
+ 54420 == a ||
+ 54448 == a ||
+ 54476 == a ||
+ 54504 == a ||
+ 54532 == a ||
+ 54560 == a ||
+ 54588 == a ||
+ 54616 == a ||
+ 54644 == a ||
+ 54672 == a ||
+ 54700 == a ||
+ 54728 == a ||
+ 54756 == a ||
+ 54784 == a ||
+ 54812 == a ||
+ 54840 == a ||
+ 54868 == a ||
+ 54896 == a ||
+ 54924 == a ||
+ 54952 == a ||
+ 54980 == a ||
+ 55008 == a ||
+ 55036 == a ||
+ 55064 == a ||
+ 55092 == a ||
+ 55120 == a ||
+ 55148 == a ||
+ 55176 == a
+ ? 9
+ : (44033 <= a && a <= 44059) ||
+ (44061 <= a && a <= 44087) ||
+ (44089 <= a && a <= 44115) ||
+ (44117 <= a && a <= 44143) ||
+ (44145 <= a && a <= 44171) ||
+ (44173 <= a && a <= 44199) ||
+ (44201 <= a && a <= 44227) ||
+ (44229 <= a && a <= 44255) ||
+ (44257 <= a && a <= 44283) ||
+ (44285 <= a && a <= 44311) ||
+ (44313 <= a && a <= 44339) ||
+ (44341 <= a && a <= 44367) ||
+ (44369 <= a && a <= 44395) ||
+ (44397 <= a && a <= 44423) ||
+ (44425 <= a && a <= 44451) ||
+ (44453 <= a && a <= 44479) ||
+ (44481 <= a && a <= 44507) ||
+ (44509 <= a && a <= 44535) ||
+ (44537 <= a && a <= 44563) ||
+ (44565 <= a && a <= 44591) ||
+ (44593 <= a && a <= 44619) ||
+ (44621 <= a && a <= 44647) ||
+ (44649 <= a && a <= 44675) ||
+ (44677 <= a && a <= 44703) ||
+ (44705 <= a && a <= 44731) ||
+ (44733 <= a && a <= 44759) ||
+ (44761 <= a && a <= 44787) ||
+ (44789 <= a && a <= 44815) ||
+ (44817 <= a && a <= 44843) ||
+ (44845 <= a && a <= 44871) ||
+ (44873 <= a && a <= 44899) ||
+ (44901 <= a && a <= 44927) ||
+ (44929 <= a && a <= 44955) ||
+ (44957 <= a && a <= 44983) ||
+ (44985 <= a && a <= 45011) ||
+ (45013 <= a && a <= 45039) ||
+ (45041 <= a && a <= 45067) ||
+ (45069 <= a && a <= 45095) ||
+ (45097 <= a && a <= 45123) ||
+ (45125 <= a && a <= 45151) ||
+ (45153 <= a && a <= 45179) ||
+ (45181 <= a && a <= 45207) ||
+ (45209 <= a && a <= 45235) ||
+ (45237 <= a && a <= 45263) ||
+ (45265 <= a && a <= 45291) ||
+ (45293 <= a && a <= 45319) ||
+ (45321 <= a && a <= 45347) ||
+ (45349 <= a && a <= 45375) ||
+ (45377 <= a && a <= 45403) ||
+ (45405 <= a && a <= 45431) ||
+ (45433 <= a && a <= 45459) ||
+ (45461 <= a && a <= 45487) ||
+ (45489 <= a && a <= 45515) ||
+ (45517 <= a && a <= 45543) ||
+ (45545 <= a && a <= 45571) ||
+ (45573 <= a && a <= 45599) ||
+ (45601 <= a && a <= 45627) ||
+ (45629 <= a && a <= 45655) ||
+ (45657 <= a && a <= 45683) ||
+ (45685 <= a && a <= 45711) ||
+ (45713 <= a && a <= 45739) ||
+ (45741 <= a && a <= 45767) ||
+ (45769 <= a && a <= 45795) ||
+ (45797 <= a && a <= 45823) ||
+ (45825 <= a && a <= 45851) ||
+ (45853 <= a && a <= 45879) ||
+ (45881 <= a && a <= 45907) ||
+ (45909 <= a && a <= 45935) ||
+ (45937 <= a && a <= 45963) ||
+ (45965 <= a && a <= 45991) ||
+ (45993 <= a && a <= 46019) ||
+ (46021 <= a && a <= 46047) ||
+ (46049 <= a && a <= 46075) ||
+ (46077 <= a && a <= 46103) ||
+ (46105 <= a && a <= 46131) ||
+ (46133 <= a && a <= 46159) ||
+ (46161 <= a && a <= 46187) ||
+ (46189 <= a && a <= 46215) ||
+ (46217 <= a && a <= 46243) ||
+ (46245 <= a && a <= 46271) ||
+ (46273 <= a && a <= 46299) ||
+ (46301 <= a && a <= 46327) ||
+ (46329 <= a && a <= 46355) ||
+ (46357 <= a && a <= 46383) ||
+ (46385 <= a && a <= 46411) ||
+ (46413 <= a && a <= 46439) ||
+ (46441 <= a && a <= 46467) ||
+ (46469 <= a && a <= 46495) ||
+ (46497 <= a && a <= 46523) ||
+ (46525 <= a && a <= 46551) ||
+ (46553 <= a && a <= 46579) ||
+ (46581 <= a && a <= 46607) ||
+ (46609 <= a && a <= 46635) ||
+ (46637 <= a && a <= 46663) ||
+ (46665 <= a && a <= 46691) ||
+ (46693 <= a && a <= 46719) ||
+ (46721 <= a && a <= 46747) ||
+ (46749 <= a && a <= 46775) ||
+ (46777 <= a && a <= 46803) ||
+ (46805 <= a && a <= 46831) ||
+ (46833 <= a && a <= 46859) ||
+ (46861 <= a && a <= 46887) ||
+ (46889 <= a && a <= 46915) ||
+ (46917 <= a && a <= 46943) ||
+ (46945 <= a && a <= 46971) ||
+ (46973 <= a && a <= 46999) ||
+ (47001 <= a && a <= 47027) ||
+ (47029 <= a && a <= 47055) ||
+ (47057 <= a && a <= 47083) ||
+ (47085 <= a && a <= 47111) ||
+ (47113 <= a && a <= 47139) ||
+ (47141 <= a && a <= 47167) ||
+ (47169 <= a && a <= 47195) ||
+ (47197 <= a && a <= 47223) ||
+ (47225 <= a && a <= 47251) ||
+ (47253 <= a && a <= 47279) ||
+ (47281 <= a && a <= 47307) ||
+ (47309 <= a && a <= 47335) ||
+ (47337 <= a && a <= 47363) ||
+ (47365 <= a && a <= 47391) ||
+ (47393 <= a && a <= 47419) ||
+ (47421 <= a && a <= 47447) ||
+ (47449 <= a && a <= 47475) ||
+ (47477 <= a && a <= 47503) ||
+ (47505 <= a && a <= 47531) ||
+ (47533 <= a && a <= 47559) ||
+ (47561 <= a && a <= 47587) ||
+ (47589 <= a && a <= 47615) ||
+ (47617 <= a && a <= 47643) ||
+ (47645 <= a && a <= 47671) ||
+ (47673 <= a && a <= 47699) ||
+ (47701 <= a && a <= 47727) ||
+ (47729 <= a && a <= 47755) ||
+ (47757 <= a && a <= 47783) ||
+ (47785 <= a && a <= 47811) ||
+ (47813 <= a && a <= 47839) ||
+ (47841 <= a && a <= 47867) ||
+ (47869 <= a && a <= 47895) ||
+ (47897 <= a && a <= 47923) ||
+ (47925 <= a && a <= 47951) ||
+ (47953 <= a && a <= 47979) ||
+ (47981 <= a && a <= 48007) ||
+ (48009 <= a && a <= 48035) ||
+ (48037 <= a && a <= 48063) ||
+ (48065 <= a && a <= 48091) ||
+ (48093 <= a && a <= 48119) ||
+ (48121 <= a && a <= 48147) ||
+ (48149 <= a && a <= 48175) ||
+ (48177 <= a && a <= 48203) ||
+ (48205 <= a && a <= 48231) ||
+ (48233 <= a && a <= 48259) ||
+ (48261 <= a && a <= 48287) ||
+ (48289 <= a && a <= 48315) ||
+ (48317 <= a && a <= 48343) ||
+ (48345 <= a && a <= 48371) ||
+ (48373 <= a && a <= 48399) ||
+ (48401 <= a && a <= 48427) ||
+ (48429 <= a && a <= 48455) ||
+ (48457 <= a && a <= 48483) ||
+ (48485 <= a && a <= 48511) ||
+ (48513 <= a && a <= 48539) ||
+ (48541 <= a && a <= 48567) ||
+ (48569 <= a && a <= 48595) ||
+ (48597 <= a && a <= 48623) ||
+ (48625 <= a && a <= 48651) ||
+ (48653 <= a && a <= 48679) ||
+ (48681 <= a && a <= 48707) ||
+ (48709 <= a && a <= 48735) ||
+ (48737 <= a && a <= 48763) ||
+ (48765 <= a && a <= 48791) ||
+ (48793 <= a && a <= 48819) ||
+ (48821 <= a && a <= 48847) ||
+ (48849 <= a && a <= 48875) ||
+ (48877 <= a && a <= 48903) ||
+ (48905 <= a && a <= 48931) ||
+ (48933 <= a && a <= 48959) ||
+ (48961 <= a && a <= 48987) ||
+ (48989 <= a && a <= 49015) ||
+ (49017 <= a && a <= 49043) ||
+ (49045 <= a && a <= 49071) ||
+ (49073 <= a && a <= 49099) ||
+ (49101 <= a && a <= 49127) ||
+ (49129 <= a && a <= 49155) ||
+ (49157 <= a && a <= 49183) ||
+ (49185 <= a && a <= 49211) ||
+ (49213 <= a && a <= 49239) ||
+ (49241 <= a && a <= 49267) ||
+ (49269 <= a && a <= 49295) ||
+ (49297 <= a && a <= 49323) ||
+ (49325 <= a && a <= 49351) ||
+ (49353 <= a && a <= 49379) ||
+ (49381 <= a && a <= 49407) ||
+ (49409 <= a && a <= 49435) ||
+ (49437 <= a && a <= 49463) ||
+ (49465 <= a && a <= 49491) ||
+ (49493 <= a && a <= 49519) ||
+ (49521 <= a && a <= 49547) ||
+ (49549 <= a && a <= 49575) ||
+ (49577 <= a && a <= 49603) ||
+ (49605 <= a && a <= 49631) ||
+ (49633 <= a && a <= 49659) ||
+ (49661 <= a && a <= 49687) ||
+ (49689 <= a && a <= 49715) ||
+ (49717 <= a && a <= 49743) ||
+ (49745 <= a && a <= 49771) ||
+ (49773 <= a && a <= 49799) ||
+ (49801 <= a && a <= 49827) ||
+ (49829 <= a && a <= 49855) ||
+ (49857 <= a && a <= 49883) ||
+ (49885 <= a && a <= 49911) ||
+ (49913 <= a && a <= 49939) ||
+ (49941 <= a && a <= 49967) ||
+ (49969 <= a && a <= 49995) ||
+ (49997 <= a && a <= 50023) ||
+ (50025 <= a && a <= 50051) ||
+ (50053 <= a && a <= 50079) ||
+ (50081 <= a && a <= 50107) ||
+ (50109 <= a && a <= 50135) ||
+ (50137 <= a && a <= 50163) ||
+ (50165 <= a && a <= 50191) ||
+ (50193 <= a && a <= 50219) ||
+ (50221 <= a && a <= 50247) ||
+ (50249 <= a && a <= 50275) ||
+ (50277 <= a && a <= 50303) ||
+ (50305 <= a && a <= 50331) ||
+ (50333 <= a && a <= 50359) ||
+ (50361 <= a && a <= 50387) ||
+ (50389 <= a && a <= 50415) ||
+ (50417 <= a && a <= 50443) ||
+ (50445 <= a && a <= 50471) ||
+ (50473 <= a && a <= 50499) ||
+ (50501 <= a && a <= 50527) ||
+ (50529 <= a && a <= 50555) ||
+ (50557 <= a && a <= 50583) ||
+ (50585 <= a && a <= 50611) ||
+ (50613 <= a && a <= 50639) ||
+ (50641 <= a && a <= 50667) ||
+ (50669 <= a && a <= 50695) ||
+ (50697 <= a && a <= 50723) ||
+ (50725 <= a && a <= 50751) ||
+ (50753 <= a && a <= 50779) ||
+ (50781 <= a && a <= 50807) ||
+ (50809 <= a && a <= 50835) ||
+ (50837 <= a && a <= 50863) ||
+ (50865 <= a && a <= 50891) ||
+ (50893 <= a && a <= 50919) ||
+ (50921 <= a && a <= 50947) ||
+ (50949 <= a && a <= 50975) ||
+ (50977 <= a && a <= 51003) ||
+ (51005 <= a && a <= 51031) ||
+ (51033 <= a && a <= 51059) ||
+ (51061 <= a && a <= 51087) ||
+ (51089 <= a && a <= 51115) ||
+ (51117 <= a && a <= 51143) ||
+ (51145 <= a && a <= 51171) ||
+ (51173 <= a && a <= 51199) ||
+ (51201 <= a && a <= 51227) ||
+ (51229 <= a && a <= 51255) ||
+ (51257 <= a && a <= 51283) ||
+ (51285 <= a && a <= 51311) ||
+ (51313 <= a && a <= 51339) ||
+ (51341 <= a && a <= 51367) ||
+ (51369 <= a && a <= 51395) ||
+ (51397 <= a && a <= 51423) ||
+ (51425 <= a && a <= 51451) ||
+ (51453 <= a && a <= 51479) ||
+ (51481 <= a && a <= 51507) ||
+ (51509 <= a && a <= 51535) ||
+ (51537 <= a && a <= 51563) ||
+ (51565 <= a && a <= 51591) ||
+ (51593 <= a && a <= 51619) ||
+ (51621 <= a && a <= 51647) ||
+ (51649 <= a && a <= 51675) ||
+ (51677 <= a && a <= 51703) ||
+ (51705 <= a && a <= 51731) ||
+ (51733 <= a && a <= 51759) ||
+ (51761 <= a && a <= 51787) ||
+ (51789 <= a && a <= 51815) ||
+ (51817 <= a && a <= 51843) ||
+ (51845 <= a && a <= 51871) ||
+ (51873 <= a && a <= 51899) ||
+ (51901 <= a && a <= 51927) ||
+ (51929 <= a && a <= 51955) ||
+ (51957 <= a && a <= 51983) ||
+ (51985 <= a && a <= 52011) ||
+ (52013 <= a && a <= 52039) ||
+ (52041 <= a && a <= 52067) ||
+ (52069 <= a && a <= 52095) ||
+ (52097 <= a && a <= 52123) ||
+ (52125 <= a && a <= 52151) ||
+ (52153 <= a && a <= 52179) ||
+ (52181 <= a && a <= 52207) ||
+ (52209 <= a && a <= 52235) ||
+ (52237 <= a && a <= 52263) ||
+ (52265 <= a && a <= 52291) ||
+ (52293 <= a && a <= 52319) ||
+ (52321 <= a && a <= 52347) ||
+ (52349 <= a && a <= 52375) ||
+ (52377 <= a && a <= 52403) ||
+ (52405 <= a && a <= 52431) ||
+ (52433 <= a && a <= 52459) ||
+ (52461 <= a && a <= 52487) ||
+ (52489 <= a && a <= 52515) ||
+ (52517 <= a && a <= 52543) ||
+ (52545 <= a && a <= 52571) ||
+ (52573 <= a && a <= 52599) ||
+ (52601 <= a && a <= 52627) ||
+ (52629 <= a && a <= 52655) ||
+ (52657 <= a && a <= 52683) ||
+ (52685 <= a && a <= 52711) ||
+ (52713 <= a && a <= 52739) ||
+ (52741 <= a && a <= 52767) ||
+ (52769 <= a && a <= 52795) ||
+ (52797 <= a && a <= 52823) ||
+ (52825 <= a && a <= 52851) ||
+ (52853 <= a && a <= 52879) ||
+ (52881 <= a && a <= 52907) ||
+ (52909 <= a && a <= 52935) ||
+ (52937 <= a && a <= 52963) ||
+ (52965 <= a && a <= 52991) ||
+ (52993 <= a && a <= 53019) ||
+ (53021 <= a && a <= 53047) ||
+ (53049 <= a && a <= 53075) ||
+ (53077 <= a && a <= 53103) ||
+ (53105 <= a && a <= 53131) ||
+ (53133 <= a && a <= 53159) ||
+ (53161 <= a && a <= 53187) ||
+ (53189 <= a && a <= 53215) ||
+ (53217 <= a && a <= 53243) ||
+ (53245 <= a && a <= 53271) ||
+ (53273 <= a && a <= 53299) ||
+ (53301 <= a && a <= 53327) ||
+ (53329 <= a && a <= 53355) ||
+ (53357 <= a && a <= 53383) ||
+ (53385 <= a && a <= 53411) ||
+ (53413 <= a && a <= 53439) ||
+ (53441 <= a && a <= 53467) ||
+ (53469 <= a && a <= 53495) ||
+ (53497 <= a && a <= 53523) ||
+ (53525 <= a && a <= 53551) ||
+ (53553 <= a && a <= 53579) ||
+ (53581 <= a && a <= 53607) ||
+ (53609 <= a && a <= 53635) ||
+ (53637 <= a && a <= 53663) ||
+ (53665 <= a && a <= 53691) ||
+ (53693 <= a && a <= 53719) ||
+ (53721 <= a && a <= 53747) ||
+ (53749 <= a && a <= 53775) ||
+ (53777 <= a && a <= 53803) ||
+ (53805 <= a && a <= 53831) ||
+ (53833 <= a && a <= 53859) ||
+ (53861 <= a && a <= 53887) ||
+ (53889 <= a && a <= 53915) ||
+ (53917 <= a && a <= 53943) ||
+ (53945 <= a && a <= 53971) ||
+ (53973 <= a && a <= 53999) ||
+ (54001 <= a && a <= 54027) ||
+ (54029 <= a && a <= 54055) ||
+ (54057 <= a && a <= 54083) ||
+ (54085 <= a && a <= 54111) ||
+ (54113 <= a && a <= 54139) ||
+ (54141 <= a && a <= 54167) ||
+ (54169 <= a && a <= 54195) ||
+ (54197 <= a && a <= 54223) ||
+ (54225 <= a && a <= 54251) ||
+ (54253 <= a && a <= 54279) ||
+ (54281 <= a && a <= 54307) ||
+ (54309 <= a && a <= 54335) ||
+ (54337 <= a && a <= 54363) ||
+ (54365 <= a && a <= 54391) ||
+ (54393 <= a && a <= 54419) ||
+ (54421 <= a && a <= 54447) ||
+ (54449 <= a && a <= 54475) ||
+ (54477 <= a && a <= 54503) ||
+ (54505 <= a && a <= 54531) ||
+ (54533 <= a && a <= 54559) ||
+ (54561 <= a && a <= 54587) ||
+ (54589 <= a && a <= 54615) ||
+ (54617 <= a && a <= 54643) ||
+ (54645 <= a && a <= 54671) ||
+ (54673 <= a && a <= 54699) ||
+ (54701 <= a && a <= 54727) ||
+ (54729 <= a && a <= 54755) ||
+ (54757 <= a && a <= 54783) ||
+ (54785 <= a && a <= 54811) ||
+ (54813 <= a && a <= 54839) ||
+ (54841 <= a && a <= 54867) ||
+ (54869 <= a && a <= 54895) ||
+ (54897 <= a && a <= 54923) ||
+ (54925 <= a && a <= 54951) ||
+ (54953 <= a && a <= 54979) ||
+ (54981 <= a && a <= 55007) ||
+ (55009 <= a && a <= 55035) ||
+ (55037 <= a && a <= 55063) ||
+ (55065 <= a && a <= 55091) ||
+ (55093 <= a && a <= 55119) ||
+ (55121 <= a && a <= 55147) ||
+ (55149 <= a && a <= 55175) ||
+ (55177 <= a && a <= 55203)
+ ? 10
+ : 9757 == a ||
+ 9977 == a ||
+ (9994 <= a && a <= 9997) ||
+ 127877 == a ||
+ (127938 <= a && a <= 127940) ||
+ 127943 == a ||
+ (127946 <= a && a <= 127948) ||
+ (128066 <= a && a <= 128067) ||
+ (128070 <= a && a <= 128080) ||
+ 128110 == a ||
+ (128112 <= a && a <= 128120) ||
+ 128124 == a ||
+ (128129 <= a && a <= 128131) ||
+ (128133 <= a && a <= 128135) ||
+ 128170 == a ||
+ (128372 <= a && a <= 128373) ||
+ 128378 == a ||
+ 128400 == a ||
+ (128405 <= a && a <= 128406) ||
+ (128581 <= a && a <= 128583) ||
+ (128587 <= a && a <= 128591) ||
+ 128675 == a ||
+ (128692 <= a && a <= 128694) ||
+ 128704 == a ||
+ 128716 == a ||
+ (129304 <= a && a <= 129308) ||
+ (129310 <= a && a <= 129311) ||
+ 129318 == a ||
+ (129328 <= a && a <= 129337) ||
+ (129341 <= a && a <= 129342) ||
+ (129489 <= a && a <= 129501)
+ ? r
+ : 127995 <= a && a <= 127999
+ ? 14
+ : 8205 == a
+ ? 15
+ : 9792 == a ||
+ 9794 == a ||
+ (9877 <= a && a <= 9878) ||
+ 9992 == a ||
+ 10084 == a ||
+ 127752 == a ||
+ 127806 == a ||
+ 127859 == a ||
+ 127891 == a ||
+ 127908 == a ||
+ 127912 == a ||
+ 127979 == a ||
+ 127981 == a ||
+ 128139 == a ||
+ (128187 <= a && a <= 128188) ||
+ 128295 == a ||
+ 128300 == a ||
+ 128488 == a ||
+ 128640 == a ||
+ 128658 == a
+ ? i
+ : 128102 <= a && a <= 128105
+ ? o
+ : 11;
+ }
+ return (
+ (this.nextBreak = function (e, t) {
+ if ((void 0 === t && (t = 0), t < 0)) return 0;
+ if (t >= e.length - 1) return e.length;
+ for (var n, r, i = c(a(e, t)), o = [], u = t + 1; u < e.length; u++)
+ if (
+ ((r = u - 1),
+ !(
+ 55296 <= (n = e).charCodeAt(r) &&
+ n.charCodeAt(r) <= 56319 &&
+ 56320 <= n.charCodeAt(r + 1) &&
+ n.charCodeAt(r + 1) <= 57343
+ ))
+ ) {
+ var l = c(a(e, u));
+ if (s(i, o, l)) return u;
+ o.push(l);
+ }
+ return e.length;
+ }),
+ (this.splitGraphemes = function (e) {
+ for (var t, n = [], r = 0; (t = this.nextBreak(e, r)) < e.length; )
+ n.push(e.slice(r, t)), (r = t);
+ return r < e.length && n.push(e.slice(r)), n;
+ }),
+ (this.iterateGraphemes = function (e) {
+ var t = 0,
+ n = {
+ next: function () {
+ var n, r;
+ return (r = this.nextBreak(e, t)) < e.length
+ ? ((n = e.slice(t, r)), (t = r), { value: n, done: !1 })
+ : t < e.length
+ ? ((n = e.slice(t)), (t = e.length), { value: n, done: !1 })
+ : { value: void 0, done: !0 };
+ }.bind(this),
+ };
+ return (
+ 'undefined' != typeof Symbol &&
+ Symbol.iterator &&
+ (n[Symbol.iterator] = function () {
+ return n;
+ }),
+ n
+ );
+ }),
+ (this.countGraphemes = function (e) {
+ for (var t, n = 0, r = 0; (t = this.nextBreak(e, r)) < e.length; ) (r = t), n++;
+ return r < e.length && n++, n;
+ }),
+ this
+ );
+ });
+ }))(),
+ r = function (e, t, r) {
+ for (var i = n.iterateGraphemes(e.substring(t)), o = '', a = 0; a < r - t; a++) {
+ var s = i.next();
+ if (((o += s.value), s.done)) break;
+ }
+ return o;
+ },
+ i = function (e, t, n, r, i, o, a) {
+ return {
+ start: { line: e, column: t, offset: n },
+ end: { line: r, column: i, offset: o },
+ source: a || null,
+ };
+ },
+ o = e(function (e, t) {
+ e.exports = (function () {
+ var e,
+ t = '',
+ n = function (n, r) {
+ if ('string' != typeof n) throw new TypeError('expected a string');
+ if (1 === r) return n;
+ if (2 === r) return n + n;
+ var i = n.length * r;
+ if (e !== n || void 0 === e) (e = n), (t = '');
+ else if (t.length >= i) return t.substr(0, i);
+ for (; i > t.length && r > 1; ) 1 & r && (t += n), (r >>= 1), (n += n);
+ return (t = (t += n).substr(0, i));
+ },
+ r =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ };
+ function i(e, t, r, i) {
+ var o = (function (e, t, n) {
+ if (null == e || null == t) return e;
+ var r = String(e),
+ i = 'number' == typeof t ? t : parseInt(t, 10);
+ if (isNaN(i) || !isFinite(i)) return r;
+ var o = r.length;
+ if (o >= i) return r;
+ var a = null == n ? '' : String(n);
+ '' === a && (a = ' ');
+ for (var s = i - o; a.length < s; ) a += a;
+ return (a.length > s ? a.substr(0, s) : a) + r;
+ })(String(t), r, ' '),
+ a = n(' ', i.tabSize);
+ return o + ' | ' + e.replace(/\t/g, a);
+ }
+ function o(e, t, n, r, o) {
+ return e
+ .slice(t, n)
+ .map(function (e, n) {
+ return i(e, t + n + 1, r, o);
+ })
+ .join('\n');
+ }
+ var a = { extraLines: 2, tabSize: 4 };
+ return function (e, t, s, c) {
+ c = r({}, a, c);
+ var u = e.split(/\r\n?|\n|\f/),
+ l = Math.max(1, t - c.extraLines) - 1,
+ p = Math.min(t + c.extraLines, u.length),
+ f = String(p).length,
+ h = o(u, l, t, f, c),
+ d = i(u[t - 1].substring(0, s - 1), t, f, c);
+ return [h, n(' ', d.length) + '^', o(u, t, p, f, c)].filter(Boolean).join('\n');
+ };
+ })();
+ }),
+ a = new Error().stack,
+ s = function (e, t, n, r, i) {
+ throw (function (e) {
+ var t = Object.create(SyntaxError.prototype);
+ return (
+ Object.assign(t, e, { name: 'SyntaxError' }),
+ Object.defineProperty(t, 'stack', {
+ get: function () {
+ return a ? a.replace(/^(.+\n){1,3}/, String(t) + '\n') : '';
+ },
+ }),
+ t
+ );
+ })({ message: r ? e + '\n' + o(t, r, i) : e, rawMessage: e, source: n, line: r, column: i });
+ },
+ c = function () {
+ return 'Unexpected end of input';
+ },
+ u = function (e) {
+ for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
+ return 'Unexpected token <' + e + '> at ' + n.filter(Boolean).join(':');
+ },
+ l = function (e) {
+ for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
+ return 'Unexpected symbol <' + e + '> at ' + n.filter(Boolean).join(':');
+ },
+ p = 0,
+ f = 1,
+ h = 2,
+ d = 3,
+ m = 4,
+ y = 5,
+ g = 6,
+ v = 7,
+ b = 8,
+ x = 9,
+ w = 10,
+ E = { '{': p, '}': f, '[': h, ']': d, ':': m, ',': y },
+ _ = { true: b, false: x, null: w },
+ j = 0,
+ S = 1,
+ D = 2,
+ A = { '"': 0, '\\': 1, '/': 2, b: 3, f: 4, n: 5, r: 6, t: 7, u: 8 },
+ k = 0,
+ C = 1,
+ P = 2,
+ T = 3,
+ $ = 4,
+ O = 5,
+ F = 6,
+ I = 7;
+ function N(e) {
+ return e >= '1' && e <= '9';
+ }
+ function R(e) {
+ return e >= '0' && e <= '9';
+ }
+ function B(e) {
+ return R(e) || (e >= 'a' && e <= 'f') || (e >= 'A' && e <= 'F');
+ }
+ function M(e) {
+ return 'e' === e || 'E' === e;
+ }
+ function L(e, t, n, r) {
+ var i = e.charAt(t);
+ if ('\r' === i) t++, n++, (r = 1), '\n' === e.charAt(t) && t++;
+ else if ('\n' === i) t++, n++, (r = 1);
+ else {
+ if ('\t' !== i && ' ' !== i) return null;
+ t++, r++;
+ }
+ return { index: t, line: n, column: r };
+ }
+ function z(e, t, n, r) {
+ var i = e.charAt(t);
+ return i in E ? { type: E[i], line: n, column: r + 1, index: t + 1, value: null } : null;
+ }
+ function U(e, t, n, r) {
+ for (var i in _)
+ if (_.hasOwnProperty(i) && e.substr(t, i.length) === i)
+ return { type: _[i], line: n, column: r + i.length, index: t + i.length, value: i };
+ return null;
+ }
+ function q(e, t, n, r) {
+ for (var i = t, o = j; t < e.length; ) {
+ var a = e.charAt(t);
+ switch (o) {
+ case j:
+ if ('"' !== a) return null;
+ t++, (o = S);
+ break;
+ case S:
+ if ('\\' === a) t++, (o = D);
+ else {
+ if ('"' === a) return t++, { type: g, line: n, column: r + t - i, index: t, value: e.slice(i, t) };
+ t++;
+ }
+ break;
+ case D:
+ if (!(a in A)) return null;
+ if ((t++, 'u' === a))
+ for (var s = 0; s < 4; s++) {
+ var c = e.charAt(t);
+ if (!c || !B(c)) return null;
+ t++;
+ }
+ o = S;
+ }
+ }
+ }
+ function H(e, t, n, r) {
+ var i = t,
+ o = t,
+ a = k;
+ e: for (; t < e.length; ) {
+ var s = e.charAt(t);
+ switch (a) {
+ case k:
+ if ('-' === s) a = C;
+ else if ('0' === s) (o = t + 1), (a = P);
+ else {
+ if (!N(s)) return null;
+ (o = t + 1), (a = T);
+ }
+ break;
+ case C:
+ if ('0' === s) (o = t + 1), (a = P);
+ else {
+ if (!N(s)) return null;
+ (o = t + 1), (a = T);
+ }
+ break;
+ case P:
+ if ('.' === s) a = $;
+ else {
+ if (!M(s)) break e;
+ a = F;
+ }
+ break;
+ case T:
+ if (R(s)) o = t + 1;
+ else if ('.' === s) a = $;
+ else {
+ if (!M(s)) break e;
+ a = F;
+ }
+ break;
+ case $:
+ if (!R(s)) break e;
+ (o = t + 1), (a = O);
+ break;
+ case O:
+ if (R(s)) o = t + 1;
+ else {
+ if (!M(s)) break e;
+ a = F;
+ }
+ break;
+ case F:
+ if ('+' === s || '-' === s) a = I;
+ else {
+ if (!R(s)) break e;
+ (o = t + 1), (a = I);
+ }
+ break;
+ case I:
+ if (!R(s)) break e;
+ o = t + 1;
+ }
+ t++;
+ }
+ return o > 0 ? { type: v, line: n, column: r + o - i, index: o, value: e.slice(i, o) } : null;
+ }
+ var V = 0,
+ J = 1,
+ K = 2,
+ W = 3,
+ X = 0,
+ G = 1,
+ Y = 2,
+ Z = 0,
+ Q = 1,
+ ee = 2,
+ te = 3,
+ ne = { loc: !0, source: null };
+ function re(e, t, n) {
+ var r = t.length > 0 ? t[t.length - 1].loc.end : { line: 1, column: 1 };
+ s(c(), e, n.source, r.line, r.column);
+ }
+ function ie(e) {
+ for (var t = 0, n = 0; n < 4; n++) t = 16 * t + parseInt(e[n], 16);
+ return String.fromCharCode(t);
+ }
+ var oe = { b: '\b', f: '\f', n: '\n', r: '\r', t: '\t' },
+ ae = ['"', '\\', '/'];
+ function se(e) {
+ for (var t = '', n = 0; n < e.length; n++) {
+ var r = e.charAt(n);
+ if ('\\' === r) {
+ n++;
+ var i = e.charAt(n);
+ if ('u' === i) (t += ie(e.substr(n + 1, 4))), (n += 4);
+ else if (-1 !== ae.indexOf(i)) t += i;
+ else {
+ if (!(i in oe)) break;
+ t += oe[i];
+ }
+ } else t += r;
+ }
+ return t;
+ }
+ function ce(e, t, n, o) {
+ for (var a = void 0, c = { type: 'Object', children: [] }, l = V; n < t.length; ) {
+ var h = t[n];
+ switch (l) {
+ case V:
+ if (h.type !== p) return null;
+ (a = h), (l = J), n++;
+ break;
+ case J:
+ if (h.type === f)
+ return (
+ o.loc &&
+ (c.loc = i(
+ a.loc.start.line,
+ a.loc.start.column,
+ a.loc.start.offset,
+ h.loc.end.line,
+ h.loc.end.column,
+ h.loc.end.offset,
+ o.source
+ )),
+ { value: c, index: n + 1 }
+ );
+ var d = ue(e, t, n, o);
+ c.children.push(d.value), (l = K), (n = d.index);
+ break;
+ case K:
+ if (h.type === f)
+ return (
+ o.loc &&
+ (c.loc = i(
+ a.loc.start.line,
+ a.loc.start.column,
+ a.loc.start.offset,
+ h.loc.end.line,
+ h.loc.end.column,
+ h.loc.end.offset,
+ o.source
+ )),
+ { value: c, index: n + 1 }
+ );
+ h.type === y
+ ? ((l = W), n++)
+ : s(
+ u(r(e, h.loc.start.offset, h.loc.end.offset), o.source, h.loc.start.line, h.loc.start.column),
+ e,
+ o.source,
+ h.loc.start.line,
+ h.loc.start.column
+ );
+ break;
+ case W:
+ var m = ue(e, t, n, o);
+ m
+ ? ((n = m.index), c.children.push(m.value), (l = K))
+ : s(
+ u(r(e, h.loc.start.offset, h.loc.end.offset), o.source, h.loc.start.line, h.loc.start.column),
+ e,
+ o.source,
+ h.loc.start.line,
+ h.loc.start.column
+ );
+ }
+ }
+ re(e, t, o);
+ }
+ function ue(e, t, n, o) {
+ for (var a = void 0, c = { type: 'Property', key: null, value: null }, l = X; n < t.length; ) {
+ var p = t[n];
+ switch (l) {
+ case X:
+ if (p.type !== g) return null;
+ var f = {
+ type: 'Identifier',
+ value: se(e.slice(p.loc.start.offset + 1, p.loc.end.offset - 1)),
+ raw: p.value,
+ };
+ o.loc && (f.loc = p.loc), (a = p), (c.key = f), (l = G), n++;
+ break;
+ case G:
+ p.type === m
+ ? ((l = Y), n++)
+ : s(
+ u(r(e, p.loc.start.offset, p.loc.end.offset), o.source, p.loc.start.line, p.loc.start.column),
+ e,
+ o.source,
+ p.loc.start.line,
+ p.loc.start.column
+ );
+ break;
+ case Y:
+ var h = fe(e, t, n, o);
+ return (
+ (c.value = h.value),
+ o.loc &&
+ (c.loc = i(
+ a.loc.start.line,
+ a.loc.start.column,
+ a.loc.start.offset,
+ h.value.loc.end.line,
+ h.value.loc.end.column,
+ h.value.loc.end.offset,
+ o.source
+ )),
+ { value: c, index: h.index }
+ );
+ }
+ }
+ }
+ function le(e, t, n, o) {
+ for (var a = void 0, c = { type: 'Array', children: [] }, l = Z, p = void 0; n < t.length; )
+ switch (((p = t[n]), l)) {
+ case Z:
+ if (p.type !== h) return null;
+ (a = p), (l = Q), n++;
+ break;
+ case Q:
+ if (p.type === d)
+ return (
+ o.loc &&
+ (c.loc = i(
+ a.loc.start.line,
+ a.loc.start.column,
+ a.loc.start.offset,
+ p.loc.end.line,
+ p.loc.end.column,
+ p.loc.end.offset,
+ o.source
+ )),
+ { value: c, index: n + 1 }
+ );
+ var f = fe(e, t, n, o);
+ (n = f.index), c.children.push(f.value), (l = ee);
+ break;
+ case ee:
+ if (p.type === d)
+ return (
+ o.loc &&
+ (c.loc = i(
+ a.loc.start.line,
+ a.loc.start.column,
+ a.loc.start.offset,
+ p.loc.end.line,
+ p.loc.end.column,
+ p.loc.end.offset,
+ o.source
+ )),
+ { value: c, index: n + 1 }
+ );
+ p.type === y
+ ? ((l = te), n++)
+ : s(
+ u(r(e, p.loc.start.offset, p.loc.end.offset), o.source, p.loc.start.line, p.loc.start.column),
+ e,
+ o.source,
+ p.loc.start.line,
+ p.loc.start.column
+ );
+ break;
+ case te:
+ var m = fe(e, t, n, o);
+ (n = m.index), c.children.push(m.value), (l = ee);
+ }
+ re(e, t, o);
+ }
+ function pe(e, t, n, r) {
+ var i = t[n],
+ o = null;
+ switch (i.type) {
+ case g:
+ o = se(e.slice(i.loc.start.offset + 1, i.loc.end.offset - 1));
+ break;
+ case v:
+ o = Number(i.value);
+ break;
+ case b:
+ o = !0;
+ break;
+ case x:
+ o = !1;
+ break;
+ case w:
+ o = null;
+ break;
+ default:
+ return null;
+ }
+ var a = { type: 'Literal', value: o, raw: i.value };
+ return r.loc && (a.loc = i.loc), { value: a, index: n + 1 };
+ }
+ function fe(e, t, n, i) {
+ var o = t[n],
+ a = pe.apply(void 0, arguments) || ce.apply(void 0, arguments) || le.apply(void 0, arguments);
+ if (a) return a;
+ s(
+ u(r(e, o.loc.start.offset, o.loc.end.offset), i.source, o.loc.start.line, o.loc.start.column),
+ e,
+ i.source,
+ o.loc.start.line,
+ o.loc.start.column
+ );
+ }
+ return function (e, t) {
+ var n = (function (e, t) {
+ for (var n = 1, o = 1, a = 0, c = []; a < e.length; ) {
+ var u = [e, a, n, o],
+ p = L.apply(void 0, u);
+ if (p) (a = p.index), (n = p.line), (o = p.column);
+ else {
+ var f = z.apply(void 0, u) || U.apply(void 0, u) || q.apply(void 0, u) || H.apply(void 0, u);
+ if (f) {
+ var h = { type: f.type, value: f.value, loc: i(n, o, a, f.line, f.column, f.index, t.source) };
+ c.push(h), (a = f.index), (n = f.line), (o = f.column);
+ } else s(l(r(e, a, a + 1), t.source, n, o), e, t.source, n, o);
+ }
+ }
+ return c;
+ })(e, (t = Object.assign({}, ne, t)));
+ 0 === n.length && re(e, n, t);
+ var o = fe(e, n, 0, t);
+ if (o.index === n.length) return o.value;
+ var a = n[o.index];
+ s(
+ u(r(e, a.loc.start.offset, a.loc.end.offset), t.source, a.loc.start.line, a.loc.start.column),
+ e,
+ t.source,
+ a.loc.start.line,
+ a.loc.start.column
+ );
+ };
+ }),
+ (e.exports = n());
+ }).call(this, n(8));
+ },
+ function (e, t) {
+ e.exports = (e, t, n = 20) => {
+ try {
+ return JSON.parse(e, t);
+ } catch (t) {
+ !(function (e) {
+ if ('string' != typeof e) {
+ const t = 'Cannot parse ' + (Array.isArray(e) && 0 === e.length ? 'an empty array' : String(e));
+ throw new TypeError(t);
+ }
+ })(e);
+ const r = t.message.match(/^Unexpected token.*position\s+(\d+)/i),
+ i = t.message.match(/^Unexpected end of JSON.*/i) ? e.length - 1 : null,
+ o = r ? +r[1] : i;
+ !(function (e, t, n, r) {
+ if (null !== n) {
+ const i = n <= r ? 0 : n - r,
+ o = n + r >= t.length ? t.length : n + r;
+ e.message += ` while parsing near '${0 === i ? '' : '...'}${t.slice(i, o)}${
+ o === t.length ? '' : '...'
+ }'`;
+ } else e.message += ` while parsing '${t.slice(0, 2 * r)}'`;
+ })(t, e, o, n),
+ (t.offset = o);
+ const a = e.substr(0, o).split('\n');
+ throw ((t.startLine = a.length), (t.startColumn = a[a.length - 1].length), t);
+ }
+ };
+ },
+ function (e, t, n) {
+ const r = n(75),
+ i = n(27),
+ o = n(84),
+ { improveAjvErrors: a } = n(56),
+ s = n(265),
+ c = new r({ jsonPointers: !0, allErrors: !0, schemaId: 'auto', logger: !1 });
+ function u(e, t) {
+ return e.map((e) => ({ ...e, dataPath: `${t}${e.dataPath}` }));
+ }
+ c.addMetaSchema(n(101)),
+ (e.exports = {
+ parse: async function ({
+ message: e,
+ originalAsyncAPIDocument: t,
+ fileFormat: n,
+ parsedAsyncAPIDocument: r,
+ pathToPayload: l,
+ defaultSchemaFormat: p,
+ }) {
+ const f = e.payload;
+ if (!f) return;
+ (e['x-parser-original-schema-format'] = e.schemaFormat || p),
+ (e['x-parser-original-payload'] = s(e.payload));
+ const h = (function (e) {
+ let t = c.getSchema(e);
+ if (!t) {
+ const n = (function (e, t) {
+ const n = `http://asyncapi.com/definitions/${t}/schema.json`,
+ r = e.definitions;
+ return (
+ delete r['http://json-schema.org/draft-07/schema'],
+ delete r['http://json-schema.org/draft-04/schema'],
+ { $ref: n, definitions: r }
+ );
+ })(o[String(e)], e);
+ c.addSchema(n, e), (t = c.getSchema(e));
+ }
+ return t;
+ })(r.asyncapi),
+ d = h(f),
+ m = h.errors && [...h.errors];
+ if (!d)
+ throw new i({
+ type: 'schema-validation-errors',
+ title: 'This is not a valid AsyncAPI Schema Object.',
+ parsedJSON: r,
+ validationErrors: a(u(m, l), t, n),
+ });
+ },
+ getMimeTypes: function () {
+ const e = [
+ 'application/schema;version=draft-07',
+ 'application/schema+json;version=draft-07',
+ 'application/schema+yaml;version=draft-07',
+ ];
+ return (
+ ['2.0.0', '2.1.0', '2.2.0', '2.3.0', '2.4.0', '2.5.0', '2.6.0'].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
+ );
+ },
+ });
+ },
+ function (e, t, n) {
+ (function (e, n) {
+ var r = '[object Arguments]',
+ i = '[object Function]',
+ o = '[object GeneratorFunction]',
+ a = '[object Map]',
+ s = '[object Set]',
+ c = /\w*$/,
+ u = /^\[object .+?Constructor\]$/,
+ l = /^(?:0|[1-9]\d*)$/,
+ p = {};
+ (p[r] =
+ p['[object Array]'] =
+ p['[object ArrayBuffer]'] =
+ p['[object DataView]'] =
+ p['[object Boolean]'] =
+ p['[object Date]'] =
+ p['[object Float32Array]'] =
+ p['[object Float64Array]'] =
+ p['[object Int8Array]'] =
+ p['[object Int16Array]'] =
+ p['[object Int32Array]'] =
+ p[a] =
+ p['[object Number]'] =
+ p['[object Object]'] =
+ p['[object RegExp]'] =
+ p[s] =
+ p['[object String]'] =
+ p['[object Symbol]'] =
+ p['[object Uint8Array]'] =
+ p['[object Uint8ClampedArray]'] =
+ p['[object Uint16Array]'] =
+ p['[object Uint32Array]'] =
+ !0),
+ (p['[object Error]'] = p[i] = p['[object WeakMap]'] = !1);
+ var f = 'object' == typeof e && e && e.Object === Object && e,
+ h = 'object' == typeof self && self && self.Object === Object && self,
+ d = f || h || Function('return this')(),
+ m = t && !t.nodeType && t,
+ y = m && 'object' == typeof n && n && !n.nodeType && n,
+ g = y && y.exports === m;
+ function v(e, t) {
+ return e.set(t[0], t[1]), e;
+ }
+ function b(e, t) {
+ return e.add(t), e;
+ }
+ function x(e, t, n, r) {
+ var i = -1,
+ o = e ? e.length : 0;
+ for (r && o && (n = e[++i]); ++i < o; ) n = t(n, e[i], i, e);
+ return n;
+ }
+ function w(e) {
+ var t = !1;
+ if (null != e && 'function' != typeof e.toString)
+ try {
+ t = !!(e + '');
+ } catch (e) {}
+ return t;
+ }
+ function E(e) {
+ var t = -1,
+ n = Array(e.size);
+ return (
+ e.forEach(function (e, r) {
+ n[++t] = [r, e];
+ }),
+ n
+ );
+ }
+ function _(e, t) {
+ return function (n) {
+ return e(t(n));
+ };
+ }
+ function j(e) {
+ var t = -1,
+ n = Array(e.size);
+ return (
+ e.forEach(function (e) {
+ n[++t] = e;
+ }),
+ n
+ );
+ }
+ var S,
+ D = Array.prototype,
+ A = Function.prototype,
+ k = Object.prototype,
+ C = d['__core-js_shared__'],
+ P = (S = /[^.]+$/.exec((C && C.keys && C.keys.IE_PROTO) || '')) ? 'Symbol(src)_1.' + S : '',
+ T = A.toString,
+ $ = k.hasOwnProperty,
+ O = k.toString,
+ F = RegExp(
+ '^' +
+ T.call($)
+ .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') +
+ '$'
+ ),
+ I = g ? d.Buffer : void 0,
+ N = d.Symbol,
+ R = d.Uint8Array,
+ B = _(Object.getPrototypeOf, Object),
+ M = Object.create,
+ L = k.propertyIsEnumerable,
+ z = D.splice,
+ U = Object.getOwnPropertySymbols,
+ q = I ? I.isBuffer : void 0,
+ H = _(Object.keys, Object),
+ V = ye(d, 'DataView'),
+ J = ye(d, 'Map'),
+ K = ye(d, 'Promise'),
+ W = ye(d, 'Set'),
+ X = ye(d, 'WeakMap'),
+ G = ye(Object, 'create'),
+ Y = we(V),
+ Z = we(J),
+ Q = we(K),
+ ee = we(W),
+ te = we(X),
+ ne = N ? N.prototype : void 0,
+ re = ne ? ne.valueOf : void 0;
+ function ie(e) {
+ var t = -1,
+ n = e ? e.length : 0;
+ for (this.clear(); ++t < n; ) {
+ var r = e[t];
+ this.set(r[0], r[1]);
+ }
+ }
+ function oe(e) {
+ var t = -1,
+ n = e ? e.length : 0;
+ for (this.clear(); ++t < n; ) {
+ var r = e[t];
+ this.set(r[0], r[1]);
+ }
+ }
+ function ae(e) {
+ var t = -1,
+ n = e ? e.length : 0;
+ for (this.clear(); ++t < n; ) {
+ var r = e[t];
+ this.set(r[0], r[1]);
+ }
+ }
+ function se(e) {
+ this.__data__ = new oe(e);
+ }
+ function ce(e, t) {
+ var n =
+ _e(e) ||
+ (function (e) {
+ return (
+ (function (e) {
+ return (
+ (function (e) {
+ return !!e && 'object' == typeof e;
+ })(e) && je(e)
+ );
+ })(e) &&
+ $.call(e, 'callee') &&
+ (!L.call(e, 'callee') || O.call(e) == r)
+ );
+ })(e)
+ ? (function (e, t) {
+ for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
+ return r;
+ })(e.length, String)
+ : [],
+ i = n.length,
+ o = !!i;
+ for (var a in e) (!t && !$.call(e, a)) || (o && ('length' == a || be(a, i))) || n.push(a);
+ return n;
+ }
+ function ue(e, t, n) {
+ var r = e[t];
+ ($.call(e, t) && Ee(r, n) && (void 0 !== n || t in e)) || (e[t] = n);
+ }
+ function le(e, t) {
+ for (var n = e.length; n--; ) if (Ee(e[n][0], t)) return n;
+ return -1;
+ }
+ function pe(e, t, n, u, l, f, h) {
+ var d;
+ if ((u && (d = f ? u(e, l, f, h) : u(e)), void 0 !== d)) return d;
+ if (!Ae(e)) return e;
+ var m = _e(e);
+ if (m) {
+ if (
+ ((d = (function (e) {
+ var t = e.length,
+ n = e.constructor(t);
+ t && 'string' == typeof e[0] && $.call(e, 'index') && ((n.index = e.index), (n.input = e.input));
+ return n;
+ })(e)),
+ !t)
+ )
+ return (function (e, t) {
+ var n = -1,
+ r = e.length;
+ t || (t = Array(r));
+ for (; ++n < r; ) t[n] = e[n];
+ return t;
+ })(e, d);
+ } else {
+ var y = ve(e),
+ g = y == i || y == o;
+ if (Se(e))
+ return (function (e, t) {
+ if (t) return e.slice();
+ var n = new e.constructor(e.length);
+ return e.copy(n), n;
+ })(e, t);
+ if ('[object Object]' == y || y == r || (g && !f)) {
+ if (w(e)) return f ? e : {};
+ if (
+ ((d = (function (e) {
+ return 'function' != typeof e.constructor || xe(e) ? {} : ((t = B(e)), Ae(t) ? M(t) : {});
+ var t;
+ })(g ? {} : e)),
+ !t)
+ )
+ return (function (e, t) {
+ return de(e, ge(e), t);
+ })(
+ e,
+ (function (e, t) {
+ return e && de(t, ke(t), e);
+ })(d, e)
+ );
+ } else {
+ if (!p[y]) return f ? e : {};
+ d = (function (e, t, n, r) {
+ var i = e.constructor;
+ switch (t) {
+ case '[object ArrayBuffer]':
+ return he(e);
+ case '[object Boolean]':
+ case '[object Date]':
+ return new i(+e);
+ case '[object DataView]':
+ return (function (e, t) {
+ var n = t ? he(e.buffer) : e.buffer;
+ return new e.constructor(n, e.byteOffset, e.byteLength);
+ })(e, r);
+ case '[object Float32Array]':
+ case '[object Float64Array]':
+ case '[object Int8Array]':
+ case '[object Int16Array]':
+ case '[object Int32Array]':
+ case '[object Uint8Array]':
+ case '[object Uint8ClampedArray]':
+ case '[object Uint16Array]':
+ case '[object Uint32Array]':
+ return (function (e, t) {
+ var n = t ? he(e.buffer) : e.buffer;
+ return new e.constructor(n, e.byteOffset, e.length);
+ })(e, r);
+ case a:
+ return (function (e, t, n) {
+ return x(t ? n(E(e), !0) : E(e), v, new e.constructor());
+ })(e, r, n);
+ case '[object Number]':
+ case '[object String]':
+ return new i(e);
+ case '[object RegExp]':
+ return (function (e) {
+ var t = new e.constructor(e.source, c.exec(e));
+ return (t.lastIndex = e.lastIndex), t;
+ })(e);
+ case s:
+ return (function (e, t, n) {
+ return x(t ? n(j(e), !0) : j(e), b, new e.constructor());
+ })(e, r, n);
+ case '[object Symbol]':
+ return (o = e), re ? Object(re.call(o)) : {};
+ }
+ var o;
+ })(e, y, pe, t);
+ }
+ }
+ h || (h = new se());
+ var _ = h.get(e);
+ if (_) return _;
+ if ((h.set(e, d), !m))
+ var S = n
+ ? (function (e) {
+ return (function (e, t, n) {
+ var r = t(e);
+ return _e(e)
+ ? r
+ : (function (e, t) {
+ for (var n = -1, r = t.length, i = e.length; ++n < r; ) e[i + n] = t[n];
+ return e;
+ })(r, n(e));
+ })(e, ke, ge);
+ })(e)
+ : ke(e);
+ return (
+ (function (e, t) {
+ for (var n = -1, r = e ? e.length : 0; ++n < r && !1 !== t(e[n], n, e); );
+ })(S || e, function (r, i) {
+ S && (r = e[(i = r)]), ue(d, i, pe(r, t, n, u, i, e, h));
+ }),
+ d
+ );
+ }
+ function fe(e) {
+ return !(!Ae(e) || ((t = e), P && P in t)) && (De(e) || w(e) ? F : u).test(we(e));
+ var t;
+ }
+ function he(e) {
+ var t = new e.constructor(e.byteLength);
+ return new R(t).set(new R(e)), t;
+ }
+ function de(e, t, n, r) {
+ n || (n = {});
+ for (var i = -1, o = t.length; ++i < o; ) {
+ var a = t[i],
+ s = r ? r(n[a], e[a], a, n, e) : void 0;
+ ue(n, a, void 0 === s ? e[a] : s);
+ }
+ return n;
+ }
+ function me(e, t) {
+ var n,
+ r,
+ i = e.__data__;
+ return (
+ 'string' == (r = typeof (n = t)) || 'number' == r || 'symbol' == r || 'boolean' == r
+ ? '__proto__' !== n
+ : null === n
+ )
+ ? i['string' == typeof t ? 'string' : 'hash']
+ : i.map;
+ }
+ function ye(e, t) {
+ var n = (function (e, t) {
+ return null == e ? void 0 : e[t];
+ })(e, t);
+ return fe(n) ? n : void 0;
+ }
+ (ie.prototype.clear = function () {
+ this.__data__ = G ? G(null) : {};
+ }),
+ (ie.prototype.delete = function (e) {
+ return this.has(e) && delete this.__data__[e];
+ }),
+ (ie.prototype.get = function (e) {
+ var t = this.__data__;
+ if (G) {
+ var n = t[e];
+ return '__lodash_hash_undefined__' === n ? void 0 : n;
+ }
+ return $.call(t, e) ? t[e] : void 0;
+ }),
+ (ie.prototype.has = function (e) {
+ var t = this.__data__;
+ return G ? void 0 !== t[e] : $.call(t, e);
+ }),
+ (ie.prototype.set = function (e, t) {
+ return (this.__data__[e] = G && void 0 === t ? '__lodash_hash_undefined__' : t), this;
+ }),
+ (oe.prototype.clear = function () {
+ this.__data__ = [];
+ }),
+ (oe.prototype.delete = function (e) {
+ var t = this.__data__,
+ n = le(t, e);
+ return !(n < 0) && (n == t.length - 1 ? t.pop() : z.call(t, n, 1), !0);
+ }),
+ (oe.prototype.get = function (e) {
+ var t = this.__data__,
+ n = le(t, e);
+ return n < 0 ? void 0 : t[n][1];
+ }),
+ (oe.prototype.has = function (e) {
+ return le(this.__data__, e) > -1;
+ }),
+ (oe.prototype.set = function (e, t) {
+ var n = this.__data__,
+ r = le(n, e);
+ return r < 0 ? n.push([e, t]) : (n[r][1] = t), this;
+ }),
+ (ae.prototype.clear = function () {
+ this.__data__ = { hash: new ie(), map: new (J || oe)(), string: new ie() };
+ }),
+ (ae.prototype.delete = function (e) {
+ return me(this, e).delete(e);
+ }),
+ (ae.prototype.get = function (e) {
+ return me(this, e).get(e);
+ }),
+ (ae.prototype.has = function (e) {
+ return me(this, e).has(e);
+ }),
+ (ae.prototype.set = function (e, t) {
+ return me(this, e).set(e, t), this;
+ }),
+ (se.prototype.clear = function () {
+ this.__data__ = new oe();
+ }),
+ (se.prototype.delete = function (e) {
+ return this.__data__.delete(e);
+ }),
+ (se.prototype.get = function (e) {
+ return this.__data__.get(e);
+ }),
+ (se.prototype.has = function (e) {
+ return this.__data__.has(e);
+ }),
+ (se.prototype.set = function (e, t) {
+ var n = this.__data__;
+ if (n instanceof oe) {
+ var r = n.__data__;
+ if (!J || r.length < 199) return r.push([e, t]), this;
+ n = this.__data__ = new ae(r);
+ }
+ return n.set(e, t), this;
+ });
+ var ge = U
+ ? _(U, Object)
+ : function () {
+ return [];
+ },
+ ve = function (e) {
+ return O.call(e);
+ };
+ function be(e, t) {
+ return (
+ !!(t = null == t ? 9007199254740991 : t) &&
+ ('number' == typeof e || l.test(e)) &&
+ e > -1 &&
+ e % 1 == 0 &&
+ e < t
+ );
+ }
+ function xe(e) {
+ var t = e && e.constructor;
+ return e === (('function' == typeof t && t.prototype) || k);
+ }
+ function we(e) {
+ if (null != e) {
+ try {
+ return T.call(e);
+ } catch (e) {}
+ try {
+ return e + '';
+ } catch (e) {}
+ }
+ return '';
+ }
+ function Ee(e, t) {
+ return e === t || (e != e && t != t);
+ }
+ ((V && '[object DataView]' != ve(new V(new ArrayBuffer(1)))) ||
+ (J && ve(new J()) != a) ||
+ (K && '[object Promise]' != ve(K.resolve())) ||
+ (W && ve(new W()) != s) ||
+ (X && '[object WeakMap]' != ve(new X()))) &&
+ (ve = function (e) {
+ var t = O.call(e),
+ n = '[object Object]' == t ? e.constructor : void 0,
+ r = n ? we(n) : void 0;
+ if (r)
+ switch (r) {
+ case Y:
+ return '[object DataView]';
+ case Z:
+ return a;
+ case Q:
+ return '[object Promise]';
+ case ee:
+ return s;
+ case te:
+ return '[object WeakMap]';
+ }
+ return t;
+ });
+ var _e = Array.isArray;
+ function je(e) {
+ return (
+ null != e &&
+ (function (e) {
+ return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991;
+ })(e.length) &&
+ !De(e)
+ );
+ }
+ var Se =
+ q ||
+ function () {
+ return !1;
+ };
+ function De(e) {
+ var t = Ae(e) ? O.call(e) : '';
+ return t == i || t == o;
+ }
+ function Ae(e) {
+ var t = typeof e;
+ return !!e && ('object' == t || 'function' == t);
+ }
+ function ke(e) {
+ return je(e)
+ ? ce(e)
+ : (function (e) {
+ if (!xe(e)) return H(e);
+ var t = [];
+ for (var n in Object(e)) $.call(e, n) && 'constructor' != n && t.push(n);
+ return t;
+ })(e);
+ }
+ n.exports = function (e) {
+ return pe(e, !0, !0);
+ };
+ }).call(this, n(8), n(86)(e));
+ },
+ function (e, t, n) {
+ var r = n(39),
+ i = n(267);
+ function o(e, t) {
+ return (t = a(t)), i.fromSchema(e, t);
+ }
+ function a(e) {
+ return (
+ ((e = e || {}).dateToDateTime = e.dateToDateTime || !1),
+ (e.cloneSchema = 0 != e.cloneSchema),
+ (e.supportPatternProperties = e.supportPatternProperties || !1),
+ (e.keepNotSupported = e.keepNotSupported || []),
+ (e.strictMode = 0 != e.strictMode),
+ 'function' != typeof e.patternPropertiesHandler && (e.patternPropertiesHandler = s),
+ (e._removeProps = []),
+ !0 === e.removeReadOnly && e._removeProps.push('readOnly'),
+ !0 === e.removeWriteOnly && e._removeProps.push('writeOnly'),
+ (e._structs = ['allOf', 'anyOf', 'oneOf', 'not', 'items', 'additionalProperties']),
+ (e._notSupported = (function (e, t) {
+ var n,
+ r = 0;
+ for (; r < t.length; r++) (n = e.indexOf(t[r])) >= 0 && e.splice(n, 1);
+ return e;
+ })(
+ ['nullable', 'discriminator', 'readOnly', 'writeOnly', 'xml', 'externalDocs', 'example', 'deprecated'],
+ e.keepNotSupported
+ )),
+ e
+ );
+ }
+ function s(e) {
+ var t,
+ n = e.patternProperties,
+ i = e.additionalProperties;
+ if ('object' != typeof i) return e;
+ for (t in n)
+ if (r(n[t], i)) {
+ e.additionalProperties = !1;
+ break;
+ }
+ return e;
+ }
+ (e.exports = o),
+ (e.exports.fromSchema = o),
+ (e.exports.fromParameter = function (e, t) {
+ return (t = a(t)), i.fromParameter(e, t);
+ });
+ },
+ function (e, t, n) {
+ var r = n(102),
+ i = n(270);
+ e.exports = { fromSchema: r, fromParameter: i };
+ },
+ function (e, t) {
+ t.isObject = function (e) {
+ return null !== e && 'object' == typeof e;
+ };
+ },
+ function (e, t) {
+ function n(e) {
+ (this.name = 'InvalidTypeError'), (this.message = e);
+ }
+ (e.exports = n), (n.prototype = Error.prototype);
+ },
+ function (e, t, n) {
+ var r = n(102),
+ i = n(271);
+ function o(e, t, n) {
+ var i = r(t || {}, n);
+ return e.description && (i.description = e.description), i;
+ }
+ e.exports = function (e, t) {
+ if (void 0 !== e.schema) return o(e, e.schema, t);
+ if (void 0 !== e.content)
+ return (function (e, t) {
+ var n = {};
+ for (var r in e.content) n[r] = o(e, e.content[r].schema, t);
+ return n;
+ })(e, t);
+ if (t.strictMode) throw new i("OpenAPI parameter must have either a 'schema' or a 'content' property");
+ return o(e, {}, t);
+ };
+ },
+ function (e, t) {
+ function n(e) {
+ (this.name = 'InvalidInputError'), (this.message = e);
+ }
+ (e.exports = n), (n.prototype = new Error());
+ },
+ function (e, t, n) {
+ const r = n(273),
+ i = Math.pow(-2, 31),
+ o = Math.pow(2, 31) - 1,
+ a = Math.pow(-2, 63),
+ s = Math.pow(2, 63) - 1,
+ c = {
+ 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',
+ },
+ u = (e, t, n) => {
+ e.doc && (t.description = e.doc), void 0 !== e.default && (t.default = e.default);
+ const r = l(e);
+ void 0 !== r && n[r] && (t['x-parser-schema-id'] = r);
+ };
+ function l(e) {
+ let t;
+ return e.name && (t = e.namespace ? `${e.namespace}.${e.name}` : e.name), t;
+ }
+ const p = (e, t, n) => {
+ const r = (function (e, t) {
+ let n = e,
+ r = t;
+ if (Array.isArray(e) && e.length > 0) {
+ (n = e[+(e.length > 1 && 'null' === e[0])]), (r = r.oneOf[0]);
+ }
+ return { type: n, jsonSchema: r };
+ })(e, n),
+ i = r.type,
+ o = r.jsonSchema;
+ function a(...e) {
+ e.forEach((e) => {
+ let n = !0;
+ 'minLength' === e || 'maxLength' === e ? (n = t[e] > -1) : 'multipleOf' === e && (n = t[e] > 0),
+ void 0 !== t[e] && n && (o[e] = t[e]);
+ });
+ }
+ switch (
+ (((e, t, n) => {
+ if (void 0 !== t && !n.examples && !Array.isArray(e))
+ switch (e) {
+ case 'boolean':
+ n.examples = ['true' === t];
+ break;
+ case 'int':
+ n.examples = [parseInt(t, 10)];
+ break;
+ default:
+ n.examples = [t];
+ }
+ })(i, t.example, o),
+ i)
+ ) {
+ case 'int':
+ case 'long':
+ case 'float':
+ case 'double':
+ a('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf');
+ break;
+ case 'string':
+ (o.format = t.logicalType), a('pattern', 'minLength', 'maxLength');
+ break;
+ case 'array':
+ a('minItems', 'maxItems', 'uniqueItems');
+ }
+ };
+ function f(e, t, n) {
+ t && (e[t] = n);
+ }
+ async function h(e, t, n = {}) {
+ let r = {};
+ if (Array.isArray(e))
+ return (async function (e, t, n, r) {
+ e.oneOf = [];
+ let i = null;
+ for (const o of t) {
+ const t = await h(o, n, r);
+ if ('null' === (o.type || o)) i = t;
+ else {
+ e.oneOf.push(t);
+ const n = l(o);
+ f(r, n, t);
+ }
+ }
+ i && e.oneOf.push(i);
+ return e;
+ })(r, e, t, n);
+ const d = e.type || e;
+ switch (((r.type = c[d]), d)) {
+ case 'int':
+ (r.minimum = i), (r.maximum = o);
+ break;
+ case 'long':
+ (r.minimum = a), (r.maximum = s);
+ break;
+ case 'bytes':
+ r.pattern = '^[\0-ÿ]*$';
+ break;
+ case 'fixed':
+ (r.pattern = '^[\0-ÿ]*$'), (r.minLength = e.size), (r.maxLength = e.size);
+ break;
+ case 'map':
+ r.additionalProperties = await h(e.values, !1);
+ break;
+ case 'array':
+ r.items = await h(e.items, !1);
+ break;
+ case 'enum':
+ r.enum = e.symbols;
+ break;
+ case 'float':
+ case 'double':
+ r.format = d;
+ break;
+ case 'record':
+ const t = await (async function (e, t, n) {
+ const r = new Map();
+ for (const s of e.fields)
+ if (t[s.type]) r.set(s.name, t[s.type]);
+ else {
+ const e = await h(s.type, !1, t);
+ (i = s),
+ (o = n),
+ (a = void 0 !== s.default),
+ (Array.isArray(i.type) && i.type.includes('null')) ||
+ a ||
+ ((o.required = o.required || []), o.required.push(i.name)),
+ u(s, e, t),
+ p(s.type, s, e),
+ r.set(s.name, e);
+ const c = l(s.type);
+ f(t, c, e);
+ }
+ var i, o, a;
+ return r;
+ })(e, n, r);
+ f(n, l(e), t), (r.properties = Object.fromEntries(t.entries()));
+ break;
+ default:
+ const c = n[e];
+ c && (r = c);
+ }
+ return u(e, r, n), p(d, e, r), r;
+ }
+ e.exports.avroToJsonSchema = async function (e) {
+ return (
+ (function (e) {
+ r.Type.forSchema(e);
+ })(e),
+ h(e, !0)
+ );
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(274),
+ i = n(284),
+ o = n(26),
+ a = n(47),
+ s = n(16);
+ function c(e, t) {
+ a.Readable.call(this),
+ (t = t || {}),
+ (this._batchSize = t.batchSize || 65536),
+ (this._blob = e),
+ (this._pos = 0);
+ }
+ function u() {
+ a.Transform.call(this, { readableObjectMode: !0 }), (this._bufs = []);
+ }
+ s.inherits(c, a.Readable),
+ (c.prototype._read = function () {
+ var e = this._pos;
+ if (e >= this._blob.size) this.push(null);
+ else {
+ this._pos += this._batchSize;
+ var t = this._blob.slice(e, this._pos, this._blob.type),
+ n = new FileReader(),
+ r = this;
+ n.addEventListener(
+ 'loadend',
+ function e(t) {
+ n.removeEventListener('loadend', e, !1),
+ t.error ? r.emit('error', t.error) : r.push(o.bufferFrom(n.result));
+ },
+ !1
+ ),
+ n.readAsArrayBuffer(t);
+ }
+ }),
+ s.inherits(u, a.Transform),
+ (u.prototype._transform = function (e, t, n) {
+ this._bufs.push(e), n();
+ }),
+ (u.prototype._flush = function (e) {
+ this.push(new Blob(this._bufs, { type: 'application/octet-binary' })), e();
+ }),
+ (e.exports = {
+ createBlobDecoder: function (e, t) {
+ return new c(e).pipe(new i.streams.BlockDecoder(t));
+ },
+ createBlobEncoder: function (e, t) {
+ var n = new i.streams.BlockEncoder(e, t),
+ r = new u();
+ return (
+ n.pipe(r),
+ new a.Duplex({
+ objectMode: !0,
+ read: function () {
+ var e = r.read();
+ e ? n(e) : r.once('readable', n);
+ var t = this;
+ function n(e) {
+ t.push(e || r.read()), t.push(null);
+ }
+ },
+ write: function (e, t, r) {
+ return n.write(e, t, r);
+ },
+ }).on('finish', function () {
+ n.end();
+ })
+ );
+ },
+ streams: i.streams,
+ }),
+ o.copyOwnProperties(r, e.exports);
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(275),
+ i = n(277),
+ o = n(282),
+ a = n(26);
+ (e.exports = {
+ Service: i.Service,
+ assembleProtocol: o.assembleProtocol,
+ discoverProtocol: i.discoverProtocol,
+ parse: function (e, t) {
+ var n = o.read(e);
+ return n.protocol ? i.Service.forProtocol(n, t) : r.Type.forSchema(n, t);
+ },
+ readProtocol: o.readProtocol,
+ readSchema: o.readSchema,
+ }),
+ a.copyOwnProperties(r, e.exports);
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(59);
+ e.exports = {
+ Type: r.Type,
+ parse: function (e, t) {
+ var n;
+ if ('string' == typeof e)
+ try {
+ n = JSON.parse(e);
+ } catch (t) {
+ n = e;
+ }
+ else n = e;
+ return r.Type.forSchema(n, t);
+ },
+ types: r.builtins,
+ combine: r.Type.forTypes,
+ infer: r.Type.forValue,
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(1).Buffer;
+ function i() {
+ this.data = void 0;
+ }
+ function o(e, t) {
+ var n = e[0],
+ r = e[1],
+ i = e[2],
+ o = e[3];
+ (n = s(n, r, i, o, t[0], 7, -680876936)),
+ (o = s(o, n, r, i, t[1], 12, -389564586)),
+ (i = s(i, o, n, r, t[2], 17, 606105819)),
+ (r = s(r, i, o, n, t[3], 22, -1044525330)),
+ (n = s(n, r, i, o, t[4], 7, -176418897)),
+ (o = s(o, n, r, i, t[5], 12, 1200080426)),
+ (i = s(i, o, n, r, t[6], 17, -1473231341)),
+ (r = s(r, i, o, n, t[7], 22, -45705983)),
+ (n = s(n, r, i, o, t[8], 7, 1770035416)),
+ (o = s(o, n, r, i, t[9], 12, -1958414417)),
+ (i = s(i, o, n, r, t[10], 17, -42063)),
+ (r = s(r, i, o, n, t[11], 22, -1990404162)),
+ (n = s(n, r, i, o, t[12], 7, 1804603682)),
+ (o = s(o, n, r, i, t[13], 12, -40341101)),
+ (i = s(i, o, n, r, t[14], 17, -1502002290)),
+ (n = c(n, (r = s(r, i, o, n, t[15], 22, 1236535329)), i, o, t[1], 5, -165796510)),
+ (o = c(o, n, r, i, t[6], 9, -1069501632)),
+ (i = c(i, o, n, r, t[11], 14, 643717713)),
+ (r = c(r, i, o, n, t[0], 20, -373897302)),
+ (n = c(n, r, i, o, t[5], 5, -701558691)),
+ (o = c(o, n, r, i, t[10], 9, 38016083)),
+ (i = c(i, o, n, r, t[15], 14, -660478335)),
+ (r = c(r, i, o, n, t[4], 20, -405537848)),
+ (n = c(n, r, i, o, t[9], 5, 568446438)),
+ (o = c(o, n, r, i, t[14], 9, -1019803690)),
+ (i = c(i, o, n, r, t[3], 14, -187363961)),
+ (r = c(r, i, o, n, t[8], 20, 1163531501)),
+ (n = c(n, r, i, o, t[13], 5, -1444681467)),
+ (o = c(o, n, r, i, t[2], 9, -51403784)),
+ (i = c(i, o, n, r, t[7], 14, 1735328473)),
+ (n = u(n, (r = c(r, i, o, n, t[12], 20, -1926607734)), i, o, t[5], 4, -378558)),
+ (o = u(o, n, r, i, t[8], 11, -2022574463)),
+ (i = u(i, o, n, r, t[11], 16, 1839030562)),
+ (r = u(r, i, o, n, t[14], 23, -35309556)),
+ (n = u(n, r, i, o, t[1], 4, -1530992060)),
+ (o = u(o, n, r, i, t[4], 11, 1272893353)),
+ (i = u(i, o, n, r, t[7], 16, -155497632)),
+ (r = u(r, i, o, n, t[10], 23, -1094730640)),
+ (n = u(n, r, i, o, t[13], 4, 681279174)),
+ (o = u(o, n, r, i, t[0], 11, -358537222)),
+ (i = u(i, o, n, r, t[3], 16, -722521979)),
+ (r = u(r, i, o, n, t[6], 23, 76029189)),
+ (n = u(n, r, i, o, t[9], 4, -640364487)),
+ (o = u(o, n, r, i, t[12], 11, -421815835)),
+ (i = u(i, o, n, r, t[15], 16, 530742520)),
+ (n = l(n, (r = u(r, i, o, n, t[2], 23, -995338651)), i, o, t[0], 6, -198630844)),
+ (o = l(o, n, r, i, t[7], 10, 1126891415)),
+ (i = l(i, o, n, r, t[14], 15, -1416354905)),
+ (r = l(r, i, o, n, t[5], 21, -57434055)),
+ (n = l(n, r, i, o, t[12], 6, 1700485571)),
+ (o = l(o, n, r, i, t[3], 10, -1894986606)),
+ (i = l(i, o, n, r, t[10], 15, -1051523)),
+ (r = l(r, i, o, n, t[1], 21, -2054922799)),
+ (n = l(n, r, i, o, t[8], 6, 1873313359)),
+ (o = l(o, n, r, i, t[15], 10, -30611744)),
+ (i = l(i, o, n, r, t[6], 15, -1560198380)),
+ (r = l(r, i, o, n, t[13], 21, 1309151649)),
+ (n = l(n, r, i, o, t[4], 6, -145523070)),
+ (o = l(o, n, r, i, t[11], 10, -1120210379)),
+ (i = l(i, o, n, r, t[2], 15, 718787259)),
+ (r = l(r, i, o, n, t[9], 21, -343485551)),
+ (e[0] = f(n, e[0])),
+ (e[1] = f(r, e[1])),
+ (e[2] = f(i, e[2])),
+ (e[3] = f(o, e[3]));
+ }
+ function a(e, t, n, r, i, o) {
+ return (t = f(f(t, e), f(r, o))), f((t << i) | (t >>> (32 - i)), n);
+ }
+ function s(e, t, n, r, i, o, s) {
+ return a((t & n) | (~t & r), e, t, i, o, s);
+ }
+ function c(e, t, n, r, i, o, s) {
+ return a((t & r) | (n & ~r), e, t, i, o, s);
+ }
+ function u(e, t, n, r, i, o, s) {
+ return a(t ^ n ^ r, e, t, i, o, s);
+ }
+ function l(e, t, n, r, i, o, s) {
+ return a(n ^ (t | ~r), e, t, i, o, s);
+ }
+ function p(e) {
+ var t,
+ n = [];
+ for (t = 0; t < 64; t += 4)
+ n[t >> 2] =
+ e.charCodeAt(t) + (e.charCodeAt(t + 1) << 8) + (e.charCodeAt(t + 2) << 16) + (e.charCodeAt(t + 3) << 24);
+ return n;
+ }
+ function f(e, t) {
+ return (e + t) & 4294967295;
+ }
+ (i.prototype.end = function (e) {
+ this.data = e;
+ }),
+ (i.prototype.read = function () {
+ return (function (e) {
+ var t,
+ n = (function (e) {
+ var t,
+ n = e.length,
+ r = [1732584193, -271733879, -1732584194, 271733878];
+ for (t = 64; t <= e.length; t += 64) o(r, p(e.substring(t - 64, t)));
+ e = e.substring(t - 64);
+ var i = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
+ for (t = 0; t < e.length; t++) i[t >> 2] |= e.charCodeAt(t) << (t % 4 << 3);
+ if (((i[t >> 2] |= 128 << (t % 4 << 3)), t > 55)) for (o(r, i), t = 0; t < 16; t++) i[t] = 0;
+ return (i[14] = 8 * n), o(r, i), r;
+ })(e),
+ i = r.alloc ? r.alloc(16) : new r(16);
+ for (t = 0; t < 4; t++) i.writeIntLE(n[t], 4 * t, 4);
+ return i;
+ })(this.data);
+ }),
+ (e.exports = {
+ createHash: function (e) {
+ if ('md5' !== e) throw new Error('only md5 is supported in the browser');
+ return new i();
+ },
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (t) {
+ var r = n(59),
+ i = n(26),
+ o = n(1),
+ a = n(43),
+ s = n(47),
+ c = n(16),
+ u = o.Buffer,
+ l = i.Tap,
+ p = r.Type,
+ f = c.debuglog('avsc:services'),
+ h = c.format,
+ d = { namespace: 'org.apache.avro.ipc' },
+ m = p.forSchema('boolean', d),
+ y = p.forSchema({ type: 'map', values: 'bytes' }, d),
+ g = p.forSchema('string', d),
+ v = p.forSchema(
+ {
+ name: 'HandshakeRequest',
+ type: 'record',
+ fields: [
+ { name: 'clientHash', type: { name: 'MD5', type: 'fixed', size: 16 } },
+ { name: 'clientProtocol', type: ['null', 'string'], default: null },
+ { name: 'serverHash', type: 'MD5' },
+ { name: 'meta', type: ['null', y], default: null },
+ ],
+ },
+ d
+ ),
+ b = p.forSchema(
+ {
+ name: 'HandshakeResponse',
+ type: 'record',
+ fields: [
+ { name: 'match', type: { name: 'HandshakeMatch', type: 'enum', symbols: ['BOTH', 'CLIENT', 'NONE'] } },
+ { name: 'serverProtocol', type: ['null', 'string'], default: null },
+ { name: 'serverHash', type: ['null', 'MD5'], default: null },
+ { name: 'meta', type: ['null', y], default: null },
+ ],
+ },
+ d
+ ),
+ x = new w(
+ '',
+ p.forSchema({ name: 'PingRequest', type: 'record', fields: [] }, d),
+ p.forSchema(['string'], d),
+ p.forSchema('null', d)
+ );
+ function w(e, t, n, r, i, o) {
+ if (((this.name = e), !p.isType(t, 'record'))) throw new Error('invalid request type');
+ if (((this.requestType = t), !p.isType(n, 'union') || !p.isType(n.getTypes()[0], 'string')))
+ throw new Error('invalid error type');
+ if (((this.errorType = n), i && (!p.isType(r, 'null') || n.getTypes().length > 1)))
+ throw new Error('inapplicable one-way parameter');
+ (this.responseType = r),
+ (this.oneWay = !!i),
+ (this.doc = void 0 !== o ? '' + o : void 0),
+ Object.freeze(this);
+ }
+ function E(e, t, n, r, o) {
+ if ('string' != typeof e) return E.forProtocol(e, t);
+ (this.name = e),
+ (this._messagesByName = t || {}),
+ (this.messages = Object.freeze(i.objectValues(this._messagesByName))),
+ (this._typesByName = n || {}),
+ (this.types = Object.freeze(i.objectValues(this._typesByName))),
+ (this.protocol = r),
+ (this._hashStr = i.getHash(JSON.stringify(r)).toString('binary')),
+ (this.doc = r.doc ? '' + r.doc : void 0),
+ (this._server = o || this.createServer({ silent: !0 })),
+ Object.freeze(this);
+ }
+ function _(e, t) {
+ (t = t || {}),
+ a.EventEmitter.call(this),
+ (this._svc$ = e),
+ (this._channels$ = []),
+ (this._fns$ = []),
+ (this._buffering$ = !!t.buffering),
+ (this._cache$ = t.cache || {}),
+ (this._policy$ = t.channelPolicy),
+ (this._strict$ = !!t.strictTypes),
+ (this._timeout$ = i.getOption(t, 'timeout', 1e4)),
+ t.remoteProtocols && H(this._cache$, t.remoteProtocols, e, !0),
+ this._svc$.messages.forEach(function (e) {
+ this[e.name] = this._createMessageHandler$(e);
+ }, this);
+ }
+ function j(e, t) {
+ (t = t || {}),
+ a.EventEmitter.call(this),
+ (this.service = e),
+ (this._handlers = {}),
+ (this._fns = []),
+ (this._channels = {}),
+ (this._nextChannelId = 1),
+ (this._cache = t.cache || {}),
+ (this._defaultHandler = t.defaultHandler),
+ (this._sysErrFormatter = t.systemErrorFormatter),
+ (this._silent = !!t.silent),
+ (this._strict = !!t.strictTypes),
+ t.remoteProtocols && H(this._cache, t.remoteProtocols, e, !1),
+ e.messages.forEach(function (e) {
+ var n = e.name;
+ t.noCapitalize || (n = i.capitalize(n)), (this['on' + n] = this._createMessageHandler(e));
+ }, this);
+ }
+ function S(e, t) {
+ (t = t || {}),
+ a.EventEmitter.call(this),
+ (this.client = e),
+ (this.timeout = i.getOption(t, 'timeout', e._timeout$)),
+ (this._endWritable = !!i.getOption(t, 'endWritable', !0)),
+ (this._prefix = G(t.scope));
+ var n = e._cache$,
+ r = e._svc$,
+ o = t.serverHash;
+ o || (o = r.hash);
+ var s = n[o];
+ s || (s = n[(o = r.hash)] = new I(r, r, o)),
+ (this._adapter = s),
+ (this._registry = new F(this, 16)),
+ (this.pending = 0),
+ (this.destroyed = !1),
+ (this.draining = !1),
+ this.once('_eot', function (e, t) {
+ f('client channel EOT'), (this.destroyed = !0), this.emit('eot', e, t);
+ });
+ }
+ function D(e, t, n) {
+ S.call(this, e, n), (this._writableFactory = t), (n && n.noPing) || (f('emitting ping request'), this.ping());
+ }
+ function A(e, n, r, o) {
+ S.call(this, e, o),
+ (this._readable = n),
+ (this._writable = r),
+ (this._connected = !(!o || !o.noPing)),
+ this._readable.on('end', d),
+ this._writable.on('finish', m);
+ var a,
+ s = this,
+ c = null;
+ function l(e) {
+ if (!s.destroyed) {
+ a = s._createHandshakeRequest(s._adapter, !e);
+ var t = [v.toBuffer(a), i.bufferFrom([0, 0])];
+ s._writable.write({ id: s._prefix, payload: t });
+ }
+ }
+ function p(e) {
+ if (s._matchesPrefix(e.id)) {
+ var n = u.concat(e.payload);
+ try {
+ var r = z(b, n).head;
+ r.serverHash && (s._adapter = s._getAdapter(r));
+ } catch (e) {
+ return void s.destroy(e);
+ }
+ var i = r.match;
+ f('handshake match: %s', i),
+ s.emit('handshake', a, r),
+ 'NONE' === i
+ ? t.nextTick(function () {
+ l(!0);
+ })
+ : (f('successfully connected'),
+ c && (clearTimeout(c), (c = null)),
+ s._readable.removeListener('data', p).on('data', h),
+ (s._connected = !0),
+ s.emit('_ready'),
+ (a = null));
+ } else f('discarding unscoped response %s (still connecting)', e.id);
+ }
+ function h(e) {
+ var n = e.id;
+ if (s._matchesPrefix(n)) {
+ var r = s._registry.get(n);
+ r &&
+ t.nextTick(function () {
+ f('received message %s', n), r(null, u.concat(e.payload), s._adapter);
+ });
+ } else f('discarding unscoped message %s', n);
+ }
+ function d() {
+ s.destroy(!0);
+ }
+ function m() {
+ s.destroy();
+ }
+ this.once('eot', function () {
+ c && (clearTimeout(c), (c = null)),
+ s._connected || s.emit('_ready'),
+ this._writable.removeListener('finish', m),
+ this._endWritable && (f('ending transport'), this._writable.end()),
+ this._readable.removeListener('data', p).removeListener('data', h).removeListener('end', d);
+ }),
+ this._connected
+ ? this._readable.on('data', h)
+ : (this._readable.on('data', p),
+ t.nextTick(l),
+ s.timeout &&
+ (c = setTimeout(function () {
+ s.destroy(new Error('timeout'));
+ }, s.timeout)));
+ }
+ function k(e, t) {
+ (t = t || {}),
+ a.EventEmitter.call(this),
+ (this.server = e),
+ (this._endWritable = !!i.getOption(t, 'endWritable', !0)),
+ (this._prefix = G(t.scope));
+ var n = e._cache,
+ r = e.service,
+ o = r.hash;
+ n[o] || (n[o] = new I(r, r, o)),
+ (this._adapter = null),
+ (this.destroyed = !1),
+ (this.draining = !1),
+ (this.pending = 0),
+ this.once('_eot', function (e, t) {
+ f('server channel EOT'), this.emit('eot', e, t);
+ });
+ }
+ function C(e, n, r) {
+ k.call(this, e, r), (this._writable = void 0);
+ var i,
+ o = this;
+ function a(e) {
+ var t,
+ n = e.id,
+ r = u.concat(e.payload);
+ try {
+ var i = z(v, r),
+ a = i.head,
+ s = o._getAdapter(a);
+ } catch (e) {
+ t = W('INVALID_HANDSHAKE_REQUEST', e);
+ }
+ var c = o._createHandshakeResponse(t, a);
+ function l(e) {
+ if (!o.destroyed) {
+ if (!o._writable)
+ return void o.once('_writable', function () {
+ l(e);
+ });
+ o._writable.write({ id: n, payload: [b.toBuffer(c), e] });
+ }
+ o._writable && o._endWritable && o._writable.end();
+ }
+ o.emit('handshake', a, c), t ? l(o._encodeSystemError(t)) : o._receive(i.tail, s, l);
+ }
+ function s() {
+ o.destroy();
+ }
+ function c(e) {
+ i.removeListener('data', a).removeListener('end', s), o.destroy(e || !0);
+ }
+ t.nextTick(function () {
+ i = n
+ .call(o, function (e, n) {
+ t.nextTick(function () {
+ e ? c(e) : ((o._writable = n.on('finish', c)), o.emit('_writable'));
+ });
+ })
+ .on('data', a)
+ .on('end', s);
+ });
+ }
+ function P(e, t, n, r) {
+ k.call(this, e, r),
+ (this._adapter = void 0),
+ (this._writable = n.on('finish', c)),
+ (this._readable = t.on('data', o).on('end', s)),
+ this.once('_drain', function () {
+ this._readable.removeListener('data', o).removeListener('data', a).removeListener('end', s);
+ }).once('eot', function () {
+ this._writable.removeListener('finish', c), this._endWritable && this._writable.end();
+ });
+ var i = this;
+ function o(e) {
+ var t = e.id;
+ if (i._matchesPrefix(t)) {
+ var n,
+ r = u.concat(e.payload);
+ try {
+ var s = z(v, r),
+ c = s.head;
+ i._adapter = i._getAdapter(c);
+ } catch (e) {
+ n = W('INVALID_HANDSHAKE_REQUEST', e);
+ }
+ var l = i._createHandshakeResponse(n, c);
+ i.emit('handshake', c, l),
+ n
+ ? p(i._encodeSystemError(n))
+ : (i._readable.removeListener('data', o).on('data', a), i._receive(s.tail, i._adapter, p));
+ }
+ function p(e) {
+ i.destroyed || i._writable.write({ id: t, payload: [b.toBuffer(l), e] });
+ }
+ }
+ function a(e) {
+ var t = e.id;
+ if (i._matchesPrefix(t)) {
+ var n = u.concat(e.payload);
+ i._receive(n, i._adapter, function (e, n) {
+ i.destroyed || n || i._writable.write({ id: t, payload: [e] });
+ });
+ }
+ }
+ function s() {
+ i.destroy();
+ }
+ function c() {
+ i.destroy(!0);
+ }
+ }
+ function T(e, t, n) {
+ (this._msg = e), (this.headers = t || {}), (this.request = n || {});
+ }
+ function $(e, t, n, r) {
+ (this._msg = e), (this.headers = t), (this.error = n), (this.response = r);
+ }
+ function O(e, t) {
+ (this.channel = t), (this.locals = {}), (this.message = e), Object.freeze(this);
+ }
+ function F(e, t) {
+ (this._ctx = e), (this._mask = -1 >>> (0 | t)), (this._id = 0), (this._n = 0), (this._cbs = {});
+ }
+ function I(e, t, n, r) {
+ (this._clientSvc = e),
+ (this._serverSvc = t),
+ (this._hash = n),
+ (this._isRemote = !!r),
+ (this._readers = q(e, t));
+ }
+ function N() {
+ s.Transform.call(this, { readableObjectMode: !0 }),
+ (this._id = void 0),
+ (this._buf = i.newBuffer(0)),
+ (this._bufs = []),
+ this.on('finish', function () {
+ this.push(null);
+ });
+ }
+ function R() {
+ s.Transform.call(this, { writableObjectMode: !0 }),
+ this.on('finish', function () {
+ this.push(null);
+ });
+ }
+ function B() {
+ s.Transform.call(this, { readableObjectMode: !0 }),
+ (this._id = void 0),
+ (this._frameCount = 0),
+ (this._buf = i.newBuffer(0)),
+ (this._bufs = []),
+ this.on('finish', function () {
+ this.push(null);
+ });
+ }
+ function M() {
+ s.Transform.call(this, { writableObjectMode: !0 }),
+ this.on('finish', function () {
+ this.push(null);
+ });
+ }
+ function L(e) {
+ var t = i.newBuffer(4);
+ return t.writeInt32BE(e), t;
+ }
+ function z(e, t) {
+ var n = new l(t),
+ r = e._read(n);
+ if (!n.isValid()) throw new Error(h('truncated %j', e.schema()));
+ return { head: r, tail: n.buf.slice(n.pos) };
+ }
+ function U(e, t) {
+ return e.equals(t) ? e : e.createResolver(t);
+ }
+ function q(e, t) {
+ var n = {};
+ return (
+ e.messages.forEach(function (e) {
+ var r = e.name,
+ i = t.message(r);
+ try {
+ if (!i) throw new Error(h('missing server message: %s', r));
+ if (i.oneWay !== e.oneWay) throw new Error(h('inconsistent one-way message: %s', r));
+ (n[r + '?'] = U(i.requestType, e.requestType)),
+ (n[r + '*'] = U(e.errorType, i.errorType)),
+ (n[r + '!'] = U(e.responseType, i.responseType));
+ } catch (e) {
+ throw W('INCOMPATIBLE_PROTOCOL', e);
+ }
+ }),
+ n
+ );
+ }
+ function H(e, t, n, r) {
+ Object.keys(t).forEach(function (i) {
+ var o,
+ a,
+ s = t[i];
+ r ? ((o = n), (a = E.forProtocol(s))) : ((o = E.forProtocol(s)), (a = n)), (e[i] = new I(o, a, i, !0));
+ });
+ }
+ function V(e, t) {
+ var n = {};
+ return (
+ Object.keys(e).forEach(function (r) {
+ var i = e[r];
+ if (i._isRemote) {
+ var o = t ? i._serverSvc : i._clientSvc;
+ n[r] = o.protocol;
+ }
+ }),
+ n
+ );
+ }
+ function J(e) {
+ return !!e && '[object Error]' === Object.prototype.toString.call(e);
+ }
+ function K(e, t) {
+ var n = new Error(e);
+ return (n.cause = t), n;
+ }
+ function W(e, t) {
+ var n = K(e.toLowerCase().replace(/_/g, ' '), t);
+ return (n.rpcCode = t && t.rpcCode ? t.rpcCode : e), n;
+ }
+ function X(e, t, n) {
+ var r,
+ i,
+ o,
+ a = [];
+ for (r = 0, i = n.length; r < i; r++) (o = n[r]).type.isValid(t[o.name], { errorHook: u });
+ var s = a
+ .map(function (e) {
+ return h('%s = %j but expected %s', e.path, e.value, e.type);
+ })
+ .join(', '),
+ c = new Error(h('%s (%s)', e, s));
+ return (c.details = a), c;
+ function u(e, t, n) {
+ var r,
+ i,
+ s,
+ c = [];
+ for (r = 0, i = e.length; r < i; r++) (s = e[r]), isNaN(s) ? c.push('.' + s) : c.push('[' + s + ']');
+ a.push({ path: o.name + c.join(''), value: t, type: n });
+ }
+ }
+ function G(e) {
+ return e ? i.getHash(e).readInt16BE(0) << 16 : 0;
+ }
+ function Y(e, t) {
+ return (e ^ t) >> 16 == 0;
+ }
+ function Z(e) {
+ return !(!e || !e.pipe);
+ }
+ function Q(e, t) {
+ var n = e.message(t);
+ if (!n) throw new Error(h('unknown message: %s', t));
+ return n;
+ }
+ function ee(e) {
+ var n,
+ r = [e.wreq, e.wres],
+ i = [];
+ function o() {
+ var t = i.pop();
+ if (t) {
+ var r = !1;
+ t.call(e.ctx, n, function (t) {
+ r ? e.onError(K('duplicate backward middleware call', t)) : ((n = t), (r = !0), o());
+ });
+ } else e.onCompletion.call(e.ctx, n);
+ }
+ !(function a(s) {
+ var c = !1;
+ s < e.fns.length
+ ? e.fns[s].apply(
+ e.ctx,
+ r.concat(function (t, r) {
+ if (c) e.onError(K('duplicate forward middleware call', t));
+ else {
+ if (((c = !0), t || (e.wres && (void 0 !== e.wres.error || void 0 !== e.wres.response))))
+ return (n = t), void o();
+ r && i.push(r), a(++s);
+ }
+ })
+ )
+ : e.onTransition.apply(
+ e.ctx,
+ r.concat(function (r) {
+ c ? e.onError(K('duplicate handler call', r)) : ((c = !0), (n = r), t.nextTick(o));
+ })
+ );
+ })(0);
+ }
+ (w.forSchema = function (e, t, n) {
+ if (((n = n || {}), !i.isValidName(e))) throw new Error(h('invalid message name: %s', e));
+ if (!Array.isArray(t.request)) throw new Error(h('invalid message request: %s', e));
+ var r = h('%s.%sRequest', d.namespace, i.capitalize(e)),
+ o = p.forSchema({ name: r, type: 'record', namespace: n.namespace || '', fields: t.request }, n);
+ if ((delete n.registry[r], !t.response)) throw new Error(h('invalid message response: %s', e));
+ var a = p.forSchema(t.response, n);
+ if (void 0 !== t.errors && !Array.isArray(t.errors)) throw new Error(h('invalid message errors: %s', e));
+ return new w(e, o, p.forSchema(['string'].concat(t.errors || []), n), a, !!t['one-way'], t.doc);
+ }),
+ (w.prototype.schema = p.prototype.getSchema),
+ (w.prototype._attrs = function (e) {
+ var t = { request: this.requestType._attrs(e).fields, response: this.responseType._attrs(e) },
+ n = this.doc;
+ void 0 !== n && (t.doc = n);
+ var r = this.errorType._attrs(e);
+ return r.length > 1 && (t.errors = r.slice(1)), this.oneWay && (t['one-way'] = !0), t;
+ }),
+ i.addDeprecatedGetters(w, ['name', 'errorType', 'requestType', 'responseType']),
+ (w.prototype.isOneWay = c.deprecate(function () {
+ return this.oneWay;
+ }, 'use `.oneWay` directly instead of `.isOneWay()`')),
+ (E.Client = _),
+ (E.Server = j),
+ (E.compatible = function (e, t) {
+ try {
+ q(e, t);
+ } catch (e) {
+ return !1;
+ }
+ return !0;
+ }),
+ (E.forProtocol = function (e, t) {
+ t = t || {};
+ var n,
+ r = e.protocol;
+ if (!r) throw new Error('missing protocol name');
+ if (void 0 !== e.namespace) t.namespace = e.namespace;
+ else {
+ var o = /^(.*)\.[^.]+$/.exec(r);
+ o && (t.namespace = o[1]);
+ }
+ return (
+ (r = i.qualify(r, t.namespace)),
+ e.types &&
+ e.types.forEach(function (e) {
+ p.forSchema(e, t);
+ }),
+ e.messages &&
+ ((n = {}),
+ Object.keys(e.messages).forEach(function (r) {
+ n[r] = w.forSchema(r, e.messages[r], t);
+ })),
+ new E(r, n, t.registry, e)
+ );
+ }),
+ (E.isService = function (e) {
+ return !!e && e.hasOwnProperty('_hashStr');
+ }),
+ (E.prototype.createClient = function (e) {
+ var n = new _(this, e);
+ return (
+ t.nextTick(function () {
+ if (e && e.server) {
+ var t = { objectMode: !0 },
+ r = [new s.PassThrough(t), new s.PassThrough(t)];
+ e.server.createChannel({ readable: r[0], writable: r[1] }, t),
+ n.createChannel({ readable: r[1], writable: r[0] }, t);
+ } else e && e.transport && n.createChannel(e.transport);
+ }),
+ n
+ );
+ }),
+ (E.prototype.createServer = function (e) {
+ return new j(this, e);
+ }),
+ Object.defineProperty(E.prototype, 'hash', {
+ enumerable: !0,
+ get: function () {
+ return i.bufferFrom(this._hashStr, 'binary');
+ },
+ }),
+ (E.prototype.message = function (e) {
+ return this._messagesByName[e];
+ }),
+ (E.prototype.type = function (e) {
+ return this._typesByName[e];
+ }),
+ (E.prototype.inspect = function () {
+ return h('', this.name);
+ }),
+ i.addDeprecatedGetters(E, ['message', 'messages', 'name', 'type', 'types']),
+ (E.prototype.createEmitter = c.deprecate(function (e, t) {
+ t = t || {};
+ var n,
+ r,
+ i = this.createClient({ cache: t.cache, buffering: !1, strictTypes: t.strictErrors, timeout: t.timeout }),
+ o = i.createChannel(e, t);
+ return (
+ (r = o),
+ (n = i).on('error', function (e) {
+ r.emit('error', e, n);
+ }),
+ o
+ );
+ }, 'use `.createClient()` instead of `.createEmitter()`')),
+ (E.prototype.createListener = c.deprecate(function (e, t) {
+ if (t && t.strictErrors) throw new Error('use `.createServer()` to support strict errors');
+ return this._server.createChannel(e, t);
+ }, 'use `.createServer().createChannel()` instead of `.createListener()`')),
+ (E.prototype.emit = c.deprecate(function (e, t, n, r) {
+ if (!n || !this.equals(n.client._svc$)) throw new Error('invalid emitter');
+ var i = n.client;
+ return _.prototype.emitMessage.call(i, e, t, r && r.bind(this)), n.getPending();
+ }, 'create a client via `.createClient()` to emit messages instead of `.emit()`')),
+ (E.prototype.equals = c.deprecate(function (e) {
+ return E.isService(e) && this.getFingerprint().equals(e.getFingerprint());
+ }, 'equality testing is deprecated, compare the `.protocol`s instead')),
+ (E.prototype.getFingerprint = c.deprecate(function (e) {
+ return i.getHash(JSON.stringify(this.protocol), e);
+ }, 'use `.hash` instead of `.getFingerprint()`')),
+ (E.prototype.getSchema = c.deprecate(p.prototype.getSchema, 'use `.protocol` instead of `.getSchema()`')),
+ (E.prototype.on = c.deprecate(function (e, t) {
+ var n = this;
+ return (
+ this._server.onMessage(e, function (e, r) {
+ return t.call(n, e, this.channel, r);
+ }),
+ this
+ );
+ }, 'use `.createServer().onMessage()` instead of `.on()`')),
+ (E.prototype.subprotocol = c.deprecate(function () {
+ var e = this._server,
+ t = { strictTypes: e._strict, cache: e._cache },
+ n = new j(e.service, t);
+ return (
+ (n._handlers = Object.create(e._handlers)),
+ new E(this.name, this._messagesByName, this._typesByName, this.protocol, n)
+ );
+ }, '`.subprotocol()` will be removed in 5.1')),
+ (E.prototype._attrs = function (e) {
+ var t = { protocol: this.name },
+ n = [];
+ this.types.forEach(function (t) {
+ if (void 0 !== t.getName()) {
+ var r = t._attrs(e);
+ 'string' != typeof r && n.push(r);
+ }
+ }),
+ n.length && (t.types = n);
+ var r = Object.keys(this._messagesByName);
+ return (
+ r.length &&
+ ((t.messages = {}),
+ r.forEach(function (n) {
+ t.messages[n] = this._messagesByName[n]._attrs(e);
+ }, this)),
+ e && e.exportAttrs && void 0 !== this.doc && (t.doc = this.doc),
+ t
+ );
+ }),
+ c.inherits(_, a.EventEmitter),
+ (_.prototype.activeChannels = function () {
+ return this._channels$.slice();
+ }),
+ (_.prototype.createChannel = function (e, t) {
+ var n,
+ r = t && t.objectMode;
+ if ('function' == typeof e) {
+ var i;
+ (i = r
+ ? e
+ : function (t) {
+ var r = new R(),
+ i = e(function (e, r) {
+ if (e) t(e);
+ else {
+ var i = new N().once('error', function (e) {
+ n.destroy(e);
+ });
+ t(null, r.pipe(i));
+ }
+ });
+ if (i) return r.pipe(i), r;
+ }),
+ (n = new D(this, i, t));
+ } else {
+ var o, a;
+ if ((Z(e) ? (o = a = e) : ((o = e.readable), (a = e.writable)), !r)) {
+ var s = new B();
+ o = o.pipe(s);
+ var c = new M();
+ c.pipe(a), (a = c);
+ }
+ (n = new A(this, o, a, t)),
+ r ||
+ (n.once('eot', function () {
+ o.unpipe(s), c.unpipe(a);
+ }),
+ s.once('error', function (e) {
+ n.destroy(e);
+ }));
+ }
+ var u = this._channels$;
+ return (
+ u.push(n),
+ n.once('_drain', function () {
+ u.splice(u.indexOf(this), 1);
+ }),
+ (this._buffering$ = !1),
+ this.emit('channel', n),
+ n
+ );
+ }),
+ (_.prototype.destroyChannels = function (e) {
+ this._channels$.forEach(function (t) {
+ t.destroy(e && e.noWait);
+ });
+ }),
+ (_.prototype.emitMessage = function (e, t, n, r) {
+ var i = new T(Q(this._svc$, e), {}, t);
+ this._emitMessage$(i, n, r);
+ }),
+ (_.prototype.remoteProtocols = function () {
+ return V(this._cache$, !0);
+ }),
+ Object.defineProperty(_.prototype, 'service', {
+ enumerable: !0,
+ get: function () {
+ return this._svc$;
+ },
+ }),
+ (_.prototype.use = function () {
+ var e, t, n;
+ for (e = 0, t = arguments.length; e < t; e++)
+ (n = arguments[e]), this._fns$.push(n.length < 3 ? n(this) : n);
+ return this;
+ }),
+ (_.prototype._emitMessage$ = function (e, n, r) {
+ r || 'function' != typeof n || ((r = n), (n = void 0));
+ var i = this,
+ o = this._channels$,
+ a = o.length;
+ if (a) {
+ var s;
+ if ((void 0 === (n = n || {}).timeout && (n.timeout = this._timeout$), 1 === a)) s = o[0];
+ else if (this._policy$) {
+ if (!(s = this._policy$(this._channels$.slice())))
+ return void f('policy returned no channel, skipping call');
+ } else s = o[Math.floor(Math.random() * a)];
+ s._emit(e, n, function (e, t) {
+ var n = this,
+ o = n.message.errorType;
+ if (e) return i._strict$ && (e = o.clone(e.message, { wrapUnions: !0 })), void a(e);
+ function a(e, t) {
+ r ? r.call(n, e, t) : e && i.emit('error', e);
+ }
+ t
+ ? ((e = t.error),
+ i._strict$ ||
+ (void 0 === e
+ ? (e = null)
+ : p.isType(o, 'union:unwrapped')
+ ? 'string' == typeof e && (e = new Error(e))
+ : e && e.string && 'string' == typeof e.string && (e = new Error(e.string))),
+ a(e, t.response))
+ : a();
+ });
+ } else if (this._buffering$)
+ f('no active client channels, buffering call'),
+ this.once('channel', function () {
+ this._emitMessage$(e, n, r);
+ });
+ else {
+ var c = new Error('no active channels');
+ t.nextTick(function () {
+ r ? r.call(new O(e._msg), c) : i.emit('error', c);
+ });
+ }
+ }),
+ (_.prototype._createMessageHandler$ = function (e) {
+ var t = e.requestType.getFields().map(function (e) {
+ return e.getName();
+ }),
+ n = 'return function ' + e.name + '(';
+ return (
+ t.length && (n += t.join(', ') + ', '),
+ (n += 'opts, cb) {\n'),
+ (n += ' var req = {'),
+ (n += t
+ .map(function (e) {
+ return e + ': ' + e;
+ })
+ .join(', ')),
+ (n += '};\n'),
+ (n += " return this.emitMessage('" + e.name + "', req, opts, cb);\n"),
+ (n += '};'),
+ new Function(n)()
+ );
+ }),
+ c.inherits(j, a.EventEmitter),
+ (j.prototype.activeChannels = function () {
+ return i.objectValues(this._channels);
+ }),
+ (j.prototype.createChannel = function (e, t) {
+ var n,
+ r = t && t.objectMode;
+ if ('function' == typeof e) {
+ var i;
+ (i = r
+ ? e
+ : function (t) {
+ var r = new N().once('error', function (e) {
+ n.destroy(e);
+ });
+ return e(function (e, n) {
+ if (e) t(e);
+ else {
+ var r = new R();
+ r.pipe(n), t(null, r);
+ }
+ }).pipe(r);
+ }),
+ (n = new C(this, i, t));
+ } else {
+ var o, a;
+ if ((Z(e) ? (o = a = e) : ((o = e.readable), (a = e.writable)), !r)) {
+ var s = new B();
+ o = o.pipe(s);
+ var c = new M();
+ c.pipe(a), (a = c);
+ }
+ (n = new P(this, o, a, t)),
+ r ||
+ (n.once('eot', function () {
+ o.unpipe(s), c.unpipe(a);
+ }),
+ s.once('error', function (e) {
+ n.destroy(e);
+ }));
+ }
+ this.listeners('error').length || this.on('error', this._onError);
+ var u = this._nextChannelId++,
+ l = this._channels;
+ return (
+ (l[u] = n.once('eot', function () {
+ delete l[u];
+ })),
+ this.emit('channel', n),
+ n
+ );
+ }),
+ (j.prototype.onMessage = function (e, t) {
+ return Q(this.service, e), (this._handlers[e] = t), this;
+ }),
+ (j.prototype.remoteProtocols = function () {
+ return V(this._cache, !1);
+ }),
+ (j.prototype.use = function () {
+ var e, t, n;
+ for (e = 0, t = arguments.length; e < t; e++)
+ (n = arguments[e]), this._fns.push(n.length < 3 ? n(this) : n);
+ return this;
+ }),
+ (j.prototype._createMessageHandler = function (e) {
+ var t = e.name,
+ n = e.requestType.fields,
+ r = n.length,
+ i = n.length
+ ? ', ' +
+ n
+ .map(function (e) {
+ return 'req.' + e.name;
+ })
+ .join(', ')
+ : '',
+ o = 'return function (handler) {\n';
+ return (
+ (o += ' if (handler.length > ' + r + ') {\n'),
+ (o += " return this.onMessage('" + t + "', function (req, cb) {\n"),
+ (o += ' return handler.call(this' + i + ', cb);\n'),
+ (o += ' });\n'),
+ (o += ' } else {\n'),
+ (o += " return this.onMessage('" + t + "', function (req) {\n"),
+ (o += ' return handler.call(this' + i + ');\n'),
+ (o += ' });\n'),
+ (o += ' }\n'),
+ (o += '};\n'),
+ new Function(o)()
+ );
+ }),
+ (j.prototype._onError = function (e) {
+ this._silent ||
+ 'UNKNOWN_PROTOCOL' === e.rpcCode ||
+ (console.error(),
+ e.rpcCode
+ ? (console.error(e.rpcCode), console.error(e.cause))
+ : (console.error('INTERNAL_SERVER_ERROR'), console.error(e)));
+ }),
+ c.inherits(S, a.EventEmitter),
+ (S.prototype.destroy = function (e) {
+ f('destroying client channel'), this.draining || ((this.draining = !0), this.emit('_drain'));
+ var t = this._registry,
+ n = this.pending;
+ e && t.clear(),
+ e || !n
+ ? J(e)
+ ? (f('fatal client channel error: %s', e), this.emit('_eot', n, e))
+ : this.emit('_eot', n)
+ : f('client channel entering drain mode (%s pending)', n);
+ }),
+ (S.prototype.ping = function (e, t) {
+ t || 'function' != typeof e || ((t = e), (e = void 0));
+ var n = this,
+ r = new T(x);
+ this._emit(r, { timeout: e }, function (e) {
+ t ? t.call(n, e) : e && n.destroy(e);
+ });
+ }),
+ (S.prototype._createHandshakeRequest = function (e, t) {
+ var n = this.client._svc$;
+ return { clientHash: n.hash, clientProtocol: t ? null : JSON.stringify(n.protocol), serverHash: e._hash };
+ }),
+ (S.prototype._emit = function (e, n, r) {
+ var i = e._msg,
+ o = i.oneWay ? void 0 : new $(i, {}),
+ a = new O(i, this),
+ s = this;
+ function c(e, t, r) {
+ var o, a;
+ if (s.destroyed) o = new Error('channel destroyed');
+ else
+ try {
+ a = e.toBuffer();
+ } catch (t) {
+ o = X(h('invalid %j request', i.name), e, [
+ { name: 'headers', type: y },
+ { name: 'request', type: i.requestType },
+ ]);
+ }
+ if (o) r(o);
+ else {
+ var c = n && void 0 !== n.timeout ? n.timeout : s.timeout,
+ u = s._registry.add(c, function (e, n, o) {
+ if (!e && !i.oneWay)
+ try {
+ o._decodeResponse(n, t, i);
+ } catch (t) {
+ e = t;
+ }
+ r(e);
+ });
+ (u |= s._prefix), f('sending message %s', u), s._send(u, a, !!i && i.oneWay);
+ }
+ }
+ function u(e) {
+ s.pending--, r.call(a, e, o), !s.draining || s.destroyed || s.pending || s.destroy();
+ }
+ function l(e) {
+ s.client.emit('error', e, s);
+ }
+ this.pending++,
+ t.nextTick(function () {
+ if (i.name) {
+ s.emit('outgoingCall', a, n);
+ var t = s.client._fns$;
+ f('starting client middleware chain (%s middleware)', t.length),
+ ee({ fns: t, ctx: a, wreq: e, wres: o, onTransition: c, onCompletion: u, onError: l });
+ } else c(e, o, u);
+ });
+ }),
+ (S.prototype._getAdapter = function (e) {
+ var t = e.serverHash,
+ n = this.client._cache$,
+ r = n[t];
+ if (r) return r;
+ var i = JSON.parse(e.serverProtocol),
+ o = E.forProtocol(i);
+ return (r = new I(this.client._svc$, o, t, !0)), (n[t] = r);
+ }),
+ (S.prototype._matchesPrefix = function (e) {
+ return Y(e, this._prefix);
+ }),
+ (S.prototype._send = i.abstractFunction),
+ i.addDeprecatedGetters(S, ['pending', 'timeout']),
+ (S.prototype.getCache = c.deprecate(function () {
+ return this.client._cache$;
+ }, 'use `.remoteProtocols()` instead of `.getCache()`')),
+ (S.prototype.getProtocol = c.deprecate(function () {
+ return this.client._svc$;
+ }, 'use `.service` instead or `.getProtocol()`')),
+ (S.prototype.isDestroyed = c.deprecate(function () {
+ return this.destroyed;
+ }, 'use `.destroyed` instead of `.isDestroyed`')),
+ c.inherits(D, S),
+ (D.prototype._send = function (e, n) {
+ var r = this._registry.get(e),
+ i = this._adapter,
+ o = this;
+ return (
+ t.nextTick(function a(s) {
+ if (o.destroyed) return;
+ var c = o._createHandshakeRequest(i, !s),
+ l = o._writableFactory.call(o, function (e, n) {
+ e
+ ? r(e)
+ : n.on('data', function (e) {
+ f('received response %s', e.id);
+ var n = u.concat(e.payload);
+ try {
+ var s = z(b, n),
+ l = s.head;
+ l.serverHash && (i = o._getAdapter(l));
+ } catch (e) {
+ return void r(e);
+ }
+ var p = l.match;
+ f('handshake match: %s', p),
+ o.emit('handshake', c, l),
+ 'NONE' === p
+ ? t.nextTick(function () {
+ a(!0);
+ })
+ : ((o._adapter = i), r(null, s.tail, i));
+ });
+ });
+ if (!l) return void r(new Error('invalid writable stream'));
+ l.write({ id: e, payload: [v.toBuffer(c), n] }), o._endWritable && l.end();
+ }),
+ !0
+ );
+ }),
+ c.inherits(A, S),
+ (A.prototype._emit = function () {
+ if (this._connected || this.draining) S.prototype._emit.apply(this, arguments);
+ else {
+ f('queuing request');
+ var e,
+ t,
+ n = [];
+ for (e = 0, t = arguments.length; e < t; e++) n.push(arguments[e]);
+ this.once('_ready', function () {
+ this._emit.apply(this, n);
+ });
+ }
+ }),
+ (A.prototype._send = function (e, n, r) {
+ if (r) {
+ var o = this;
+ t.nextTick(function () {
+ o._registry.get(e)(null, i.bufferFrom([0, 0, 0]), o._adapter);
+ });
+ }
+ return this._writable.write({ id: e, payload: [n] });
+ }),
+ c.inherits(k, a.EventEmitter),
+ (k.prototype.destroy = function (e) {
+ this.draining || ((this.draining = !0), this.emit('_drain')),
+ (!e && this.pending) ||
+ ((this.destroyed = !0),
+ J(e)
+ ? (f('fatal server channel error: %s', e), this.emit('_eot', this.pending, e))
+ : this.emit('_eot', this.pending));
+ }),
+ (k.prototype._createHandshakeResponse = function (e, t) {
+ var n = this.server.service,
+ r = n.hash,
+ i = t && t.serverHash.equals(r);
+ return {
+ match: e ? 'NONE' : i ? 'BOTH' : 'CLIENT',
+ serverProtocol: i ? null : JSON.stringify(n.protocol),
+ serverHash: i ? null : r,
+ };
+ }),
+ (k.prototype._getAdapter = function (e) {
+ var t = e.clientHash,
+ n = this.server._cache[t];
+ if (n) return n;
+ if (!e.clientProtocol) throw W('UNKNOWN_PROTOCOL');
+ var r = JSON.parse(e.clientProtocol);
+ return (n = new I(E.forProtocol(r), this.server.service, t, !0)), (this.server._cache[t] = n);
+ }),
+ (k.prototype._matchesPrefix = function (e) {
+ return Y(e, this._prefix);
+ }),
+ (k.prototype._receive = function (e, t, n) {
+ var r,
+ i = this;
+ try {
+ r = t._decodeRequest(e);
+ } catch (e) {
+ return void n(i._encodeSystemError(W('INVALID_REQUEST', e)));
+ }
+ var o = r._msg,
+ a = new $(o, {});
+ if (!o.name) return (a.response = null), void n(a.toBuffer(), !1);
+ var s = new O(o, this);
+ i.emit('incomingCall', s);
+ var c = this.server._fns;
+ function u(e) {
+ i.server.emit('error', e, i);
+ }
+ f('starting server middleware chain (%s middleware)', c.length),
+ i.pending++,
+ ee({
+ fns: c,
+ ctx: s,
+ wreq: r,
+ wres: a,
+ onTransition: function (e, t, n) {
+ var r = i.server._handlers[o.name];
+ if (r) {
+ var a = !o.oneWay;
+ try {
+ a
+ ? r.call(s, e.request, function (e, r) {
+ (a = !1), (t.error = e), (t.response = r), n();
+ })
+ : (r.call(s, e.request), n());
+ } catch (e) {
+ a ? ((a = !1), n(e)) : u(e);
+ }
+ } else {
+ var c = i.server._defaultHandler;
+ if (c) c.call(s, e, t, n);
+ else {
+ var l = new Error(h('no handler for %s', o.name));
+ n(W('NOT_IMPLEMENTED', l));
+ }
+ }
+ },
+ onCompletion: function (e) {
+ i.pending--;
+ var t,
+ r = i.server;
+ if (!e) {
+ var s = a.error;
+ r._strict ||
+ (J(s)
+ ? (a.error = o.errorType.clone(s.message, { wrapUnions: !0 }))
+ : null === s && (s = a.error = void 0),
+ void 0 === s && void 0 === a.response && o.responseType.isValid(null) && (a.response = null));
+ try {
+ t = a.toBuffer();
+ } catch (t) {
+ e =
+ void 0 !== a.error
+ ? X(h('invalid %j error', o.name), a, [
+ { name: 'headers', type: y },
+ { name: 'error', type: o.errorType },
+ ])
+ : X(h('invalid %j response', o.name), a, [
+ { name: 'headers', type: y },
+ { name: 'response', type: o.responseType },
+ ]);
+ }
+ }
+ t
+ ? void 0 !== s && r.emit('error', W('APPLICATION_ERROR', s))
+ : (t = i._encodeSystemError(e, a.headers));
+ n(t, o.oneWay), i.draining && !i.pending && i.destroy();
+ },
+ onError: u,
+ });
+ }),
+ i.addDeprecatedGetters(k, ['pending']),
+ (k.prototype.getCache = c.deprecate(function () {
+ return this.server._cache;
+ }, 'use `.remoteProtocols()` instead of `.getCache()`')),
+ (k.prototype.getProtocol = c.deprecate(function () {
+ return this.server.service;
+ }, 'use `.service` instead of `.getProtocol()`')),
+ (k.prototype.isDestroyed = c.deprecate(function () {
+ return this.destroyed;
+ }, 'use `.destroyed` instead of `.isDestroyed`')),
+ (k.prototype._encodeSystemError = function (e, t) {
+ var n,
+ r,
+ o = this.server;
+ if (
+ (o.emit('error', e, this),
+ o._sysErrFormatter ? (n = o._sysErrFormatter.call(this, e)) : e.rpcCode && (n = e.message),
+ t)
+ )
+ try {
+ r = y.toBuffer(t);
+ } catch (e) {
+ o.emit('error', e, this);
+ }
+ return u.concat([r || i.bufferFrom([0]), i.bufferFrom([1, 0]), g.toBuffer(n || 'internal server error')]);
+ }),
+ c.inherits(C, k),
+ c.inherits(P, k),
+ (T.prototype.toBuffer = function () {
+ var e = this._msg;
+ return u.concat([y.toBuffer(this.headers), g.toBuffer(e.name), e.requestType.toBuffer(this.request)]);
+ }),
+ ($.prototype.toBuffer = function () {
+ var e = y.toBuffer(this.headers),
+ t = void 0 !== this.error;
+ return u.concat([
+ e,
+ m.toBuffer(t),
+ t ? this._msg.errorType.toBuffer(this.error) : this._msg.responseType.toBuffer(this.response),
+ ]);
+ }),
+ (F.prototype.get = function (e) {
+ return this._cbs[e & this._mask];
+ }),
+ (F.prototype.add = function (e, t) {
+ this._id = (this._id + 1) & this._mask;
+ var n,
+ r = this,
+ i = this._id;
+ return (
+ e > 0 &&
+ (n = setTimeout(function () {
+ o(new Error('timeout'));
+ }, e)),
+ (this._cbs[i] = o),
+ this._n++,
+ i
+ );
+ function o() {
+ r._cbs[i] && (delete r._cbs[i], r._n--, n && clearTimeout(n), t.apply(r._ctx, arguments));
+ }
+ }),
+ (F.prototype.clear = function () {
+ Object.keys(this._cbs).forEach(function (e) {
+ this._cbs[e](new Error('interrupted'));
+ }, this);
+ }),
+ (I.prototype._decodeRequest = function (e) {
+ var t,
+ n,
+ r = new l(e),
+ i = y._read(r),
+ o = g._read(r);
+ if ((o ? ((t = this._serverSvc.message(o)), (n = this._readers[o + '?']._read(r))) : (t = x), !r.isValid()))
+ throw new Error(h('truncated %s request', o || 'ping$'));
+ return new T(t, i, n);
+ }),
+ (I.prototype._decodeResponse = function (e, t, n) {
+ var r = new l(e);
+ i.copyOwnProperties(y._read(r), t.headers, !0);
+ var o = m._read(r),
+ a = n.name;
+ if (a) {
+ var s = this._readers[a + (o ? '*' : '!')];
+ if (
+ ((n = this._clientSvc.message(a)), o ? (t.error = s._read(r)) : (t.response = s._read(r)), !r.isValid())
+ )
+ throw new Error(h('truncated %s response', a));
+ } else n = x;
+ }),
+ c.inherits(N, s.Transform),
+ (N.prototype._transform = function (e, t, n) {
+ var r;
+ for (e = u.concat([this._buf, e]); e.length >= 4 && e.length >= (r = e.readInt32BE(0)) + 4; ) {
+ if (r) this._bufs.push(e.slice(4, r + 4));
+ else {
+ var i = this._bufs;
+ (this._bufs = []), this.push({ id: null, payload: i });
+ }
+ e = e.slice(r + 4);
+ }
+ (this._buf = e), n();
+ }),
+ (N.prototype._flush = function (e) {
+ if (this._buf.length || this._bufs.length) {
+ var t = this._bufs.slice();
+ t.unshift(this._buf);
+ var n = W('TRAILING_DATA');
+ (n.trailingData = u.concat(t).toString()), this.emit('error', n);
+ }
+ e();
+ }),
+ c.inherits(R, s.Transform),
+ (R.prototype._transform = function (e, t, n) {
+ var r,
+ i,
+ o,
+ a = e.payload;
+ for (r = 0, i = a.length; r < i; r++) (o = a[r]), this.push(L(o.length)), this.push(o);
+ this.push(L(0)), n();
+ }),
+ c.inherits(B, s.Transform),
+ (B.prototype._transform = function (e, t, n) {
+ for (e = u.concat([this._buf, e]); ; ) {
+ if (void 0 === this._id) {
+ if (e.length < 8) return (this._buf = e), void n();
+ (this._id = e.readInt32BE(0)), (this._frameCount = e.readInt32BE(4)), (e = e.slice(8));
+ }
+ for (var r; this._frameCount && e.length >= 4 && e.length >= (r = e.readInt32BE(0)) + 4; )
+ this._frameCount--, this._bufs.push(e.slice(4, r + 4)), (e = e.slice(r + 4));
+ if (this._frameCount) return (this._buf = e), void n();
+ var i = { id: this._id, payload: this._bufs };
+ (this._bufs = []), (this._id = void 0), this.push(i);
+ }
+ }),
+ (B.prototype._flush = N.prototype._flush),
+ c.inherits(M, s.Transform),
+ (M.prototype._transform = function (e, t, n) {
+ var r,
+ o,
+ a = e.payload,
+ s = a.length;
+ for ((r = i.newBuffer(8)).writeInt32BE(e.id, 0), r.writeInt32BE(s, 4), this.push(r), o = 0; o < s; o++)
+ (r = a[o]), this.push(L(r.length)), this.push(r);
+ n();
+ }),
+ (e.exports = {
+ Adapter: I,
+ HANDSHAKE_REQUEST_TYPE: v,
+ HANDSHAKE_RESPONSE_TYPE: b,
+ Message: w,
+ Registry: F,
+ Service: E,
+ discoverProtocol: function (e, t, n) {
+ var r;
+ void 0 === n && 'function' == typeof t && ((n = t), (t = void 0)),
+ new E({ protocol: 'Empty' }, d)
+ .createClient({ timeout: t && t.timeout })
+ .createChannel(e, { scope: t && t.scope, endWritable: 'function' == typeof e })
+ .once('handshake', function (e, t) {
+ (r = t.serverProtocol), this.destroy(!0);
+ })
+ .once('eot', function (e, t) {
+ t && !/interrupted/.test(t) ? n(t) : n(null, JSON.parse(r));
+ });
+ },
+ streams: { FrameDecoder: N, FrameEncoder: R, NettyDecoder: B, NettyEncoder: M },
+ });
+ }).call(this, n(6));
+ },
+ function (e, t, n) {
+ e.exports = n(55);
+ },
+ function (e, t, n) {
+ e.exports = n(20);
+ },
+ function (e, t, n) {
+ e.exports = n(30).Transform;
+ },
+ function (e, t, n) {
+ e.exports = n(30).PassThrough;
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(283),
+ i = n(26),
+ o = n(74),
+ a = n(16).format,
+ s = {
+ date: { type: 'int', logicalType: 'date' },
+ decimal: { type: 'bytes', logicalType: 'decimal' },
+ time_ms: { type: 'long', logicalType: 'time-millis' },
+ timestamp_ms: { type: 'long', logicalType: 'timestamp-millis' },
+ };
+ function c(e, t, n) {
+ function i(e, n) {
+ t.importHook(e, 'idl', function (r, s) {
+ if (r) n(r);
+ else if (void 0 !== s) {
+ try {
+ var c = new u(s, t)._readProtocol(s, t);
+ } catch (r) {
+ return (r.path = e), void n(r);
+ }
+ !(function (e, n, r, s) {
+ var c = [];
+ !(function u() {
+ var l = n.shift();
+ if (l) {
+ var p = o.join(r, l.name);
+ 'idl' === l.kind
+ ? i(p, function (e, t) {
+ e ? s(e) : (t && c.push(t), u());
+ })
+ : t.importHook(p, l.kind, function (e, t) {
+ if (e) s(e);
+ else
+ switch (l.kind) {
+ case 'protocol':
+ case 'schema':
+ if (void 0 === t) return void u();
+ try {
+ var n = JSON.parse(t);
+ } catch (e) {
+ return (e.path = p), void s(e);
+ }
+ var r = 'schema' === l.kind ? { types: [n] } : n;
+ return c.push(r), void u();
+ default:
+ s(new Error(a('invalid import kind: %s', l.kind)));
+ }
+ });
+ } else {
+ c.reverse();
+ try {
+ c.forEach(function (t) {
+ !(function (e, t) {
+ var n = t.types || [];
+ n.reverse(),
+ n.forEach(function (n) {
+ e.types || (e.types = []),
+ void 0 === n.namespace && (n.namespace = f(t) || ''),
+ e.types.unshift(n);
+ }),
+ Object.keys(t.messages || {}).forEach(function (n) {
+ if ((e.messages || (e.messages = {}), e.messages[n]))
+ throw new Error(a('duplicate message: %s', n));
+ e.messages[n] = t.messages[n];
+ });
+ })(e, t);
+ });
+ } catch (e) {
+ return void s(e);
+ }
+ s(null, e);
+ }
+ })();
+ })(c.protocol, c.imports, o.dirname(e), n);
+ } else n();
+ });
+ }
+ n || 'function' != typeof t || ((n = t), (t = void 0)),
+ (t = t || {}).importHook || (t.importHook = r.createImportHook()),
+ i(e, function (e, t) {
+ if (e) n(e);
+ else if (t) {
+ var r = t.types;
+ if (r) {
+ var i = f(t) || '';
+ r.forEach(function (e) {
+ e.namespace === i && delete e.namespace;
+ });
+ }
+ n(null, t);
+ } else n(new Error('empty root import'));
+ });
+ }
+ function u(e, t) {
+ (t = t || {}),
+ (this._tk = new l(e)),
+ (this._ackVoidMessages = !!t.ackVoidMessages),
+ (this._implicitTags = !t.delimitedCollections),
+ (this._typeRefs = t.typeRefs || s);
+ }
+ function l(e) {
+ (this._str = e), (this.pos = 0);
+ }
+ function p(e) {
+ for (
+ var t = e
+ .replace(/^[ \t]+|[ \t]+$/g, '')
+ .split('\n')
+ .map(function (e, t) {
+ return t ? e.replace(/^\s*\*\s?/, '') : e;
+ });
+ t.length && !t[0];
+
+ )
+ t.shift();
+ for (; t.length && !t[t.length - 1]; ) t.pop();
+ return t.join('\n');
+ }
+ function f(e) {
+ if (e.namespace) return e.namespace;
+ var t = /^(.*)\.[^.]+$/.exec(e.protocol);
+ return t ? t[1] : void 0;
+ }
+ (u.readProtocol = function (e, t) {
+ var n = new u(e, t)._readProtocol();
+ if (n.imports.length) throw new Error('unresolvable import');
+ return n.protocol;
+ }),
+ (u.readSchema = function (e, t) {
+ var n = new u(e, t),
+ r = n._readJavadoc(),
+ i = n._readType(void 0 === r ? {} : { doc: r }, !0);
+ return n._tk.next({ id: '(eof)' }), i;
+ }),
+ (u.prototype._readProtocol = function () {
+ var e,
+ t = this._tk,
+ n = [],
+ r = [],
+ i = {};
+ this._readImports(n);
+ var o = {},
+ s = this._readJavadoc();
+ for (
+ void 0 !== s && (o.doc = s),
+ this._readAnnotations(o),
+ t.next({ val: 'protocol' }),
+ t.next({ val: '{', silent: !0 }) || ((o.protocol = t.next({ id: 'name' }).val), t.next({ val: '{' }));
+ !t.next({ val: '}', silent: !0 });
+
+ )
+ if (!this._readImports(n)) {
+ var c = this._readJavadoc(),
+ u = this._readType({}, !0),
+ l = this._readImports(n, !0),
+ p = void 0;
+ if (((e = t.pos), !l && (p = this._readMessage(u)))) {
+ void 0 !== c && void 0 === p.schema.doc && (p.schema.doc = c);
+ var f = !1;
+ if (
+ (('void' !== p.schema.response && 'void' !== p.schema.response.type) ||
+ ((f = !this._ackVoidMessages && !p.schema.errors),
+ 'void' === p.schema.response ? (p.schema.response = 'null') : (p.schema.response.type = 'null')),
+ f && (p.schema['one-way'] = !0),
+ i[p.name])
+ )
+ throw new Error(a('duplicate message: %s', p.name));
+ i[p.name] = p.schema;
+ } else
+ c && ('string' == typeof u ? (u = { doc: c, type: u }) : void 0 === u.doc && (u.doc = c)),
+ r.push(u),
+ (t.pos = e),
+ t.next({ val: ';', silent: !0 });
+ c = void 0;
+ }
+ return (
+ t.next({ id: '(eof)' }),
+ r.length && (o.types = r),
+ Object.keys(i).length && (o.messages = i),
+ { protocol: o, imports: n }
+ );
+ }),
+ (u.prototype._readAnnotations = function (e) {
+ for (var t = this._tk; t.next({ val: '@', silent: !0 }); ) {
+ for (var n = []; !t.next({ val: '(', silent: !0 }); ) n.push(t.next().val);
+ (e[n.join('')] = t.next({ id: 'json' }).val), t.next({ val: ')' });
+ }
+ }),
+ (u.prototype._readMessage = function (e) {
+ var t = this._tk,
+ n = { request: [], response: e };
+ this._readAnnotations(n);
+ var r = t.next().val;
+ if ('(' === t.next().val) {
+ if (!t.next({ val: ')', silent: !0 }))
+ do {
+ n.request.push(this._readField());
+ } while (!t.next({ val: ')', silent: !0 }) && t.next({ val: ',' }));
+ var i = t.next();
+ switch (i.val) {
+ case 'throws':
+ n.errors = [];
+ do {
+ n.errors.push(this._readType());
+ } while (!t.next({ val: ';', silent: !0 }) && t.next({ val: ',' }));
+ break;
+ case 'oneway':
+ (n['one-way'] = !0), t.next({ val: ';' });
+ break;
+ case ';':
+ break;
+ default:
+ throw t.error('invalid message suffix', i);
+ }
+ return { name: r, schema: n };
+ }
+ }),
+ (u.prototype._readJavadoc = function () {
+ var e = this._tk.next({ id: 'javadoc', emitJavadoc: !0, silent: !0 });
+ if (e) return e.val;
+ }),
+ (u.prototype._readField = function () {
+ var e = this._tk,
+ t = this._readJavadoc(),
+ n = { type: this._readType() };
+ return (
+ void 0 !== t && void 0 === n.doc && (n.doc = t),
+ this._readAnnotations(n),
+ (n.name = e.next({ id: 'name' }).val),
+ e.next({ val: '=', silent: !0 }) && (n.default = e.next({ id: 'json' }).val),
+ n
+ );
+ }),
+ (u.prototype._readType = function (e, t) {
+ switch (((e = e || {}), this._readAnnotations(e), (e.type = this._tk.next({ id: 'name' }).val), e.type)) {
+ case 'record':
+ case 'error':
+ return this._readRecord(e);
+ case 'fixed':
+ return this._readFixed(e);
+ case 'enum':
+ return this._readEnum(e, t);
+ case 'map':
+ return this._readMap(e);
+ case 'array':
+ return this._readArray(e);
+ case 'union':
+ if (Object.keys(e).length > 1) throw new Error('union annotations are not supported');
+ return this._readUnion();
+ default:
+ var n = this._typeRefs[e.type];
+ return n && (delete e.type, i.copyOwnProperties(n, e)), Object.keys(e).length > 1 ? e : e.type;
+ }
+ }),
+ (u.prototype._readFixed = function (e) {
+ var t = this._tk;
+ return (
+ t.next({ val: '(', silent: !0 }) || ((e.name = t.next({ id: 'name' }).val), t.next({ val: '(' })),
+ (e.size = parseInt(t.next({ id: 'number' }).val)),
+ t.next({ val: ')' }),
+ e
+ );
+ }),
+ (u.prototype._readMap = function (e) {
+ var t = this._tk,
+ n = this._implicitTags,
+ r = void 0 === t.next({ val: '<', silent: n });
+ return (e.values = this._readType()), t.next({ val: '>', silent: r }), e;
+ }),
+ (u.prototype._readArray = function (e) {
+ var t = this._tk,
+ n = this._implicitTags,
+ r = void 0 === t.next({ val: '<', silent: n });
+ return (e.items = this._readType()), t.next({ val: '>', silent: r }), e;
+ }),
+ (u.prototype._readEnum = function (e, t) {
+ var n = this._tk;
+ n.next({ val: '{', silent: !0 }) || ((e.name = n.next({ id: 'name' }).val), n.next({ val: '{' })),
+ (e.symbols = []);
+ do {
+ e.symbols.push(n.next().val);
+ } while (!n.next({ val: '}', silent: !0 }) && n.next({ val: ',' }));
+ return t && n.next({ val: '=', silent: !0 }) && ((e.default = n.next().val), n.next({ val: ';' })), e;
+ }),
+ (u.prototype._readUnion = function () {
+ var e = this._tk,
+ t = [];
+ e.next({ val: '{' });
+ do {
+ t.push(this._readType());
+ } while (!e.next({ val: '}', silent: !0 }) && e.next({ val: ',' }));
+ return t;
+ }),
+ (u.prototype._readRecord = function (e) {
+ var t = this._tk;
+ for (
+ t.next({ val: '{', silent: !0 }) || ((e.name = t.next({ id: 'name' }).val), t.next({ val: '{' })),
+ e.fields = [];
+ !t.next({ val: '}', silent: !0 });
+
+ )
+ e.fields.push(this._readField()), t.next({ val: ';' });
+ return e;
+ }),
+ (u.prototype._readImports = function (e, t) {
+ for (var n = this._tk, r = 0, i = n.pos; n.next({ val: 'import', silent: !0 }); ) {
+ if (!r && t && n.next({ val: '(', silent: !0 })) return void (n.pos = i);
+ var o = n.next({ id: 'name' }).val,
+ a = JSON.parse(n.next({ id: 'string' }).val);
+ n.next({ val: ';' }), e.push({ kind: o, name: a }), r++;
+ }
+ return r;
+ }),
+ (l.prototype.next = function (e) {
+ var t,
+ n = { pos: this.pos, id: void 0, val: void 0 },
+ r = this._skip(e && e.emitJavadoc);
+ if ('string' == typeof r) (n.id = 'javadoc'), (n.val = r);
+ else {
+ var i = this.pos,
+ o = this._str,
+ s = o.charAt(i);
+ if (s)
+ if (
+ (e && 'json' === e.id
+ ? ((n.id = 'json'), (this.pos = this._endOfJson()))
+ : '"' === s
+ ? ((n.id = 'string'), (this.pos = this._endOfString()))
+ : /[0-9]/.test(s)
+ ? ((n.id = 'number'), (this.pos = this._endOf(/[0-9]/)))
+ : /[`A-Za-z_.]/.test(s)
+ ? ((n.id = 'name'), (this.pos = this._endOf(/[`A-Za-z0-9_.]/)))
+ : ((n.id = 'operator'), (this.pos = i + 1)),
+ (n.val = o.slice(i, this.pos)),
+ 'json' === n.id)
+ )
+ try {
+ n.val = JSON.parse(n.val);
+ } catch (t) {
+ throw this.error('invalid JSON', n);
+ }
+ else 'name' === n.id && (n.val = n.val.replace(/`/g, ''));
+ else n.id = '(eof)';
+ }
+ if (
+ (e && e.id && e.id !== n.id
+ ? (t = this.error(a('expected ID %s', e.id), n))
+ : e && e.val && e.val !== n.val && (t = this.error(a('expected value %s', e.val), n)),
+ t)
+ ) {
+ if (e && e.silent) return void (this.pos = n.pos);
+ throw t;
+ }
+ return n;
+ }),
+ (l.prototype.error = function (e, t) {
+ var n,
+ r = 'number' != typeof t,
+ i = r ? t.pos : t,
+ o = this._str,
+ s = 1,
+ c = 0;
+ for (n = 0; n < i; n++) '\n' === o.charAt(n) && (s++, (c = n));
+ var u = r ? a('invalid token %j: %s', t, e) : e,
+ l = new Error(u);
+ return (l.token = r ? t : void 0), (l.lineNum = s), (l.colNum = i - c), l;
+ }),
+ (l.prototype._skip = function (e) {
+ for (var t, n, r = this._str, i = !1; (n = r.charAt(this.pos)) && /\s/.test(n); ) this.pos++;
+ if (((t = this.pos), '/' === n))
+ switch (r.charAt(this.pos + 1)) {
+ case '/':
+ for (this.pos += 2; (n = r.charAt(this.pos)) && '\n' !== n; ) this.pos++;
+ return this._skip(e);
+ case '*':
+ for (this.pos += 2, '*' === r.charAt(this.pos) && (i = !0); (n = r.charAt(this.pos++)); )
+ if ('*' === n && '/' === r.charAt(this.pos))
+ return this.pos++, i && e ? p(r.slice(t + 3, this.pos - 2)) : this._skip(e);
+ throw this.error('unterminated comment', t);
+ }
+ }),
+ (l.prototype._endOf = function (e) {
+ for (var t = this.pos, n = this._str; e.test(n.charAt(t)); ) t++;
+ return t;
+ }),
+ (l.prototype._endOfString = function () {
+ for (var e, t = this.pos + 1, n = this._str; (e = n.charAt(t)); ) {
+ if ('"' === e) return t + 1;
+ '\\' === e ? (t += 2) : t++;
+ }
+ throw this.error('unterminated string', t - 1);
+ }),
+ (l.prototype._endOfJson = function () {
+ var e = i.jsonEnd(this._str, this.pos);
+ if (e < 0) throw this.error('invalid JSON', e);
+ return e;
+ }),
+ (e.exports = {
+ Tokenizer: l,
+ assembleProtocol: c,
+ read: function (e) {
+ var t;
+ if ('string' == typeof e && ~e.indexOf(o.sep) && r.existsSync(e)) {
+ var n = r.readFileSync(e, { encoding: 'utf8' });
+ try {
+ return JSON.parse(n);
+ } catch (i) {
+ c(e, { importHook: r.createSyncImportHook() }, function (e, r) {
+ t = e ? n : r;
+ });
+ }
+ } else t = e;
+ if ('string' != typeof t || 'null' === t) return t;
+ try {
+ return JSON.parse(t);
+ } catch (e) {
+ try {
+ return u.readProtocol(t);
+ } catch (e) {
+ try {
+ return u.readSchema(t);
+ } catch (e) {
+ return t;
+ }
+ }
+ }
+ },
+ readProtocol: u.readProtocol,
+ readSchema: u.readSchema,
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ function r() {
+ return new Error('unsupported in the browser');
+ }
+ e.exports = {
+ createImportHook: function () {
+ return function (e, t, n) {
+ n(r());
+ };
+ },
+ createSyncImportHook: function () {
+ return function () {
+ throw r();
+ };
+ },
+ existsSync: function () {
+ return !1;
+ },
+ readFileSync: function () {
+ throw r();
+ },
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (t) {
+ var r = n(59),
+ i = n(26),
+ o = n(1),
+ a = n(47),
+ s = n(16),
+ c = n(285),
+ u = o.Buffer,
+ l = { namespace: 'org.apache.avro.file' },
+ p = r.Type.forSchema('long', l),
+ f = r.Type.forSchema({ type: 'map', values: 'bytes' }, l),
+ h = r.Type.forSchema(
+ {
+ name: 'Header',
+ type: 'record',
+ fields: [
+ { name: 'magic', type: { type: 'fixed', name: 'Magic', size: 4 } },
+ { name: 'meta', type: f },
+ { name: 'sync', type: { type: 'fixed', name: 'Sync', size: 16 } },
+ ],
+ },
+ l
+ ),
+ d = r.Type.forSchema(
+ {
+ name: 'Block',
+ type: 'record',
+ fields: [
+ { name: 'count', type: 'long' },
+ { name: 'data', type: 'bytes' },
+ { name: 'sync', type: 'Sync' },
+ ],
+ },
+ l
+ ),
+ m = i.bufferFrom('Obj'),
+ y = s.format,
+ g = i.Tap;
+ function v(e, t) {
+ var n = !!(t = t || {}).noDecode;
+ a.Duplex.call(this, { readableObjectMode: !n, allowHalfOpen: !1 }),
+ (this._type = r.Type.forSchema(e)),
+ (this._tap = new g(i.newBuffer(0))),
+ (this._writeCb = null),
+ (this._needPush = !1),
+ (this._readValue = S(n, this._type)),
+ (this._finished = !1),
+ this.on('finish', function () {
+ (this._finished = !0), this._read();
+ });
+ }
+ function b(e) {
+ var t = !!(e = e || {}).noDecode;
+ a.Duplex.call(this, { allowHalfOpen: !0, readableObjectMode: !t }),
+ (this._rType = void 0 !== e.readerSchema ? r.Type.forSchema(e.readerSchema) : void 0),
+ (this._wType = null),
+ (this._codecs = e.codecs),
+ (this._codec = void 0),
+ (this._parseHook = e.parseHook),
+ (this._tap = new g(i.newBuffer(0))),
+ (this._blockTap = new g(i.newBuffer(0))),
+ (this._syncMarker = null),
+ (this._readValue = null),
+ (this._noDecode = t),
+ (this._queue = new i.OrderedQueue()),
+ (this._decompress = null),
+ (this._index = 0),
+ (this._remaining = void 0),
+ (this._needPush = !1),
+ (this._finished = !1),
+ this.on('finish', function () {
+ (this._finished = !0), this._needPush && this._read();
+ });
+ }
+ function x(e, t) {
+ (t = t || {}),
+ a.Transform.call(this, { writableObjectMode: !0, allowHalfOpen: !1 }),
+ (this._type = r.Type.forSchema(e)),
+ (this._writeValue = function (e, t) {
+ try {
+ this._type._write(e, t);
+ } catch (e) {
+ this.emit('typeError', e, t, this._type);
+ }
+ }),
+ (this._tap = new g(i.newBuffer(t.batchSize || 65536))),
+ this.on('typeError', function (e) {
+ this.emit('error', e);
+ });
+ }
+ function w(e, t) {
+ var n;
+ if (
+ ((t = t || {}),
+ a.Duplex.call(this, { allowHalfOpen: !0, writableObjectMode: !0 }),
+ r.Type.isType(e) ? ((n = e), (e = void 0)) : (n = r.Type.forSchema(e)),
+ (this._schema = e),
+ (this._type = n),
+ (this._writeValue = function (e, t) {
+ try {
+ this._type._write(e, t);
+ } catch (e) {
+ return this.emit('typeError', e, t, this._type), !1;
+ }
+ return !0;
+ }),
+ (this._blockSize = t.blockSize || 65536),
+ (this._tap = new g(i.newBuffer(this._blockSize))),
+ (this._codecs = t.codecs),
+ (this._codec = t.codec || 'null'),
+ (this._blockCount = 0),
+ (this._syncMarker = t.syncMarker || new i.Lcg().nextBuffer(16)),
+ (this._queue = new i.OrderedQueue()),
+ (this._pending = 0),
+ (this._finished = !1),
+ (this._needHeader = !1),
+ (this._needPush = !1),
+ (this._metadata = t.metadata || {}),
+ !f.isValid(this._metadata))
+ )
+ throw new Error('invalid metadata');
+ var o = this._codec;
+ if (((this._compress = (this._codecs || w.getDefaultCodecs())[o]), !this._compress))
+ throw new Error(y('unsupported codec: %s', o));
+ switch ((void 0 !== t.omitHeader && (t.writeHeader = t.omitHeader ? 'never' : 'auto'), t.writeHeader)) {
+ case !1:
+ case 'never':
+ break;
+ case void 0:
+ case 'auto':
+ this._needHeader = !0;
+ break;
+ default:
+ this._writeHeader();
+ }
+ this.on('finish', function () {
+ (this._finished = !0),
+ this._blockCount ? this._flushChunk() : this._finished && this._needPush && this.push(null);
+ }),
+ this.on('typeError', function (e) {
+ this.emit('error', e);
+ });
+ }
+ function E(e, t, n) {
+ (this.valueCount = e), (this.rawDataLength = t), (this.compressedDataLength = n);
+ }
+ function _(e, t, n, r) {
+ (this.index = e), (this.buf = t), (this.cb = n), (this.count = 0 | r);
+ }
+ function j(e) {
+ var t = e.pos,
+ n = d._read(e);
+ return e.isValid() ? n : ((e.pos = t), null);
+ }
+ function S(e, t, n) {
+ if (e)
+ return (
+ (i = t._skip),
+ function (e) {
+ var t = e.pos;
+ return i(e), e.buf.slice(t, e.pos);
+ }
+ );
+ if (n) {
+ var r = n.createResolver(t);
+ return function (e) {
+ return r._read(e);
+ };
+ }
+ return function (e) {
+ return t._read(e);
+ };
+ var i;
+ }
+ s.inherits(v, a.Duplex),
+ (v.prototype._write = function (e, t, n) {
+ this._writeCb = n;
+ var r = this._tap;
+ (r.buf = u.concat([r.buf.slice(r.pos), e])),
+ (r.pos = 0),
+ this._needPush && ((this._needPush = !1), this._read());
+ }),
+ (v.prototype._read = function () {
+ this._needPush = !1;
+ var e = this._tap,
+ t = e.pos,
+ n = this._readValue(e);
+ e.isValid()
+ ? this.push(n)
+ : this._finished
+ ? this.push(null)
+ : ((e.pos = t), (this._needPush = !0), this._writeCb && this._writeCb());
+ }),
+ s.inherits(b, a.Duplex),
+ (b.defaultCodecs = function () {
+ return {
+ null: function (e, t) {
+ t(null, e);
+ },
+ deflate: c.inflateRaw,
+ };
+ }),
+ (b.getDefaultCodecs = b.defaultCodecs),
+ (b.prototype._decodeHeader = function () {
+ var e = this._tap;
+ if (e.buf.length < m.length) return !1;
+ if (!m.equals(e.buf.slice(0, m.length))) return this.emit('error', new Error('invalid magic bytes')), !1;
+ var t = h._read(e);
+ if (!e.isValid()) return !1;
+ this._codec = (t.meta['avro.codec'] || 'null').toString();
+ var n = this._codecs || b.getDefaultCodecs();
+ if (((this._decompress = n[this._codec]), this._decompress)) {
+ try {
+ var i = JSON.parse(t.meta['avro.schema'].toString());
+ this._parseHook && (i = this._parseHook(i)), (this._wType = r.Type.forSchema(i));
+ } catch (e) {
+ return void this.emit('error', e);
+ }
+ try {
+ this._readValue = S(this._noDecode, this._wType, this._rType);
+ } catch (e) {
+ return void this.emit('error', e);
+ }
+ return (this._syncMarker = t.sync), this.emit('metadata', this._wType, this._codec, t), !0;
+ }
+ this.emit('error', new Error(y('unknown codec: %s', this._codec)));
+ }),
+ (b.prototype._write = function (e, n, r) {
+ var o = this._tap;
+ (o.buf = u.concat([o.buf, e])),
+ (o.pos = 0),
+ this._decodeHeader()
+ ? ((this._write = this._writeChunk), this._write(i.newBuffer(0), n, r))
+ : t.nextTick(r);
+ }),
+ (b.prototype._writeChunk = function (e, t, n) {
+ var r = this._tap;
+ (r.buf = u.concat([r.buf.slice(r.pos), e])), (r.pos = 0);
+ for (var i, o = 1; (i = j(r)); ) {
+ if (!this._syncMarker.equals(i.sync)) return void this.emit('error', new Error('invalid sync marker'));
+ o++, this._decompress(i.data, this._createBlockCallback(i.data.length, i.count, a));
+ }
+ function a() {
+ --o || n();
+ }
+ a();
+ }),
+ (b.prototype._createBlockCallback = function (e, t, n) {
+ var r = this,
+ i = this._index++;
+ return function (o, a) {
+ if (o) {
+ var s = new Error(y('%s codec decompression error', r._codec));
+ (s.cause = o), r.emit('error', s), n();
+ } else r.emit('block', new E(t, a.length, e)), r._queue.push(new _(i, a, n, t)), r._needPush && r._read();
+ };
+ }),
+ (b.prototype._read = function () {
+ this._needPush = !1;
+ var e,
+ t = this._blockTap;
+ if (!this._remaining) {
+ var n = this._queue.pop();
+ if (!n || !n.count) return this._finished ? this.push(null) : (this._needPush = !0), void (n && n.cb());
+ n.cb(), (this._remaining = n.count), (t.buf = n.buf), (t.pos = 0);
+ }
+ this._remaining--;
+ try {
+ if (((e = this._readValue(t)), !t.isValid())) throw new Error('truncated block');
+ } catch (e) {
+ return (this._remaining = 0), void this.emit('error', e);
+ }
+ this.push(e);
+ }),
+ s.inherits(x, a.Transform),
+ (x.prototype._transform = function (e, t, n) {
+ var r = this._tap,
+ o = r.buf,
+ a = r.pos;
+ if ((this._writeValue(r, e), !r.isValid())) {
+ a &&
+ this.push(
+ (function (e, t, n) {
+ var r = i.newBuffer(n);
+ return e.copy(r, 0, t, t + n), r;
+ })(r.buf, 0, a)
+ );
+ var s = r.pos - a;
+ s > o.length && (r.buf = i.newBuffer(2 * s)), (r.pos = 0), this._writeValue(r, e);
+ }
+ n();
+ }),
+ (x.prototype._flush = function (e) {
+ var t = this._tap,
+ n = t.pos;
+ n && this.push(t.buf.slice(0, n)), e();
+ }),
+ s.inherits(w, a.Duplex),
+ (w.defaultCodecs = function () {
+ return {
+ null: function (e, t) {
+ t(null, e);
+ },
+ deflate: c.deflateRaw,
+ };
+ }),
+ (w.getDefaultCodecs = w.defaultCodecs),
+ (w.prototype._writeHeader = function () {
+ var e = JSON.stringify(this._schema ? this._schema : this._type.getSchema({ exportAttrs: !0 })),
+ t = i.copyOwnProperties(
+ this._metadata,
+ { 'avro.schema': i.bufferFrom(e), 'avro.codec': i.bufferFrom(this._codec) },
+ !0
+ ),
+ n = new (h.getRecordConstructor())(m, t, this._syncMarker);
+ this.push(n.toBuffer());
+ }),
+ (w.prototype._write = function (e, t, n) {
+ this._needHeader && (this._writeHeader(), (this._needHeader = !1));
+ var r = this._tap,
+ o = r.pos,
+ a = !1;
+ if (this._writeValue(r, e)) {
+ if (!r.isValid()) {
+ o && (this._flushChunk(o, n), (a = !0));
+ var s = r.pos - o;
+ s > this._blockSize && (this._blockSize = 2 * s),
+ (r.buf = i.newBuffer(this._blockSize)),
+ (r.pos = 0),
+ this._writeValue(r, e);
+ }
+ this._blockCount++;
+ } else r.pos = o;
+ a || n();
+ }),
+ (w.prototype._flushChunk = function (e, t) {
+ var n = this._tap;
+ (e = e || n.pos),
+ this._compress(n.buf.slice(0, e), this._createBlockCallback(e, t)),
+ (this._blockCount = 0);
+ }),
+ (w.prototype._read = function () {
+ var e = this,
+ n = this._queue.pop();
+ n
+ ? (this.push(p.toBuffer(n.count, !0)),
+ this.push(p.toBuffer(n.buf.length, !0)),
+ this.push(n.buf),
+ this.push(this._syncMarker),
+ this._finished || n.cb())
+ : this._finished && !this._pending
+ ? t.nextTick(function () {
+ e.push(null);
+ })
+ : (this._needPush = !0);
+ }),
+ (w.prototype._createBlockCallback = function (e, t) {
+ var n = this,
+ r = this._index++,
+ i = this._blockCount;
+ return (
+ this._pending++,
+ function (o, a) {
+ if (o) {
+ var s = new Error(y('%s codec compression error', n._codec));
+ return (s.cause = o), void n.emit('error', s);
+ }
+ n._pending--,
+ n.emit('block', new E(i, e, a.length)),
+ n._queue.push(new _(r, a, t, i)),
+ n._needPush && ((n._needPush = !1), n._read());
+ }
+ );
+ }),
+ (e.exports = {
+ BLOCK_TYPE: d,
+ HEADER_TYPE: h,
+ MAGIC_BYTES: m,
+ streams: { BlockDecoder: b, BlockEncoder: w, RawDecoder: v, RawEncoder: x },
+ });
+ }).call(this, n(6));
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (e) {
+ var r = n(1).Buffer,
+ i = n(47).Transform,
+ o = n(286),
+ a = n(16),
+ s = n(103).ok,
+ c = n(1).kMaxLength,
+ u = 'Cannot create final Buffer. It would be larger than 0x' + c.toString(16) + ' bytes';
+ (o.Z_MIN_WINDOWBITS = 8),
+ (o.Z_MAX_WINDOWBITS = 15),
+ (o.Z_DEFAULT_WINDOWBITS = 15),
+ (o.Z_MIN_CHUNK = 64),
+ (o.Z_MAX_CHUNK = 1 / 0),
+ (o.Z_DEFAULT_CHUNK = 16384),
+ (o.Z_MIN_MEMLEVEL = 1),
+ (o.Z_MAX_MEMLEVEL = 9),
+ (o.Z_DEFAULT_MEMLEVEL = 8),
+ (o.Z_MIN_LEVEL = -1),
+ (o.Z_MAX_LEVEL = 9),
+ (o.Z_DEFAULT_LEVEL = o.Z_DEFAULT_COMPRESSION);
+ for (var l = Object.keys(o), p = 0; p < l.length; p++) {
+ var f = l[p];
+ f.match(/^Z/) && Object.defineProperty(t, f, { enumerable: !0, value: o[f], writable: !1 });
+ }
+ for (
+ var h = {
+ Z_OK: o.Z_OK,
+ Z_STREAM_END: o.Z_STREAM_END,
+ Z_NEED_DICT: o.Z_NEED_DICT,
+ Z_ERRNO: o.Z_ERRNO,
+ Z_STREAM_ERROR: o.Z_STREAM_ERROR,
+ Z_DATA_ERROR: o.Z_DATA_ERROR,
+ Z_MEM_ERROR: o.Z_MEM_ERROR,
+ Z_BUF_ERROR: o.Z_BUF_ERROR,
+ Z_VERSION_ERROR: o.Z_VERSION_ERROR,
+ },
+ d = Object.keys(h),
+ m = 0;
+ m < d.length;
+ m++
+ ) {
+ var y = d[m];
+ h[h[y]] = y;
+ }
+ function g(e, t, n) {
+ var i = [],
+ o = 0;
+ function a() {
+ for (var t; null !== (t = e.read()); ) i.push(t), (o += t.length);
+ e.once('readable', a);
+ }
+ function s() {
+ var t,
+ a = null;
+ o >= c ? (a = new RangeError(u)) : (t = r.concat(i, o)), (i = []), e.close(), n(a, t);
+ }
+ e.on('error', function (t) {
+ e.removeListener('end', s), e.removeListener('readable', a), n(t);
+ }),
+ e.on('end', s),
+ e.end(t),
+ a();
+ }
+ function v(e, t) {
+ if (('string' == typeof t && (t = r.from(t)), !r.isBuffer(t))) throw new TypeError('Not a string or buffer');
+ var n = e._finishFlushFlag;
+ return e._processChunk(t, n);
+ }
+ function b(e) {
+ if (!(this instanceof b)) return new b(e);
+ A.call(this, e, o.DEFLATE);
+ }
+ function x(e) {
+ if (!(this instanceof x)) return new x(e);
+ A.call(this, e, o.INFLATE);
+ }
+ function w(e) {
+ if (!(this instanceof w)) return new w(e);
+ A.call(this, e, o.GZIP);
+ }
+ function E(e) {
+ if (!(this instanceof E)) return new E(e);
+ A.call(this, e, o.GUNZIP);
+ }
+ function _(e) {
+ if (!(this instanceof _)) return new _(e);
+ A.call(this, e, o.DEFLATERAW);
+ }
+ function j(e) {
+ if (!(this instanceof j)) return new j(e);
+ A.call(this, e, o.INFLATERAW);
+ }
+ function S(e) {
+ if (!(this instanceof S)) return new S(e);
+ A.call(this, e, o.UNZIP);
+ }
+ function D(e) {
+ return (
+ e === o.Z_NO_FLUSH ||
+ e === o.Z_PARTIAL_FLUSH ||
+ e === o.Z_SYNC_FLUSH ||
+ e === o.Z_FULL_FLUSH ||
+ e === o.Z_FINISH ||
+ e === o.Z_BLOCK
+ );
+ }
+ function A(e, n) {
+ var a = this;
+ if (
+ ((this._opts = e = e || {}),
+ (this._chunkSize = e.chunkSize || t.Z_DEFAULT_CHUNK),
+ i.call(this, e),
+ e.flush && !D(e.flush))
+ )
+ throw new Error('Invalid flush flag: ' + e.flush);
+ if (e.finishFlush && !D(e.finishFlush)) throw new Error('Invalid flush flag: ' + e.finishFlush);
+ if (
+ ((this._flushFlag = e.flush || o.Z_NO_FLUSH),
+ (this._finishFlushFlag = void 0 !== e.finishFlush ? e.finishFlush : o.Z_FINISH),
+ e.chunkSize && (e.chunkSize < t.Z_MIN_CHUNK || e.chunkSize > t.Z_MAX_CHUNK))
+ )
+ throw new Error('Invalid chunk size: ' + e.chunkSize);
+ if (e.windowBits && (e.windowBits < t.Z_MIN_WINDOWBITS || e.windowBits > t.Z_MAX_WINDOWBITS))
+ throw new Error('Invalid windowBits: ' + e.windowBits);
+ if (e.level && (e.level < t.Z_MIN_LEVEL || e.level > t.Z_MAX_LEVEL))
+ throw new Error('Invalid compression level: ' + e.level);
+ if (e.memLevel && (e.memLevel < t.Z_MIN_MEMLEVEL || e.memLevel > t.Z_MAX_MEMLEVEL))
+ throw new Error('Invalid memLevel: ' + e.memLevel);
+ if (
+ e.strategy &&
+ e.strategy != t.Z_FILTERED &&
+ e.strategy != t.Z_HUFFMAN_ONLY &&
+ e.strategy != t.Z_RLE &&
+ e.strategy != t.Z_FIXED &&
+ e.strategy != t.Z_DEFAULT_STRATEGY
+ )
+ throw new Error('Invalid strategy: ' + e.strategy);
+ if (e.dictionary && !r.isBuffer(e.dictionary))
+ throw new Error('Invalid dictionary: it should be a Buffer instance');
+ this._handle = new o.Zlib(n);
+ var s = this;
+ (this._hadError = !1),
+ (this._handle.onerror = function (e, n) {
+ k(s), (s._hadError = !0);
+ var r = new Error(e);
+ (r.errno = n), (r.code = t.codes[n]), s.emit('error', r);
+ });
+ var c = t.Z_DEFAULT_COMPRESSION;
+ 'number' == typeof e.level && (c = e.level);
+ var u = t.Z_DEFAULT_STRATEGY;
+ 'number' == typeof e.strategy && (u = e.strategy),
+ this._handle.init(
+ e.windowBits || t.Z_DEFAULT_WINDOWBITS,
+ c,
+ e.memLevel || t.Z_DEFAULT_MEMLEVEL,
+ u,
+ e.dictionary
+ ),
+ (this._buffer = r.allocUnsafe(this._chunkSize)),
+ (this._offset = 0),
+ (this._level = c),
+ (this._strategy = u),
+ this.once('end', this.close),
+ Object.defineProperty(this, '_closed', {
+ get: function () {
+ return !a._handle;
+ },
+ configurable: !0,
+ enumerable: !0,
+ });
+ }
+ function k(t, n) {
+ n && e.nextTick(n), t._handle && (t._handle.close(), (t._handle = null));
+ }
+ function C(e) {
+ e.emit('close');
+ }
+ Object.defineProperty(t, 'codes', { enumerable: !0, value: Object.freeze(h), writable: !1 }),
+ (t.Deflate = b),
+ (t.Inflate = x),
+ (t.Gzip = w),
+ (t.Gunzip = E),
+ (t.DeflateRaw = _),
+ (t.InflateRaw = j),
+ (t.Unzip = S),
+ (t.createDeflate = function (e) {
+ return new b(e);
+ }),
+ (t.createInflate = function (e) {
+ return new x(e);
+ }),
+ (t.createDeflateRaw = function (e) {
+ return new _(e);
+ }),
+ (t.createInflateRaw = function (e) {
+ return new j(e);
+ }),
+ (t.createGzip = function (e) {
+ return new w(e);
+ }),
+ (t.createGunzip = function (e) {
+ return new E(e);
+ }),
+ (t.createUnzip = function (e) {
+ return new S(e);
+ }),
+ (t.deflate = function (e, t, n) {
+ return 'function' == typeof t && ((n = t), (t = {})), g(new b(t), e, n);
+ }),
+ (t.deflateSync = function (e, t) {
+ return v(new b(t), e);
+ }),
+ (t.gzip = function (e, t, n) {
+ return 'function' == typeof t && ((n = t), (t = {})), g(new w(t), e, n);
+ }),
+ (t.gzipSync = function (e, t) {
+ return v(new w(t), e);
+ }),
+ (t.deflateRaw = function (e, t, n) {
+ return 'function' == typeof t && ((n = t), (t = {})), g(new _(t), e, n);
+ }),
+ (t.deflateRawSync = function (e, t) {
+ return v(new _(t), e);
+ }),
+ (t.unzip = function (e, t, n) {
+ return 'function' == typeof t && ((n = t), (t = {})), g(new S(t), e, n);
+ }),
+ (t.unzipSync = function (e, t) {
+ return v(new S(t), e);
+ }),
+ (t.inflate = function (e, t, n) {
+ return 'function' == typeof t && ((n = t), (t = {})), g(new x(t), e, n);
+ }),
+ (t.inflateSync = function (e, t) {
+ return v(new x(t), e);
+ }),
+ (t.gunzip = function (e, t, n) {
+ return 'function' == typeof t && ((n = t), (t = {})), g(new E(t), e, n);
+ }),
+ (t.gunzipSync = function (e, t) {
+ return v(new E(t), e);
+ }),
+ (t.inflateRaw = function (e, t, n) {
+ return 'function' == typeof t && ((n = t), (t = {})), g(new j(t), e, n);
+ }),
+ (t.inflateRawSync = function (e, t) {
+ return v(new j(t), e);
+ }),
+ a.inherits(A, i),
+ (A.prototype.params = function (n, r, i) {
+ if (n < t.Z_MIN_LEVEL || n > t.Z_MAX_LEVEL) throw new RangeError('Invalid compression level: ' + n);
+ if (
+ r != t.Z_FILTERED &&
+ r != t.Z_HUFFMAN_ONLY &&
+ r != t.Z_RLE &&
+ r != t.Z_FIXED &&
+ r != t.Z_DEFAULT_STRATEGY
+ )
+ throw new TypeError('Invalid strategy: ' + r);
+ if (this._level !== n || this._strategy !== r) {
+ var a = this;
+ this.flush(o.Z_SYNC_FLUSH, function () {
+ s(a._handle, 'zlib binding closed'),
+ a._handle.params(n, r),
+ a._hadError || ((a._level = n), (a._strategy = r), i && i());
+ });
+ } else e.nextTick(i);
+ }),
+ (A.prototype.reset = function () {
+ return s(this._handle, 'zlib binding closed'), this._handle.reset();
+ }),
+ (A.prototype._flush = function (e) {
+ this._transform(r.alloc(0), '', e);
+ }),
+ (A.prototype.flush = function (t, n) {
+ var i = this,
+ a = this._writableState;
+ ('function' == typeof t || (void 0 === t && !n)) && ((n = t), (t = o.Z_FULL_FLUSH)),
+ a.ended
+ ? n && e.nextTick(n)
+ : a.ending
+ ? n && this.once('end', n)
+ : a.needDrain
+ ? n &&
+ this.once('drain', function () {
+ return i.flush(t, n);
+ })
+ : ((this._flushFlag = t), this.write(r.alloc(0), '', n));
+ }),
+ (A.prototype.close = function (t) {
+ k(this, t), e.nextTick(C, this);
+ }),
+ (A.prototype._transform = function (e, t, n) {
+ var i,
+ a = this._writableState,
+ s = (a.ending || a.ended) && (!e || a.length === e.length);
+ return null === e || r.isBuffer(e)
+ ? this._handle
+ ? (s
+ ? (i = this._finishFlushFlag)
+ : ((i = this._flushFlag),
+ e.length >= a.length && (this._flushFlag = this._opts.flush || o.Z_NO_FLUSH)),
+ void this._processChunk(e, i, n))
+ : n(new Error('zlib binding closed'))
+ : n(new Error('invalid input'));
+ }),
+ (A.prototype._processChunk = function (e, t, n) {
+ var i = e && e.length,
+ o = this._chunkSize - this._offset,
+ a = 0,
+ l = this,
+ p = 'function' == typeof n;
+ if (!p) {
+ var f,
+ h = [],
+ d = 0;
+ this.on('error', function (e) {
+ f = e;
+ }),
+ s(this._handle, 'zlib binding closed');
+ do {
+ var m = this._handle.writeSync(t, e, a, i, this._buffer, this._offset, o);
+ } while (!this._hadError && v(m[0], m[1]));
+ if (this._hadError) throw f;
+ if (d >= c) throw (k(this), new RangeError(u));
+ var y = r.concat(h, d);
+ return k(this), y;
+ }
+ s(this._handle, 'zlib binding closed');
+ var g = this._handle.write(t, e, a, i, this._buffer, this._offset, o);
+ function v(c, u) {
+ if ((this && ((this.buffer = null), (this.callback = null)), !l._hadError)) {
+ var f = o - u;
+ if ((s(f >= 0, 'have should not go down'), f > 0)) {
+ var m = l._buffer.slice(l._offset, l._offset + f);
+ (l._offset += f), p ? l.push(m) : (h.push(m), (d += m.length));
+ }
+ if (
+ ((0 === u || l._offset >= l._chunkSize) &&
+ ((o = l._chunkSize), (l._offset = 0), (l._buffer = r.allocUnsafe(l._chunkSize))),
+ 0 === u)
+ ) {
+ if (((a += i - c), (i = c), !p)) return !0;
+ var y = l._handle.write(t, e, a, i, l._buffer, l._offset, l._chunkSize);
+ return (y.callback = v), void (y.buffer = e);
+ }
+ if (!p) return !1;
+ n();
+ }
+ }
+ (g.buffer = e), (g.callback = v);
+ }),
+ a.inherits(b, A),
+ a.inherits(x, A),
+ a.inherits(w, A),
+ a.inherits(E, A),
+ a.inherits(_, A),
+ a.inherits(j, A),
+ a.inherits(S, A);
+ }).call(this, n(6));
+ },
+ function (e, t, n) {
+ 'use strict';
+ (function (e, r) {
+ var i = n(103),
+ o = n(287),
+ a = n(288),
+ s = n(291),
+ c = n(294);
+ for (var u in c) t[u] = c[u];
+ (t.NONE = 0),
+ (t.DEFLATE = 1),
+ (t.INFLATE = 2),
+ (t.GZIP = 3),
+ (t.GUNZIP = 4),
+ (t.DEFLATERAW = 5),
+ (t.INFLATERAW = 6),
+ (t.UNZIP = 7);
+ function l(e) {
+ if ('number' != typeof e || e < t.DEFLATE || e > t.UNZIP) throw new TypeError('Bad argument');
+ (this.dictionary = null),
+ (this.err = 0),
+ (this.flush = 0),
+ (this.init_done = !1),
+ (this.level = 0),
+ (this.memLevel = 0),
+ (this.mode = e),
+ (this.strategy = 0),
+ (this.windowBits = 0),
+ (this.write_in_progress = !1),
+ (this.pending_close = !1),
+ (this.gzip_id_bytes_read = 0);
+ }
+ (l.prototype.close = function () {
+ this.write_in_progress
+ ? (this.pending_close = !0)
+ : ((this.pending_close = !1),
+ i(this.init_done, 'close before init'),
+ i(this.mode <= t.UNZIP),
+ this.mode === t.DEFLATE || this.mode === t.GZIP || this.mode === t.DEFLATERAW
+ ? a.deflateEnd(this.strm)
+ : (this.mode !== t.INFLATE &&
+ this.mode !== t.GUNZIP &&
+ this.mode !== t.INFLATERAW &&
+ this.mode !== t.UNZIP) ||
+ s.inflateEnd(this.strm),
+ (this.mode = t.NONE),
+ (this.dictionary = null));
+ }),
+ (l.prototype.write = function (e, t, n, r, i, o, a) {
+ return this._write(!0, e, t, n, r, i, o, a);
+ }),
+ (l.prototype.writeSync = function (e, t, n, r, i, o, a) {
+ return this._write(!1, e, t, n, r, i, o, a);
+ }),
+ (l.prototype._write = function (n, o, a, s, c, u, l, p) {
+ if (
+ (i.equal(arguments.length, 8),
+ i(this.init_done, 'write before init'),
+ i(this.mode !== t.NONE, 'already finalized'),
+ i.equal(!1, this.write_in_progress, 'write already in progress'),
+ i.equal(!1, this.pending_close, 'close is pending'),
+ (this.write_in_progress = !0),
+ i.equal(!1, void 0 === o, 'must provide flush value'),
+ (this.write_in_progress = !0),
+ o !== t.Z_NO_FLUSH &&
+ o !== t.Z_PARTIAL_FLUSH &&
+ o !== t.Z_SYNC_FLUSH &&
+ o !== t.Z_FULL_FLUSH &&
+ o !== t.Z_FINISH &&
+ o !== t.Z_BLOCK)
+ )
+ throw new Error('Invalid flush value');
+ if (
+ (null == a && ((a = e.alloc(0)), (c = 0), (s = 0)),
+ (this.strm.avail_in = c),
+ (this.strm.input = a),
+ (this.strm.next_in = s),
+ (this.strm.avail_out = p),
+ (this.strm.output = u),
+ (this.strm.next_out = l),
+ (this.flush = o),
+ !n)
+ )
+ return this._process(), this._checkError() ? this._afterSync() : void 0;
+ var f = this;
+ return (
+ r.nextTick(function () {
+ f._process(), f._after();
+ }),
+ this
+ );
+ }),
+ (l.prototype._afterSync = function () {
+ var e = this.strm.avail_out,
+ t = this.strm.avail_in;
+ return (this.write_in_progress = !1), [t, e];
+ }),
+ (l.prototype._process = function () {
+ var e = null;
+ switch (this.mode) {
+ case t.DEFLATE:
+ case t.GZIP:
+ case t.DEFLATERAW:
+ this.err = a.deflate(this.strm, this.flush);
+ break;
+ case t.UNZIP:
+ switch ((this.strm.avail_in > 0 && (e = this.strm.next_in), this.gzip_id_bytes_read)) {
+ case 0:
+ if (null === e) break;
+ if (31 !== this.strm.input[e]) {
+ this.mode = t.INFLATE;
+ break;
+ }
+ if (((this.gzip_id_bytes_read = 1), e++, 1 === this.strm.avail_in)) break;
+ case 1:
+ if (null === e) break;
+ 139 === this.strm.input[e]
+ ? ((this.gzip_id_bytes_read = 2), (this.mode = t.GUNZIP))
+ : (this.mode = t.INFLATE);
+ break;
+ default:
+ throw new Error('invalid number of gzip magic number bytes read');
+ }
+ case t.INFLATE:
+ case t.GUNZIP:
+ case t.INFLATERAW:
+ for (
+ this.err = s.inflate(this.strm, this.flush),
+ this.err === t.Z_NEED_DICT &&
+ this.dictionary &&
+ ((this.err = s.inflateSetDictionary(this.strm, this.dictionary)),
+ this.err === t.Z_OK
+ ? (this.err = s.inflate(this.strm, this.flush))
+ : this.err === t.Z_DATA_ERROR && (this.err = t.Z_NEED_DICT));
+ this.strm.avail_in > 0 &&
+ this.mode === t.GUNZIP &&
+ this.err === t.Z_STREAM_END &&
+ 0 !== this.strm.next_in[0];
+
+ )
+ this.reset(), (this.err = s.inflate(this.strm, this.flush));
+ break;
+ default:
+ throw new Error('Unknown mode ' + this.mode);
+ }
+ }),
+ (l.prototype._checkError = function () {
+ switch (this.err) {
+ case t.Z_OK:
+ case t.Z_BUF_ERROR:
+ if (0 !== this.strm.avail_out && this.flush === t.Z_FINISH)
+ return this._error('unexpected end of file'), !1;
+ break;
+ case t.Z_STREAM_END:
+ break;
+ case t.Z_NEED_DICT:
+ return null == this.dictionary ? this._error('Missing dictionary') : this._error('Bad dictionary'), !1;
+ default:
+ return this._error('Zlib error'), !1;
+ }
+ return !0;
+ }),
+ (l.prototype._after = function () {
+ if (this._checkError()) {
+ var e = this.strm.avail_out,
+ t = this.strm.avail_in;
+ (this.write_in_progress = !1), this.callback(t, e), this.pending_close && this.close();
+ }
+ }),
+ (l.prototype._error = function (e) {
+ this.strm.msg && (e = this.strm.msg),
+ this.onerror(e, this.err),
+ (this.write_in_progress = !1),
+ this.pending_close && this.close();
+ }),
+ (l.prototype.init = function (e, n, r, o, a) {
+ i(
+ 4 === arguments.length || 5 === arguments.length,
+ 'init(windowBits, level, memLevel, strategy, [dictionary])'
+ ),
+ i(e >= 8 && e <= 15, 'invalid windowBits'),
+ i(n >= -1 && n <= 9, 'invalid compression level'),
+ i(r >= 1 && r <= 9, 'invalid memlevel'),
+ i(
+ o === t.Z_FILTERED ||
+ o === t.Z_HUFFMAN_ONLY ||
+ o === t.Z_RLE ||
+ o === t.Z_FIXED ||
+ o === t.Z_DEFAULT_STRATEGY,
+ 'invalid strategy'
+ ),
+ this._init(n, e, r, o, a),
+ this._setDictionary();
+ }),
+ (l.prototype.params = function () {
+ throw new Error('deflateParams Not supported');
+ }),
+ (l.prototype.reset = function () {
+ this._reset(), this._setDictionary();
+ }),
+ (l.prototype._init = function (e, n, r, i, c) {
+ switch (
+ ((this.level = e),
+ (this.windowBits = n),
+ (this.memLevel = r),
+ (this.strategy = i),
+ (this.flush = t.Z_NO_FLUSH),
+ (this.err = t.Z_OK),
+ (this.mode !== t.GZIP && this.mode !== t.GUNZIP) || (this.windowBits += 16),
+ this.mode === t.UNZIP && (this.windowBits += 32),
+ (this.mode !== t.DEFLATERAW && this.mode !== t.INFLATERAW) || (this.windowBits = -1 * this.windowBits),
+ (this.strm = new o()),
+ this.mode)
+ ) {
+ case t.DEFLATE:
+ case t.GZIP:
+ case t.DEFLATERAW:
+ this.err = a.deflateInit2(
+ this.strm,
+ this.level,
+ t.Z_DEFLATED,
+ this.windowBits,
+ this.memLevel,
+ this.strategy
+ );
+ break;
+ case t.INFLATE:
+ case t.GUNZIP:
+ case t.INFLATERAW:
+ case t.UNZIP:
+ this.err = s.inflateInit2(this.strm, this.windowBits);
+ break;
+ default:
+ throw new Error('Unknown mode ' + this.mode);
+ }
+ this.err !== t.Z_OK && this._error('Init error'),
+ (this.dictionary = c),
+ (this.write_in_progress = !1),
+ (this.init_done = !0);
+ }),
+ (l.prototype._setDictionary = function () {
+ if (null != this.dictionary) {
+ switch (((this.err = t.Z_OK), this.mode)) {
+ case t.DEFLATE:
+ case t.DEFLATERAW:
+ this.err = a.deflateSetDictionary(this.strm, this.dictionary);
+ }
+ this.err !== t.Z_OK && this._error('Failed to set dictionary');
+ }
+ }),
+ (l.prototype._reset = function () {
+ switch (((this.err = t.Z_OK), this.mode)) {
+ case t.DEFLATE:
+ case t.DEFLATERAW:
+ case t.GZIP:
+ this.err = a.deflateReset(this.strm);
+ break;
+ case t.INFLATE:
+ case t.INFLATERAW:
+ case t.GUNZIP:
+ this.err = s.inflateReset(this.strm);
+ }
+ this.err !== t.Z_OK && this._error('Failed to reset stream');
+ }),
+ (t.Zlib = l);
+ }).call(this, n(1).Buffer, n(6));
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function () {
+ (this.input = null),
+ (this.next_in = 0),
+ (this.avail_in = 0),
+ (this.total_in = 0),
+ (this.output = null),
+ (this.next_out = 0),
+ (this.avail_out = 0),
+ (this.total_out = 0),
+ (this.msg = ''),
+ (this.state = null),
+ (this.data_type = 2),
+ (this.adler = 0);
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r,
+ i = n(48),
+ o = n(289),
+ a = n(104),
+ s = n(105),
+ c = n(290);
+ function u(e, t) {
+ return (e.msg = c[t]), t;
+ }
+ function l(e) {
+ return (e << 1) - (e > 4 ? 9 : 0);
+ }
+ function p(e) {
+ for (var t = e.length; --t >= 0; ) e[t] = 0;
+ }
+ function f(e) {
+ var t = e.state,
+ n = t.pending;
+ n > e.avail_out && (n = e.avail_out),
+ 0 !== n &&
+ (i.arraySet(e.output, t.pending_buf, t.pending_out, n, e.next_out),
+ (e.next_out += n),
+ (t.pending_out += n),
+ (e.total_out += n),
+ (e.avail_out -= n),
+ (t.pending -= n),
+ 0 === t.pending && (t.pending_out = 0));
+ }
+ function h(e, t) {
+ o._tr_flush_block(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t),
+ (e.block_start = e.strstart),
+ f(e.strm);
+ }
+ function d(e, t) {
+ e.pending_buf[e.pending++] = t;
+ }
+ function m(e, t) {
+ (e.pending_buf[e.pending++] = (t >>> 8) & 255), (e.pending_buf[e.pending++] = 255 & t);
+ }
+ function y(e, t) {
+ var n,
+ r,
+ i = e.max_chain_length,
+ o = e.strstart,
+ a = e.prev_length,
+ s = e.nice_match,
+ c = e.strstart > e.w_size - 262 ? e.strstart - (e.w_size - 262) : 0,
+ u = e.window,
+ l = e.w_mask,
+ p = e.prev,
+ f = e.strstart + 258,
+ h = u[o + a - 1],
+ d = u[o + a];
+ e.prev_length >= e.good_match && (i >>= 2), s > e.lookahead && (s = e.lookahead);
+ do {
+ if (u[(n = t) + a] === d && u[n + a - 1] === h && u[n] === u[o] && u[++n] === u[o + 1]) {
+ (o += 2), n++;
+ do {} while (
+ u[++o] === u[++n] &&
+ u[++o] === u[++n] &&
+ u[++o] === u[++n] &&
+ u[++o] === u[++n] &&
+ u[++o] === u[++n] &&
+ u[++o] === u[++n] &&
+ u[++o] === u[++n] &&
+ u[++o] === u[++n] &&
+ o < f
+ );
+ if (((r = 258 - (f - o)), (o = f - 258), r > a)) {
+ if (((e.match_start = t), (a = r), r >= s)) break;
+ (h = u[o + a - 1]), (d = u[o + a]);
+ }
+ }
+ } while ((t = p[t & l]) > c && 0 != --i);
+ return a <= e.lookahead ? a : e.lookahead;
+ }
+ function g(e) {
+ var t,
+ n,
+ r,
+ o,
+ c,
+ u,
+ l,
+ p,
+ f,
+ h,
+ d = e.w_size;
+ do {
+ if (((o = e.window_size - e.lookahead - e.strstart), e.strstart >= d + (d - 262))) {
+ i.arraySet(e.window, e.window, d, d, 0),
+ (e.match_start -= d),
+ (e.strstart -= d),
+ (e.block_start -= d),
+ (t = n = e.hash_size);
+ do {
+ (r = e.head[--t]), (e.head[t] = r >= d ? r - d : 0);
+ } while (--n);
+ t = n = d;
+ do {
+ (r = e.prev[--t]), (e.prev[t] = r >= d ? r - d : 0);
+ } while (--n);
+ o += d;
+ }
+ if (0 === e.strm.avail_in) break;
+ if (
+ ((u = e.strm),
+ (l = e.window),
+ (p = e.strstart + e.lookahead),
+ (f = o),
+ (h = void 0),
+ (h = u.avail_in) > f && (h = f),
+ (n =
+ 0 === h
+ ? 0
+ : ((u.avail_in -= h),
+ i.arraySet(l, u.input, u.next_in, h, p),
+ 1 === u.state.wrap
+ ? (u.adler = a(u.adler, l, h, p))
+ : 2 === u.state.wrap && (u.adler = s(u.adler, l, h, p)),
+ (u.next_in += h),
+ (u.total_in += h),
+ h)),
+ (e.lookahead += n),
+ e.lookahead + e.insert >= 3)
+ )
+ for (
+ c = e.strstart - e.insert,
+ e.ins_h = e.window[c],
+ e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[c + 1]) & e.hash_mask;
+ e.insert &&
+ ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[c + 3 - 1]) & e.hash_mask),
+ (e.prev[c & e.w_mask] = e.head[e.ins_h]),
+ (e.head[e.ins_h] = c),
+ c++,
+ e.insert--,
+ !(e.lookahead + e.insert < 3));
+
+ );
+ } while (e.lookahead < 262 && 0 !== e.strm.avail_in);
+ }
+ function v(e, t) {
+ for (var n, r; ; ) {
+ if (e.lookahead < 262) {
+ if ((g(e), e.lookahead < 262 && 0 === t)) return 1;
+ if (0 === e.lookahead) break;
+ }
+ if (
+ ((n = 0),
+ e.lookahead >= 3 &&
+ ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + 3 - 1]) & e.hash_mask),
+ (n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
+ (e.head[e.ins_h] = e.strstart)),
+ 0 !== n && e.strstart - n <= e.w_size - 262 && (e.match_length = y(e, n)),
+ e.match_length >= 3)
+ )
+ if (
+ ((r = o._tr_tally(e, e.strstart - e.match_start, e.match_length - 3)),
+ (e.lookahead -= e.match_length),
+ e.match_length <= e.max_lazy_match && e.lookahead >= 3)
+ ) {
+ e.match_length--;
+ do {
+ e.strstart++,
+ (e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + 3 - 1]) & e.hash_mask),
+ (n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
+ (e.head[e.ins_h] = e.strstart);
+ } while (0 != --e.match_length);
+ e.strstart++;
+ } else
+ (e.strstart += e.match_length),
+ (e.match_length = 0),
+ (e.ins_h = e.window[e.strstart]),
+ (e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + 1]) & e.hash_mask);
+ else (r = o._tr_tally(e, 0, e.window[e.strstart])), e.lookahead--, e.strstart++;
+ if (r && (h(e, !1), 0 === e.strm.avail_out)) return 1;
+ }
+ return (
+ (e.insert = e.strstart < 2 ? e.strstart : 2),
+ 4 === t
+ ? (h(e, !0), 0 === e.strm.avail_out ? 3 : 4)
+ : e.last_lit && (h(e, !1), 0 === e.strm.avail_out)
+ ? 1
+ : 2
+ );
+ }
+ function b(e, t) {
+ for (var n, r, i; ; ) {
+ if (e.lookahead < 262) {
+ if ((g(e), e.lookahead < 262 && 0 === t)) return 1;
+ if (0 === e.lookahead) break;
+ }
+ if (
+ ((n = 0),
+ e.lookahead >= 3 &&
+ ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + 3 - 1]) & e.hash_mask),
+ (n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
+ (e.head[e.ins_h] = e.strstart)),
+ (e.prev_length = e.match_length),
+ (e.prev_match = e.match_start),
+ (e.match_length = 2),
+ 0 !== n &&
+ e.prev_length < e.max_lazy_match &&
+ e.strstart - n <= e.w_size - 262 &&
+ ((e.match_length = y(e, n)),
+ e.match_length <= 5 &&
+ (1 === e.strategy || (3 === e.match_length && e.strstart - e.match_start > 4096)) &&
+ (e.match_length = 2)),
+ e.prev_length >= 3 && e.match_length <= e.prev_length)
+ ) {
+ (i = e.strstart + e.lookahead - 3),
+ (r = o._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - 3)),
+ (e.lookahead -= e.prev_length - 1),
+ (e.prev_length -= 2);
+ do {
+ ++e.strstart <= i &&
+ ((e.ins_h = ((e.ins_h << e.hash_shift) ^ e.window[e.strstart + 3 - 1]) & e.hash_mask),
+ (n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h]),
+ (e.head[e.ins_h] = e.strstart));
+ } while (0 != --e.prev_length);
+ if (((e.match_available = 0), (e.match_length = 2), e.strstart++, r && (h(e, !1), 0 === e.strm.avail_out)))
+ return 1;
+ } else if (e.match_available) {
+ if (
+ ((r = o._tr_tally(e, 0, e.window[e.strstart - 1])) && h(e, !1),
+ e.strstart++,
+ e.lookahead--,
+ 0 === e.strm.avail_out)
+ )
+ return 1;
+ } else (e.match_available = 1), e.strstart++, e.lookahead--;
+ }
+ return (
+ e.match_available && ((r = o._tr_tally(e, 0, e.window[e.strstart - 1])), (e.match_available = 0)),
+ (e.insert = e.strstart < 2 ? e.strstart : 2),
+ 4 === t
+ ? (h(e, !0), 0 === e.strm.avail_out ? 3 : 4)
+ : e.last_lit && (h(e, !1), 0 === e.strm.avail_out)
+ ? 1
+ : 2
+ );
+ }
+ function x(e, t, n, r, i) {
+ (this.good_length = e), (this.max_lazy = t), (this.nice_length = n), (this.max_chain = r), (this.func = i);
+ }
+ function w() {
+ (this.strm = null),
+ (this.status = 0),
+ (this.pending_buf = null),
+ (this.pending_buf_size = 0),
+ (this.pending_out = 0),
+ (this.pending = 0),
+ (this.wrap = 0),
+ (this.gzhead = null),
+ (this.gzindex = 0),
+ (this.method = 8),
+ (this.last_flush = -1),
+ (this.w_size = 0),
+ (this.w_bits = 0),
+ (this.w_mask = 0),
+ (this.window = null),
+ (this.window_size = 0),
+ (this.prev = null),
+ (this.head = null),
+ (this.ins_h = 0),
+ (this.hash_size = 0),
+ (this.hash_bits = 0),
+ (this.hash_mask = 0),
+ (this.hash_shift = 0),
+ (this.block_start = 0),
+ (this.match_length = 0),
+ (this.prev_match = 0),
+ (this.match_available = 0),
+ (this.strstart = 0),
+ (this.match_start = 0),
+ (this.lookahead = 0),
+ (this.prev_length = 0),
+ (this.max_chain_length = 0),
+ (this.max_lazy_match = 0),
+ (this.level = 0),
+ (this.strategy = 0),
+ (this.good_match = 0),
+ (this.nice_match = 0),
+ (this.dyn_ltree = new i.Buf16(1146)),
+ (this.dyn_dtree = new i.Buf16(122)),
+ (this.bl_tree = new i.Buf16(78)),
+ p(this.dyn_ltree),
+ p(this.dyn_dtree),
+ p(this.bl_tree),
+ (this.l_desc = null),
+ (this.d_desc = null),
+ (this.bl_desc = null),
+ (this.bl_count = new i.Buf16(16)),
+ (this.heap = new i.Buf16(573)),
+ p(this.heap),
+ (this.heap_len = 0),
+ (this.heap_max = 0),
+ (this.depth = new i.Buf16(573)),
+ p(this.depth),
+ (this.l_buf = 0),
+ (this.lit_bufsize = 0),
+ (this.last_lit = 0),
+ (this.d_buf = 0),
+ (this.opt_len = 0),
+ (this.static_len = 0),
+ (this.matches = 0),
+ (this.insert = 0),
+ (this.bi_buf = 0),
+ (this.bi_valid = 0);
+ }
+ function E(e) {
+ var t;
+ return e && e.state
+ ? ((e.total_in = e.total_out = 0),
+ (e.data_type = 2),
+ ((t = e.state).pending = 0),
+ (t.pending_out = 0),
+ t.wrap < 0 && (t.wrap = -t.wrap),
+ (t.status = t.wrap ? 42 : 113),
+ (e.adler = 2 === t.wrap ? 0 : 1),
+ (t.last_flush = 0),
+ o._tr_init(t),
+ 0)
+ : u(e, -2);
+ }
+ function _(e) {
+ var t,
+ n = E(e);
+ return (
+ 0 === n &&
+ (((t = e.state).window_size = 2 * t.w_size),
+ p(t.head),
+ (t.max_lazy_match = r[t.level].max_lazy),
+ (t.good_match = r[t.level].good_length),
+ (t.nice_match = r[t.level].nice_length),
+ (t.max_chain_length = r[t.level].max_chain),
+ (t.strstart = 0),
+ (t.block_start = 0),
+ (t.lookahead = 0),
+ (t.insert = 0),
+ (t.match_length = t.prev_length = 2),
+ (t.match_available = 0),
+ (t.ins_h = 0)),
+ n
+ );
+ }
+ function j(e, t, n, r, o, a) {
+ if (!e) return -2;
+ var s = 1;
+ if (
+ (-1 === t && (t = 6),
+ r < 0 ? ((s = 0), (r = -r)) : r > 15 && ((s = 2), (r -= 16)),
+ o < 1 || o > 9 || 8 !== n || r < 8 || r > 15 || t < 0 || t > 9 || a < 0 || a > 4)
+ )
+ return u(e, -2);
+ 8 === r && (r = 9);
+ var c = new w();
+ return (
+ (e.state = c),
+ (c.strm = e),
+ (c.wrap = s),
+ (c.gzhead = null),
+ (c.w_bits = r),
+ (c.w_size = 1 << c.w_bits),
+ (c.w_mask = c.w_size - 1),
+ (c.hash_bits = o + 7),
+ (c.hash_size = 1 << c.hash_bits),
+ (c.hash_mask = c.hash_size - 1),
+ (c.hash_shift = ~~((c.hash_bits + 3 - 1) / 3)),
+ (c.window = new i.Buf8(2 * c.w_size)),
+ (c.head = new i.Buf16(c.hash_size)),
+ (c.prev = new i.Buf16(c.w_size)),
+ (c.lit_bufsize = 1 << (o + 6)),
+ (c.pending_buf_size = 4 * c.lit_bufsize),
+ (c.pending_buf = new i.Buf8(c.pending_buf_size)),
+ (c.d_buf = 1 * c.lit_bufsize),
+ (c.l_buf = 3 * c.lit_bufsize),
+ (c.level = t),
+ (c.strategy = a),
+ (c.method = n),
+ _(e)
+ );
+ }
+ (r = [
+ new x(0, 0, 0, 0, function (e, t) {
+ var n = 65535;
+ for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5); ; ) {
+ if (e.lookahead <= 1) {
+ if ((g(e), 0 === e.lookahead && 0 === t)) return 1;
+ if (0 === e.lookahead) break;
+ }
+ (e.strstart += e.lookahead), (e.lookahead = 0);
+ var r = e.block_start + n;
+ if (
+ (0 === e.strstart || e.strstart >= r) &&
+ ((e.lookahead = e.strstart - r), (e.strstart = r), h(e, !1), 0 === e.strm.avail_out)
+ )
+ return 1;
+ if (e.strstart - e.block_start >= e.w_size - 262 && (h(e, !1), 0 === e.strm.avail_out)) return 1;
+ }
+ return (
+ (e.insert = 0),
+ 4 === t
+ ? (h(e, !0), 0 === e.strm.avail_out ? 3 : 4)
+ : (e.strstart > e.block_start && (h(e, !1), e.strm.avail_out), 1)
+ );
+ }),
+ new x(4, 4, 8, 4, v),
+ new x(4, 5, 16, 8, v),
+ new x(4, 6, 32, 32, v),
+ new x(4, 4, 16, 16, b),
+ new x(8, 16, 32, 32, b),
+ new x(8, 16, 128, 128, b),
+ new x(8, 32, 128, 256, b),
+ new x(32, 128, 258, 1024, b),
+ new x(32, 258, 258, 4096, b),
+ ]),
+ (t.deflateInit = function (e, t) {
+ return j(e, t, 8, 15, 8, 0);
+ }),
+ (t.deflateInit2 = j),
+ (t.deflateReset = _),
+ (t.deflateResetKeep = E),
+ (t.deflateSetHeader = function (e, t) {
+ return e && e.state ? (2 !== e.state.wrap ? -2 : ((e.state.gzhead = t), 0)) : -2;
+ }),
+ (t.deflate = function (e, t) {
+ var n, i, a, c;
+ if (!e || !e.state || t > 5 || t < 0) return e ? u(e, -2) : -2;
+ if (((i = e.state), !e.output || (!e.input && 0 !== e.avail_in) || (666 === i.status && 4 !== t)))
+ return u(e, 0 === e.avail_out ? -5 : -2);
+ if (((i.strm = e), (n = i.last_flush), (i.last_flush = t), 42 === i.status))
+ if (2 === i.wrap)
+ (e.adler = 0),
+ d(i, 31),
+ d(i, 139),
+ d(i, 8),
+ i.gzhead
+ ? (d(
+ i,
+ (i.gzhead.text ? 1 : 0) +
+ (i.gzhead.hcrc ? 2 : 0) +
+ (i.gzhead.extra ? 4 : 0) +
+ (i.gzhead.name ? 8 : 0) +
+ (i.gzhead.comment ? 16 : 0)
+ ),
+ d(i, 255 & i.gzhead.time),
+ d(i, (i.gzhead.time >> 8) & 255),
+ d(i, (i.gzhead.time >> 16) & 255),
+ d(i, (i.gzhead.time >> 24) & 255),
+ d(i, 9 === i.level ? 2 : i.strategy >= 2 || i.level < 2 ? 4 : 0),
+ d(i, 255 & i.gzhead.os),
+ i.gzhead.extra &&
+ i.gzhead.extra.length &&
+ (d(i, 255 & i.gzhead.extra.length), d(i, (i.gzhead.extra.length >> 8) & 255)),
+ i.gzhead.hcrc && (e.adler = s(e.adler, i.pending_buf, i.pending, 0)),
+ (i.gzindex = 0),
+ (i.status = 69))
+ : (d(i, 0),
+ d(i, 0),
+ d(i, 0),
+ d(i, 0),
+ d(i, 0),
+ d(i, 9 === i.level ? 2 : i.strategy >= 2 || i.level < 2 ? 4 : 0),
+ d(i, 3),
+ (i.status = 113));
+ else {
+ var y = (8 + ((i.w_bits - 8) << 4)) << 8;
+ (y |= (i.strategy >= 2 || i.level < 2 ? 0 : i.level < 6 ? 1 : 6 === i.level ? 2 : 3) << 6),
+ 0 !== i.strstart && (y |= 32),
+ (y += 31 - (y % 31)),
+ (i.status = 113),
+ m(i, y),
+ 0 !== i.strstart && (m(i, e.adler >>> 16), m(i, 65535 & e.adler)),
+ (e.adler = 1);
+ }
+ if (69 === i.status)
+ if (i.gzhead.extra) {
+ for (
+ a = i.pending;
+ i.gzindex < (65535 & i.gzhead.extra.length) &&
+ (i.pending !== i.pending_buf_size ||
+ (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
+ f(e),
+ (a = i.pending),
+ i.pending !== i.pending_buf_size));
+
+ )
+ d(i, 255 & i.gzhead.extra[i.gzindex]), i.gzindex++;
+ i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
+ i.gzindex === i.gzhead.extra.length && ((i.gzindex = 0), (i.status = 73));
+ } else i.status = 73;
+ if (73 === i.status)
+ if (i.gzhead.name) {
+ a = i.pending;
+ do {
+ if (
+ i.pending === i.pending_buf_size &&
+ (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
+ f(e),
+ (a = i.pending),
+ i.pending === i.pending_buf_size)
+ ) {
+ c = 1;
+ break;
+ }
+ (c = i.gzindex < i.gzhead.name.length ? 255 & i.gzhead.name.charCodeAt(i.gzindex++) : 0), d(i, c);
+ } while (0 !== c);
+ i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
+ 0 === c && ((i.gzindex = 0), (i.status = 91));
+ } else i.status = 91;
+ if (91 === i.status)
+ if (i.gzhead.comment) {
+ a = i.pending;
+ do {
+ if (
+ i.pending === i.pending_buf_size &&
+ (i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
+ f(e),
+ (a = i.pending),
+ i.pending === i.pending_buf_size)
+ ) {
+ c = 1;
+ break;
+ }
+ (c = i.gzindex < i.gzhead.comment.length ? 255 & i.gzhead.comment.charCodeAt(i.gzindex++) : 0), d(i, c);
+ } while (0 !== c);
+ i.gzhead.hcrc && i.pending > a && (e.adler = s(e.adler, i.pending_buf, i.pending - a, a)),
+ 0 === c && (i.status = 103);
+ } else i.status = 103;
+ if (
+ (103 === i.status &&
+ (i.gzhead.hcrc
+ ? (i.pending + 2 > i.pending_buf_size && f(e),
+ i.pending + 2 <= i.pending_buf_size &&
+ (d(i, 255 & e.adler), d(i, (e.adler >> 8) & 255), (e.adler = 0), (i.status = 113)))
+ : (i.status = 113)),
+ 0 !== i.pending)
+ ) {
+ if ((f(e), 0 === e.avail_out)) return (i.last_flush = -1), 0;
+ } else if (0 === e.avail_in && l(t) <= l(n) && 4 !== t) return u(e, -5);
+ if (666 === i.status && 0 !== e.avail_in) return u(e, -5);
+ if (0 !== e.avail_in || 0 !== i.lookahead || (0 !== t && 666 !== i.status)) {
+ var v =
+ 2 === i.strategy
+ ? (function (e, t) {
+ for (var n; ; ) {
+ if (0 === e.lookahead && (g(e), 0 === e.lookahead)) {
+ if (0 === t) return 1;
+ break;
+ }
+ if (
+ ((e.match_length = 0),
+ (n = o._tr_tally(e, 0, e.window[e.strstart])),
+ e.lookahead--,
+ e.strstart++,
+ n && (h(e, !1), 0 === e.strm.avail_out))
+ )
+ return 1;
+ }
+ return (
+ (e.insert = 0),
+ 4 === t
+ ? (h(e, !0), 0 === e.strm.avail_out ? 3 : 4)
+ : e.last_lit && (h(e, !1), 0 === e.strm.avail_out)
+ ? 1
+ : 2
+ );
+ })(i, t)
+ : 3 === i.strategy
+ ? (function (e, t) {
+ for (var n, r, i, a, s = e.window; ; ) {
+ if (e.lookahead <= 258) {
+ if ((g(e), e.lookahead <= 258 && 0 === t)) return 1;
+ if (0 === e.lookahead) break;
+ }
+ if (
+ ((e.match_length = 0),
+ e.lookahead >= 3 &&
+ e.strstart > 0 &&
+ (r = s[(i = e.strstart - 1)]) === s[++i] &&
+ r === s[++i] &&
+ r === s[++i])
+ ) {
+ a = e.strstart + 258;
+ do {} while (
+ r === s[++i] &&
+ r === s[++i] &&
+ r === s[++i] &&
+ r === s[++i] &&
+ r === s[++i] &&
+ r === s[++i] &&
+ r === s[++i] &&
+ r === s[++i] &&
+ i < a
+ );
+ (e.match_length = 258 - (a - i)),
+ e.match_length > e.lookahead && (e.match_length = e.lookahead);
+ }
+ if (
+ (e.match_length >= 3
+ ? ((n = o._tr_tally(e, 1, e.match_length - 3)),
+ (e.lookahead -= e.match_length),
+ (e.strstart += e.match_length),
+ (e.match_length = 0))
+ : ((n = o._tr_tally(e, 0, e.window[e.strstart])), e.lookahead--, e.strstart++),
+ n && (h(e, !1), 0 === e.strm.avail_out))
+ )
+ return 1;
+ }
+ return (
+ (e.insert = 0),
+ 4 === t
+ ? (h(e, !0), 0 === e.strm.avail_out ? 3 : 4)
+ : e.last_lit && (h(e, !1), 0 === e.strm.avail_out)
+ ? 1
+ : 2
+ );
+ })(i, t)
+ : r[i.level].func(i, t);
+ if (((3 !== v && 4 !== v) || (i.status = 666), 1 === v || 3 === v))
+ return 0 === e.avail_out && (i.last_flush = -1), 0;
+ if (
+ 2 === v &&
+ (1 === t
+ ? o._tr_align(i)
+ : 5 !== t &&
+ (o._tr_stored_block(i, 0, 0, !1),
+ 3 === t && (p(i.head), 0 === i.lookahead && ((i.strstart = 0), (i.block_start = 0), (i.insert = 0)))),
+ f(e),
+ 0 === e.avail_out)
+ )
+ return (i.last_flush = -1), 0;
+ }
+ return 4 !== t
+ ? 0
+ : i.wrap <= 0
+ ? 1
+ : (2 === i.wrap
+ ? (d(i, 255 & e.adler),
+ d(i, (e.adler >> 8) & 255),
+ d(i, (e.adler >> 16) & 255),
+ d(i, (e.adler >> 24) & 255),
+ d(i, 255 & e.total_in),
+ d(i, (e.total_in >> 8) & 255),
+ d(i, (e.total_in >> 16) & 255),
+ d(i, (e.total_in >> 24) & 255))
+ : (m(i, e.adler >>> 16), m(i, 65535 & e.adler)),
+ f(e),
+ i.wrap > 0 && (i.wrap = -i.wrap),
+ 0 !== i.pending ? 0 : 1);
+ }),
+ (t.deflateEnd = function (e) {
+ var t;
+ return e && e.state
+ ? 42 !== (t = e.state.status) && 69 !== t && 73 !== t && 91 !== t && 103 !== t && 113 !== t && 666 !== t
+ ? u(e, -2)
+ : ((e.state = null), 113 === t ? u(e, -3) : 0)
+ : -2;
+ }),
+ (t.deflateSetDictionary = function (e, t) {
+ var n,
+ r,
+ o,
+ s,
+ c,
+ u,
+ l,
+ f,
+ h = t.length;
+ if (!e || !e.state) return -2;
+ if (2 === (s = (n = e.state).wrap) || (1 === s && 42 !== n.status) || n.lookahead) return -2;
+ for (
+ 1 === s && (e.adler = a(e.adler, t, h, 0)),
+ n.wrap = 0,
+ h >= n.w_size &&
+ (0 === s && (p(n.head), (n.strstart = 0), (n.block_start = 0), (n.insert = 0)),
+ (f = new i.Buf8(n.w_size)),
+ i.arraySet(f, t, h - n.w_size, n.w_size, 0),
+ (t = f),
+ (h = n.w_size)),
+ c = e.avail_in,
+ u = e.next_in,
+ l = e.input,
+ e.avail_in = h,
+ e.next_in = 0,
+ e.input = t,
+ g(n);
+ n.lookahead >= 3;
+
+ ) {
+ (r = n.strstart), (o = n.lookahead - 2);
+ do {
+ (n.ins_h = ((n.ins_h << n.hash_shift) ^ n.window[r + 3 - 1]) & n.hash_mask),
+ (n.prev[r & n.w_mask] = n.head[n.ins_h]),
+ (n.head[n.ins_h] = r),
+ r++;
+ } while (--o);
+ (n.strstart = r), (n.lookahead = 2), g(n);
+ }
+ return (
+ (n.strstart += n.lookahead),
+ (n.block_start = n.strstart),
+ (n.insert = n.lookahead),
+ (n.lookahead = 0),
+ (n.match_length = n.prev_length = 2),
+ (n.match_available = 0),
+ (e.next_in = u),
+ (e.input = l),
+ (e.avail_in = c),
+ (n.wrap = s),
+ 0
+ );
+ }),
+ (t.deflateInfo = 'pako deflate (from Nodeca project)');
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(48);
+ function i(e) {
+ for (var t = e.length; --t >= 0; ) e[t] = 0;
+ }
+ var o = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0],
+ a = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
+ s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7],
+ c = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
+ u = new Array(576);
+ i(u);
+ var l = new Array(60);
+ i(l);
+ var p = new Array(512);
+ i(p);
+ var f = new Array(256);
+ i(f);
+ var h = new Array(29);
+ i(h);
+ var d,
+ m,
+ y,
+ g = new Array(30);
+ function v(e, t, n, r, i) {
+ (this.static_tree = e),
+ (this.extra_bits = t),
+ (this.extra_base = n),
+ (this.elems = r),
+ (this.max_length = i),
+ (this.has_stree = e && e.length);
+ }
+ function b(e, t) {
+ (this.dyn_tree = e), (this.max_code = 0), (this.stat_desc = t);
+ }
+ function x(e) {
+ return e < 256 ? p[e] : p[256 + (e >>> 7)];
+ }
+ function w(e, t) {
+ (e.pending_buf[e.pending++] = 255 & t), (e.pending_buf[e.pending++] = (t >>> 8) & 255);
+ }
+ function E(e, t, n) {
+ e.bi_valid > 16 - n
+ ? ((e.bi_buf |= (t << e.bi_valid) & 65535),
+ w(e, e.bi_buf),
+ (e.bi_buf = t >> (16 - e.bi_valid)),
+ (e.bi_valid += n - 16))
+ : ((e.bi_buf |= (t << e.bi_valid) & 65535), (e.bi_valid += n));
+ }
+ function _(e, t, n) {
+ E(e, n[2 * t], n[2 * t + 1]);
+ }
+ function j(e, t) {
+ var n = 0;
+ do {
+ (n |= 1 & e), (e >>>= 1), (n <<= 1);
+ } while (--t > 0);
+ return n >>> 1;
+ }
+ function S(e, t, n) {
+ var r,
+ i,
+ o = new Array(16),
+ a = 0;
+ for (r = 1; r <= 15; r++) o[r] = a = (a + n[r - 1]) << 1;
+ for (i = 0; i <= t; i++) {
+ var s = e[2 * i + 1];
+ 0 !== s && (e[2 * i] = j(o[s]++, s));
+ }
+ }
+ function D(e) {
+ var t;
+ for (t = 0; t < 286; t++) e.dyn_ltree[2 * t] = 0;
+ for (t = 0; t < 30; t++) e.dyn_dtree[2 * t] = 0;
+ for (t = 0; t < 19; t++) e.bl_tree[2 * t] = 0;
+ (e.dyn_ltree[512] = 1), (e.opt_len = e.static_len = 0), (e.last_lit = e.matches = 0);
+ }
+ function A(e) {
+ e.bi_valid > 8 ? w(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf),
+ (e.bi_buf = 0),
+ (e.bi_valid = 0);
+ }
+ function k(e, t, n, r) {
+ var i = 2 * t,
+ o = 2 * n;
+ return e[i] < e[o] || (e[i] === e[o] && r[t] <= r[n]);
+ }
+ function C(e, t, n) {
+ for (
+ var r = e.heap[n], i = n << 1;
+ i <= e.heap_len &&
+ (i < e.heap_len && k(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !k(t, r, e.heap[i], e.depth));
+
+ )
+ (e.heap[n] = e.heap[i]), (n = i), (i <<= 1);
+ e.heap[n] = r;
+ }
+ function P(e, t, n) {
+ var r,
+ i,
+ s,
+ c,
+ u = 0;
+ if (0 !== e.last_lit)
+ do {
+ (r = (e.pending_buf[e.d_buf + 2 * u] << 8) | e.pending_buf[e.d_buf + 2 * u + 1]),
+ (i = e.pending_buf[e.l_buf + u]),
+ u++,
+ 0 === r
+ ? _(e, i, t)
+ : (_(e, (s = f[i]) + 256 + 1, t),
+ 0 !== (c = o[s]) && E(e, (i -= h[s]), c),
+ _(e, (s = x(--r)), n),
+ 0 !== (c = a[s]) && E(e, (r -= g[s]), c));
+ } while (u < e.last_lit);
+ _(e, 256, t);
+ }
+ function T(e, t) {
+ var n,
+ r,
+ i,
+ o = t.dyn_tree,
+ a = t.stat_desc.static_tree,
+ s = t.stat_desc.has_stree,
+ c = t.stat_desc.elems,
+ u = -1;
+ for (e.heap_len = 0, e.heap_max = 573, n = 0; n < c; n++)
+ 0 !== o[2 * n] ? ((e.heap[++e.heap_len] = u = n), (e.depth[n] = 0)) : (o[2 * n + 1] = 0);
+ for (; e.heap_len < 2; )
+ (o[2 * (i = e.heap[++e.heap_len] = u < 2 ? ++u : 0)] = 1),
+ (e.depth[i] = 0),
+ e.opt_len--,
+ s && (e.static_len -= a[2 * i + 1]);
+ for (t.max_code = u, n = e.heap_len >> 1; n >= 1; n--) C(e, o, n);
+ i = c;
+ do {
+ (n = e.heap[1]),
+ (e.heap[1] = e.heap[e.heap_len--]),
+ C(e, o, 1),
+ (r = e.heap[1]),
+ (e.heap[--e.heap_max] = n),
+ (e.heap[--e.heap_max] = r),
+ (o[2 * i] = o[2 * n] + o[2 * r]),
+ (e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1),
+ (o[2 * n + 1] = o[2 * r + 1] = i),
+ (e.heap[1] = i++),
+ C(e, o, 1);
+ } while (e.heap_len >= 2);
+ (e.heap[--e.heap_max] = e.heap[1]),
+ (function (e, t) {
+ var n,
+ r,
+ i,
+ o,
+ a,
+ s,
+ c = t.dyn_tree,
+ u = t.max_code,
+ l = t.stat_desc.static_tree,
+ p = t.stat_desc.has_stree,
+ f = t.stat_desc.extra_bits,
+ h = t.stat_desc.extra_base,
+ d = t.stat_desc.max_length,
+ m = 0;
+ for (o = 0; o <= 15; o++) e.bl_count[o] = 0;
+ for (c[2 * e.heap[e.heap_max] + 1] = 0, n = e.heap_max + 1; n < 573; n++)
+ (o = c[2 * c[2 * (r = e.heap[n]) + 1] + 1] + 1) > d && ((o = d), m++),
+ (c[2 * r + 1] = o),
+ r > u ||
+ (e.bl_count[o]++,
+ (a = 0),
+ r >= h && (a = f[r - h]),
+ (s = c[2 * r]),
+ (e.opt_len += s * (o + a)),
+ p && (e.static_len += s * (l[2 * r + 1] + a)));
+ if (0 !== m) {
+ do {
+ for (o = d - 1; 0 === e.bl_count[o]; ) o--;
+ e.bl_count[o]--, (e.bl_count[o + 1] += 2), e.bl_count[d]--, (m -= 2);
+ } while (m > 0);
+ for (o = d; 0 !== o; o--)
+ for (r = e.bl_count[o]; 0 !== r; )
+ (i = e.heap[--n]) > u ||
+ (c[2 * i + 1] !== o && ((e.opt_len += (o - c[2 * i + 1]) * c[2 * i]), (c[2 * i + 1] = o)), r--);
+ }
+ })(e, t),
+ S(o, u, e.bl_count);
+ }
+ function $(e, t, n) {
+ var r,
+ i,
+ o = -1,
+ a = t[1],
+ s = 0,
+ c = 7,
+ u = 4;
+ for (0 === a && ((c = 138), (u = 3)), t[2 * (n + 1) + 1] = 65535, r = 0; r <= n; r++)
+ (i = a),
+ (a = t[2 * (r + 1) + 1]),
+ (++s < c && i === a) ||
+ (s < u
+ ? (e.bl_tree[2 * i] += s)
+ : 0 !== i
+ ? (i !== o && e.bl_tree[2 * i]++, e.bl_tree[32]++)
+ : s <= 10
+ ? e.bl_tree[34]++
+ : e.bl_tree[36]++,
+ (s = 0),
+ (o = i),
+ 0 === a ? ((c = 138), (u = 3)) : i === a ? ((c = 6), (u = 3)) : ((c = 7), (u = 4)));
+ }
+ function O(e, t, n) {
+ var r,
+ i,
+ o = -1,
+ a = t[1],
+ s = 0,
+ c = 7,
+ u = 4;
+ for (0 === a && ((c = 138), (u = 3)), r = 0; r <= n; r++)
+ if (((i = a), (a = t[2 * (r + 1) + 1]), !(++s < c && i === a))) {
+ if (s < u)
+ do {
+ _(e, i, e.bl_tree);
+ } while (0 != --s);
+ else
+ 0 !== i
+ ? (i !== o && (_(e, i, e.bl_tree), s--), _(e, 16, e.bl_tree), E(e, s - 3, 2))
+ : s <= 10
+ ? (_(e, 17, e.bl_tree), E(e, s - 3, 3))
+ : (_(e, 18, e.bl_tree), E(e, s - 11, 7));
+ (s = 0), (o = i), 0 === a ? ((c = 138), (u = 3)) : i === a ? ((c = 6), (u = 3)) : ((c = 7), (u = 4));
+ }
+ }
+ i(g);
+ var F = !1;
+ function I(e, t, n, i) {
+ E(e, 0 + (i ? 1 : 0), 3),
+ (function (e, t, n, i) {
+ A(e), i && (w(e, n), w(e, ~n)), r.arraySet(e.pending_buf, e.window, t, n, e.pending), (e.pending += n);
+ })(e, t, n, !0);
+ }
+ (t._tr_init = function (e) {
+ F ||
+ (!(function () {
+ var e,
+ t,
+ n,
+ r,
+ i,
+ c = new Array(16);
+ for (n = 0, r = 0; r < 28; r++) for (h[r] = n, e = 0; e < 1 << o[r]; e++) f[n++] = r;
+ for (f[n - 1] = r, i = 0, r = 0; r < 16; r++) for (g[r] = i, e = 0; e < 1 << a[r]; e++) p[i++] = r;
+ for (i >>= 7; r < 30; r++) for (g[r] = i << 7, e = 0; e < 1 << (a[r] - 7); e++) p[256 + i++] = r;
+ for (t = 0; t <= 15; t++) c[t] = 0;
+ for (e = 0; e <= 143; ) (u[2 * e + 1] = 8), e++, c[8]++;
+ for (; e <= 255; ) (u[2 * e + 1] = 9), e++, c[9]++;
+ for (; e <= 279; ) (u[2 * e + 1] = 7), e++, c[7]++;
+ for (; e <= 287; ) (u[2 * e + 1] = 8), e++, c[8]++;
+ for (S(u, 287, c), e = 0; e < 30; e++) (l[2 * e + 1] = 5), (l[2 * e] = j(e, 5));
+ (d = new v(u, o, 257, 286, 15)), (m = new v(l, a, 0, 30, 15)), (y = new v(new Array(0), s, 0, 19, 7));
+ })(),
+ (F = !0)),
+ (e.l_desc = new b(e.dyn_ltree, d)),
+ (e.d_desc = new b(e.dyn_dtree, m)),
+ (e.bl_desc = new b(e.bl_tree, y)),
+ (e.bi_buf = 0),
+ (e.bi_valid = 0),
+ D(e);
+ }),
+ (t._tr_stored_block = I),
+ (t._tr_flush_block = function (e, t, n, r) {
+ var i,
+ o,
+ a = 0;
+ e.level > 0
+ ? (2 === e.strm.data_type &&
+ (e.strm.data_type = (function (e) {
+ var t,
+ n = 4093624447;
+ for (t = 0; t <= 31; t++, n >>>= 1) if (1 & n && 0 !== e.dyn_ltree[2 * t]) return 0;
+ if (0 !== e.dyn_ltree[18] || 0 !== e.dyn_ltree[20] || 0 !== e.dyn_ltree[26]) return 1;
+ for (t = 32; t < 256; t++) if (0 !== e.dyn_ltree[2 * t]) return 1;
+ return 0;
+ })(e)),
+ T(e, e.l_desc),
+ T(e, e.d_desc),
+ (a = (function (e) {
+ var t;
+ for (
+ $(e, e.dyn_ltree, e.l_desc.max_code), $(e, e.dyn_dtree, e.d_desc.max_code), T(e, e.bl_desc), t = 18;
+ t >= 3 && 0 === e.bl_tree[2 * c[t] + 1];
+ t--
+ );
+ return (e.opt_len += 3 * (t + 1) + 5 + 5 + 4), t;
+ })(e)),
+ (i = (e.opt_len + 3 + 7) >>> 3),
+ (o = (e.static_len + 3 + 7) >>> 3) <= i && (i = o))
+ : (i = o = n + 5),
+ n + 4 <= i && -1 !== t
+ ? I(e, t, n, r)
+ : 4 === e.strategy || o === i
+ ? (E(e, 2 + (r ? 1 : 0), 3), P(e, u, l))
+ : (E(e, 4 + (r ? 1 : 0), 3),
+ (function (e, t, n, r) {
+ var i;
+ for (E(e, t - 257, 5), E(e, n - 1, 5), E(e, r - 4, 4), i = 0; i < r; i++)
+ E(e, e.bl_tree[2 * c[i] + 1], 3);
+ O(e, e.dyn_ltree, t - 1), O(e, e.dyn_dtree, n - 1);
+ })(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, a + 1),
+ P(e, e.dyn_ltree, e.dyn_dtree)),
+ D(e),
+ r && A(e);
+ }),
+ (t._tr_tally = function (e, t, n) {
+ return (
+ (e.pending_buf[e.d_buf + 2 * e.last_lit] = (t >>> 8) & 255),
+ (e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t),
+ (e.pending_buf[e.l_buf + e.last_lit] = 255 & n),
+ e.last_lit++,
+ 0 === t
+ ? e.dyn_ltree[2 * n]++
+ : (e.matches++, t--, e.dyn_ltree[2 * (f[n] + 256 + 1)]++, e.dyn_dtree[2 * x(t)]++),
+ e.last_lit === e.lit_bufsize - 1
+ );
+ }),
+ (t._tr_align = function (e) {
+ E(e, 2, 3),
+ _(e, 256, u),
+ (function (e) {
+ 16 === e.bi_valid
+ ? (w(e, e.bi_buf), (e.bi_buf = 0), (e.bi_valid = 0))
+ : e.bi_valid >= 8 &&
+ ((e.pending_buf[e.pending++] = 255 & e.bi_buf), (e.bi_buf >>= 8), (e.bi_valid -= 8));
+ })(e);
+ });
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = {
+ 2: 'need dictionary',
+ 1: 'stream end',
+ 0: '',
+ '-1': 'file error',
+ '-2': 'stream error',
+ '-3': 'data error',
+ '-4': 'insufficient memory',
+ '-5': 'buffer error',
+ '-6': 'incompatible version',
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(48),
+ i = n(104),
+ o = n(105),
+ a = n(292),
+ s = n(293);
+ function c(e) {
+ return ((e >>> 24) & 255) + ((e >>> 8) & 65280) + ((65280 & e) << 8) + ((255 & e) << 24);
+ }
+ function u() {
+ (this.mode = 0),
+ (this.last = !1),
+ (this.wrap = 0),
+ (this.havedict = !1),
+ (this.flags = 0),
+ (this.dmax = 0),
+ (this.check = 0),
+ (this.total = 0),
+ (this.head = null),
+ (this.wbits = 0),
+ (this.wsize = 0),
+ (this.whave = 0),
+ (this.wnext = 0),
+ (this.window = null),
+ (this.hold = 0),
+ (this.bits = 0),
+ (this.length = 0),
+ (this.offset = 0),
+ (this.extra = 0),
+ (this.lencode = null),
+ (this.distcode = null),
+ (this.lenbits = 0),
+ (this.distbits = 0),
+ (this.ncode = 0),
+ (this.nlen = 0),
+ (this.ndist = 0),
+ (this.have = 0),
+ (this.next = null),
+ (this.lens = new r.Buf16(320)),
+ (this.work = new r.Buf16(288)),
+ (this.lendyn = null),
+ (this.distdyn = null),
+ (this.sane = 0),
+ (this.back = 0),
+ (this.was = 0);
+ }
+ function l(e) {
+ var t;
+ return e && e.state
+ ? ((t = e.state),
+ (e.total_in = e.total_out = t.total = 0),
+ (e.msg = ''),
+ t.wrap && (e.adler = 1 & t.wrap),
+ (t.mode = 1),
+ (t.last = 0),
+ (t.havedict = 0),
+ (t.dmax = 32768),
+ (t.head = null),
+ (t.hold = 0),
+ (t.bits = 0),
+ (t.lencode = t.lendyn = new r.Buf32(852)),
+ (t.distcode = t.distdyn = new r.Buf32(592)),
+ (t.sane = 1),
+ (t.back = -1),
+ 0)
+ : -2;
+ }
+ function p(e) {
+ var t;
+ return e && e.state ? (((t = e.state).wsize = 0), (t.whave = 0), (t.wnext = 0), l(e)) : -2;
+ }
+ function f(e, t) {
+ var n, r;
+ return e && e.state
+ ? ((r = e.state),
+ t < 0 ? ((n = 0), (t = -t)) : ((n = 1 + (t >> 4)), t < 48 && (t &= 15)),
+ t && (t < 8 || t > 15)
+ ? -2
+ : (null !== r.window && r.wbits !== t && (r.window = null), (r.wrap = n), (r.wbits = t), p(e)))
+ : -2;
+ }
+ function h(e, t) {
+ var n, r;
+ return e ? ((r = new u()), (e.state = r), (r.window = null), 0 !== (n = f(e, t)) && (e.state = null), n) : -2;
+ }
+ var d,
+ m,
+ y = !0;
+ function g(e) {
+ if (y) {
+ var t;
+ for (d = new r.Buf32(512), m = new r.Buf32(32), t = 0; t < 144; ) e.lens[t++] = 8;
+ for (; t < 256; ) e.lens[t++] = 9;
+ for (; t < 280; ) e.lens[t++] = 7;
+ for (; t < 288; ) e.lens[t++] = 8;
+ for (s(1, e.lens, 0, 288, d, 0, e.work, { bits: 9 }), t = 0; t < 32; ) e.lens[t++] = 5;
+ s(2, e.lens, 0, 32, m, 0, e.work, { bits: 5 }), (y = !1);
+ }
+ (e.lencode = d), (e.lenbits = 9), (e.distcode = m), (e.distbits = 5);
+ }
+ function v(e, t, n, i) {
+ var o,
+ a = e.state;
+ return (
+ null === a.window &&
+ ((a.wsize = 1 << a.wbits), (a.wnext = 0), (a.whave = 0), (a.window = new r.Buf8(a.wsize))),
+ i >= a.wsize
+ ? (r.arraySet(a.window, t, n - a.wsize, a.wsize, 0), (a.wnext = 0), (a.whave = a.wsize))
+ : ((o = a.wsize - a.wnext) > i && (o = i),
+ r.arraySet(a.window, t, n - i, o, a.wnext),
+ (i -= o)
+ ? (r.arraySet(a.window, t, n - i, i, 0), (a.wnext = i), (a.whave = a.wsize))
+ : ((a.wnext += o), a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += o))),
+ 0
+ );
+ }
+ (t.inflateReset = p),
+ (t.inflateReset2 = f),
+ (t.inflateResetKeep = l),
+ (t.inflateInit = function (e) {
+ return h(e, 15);
+ }),
+ (t.inflateInit2 = h),
+ (t.inflate = function (e, t) {
+ var n,
+ u,
+ l,
+ p,
+ f,
+ h,
+ d,
+ m,
+ y,
+ b,
+ x,
+ w,
+ E,
+ _,
+ j,
+ S,
+ D,
+ A,
+ k,
+ C,
+ P,
+ T,
+ $,
+ O,
+ F = 0,
+ I = new r.Buf8(4),
+ N = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
+ if (!e || !e.state || !e.output || (!e.input && 0 !== e.avail_in)) return -2;
+ 12 === (n = e.state).mode && (n.mode = 13),
+ (f = e.next_out),
+ (l = e.output),
+ (d = e.avail_out),
+ (p = e.next_in),
+ (u = e.input),
+ (h = e.avail_in),
+ (m = n.hold),
+ (y = n.bits),
+ (b = h),
+ (x = d),
+ (T = 0);
+ e: for (;;)
+ switch (n.mode) {
+ case 1:
+ if (0 === n.wrap) {
+ n.mode = 13;
+ break;
+ }
+ for (; y < 16; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (2 & n.wrap && 35615 === m) {
+ (n.check = 0),
+ (I[0] = 255 & m),
+ (I[1] = (m >>> 8) & 255),
+ (n.check = o(n.check, I, 2, 0)),
+ (m = 0),
+ (y = 0),
+ (n.mode = 2);
+ break;
+ }
+ if (
+ ((n.flags = 0), n.head && (n.head.done = !1), !(1 & n.wrap) || (((255 & m) << 8) + (m >> 8)) % 31)
+ ) {
+ (e.msg = 'incorrect header check'), (n.mode = 30);
+ break;
+ }
+ if (8 != (15 & m)) {
+ (e.msg = 'unknown compression method'), (n.mode = 30);
+ break;
+ }
+ if (((y -= 4), (P = 8 + (15 & (m >>>= 4))), 0 === n.wbits)) n.wbits = P;
+ else if (P > n.wbits) {
+ (e.msg = 'invalid window size'), (n.mode = 30);
+ break;
+ }
+ (n.dmax = 1 << P), (e.adler = n.check = 1), (n.mode = 512 & m ? 10 : 12), (m = 0), (y = 0);
+ break;
+ case 2:
+ for (; y < 16; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (((n.flags = m), 8 != (255 & n.flags))) {
+ (e.msg = 'unknown compression method'), (n.mode = 30);
+ break;
+ }
+ if (57344 & n.flags) {
+ (e.msg = 'unknown header flags set'), (n.mode = 30);
+ break;
+ }
+ n.head && (n.head.text = (m >> 8) & 1),
+ 512 & n.flags && ((I[0] = 255 & m), (I[1] = (m >>> 8) & 255), (n.check = o(n.check, I, 2, 0))),
+ (m = 0),
+ (y = 0),
+ (n.mode = 3);
+ case 3:
+ for (; y < 32; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ n.head && (n.head.time = m),
+ 512 & n.flags &&
+ ((I[0] = 255 & m),
+ (I[1] = (m >>> 8) & 255),
+ (I[2] = (m >>> 16) & 255),
+ (I[3] = (m >>> 24) & 255),
+ (n.check = o(n.check, I, 4, 0))),
+ (m = 0),
+ (y = 0),
+ (n.mode = 4);
+ case 4:
+ for (; y < 16; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ n.head && ((n.head.xflags = 255 & m), (n.head.os = m >> 8)),
+ 512 & n.flags && ((I[0] = 255 & m), (I[1] = (m >>> 8) & 255), (n.check = o(n.check, I, 2, 0))),
+ (m = 0),
+ (y = 0),
+ (n.mode = 5);
+ case 5:
+ if (1024 & n.flags) {
+ for (; y < 16; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (n.length = m),
+ n.head && (n.head.extra_len = m),
+ 512 & n.flags && ((I[0] = 255 & m), (I[1] = (m >>> 8) & 255), (n.check = o(n.check, I, 2, 0))),
+ (m = 0),
+ (y = 0);
+ } else n.head && (n.head.extra = null);
+ n.mode = 6;
+ case 6:
+ if (
+ 1024 & n.flags &&
+ ((w = n.length) > h && (w = h),
+ w &&
+ (n.head &&
+ ((P = n.head.extra_len - n.length),
+ n.head.extra || (n.head.extra = new Array(n.head.extra_len)),
+ r.arraySet(n.head.extra, u, p, w, P)),
+ 512 & n.flags && (n.check = o(n.check, u, w, p)),
+ (h -= w),
+ (p += w),
+ (n.length -= w)),
+ n.length)
+ )
+ break e;
+ (n.length = 0), (n.mode = 7);
+ case 7:
+ if (2048 & n.flags) {
+ if (0 === h) break e;
+ w = 0;
+ do {
+ (P = u[p + w++]), n.head && P && n.length < 65536 && (n.head.name += String.fromCharCode(P));
+ } while (P && w < h);
+ if ((512 & n.flags && (n.check = o(n.check, u, w, p)), (h -= w), (p += w), P)) break e;
+ } else n.head && (n.head.name = null);
+ (n.length = 0), (n.mode = 8);
+ case 8:
+ if (4096 & n.flags) {
+ if (0 === h) break e;
+ w = 0;
+ do {
+ (P = u[p + w++]), n.head && P && n.length < 65536 && (n.head.comment += String.fromCharCode(P));
+ } while (P && w < h);
+ if ((512 & n.flags && (n.check = o(n.check, u, w, p)), (h -= w), (p += w), P)) break e;
+ } else n.head && (n.head.comment = null);
+ n.mode = 9;
+ case 9:
+ if (512 & n.flags) {
+ for (; y < 16; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (m !== (65535 & n.check)) {
+ (e.msg = 'header crc mismatch'), (n.mode = 30);
+ break;
+ }
+ (m = 0), (y = 0);
+ }
+ n.head && ((n.head.hcrc = (n.flags >> 9) & 1), (n.head.done = !0)),
+ (e.adler = n.check = 0),
+ (n.mode = 12);
+ break;
+ case 10:
+ for (; y < 32; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (e.adler = n.check = c(m)), (m = 0), (y = 0), (n.mode = 11);
+ case 11:
+ if (0 === n.havedict)
+ return (
+ (e.next_out = f),
+ (e.avail_out = d),
+ (e.next_in = p),
+ (e.avail_in = h),
+ (n.hold = m),
+ (n.bits = y),
+ 2
+ );
+ (e.adler = n.check = 1), (n.mode = 12);
+ case 12:
+ if (5 === t || 6 === t) break e;
+ case 13:
+ if (n.last) {
+ (m >>>= 7 & y), (y -= 7 & y), (n.mode = 27);
+ break;
+ }
+ for (; y < 3; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ switch (((n.last = 1 & m), (y -= 1), 3 & (m >>>= 1))) {
+ case 0:
+ n.mode = 14;
+ break;
+ case 1:
+ if ((g(n), (n.mode = 20), 6 === t)) {
+ (m >>>= 2), (y -= 2);
+ break e;
+ }
+ break;
+ case 2:
+ n.mode = 17;
+ break;
+ case 3:
+ (e.msg = 'invalid block type'), (n.mode = 30);
+ }
+ (m >>>= 2), (y -= 2);
+ break;
+ case 14:
+ for (m >>>= 7 & y, y -= 7 & y; y < 32; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if ((65535 & m) != ((m >>> 16) ^ 65535)) {
+ (e.msg = 'invalid stored block lengths'), (n.mode = 30);
+ break;
+ }
+ if (((n.length = 65535 & m), (m = 0), (y = 0), (n.mode = 15), 6 === t)) break e;
+ case 15:
+ n.mode = 16;
+ case 16:
+ if ((w = n.length)) {
+ if ((w > h && (w = h), w > d && (w = d), 0 === w)) break e;
+ r.arraySet(l, u, p, w, f), (h -= w), (p += w), (d -= w), (f += w), (n.length -= w);
+ break;
+ }
+ n.mode = 12;
+ break;
+ case 17:
+ for (; y < 14; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (
+ ((n.nlen = 257 + (31 & m)),
+ (m >>>= 5),
+ (y -= 5),
+ (n.ndist = 1 + (31 & m)),
+ (m >>>= 5),
+ (y -= 5),
+ (n.ncode = 4 + (15 & m)),
+ (m >>>= 4),
+ (y -= 4),
+ n.nlen > 286 || n.ndist > 30)
+ ) {
+ (e.msg = 'too many length or distance symbols'), (n.mode = 30);
+ break;
+ }
+ (n.have = 0), (n.mode = 18);
+ case 18:
+ for (; n.have < n.ncode; ) {
+ for (; y < 3; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (n.lens[N[n.have++]] = 7 & m), (m >>>= 3), (y -= 3);
+ }
+ for (; n.have < 19; ) n.lens[N[n.have++]] = 0;
+ if (
+ ((n.lencode = n.lendyn),
+ (n.lenbits = 7),
+ ($ = { bits: n.lenbits }),
+ (T = s(0, n.lens, 0, 19, n.lencode, 0, n.work, $)),
+ (n.lenbits = $.bits),
+ T)
+ ) {
+ (e.msg = 'invalid code lengths set'), (n.mode = 30);
+ break;
+ }
+ (n.have = 0), (n.mode = 19);
+ case 19:
+ for (; n.have < n.nlen + n.ndist; ) {
+ for (
+ ;
+ (S = ((F = n.lencode[m & ((1 << n.lenbits) - 1)]) >>> 16) & 255),
+ (D = 65535 & F),
+ !((j = F >>> 24) <= y);
+
+ ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (D < 16) (m >>>= j), (y -= j), (n.lens[n.have++] = D);
+ else {
+ if (16 === D) {
+ for (O = j + 2; y < O; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (((m >>>= j), (y -= j), 0 === n.have)) {
+ (e.msg = 'invalid bit length repeat'), (n.mode = 30);
+ break;
+ }
+ (P = n.lens[n.have - 1]), (w = 3 + (3 & m)), (m >>>= 2), (y -= 2);
+ } else if (17 === D) {
+ for (O = j + 3; y < O; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (y -= j), (P = 0), (w = 3 + (7 & (m >>>= j))), (m >>>= 3), (y -= 3);
+ } else {
+ for (O = j + 7; y < O; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (y -= j), (P = 0), (w = 11 + (127 & (m >>>= j))), (m >>>= 7), (y -= 7);
+ }
+ if (n.have + w > n.nlen + n.ndist) {
+ (e.msg = 'invalid bit length repeat'), (n.mode = 30);
+ break;
+ }
+ for (; w--; ) n.lens[n.have++] = P;
+ }
+ }
+ if (30 === n.mode) break;
+ if (0 === n.lens[256]) {
+ (e.msg = 'invalid code -- missing end-of-block'), (n.mode = 30);
+ break;
+ }
+ if (
+ ((n.lenbits = 9),
+ ($ = { bits: n.lenbits }),
+ (T = s(1, n.lens, 0, n.nlen, n.lencode, 0, n.work, $)),
+ (n.lenbits = $.bits),
+ T)
+ ) {
+ (e.msg = 'invalid literal/lengths set'), (n.mode = 30);
+ break;
+ }
+ if (
+ ((n.distbits = 6),
+ (n.distcode = n.distdyn),
+ ($ = { bits: n.distbits }),
+ (T = s(2, n.lens, n.nlen, n.ndist, n.distcode, 0, n.work, $)),
+ (n.distbits = $.bits),
+ T)
+ ) {
+ (e.msg = 'invalid distances set'), (n.mode = 30);
+ break;
+ }
+ if (((n.mode = 20), 6 === t)) break e;
+ case 20:
+ n.mode = 21;
+ case 21:
+ if (h >= 6 && d >= 258) {
+ (e.next_out = f),
+ (e.avail_out = d),
+ (e.next_in = p),
+ (e.avail_in = h),
+ (n.hold = m),
+ (n.bits = y),
+ a(e, x),
+ (f = e.next_out),
+ (l = e.output),
+ (d = e.avail_out),
+ (p = e.next_in),
+ (u = e.input),
+ (h = e.avail_in),
+ (m = n.hold),
+ (y = n.bits),
+ 12 === n.mode && (n.back = -1);
+ break;
+ }
+ for (
+ n.back = 0;
+ (S = ((F = n.lencode[m & ((1 << n.lenbits) - 1)]) >>> 16) & 255),
+ (D = 65535 & F),
+ !((j = F >>> 24) <= y);
+
+ ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (S && 0 == (240 & S)) {
+ for (
+ A = j, k = S, C = D;
+ (S = ((F = n.lencode[C + ((m & ((1 << (A + k)) - 1)) >> A)]) >>> 16) & 255),
+ (D = 65535 & F),
+ !(A + (j = F >>> 24) <= y);
+
+ ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (m >>>= A), (y -= A), (n.back += A);
+ }
+ if (((m >>>= j), (y -= j), (n.back += j), (n.length = D), 0 === S)) {
+ n.mode = 26;
+ break;
+ }
+ if (32 & S) {
+ (n.back = -1), (n.mode = 12);
+ break;
+ }
+ if (64 & S) {
+ (e.msg = 'invalid literal/length code'), (n.mode = 30);
+ break;
+ }
+ (n.extra = 15 & S), (n.mode = 22);
+ case 22:
+ if (n.extra) {
+ for (O = n.extra; y < O; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (n.length += m & ((1 << n.extra) - 1)), (m >>>= n.extra), (y -= n.extra), (n.back += n.extra);
+ }
+ (n.was = n.length), (n.mode = 23);
+ case 23:
+ for (
+ ;
+ (S = ((F = n.distcode[m & ((1 << n.distbits) - 1)]) >>> 16) & 255),
+ (D = 65535 & F),
+ !((j = F >>> 24) <= y);
+
+ ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (0 == (240 & S)) {
+ for (
+ A = j, k = S, C = D;
+ (S = ((F = n.distcode[C + ((m & ((1 << (A + k)) - 1)) >> A)]) >>> 16) & 255),
+ (D = 65535 & F),
+ !(A + (j = F >>> 24) <= y);
+
+ ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (m >>>= A), (y -= A), (n.back += A);
+ }
+ if (((m >>>= j), (y -= j), (n.back += j), 64 & S)) {
+ (e.msg = 'invalid distance code'), (n.mode = 30);
+ break;
+ }
+ (n.offset = D), (n.extra = 15 & S), (n.mode = 24);
+ case 24:
+ if (n.extra) {
+ for (O = n.extra; y < O; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ (n.offset += m & ((1 << n.extra) - 1)), (m >>>= n.extra), (y -= n.extra), (n.back += n.extra);
+ }
+ if (n.offset > n.dmax) {
+ (e.msg = 'invalid distance too far back'), (n.mode = 30);
+ break;
+ }
+ n.mode = 25;
+ case 25:
+ if (0 === d) break e;
+ if (((w = x - d), n.offset > w)) {
+ if ((w = n.offset - w) > n.whave && n.sane) {
+ (e.msg = 'invalid distance too far back'), (n.mode = 30);
+ break;
+ }
+ w > n.wnext ? ((w -= n.wnext), (E = n.wsize - w)) : (E = n.wnext - w),
+ w > n.length && (w = n.length),
+ (_ = n.window);
+ } else (_ = l), (E = f - n.offset), (w = n.length);
+ w > d && (w = d), (d -= w), (n.length -= w);
+ do {
+ l[f++] = _[E++];
+ } while (--w);
+ 0 === n.length && (n.mode = 21);
+ break;
+ case 26:
+ if (0 === d) break e;
+ (l[f++] = n.length), d--, (n.mode = 21);
+ break;
+ case 27:
+ if (n.wrap) {
+ for (; y < 32; ) {
+ if (0 === h) break e;
+ h--, (m |= u[p++] << y), (y += 8);
+ }
+ if (
+ ((x -= d),
+ (e.total_out += x),
+ (n.total += x),
+ x && (e.adler = n.check = n.flags ? o(n.check, l, x, f - x) : i(n.check, l, x, f - x)),
+ (x = d),
+ (n.flags ? m : c(m)) !== n.check)
+ ) {
+ (e.msg = 'incorrect data check'), (n.mode = 30);
+ break;
+ }
+ (m = 0), (y = 0);
+ }
+ n.mode = 28;
+ case 28:
+ if (n.wrap && n.flags) {
+ for (; y < 32; ) {
+ if (0 === h) break e;
+ h--, (m += u[p++] << y), (y += 8);
+ }
+ if (m !== (4294967295 & n.total)) {
+ (e.msg = 'incorrect length check'), (n.mode = 30);
+ break;
+ }
+ (m = 0), (y = 0);
+ }
+ n.mode = 29;
+ case 29:
+ T = 1;
+ break e;
+ case 30:
+ T = -3;
+ break e;
+ case 31:
+ return -4;
+ case 32:
+ default:
+ return -2;
+ }
+ return (
+ (e.next_out = f),
+ (e.avail_out = d),
+ (e.next_in = p),
+ (e.avail_in = h),
+ (n.hold = m),
+ (n.bits = y),
+ (n.wsize || (x !== e.avail_out && n.mode < 30 && (n.mode < 27 || 4 !== t))) &&
+ v(e, e.output, e.next_out, x - e.avail_out)
+ ? ((n.mode = 31), -4)
+ : ((b -= e.avail_in),
+ (x -= e.avail_out),
+ (e.total_in += b),
+ (e.total_out += x),
+ (n.total += x),
+ n.wrap &&
+ x &&
+ (e.adler = n.check = n.flags ? o(n.check, l, x, e.next_out - x) : i(n.check, l, x, e.next_out - x)),
+ (e.data_type =
+ n.bits + (n.last ? 64 : 0) + (12 === n.mode ? 128 : 0) + (20 === n.mode || 15 === n.mode ? 256 : 0)),
+ ((0 === b && 0 === x) || 4 === t) && 0 === T && (T = -5),
+ T)
+ );
+ }),
+ (t.inflateEnd = function (e) {
+ if (!e || !e.state) return -2;
+ var t = e.state;
+ return t.window && (t.window = null), (e.state = null), 0;
+ }),
+ (t.inflateGetHeader = function (e, t) {
+ var n;
+ return e && e.state ? (0 == (2 & (n = e.state).wrap) ? -2 : ((n.head = t), (t.done = !1), 0)) : -2;
+ }),
+ (t.inflateSetDictionary = function (e, t) {
+ var n,
+ r = t.length;
+ return e && e.state
+ ? 0 !== (n = e.state).wrap && 11 !== n.mode
+ ? -2
+ : 11 === n.mode && i(1, t, r, 0) !== n.check
+ ? -3
+ : v(e, t, r, r)
+ ? ((n.mode = 31), -4)
+ : ((n.havedict = 1), 0)
+ : -2;
+ }),
+ (t.inflateInfo = 'pako inflate (from Nodeca project)');
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = function (e, t) {
+ var n, r, i, o, a, s, c, u, l, p, f, h, d, m, y, g, v, b, x, w, E, _, j, S, D;
+ (n = e.state),
+ (r = e.next_in),
+ (S = e.input),
+ (i = r + (e.avail_in - 5)),
+ (o = e.next_out),
+ (D = e.output),
+ (a = o - (t - e.avail_out)),
+ (s = o + (e.avail_out - 257)),
+ (c = n.dmax),
+ (u = n.wsize),
+ (l = n.whave),
+ (p = n.wnext),
+ (f = n.window),
+ (h = n.hold),
+ (d = n.bits),
+ (m = n.lencode),
+ (y = n.distcode),
+ (g = (1 << n.lenbits) - 1),
+ (v = (1 << n.distbits) - 1);
+ e: do {
+ d < 15 && ((h += S[r++] << d), (d += 8), (h += S[r++] << d), (d += 8)), (b = m[h & g]);
+ t: for (;;) {
+ if (((h >>>= x = b >>> 24), (d -= x), 0 === (x = (b >>> 16) & 255))) D[o++] = 65535 & b;
+ else {
+ if (!(16 & x)) {
+ if (0 == (64 & x)) {
+ b = m[(65535 & b) + (h & ((1 << x) - 1))];
+ continue t;
+ }
+ if (32 & x) {
+ n.mode = 12;
+ break e;
+ }
+ (e.msg = 'invalid literal/length code'), (n.mode = 30);
+ break e;
+ }
+ (w = 65535 & b),
+ (x &= 15) && (d < x && ((h += S[r++] << d), (d += 8)), (w += h & ((1 << x) - 1)), (h >>>= x), (d -= x)),
+ d < 15 && ((h += S[r++] << d), (d += 8), (h += S[r++] << d), (d += 8)),
+ (b = y[h & v]);
+ n: for (;;) {
+ if (((h >>>= x = b >>> 24), (d -= x), !(16 & (x = (b >>> 16) & 255)))) {
+ if (0 == (64 & x)) {
+ b = y[(65535 & b) + (h & ((1 << x) - 1))];
+ continue n;
+ }
+ (e.msg = 'invalid distance code'), (n.mode = 30);
+ break e;
+ }
+ if (
+ ((E = 65535 & b),
+ d < (x &= 15) && ((h += S[r++] << d), (d += 8) < x && ((h += S[r++] << d), (d += 8))),
+ (E += h & ((1 << x) - 1)) > c)
+ ) {
+ (e.msg = 'invalid distance too far back'), (n.mode = 30);
+ break e;
+ }
+ if (((h >>>= x), (d -= x), E > (x = o - a))) {
+ if ((x = E - x) > l && n.sane) {
+ (e.msg = 'invalid distance too far back'), (n.mode = 30);
+ break e;
+ }
+ if (((_ = 0), (j = f), 0 === p)) {
+ if (((_ += u - x), x < w)) {
+ w -= x;
+ do {
+ D[o++] = f[_++];
+ } while (--x);
+ (_ = o - E), (j = D);
+ }
+ } else if (p < x) {
+ if (((_ += u + p - x), (x -= p) < w)) {
+ w -= x;
+ do {
+ D[o++] = f[_++];
+ } while (--x);
+ if (((_ = 0), p < w)) {
+ w -= x = p;
+ do {
+ D[o++] = f[_++];
+ } while (--x);
+ (_ = o - E), (j = D);
+ }
+ }
+ } else if (((_ += p - x), x < w)) {
+ w -= x;
+ do {
+ D[o++] = f[_++];
+ } while (--x);
+ (_ = o - E), (j = D);
+ }
+ for (; w > 2; ) (D[o++] = j[_++]), (D[o++] = j[_++]), (D[o++] = j[_++]), (w -= 3);
+ w && ((D[o++] = j[_++]), w > 1 && (D[o++] = j[_++]));
+ } else {
+ _ = o - E;
+ do {
+ (D[o++] = D[_++]), (D[o++] = D[_++]), (D[o++] = D[_++]), (w -= 3);
+ } while (w > 2);
+ w && ((D[o++] = D[_++]), w > 1 && (D[o++] = D[_++]));
+ }
+ break;
+ }
+ }
+ break;
+ }
+ } while (r < i && o < s);
+ (r -= w = d >> 3),
+ (h &= (1 << (d -= w << 3)) - 1),
+ (e.next_in = r),
+ (e.next_out = o),
+ (e.avail_in = r < i ? i - r + 5 : 5 - (r - i)),
+ (e.avail_out = o < s ? s - o + 257 : 257 - (o - s)),
+ (n.hold = h),
+ (n.bits = d);
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ var r = n(48),
+ i = [
+ 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227,
+ 258, 0, 0,
+ ],
+ o = [
+ 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21,
+ 21, 16, 72, 78,
+ ],
+ a = [
+ 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097,
+ 6145, 8193, 12289, 16385, 24577, 0, 0,
+ ],
+ s = [
+ 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28,
+ 28, 29, 29, 64, 64,
+ ];
+ e.exports = function (e, t, n, c, u, l, p, f) {
+ var h,
+ d,
+ m,
+ y,
+ g,
+ v,
+ b,
+ x,
+ w,
+ E = f.bits,
+ _ = 0,
+ j = 0,
+ S = 0,
+ D = 0,
+ A = 0,
+ k = 0,
+ C = 0,
+ P = 0,
+ T = 0,
+ $ = 0,
+ O = null,
+ F = 0,
+ I = new r.Buf16(16),
+ N = new r.Buf16(16),
+ R = null,
+ B = 0;
+ for (_ = 0; _ <= 15; _++) I[_] = 0;
+ for (j = 0; j < c; j++) I[t[n + j]]++;
+ for (A = E, D = 15; D >= 1 && 0 === I[D]; D--);
+ if ((A > D && (A = D), 0 === D)) return (u[l++] = 20971520), (u[l++] = 20971520), (f.bits = 1), 0;
+ for (S = 1; S < D && 0 === I[S]; S++);
+ for (A < S && (A = S), P = 1, _ = 1; _ <= 15; _++) if (((P <<= 1), (P -= I[_]) < 0)) return -1;
+ if (P > 0 && (0 === e || 1 !== D)) return -1;
+ for (N[1] = 0, _ = 1; _ < 15; _++) N[_ + 1] = N[_] + I[_];
+ for (j = 0; j < c; j++) 0 !== t[n + j] && (p[N[t[n + j]]++] = j);
+ if (
+ (0 === e
+ ? ((O = R = p), (v = 19))
+ : 1 === e
+ ? ((O = i), (F -= 257), (R = o), (B -= 257), (v = 256))
+ : ((O = a), (R = s), (v = -1)),
+ ($ = 0),
+ (j = 0),
+ (_ = S),
+ (g = l),
+ (k = A),
+ (C = 0),
+ (m = -1),
+ (y = (T = 1 << A) - 1),
+ (1 === e && T > 852) || (2 === e && T > 592))
+ )
+ return 1;
+ for (;;) {
+ (b = _ - C),
+ p[j] < v ? ((x = 0), (w = p[j])) : p[j] > v ? ((x = R[B + p[j]]), (w = O[F + p[j]])) : ((x = 96), (w = 0)),
+ (h = 1 << (_ - C)),
+ (S = d = 1 << k);
+ do {
+ u[g + ($ >> C) + (d -= h)] = (b << 24) | (x << 16) | w | 0;
+ } while (0 !== d);
+ for (h = 1 << (_ - 1); $ & h; ) h >>= 1;
+ if ((0 !== h ? (($ &= h - 1), ($ += h)) : ($ = 0), j++, 0 == --I[_])) {
+ if (_ === D) break;
+ _ = t[n + p[j]];
+ }
+ if (_ > A && ($ & y) !== m) {
+ for (0 === C && (C = A), g += S, P = 1 << (k = _ - C); k + C < D && !((P -= I[k + C]) <= 0); )
+ k++, (P <<= 1);
+ if (((T += 1 << k), (1 === e && T > 852) || (2 === e && T > 592))) return 1;
+ u[(m = $ & y)] = (A << 24) | (k << 16) | (g - l) | 0;
+ }
+ }
+ return 0 !== $ && (u[g + $] = ((_ - C) << 24) | (64 << 16) | 0), (f.bits = A), 0;
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ e.exports = {
+ Z_NO_FLUSH: 0,
+ Z_PARTIAL_FLUSH: 1,
+ Z_SYNC_FLUSH: 2,
+ Z_FULL_FLUSH: 3,
+ Z_FINISH: 4,
+ Z_BLOCK: 5,
+ Z_TREES: 6,
+ Z_OK: 0,
+ Z_STREAM_END: 1,
+ Z_NEED_DICT: 2,
+ Z_ERRNO: -1,
+ Z_STREAM_ERROR: -2,
+ Z_DATA_ERROR: -3,
+ Z_BUF_ERROR: -5,
+ Z_NO_COMPRESSION: 0,
+ Z_BEST_SPEED: 1,
+ Z_BEST_COMPRESSION: 9,
+ Z_DEFAULT_COMPRESSION: -1,
+ Z_FILTERED: 1,
+ Z_HUFFMAN_ONLY: 2,
+ Z_RLE: 3,
+ Z_FIXED: 4,
+ Z_DEFAULT_STRATEGY: 0,
+ Z_BINARY: 0,
+ Z_TEXT: 1,
+ Z_UNKNOWN: 2,
+ Z_DEFLATED: 8,
+ };
+ },
+ function (e, t, n) {
+ 'use strict';
+ n.r(t);
+ var r = n(0),
+ i = n.n(r),
+ o = n(106),
+ a = n(49),
+ s = n.n(a),
+ c = (function () {
+ function e() {}
+ return (
+ (e.retrieveParsedSpec = function (e) {
+ if (e) {
+ if (e.constructor && 'AsyncAPIDocument' === e.constructor.name) return e;
+ if ('function' == typeof e.version && e._json && e._json.asyncapi) return e;
+ if ('string' == typeof e)
+ try {
+ e = JSON.parse(e);
+ } catch (e) {
+ return;
+ }
+ return 'object' == typeof e && !0 === e['x-parser-spec-parsed']
+ ? !0 === e['x-parser-spec-stringified']
+ ? s.a.parse(e)
+ : new s.a(e)
+ : void 0;
+ }
+ }),
+ (e.containTags = function (e, t) {
+ var n = 'function' == typeof e.tags ? e.tags() : void 0;
+ return (
+ !(void 0 === n || !Array.isArray(n)) &&
+ ((t = Array.isArray(t) ? t : [t]),
+ n.some(function (e) {
+ return t.some(function (t) {
+ return t.name() === e.name();
+ });
+ }))
+ );
+ }),
+ (e.operationsTags = function (e) {
+ var t = new Map();
+ return (
+ Object.entries(e.channels()).forEach(function (e) {
+ e[0];
+ var n = e[1],
+ r = n.publish();
+ r &&
+ r.hasTags() &&
+ r.tags().forEach(function (e) {
+ return t.set(e.name(), e);
+ });
+ var i = n.subscribe();
+ i &&
+ i.hasTags() &&
+ i.tags().forEach(function (e) {
+ return t.set(e.name(), e);
+ });
+ }),
+ Array.from(t.values())
+ );
+ }),
+ (e.serversTags = function (e) {
+ var t = {};
+ return (
+ Object.entries(e.servers()).forEach(function (e) {
+ var n = e[0],
+ r = e[1];
+ r.hasTags() &&
+ r.tags().forEach(function (e) {
+ t[e.name()] ? (t[e.name()] = [t[e.name()], n]) : (t[e.name()] = n);
+ });
+ }),
+ t
+ );
+ }),
+ e
+ );
+ })(),
+ u = {
+ schemaID: '',
+ show: { sidebar: !1, info: !0, servers: !0, operations: !0, messages: !0, schemas: !0, errors: !0 },
+ expand: { messageExamples: !1 },
+ sidebar: { showServers: 'byDefault', showOperations: 'byDefault' },
+ publishLabel: 'PUB',
+ subscribeLabel: 'SUB',
+ };
+ var l = function (e, t, n) {
+ return e[t]
+ ? e[t][0]
+ ? e[t][0][n]
+ : e[t][n]
+ : 'contentBoxSize' === t
+ ? e.contentRect['inlineSize' === n ? 'width' : 'height']
+ : void 0;
+ };
+ function p(e) {
+ void 0 === e && (e = {});
+ var t = e.onResize,
+ n = Object(r.useRef)(void 0);
+ n.current = t;
+ var i = e.round || Math.round,
+ o = Object(r.useRef)(),
+ a = Object(r.useState)({ width: void 0, height: void 0 }),
+ s = a[0],
+ c = a[1],
+ u = Object(r.useRef)(!1);
+ Object(r.useEffect)(function () {
+ return function () {
+ u.current = !0;
+ };
+ }, []);
+ var p,
+ f,
+ h,
+ d,
+ m,
+ y,
+ g = Object(r.useRef)({ width: void 0, height: void 0 }),
+ v =
+ ((p = Object(r.useCallback)(
+ function (t) {
+ return (
+ (o.current && o.current.box === e.box && o.current.round === i) ||
+ (o.current = {
+ box: e.box,
+ round: i,
+ instance: new ResizeObserver(function (t) {
+ var r = t[0],
+ o =
+ 'border-box' === e.box
+ ? 'borderBoxSize'
+ : 'device-pixel-content-box' === e.box
+ ? 'devicePixelContentBoxSize'
+ : 'contentBoxSize',
+ a = l(r, o, 'inlineSize'),
+ s = l(r, o, 'blockSize'),
+ p = a ? i(a) : void 0,
+ f = s ? i(s) : void 0;
+ if (g.current.width !== p || g.current.height !== f) {
+ var h = { width: p, height: f };
+ (g.current.width = p), (g.current.height = f), n.current ? n.current(h) : u.current || c(h);
+ }
+ }),
+ }),
+ o.current.instance.observe(t, { box: e.box }),
+ function () {
+ o.current && o.current.instance.unobserve(t);
+ }
+ );
+ },
+ [e.box, i]
+ )),
+ (f = e.ref),
+ (h = Object(r.useRef)(null)),
+ (d = Object(r.useRef)(null)),
+ (m = Object(r.useRef)()),
+ (y = Object(r.useCallback)(
+ function () {
+ var e = null;
+ h.current ? (e = h.current) : f && (e = f instanceof HTMLElement ? f : f.current),
+ (d.current && d.current.element === e && d.current.reporter === y) ||
+ (m.current && (m.current(), (m.current = null)),
+ (d.current = { reporter: y, element: e }),
+ e && (m.current = p(e)));
+ },
+ [f, p]
+ )),
+ Object(r.useEffect)(
+ function () {
+ y();
+ },
+ [y]
+ ),
+ Object(r.useCallback)(
+ function (e) {
+ (h.current = e), y();
+ },
+ [y]
+ ));
+ return Object(r.useMemo)(
+ function () {
+ return { ref: v, width: s.width, height: s.height };
+ },
+ [v, s ? s.width : null, s ? s.height : null]
+ );
+ }
+ var f = function () {
+ return (f =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var i in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
+ return e;
+ }).apply(this, arguments);
+ },
+ h = function (e, t) {
+ var n = {};
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
+ if (null != e && 'function' == typeof Object.getOwnPropertySymbols) {
+ var i = 0;
+ for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
+ }
+ return n;
+ },
+ d = function (e) {
+ return (
+ void 0 === e && (e = {}),
+ i.a.createElement(
+ 'svg',
+ f(
+ {
+ stroke: 'currentColor',
+ fill: 'currentColor',
+ strokeWidth: '0',
+ viewBox: '0 0 20 20',
+ height: '1em',
+ width: '1em',
+ xmlns: 'http://www.w3.org/2000/svg',
+ },
+ e
+ ),
+ i.a.createElement('path', {
+ fillRule: 'evenodd',
+ d: 'M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z',
+ clipRule: 'evenodd',
+ })
+ )
+ );
+ },
+ m = function (e) {
+ var t = e.chevronProps,
+ n = e.expanded,
+ r = void 0 !== n && n,
+ o = e.children,
+ a = h(e, ['chevronProps', 'expanded', 'children']);
+ return i.a.createElement(
+ 'button',
+ f({}, a, { className: 'focus:outline-none '.concat(a.className), type: 'button' }),
+ i.a.createElement('div', { className: 'inline-block' }, o),
+ i.a.createElement(
+ d,
+ f({}, t, {
+ className:
+ 'inline-block align-baseline cursor-pointer ml-0.5 -mb-1 w-5 h-5 transform transition-transform duration-150 ease-linear '
+ .concat(r ? '-rotate-90' : '', ' ')
+ .concat((null == t ? void 0 : t.className) || ''),
+ })
+ )
+ );
+ },
+ y = i.a.createContext(null);
+ function g() {
+ return Object(r.useContext)(y);
+ }
+ var v = Object(r.createContext)({});
+ function b() {
+ return Object(r.useContext)(v);
+ }
+ var x = function () {
+ return (x =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var i in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
+ return e;
+ }).apply(this, arguments);
+ },
+ w = i.a.createContext({
+ setShowSidebar: function (e) {
+ return e;
+ },
+ }),
+ E = function () {
+ var e = Object(r.useState)(!1),
+ t = e[0],
+ n = e[1],
+ o = g(),
+ a = o.info(),
+ s = a.ext('x-logo'),
+ c = o.hasComponents() && o.components(),
+ u = c && c.messages(),
+ l = c && c.schemas(),
+ p =
+ o.hasChannels() &&
+ Object.values(o.channels()).some(function (e) {
+ return e.hasPublish() || e.hasSubscribe();
+ }),
+ f =
+ u &&
+ Object.keys(u).length > 0 &&
+ i.a.createElement(
+ 'li',
+ { className: 'mb-3 mt-9' },
+ i.a.createElement(
+ 'a',
+ {
+ className: 'text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900',
+ href: '#messages',
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ 'Messages'
+ ),
+ i.a.createElement(
+ 'ul',
+ { className: 'text-sm mt-2' },
+ Object.entries(u).map(function (e) {
+ var t = e[0],
+ r = e[1];
+ return i.a.createElement(
+ 'li',
+ { key: t },
+ i.a.createElement(
+ 'a',
+ {
+ className: 'flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900',
+ href: '#message-'.concat(t),
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ i.a.createElement('div', { className: 'break-all inline-block' }, r.uid())
+ )
+ );
+ })
+ )
+ ),
+ h =
+ l &&
+ Object.keys(l).length > 0 &&
+ i.a.createElement(
+ 'li',
+ { className: 'mb-3 mt-9' },
+ i.a.createElement(
+ 'a',
+ {
+ className: 'text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900',
+ href: '#schemas',
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ 'Schemas'
+ ),
+ i.a.createElement(
+ 'ul',
+ { className: 'text-sm mt-2' },
+ Object.keys(l).map(function (e) {
+ return i.a.createElement(
+ 'li',
+ { key: e },
+ i.a.createElement(
+ 'a',
+ {
+ className: 'flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900',
+ href: '#schema-'.concat(e),
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ i.a.createElement('div', { className: 'break-all inline-block' }, e)
+ )
+ );
+ })
+ )
+ );
+ return i.a.createElement(
+ w.Provider,
+ { value: { setShowSidebar: n } },
+ i.a.createElement(
+ 'div',
+ {
+ className:
+ 'burger-menu rounded-full h-16 w-16 bg-white fixed bottom-16 right-8 flex items-center justify-center z-30 cursor-pointer shadow-md bg-teal-500',
+ onClick: function () {
+ return n(function (e) {
+ return !e;
+ });
+ },
+ 'data-lol': t,
+ },
+ i.a.createElement(
+ 'svg',
+ { viewBox: '0 0 100 70', width: '40', height: '30', className: 'fill-current text-gray-200' },
+ i.a.createElement('rect', { width: '100', height: '10' }),
+ i.a.createElement('rect', { y: '30', width: '100', height: '10' }),
+ i.a.createElement('rect', { y: '60', width: '100', height: '10' })
+ )
+ ),
+ i.a.createElement(
+ 'div',
+ {
+ className: ''.concat(
+ t ? 'block fixed w-full' : 'hidden',
+ ' sidebar relative w-64 max-h-screen h-full bg-gray-200 shadow z-20'
+ ),
+ },
+ i.a.createElement(
+ 'div',
+ {
+ className: ''.concat(
+ t ? 'w-full' : '',
+ ' block fixed max-h-screen h-full font-sans px-4 pt-8 pb-16 overflow-y-auto bg-gray-200'
+ ),
+ },
+ i.a.createElement(
+ 'div',
+ { className: 'sidebar--content' },
+ i.a.createElement(
+ 'div',
+ null,
+ s
+ ? i.a.createElement('img', {
+ src: s,
+ alt: ''.concat(a.title(), ' logo, ').concat(a.version(), ' version'),
+ })
+ : i.a.createElement('h1', { className: 'text-2xl font-light' }, a.title(), ' ', a.version())
+ ),
+ i.a.createElement(
+ 'ul',
+ { className: 'text-sm mt-10 relative' },
+ i.a.createElement(
+ 'li',
+ { className: 'mb-3' },
+ i.a.createElement(
+ 'a',
+ {
+ className: 'text-gray-700 no-underline hover:text-gray-900',
+ href: '#introduction',
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ 'Introduction'
+ )
+ ),
+ o.hasServers() &&
+ i.a.createElement(
+ 'li',
+ { className: 'mb-3 mt-9' },
+ i.a.createElement(
+ 'a',
+ {
+ className: 'text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900',
+ href: '#servers',
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ 'Servers'
+ ),
+ i.a.createElement(j, null)
+ ),
+ p &&
+ i.a.createElement(
+ i.a.Fragment,
+ null,
+ i.a.createElement(
+ 'li',
+ { className: 'mb-3 mt-9' },
+ i.a.createElement(
+ 'a',
+ {
+ className: 'text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900',
+ href: '#operations',
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ 'Operations'
+ ),
+ i.a.createElement(S, null)
+ ),
+ f,
+ h
+ )
+ )
+ )
+ )
+ )
+ );
+ };
+ function _(e, t) {
+ var n = new Set(),
+ r = new Map();
+ e.forEach(function (e) {
+ var i = [];
+ t.forEach(function (t) {
+ var r = t.object;
+ 'function' == typeof r.tags &&
+ (r.tags() || [])
+ .map(function (e) {
+ return e.name();
+ })
+ .includes(e) &&
+ (i.push(t), n.add(t));
+ }),
+ r.set(e, i);
+ });
+ var i = [];
+ return (
+ t.forEach(function (e) {
+ n.has(e) || i.push(e);
+ }),
+ { tagged: r, untagged: i }
+ );
+ }
+ var j = function () {
+ var e,
+ t = b().sidebar,
+ n = g(),
+ r = n.servers(),
+ o = (null == t ? void 0 : t.showServers) || 'byDefault';
+ if ('byDefault' === o)
+ return i.a.createElement(
+ 'ul',
+ { className: 'text-sm mt-2' },
+ Object.keys(r).map(function (e) {
+ return i.a.createElement(A, { serverName: e, key: e });
+ })
+ );
+ if ('bySpecTags' === o)
+ e = (n.tags() || []).map(function (e) {
+ return e.name();
+ });
+ else {
+ var a = new Set();
+ Object.values(r).forEach(function (e) {
+ 'function' == typeof e.tags &&
+ e.tags().forEach(function (e) {
+ return a.add(e.name());
+ });
+ }),
+ (e = Array.from(a));
+ }
+ var s = _(
+ e,
+ Object.entries(r).map(function (e) {
+ return { name: e[0], object: e[1], data: {} };
+ })
+ ),
+ c = s.tagged,
+ u = s.untagged;
+ return i.a.createElement(
+ 'ul',
+ { className: 'text-sm mt-2' },
+ Array.from(c.entries()).map(function (e) {
+ var t = e[0],
+ n = e[1];
+ return i.a.createElement(
+ 'li',
+ { key: t },
+ i.a.createElement(
+ k,
+ { tagName: t },
+ n.map(function (e) {
+ var t = e.name;
+ return i.a.createElement(A, { serverName: t, key: t });
+ })
+ )
+ );
+ }),
+ u.length > 0
+ ? i.a.createElement(
+ 'li',
+ null,
+ i.a.createElement(
+ k,
+ { tagName: 'Untagged' },
+ u.map(function (e) {
+ var t = e.name;
+ return i.a.createElement(A, { serverName: t, key: t });
+ })
+ )
+ )
+ : null
+ );
+ },
+ S = function () {
+ var e,
+ t = b().sidebar,
+ n = g(),
+ r = n.channels(),
+ o = (null == t ? void 0 : t.showOperations) || 'byDefault',
+ a = [];
+ if (
+ (Object.entries(r).forEach(function (e) {
+ var t = e[0],
+ n = e[1];
+ if (n.hasPublish()) {
+ var r = n.publish();
+ a.push({
+ name: 'publish-'.concat(t),
+ object: r,
+ data: { channelName: t, kind: 'publish', summary: r.summary() },
+ });
+ }
+ if (n.hasSubscribe()) {
+ r = n.subscribe();
+ a.push({
+ name: 'subscribe-'.concat(t),
+ object: r,
+ data: { channelName: t, kind: 'subscribe', summary: r.summary() },
+ });
+ }
+ }),
+ 'byDefault' === o)
+ )
+ return i.a.createElement(
+ 'ul',
+ { className: 'text-sm mt-2' },
+ a.map(function (e) {
+ var t = e.name,
+ n = e.data;
+ return i.a.createElement(D, x({ key: t }, n));
+ })
+ );
+ if ('bySpecTags' === o)
+ e = (n.tags() || []).map(function (e) {
+ return e.name();
+ });
+ else {
+ var s = new Set();
+ Object.values(a).forEach(function (e) {
+ var t = e.object;
+ 'function' == typeof t.tags &&
+ t.tags().forEach(function (e) {
+ return s.add(e.name());
+ });
+ }),
+ (e = Array.from(s));
+ }
+ var c = _(e, a),
+ u = c.tagged,
+ l = c.untagged;
+ return i.a.createElement(
+ 'ul',
+ { className: 'text-sm mt-2' },
+ Array.from(u.entries()).map(function (e) {
+ var t = e[0],
+ n = e[1];
+ return i.a.createElement(
+ 'li',
+ { key: t },
+ i.a.createElement(
+ k,
+ { tagName: t },
+ n.map(function (e) {
+ var t = e.name,
+ n = e.data;
+ return i.a.createElement(D, x({ key: t }, n));
+ })
+ )
+ );
+ }),
+ l.length > 0
+ ? i.a.createElement(
+ 'li',
+ null,
+ i.a.createElement(
+ k,
+ { tagName: 'Untagged' },
+ l.map(function (e) {
+ var t = e.name,
+ n = e.data;
+ return i.a.createElement(D, x({ key: t }, n));
+ })
+ )
+ )
+ : null
+ );
+ },
+ D = function (e) {
+ var t = e.channelName,
+ n = e.summary,
+ o = e.kind,
+ a = b(),
+ s = Object(r.useContext)(w).setShowSidebar,
+ c = 'publish' === o,
+ u = '';
+ return (
+ (u = c ? a.publishLabel || 'PUB' : a.subscribeLabel || 'SUB'),
+ i.a.createElement(
+ 'li',
+ null,
+ i.a.createElement(
+ 'a',
+ {
+ className: 'flex no-underline text-gray-700 mb-2 hover:text-gray-900',
+ href: '#operation-'.concat(o, '-').concat(t),
+ onClick: function () {
+ return s(!1);
+ },
+ },
+ i.a.createElement(
+ 'span',
+ {
+ className: ''.concat(
+ c ? 'bg-blue-600' : 'bg-green-600',
+ ' font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs'
+ ),
+ title: c ? 'Publish' : 'Subscribe',
+ },
+ u
+ ),
+ i.a.createElement('span', { className: 'break-all inline-block' }, n || t)
+ )
+ )
+ );
+ },
+ A = function (e) {
+ var t = e.serverName,
+ n = Object(r.useContext)(w).setShowSidebar;
+ return i.a.createElement(
+ 'li',
+ null,
+ i.a.createElement(
+ 'a',
+ {
+ className: 'flex no-underline text-gray-700 mb-2 hover:text-gray-900',
+ href: '#server-'.concat(t),
+ onClick: function () {
+ return n(!1);
+ },
+ },
+ i.a.createElement('span', { className: 'break-all inline-block' }, t)
+ )
+ );
+ },
+ k = function (e) {
+ var t = e.tagName,
+ n = e.children,
+ o = Object(r.useState)(!1),
+ a = o[0],
+ s = o[1];
+ return i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ m,
+ {
+ onClick: function () {
+ return s(function (e) {
+ return !e;
+ });
+ },
+ chevronProps: { className: a ? '-rotate-180' : '-rotate-90' },
+ },
+ i.a.createElement('span', { className: 'text-sm inline-block mt-1 font-extralight' }, t)
+ ),
+ i.a.createElement('ul', { className: ''.concat(a ? 'block' : 'hidden', ' text-sm mt-2 font-light') }, n)
+ );
+ },
+ C = function (e) {
+ var t = e.href,
+ n = e.title,
+ r = e.className,
+ o = e.children;
+ return i.a.createElement(
+ 'a',
+ { href: t, title: n, className: r, target: '_blank', rel: 'nofollow noopener noreferrer' },
+ o
+ );
+ },
+ P = n(107),
+ T = n(108),
+ $ = n(21),
+ O = n.n($),
+ F = n(109),
+ I = n.n(F),
+ N = n(110),
+ R = n.n(N),
+ B = n(111),
+ M = n.n(B);
+ O.a.registerLanguage('json', I.a), O.a.registerLanguage('yaml', R.a), O.a.registerLanguage('bash', M.a);
+ var L = {
+ langPrefix: 'hljs language-',
+ highlight: function (e, t) {
+ if (!O.a.getLanguage(t)) return e;
+ try {
+ return O.a.highlight(e, { language: t }).value;
+ } catch (t) {
+ return e;
+ }
+ },
+ };
+ var z = function (e) {
+ var t,
+ n = e.children;
+ return n
+ ? 'string' != typeof n
+ ? i.a.createElement(i.a.Fragment, null, n)
+ : i.a.createElement('div', {
+ className: 'prose max-w-none text-sm',
+ dangerouslySetInnerHTML: { __html: Object(P.sanitize)(((t = n), Object(T.marked)(t, L))) },
+ })
+ : null;
+ },
+ U = function (e) {
+ var t = e.tag,
+ n = '#'.concat(t.name()),
+ r = t.description() || '',
+ o = t.externalDocs(),
+ a = i.a.createElement(
+ 'div',
+ {
+ title: r,
+ className:
+ 'border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1',
+ },
+ i.a.createElement('span', { className: o ? 'underline' : '' }, n)
+ );
+ return o ? i.a.createElement(C, { href: o.url(), title: r }, a) : a;
+ },
+ q = function (e) {
+ var t = e.tags;
+ return t && t.length
+ ? i.a.createElement(
+ 'ul',
+ { className: 'flex flex-wrap leading-normal' },
+ t.map(function (e) {
+ return i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2', key: e.name() },
+ i.a.createElement(U, { tag: e })
+ );
+ })
+ )
+ : null;
+ },
+ H = function () {
+ var e = g(),
+ t = e.info();
+ if (!t) return null;
+ var n = e.id(),
+ r = e.externalDocs(),
+ o = t.license(),
+ a = t.termsOfService(),
+ s = e.defaultContentType(),
+ c = t.contact(),
+ u = o || a || s || c || r;
+ return i.a.createElement(
+ 'div',
+ { className: 'panel-item' },
+ i.a.createElement(
+ 'div',
+ { className: 'panel-item--center px-8 text-left', id: 'introduction' },
+ i.a.createElement('div', { className: 'text-4xl' }, t.title(), ' ', t.version()),
+ u &&
+ i.a.createElement(
+ 'ul',
+ { className: 'flex flex-wrap mt-2 leading-normal' },
+ o &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2' },
+ o.url()
+ ? i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: o.url(),
+ },
+ i.a.createElement('span', null, o.name())
+ )
+ : i.a.createElement(
+ 'span',
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ },
+ o.name()
+ )
+ ),
+ a &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: a,
+ },
+ i.a.createElement('span', null, 'Terms of service')
+ )
+ ),
+ s &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: ''.concat('https://www.iana.org/assignments/media-types', '/').concat(s),
+ },
+ i.a.createElement('span', null, s)
+ )
+ ),
+ r &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: r.url(),
+ },
+ i.a.createElement('span', null, 'External Docs')
+ )
+ ),
+ c &&
+ i.a.createElement(
+ i.a.Fragment,
+ null,
+ c.url() &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: c.url(),
+ },
+ i.a.createElement('span', null, c.name() || 'Support')
+ )
+ ),
+ c.email() &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: 'mailto:'.concat(c.email()),
+ },
+ i.a.createElement('span', null, c.email())
+ )
+ )
+ ),
+ n &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2' },
+ i.a.createElement(
+ 'span',
+ {
+ className:
+ 'border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ },
+ 'ID: ',
+ n
+ )
+ )
+ ),
+ t.hasDescription() &&
+ i.a.createElement('div', { className: 'mt-4' }, i.a.createElement(z, null, t.description())),
+ e.hasTags() && i.a.createElement('div', { className: 'mt-4' }, i.a.createElement(q, { tags: e.tags() }))
+ ),
+ i.a.createElement('div', { className: 'panel-item--right' })
+ );
+ },
+ V = (function () {
+ function e() {}
+ return (
+ (e.securityType = function (e) {
+ switch (e) {
+ case 'apiKey':
+ return 'API key';
+ case 'oauth2':
+ return 'OAuth2';
+ case 'openIdConnect':
+ return 'Open ID';
+ case 'http':
+ return 'HTTP';
+ case 'userPassword':
+ return 'User/Password';
+ case 'X509':
+ return 'X509:';
+ case 'symmetricEncryption':
+ return 'Symmetric Encription';
+ case 'asymmetricEncryption':
+ return 'Asymmetric Encription';
+ case 'httpApiKey':
+ return 'HTTP API key';
+ case 'scramSha256':
+ return 'ScramSha256';
+ case 'scramSha512':
+ return 'ScramSha512';
+ case 'gssapi':
+ return 'GSSAPI';
+ default:
+ return 'API key';
+ }
+ }),
+ (e.flowName = function (e) {
+ switch (e) {
+ case 'implicit':
+ return 'Implicit';
+ case 'password':
+ return 'Password';
+ case 'clientCredentials':
+ return 'Client credentials';
+ case 'authorizationCode':
+ return 'Authorization Code';
+ default:
+ return 'Implicit';
+ }
+ }),
+ (e.getKafkaSecurity = function (e, t) {
+ var n, r;
+ if (((n = 'kafka' === e ? (t ? 'SASL_PLAINTEXT' : 'PLAINTEXT') : t ? 'SASL_SSL' : 'SSL'), t))
+ switch (t.type()) {
+ case 'plain':
+ r = 'PLAIN';
+ break;
+ case 'scramSha256':
+ r = 'SCRAM-SHA-256';
+ break;
+ case 'scramSha512':
+ r = 'SCRAM-SHA-512';
+ break;
+ case 'oauth2':
+ r = 'OAUTHBEARER';
+ break;
+ case 'gssapi':
+ r = 'GSSAPI';
+ break;
+ case 'X509':
+ n = 'SSL';
+ }
+ return { securityProtocol: n, saslMechanism: r };
+ }),
+ e
+ );
+ })(),
+ J = function (e) {
+ var t,
+ n = e.security,
+ r = void 0 === n ? [] : n,
+ o = e.protocol,
+ a = void 0 === o ? '' : o,
+ s = e.header,
+ c = void 0 === s ? 'Security' : s,
+ u = g(),
+ l = u.hasComponents() && u.components().securitySchemes();
+ if (r && r.length && l && Object.keys(l).length) {
+ var p = r
+ .map(function (e) {
+ var t = e.json(),
+ n = Object.keys(t)[0],
+ r = l[String(n)],
+ o = t[String(n)];
+ return r
+ ? i.a.createElement(W, { protocol: a, securitySchema: r, requiredScopes: o, key: r.type() })
+ : null;
+ })
+ .filter(Boolean);
+ t = i.a.createElement(
+ 'ul',
+ null,
+ p.map(function (e, t) {
+ return i.a.createElement('li', { className: 'mt-2', key: t }, e);
+ })
+ );
+ } else
+ ('kafka' !== a && 'kafka-secure' !== a) ||
+ (t = i.a.createElement(W, { protocol: a, securitySchema: null }));
+ return t
+ ? i.a.createElement(
+ 'div',
+ { className: 'text-sm mt-4' },
+ i.a.createElement('h5', { className: 'text-gray-800' }, c, ':'),
+ t
+ )
+ : null;
+ };
+ var K,
+ W = function (e) {
+ var t,
+ n = e.securitySchema,
+ r = e.protocol,
+ o = (function (e, t) {
+ void 0 === t && (t = []);
+ var n = [];
+ return (
+ e &&
+ (e.name() && n.push(i.a.createElement('span', null, 'Name: ', e.name())),
+ e.in() && n.push(i.a.createElement('span', null, 'In: ', e.in())),
+ e.scheme() && n.push(i.a.createElement('span', null, 'Scheme: ', e.scheme())),
+ e.bearerFormat() && n.push(i.a.createElement('span', null, 'Bearer format: ', e.bearerFormat())),
+ e.openIdConnectUrl() &&
+ n.push(i.a.createElement(C, { href: e.openIdConnectUrl(), className: 'underline' }, 'Connect URL')),
+ t.length && n.push(i.a.createElement('span', null, 'Required scopes: ', t.join(', ')))),
+ n
+ );
+ })(n, e.requiredScopes);
+ if (['kafka', 'kafka-secure'].includes(r)) {
+ var a = V.getKafkaSecurity(r, n),
+ s = a.securityProtocol,
+ c = a.saslMechanism;
+ t = i.a.createElement(
+ 'div',
+ { className: 'px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded' },
+ s &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-1' },
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ 'security.protocol:'
+ ),
+ i.a.createElement(
+ 'span',
+ {
+ className:
+ 'inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1',
+ },
+ s
+ )
+ ),
+ c &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-1' },
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ 'sasl.mechanism:'
+ ),
+ i.a.createElement(
+ 'span',
+ {
+ className:
+ 'inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1',
+ },
+ c
+ )
+ )
+ );
+ }
+ var u = n && n.flows(),
+ l =
+ u &&
+ Object.entries(u).map(function (e) {
+ var t = e[0],
+ n = e[1],
+ r = n.authorizationUrl(),
+ o = n.tokenUrl(),
+ a = n.refreshUrl(),
+ s = n.scopes();
+ return i.a.createElement(
+ 'div',
+ { className: 'px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded', key: t },
+ i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ 'Flow:'
+ ),
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ V.flowName(t)
+ )
+ ),
+ r &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-1' },
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ 'Auth URL:'
+ ),
+ i.a.createElement(C, { href: r, className: 'underline' }, r)
+ ),
+ o &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-1' },
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ 'Token URL:'
+ ),
+ i.a.createElement(C, { href: o, className: 'underline' }, o)
+ ),
+ a &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-1' },
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ 'Refresh URL:'
+ ),
+ i.a.createElement(C, { href: a, className: 'underline' }, a)
+ ),
+ s &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-1' },
+ i.a.createElement(
+ 'span',
+ { className: 'text-xs font-bold text-gray-600 mt-1 mr-1 uppercase' },
+ 'Scopes:'
+ ),
+ i.a.createElement(
+ 'ul',
+ { className: 'inline-block' },
+ s &&
+ Object.entries(s).map(function (e) {
+ var t = e[0],
+ n = e[1];
+ return i.a.createElement(
+ 'li',
+ {
+ className:
+ 'inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1',
+ title: n,
+ key: t,
+ },
+ t
+ );
+ })
+ )
+ )
+ );
+ });
+ return i.a.createElement(
+ 'div',
+ null,
+ n &&
+ o &&
+ i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ 'span',
+ null,
+ V.securityType(n.type()),
+ o.length > 0 &&
+ i.a.createElement(
+ 'ul',
+ { className: 'inline-block ml-2' },
+ o.map(function (e, t) {
+ return i.a.createElement(
+ 'li',
+ {
+ className:
+ 'inline-block font-bold no-underline bg-blue-400 text-white text-xs uppercase rounded px-2 py-0 ml-1',
+ key: t,
+ },
+ e
+ );
+ })
+ )
+ )
+ ),
+ n && n.hasDescription() && i.a.createElement('div', null, i.a.createElement(z, null, n.description())),
+ l && l.length > 0 && i.a.createElement('ul', { className: 'my-2' }, i.a.createElement('li', null, l)),
+ t && i.a.createElement('div', null, t)
+ );
+ },
+ X = n(17),
+ G = n.n(X);
+ !(function (e) {
+ (e.ANY = 'any'), (e.RESTRICTED_ANY = 'restricted any'), (e.NEVER = 'never'), (e.UNKNOWN = 'unknown');
+ })(K || (K = {}));
+ var Y = ['string', 'number', 'integer', 'boolean', 'array', 'object', 'null'],
+ Z = Object.keys({
+ maxLength: 'string',
+ minLength: 'string',
+ pattern: 'string',
+ contentMediaType: 'string',
+ contentEncoding: 'string',
+ multipleOf: 'number',
+ maximum: 'number',
+ exclusiveMaximum: 'number',
+ minimum: 'number',
+ exclusiveMinimum: 'number',
+ items: 'array',
+ maxItems: 'array',
+ minItems: 'array',
+ uniqueItems: 'array',
+ contains: 'array',
+ additionalItems: 'array',
+ maxProperties: 'object',
+ minProperties: 'object',
+ required: 'object',
+ properties: 'object',
+ patternProperties: 'object',
+ propertyNames: 'object',
+ dependencies: 'object',
+ additionalProperties: 'object',
+ }),
+ Q = (function () {
+ function e() {}
+ return (
+ (e.toSchemaType = function (e) {
+ var t = this;
+ if (!e || 'function' != typeof e.json) return K.UNKNOWN;
+ if (e.isBooleanSchema()) return !0 === e.json() ? K.ANY : K.NEVER;
+ if (0 === Object.keys(e.json()).length) return K.ANY;
+ var n = e.not();
+ if (n && this.inferType(n) === K.ANY) return K.NEVER;
+ var r = this.inferType(e);
+ if (Array.isArray(r))
+ return r
+ .map(function (n) {
+ return t.toType(n, e);
+ })
+ .join(' | ');
+ r = this.toType(r, e);
+ var i = this.toCombinedType(e);
+ return r && i ? ''.concat(r, ' ').concat(i) : i || r;
+ }),
+ (e.prettifyValue = function (e, t) {
+ void 0 === t && (t = !0);
+ var n = typeof e;
+ return 'string' === n
+ ? t
+ ? '"'.concat(e, '"')
+ : e
+ : 'number' === n || 'bigint' === n || 'boolean' === n
+ ? ''.concat(e)
+ : Array.isArray(e)
+ ? '['.concat(e.toString(), ']')
+ : JSON.stringify(e);
+ }),
+ (e.humanizeConstraints = function (e) {
+ var t = [],
+ n = this.humanizeNumberRangeConstraint(
+ e.minimum(),
+ e.exclusiveMinimum(),
+ e.maximum(),
+ e.exclusiveMaximum()
+ );
+ void 0 !== n && t.push(n);
+ var r = this.humanizeMultipleOfConstraint(e.multipleOf());
+ void 0 !== r && t.push(r);
+ var i = this.humanizeRangeConstraint('characters', e.minLength(), e.maxLength());
+ void 0 !== i && t.push(i);
+ var o = e.uniqueItems(),
+ a = this.humanizeRangeConstraint(o ? 'unique items' : 'items', e.minItems(), e.maxItems());
+ void 0 !== a && t.push(a);
+ var s = this.humanizeRangeConstraint('properties', e.minProperties(), e.maxProperties());
+ return void 0 !== s && t.push(s), t;
+ }),
+ (e.isExpandable = function (e) {
+ var t = this.inferType(e);
+ if ((t = Array.isArray(t) ? t : [t]).includes('object') || t.includes('array')) return !0;
+ if (
+ e.oneOf() ||
+ e.anyOf() ||
+ e.allOf() ||
+ Object.keys(e.properties()).length ||
+ e.items() ||
+ e.not() ||
+ e.if() ||
+ e.then() ||
+ e.else()
+ )
+ return !0;
+ var n = this.getCustomExtensions(e);
+ return !(!n || !Object.keys(n).length);
+ }),
+ (e.serverVariablesToSchema = function (e) {
+ var t;
+ if (e && Object.keys(e).length) {
+ var n =
+ (((t = {
+ type: 'object',
+ properties: Object.entries(e).reduce(function (e, t) {
+ var n = t[0],
+ r = t[1];
+ return (e[n] = Object.assign({}, r.json() || {})), (e[n].type = 'string'), e;
+ }, {}),
+ required: Object.keys(e),
+ })[this.extRenderType] = !1),
+ (t[this.extRenderAdditionalInfo] = !1),
+ t);
+ return new G.a(n);
+ }
+ }),
+ (e.parametersToSchema = function (e) {
+ var t,
+ n = this;
+ if (e && Object.keys(e).length) {
+ var r =
+ (((t = {
+ type: 'object',
+ properties: Object.entries(e).reduce(function (e, t) {
+ var r = t[0],
+ i = t[1],
+ o = i.schema();
+ return (
+ (e[r] = Object.assign({}, o ? o.json() : {})),
+ (e[r].description = i.description() || e[r].description),
+ (e[r][n.extParameterLocation] = i.location()),
+ e
+ );
+ }, {}),
+ required: Object.keys(e),
+ })[this.extRenderType] = !1),
+ (t[this.extRenderAdditionalInfo] = !1),
+ t);
+ return new G.a(r);
+ }
+ }),
+ (e.jsonToSchema = function (e) {
+ var t = this.jsonFieldToSchema(e);
+ return new G.a(t);
+ }),
+ (e.getCustomExtensions = function (e) {
+ if (e && 'function' == typeof e.extensions)
+ return Object.entries(e.extensions() || {}).reduce(function (e, t) {
+ var n = t[0],
+ r = t[1];
+ return n.startsWith('x-parser-') || n.startsWith('x-schema-private-') || (e[n] = r), e;
+ }, {});
+ }),
+ (e.getDependentRequired = function (e, t) {
+ var n = [],
+ r = t.dependencies();
+ if (r) {
+ for (var i = 0, o = Object.entries(r); i < o.length; i++) {
+ var a = o[i],
+ s = a[0],
+ c = a[1];
+ Array.isArray(c) && c.includes(e) && n.push(s);
+ }
+ return n.length ? n : void 0;
+ }
+ }),
+ (e.getDependentSchemas = function (e) {
+ var t,
+ n = e.dependencies();
+ if (n) {
+ for (var r = {}, i = 0, o = Object.entries(n); i < o.length; i++) {
+ var a = o[i],
+ s = a[0],
+ c = a[1];
+ 'object' != typeof c || Array.isArray(c) || (r[s] = c);
+ }
+ if (Object.keys(r).length) {
+ var u =
+ (((t = {
+ type: 'object',
+ properties: Object.entries(r).reduce(function (e, t) {
+ var n = t[0],
+ r = t[1];
+ return (e[n] = Object.assign({}, r.json())), e;
+ }, {}),
+ })[this.extRenderType] = !1),
+ (t[this.extRenderAdditionalInfo] = !1),
+ t);
+ return new G.a(u);
+ }
+ }
+ }),
+ (e.toType = function (e, t) {
+ if (t.isCircular()) return e;
+ if ('array' === e) {
+ var n = t.items();
+ return Array.isArray(n)
+ ? this.toItemsType(n, t)
+ : 'array<'.concat(n ? this.toSchemaType(n) || K.UNKNOWN : K.ANY, '>');
+ }
+ return e;
+ }),
+ (e.toItemsType = function (e, t) {
+ var n = this,
+ r = e
+ .map(function (e) {
+ return n.toSchemaType(e);
+ })
+ .join(', '),
+ i = t.additionalItems();
+ if (void 0 === i || i.json()) {
+ var o = void 0 === i || !0 === i.json() ? K.ANY : this.toSchemaType(i);
+ return 'tuple<'.concat(r || K.UNKNOWN, ', ...optional<').concat(o, '>>');
+ }
+ return 'tuple<'.concat(r || K.UNKNOWN, '>');
+ }),
+ (e.toCombinedType = function (e) {
+ return e.oneOf() ? 'oneOf' : e.anyOf() ? 'anyOf' : e.allOf() ? 'allOf' : void 0;
+ }),
+ (e.inferType = function (e) {
+ var t = e.type();
+ if (void 0 !== t)
+ return Array.isArray(t)
+ ? (t.includes('integer') &&
+ t.includes('number') &&
+ (t = t.filter(function (e) {
+ return 'integer' !== e;
+ })),
+ 1 === t.length ? t[0] : t)
+ : t;
+ var n = e.const();
+ if (void 0 !== n) return typeof n;
+ var r = e.enum();
+ if (Array.isArray(r) && r.length) {
+ var i = Array.from(
+ new Set(
+ r.map(function (e) {
+ return typeof e;
+ })
+ )
+ );
+ return 1 === i.length ? i[0] : i;
+ }
+ var o = Object.keys(e.json() || {}) || [];
+ return !0 ===
+ Z.some(function (e) {
+ return o.includes(e);
+ })
+ ? K.RESTRICTED_ANY
+ : this.toCombinedType(e)
+ ? ''
+ : K.ANY;
+ }),
+ (e.humanizeNumberRangeConstraint = function (e, t, n, r) {
+ var i,
+ o = void 0 !== t,
+ a = void 0 !== e || o,
+ s = void 0 !== r,
+ c = void 0 !== n || s;
+ return (
+ a && c
+ ? ((i = o ? '( ' : '[ '), (i += o ? t : e), (i += ' .. '), (i += s ? r : n), (i += s ? ' )' : ' ]'))
+ : a
+ ? ((i = o ? '> ' : '>= '), (i += o ? t : e))
+ : c && ((i = s ? '< ' : '<= '), (i += s ? r : n)),
+ i
+ );
+ }),
+ (e.humanizeMultipleOfConstraint = function (e) {
+ if (void 0 !== e) {
+ var t = e.toString(10);
+ return /^0\.0*1$/.test(t)
+ ? 'decimal places <= '.concat(t.split('.')[1].length)
+ : 'multiple of '.concat(t);
+ }
+ }),
+ (e.humanizeRangeConstraint = function (e, t, n) {
+ var r;
+ return (
+ void 0 !== t && void 0 !== n
+ ? (r = t === n ? ''.concat(t, ' ').concat(e) : '[ '.concat(t, ' .. ').concat(n, ' ] ').concat(e))
+ : void 0 !== n
+ ? (r = '<= '.concat(n, ' ').concat(e))
+ : void 0 !== t && (r = 1 === t ? 'non-empty' : '>= '.concat(t, ' ').concat(e)),
+ r
+ );
+ }),
+ (e.jsonFieldToSchema = function (e) {
+ var t,
+ n,
+ r,
+ i,
+ o = this;
+ return null == e
+ ? (((t = { type: 'string', const: '' })[this.extRawValue] = !0), t)
+ : 'object' != typeof e
+ ? (((n = { type: 'string', const: 'function' == typeof e.toString ? e.toString() : e })[
+ this.extRawValue
+ ] = !0),
+ n)
+ : this.isJSONSchema(e)
+ ? e
+ : Array.isArray(e)
+ ? (((r = {
+ type: 'array',
+ items: e.map(function (e) {
+ return o.jsonFieldToSchema(e);
+ }),
+ })[this.extRenderType] = !1),
+ (r[this.extRenderAdditionalInfo] = !1),
+ r)
+ : (((i = {
+ type: 'object',
+ properties: Object.entries(e).reduce(function (e, t) {
+ var n = t[0],
+ r = t[1];
+ return (e[n] = o.jsonFieldToSchema(r)), e;
+ }, {}),
+ })[this.extRenderType] = !1),
+ (i[this.extRenderAdditionalInfo] = !1),
+ i);
+ }),
+ (e.isJSONSchema = function (e) {
+ return !(
+ !e ||
+ 'object' != typeof e ||
+ !(
+ Y.includes(e.type) ||
+ (Array.isArray(e.type) &&
+ e.type.some(function (e) {
+ return !Y.includes(e);
+ }))
+ )
+ );
+ }),
+ (e.extRenderType = 'x-schema-private-render-type'),
+ (e.extRenderAdditionalInfo = 'x-schema-private-render-additional-info'),
+ (e.extRawValue = 'x-schema-private-raw-value'),
+ (e.extParameterLocation = 'x-schema-private-parameter-location'),
+ e
+ );
+ })(),
+ ee = function (e) {
+ var t = e.name,
+ n = void 0 === t ? 'Extensions' : t,
+ r = e.item,
+ o = Q.getCustomExtensions(r);
+ if (!o || !Object.keys(o).length) return null;
+ var a = Q.jsonToSchema(o);
+ return (
+ a &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2' },
+ i.a.createElement(ne, { schemaName: n, schema: a, onlyTitle: !0 })
+ )
+ );
+ },
+ te = i.a.createContext({ reverse: !1, deepExpanded: !1 }),
+ ne = function (e) {
+ var t = e.schemaName,
+ n = e.schema,
+ o = e.required,
+ a = void 0 !== o && o,
+ s = e.isPatternProperty,
+ c = void 0 !== s && s,
+ u = e.isProperty,
+ l = void 0 !== u && u,
+ p = e.isCircular,
+ f = void 0 !== p && p,
+ h = e.dependentRequired,
+ d = e.expanded,
+ y = void 0 !== d && d,
+ g = e.onlyTitle,
+ v = void 0 !== g && g,
+ b = Object(r.useContext)(te),
+ x = b.reverse,
+ w = b.deepExpanded,
+ E = Object(r.useState)(y),
+ _ = E[0],
+ j = E[1],
+ S = Object(r.useState)(!1),
+ D = S[0],
+ A = S[1];
+ if (
+ (Object(r.useEffect)(
+ function () {
+ A(w);
+ },
+ [w, A]
+ ),
+ Object(r.useEffect)(
+ function () {
+ j(D);
+ },
+ [D, j]
+ ),
+ !n ||
+ ('string' == typeof t &&
+ ((null == t ? void 0 : t.startsWith('x-parser-')) ||
+ (null == t ? void 0 : t.startsWith('x-schema-private-')))))
+ )
+ return null;
+ var k = Q.getDependentSchemas(n),
+ P = Q.humanizeConstraints(n),
+ T = n.externalDocs(),
+ $ = !1 !== n.ext(Q.extRenderType),
+ O = !0 === n.ext(Q.extRawValue),
+ F = n.ext(Q.extParameterLocation),
+ I = Q.isExpandable(n) || k,
+ N = Q.toSchemaType(n);
+ f = f || n.isCircular() || n.ext('x-parser-circular') || !1;
+ var R = n.uid(),
+ B = n.items();
+ B && !Array.isArray(B)
+ ? (f = f || B.isCircular() || B.ext('x-parser-circular') || !1) &&
+ 'function' == typeof B.circularSchema &&
+ (N = Q.toSchemaType(B.circularSchema()))
+ : f && 'function' == typeof n.circularSchema && (N = Q.toSchemaType(n.circularSchema()));
+ var M = l ? 'italic' : '',
+ L =
+ 'string' == typeof t ? i.a.createElement('span', { className: 'break-words text-sm '.concat(M) }, t) : t;
+ return i.a.createElement(
+ te.Provider,
+ { value: { reverse: !x, deepExpanded: D } },
+ i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ 'div',
+ { className: 'flex py-2' },
+ i.a.createElement(
+ 'div',
+ { className: ''.concat(v ? '' : 'min-w-1/4', ' mr-2') },
+ I && !f
+ ? i.a.createElement(
+ i.a.Fragment,
+ null,
+ i.a.createElement(
+ m,
+ {
+ onClick: function () {
+ return j(function (e) {
+ return !e;
+ });
+ },
+ expanded: _,
+ },
+ L
+ ),
+ i.a.createElement(
+ 'button',
+ {
+ type: 'button',
+ onClick: function () {
+ return A(function (e) {
+ return !e;
+ });
+ },
+ className: 'ml-1 text-sm text-gray-500',
+ },
+ D ? 'Collapse all' : 'Expand all'
+ )
+ )
+ : i.a.createElement('span', { className: 'break-words text-sm '.concat(l ? 'italic' : '') }, t),
+ c && i.a.createElement('div', { className: 'text-gray-500 text-xs italic' }, '(pattern property)'),
+ a && i.a.createElement('div', { className: 'text-red-600 text-xs' }, 'required'),
+ h &&
+ i.a.createElement(
+ i.a.Fragment,
+ null,
+ i.a.createElement('div', { className: 'text-gray-500 text-xs' }, 'required when defined:'),
+ i.a.createElement('div', { className: 'text-red-600 text-xs' }, h.join(', '))
+ ),
+ n.deprecated() && i.a.createElement('div', { className: 'text-red-600 text-xs' }, 'deprecated'),
+ n.writeOnly() && i.a.createElement('div', { className: 'text-gray-500 text-xs' }, 'write-only'),
+ n.readOnly() && i.a.createElement('div', { className: 'text-gray-500 text-xs' }, 'read-only')
+ ),
+ O
+ ? i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement('div', { className: 'text-sm' }, Q.prettifyValue(n.const(), !1))
+ )
+ : i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ 'div',
+ null,
+ $ &&
+ i.a.createElement(
+ 'div',
+ { className: 'capitalize text-sm text-teal-500 font-bold inline-block mr-2' },
+ f ? ''.concat(N, ' [CIRCULAR]') : N
+ ),
+ i.a.createElement(
+ 'div',
+ { className: 'inline-block' },
+ n.format() &&
+ i.a.createElement(
+ 'span',
+ {
+ className:
+ 'bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs',
+ },
+ 'format: ',
+ n.format()
+ ),
+ void 0 !== n.pattern() &&
+ i.a.createElement(
+ 'span',
+ { className: 'bg-yellow-600 font-bold no-underline text-white rounded mr-2 p-1 text-xs' },
+ 'must match: ',
+ n.pattern()
+ ),
+ void 0 !== n.contentMediaType() &&
+ i.a.createElement(
+ 'span',
+ {
+ className:
+ 'bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs',
+ },
+ 'media type: ',
+ n.contentMediaType()
+ ),
+ void 0 !== n.contentEncoding() &&
+ i.a.createElement(
+ 'span',
+ {
+ className:
+ 'bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs',
+ },
+ 'encoding: ',
+ n.contentEncoding()
+ ),
+ !!P.length &&
+ P.map(function (e) {
+ return i.a.createElement(
+ 'span',
+ {
+ className:
+ 'bg-purple-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs',
+ key: e,
+ },
+ e
+ );
+ }),
+ R &&
+ !R.startsWith(' e.length ? e.repeat(Math.trunc(t / e.length) + 1).substring(0, t) : e;
+ }
+ function de(...e) {
+ const t = (e) => e && 'object' == typeof e;
+ return e.reduce(
+ (e, n) => (
+ Object.keys(n || {}).forEach((r) => {
+ const i = e[r],
+ o = n[r];
+ t(i) && t(o) ? (e[r] = de(i, o)) : (e[r] = o);
+ }),
+ e
+ ),
+ Array.isArray(e[e.length - 1]) ? [] : {}
+ );
+ }
+ function me(e) {
+ return { value: 'object' === e ? {} : 'array' === e ? [] : void 0 };
+ }
+ function ye(e, t) {
+ t && e.pop();
+ }
+ const ge = {
+ multipleOf: 'number',
+ maximum: 'number',
+ exclusiveMaximum: 'number',
+ minimum: 'number',
+ exclusiveMinimum: 'number',
+ maxLength: 'string',
+ minLength: 'string',
+ pattern: 'string',
+ items: 'array',
+ maxItems: 'array',
+ minItems: 'array',
+ uniqueItems: 'array',
+ additionalItems: 'array',
+ maxProperties: 'object',
+ minProperties: 'object',
+ required: 'object',
+ additionalProperties: 'object',
+ properties: 'object',
+ patternProperties: 'object',
+ dependencies: 'object',
+ };
+ function ve(e) {
+ if (void 0 !== e.type) return Array.isArray(e.type) ? (0 === e.type.length ? null : e.type[0]) : e.type;
+ const t = Object.keys(ge);
+ for (var n = 0; n < t.length; n++) {
+ let r = t[n],
+ i = ge[r];
+ if (void 0 !== e[r]) return i;
+ }
+ return null;
+ }
+ var be = n(112),
+ xe = n.n(be);
+ let we = {},
+ Ee = [];
+ function _e(e) {
+ let t;
+ return (
+ void 0 !== e.const
+ ? (t = e.const)
+ : void 0 !== e.examples && e.examples.length
+ ? (t = e.examples[0])
+ : void 0 !== e.enum && e.enum.length
+ ? (t = e.enum[0])
+ : void 0 !== e.default && (t = e.default),
+ t
+ );
+ }
+ function je(e) {
+ const t = _e(e);
+ if (void 0 !== t) return { value: t, readOnly: e.readOnly, writeOnly: e.writeOnly, type: null };
+ }
+ function Se(e, t, n, r) {
+ if (r) {
+ if (Ee.includes(e)) return me(ve(e));
+ Ee.push(e);
+ }
+ if (r && r.depth > t.maxSampleDepth) return ye(Ee, r), me(ve(e));
+ if (e.$ref) {
+ if (!n)
+ throw new Error('Your schema contains $ref. You must provide full specification in the third parameter.');
+ let i = decodeURIComponent(e.$ref);
+ i.startsWith('#') && (i = i.substring(1));
+ const o = xe.a.get(n, i);
+ let a;
+ if (!0 !== we[i]) (we[i] = !0), (a = Se(o, t, n, r)), (we[i] = !1);
+ else {
+ a = me(ve(o));
+ }
+ return ye(Ee, r), a;
+ }
+ if (void 0 !== e.example)
+ return ye(Ee, r), { value: e.example, readOnly: e.readOnly, writeOnly: e.writeOnly, type: e.type };
+ if (void 0 !== e.allOf)
+ return (
+ ye(Ee, r),
+ je(e) ||
+ (function (e, t, n, r, i) {
+ let o = Se(e, n, r);
+ const a = [];
+ for (let e of t) {
+ const { type: t, readOnly: s, writeOnly: c, value: u } = Se({ type: o.type, ...e }, n, r, i);
+ o.type &&
+ t &&
+ t !== o.type &&
+ (console.warn("allOf: schemas with different types can't be merged"), (o.type = t)),
+ (o.type = o.type || t),
+ (o.readOnly = o.readOnly || s),
+ (o.writeOnly = o.writeOnly || c),
+ null != u && a.push(u);
+ }
+ if ('object' === o.type)
+ return (o.value = de(o.value || {}, ...a.filter((e) => 'object' == typeof e))), o;
+ {
+ 'array' === o.type &&
+ (n.quiet ||
+ console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));
+ const e = a[a.length - 1];
+ return (o.value = null != e ? e : o.value), o;
+ }
+ })({ ...e, allOf: void 0 }, e.allOf, t, n, r)
+ );
+ if (e.oneOf && e.oneOf.length) {
+ e.anyOf && (t.quiet || console.warn('oneOf and anyOf are not supported on the same level. Skipping anyOf')),
+ ye(Ee, r);
+ return a(e, Object.assign({ readOnly: e.readOnly, writeOnly: e.writeOnly }, e.oneOf[0]));
+ }
+ if (e.anyOf && e.anyOf.length) {
+ ye(Ee, r);
+ return a(e, Object.assign({ readOnly: e.readOnly, writeOnly: e.writeOnly }, e.anyOf[0]));
+ }
+ if (e.if && e.then) {
+ ye(Ee, r);
+ const { if: i, then: o, ...a } = e;
+ return Se(de(a, i, o), t, n, r);
+ }
+ let i = _e(e),
+ o = null;
+ if (void 0 === i) {
+ (i = null), (o = e.type), Array.isArray(o) && e.type.length > 0 && (o = e.type[0]), o || (o = ve(e));
+ let a = Pe[o];
+ a && (i = a(e, t, n, r));
+ }
+ return ye(Ee, r), { value: i, readOnly: e.readOnly, writeOnly: e.writeOnly, type: o };
+ function a(e, i) {
+ const o = je(e);
+ if (void 0 !== o) return o;
+ const a = Se({ ...e, oneOf: void 0, anyOf: void 0 }, t, n, r),
+ s = Se(i, t, n, r);
+ if ('object' == typeof a.value && 'object' == typeof s.value) {
+ const e = de(a.value, s.value);
+ return { ...s, value: e };
+ }
+ return s;
+ }
+ }
+ function De(e) {
+ let t = 0;
+ if ('boolean' == typeof e.exclusiveMinimum || 'boolean' == typeof e.exclusiveMaximum) {
+ if (e.maximum && e.minimum)
+ return (
+ (t = e.exclusiveMinimum ? Math.floor(e.minimum) + 1 : e.minimum),
+ ((e.exclusiveMaximum && t >= e.maximum) || (!e.exclusiveMaximum && t > e.maximum)) &&
+ (t = (e.maximum + e.minimum) / 2),
+ t
+ );
+ if (e.minimum) return e.exclusiveMinimum ? Math.floor(e.minimum) + 1 : e.minimum;
+ if (e.maximum)
+ return e.exclusiveMaximum ? (e.maximum > 0 ? 0 : Math.floor(e.maximum) - 1) : e.maximum > 0 ? 0 : e.maximum;
+ } else {
+ if (e.minimum) return e.minimum;
+ e.exclusiveMinimum
+ ? ((t = Math.floor(e.exclusiveMinimum) + 1),
+ t === e.exclusiveMaximum && (t = (t + Math.floor(e.exclusiveMaximum) - 1) / 2))
+ : e.exclusiveMaximum
+ ? (t = Math.floor(e.exclusiveMaximum) - 1)
+ : e.maximum && (t = e.maximum);
+ }
+ return t;
+ }
+ function Ae({ min: e, max: t, omitTime: n, omitDate: r }) {
+ let i = (function (e, t, n, r) {
+ var i = n ? '' : e.getUTCFullYear() + '-' + fe(e.getUTCMonth() + 1) + '-' + fe(e.getUTCDate());
+ return (
+ t ||
+ (i +=
+ 'T' +
+ fe(e.getUTCHours()) +
+ ':' +
+ fe(e.getUTCMinutes()) +
+ ':' +
+ fe(e.getUTCSeconds()) +
+ (r ? '.' + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) : '') +
+ 'Z'),
+ i
+ );
+ })(new Date('2019-08-24T14:15:22.123Z'), n, r, !1);
+ return (
+ i.length < e && console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),
+ t && i.length > t && console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),
+ i
+ );
+ }
+ function ke(e, t) {
+ let n = he('string', e);
+ return t && n.length > t && (n = n.substring(0, t)), n;
+ }
+ const Ce = {
+ email: function () {
+ return 'user@example.com';
+ },
+ 'idn-email': function () {
+ return 'пошта@укр.нет';
+ },
+ password: function (e, t) {
+ let n = 'pa$$word';
+ return (
+ e > n.length && ((n += '_'), (n += he('qwerty!@#$%^123456', e - n.length).substring(0, e - n.length))), n
+ );
+ },
+ 'date-time': function (e, t) {
+ return Ae({ min: e, max: t, omitTime: !1, omitDate: !1 });
+ },
+ date: function (e, t) {
+ return Ae({ min: e, max: t, omitTime: !0, omitDate: !1 });
+ },
+ time: function (e, t) {
+ return Ae({ min: e, max: t, omitTime: !1, omitDate: !0 }).slice(1);
+ },
+ ipv4: function () {
+ return '192.168.0.1';
+ },
+ ipv6: function () {
+ return '2001:0db8:85a3:0000:0000:8a2e:0370:7334';
+ },
+ hostname: function () {
+ return 'example.com';
+ },
+ 'idn-hostname': function () {
+ return 'приклад.укр';
+ },
+ iri: function () {
+ return 'http://example.com/entity/1';
+ },
+ 'iri-reference': function () {
+ return '/entity/1';
+ },
+ uri: function () {
+ return 'http://example.com';
+ },
+ 'uri-reference': function () {
+ return '../dictionary';
+ },
+ 'uri-template': function () {
+ return 'http://example.com/{endpoint}';
+ },
+ uuid: function (e, t, n) {
+ return (
+ (s = (function (e) {
+ var t = 0;
+ if (0 == e.length) return t;
+ for (var n = 0; n < e.length; n++) {
+ var r = e.charCodeAt(n);
+ (t = (t << 5) - t + r), (t &= t);
+ }
+ return t;
+ })(n || 'id')),
+ (r = s),
+ (i = s),
+ (o = s),
+ (a = s),
+ (c = function () {
+ var e = ((r |= 0) - (((i |= 0) << 27) | (i >>> 5))) | 0;
+ return (
+ (r = i ^ (((o |= 0) << 17) | (o >>> 15))),
+ (i = (o + (a |= 0)) | 0),
+ (o = (a + e) | 0),
+ ((a = (r + e) | 0) >>> 0) / 4294967296
+ );
+ }),
+ 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (e) => {
+ var t = (16 * c()) % 16 | 0;
+ return ('x' == e ? t : (3 & t) | 8).toString(16);
+ })
+ );
+ var r, i, o, a, s, c;
+ },
+ default: ke,
+ 'json-pointer': function () {
+ return '/json/pointer';
+ },
+ 'relative-json-pointer': function () {
+ return '1/relative/json/pointer';
+ },
+ regex: function () {
+ return '/regex/';
+ },
+ };
+ var Pe = {};
+ const Te = { skipReadOnly: !1, maxSampleDepth: 15 };
+ function $e(e, t, n) {
+ let r = Object.assign({}, Te, t);
+ return (we = {}), (Ee = []), Se(e, r, n).value;
+ }
+ function Oe(e, t) {
+ Pe[e] = t;
+ }
+ Oe('array', function (e, t = {}, n, r) {
+ const i = (r && r.depth) || 1;
+ let o = Math.min(null != e.maxItems ? e.maxItems : 1 / 0, e.minItems || 1);
+ const a = e.prefixItems || e.items || e.contains;
+ Array.isArray(a) && (o = Math.max(o, a.length));
+ let s = [];
+ if (!a) return s;
+ for (let e = 0; e < o; e++) {
+ let r = ((c = e), Array.isArray(a) ? a[c] || {} : a || {}),
+ { value: o } = Se(r, t, n, { depth: i + 1 });
+ s.push(o);
+ }
+ var c;
+ return s;
+ }),
+ Oe('boolean', function (e) {
+ return !0;
+ }),
+ Oe('integer', De),
+ Oe('number', De),
+ Oe('object', function (e, t = {}, n, r) {
+ let i = {};
+ const o = (r && r.depth) || 1;
+ if (e && 'object' == typeof e.properties) {
+ let r = (Array.isArray(e.required) ? e.required : []).reduce((e, t) => ((e[t] = !0), e), {});
+ Object.keys(e.properties).forEach((a) => {
+ if (t.skipNonRequired && !r.hasOwnProperty(a)) return;
+ const s = Se(e.properties[a], t, n, { propertyName: a, depth: o + 1 });
+ (t.skipReadOnly && s.readOnly) || (t.skipWriteOnly && s.writeOnly) || (i[a] = s.value);
+ });
+ }
+ if (e && 'object' == typeof e.additionalProperties) {
+ const r = e.additionalProperties['x-additionalPropertiesName'] || 'property';
+ (i[String(r) + '1'] = Se(e.additionalProperties, t, n, { depth: o + 1 }).value),
+ (i[String(r) + '2'] = Se(e.additionalProperties, t, n, { depth: o + 1 }).value);
+ }
+ return i;
+ }),
+ Oe('string', function (e, t, n, r) {
+ let i = e.format || 'default',
+ o = Ce[i] || ke,
+ a = r && r.propertyName;
+ return o(0 | e.minLength, e.maxLength, a);
+ });
+ var Fe,
+ Ie = (function () {
+ function e() {}
+ return (
+ (e.generateExample = function (e, t) {
+ void 0 === t && (t = {});
+ try {
+ return this.sanitizeExample($e(e, t)) || '';
+ } catch (e) {
+ return '';
+ }
+ }),
+ (e.sanitizeExample = function (e) {
+ var t = this;
+ return 'object' == typeof e && e && !Array.isArray(e)
+ ? Object.entries(e).reduce(function (e, n) {
+ var r = n[0],
+ i = n[1];
+ return (
+ r.startsWith('x-parser-') || r.startsWith('x-schema-private-') || (e[r] = t.sanitizeExample(i)), e
+ );
+ }, {})
+ : e;
+ }),
+ (e.getPayloadExamples = function (e) {
+ var t = e.examples();
+ if (
+ Array.isArray(t) &&
+ t.some(function (e) {
+ return e.payload;
+ })
+ ) {
+ var n = t
+ .flatMap(function (e) {
+ if (e.payload) return { name: e.name, summary: e.summary, example: e.payload };
+ })
+ .filter(Boolean);
+ if (n.length > 0) return n;
+ }
+ var r = e.payload();
+ if (r && r.examples())
+ return r.examples().map(function (e) {
+ return { example: e };
+ });
+ }),
+ (e.getHeadersExamples = function (e) {
+ var t = e.examples();
+ if (
+ Array.isArray(t) &&
+ t.some(function (e) {
+ return e.headers;
+ })
+ ) {
+ var n = t
+ .flatMap(function (e) {
+ if (e.headers) return { name: e.name, summary: e.summary, example: e.headers };
+ })
+ .filter(Boolean);
+ if (n.length > 0) return n;
+ }
+ var r = e.headers();
+ if (r && r.examples())
+ return r.examples().map(function (e) {
+ return { example: e };
+ });
+ }),
+ e
+ );
+ })(),
+ Ne = function (e) {
+ var t = e.message;
+ if (!t) return null;
+ var n = t.payload(),
+ r = t.headers();
+ return i.a.createElement(
+ 'div',
+ { className: 'bg-gray-800 px-8 py-4 mt-4 -mx-8 2xl:mx-0 2xl:px-4 2xl:rounded examples' },
+ i.a.createElement('h4', { className: 'text-white text-lg' }, 'Examples'),
+ n && i.a.createElement(Re, { type: 'Payload', schema: n, examples: Ie.getPayloadExamples(t) }),
+ r && i.a.createElement(Re, { type: 'Headers', schema: r, examples: Ie.getHeadersExamples(t) })
+ );
+ },
+ Re = function (e) {
+ var t = e.type,
+ n = void 0 === t ? 'Payload' : t,
+ o = e.schema,
+ a = e.examples,
+ s = void 0 === a ? [] : a,
+ c = b(),
+ u = Object(r.useState)((c && c.expand && c.expand.messageExamples) || !1),
+ l = u[0],
+ p = u[1];
+ return (
+ Object(r.useEffect)(
+ function () {
+ p((c && c.expand && c.expand.messageExamples) || !1);
+ },
+ [c.expand]
+ ),
+ i.a.createElement(
+ 'div',
+ { className: 'mt-4' },
+ i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ m,
+ {
+ onClick: function () {
+ return p(function (e) {
+ return !e;
+ });
+ },
+ expanded: l,
+ chevronProps: { className: 'fill-current text-gray-200' },
+ },
+ i.a.createElement(
+ 'span',
+ {
+ className:
+ 'inline-block w-20 py-0.5 mr-1 text-gray-200 text-sm border text-center rounded focus:outline-none',
+ },
+ n
+ )
+ )
+ ),
+ i.a.createElement(
+ 'div',
+ { className: l ? 'block' : 'hidden' },
+ s && s.length > 0
+ ? i.a.createElement(
+ 'ul',
+ null,
+ s.map(function (e, t) {
+ return i.a.createElement(
+ 'li',
+ { className: 'mt-4', key: t },
+ i.a.createElement(
+ 'h5',
+ { className: 'text-xs font-bold text-gray-500' },
+ e.name ? '#'.concat(t + 1, ' Example - ').concat(e.name) : '#'.concat(t + 1, ' Example')
+ ),
+ e.summary &&
+ i.a.createElement('p', { className: 'text-xs font-bold text-gray-500' }, e.summary),
+ i.a.createElement(
+ 'div',
+ { className: 'mt-1' },
+ i.a.createElement(pe, { snippet: Ie.sanitizeExample(e.example) })
+ )
+ );
+ })
+ )
+ : i.a.createElement(
+ 'div',
+ { className: 'mt-4' },
+ i.a.createElement(pe, { snippet: Ie.generateExample(o.json()) }),
+ i.a.createElement(
+ 'h6',
+ { className: 'text-xs font-bold text-gray-600 italic mt-2' },
+ 'This example has been generated automatically.'
+ )
+ )
+ )
+ )
+ );
+ },
+ Be = function (e) {
+ var t = e.message,
+ n = e.messageName,
+ r = e.index,
+ o = e.showExamples,
+ a = void 0 !== o && o,
+ s = b();
+ if (!t) return null;
+ var c = 'function' == typeof t.id && t.id(),
+ u = t.title(),
+ l = t.summary(),
+ p = t.payload(),
+ f = t.headers(),
+ h = t.correlationId(),
+ d = t.contentType(),
+ m = t.externalDocs(),
+ y = d || m;
+ return i.a.createElement(
+ 'div',
+ { className: 'panel-item' },
+ i.a.createElement(
+ 'div',
+ { className: 'panel-item--center px-8' },
+ i.a.createElement(
+ 'div',
+ { className: 'shadow rounded bg-gray-200 p-4 border' },
+ i.a.createElement(
+ 'div',
+ null,
+ void 0 !== r && i.a.createElement('span', { className: 'text-gray-700 font-bold mr-2' }, '#', r),
+ u && i.a.createElement('span', { className: 'text-gray-700 mr-2' }, u),
+ i.a.createElement('span', { className: 'border text-orange-600 rounded text-xs py-0 px-2' }, t.uid())
+ ),
+ l && i.a.createElement('p', { className: 'text-gray-600 text-sm' }, l),
+ y &&
+ i.a.createElement(
+ 'ul',
+ { className: 'leading-normal mt-2 mb-4 space-x-2 space-y-2' },
+ d &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: ''.concat('https://www.iana.org/assignments/media-types', '/').concat(d),
+ },
+ i.a.createElement('span', null, d)
+ )
+ ),
+ m &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: m.url(),
+ },
+ i.a.createElement('span', null, 'External Docs')
+ )
+ )
+ ),
+ c &&
+ i.a.createElement(
+ 'div',
+ { className: 'border bg-gray-100 rounded px-4 py-2 mt-2' },
+ i.a.createElement(
+ 'div',
+ { className: 'text-sm text-gray-700' },
+ 'Message ID',
+ i.a.createElement(
+ 'span',
+ { className: 'border text-orange-600 rounded text-xs ml-2 py-0 px-2' },
+ c
+ )
+ )
+ ),
+ h &&
+ i.a.createElement(
+ 'div',
+ { className: 'border bg-gray-100 rounded px-4 py-2 mt-2' },
+ i.a.createElement(
+ 'div',
+ { className: 'text-sm text-gray-700' },
+ 'Correlation ID',
+ i.a.createElement(
+ 'span',
+ { className: 'border text-orange-600 rounded text-xs ml-2 py-0 px-2' },
+ h.location()
+ )
+ ),
+ h.hasDescription() &&
+ i.a.createElement('div', { className: 'mt-2' }, i.a.createElement(z, null, h.description()))
+ ),
+ t.hasDescription() &&
+ i.a.createElement('div', { className: 'mt-2' }, i.a.createElement(z, null, t.description())),
+ p &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2', id: n ? ce.getIdentifier('message-'.concat(n, '-payload'), s) : void 0 },
+ i.a.createElement(ne, { schemaName: 'Payload', schema: p })
+ ),
+ f &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2', id: n ? ce.getIdentifier('message-'.concat(n, '-headers'), s) : void 0 },
+ i.a.createElement(ne, { schemaName: 'Headers', schema: f })
+ ),
+ t.hasBindings() &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2' },
+ i.a.createElement(se, { name: 'Message specific information', bindings: t.bindings() })
+ ),
+ i.a.createElement(ee, { item: t }),
+ t.hasTags() && i.a.createElement('div', { className: 'mt-2' }, i.a.createElement(q, { tags: t.tags() }))
+ )
+ ),
+ a &&
+ i.a.createElement('div', { className: 'panel-item--right px-8' }, i.a.createElement(Ne, { message: t }))
+ );
+ };
+ !(function (e) {
+ (e.PUBLISH = 'publish'), (e.SUBSCRIBE = 'subscribe');
+ })(Fe || (Fe = {}));
+ var Me,
+ Le = function () {
+ return (Le =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var i in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
+ return e;
+ }).apply(this, arguments);
+ },
+ ze = function (e) {
+ var t = b(),
+ n = e.type,
+ r = void 0 === n ? Fe.PUBLISH : n,
+ o = e.operation,
+ a = e.channelName,
+ s = e.channel;
+ if (!o || !s) return null;
+ var c = 'function' == typeof s.servers && s.servers(),
+ u = 'function' == typeof o.security && o.security(),
+ l = Q.parametersToSchema(s.parameters());
+ return i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ 'div',
+ { className: 'panel-item--center px-8' },
+ i.a.createElement(Ue, Le({}, e)),
+ c && c.length > 0
+ ? i.a.createElement(
+ 'div',
+ { className: 'mt-2 text-sm' },
+ i.a.createElement('p', null, 'Available only on servers:'),
+ i.a.createElement(
+ 'ul',
+ { className: 'flex flex-wrap leading-normal' },
+ c.map(function (e) {
+ return i.a.createElement(
+ 'li',
+ { className: 'inline-block mt-2 mr-2', key: e },
+ i.a.createElement(
+ 'a',
+ {
+ href: '#'.concat(ce.getIdentifier('server-' + e, t)),
+ className:
+ 'border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1 cursor-pointer',
+ },
+ i.a.createElement('span', { className: 'underline' }, e)
+ )
+ );
+ })
+ )
+ )
+ : null,
+ l &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2', id: ce.getIdentifier('operation-'.concat(r, '-').concat(a, '-parameters'), t) },
+ i.a.createElement(ne, { schemaName: 'Parameters', schema: l, expanded: !0 })
+ ),
+ u &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2', id: ce.getIdentifier('operation-'.concat(r, '-').concat(a, '-security'), t) },
+ i.a.createElement(J, { security: u, header: 'Additional security requirements' })
+ ),
+ s.hasBindings() &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2' },
+ i.a.createElement(se, { name: 'Channel specific information', bindings: s.bindings() })
+ ),
+ i.a.createElement(ee, { name: 'Channel Extensions', item: s }),
+ o.hasBindings() &&
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2' },
+ i.a.createElement(se, { name: 'Operation specific information', bindings: o.bindings() })
+ ),
+ i.a.createElement(ee, { name: 'Operation Extensions', item: o }),
+ o.hasTags() && i.a.createElement('div', { className: 'mt-2' }, i.a.createElement(q, { tags: o.tags() }))
+ ),
+ i.a.createElement(
+ 'div',
+ { className: 'w-full mt-4', id: ce.getIdentifier('operation-'.concat(r, '-').concat(a, '-message'), t) },
+ o.hasMultipleMessages()
+ ? i.a.createElement(
+ 'div',
+ { className: 'mt-2' },
+ i.a.createElement(
+ 'p',
+ { className: 'px-8' },
+ 'Accepts ',
+ i.a.createElement('strong', null, 'one of'),
+ ' the following messages:'
+ ),
+ i.a.createElement(
+ 'ul',
+ null,
+ o.messages().map(function (e, t) {
+ return i.a.createElement(
+ 'li',
+ { className: 'mt-4', key: t },
+ i.a.createElement(Be, { message: e, index: t, showExamples: !0 })
+ );
+ })
+ )
+ )
+ : i.a.createElement(
+ 'div',
+ { className: 'mt-2' },
+ i.a.createElement('p', { className: 'px-8' }, 'Accepts the following message:'),
+ i.a.createElement(
+ 'div',
+ { className: 'mt-2' },
+ i.a.createElement(Be, { message: o.message(0), showExamples: !0 })
+ )
+ )
+ )
+ );
+ },
+ Ue = function (e) {
+ var t = e.type,
+ n = void 0 === t ? Fe.PUBLISH : t,
+ r = e.operation,
+ o = e.channelName,
+ a = e.channel,
+ s = b(),
+ c = r.summary(),
+ u = r.externalDocs(),
+ l = r.id();
+ return i.a.createElement(
+ i.a.Fragment,
+ null,
+ i.a.createElement(
+ 'div',
+ { className: 'mb-4' },
+ i.a.createElement(
+ 'h3',
+ null,
+ i.a.createElement(
+ 'span',
+ {
+ className: 'font-mono border uppercase p-1 rounded mr-2 '.concat(
+ n === Fe.PUBLISH ? 'border-blue-600 text-blue-500' : 'border-green-600 text-green-600'
+ ),
+ title: n,
+ },
+ n === Fe.PUBLISH ? s.publishLabel || 'PUB' : s.subscribeLabel || 'SUB'
+ ),
+ ' ',
+ i.a.createElement('span', { className: 'font-mono text-base' }, o)
+ )
+ ),
+ a.hasDescription() &&
+ i.a.createElement('div', { className: 'mt-2' }, i.a.createElement(z, null, a.description())),
+ c && i.a.createElement('p', { className: 'text-gray-600 text-sm mt-2' }, c),
+ r.hasDescription() &&
+ i.a.createElement('div', { className: 'mt-2' }, i.a.createElement(z, null, r.description())),
+ u &&
+ i.a.createElement(
+ 'ul',
+ { className: 'leading-normal mt-2 mb-4 space-x-2 space-y-2' },
+ u &&
+ i.a.createElement(
+ 'li',
+ { className: 'inline-block' },
+ i.a.createElement(
+ C,
+ {
+ className:
+ 'border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1',
+ href: u.url(),
+ },
+ i.a.createElement('span', null, 'External Docs')
+ )
+ )
+ ),
+ l &&
+ i.a.createElement(
+ 'div',
+ { className: 'border bg-gray-100 rounded px-4 py-2 mt-2' },
+ i.a.createElement(
+ 'div',
+ { className: 'text-sm text-gray-700' },
+ 'Operation ID',
+ i.a.createElement('span', { className: 'border text-orange-600 rounded text-xs ml-2 py-0 px-2' }, l)
+ )
+ )
+ );
+ },
+ qe = function () {
+ var e = g().channels(),
+ t = b();
+ if (!Object.keys(e).length) return null;
+ var n = [];
+ return (
+ Object.entries(e).forEach(function (e) {
+ var r = e[0],
+ o = e[1];
+ o.hasPublish() &&
+ n.push(
+ i.a.createElement(
+ 'li',
+ {
+ className: 'mb-12',
+ key: 'pub-'.concat(r),
+ id: ce.getIdentifier('operation-'.concat(Fe.PUBLISH, '-').concat(r), t),
+ },
+ i.a.createElement(ze, { type: Fe.PUBLISH, operation: o.publish(), channelName: r, channel: o })
+ )
+ ),
+ o.hasSubscribe() &&
+ n.push(
+ i.a.createElement(
+ 'li',
+ {
+ className: 'mb-12',
+ key: 'sub-'.concat(r),
+ id: ce.getIdentifier('operation-'.concat(Fe.SUBSCRIBE, '-').concat(r), t),
+ },
+ i.a.createElement(ze, {
+ type: Fe.SUBSCRIBE,
+ operation: o.subscribe(),
+ channelName: r,
+ channel: o,
+ })
+ )
+ );
+ }),
+ i.a.createElement(
+ 'section',
+ { id: ''.concat(ce.getIdentifier('operations', t)), className: 'mt-16' },
+ i.a.createElement('h2', { className: '2xl:w-7/12 text-3xl font-light mb-4 px-8' }, 'Operations'),
+ i.a.createElement('ul', null, n)
+ )
+ );
+ },
+ He = function () {
+ var e = g(),
+ t = b(),
+ n = e.hasComponents() && e.components().messages();
+ return n && 0 !== Object.keys(n).length
+ ? i.a.createElement(
+ 'section',
+ { id: ''.concat(ce.getIdentifier('messages', t)), className: 'mt-16' },
+ i.a.createElement('h2', { className: '2xl:w-7/12 text-3xl font-light mb-4 px-8' }, 'Messages'),
+ i.a.createElement(
+ 'ul',
+ null,
+ Object.entries(n).map(function (e, n) {
+ var r = e[0],
+ o = e[1];
+ return i.a.createElement(
+ 'li',
+ { className: 'mb-4', key: r, id: ce.getIdentifier('message-'.concat(r), t) },
+ i.a.createElement(Be, { messageName: r, message: o, index: n + 1, key: r })
+ );
+ })
+ )
+ )
+ : null;
+ },
+ Ve = function (e) {
+ var t = e.schemaName,
+ n = e.schema;
+ return n
+ ? i.a.createElement(
+ 'div',
+ null,
+ i.a.createElement(
+ 'div',
+ { className: 'panel-item--center px-8' },
+ i.a.createElement(
+ 'div',
+ { className: 'shadow rounded px-4 py-2 border bg-gray-200' },
+ i.a.createElement(ne, { schemaName: t, schema: n })
+ )
+ ),
+ i.a.createElement('div', { className: 'w-full mt-4' })
+ )
+ : null;
+ },
+ Je = function () {
+ var e = g(),
+ t = b(),
+ n = e.hasComponents() && e.components().schemas();
+ return n && 0 !== Object.keys(n).length
+ ? i.a.createElement(
+ 'section',
+ { id: ''.concat(ce.getIdentifier('schemas', t)), className: 'mt-16' },
+ i.a.createElement('h2', { className: '2xl:w-7/12 text-3xl font-light mb-4 px-8' }, 'Schemas'),
+ i.a.createElement(
+ 'ul',
+ null,
+ Object.entries(n).map(function (e) {
+ var n = e[0],
+ r = e[1];
+ return i.a.createElement(
+ 'li',
+ { className: 'mb-4', key: n, id: ce.getIdentifier('schema-'.concat(n), t) },
+ i.a.createElement(Ve, { schemaName: n, schema: r })
+ );
+ })
+ )
+ )
+ : null;
+ },
+ Ke = function (e) {
+ var t = e.error;
+ if (!t) return null;
+ var n,
+ r = t.title,
+ o = t.validationErrors;
+ return i.a.createElement(
+ 'div',
+ { className: 'panel-item' },
+ i.a.createElement(
+ 'div',
+ { className: 'panel-item--center p-8' },
+ i.a.createElement(
+ 'section',
+ { className: 'shadow rounded bg-gray-200 border-red-500 border-l-8' },
+ i.a.createElement('h2', { className: 'p-2' }, r ? ''.concat('Error', ': ').concat(r) : 'Error'),
+ o && o.length
+ ? i.a.createElement(
+ 'div',
+ { className: 'bg-gray-800 text-white text-xs p-2' },
+ i.a.createElement(
+ 'pre',
+ null,
+ (n = o)
+ ? n
+ .map(function (e, t) {
+ return e && e.title && e.location
+ ? i.a.createElement(
+ 'div',
+ { key: t, className: 'flex' },
+ i.a.createElement('span', null, ''.concat(e.location.startLine, '.')),
+ i.a.createElement(
+ 'code',
+ { className: 'whitespace-pre-wrap break-all ml-2' },
+ e.title
+ )
+ )
+ : null;
+ })
+ .filter(Boolean)
+ : null
+ )
+ )
+ : null
+ )
+ ),
+ i.a.createElement('div', { className: 'panel-item--right' })
+ );
+ },
+ We = function (e) {
+ var t = e.asyncapi,
+ n = e.config,
+ o = e.error,
+ a = void 0 === o ? null : o,
+ s = Object(r.useState)('container:xl'),
+ c = s[0],
+ u = s[1],
+ l = p({
+ onResize: function (e) {
+ var t = e.width;
+ requestAnimationFrame(function () {
+ if (void 0 !== t) {
+ var e = t <= 1280 ? 'container:xl' : 'container:base';
+ e !== c && u(e);
+ }
+ });
+ },
+ }).ref,
+ f = n.show || {};
+ return i.a.createElement(
+ v.Provider,
+ { value: n },
+ i.a.createElement(
+ y.Provider,
+ { value: t },
+ i.a.createElement(
+ 'section',
+ { className: 'aui-root' },
+ i.a.createElement(
+ 'div',
+ {
+ className: ''.concat(c, ' relative md:flex bg-white leading-normal'),
+ id: n.schemaID || void 0,
+ ref: l,
+ },
+ f.sidebar && i.a.createElement(E, null),
+ i.a.createElement(
+ 'div',
+ { className: 'panel--center relative py-8 flex-1' },
+ i.a.createElement(
+ 'div',
+ { className: 'relative z-10' },
+ f.errors && a && i.a.createElement(Ke, { error: a }),
+ f.info && i.a.createElement(H, null),
+ f.servers && i.a.createElement(le, null),
+ f.operations && i.a.createElement(qe, null),
+ f.messages && i.a.createElement(He, null),
+ f.schemas && i.a.createElement(Je, null)
+ ),
+ i.a.createElement('div', { className: 'panel--right absolute top-0 right-0 h-full bg-gray-800' })
+ )
+ )
+ )
+ )
+ );
+ },
+ Xe =
+ ((Me = function (e, t) {
+ return (Me =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
+ })(e, t);
+ }),
+ function (e, t) {
+ if ('function' != typeof t && null !== t)
+ throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null');
+ function n() {
+ this.constructor = e;
+ }
+ Me(e, t), (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
+ }),
+ Ge = function () {
+ return (Ge =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var i in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
+ return e;
+ }).apply(this, arguments);
+ },
+ Ye = function (e, t, n, r) {
+ return new (n || (n = Promise))(function (i, o) {
+ function a(e) {
+ try {
+ c(r.next(e));
+ } catch (e) {
+ o(e);
+ }
+ }
+ function s(e) {
+ try {
+ c(r.throw(e));
+ } catch (e) {
+ o(e);
+ }
+ }
+ function c(e) {
+ var t;
+ e.done
+ ? i(e.value)
+ : ((t = e.value),
+ t instanceof n
+ ? t
+ : new n(function (e) {
+ e(t);
+ })).then(a, s);
+ }
+ c((r = r.apply(e, t || [])).next());
+ });
+ },
+ Ze = function (e, t) {
+ var n,
+ r,
+ i,
+ o,
+ a = {
+ label: 0,
+ sent: function () {
+ if (1 & i[0]) throw i[1];
+ return i[1];
+ },
+ trys: [],
+ ops: [],
+ };
+ return (
+ (o = { next: s(0), throw: s(1), return: s(2) }),
+ 'function' == typeof Symbol &&
+ (o[Symbol.iterator] = function () {
+ return this;
+ }),
+ o
+ );
+ function s(o) {
+ return function (s) {
+ return (function (o) {
+ if (n) throw new TypeError('Generator is already executing.');
+ for (; a; )
+ try {
+ if (
+ ((n = 1),
+ r &&
+ (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) &&
+ !(i = i.call(r, o[1])).done)
+ )
+ return i;
+ switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) {
+ case 0:
+ case 1:
+ i = o;
+ break;
+ case 4:
+ return a.label++, { value: o[1], done: !1 };
+ case 5:
+ a.label++, (r = o[1]), (o = [0]);
+ continue;
+ case 7:
+ (o = a.ops.pop()), a.trys.pop();
+ continue;
+ default:
+ if (!((i = a.trys), (i = i.length > 0 && i[i.length - 1]) || (6 !== o[0] && 2 !== o[0]))) {
+ a = 0;
+ continue;
+ }
+ if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) {
+ a.label = o[1];
+ break;
+ }
+ if (6 === o[0] && a.label < i[1]) {
+ (a.label = i[1]), (i = o);
+ break;
+ }
+ if (i && a.label < i[2]) {
+ (a.label = i[2]), a.ops.push(o);
+ break;
+ }
+ i[2] && a.ops.pop(), a.trys.pop();
+ continue;
+ }
+ o = t.call(e, a);
+ } catch (e) {
+ (o = [6, e]), (r = 0);
+ } finally {
+ n = i = 0;
+ }
+ if (5 & o[0]) throw o[1];
+ return { value: o[0] ? o[1] : void 0, done: !0 };
+ })([o, s]);
+ };
+ }
+ },
+ Qe = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ n.state = { asyncapi: void 0, error: void 0 };
+ var r = c.retrieveParsedSpec(t.schema);
+ return r && (n.state = { asyncapi: r }), n;
+ }
+ return (
+ Xe(t, e),
+ (t.prototype.componentDidMount = function () {
+ return Ye(this, void 0, void 0, function () {
+ return Ze(this, function (e) {
+ return this.state.asyncapi || this.updateState(this.props.schema), [2];
+ });
+ });
+ }),
+ (t.prototype.componentDidUpdate = function (e) {
+ return Ye(this, void 0, void 0, function () {
+ var t, n;
+ return Ze(this, function (r) {
+ return (t = e.schema), (n = this.props.schema), t !== n && this.updateState(n), [2];
+ });
+ });
+ }),
+ (t.prototype.render = function () {
+ var e,
+ t = this.props,
+ n = t.config,
+ r = t.error,
+ o = this.state,
+ a = o.asyncapi,
+ s = o.error,
+ c = r || s,
+ l = Ge(Ge(Ge({}, u), n), {
+ show: Ge(Ge({}, u.show), !!n && n.show),
+ expand: Ge(Ge({}, u.expand), !!n && n.expand),
+ sidebar: Ge(Ge({}, u.sidebar), !!n && n.sidebar),
+ });
+ return a
+ ? i.a.createElement(We, { asyncapi: a, config: l, error: c })
+ : c
+ ? (null === (e = l.show) || void 0 === e ? void 0 : e.errors) && i.a.createElement(Ke, { error: c })
+ : null;
+ }),
+ (t.prototype.updateState = function (e) {
+ var t = c.retrieveParsedSpec(e);
+ t ? this.setState({ asyncapi: t }) : this.setState({ asyncapi: void 0 });
+ }),
+ t
+ );
+ })(r.Component),
+ et = n(36),
+ tt = n(113),
+ nt = n.n(tt),
+ rt = n(114),
+ it = n.n(rt),
+ ot = function (e, t, n, r) {
+ return new (n || (n = Promise))(function (i, o) {
+ function a(e) {
+ try {
+ c(r.next(e));
+ } catch (e) {
+ o(e);
+ }
+ }
+ function s(e) {
+ try {
+ c(r.throw(e));
+ } catch (e) {
+ o(e);
+ }
+ }
+ function c(e) {
+ var t;
+ e.done
+ ? i(e.value)
+ : ((t = e.value),
+ t instanceof n
+ ? t
+ : new n(function (e) {
+ e(t);
+ })).then(a, s);
+ }
+ c((r = r.apply(e, t || [])).next());
+ });
+ },
+ at = function (e, t) {
+ var n,
+ r,
+ i,
+ o,
+ a = {
+ label: 0,
+ sent: function () {
+ if (1 & i[0]) throw i[1];
+ return i[1];
+ },
+ trys: [],
+ ops: [],
+ };
+ return (
+ (o = { next: s(0), throw: s(1), return: s(2) }),
+ 'function' == typeof Symbol &&
+ (o[Symbol.iterator] = function () {
+ return this;
+ }),
+ o
+ );
+ function s(o) {
+ return function (s) {
+ return (function (o) {
+ if (n) throw new TypeError('Generator is already executing.');
+ for (; a; )
+ try {
+ if (
+ ((n = 1),
+ r &&
+ (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) &&
+ !(i = i.call(r, o[1])).done)
+ )
+ return i;
+ switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) {
+ case 0:
+ case 1:
+ i = o;
+ break;
+ case 4:
+ return a.label++, { value: o[1], done: !1 };
+ case 5:
+ a.label++, (r = o[1]), (o = [0]);
+ continue;
+ case 7:
+ (o = a.ops.pop()), a.trys.pop();
+ continue;
+ default:
+ if (!((i = a.trys), (i = i.length > 0 && i[i.length - 1]) || (6 !== o[0] && 2 !== o[0]))) {
+ a = 0;
+ continue;
+ }
+ if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) {
+ a.label = o[1];
+ break;
+ }
+ if (6 === o[0] && a.label < i[1]) {
+ (a.label = i[1]), (i = o);
+ break;
+ }
+ if (i && a.label < i[2]) {
+ (a.label = i[2]), a.ops.push(o);
+ break;
+ }
+ i[2] && a.ops.pop(), a.trys.pop();
+ continue;
+ }
+ o = t.call(e, a);
+ } catch (e) {
+ (o = [6, e]), (r = 0);
+ } finally {
+ n = i = 0;
+ }
+ if (5 & o[0]) throw o[1];
+ return { value: o[0] ? o[1] : void 0, done: !0 };
+ })([o, s]);
+ };
+ }
+ };
+ Object(et.registerSchemaParser)(nt.a), Object(et.registerSchemaParser)(it.a);
+ var st = (function () {
+ function e() {}
+ return (
+ (e.parse = function (e, t) {
+ return ot(this, void 0, void 0, function () {
+ var n;
+ return at(this, function (r) {
+ switch (r.label) {
+ case 0:
+ return r.trys.push([0, 2, , 3]), [4, Object(et.parse)(e, t)];
+ case 1:
+ return [2, { asyncapi: r.sent() }];
+ case 2:
+ return (n = r.sent()), [2, this.handleError(n)];
+ case 3:
+ return [2];
+ }
+ });
+ });
+ }),
+ (e.parseFromUrl = function (e, t) {
+ return ot(this, void 0, void 0, function () {
+ var n;
+ return at(this, function (r) {
+ switch (r.label) {
+ case 0:
+ return r.trys.push([0, 2, , 3]), [4, Object(et.parseFromUrl)(e.url, e.requestOptions, t)];
+ case 1:
+ return [2, { asyncapi: r.sent() }];
+ case 2:
+ return (n = r.sent()), [2, this.handleError(n)];
+ case 3:
+ return [2];
+ }
+ });
+ });
+ }),
+ (e.handleError = function (e) {
+ return e.type, { error: e };
+ }),
+ e
+ );
+ })(),
+ ct = (function () {
+ var e = function (t, n) {
+ return (e =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
+ })(t, n);
+ };
+ return function (t, n) {
+ if ('function' != typeof n && null !== n)
+ throw new TypeError('Class extends value ' + String(n) + ' is not a constructor or null');
+ function r() {
+ this.constructor = t;
+ }
+ e(t, n), (t.prototype = null === n ? Object.create(n) : ((r.prototype = n.prototype), new r()));
+ };
+ })(),
+ ut = function (e, t, n, r) {
+ return new (n || (n = Promise))(function (i, o) {
+ function a(e) {
+ try {
+ c(r.next(e));
+ } catch (e) {
+ o(e);
+ }
+ }
+ function s(e) {
+ try {
+ c(r.throw(e));
+ } catch (e) {
+ o(e);
+ }
+ }
+ function c(e) {
+ var t;
+ e.done
+ ? i(e.value)
+ : ((t = e.value),
+ t instanceof n
+ ? t
+ : new n(function (e) {
+ e(t);
+ })).then(a, s);
+ }
+ c((r = r.apply(e, t || [])).next());
+ });
+ },
+ lt = function (e, t) {
+ var n,
+ r,
+ i,
+ o,
+ a = {
+ label: 0,
+ sent: function () {
+ if (1 & i[0]) throw i[1];
+ return i[1];
+ },
+ trys: [],
+ ops: [],
+ };
+ return (
+ (o = { next: s(0), throw: s(1), return: s(2) }),
+ 'function' == typeof Symbol &&
+ (o[Symbol.iterator] = function () {
+ return this;
+ }),
+ o
+ );
+ function s(o) {
+ return function (s) {
+ return (function (o) {
+ if (n) throw new TypeError('Generator is already executing.');
+ for (; a; )
+ try {
+ if (
+ ((n = 1),
+ r &&
+ (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r), 0) : r.next) &&
+ !(i = i.call(r, o[1])).done)
+ )
+ return i;
+ switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) {
+ case 0:
+ case 1:
+ i = o;
+ break;
+ case 4:
+ return a.label++, { value: o[1], done: !1 };
+ case 5:
+ a.label++, (r = o[1]), (o = [0]);
+ continue;
+ case 7:
+ (o = a.ops.pop()), a.trys.pop();
+ continue;
+ default:
+ if (!((i = a.trys), (i = i.length > 0 && i[i.length - 1]) || (6 !== o[0] && 2 !== o[0]))) {
+ a = 0;
+ continue;
+ }
+ if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) {
+ a.label = o[1];
+ break;
+ }
+ if (6 === o[0] && a.label < i[1]) {
+ (a.label = i[1]), (i = o);
+ break;
+ }
+ if (i && a.label < i[2]) {
+ (a.label = i[2]), a.ops.push(o);
+ break;
+ }
+ i[2] && a.ops.pop(), a.trys.pop();
+ continue;
+ }
+ o = t.call(e, a);
+ } catch (e) {
+ (o = [6, e]), (r = 0);
+ } finally {
+ n = i = 0;
+ }
+ if (5 & o[0]) throw o[1];
+ return { value: o[0] ? o[1] : void 0, done: !0 };
+ })([o, s]);
+ };
+ }
+ },
+ pt = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (n.state = { asyncapi: void 0, error: void 0 }), n;
+ }
+ return (
+ ct(t, e),
+ (t.prototype.componentDidMount = function () {
+ return ut(this, void 0, void 0, function () {
+ var e, t, n;
+ return lt(this, function (r) {
+ return (
+ this.props.schema &&
+ ((e = this.props), (t = e.schema), (n = e.config), this.parseSchema(t, n && n.parserOptions)),
+ [2]
+ );
+ });
+ });
+ }),
+ (t.prototype.componentDidUpdate = function (e) {
+ return ut(this, void 0, void 0, function () {
+ var t, n, r;
+ return lt(this, function (i) {
+ return (
+ (t = e.schema),
+ (n = this.props.schema),
+ t !== n && ((r = this.props.config), this.parseSchema(n, r && r.parserOptions)),
+ [2]
+ );
+ });
+ });
+ }),
+ (t.prototype.render = function () {
+ var e = this.props,
+ t = e.schema,
+ n = e.config,
+ r = this.state,
+ o = r.asyncapi,
+ a = r.error;
+ return i.a.createElement(Qe, { schema: o || t, config: n, error: a });
+ }),
+ (t.prototype.parseSchema = function (e, t) {
+ return ut(this, void 0, void 0, function () {
+ var n, r, i;
+ return lt(this, function (o) {
+ switch (o.label) {
+ case 0:
+ return (n = c.retrieveParsedSpec(e))
+ ? (this.setState({ asyncapi: n }), [2])
+ : (function (e) {
+ return void 0 !== e.url;
+ })(e)
+ ? [4, st.parseFromUrl(e, t)]
+ : [3, 2];
+ case 1:
+ return (r = o.sent()), this.setState({ asyncapi: r.asyncapi, error: r.error }), [2];
+ case 2:
+ return [4, st.parse(e, t)];
+ case 3:
+ return (i = o.sent()), this.setState({ asyncapi: i.asyncapi, error: i.error }), [2];
+ }
+ });
+ });
+ }),
+ t
+ );
+ })(r.Component),
+ ft = (function () {
+ var e = function (t, n) {
+ return (e =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
+ })(t, n);
+ };
+ return function (t, n) {
+ if ('function' != typeof n && null !== n)
+ throw new TypeError('Class extends value ' + String(n) + ' is not a constructor or null');
+ function r() {
+ this.constructor = t;
+ }
+ e(t, n), (t.prototype = null === n ? Object.create(n) : ((r.prototype = n.prototype), new r()));
+ };
+ })(),
+ ht = function () {
+ return (ht =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var i in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
+ return e;
+ }).apply(this, arguments);
+ };
+ function dt(e) {
+ var t = e.schemaUrl,
+ n = e.schemaFetchOptions;
+ (t && 'undefined' !== t) || (t = void 0), (n && 'undefined' !== n) || (n = void 0);
+ var r = e.schema || {};
+ t && (r = { url: t, requestOptions: n ? JSON.parse(JSON.stringify(n)) : r.requestOptions || {} });
+ return r;
+ }
+ var mt = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (n.lastUrlCheck = Date.now()), n;
+ }
+ return (
+ ft(t, e),
+ (t.prototype.shouldComponentUpdate = function (e) {
+ var t = dt(this.props),
+ n = dt(e);
+ if (!(t && n && t.url && n.url)) return !0;
+ if (t.url === n.url) {
+ var r = Date.now();
+ return this.lastUrlCheck <= r - 25 && ((this.lastUrlCheck = r), !0);
+ }
+ return !0;
+ }),
+ (t.prototype.render = function () {
+ var e = this.props.cssImportPath || 'assets/default.min.css',
+ t = dt(this.props);
+ return r.createElement(
+ r.Fragment,
+ null,
+ r.createElement('style', null, "@import '", e, "';"),
+ r.createElement(pt, ht({}, this.props, { schema: t }))
+ );
+ }),
+ t
+ );
+ })(r.Component);
+ Object(o.register)(mt, 'asyncapi-component', [
+ 'schema',
+ 'schemaFetchOptions',
+ 'schemaUrl',
+ 'config',
+ 'cssImportPath',
+ ]);
+ t.default = mt;
+ },
+ ]).default;
+});
+//# sourceMappingURL=asyncapi-web-component.js.map
diff --git a/lite_bootstrap/litestar_swagger_static/default.min.css b/lite_bootstrap/litestar_swagger_static/default.min.css
new file mode 100644
index 0000000..156b75e
--- /dev/null
+++ b/lite_bootstrap/litestar_swagger_static/default.min.css
@@ -0,0 +1,5 @@
+.aui-root .hljs{display:block;overflow-x:auto;padding:.5em;background:#011627;color:#d6deeb}.aui-root .hljs-keyword{color:#c792ea;font-style:italic}.aui-root .hljs-built_in{color:#addb67;font-style:italic}.aui-root .hljs-type{color:#82aaff}.aui-root .hljs-literal{color:#ff5874}.aui-root .hljs-number{color:#f78c6c}.aui-root .hljs-regexp{color:#5ca7e4}.aui-root .hljs-string{color:#ecc48d}.aui-root .hljs-subst{color:#d3423e}.aui-root .hljs-symbol{color:#82aaff}.aui-root .hljs-class{color:#ffcb8b}.aui-root .hljs-function{color:#82aaff}.aui-root .hljs-title{color:#dcdcaa;font-style:italic}.aui-root .hljs-params{color:#7fdbca}.aui-root .hljs-comment{color:#637777;font-style:italic}.aui-root .hljs-doctag{color:#7fdbca}.aui-root .hljs-meta,.aui-root .hljs-meta-keyword{color:#82aaff}.aui-root .hljs-meta-string{color:#ecc48d}.aui-root .hljs-section{color:#82b1ff}.aui-root .hljs-attr,.aui-root .hljs-builtin-name,.aui-root .hljs-name,.aui-root .hljs-tag{color:#7fdbca}.aui-root .hljs-attribute{color:#80cbc4}.aui-root .hljs-variable{color:#addb67}.aui-root .hljs-bullet{color:#d9f5dd}.aui-root .hljs-code{color:#80cbc4}.aui-root .hljs-emphasis{color:#c792ea;font-style:italic}.aui-root .hljs-strong{color:#addb67;font-weight:700}.aui-root .hljs-formula{color:#c792ea}.aui-root .hljs-link{color:#ff869a}.aui-root .hljs-quote{color:#697098;font-style:italic}.aui-root .hljs-selector-tag{color:#ff6363}.aui-root .hljs-selector-id{color:#fad430}.aui-root .hljs-selector-class{color:#addb67;font-style:italic}.aui-root .hljs-selector-attr,.aui-root .hljs-selector-pseudo{color:#c792ea;font-style:italic}.aui-root .hljs-template-tag{color:#c792ea}.aui-root .hljs-template-variable{color:#addb67}.aui-root .hljs-addition{color:#addb67;font-style:italic}.aui-root .hljs-deletion{color:rgba(239,83,80,.5647058823529412);font-style:italic}
+
+/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com*/
+
+/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */.aui-root html{-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.15;-webkit-text-size-adjust:100%}.aui-root body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}.aui-root hr{height:0;color:inherit}.aui-root abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.aui-root b,.aui-root strong{font-weight:bolder}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}.aui-root small{font-size:80%}.aui-root sub,.aui-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.aui-root sub{bottom:-.25em}.aui-root sup{top:-.5em}.aui-root table{text-indent:0;border-color:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.aui-root button,.aui-root select{text-transform:none}.aui-root [type=button],.aui-root button{-webkit-appearance:button}.aui-root legend{padding:0}.aui-root progress{vertical-align:baseline}.aui-root summary{display:list-item}.aui-root blockquote,.aui-root dd,.aui-root dl,.aui-root figure,.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6,.aui-root hr,.aui-root p,.aui-root pre{margin:0}.aui-root button{background-color:transparent;background-image:none}.aui-root fieldset{margin:0;padding:0}.aui-root ol,.aui-root ul{list-style:none;margin:0;padding:0}.aui-root html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.aui-root body{font-family:inherit;line-height:inherit}.aui-root *,.aui-root :after,.aui-root :before{box-sizing:border-box;border:0 solid}.aui-root hr{border-top-width:1px}.aui-root img{border-style:solid}.aui-root textarea{resize:vertical}.aui-root input::-moz-placeholder, .aui-root textarea::-moz-placeholder{opacity:1;color:#cbd5e0}.aui-root input:-ms-input-placeholder, .aui-root textarea:-ms-input-placeholder{opacity:1;color:#cbd5e0}.aui-root input::placeholder,.aui-root textarea::placeholder{opacity:1;color:#cbd5e0}.aui-root button{cursor:pointer}.aui-root table{border-collapse:collapse}.aui-root h1,.aui-root h2,.aui-root h3,.aui-root h4,.aui-root h5,.aui-root h6{font-size:inherit;font-weight:inherit}.aui-root a{color:inherit;text-decoration:inherit}.aui-root button,.aui-root input,.aui-root optgroup,.aui-root select,.aui-root textarea{padding:0;line-height:inherit;color:inherit}.aui-root code,.aui-root kbd,.aui-root pre,.aui-root samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root audio,.aui-root canvas,.aui-root embed,.aui-root iframe,.aui-root img,.aui-root object,.aui-root svg,.aui-root video{display:block;vertical-align:middle}.aui-root img,.aui-root video{max-width:100%;height:auto}.aui-root [hidden]{display:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .prose{color:#4a5568;max-width:65ch}.aui-root .prose [class~=lead]{color:#718096;font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.aui-root .prose a{color:#1a202c;text-decoration:underline;font-weight:500}.aui-root .prose strong{color:#1a202c;font-weight:600}.aui-root .prose ol[type=a]{--list-counter-style:lower-alpha}.aui-root .prose ol[type=i]{--list-counter-style:lower-roman}.aui-root .prose ol[type="1"]{--list-counter-style:decimal}.aui-root .prose ol>li{position:relative;padding-left:1.75em}.aui-root .prose ol>li:before{content:counter(list-item,var(--list-counter-style,decimal)) ".";position:absolute;font-weight:400;color:#a0aec0;left:0}.aui-root .prose ul>li{position:relative;padding-left:1.75em}.aui-root .prose ul>li:before{content:"";position:absolute;background-color:#e2e8f0;border-radius:50%;width:.375em;height:.375em;top:.6875em;left:.25em}.aui-root .prose hr{border-color:#edf2f7;border-top-width:1px;margin-top:3em;margin-bottom:3em}.aui-root .prose blockquote{font-weight:500;font-style:italic;color:#1a202c;border-left-width:.25rem;border-left-color:#edf2f7;quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.aui-root .prose blockquote p:first-of-type:before{content:open-quote}.aui-root .prose blockquote p:last-of-type:after{content:close-quote}.aui-root .prose h1{color:#1a202c;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.aui-root .prose h2{color:#1a202c;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.aui-root .prose h3{color:#1a202c;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.aui-root .prose h4{color:#1a202c;font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.aui-root .prose figure figcaption{color:#a0aec0;font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.aui-root .prose code{color:#1a202c;font-weight:600;font-size:.875em}.aui-root .prose code:after,.aui-root .prose code:before{content:"`"}.aui-root .prose a code{color:#1a202c}.aui-root .prose pre{color:#edf2f7;background-color:#1a202c;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.aui-root .prose pre code{background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.aui-root .prose pre code:after,.aui-root .prose pre code:before{content:none}.aui-root .prose table{width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.aui-root .prose thead{color:#1a202c;font-weight:600;border-bottom-width:1px;border-bottom-color:#e2e8f0}.aui-root .prose thead th{vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.aui-root .prose tbody tr{border-bottom-width:1px;border-bottom-color:#edf2f7}.aui-root .prose tbody tr:last-child{border-bottom-width:0}.aui-root .prose tbody td{vertical-align:top;padding:.5714286em}.aui-root .prose{font-size:1rem;line-height:1.75}.aui-root .prose p{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose figure,.aui-root .prose img,.aui-root .prose video{margin-top:2em;margin-bottom:2em}.aui-root .prose figure>*{margin-top:0;margin-bottom:0}.aui-root .prose h2 code{font-size:.875em}.aui-root .prose h3 code{font-size:.9em}.aui-root .prose ol,.aui-root .prose ul{margin-top:1.25em;margin-bottom:1.25em}.aui-root .prose li{margin-top:.5em;margin-bottom:.5em}.aui-root .prose>ul>li p{margin-top:.75em;margin-bottom:.75em}.aui-root .prose>ul>li>:first-child{margin-top:1.25em}.aui-root .prose>ul>li>:last-child{margin-bottom:1.25em}.aui-root .prose>ol>li>:first-child{margin-top:1.25em}.aui-root .prose>ol>li>:last-child{margin-bottom:1.25em}.aui-root .prose ol ol,.aui-root .prose ol ul,.aui-root .prose ul ol,.aui-root .prose ul ul{margin-top:.75em;margin-bottom:.75em}.aui-root .prose h2+*,.aui-root .prose h3+*,.aui-root .prose h4+*,.aui-root .prose hr+*{margin-top:0}.aui-root .prose thead th:first-child{padding-left:0}.aui-root .prose thead th:last-child{padding-right:0}.aui-root .prose tbody td:first-child{padding-left:0}.aui-root .prose tbody td:last-child{padding-right:0}.aui-root .prose>:first-child{margin-top:0}.aui-root .prose>:last-child{margin-bottom:0}@media (min-width:1024px){.aui-root .container\:base .burger-menu{display:none}}@media (min-width:1024px){.aui-root .container\:base .sidebar{position:relative;display:block;height:auto;width:16rem}}@media (min-width:1024px){.aui-root .container\:base .sidebar--content{width:14rem}}.aui-root .container\:xl .sidebar--content{position:absolute;left:50%;transform:translate(-50%)}@media (min-width:1536px){.aui-root .container\:base .panel-item{display:flex}}.aui-root .container\:xl .panel-item{display:block}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--center{width:58.333333%}}@media (min-width:1536px){.aui-root .container\:base .panel--center .panel-item--right{width:41.666667%}}.aui-root .container\:xl .panel--center .panel-item--center,.aui-root .container\:xl .panel--center .panel-item--right{width:100%}@media (min-width:1536px){.aui-root .container\:base .examples{margin-top:0;padding:0}}.aui-root .container\:base .panel--right{display:none}@media (min-width:1536px){.aui-root .container\:base .panel--right{display:block;width:41.666667%}}.aui-root .container\:xl .panel--right{display:none}.aui-root .prose pre{white-space:pre-wrap}.aui-root .fixed{position:fixed}.aui-root .absolute{position:absolute}.aui-root .relative{position:relative}.aui-root .top-0{top:0}.aui-root .right-0{right:0}.aui-root .right-8{right:2rem}.aui-root .bottom-16{bottom:4rem}.aui-root .z-10{z-index:10}.aui-root .z-20{z-index:20}.aui-root .z-30{z-index:30}.aui-root .mx-2{margin-left:.5rem;margin-right:.5rem}.aui-root .-mx-8{margin-left:-2rem;margin-right:-2rem}.aui-root .my-2{margin-top:.5rem;margin-bottom:.5rem}.aui-root .mt-1{margin-top:.25rem}.aui-root .mt-2{margin-top:.5rem}.aui-root .mt-4{margin-top:1rem}.aui-root .mt-9{margin-top:2.25rem}.aui-root .mt-10{margin-top:2.5rem}.aui-root .mt-16{margin-top:4rem}.aui-root .mr-1{margin-right:.25rem}.aui-root .mr-2{margin-right:.5rem}.aui-root .mb-2{margin-bottom:.5rem}.aui-root .mb-3{margin-bottom:.75rem}.aui-root .mb-4{margin-bottom:1rem}.aui-root .mb-12{margin-bottom:3rem}.aui-root .-mb-1{margin-bottom:-.25rem}.aui-root .ml-0{margin-left:0}.aui-root .ml-1{margin-left:.25rem}.aui-root .ml-2{margin-left:.5rem}.aui-root .ml-0\.5{margin-left:.125rem}.aui-root .block{display:block}.aui-root .inline-block{display:inline-block}.aui-root .flex{display:flex}.aui-root .table{display:table}.aui-root .hidden{display:none}.aui-root .h-5{height:1.25rem}.aui-root .h-6{height:1.5rem}.aui-root .h-16{height:4rem}.aui-root .h-full{height:100%}.aui-root .max-h-screen{max-height:100vh}.aui-root .w-5{width:1.25rem}.aui-root .w-16{width:4rem}.aui-root .w-20{width:5rem}.aui-root .w-64{width:16rem}.aui-root .w-full{width:100%}.aui-root .min-w-1\/4{min-width:25%}.aui-root .max-w-none{max-width:none}.aui-root .flex-1{flex:1 1 0%}.aui-root .transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.aui-root .-rotate-180{--tw-rotate:-180deg}.aui-root .-rotate-90{--tw-rotate:-90deg}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.aui-root .cursor-pointer{cursor:pointer}.aui-root .flex-wrap{flex-wrap:wrap}.aui-root .items-center{align-items:center}.aui-root .justify-center{justify-content:center}.aui-root .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem*var(--tw-space-x-reverse));margin-left:calc(0.5rem*(1 - var(--tw-space-x-reverse)))}.aui-root .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}.aui-root .overflow-auto{overflow:auto}.aui-root .overflow-y-auto{overflow-y:auto}.aui-root .whitespace-pre-wrap{white-space:pre-wrap}.aui-root .break-words{overflow-wrap:break-word}.aui-root .break-all{word-break:break-all}.aui-root .rounded{border-radius:.25rem}.aui-root .rounded-full{border-radius:9999px}.aui-root .border{border-width:1px}.aui-root .border-l-8{border-left-width:8px}.aui-root .border-solid{border-style:solid}.aui-root .border-gray-400{--tw-border-opacity:1;border-color:rgba(203,213,224,var(--tw-border-opacity))}.aui-root .border-red-500{--tw-border-opacity:1;border-color:rgba(245,101,101,var(--tw-border-opacity))}.aui-root .border-orange-300{--tw-border-opacity:1;border-color:rgba(251,211,141,var(--tw-border-opacity))}.aui-root .border-green-600{--tw-border-opacity:1;border-color:rgba(56,161,105,var(--tw-border-opacity))}.aui-root .border-blue-300{--tw-border-opacity:1;border-color:rgba(144,205,244,var(--tw-border-opacity))}.aui-root .border-blue-600{--tw-border-opacity:1;border-color:rgba(49,130,206,var(--tw-border-opacity))}.aui-root .border-purple-300{--tw-border-opacity:1;border-color:rgba(214,188,250,var(--tw-border-opacity))}.aui-root .bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.aui-root .bg-gray-100{--tw-bg-opacity:1;background-color:rgba(247,250,252,var(--tw-bg-opacity))}.aui-root .bg-gray-200{--tw-bg-opacity:1;background-color:rgba(237,242,247,var(--tw-bg-opacity))}.aui-root .bg-gray-800{--tw-bg-opacity:1;background-color:rgba(45,55,72,var(--tw-bg-opacity))}.aui-root .bg-yellow-600{--tw-bg-opacity:1;background-color:rgba(214,158,46,var(--tw-bg-opacity))}.aui-root .bg-green-600{--tw-bg-opacity:1;background-color:rgba(56,161,105,var(--tw-bg-opacity))}.aui-root .bg-teal-500{--tw-bg-opacity:1;background-color:rgba(56,178,172,var(--tw-bg-opacity))}.aui-root .bg-blue-400{--tw-bg-opacity:1;background-color:rgba(99,179,237,var(--tw-bg-opacity))}.aui-root .bg-blue-500{--tw-bg-opacity:1;background-color:rgba(66,153,225,var(--tw-bg-opacity))}.aui-root .bg-blue-600{--tw-bg-opacity:1;background-color:rgba(49,130,206,var(--tw-bg-opacity))}.aui-root .bg-indigo-400{--tw-bg-opacity:1;background-color:rgba(127,156,245,var(--tw-bg-opacity))}.aui-root .bg-purple-600{--tw-bg-opacity:1;background-color:rgba(128,90,213,var(--tw-bg-opacity))}.aui-root .hover\:bg-orange-300:hover{--tw-bg-opacity:1;background-color:rgba(251,211,141,var(--tw-bg-opacity))}.aui-root .hover\:bg-blue-300:hover{--tw-bg-opacity:1;background-color:rgba(144,205,244,var(--tw-bg-opacity))}.aui-root .hover\:bg-purple-300:hover{--tw-bg-opacity:1;background-color:rgba(214,188,250,var(--tw-bg-opacity))}.aui-root .fill-current{fill:currentColor}.aui-root .p-1{padding:.25rem}.aui-root .p-2{padding:.5rem}.aui-root .p-4{padding:1rem}.aui-root .p-8{padding:2rem}.aui-root .px-1{padding-left:.25rem;padding-right:.25rem}.aui-root .px-2{padding-left:.5rem;padding-right:.5rem}.aui-root .px-3{padding-left:.75rem;padding-right:.75rem}.aui-root .px-4{padding-left:1rem;padding-right:1rem}.aui-root .px-8{padding-left:2rem;padding-right:2rem}.aui-root .py-0{padding-top:0;padding-bottom:0}.aui-root .py-1{padding-top:.25rem;padding-bottom:.25rem}.aui-root .py-2{padding-top:.5rem;padding-bottom:.5rem}.aui-root .py-4{padding-top:1rem;padding-bottom:1rem}.aui-root .py-8{padding-top:2rem;padding-bottom:2rem}.aui-root .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.aui-root .pt-8{padding-top:2rem}.aui-root .pb-16{padding-bottom:4rem}.aui-root .text-left{text-align:left}.aui-root .text-center{text-align:center}.aui-root .align-baseline{vertical-align:baseline}.aui-root .font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.aui-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.aui-root .text-xs{font-size:.75rem}.aui-root .text-sm{font-size:.875rem}.aui-root .text-base{font-size:1rem}.aui-root .text-lg{font-size:1.125rem}.aui-root .text-2xl{font-size:1.5rem}.aui-root .text-3xl{font-size:1.875rem}.aui-root .text-4xl{font-size:2.25rem}.aui-root .font-thin{font-weight:100}.aui-root .font-extralight{font-weight:200}.aui-root .font-light{font-weight:300}.aui-root .font-bold{font-weight:700}.aui-root .uppercase{text-transform:uppercase}.aui-root .lowercase{text-transform:lowercase}.aui-root .capitalize{text-transform:capitalize}.aui-root .italic{font-style:italic}.aui-root .leading-normal{line-height:1.5}.aui-root .text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}.aui-root .text-gray-200{--tw-text-opacity:1;color:rgba(237,242,247,var(--tw-text-opacity))}.aui-root .text-gray-500{--tw-text-opacity:1;color:rgba(160,174,192,var(--tw-text-opacity))}.aui-root .text-gray-600{--tw-text-opacity:1;color:rgba(113,128,150,var(--tw-text-opacity))}.aui-root .text-gray-700{--tw-text-opacity:1;color:rgba(74,85,104,var(--tw-text-opacity))}.aui-root .text-gray-800{--tw-text-opacity:1;color:rgba(45,55,72,var(--tw-text-opacity))}.aui-root .text-red-600{--tw-text-opacity:1;color:rgba(229,62,62,var(--tw-text-opacity))}.aui-root .text-orange-500{--tw-text-opacity:1;color:rgba(237,137,54,var(--tw-text-opacity))}.aui-root .text-orange-600{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .text-green-600{--tw-text-opacity:1;color:rgba(56,161,105,var(--tw-text-opacity))}.aui-root .text-teal-500{--tw-text-opacity:1;color:rgba(56,178,172,var(--tw-text-opacity))}.aui-root .text-blue-500{--tw-text-opacity:1;color:rgba(66,153,225,var(--tw-text-opacity))}.aui-root .text-purple-500{--tw-text-opacity:1;color:rgba(159,122,234,var(--tw-text-opacity))}.aui-root .hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgba(26,32,44,var(--tw-text-opacity))}.aui-root .hover\:text-orange-600:hover{--tw-text-opacity:1;color:rgba(221,107,32,var(--tw-text-opacity))}.aui-root .hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgba(49,130,206,var(--tw-text-opacity))}.aui-root .hover\:text-purple-600:hover{--tw-text-opacity:1;color:rgba(128,90,213,var(--tw-text-opacity))}.aui-root .underline{text-decoration:underline}.aui-root .no-underline{text-decoration:none}.aui-root *,.aui-root :after,.aui-root :before{--tw-shadow:0 0 transparent}.aui-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06)}.aui-root .shadow,.aui-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.aui-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06)}.aui-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.aui-root *,.aui-root :after,.aui-root :before{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(66,153,225,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent}.aui-root .filter{--tw-blur:var(--tw-empty,/*!*/ /*!*/);--tw-brightness:var(--tw-empty,/*!*/ /*!*/);--tw-contrast:var(--tw-empty,/*!*/ /*!*/);--tw-grayscale:var(--tw-empty,/*!*/ /*!*/);--tw-hue-rotate:var(--tw-empty,/*!*/ /*!*/);--tw-invert:var(--tw-empty,/*!*/ /*!*/);--tw-saturate:var(--tw-empty,/*!*/ /*!*/);--tw-sepia:var(--tw-empty,/*!*/ /*!*/);--tw-drop-shadow:var(--tw-empty,/*!*/ /*!*/);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.aui-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.aui-root .duration-150{transition-duration:.15s}.aui-root .ease-linear{transition-timing-function:linear}@media (min-width:768px){.aui-root .md\:flex{display:flex}}@media (min-width:1536px){.aui-root .\32xl\:mx-0{margin-left:0;margin-right:0}.aui-root .\32xl\:w-7\/12{width:58.333333%}.aui-root .\32xl\:rounded{border-radius:.25rem}.aui-root .\32xl\:px-4{padding-left:1rem;padding-right:1rem}}
\ No newline at end of file
diff --git a/lite_bootstrap/litestar_swagger_static/swagger-ui-bundle.js b/lite_bootstrap/litestar_swagger_static/swagger-ui-bundle.js
new file mode 100644
index 0000000..d62bb27
--- /dev/null
+++ b/lite_bootstrap/litestar_swagger_static/swagger-ui-bundle.js
@@ -0,0 +1,74762 @@
+/*! For license information please see swagger-ui-bundle.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.SwaggerUIBundle = t())
+ : (e.SwaggerUIBundle = t());
+})(this, () =>
+ (() => {
+ var e = {
+ 17967: (e, t) => {
+ 'use strict';
+ t.N = void 0;
+ var n = /^([^\w]*)(javascript|data|vbscript)/im,
+ r = /(\w+)(^\w|;)?/g,
+ o = /&(newline|tab);/gi,
+ s = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,
+ i = /^.+(:|:)/gim,
+ a = ['.', '/'];
+ t.N = function (e) {
+ var t,
+ l = ((t = e || ''),
+ t.replace(r, function (e, t) {
+ return String.fromCharCode(t);
+ }))
+ .replace(o, '')
+ .replace(s, '')
+ .trim();
+ if (!l) return 'about:blank';
+ if (
+ (function (e) {
+ return a.indexOf(e[0]) > -1;
+ })(l)
+ )
+ return l;
+ var c = l.match(i);
+ if (!c) return l;
+ var u = c[0];
+ return n.test(u) ? 'about:blank' : l;
+ };
+ },
+ 53795: (e, t, n) => {
+ 'use strict';
+ n.d(t, { Z: () => P });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(61125),
+ i = n.n(s),
+ a = n(11882),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(67294),
+ h = n(43393);
+ function f(e) {
+ return (
+ (f =
+ '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;
+ }),
+ f(e)
+ );
+ }
+ function d(e, t) {
+ for (var n = 0; n < t.length; n++) {
+ var r = t[n];
+ (r.enumerable = r.enumerable || !1),
+ (r.configurable = !0),
+ 'value' in r && (r.writable = !0),
+ Object.defineProperty(e, r.key, r);
+ }
+ }
+ function m(e, t, n) {
+ return (
+ t in e
+ ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 })
+ : (e[t] = n),
+ e
+ );
+ }
+ function g(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function y(e) {
+ return (
+ (y = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function (e) {
+ return e.__proto__ || Object.getPrototypeOf(e);
+ }),
+ y(e)
+ );
+ }
+ function v(e, t) {
+ return (
+ (v =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e;
+ }),
+ v(e, t)
+ );
+ }
+ function b(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;
+ }
+ var w = {};
+ function E(e, t, n) {
+ return (function (e) {
+ return null == e;
+ })(e)
+ ? n
+ : (function (e) {
+ return null !== e && 'object' === f(e) && 'function' == typeof e.get && 'function' == typeof e.has;
+ })(e)
+ ? e.has(t)
+ ? e.get(t)
+ : n
+ : hasOwnProperty.call(e, t)
+ ? e[t]
+ : n;
+ }
+ function x(e, t, n) {
+ for (var r = 0; r !== t.length; ) if ((e = E(e, t[r++], w)) === w) return n;
+ return e;
+ }
+ function S(e) {
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
+ n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
+ r = (function (e, t) {
+ return function (n) {
+ if ('string' == typeof n) return (0, h.is)(t[n], e[n]);
+ if (Array.isArray(n)) return (0, h.is)(x(t, n), x(e, n));
+ throw new TypeError('Invalid key: expected Array or string: ' + n);
+ };
+ })(t, n),
+ o =
+ e ||
+ Object.keys(
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? g(n, !0).forEach(function (t) {
+ m(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : g(n).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })({}, n, {}, t)
+ );
+ return o.every(r);
+ }
+ const _ = (function (e) {
+ function t() {
+ return (
+ (function (e, t) {
+ if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
+ })(this, t),
+ b(this, y(t).apply(this, arguments))
+ );
+ }
+ var n, r, o;
+ return (
+ (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 && v(e, t);
+ })(t, e),
+ (n = t),
+ (r = [
+ {
+ key: 'shouldComponentUpdate',
+ value: function (e) {
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ return (
+ !S(this.updateOnProps, this.props, e, 'updateOnProps') ||
+ !S(this.updateOnStates, this.state, t, 'updateOnStates')
+ );
+ },
+ },
+ ]),
+ r && d(n.prototype, r),
+ o && d(n, o),
+ t
+ );
+ })(p.Component);
+ var j = n(23930),
+ O = n.n(j),
+ k = n(45697),
+ A = n.n(k);
+ const C = (e) => {
+ const t = e.replace(/~1/g, '/').replace(/~0/g, '~');
+ try {
+ return decodeURIComponent(t);
+ } catch {
+ return t;
+ }
+ };
+ class P extends _ {
+ constructor() {
+ super(...arguments),
+ i()(this, 'getModelName', (e) =>
+ -1 !== l()(e).call(e, '#/definitions/')
+ ? C(e.replace(/^.*#\/definitions\//, ''))
+ : -1 !== l()(e).call(e, '#/components/schemas/')
+ ? C(e.replace(/^.*#\/components\/schemas\//, ''))
+ : void 0
+ ),
+ i()(this, 'getRefSchema', (e) => {
+ let { specSelectors: t } = this.props;
+ return t.findDefinition(e);
+ });
+ }
+ render() {
+ let {
+ getComponent: e,
+ getConfigs: t,
+ specSelectors: r,
+ schema: s,
+ required: i,
+ name: a,
+ isRef: l,
+ specPath: c,
+ displayName: u,
+ includeReadOnly: h,
+ includeWriteOnly: f,
+ } = this.props;
+ const d = e('ObjectModel'),
+ m = e('ArrayModel'),
+ g = e('PrimitiveModel');
+ let y = 'object',
+ v = s && s.get('$$ref');
+ if ((!a && v && (a = this.getModelName(v)), !s && v && (s = this.getRefSchema(a)), !s))
+ return p.createElement(
+ 'span',
+ { className: 'model model-title' },
+ p.createElement('span', { className: 'model-title__text' }, u || a),
+ p.createElement('img', { src: n(2517), height: '20px', width: '20px' })
+ );
+ const b = r.isOAS3() && s.get('deprecated');
+ switch (((l = void 0 !== l ? l : !!v), (y = (s && s.get('type')) || y), y)) {
+ case 'object':
+ return p.createElement(
+ d,
+ o()({ className: 'object' }, this.props, {
+ specPath: c,
+ getConfigs: t,
+ schema: s,
+ name: a,
+ deprecated: b,
+ isRef: l,
+ includeReadOnly: h,
+ includeWriteOnly: f,
+ })
+ );
+ case 'array':
+ return p.createElement(
+ m,
+ o()({ className: 'array' }, this.props, {
+ getConfigs: t,
+ schema: s,
+ name: a,
+ deprecated: b,
+ required: i,
+ includeReadOnly: h,
+ includeWriteOnly: f,
+ })
+ );
+ default:
+ return p.createElement(
+ g,
+ o()({}, this.props, {
+ getComponent: e,
+ getConfigs: t,
+ schema: s,
+ name: a,
+ deprecated: b,
+ required: i,
+ })
+ );
+ }
+ }
+ }
+ i()(P, 'propTypes', {
+ schema: u()(O()).isRequired,
+ getComponent: A().func.isRequired,
+ getConfigs: A().func.isRequired,
+ specSelectors: A().object.isRequired,
+ name: A().string,
+ displayName: A().string,
+ isRef: A().bool,
+ required: A().bool,
+ expandDepth: A().number,
+ depth: A().number,
+ specPath: O().list.isRequired,
+ includeReadOnly: A().bool,
+ includeWriteOnly: A().bool,
+ });
+ },
+ 5623: (e, t, n) => {
+ 'use strict';
+ n.d(t, { Z: () => h });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(67294),
+ l = n(84564),
+ c = n.n(l),
+ u = n(90242),
+ p = n(27504);
+ class h extends a.Component {
+ constructor(e, t) {
+ super(e, t),
+ o()(this, 'getDefinitionUrl', () => {
+ let { specSelectors: e } = this.props;
+ return new (c())(e.url(), p.Z.location).toString();
+ });
+ let { getConfigs: n } = e,
+ { validatorUrl: r } = n();
+ this.state = {
+ url: this.getDefinitionUrl(),
+ validatorUrl: void 0 === r ? 'https://validator.swagger.io/validator' : r,
+ };
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ let { getConfigs: t } = e,
+ { validatorUrl: n } = t();
+ this.setState({
+ url: this.getDefinitionUrl(),
+ validatorUrl: void 0 === n ? 'https://validator.swagger.io/validator' : n,
+ });
+ }
+ render() {
+ let { getConfigs: e } = this.props,
+ { spec: t } = e(),
+ n = (0, u.Nm)(this.state.validatorUrl);
+ return 'object' == typeof t && i()(t).length
+ ? null
+ : this.state.url && (0, u.hW)(this.state.validatorUrl) && (0, u.hW)(this.state.url)
+ ? a.createElement(
+ 'span',
+ { className: 'float-right' },
+ a.createElement(
+ 'a',
+ {
+ target: '_blank',
+ rel: 'noopener noreferrer',
+ href: `${n}/debug?url=${encodeURIComponent(this.state.url)}`,
+ },
+ a.createElement(f, {
+ src: `${n}?url=${encodeURIComponent(this.state.url)}`,
+ alt: 'Online validator badge',
+ })
+ )
+ )
+ : null;
+ }
+ }
+ class f extends a.Component {
+ constructor(e) {
+ super(e), (this.state = { loaded: !1, error: !1 });
+ }
+ componentDidMount() {
+ const e = new Image();
+ (e.onload = () => {
+ this.setState({ loaded: !0 });
+ }),
+ (e.onerror = () => {
+ this.setState({ error: !0 });
+ }),
+ (e.src = this.props.src);
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ if (e.src !== this.props.src) {
+ const t = new Image();
+ (t.onload = () => {
+ this.setState({ loaded: !0 });
+ }),
+ (t.onerror = () => {
+ this.setState({ error: !0 });
+ }),
+ (t.src = e.src);
+ }
+ }
+ render() {
+ return this.state.error
+ ? a.createElement('img', { alt: 'Error' })
+ : this.state.loaded
+ ? a.createElement('img', { src: this.props.src, alt: this.props.alt })
+ : null;
+ }
+ }
+ },
+ 4599: (e, t, n) => {
+ 'use strict';
+ n.d(t, { Z: () => ye, s: () => ve });
+ var r = n(67294),
+ o = n(89927);
+ function s(e, t) {
+ if (Array.prototype.indexOf) return e.indexOf(t);
+ for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
+ return -1;
+ }
+ function i(e, t) {
+ for (var n = e.length - 1; n >= 0; n--) !0 === t(e[n]) && e.splice(n, 1);
+ }
+ function a(e) {
+ throw new Error("Unhandled case for value: '".concat(e, "'"));
+ }
+ var l = (function () {
+ function e(e) {
+ void 0 === e && (e = {}),
+ (this.tagName = ''),
+ (this.attrs = {}),
+ (this.innerHTML = ''),
+ (this.whitespaceRegex = /\s+/),
+ (this.tagName = e.tagName || ''),
+ (this.attrs = e.attrs || {}),
+ (this.innerHTML = e.innerHtml || e.innerHTML || '');
+ }
+ return (
+ (e.prototype.setTagName = function (e) {
+ return (this.tagName = e), this;
+ }),
+ (e.prototype.getTagName = function () {
+ return this.tagName || '';
+ }),
+ (e.prototype.setAttr = function (e, t) {
+ return (this.getAttrs()[e] = t), this;
+ }),
+ (e.prototype.getAttr = function (e) {
+ return this.getAttrs()[e];
+ }),
+ (e.prototype.setAttrs = function (e) {
+ return Object.assign(this.getAttrs(), e), this;
+ }),
+ (e.prototype.getAttrs = function () {
+ return this.attrs || (this.attrs = {});
+ }),
+ (e.prototype.setClass = function (e) {
+ return this.setAttr('class', e);
+ }),
+ (e.prototype.addClass = function (e) {
+ for (
+ var t, n = this.getClass(), r = this.whitespaceRegex, o = n ? n.split(r) : [], i = e.split(r);
+ (t = i.shift());
+
+ )
+ -1 === s(o, t) && o.push(t);
+ return (this.getAttrs().class = o.join(' ')), this;
+ }),
+ (e.prototype.removeClass = function (e) {
+ for (
+ var t, n = this.getClass(), r = this.whitespaceRegex, o = n ? n.split(r) : [], i = e.split(r);
+ o.length && (t = i.shift());
+
+ ) {
+ var a = s(o, t);
+ -1 !== a && o.splice(a, 1);
+ }
+ return (this.getAttrs().class = o.join(' ')), this;
+ }),
+ (e.prototype.getClass = function () {
+ return this.getAttrs().class || '';
+ }),
+ (e.prototype.hasClass = function (e) {
+ return -1 !== (' ' + this.getClass() + ' ').indexOf(' ' + e + ' ');
+ }),
+ (e.prototype.setInnerHTML = function (e) {
+ return (this.innerHTML = e), this;
+ }),
+ (e.prototype.setInnerHtml = function (e) {
+ return this.setInnerHTML(e);
+ }),
+ (e.prototype.getInnerHTML = function () {
+ return this.innerHTML || '';
+ }),
+ (e.prototype.getInnerHtml = function () {
+ return this.getInnerHTML();
+ }),
+ (e.prototype.toAnchorString = function () {
+ var e = this.getTagName(),
+ t = this.buildAttrsStr();
+ return ['<', e, (t = t ? ' ' + t : ''), '>', this.getInnerHtml(), '', e, '>'].join('');
+ }),
+ (e.prototype.buildAttrsStr = function () {
+ if (!this.attrs) return '';
+ var e = this.getAttrs(),
+ t = [];
+ for (var n in e) e.hasOwnProperty(n) && t.push(n + '="' + e[n] + '"');
+ return t.join(' ');
+ }),
+ e
+ );
+ })();
+ var c = (function () {
+ function e(e) {
+ void 0 === e && (e = {}),
+ (this.newWindow = !1),
+ (this.truncate = {}),
+ (this.className = ''),
+ (this.newWindow = e.newWindow || !1),
+ (this.truncate = e.truncate || {}),
+ (this.className = e.className || '');
+ }
+ return (
+ (e.prototype.build = function (e) {
+ return new l({
+ tagName: 'a',
+ attrs: this.createAttrs(e),
+ innerHtml: this.processAnchorText(e.getAnchorText()),
+ });
+ }),
+ (e.prototype.createAttrs = function (e) {
+ var t = { href: e.getAnchorHref() },
+ n = this.createCssClass(e);
+ return (
+ n && (t.class = n),
+ this.newWindow && ((t.target = '_blank'), (t.rel = 'noopener noreferrer')),
+ this.truncate &&
+ this.truncate.length &&
+ this.truncate.length < e.getAnchorText().length &&
+ (t.title = e.getAnchorHref()),
+ t
+ );
+ }),
+ (e.prototype.createCssClass = function (e) {
+ var t = this.className;
+ if (t) {
+ for (var n = [t], r = e.getCssClassSuffixes(), o = 0, s = r.length; o < s; o++)
+ n.push(t + '-' + r[o]);
+ return n.join(' ');
+ }
+ return '';
+ }),
+ (e.prototype.processAnchorText = function (e) {
+ return (e = this.doTruncate(e));
+ }),
+ (e.prototype.doTruncate = function (e) {
+ var t = this.truncate;
+ if (!t || !t.length) return e;
+ var n = t.length,
+ r = t.location;
+ return 'smart' === r
+ ? (function (e, t, n) {
+ var r, o;
+ null == n ? ((n = '…'), (o = 3), (r = 8)) : ((o = n.length), (r = n.length));
+ var s = function (e) {
+ var t = '';
+ return (
+ e.scheme && e.host && (t += e.scheme + '://'),
+ e.host && (t += e.host),
+ e.path && (t += '/' + e.path),
+ e.query && (t += '?' + e.query),
+ e.fragment && (t += '#' + e.fragment),
+ t
+ );
+ },
+ i = function (e, t) {
+ var r = t / 2,
+ o = Math.ceil(r),
+ s = -1 * Math.floor(r),
+ i = '';
+ return s < 0 && (i = e.substr(s)), e.substr(0, o) + n + i;
+ };
+ if (e.length <= t) return e;
+ var a = t - o,
+ l = (function (e) {
+ var t = {},
+ n = e,
+ r = n.match(/^([a-z]+):\/\//i);
+ return (
+ r && ((t.scheme = r[1]), (n = n.substr(r[0].length))),
+ (r = n.match(/^(.*?)(?=(\?|#|\/|$))/i)) && ((t.host = r[1]), (n = n.substr(r[0].length))),
+ (r = n.match(/^\/(.*?)(?=(\?|#|$))/i)) && ((t.path = r[1]), (n = n.substr(r[0].length))),
+ (r = n.match(/^\?(.*?)(?=(#|$))/i)) && ((t.query = r[1]), (n = n.substr(r[0].length))),
+ (r = n.match(/^#(.*?)$/i)) && (t.fragment = r[1]),
+ t
+ );
+ })(e);
+ if (l.query) {
+ var c = l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);
+ c && ((l.query = l.query.substr(0, c[1].length)), (e = s(l)));
+ }
+ if (e.length <= t) return e;
+ if ((l.host && ((l.host = l.host.replace(/^www\./, '')), (e = s(l))), e.length <= t)) return e;
+ var u = '';
+ if ((l.host && (u += l.host), u.length >= a))
+ return l.host.length == t
+ ? (l.host.substr(0, t - o) + n).substr(0, a + r)
+ : i(u, a).substr(0, a + r);
+ var p = '';
+ if ((l.path && (p += '/' + l.path), l.query && (p += '?' + l.query), p)) {
+ if ((u + p).length >= a)
+ return (u + p).length == t
+ ? (u + p).substr(0, t)
+ : (u + i(p, a - u.length)).substr(0, a + r);
+ u += p;
+ }
+ if (l.fragment) {
+ var h = '#' + l.fragment;
+ if ((u + h).length >= a)
+ return (u + h).length == t
+ ? (u + h).substr(0, t)
+ : (u + i(h, a - u.length)).substr(0, a + r);
+ u += h;
+ }
+ if (l.scheme && l.host) {
+ var f = l.scheme + '://';
+ if ((u + f).length < a) return (f + u).substr(0, t);
+ }
+ if (u.length <= t) return u;
+ var d = '';
+ return (
+ a > 0 && (d = u.substr(-1 * Math.floor(a / 2))),
+ (u.substr(0, Math.ceil(a / 2)) + n + d).substr(0, a + r)
+ );
+ })(e, n)
+ : 'middle' === r
+ ? (function (e, t, n) {
+ if (e.length <= t) return e;
+ var r, o;
+ null == n ? ((n = '…'), (r = 8), (o = 3)) : ((r = n.length), (o = n.length));
+ var s = t - o,
+ i = '';
+ return (
+ s > 0 && (i = e.substr(-1 * Math.floor(s / 2))),
+ (e.substr(0, Math.ceil(s / 2)) + n + i).substr(0, s + r)
+ );
+ })(e, n)
+ : (function (e, t, n) {
+ return (function (e, t, n) {
+ var r;
+ return (
+ e.length > t &&
+ (null == n ? ((n = '…'), (r = 3)) : (r = n.length),
+ (e = e.substring(0, t - r) + n)),
+ e
+ );
+ })(e, t, n);
+ })(e, n);
+ }),
+ e
+ );
+ })(),
+ u = (function () {
+ function e(e) {
+ (this.__jsduckDummyDocProp = null),
+ (this.matchedText = ''),
+ (this.offset = 0),
+ (this.tagBuilder = e.tagBuilder),
+ (this.matchedText = e.matchedText),
+ (this.offset = e.offset);
+ }
+ return (
+ (e.prototype.getMatchedText = function () {
+ return this.matchedText;
+ }),
+ (e.prototype.setOffset = function (e) {
+ this.offset = e;
+ }),
+ (e.prototype.getOffset = function () {
+ return this.offset;
+ }),
+ (e.prototype.getCssClassSuffixes = function () {
+ return [this.getType()];
+ }),
+ (e.prototype.buildTag = function () {
+ return this.tagBuilder.build(this);
+ }),
+ e
+ );
+ })(),
+ p = function (e, t) {
+ return (
+ (p =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
+ }),
+ p(e, t)
+ );
+ };
+ function h(e, t) {
+ if ('function' != typeof t && null !== t)
+ throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null');
+ function n() {
+ this.constructor = e;
+ }
+ p(e, t), (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
+ }
+ var f = function () {
+ return (
+ (f =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var o in (t = arguments[n])) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
+ return e;
+ }),
+ f.apply(this, arguments)
+ );
+ };
+ Object.create;
+ Object.create;
+ var d,
+ m = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (n.email = ''), (n.email = t.email), n;
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return 'email';
+ }),
+ (t.prototype.getEmail = function () {
+ return this.email;
+ }),
+ (t.prototype.getAnchorHref = function () {
+ return 'mailto:' + this.email;
+ }),
+ (t.prototype.getAnchorText = function () {
+ return this.email;
+ }),
+ t
+ );
+ })(u),
+ g = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.serviceName = ''), (n.hashtag = ''), (n.serviceName = t.serviceName), (n.hashtag = t.hashtag), n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return 'hashtag';
+ }),
+ (t.prototype.getServiceName = function () {
+ return this.serviceName;
+ }),
+ (t.prototype.getHashtag = function () {
+ return this.hashtag;
+ }),
+ (t.prototype.getAnchorHref = function () {
+ var e = this.serviceName,
+ t = this.hashtag;
+ switch (e) {
+ case 'twitter':
+ return 'https://twitter.com/hashtag/' + t;
+ case 'facebook':
+ return 'https://www.facebook.com/hashtag/' + t;
+ case 'instagram':
+ return 'https://instagram.com/explore/tags/' + t;
+ case 'tiktok':
+ return 'https://www.tiktok.com/tag/' + t;
+ default:
+ throw new Error('Unknown service name to point hashtag to: ' + e);
+ }
+ }),
+ (t.prototype.getAnchorText = function () {
+ return '#' + this.hashtag;
+ }),
+ t
+ );
+ })(u),
+ y = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.serviceName = 'twitter'),
+ (n.mention = ''),
+ (n.mention = t.mention),
+ (n.serviceName = t.serviceName),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return 'mention';
+ }),
+ (t.prototype.getMention = function () {
+ return this.mention;
+ }),
+ (t.prototype.getServiceName = function () {
+ return this.serviceName;
+ }),
+ (t.prototype.getAnchorHref = function () {
+ switch (this.serviceName) {
+ case 'twitter':
+ return 'https://twitter.com/' + this.mention;
+ case 'instagram':
+ return 'https://instagram.com/' + this.mention;
+ case 'soundcloud':
+ return 'https://soundcloud.com/' + this.mention;
+ case 'tiktok':
+ return 'https://www.tiktok.com/@' + this.mention;
+ default:
+ throw new Error('Unknown service name to point mention to: ' + this.serviceName);
+ }
+ }),
+ (t.prototype.getAnchorText = function () {
+ return '@' + this.mention;
+ }),
+ (t.prototype.getCssClassSuffixes = function () {
+ var t = e.prototype.getCssClassSuffixes.call(this),
+ n = this.getServiceName();
+ return n && t.push(n), t;
+ }),
+ t
+ );
+ })(u),
+ v = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (n.number = ''), (n.plusSign = !1), (n.number = t.number), (n.plusSign = t.plusSign), n;
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return 'phone';
+ }),
+ (t.prototype.getPhoneNumber = function () {
+ return this.number;
+ }),
+ (t.prototype.getNumber = function () {
+ return this.getPhoneNumber();
+ }),
+ (t.prototype.getAnchorHref = function () {
+ return 'tel:' + (this.plusSign ? '+' : '') + this.number;
+ }),
+ (t.prototype.getAnchorText = function () {
+ return this.matchedText;
+ }),
+ t
+ );
+ })(u),
+ b = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.url = ''),
+ (n.urlMatchType = 'scheme'),
+ (n.protocolUrlMatch = !1),
+ (n.protocolRelativeMatch = !1),
+ (n.stripPrefix = { scheme: !0, www: !0 }),
+ (n.stripTrailingSlash = !0),
+ (n.decodePercentEncoding = !0),
+ (n.schemePrefixRegex = /^(https?:\/\/)?/i),
+ (n.wwwPrefixRegex = /^(https?:\/\/)?(www\.)?/i),
+ (n.protocolRelativeRegex = /^\/\//),
+ (n.protocolPrepended = !1),
+ (n.urlMatchType = t.urlMatchType),
+ (n.url = t.url),
+ (n.protocolUrlMatch = t.protocolUrlMatch),
+ (n.protocolRelativeMatch = t.protocolRelativeMatch),
+ (n.stripPrefix = t.stripPrefix),
+ (n.stripTrailingSlash = t.stripTrailingSlash),
+ (n.decodePercentEncoding = t.decodePercentEncoding),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.getType = function () {
+ return 'url';
+ }),
+ (t.prototype.getUrlMatchType = function () {
+ return this.urlMatchType;
+ }),
+ (t.prototype.getUrl = function () {
+ var e = this.url;
+ return (
+ this.protocolRelativeMatch ||
+ this.protocolUrlMatch ||
+ this.protocolPrepended ||
+ ((e = this.url = 'http://' + e), (this.protocolPrepended = !0)),
+ e
+ );
+ }),
+ (t.prototype.getAnchorHref = function () {
+ return this.getUrl().replace(/&/g, '&');
+ }),
+ (t.prototype.getAnchorText = function () {
+ var e = this.getMatchedText();
+ return (
+ this.protocolRelativeMatch && (e = this.stripProtocolRelativePrefix(e)),
+ this.stripPrefix.scheme && (e = this.stripSchemePrefix(e)),
+ this.stripPrefix.www && (e = this.stripWwwPrefix(e)),
+ this.stripTrailingSlash && (e = this.removeTrailingSlash(e)),
+ this.decodePercentEncoding && (e = this.removePercentEncoding(e)),
+ e
+ );
+ }),
+ (t.prototype.stripSchemePrefix = function (e) {
+ return e.replace(this.schemePrefixRegex, '');
+ }),
+ (t.prototype.stripWwwPrefix = function (e) {
+ return e.replace(this.wwwPrefixRegex, '$1');
+ }),
+ (t.prototype.stripProtocolRelativePrefix = function (e) {
+ return e.replace(this.protocolRelativeRegex, '');
+ }),
+ (t.prototype.removeTrailingSlash = function (e) {
+ return '/' === e.charAt(e.length - 1) && (e = e.slice(0, -1)), e;
+ }),
+ (t.prototype.removePercentEncoding = function (e) {
+ var t = e
+ .replace(/%22/gi, '"')
+ .replace(/%26/gi, '&')
+ .replace(/%27/gi, ''')
+ .replace(/%3C/gi, '<')
+ .replace(/%3E/gi, '>');
+ try {
+ return decodeURIComponent(t);
+ } catch (e) {
+ return t;
+ }
+ }),
+ t
+ );
+ })(u),
+ w = function (e) {
+ (this.__jsduckDummyDocProp = null), (this.tagBuilder = e.tagBuilder);
+ },
+ E = /[A-Za-z]/,
+ x = /[\d]/,
+ S = /[\D]/,
+ _ = /\s/,
+ j = /['"]/,
+ O = /[\x00-\x1F\x7F]/,
+ k =
+ /A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/
+ .source,
+ A =
+ k +
+ /\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/
+ .source +
+ /\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/
+ .source,
+ C =
+ /0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/
+ .source,
+ P = A + C,
+ N = A + C,
+ I = new RegExp('['.concat(N, ']')),
+ T = '(?:[' + C + ']{1,3}\\.){3}[' + C + ']{1,3}',
+ R = '[' + N + '](?:[' + N + '\\-_]{0,61}[' + N + '])?',
+ M = function (e) {
+ return '(?=(' + R + '))\\' + e;
+ },
+ D = function (e) {
+ return '(?:' + M(e) + '(?:\\.' + M(e + 1) + '){0,126}|' + T + ')';
+ },
+ F = (new RegExp('[' + N + '.\\-]*[' + N + '\\-]'), I),
+ L =
+ /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,
+ B = new RegExp('['.concat(N, "!#$%&'*+/=?^_`{|}~-]")),
+ $ = new RegExp('^'.concat(L.source, '$')),
+ q = (function (e) {
+ function t() {
+ var t = (null !== e && e.apply(this, arguments)) || this;
+ return (t.localPartCharRegex = B), (t.strictTldRegex = $), t;
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (
+ var t = this.tagBuilder,
+ n = this.localPartCharRegex,
+ r = this.strictTldRegex,
+ o = [],
+ s = e.length,
+ i = new U(),
+ l = { m: 'a', a: 'i', i: 'l', l: 't', t: 'o', o: ':' },
+ c = 0,
+ u = 0,
+ p = i;
+ c < s;
+
+ ) {
+ var h = e.charAt(c);
+ switch (u) {
+ case 0:
+ d(h);
+ break;
+ case 1:
+ g(e.charAt(c - 1), h);
+ break;
+ case 2:
+ y(h);
+ break;
+ case 3:
+ v(h);
+ break;
+ case 4:
+ b(h);
+ break;
+ case 5:
+ w(h);
+ break;
+ case 6:
+ E(h);
+ break;
+ case 7:
+ x(h);
+ break;
+ default:
+ a(u);
+ }
+ c++;
+ }
+ return j(), o;
+ function d(e) {
+ 'm' === e ? S(1) : n.test(e) && S();
+ }
+ function g(e, t) {
+ ':' === e
+ ? n.test(t)
+ ? ((u = 2), (p = new U(f(f({}, p), { hasMailtoPrefix: !0 }))))
+ : _()
+ : l[e] === t || (n.test(t) ? (u = 2) : '.' === t ? (u = 3) : '@' === t ? (u = 4) : _());
+ }
+ function y(e) {
+ '.' === e ? (u = 3) : '@' === e ? (u = 4) : n.test(e) || _();
+ }
+ function v(e) {
+ '.' === e || '@' === e ? _() : n.test(e) ? (u = 2) : _();
+ }
+ function b(e) {
+ F.test(e) ? (u = 5) : _();
+ }
+ function w(e) {
+ '.' === e ? (u = 7) : '-' === e ? (u = 6) : F.test(e) || j();
+ }
+ function E(e) {
+ '-' === e || '.' === e ? j() : F.test(e) ? (u = 5) : j();
+ }
+ function x(e) {
+ '.' === e || '-' === e
+ ? j()
+ : F.test(e)
+ ? ((u = 5), (p = new U(f(f({}, p), { hasDomainDot: !0 }))))
+ : j();
+ }
+ function S(e) {
+ void 0 === e && (e = 2), (u = e), (p = new U({ idx: c }));
+ }
+ function _() {
+ (u = 0), (p = i);
+ }
+ function j() {
+ if (p.hasDomainDot) {
+ var n = e.slice(p.idx, c);
+ /[-.]$/.test(n) && (n = n.slice(0, -1));
+ var s = p.hasMailtoPrefix ? n.slice(7) : n;
+ (function (e) {
+ var t = e.split('.').pop() || '',
+ n = t.toLowerCase();
+ return r.test(n);
+ })(s) && o.push(new m({ tagBuilder: t, matchedText: n, offset: p.idx, email: s }));
+ }
+ _();
+ }
+ }),
+ t
+ );
+ })(w),
+ U = function (e) {
+ void 0 === e && (e = {}),
+ (this.idx = void 0 !== e.idx ? e.idx : -1),
+ (this.hasMailtoPrefix = !!e.hasMailtoPrefix),
+ (this.hasDomainDot = !!e.hasDomainDot);
+ },
+ z = (function () {
+ function e() {}
+ return (
+ (e.isValid = function (e, t) {
+ return !(
+ (t && !this.isValidUriScheme(t)) ||
+ this.urlMatchDoesNotHaveProtocolOrDot(e, t) ||
+ (this.urlMatchDoesNotHaveAtLeastOneWordChar(e, t) && !this.isValidIpAddress(e)) ||
+ this.containsMultipleDots(e)
+ );
+ }),
+ (e.isValidIpAddress = function (e) {
+ var t = new RegExp(this.hasFullProtocolRegex.source + this.ipRegex.source);
+ return null !== e.match(t);
+ }),
+ (e.containsMultipleDots = function (e) {
+ var t = e;
+ return (
+ this.hasFullProtocolRegex.test(e) && (t = e.split('://')[1]), t.split('/')[0].indexOf('..') > -1
+ );
+ }),
+ (e.isValidUriScheme = function (e) {
+ var t = e.match(this.uriSchemeRegex),
+ n = t && t[0].toLowerCase();
+ return 'javascript:' !== n && 'vbscript:' !== n;
+ }),
+ (e.urlMatchDoesNotHaveProtocolOrDot = function (e, t) {
+ return !(!e || (t && this.hasFullProtocolRegex.test(t)) || -1 !== e.indexOf('.'));
+ }),
+ (e.urlMatchDoesNotHaveAtLeastOneWordChar = function (e, t) {
+ return (
+ !(!e || !t) && !this.hasFullProtocolRegex.test(t) && !this.hasWordCharAfterProtocolRegex.test(e)
+ );
+ }),
+ (e.hasFullProtocolRegex = /^[A-Za-z][-.+A-Za-z0-9]*:\/\//),
+ (e.uriSchemeRegex = /^[A-Za-z][-.+A-Za-z0-9]*:/),
+ (e.hasWordCharAfterProtocolRegex = new RegExp(':[^\\s]*?[' + k + ']')),
+ (e.ipRegex =
+ /[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/),
+ e
+ );
+ })(),
+ V =
+ ((d = new RegExp(
+ '[/?#](?:[' + N + "\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*[" + N + "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"
+ )),
+ new RegExp(
+ [
+ '(?:',
+ '(',
+ /(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,
+ D(2),
+ ')',
+ '|',
+ '(',
+ '(//)?',
+ /(?:www\.)/.source,
+ D(6),
+ ')',
+ '|',
+ '(',
+ '(//)?',
+ D(10) + '\\.',
+ L.source,
+ '(?![-' + P + '])',
+ ')',
+ ')',
+ '(?::[0-9]+)?',
+ '(?:' + d.source + ')?',
+ ].join(''),
+ 'gi'
+ )),
+ W = new RegExp('[' + N + ']'),
+ J = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.stripPrefix = { scheme: !0, www: !0 }),
+ (n.stripTrailingSlash = !0),
+ (n.decodePercentEncoding = !0),
+ (n.matcherRegex = V),
+ (n.wordCharRegExp = W),
+ (n.stripPrefix = t.stripPrefix),
+ (n.stripTrailingSlash = t.stripTrailingSlash),
+ (n.decodePercentEncoding = t.decodePercentEncoding),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (
+ var t,
+ n = this.matcherRegex,
+ r = this.stripPrefix,
+ o = this.stripTrailingSlash,
+ s = this.decodePercentEncoding,
+ i = this.tagBuilder,
+ a = [],
+ l = function () {
+ var n = t[0],
+ l = t[1],
+ u = t[4],
+ p = t[5],
+ h = t[9],
+ f = t.index,
+ d = p || h,
+ m = e.charAt(f - 1);
+ if (!z.isValid(n, l)) return 'continue';
+ if (f > 0 && '@' === m) return 'continue';
+ if (f > 0 && d && c.wordCharRegExp.test(m)) return 'continue';
+ if ((/\?$/.test(n) && (n = n.substr(0, n.length - 1)), c.matchHasUnbalancedClosingParen(n)))
+ n = n.substr(0, n.length - 1);
+ else {
+ var g = c.matchHasInvalidCharAfterTld(n, l);
+ g > -1 && (n = n.substr(0, g));
+ }
+ var y = ['http://', 'https://'].find(function (e) {
+ return !!l && -1 !== l.indexOf(e);
+ });
+ if (y) {
+ var v = n.indexOf(y);
+ (n = n.substr(v)), (l = l.substr(v)), (f += v);
+ }
+ var w = l ? 'scheme' : u ? 'www' : 'tld',
+ E = !!l;
+ a.push(
+ new b({
+ tagBuilder: i,
+ matchedText: n,
+ offset: f,
+ urlMatchType: w,
+ url: n,
+ protocolUrlMatch: E,
+ protocolRelativeMatch: !!d,
+ stripPrefix: r,
+ stripTrailingSlash: o,
+ decodePercentEncoding: s,
+ })
+ );
+ },
+ c = this;
+ null !== (t = n.exec(e));
+
+ )
+ l();
+ return a;
+ }),
+ (t.prototype.matchHasUnbalancedClosingParen = function (e) {
+ var t,
+ n = e.charAt(e.length - 1);
+ if (')' === n) t = '(';
+ else if (']' === n) t = '[';
+ else {
+ if ('}' !== n) return !1;
+ t = '{';
+ }
+ for (var r = 0, o = 0, s = e.length - 1; o < s; o++) {
+ var i = e.charAt(o);
+ i === t ? r++ : i === n && (r = Math.max(r - 1, 0));
+ }
+ return 0 === r;
+ }),
+ (t.prototype.matchHasInvalidCharAfterTld = function (e, t) {
+ if (!e) return -1;
+ var n = 0;
+ t && ((n = e.indexOf(':')), (e = e.slice(n)));
+ var r = new RegExp('^((.?//)?[-.' + N + ']*[-' + N + ']\\.[-' + N + ']+)').exec(e);
+ return null === r
+ ? -1
+ : ((n += r[1].length), (e = e.slice(r[1].length)), /^[^-.A-Za-z0-9:\/?#]/.test(e) ? n : -1);
+ }),
+ t
+ );
+ })(w),
+ K = new RegExp('[_'.concat(N, ']')),
+ H = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (n.serviceName = 'twitter'), (n.serviceName = t.serviceName), n;
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (
+ var t = this.tagBuilder, n = this.serviceName, r = [], o = e.length, s = 0, i = -1, l = 0;
+ s < o;
+
+ ) {
+ var c = e.charAt(s);
+ switch (l) {
+ case 0:
+ u(c);
+ break;
+ case 1:
+ p(c);
+ break;
+ case 2:
+ h(c);
+ break;
+ case 3:
+ f(c);
+ break;
+ default:
+ a(l);
+ }
+ s++;
+ }
+ return d(), r;
+ function u(e) {
+ '#' === e ? ((l = 2), (i = s)) : I.test(e) && (l = 1);
+ }
+ function p(e) {
+ I.test(e) || (l = 0);
+ }
+ function h(e) {
+ l = K.test(e) ? 3 : I.test(e) ? 1 : 0;
+ }
+ function f(e) {
+ K.test(e) || (d(), (i = -1), (l = I.test(e) ? 1 : 0));
+ }
+ function d() {
+ if (i > -1 && s - i <= 140) {
+ var o = e.slice(i, s),
+ a = new g({ tagBuilder: t, matchedText: o, offset: i, serviceName: n, hashtag: o.slice(1) });
+ r.push(a);
+ }
+ }
+ }),
+ t
+ );
+ })(w),
+ G = ['twitter', 'facebook', 'instagram', 'tiktok'],
+ Z = new RegExp(
+ ''
+ .concat(
+ /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/
+ .source,
+ '|'
+ )
+ .concat(
+ /(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/
+ .source
+ ),
+ 'g'
+ ),
+ Y = (function (e) {
+ function t() {
+ var t = (null !== e && e.apply(this, arguments)) || this;
+ return (t.matcherRegex = Z), t;
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ for (var t, n = this.matcherRegex, r = this.tagBuilder, o = []; null !== (t = n.exec(e)); ) {
+ var s = t[0],
+ i = s.replace(/[^0-9,;#]/g, ''),
+ a = !(!t[1] && !t[2]),
+ l = 0 == t.index ? '' : e.substr(t.index - 1, 1),
+ c = e.substr(t.index + s.length, 1),
+ u = !l.match(/\d/) && !c.match(/\d/);
+ this.testMatch(t[3]) &&
+ this.testMatch(s) &&
+ u &&
+ o.push(new v({ tagBuilder: r, matchedText: s, offset: t.index, number: i, plusSign: a }));
+ }
+ return o;
+ }),
+ (t.prototype.testMatch = function (e) {
+ return S.test(e);
+ }),
+ t
+ );
+ })(w),
+ X = new RegExp('@[_'.concat(N, ']{1,50}(?![_').concat(N, '])'), 'g'),
+ Q = new RegExp('@[_.'.concat(N, ']{1,30}(?![_').concat(N, '])'), 'g'),
+ ee = new RegExp('@[-_.'.concat(N, ']{1,50}(?![-_').concat(N, '])'), 'g'),
+ te = new RegExp('@[_.'.concat(N, ']{1,23}[_').concat(N, '](?![_').concat(N, '])'), 'g'),
+ ne = new RegExp('[^' + N + ']'),
+ re = (function (e) {
+ function t(t) {
+ var n = e.call(this, t) || this;
+ return (
+ (n.serviceName = 'twitter'),
+ (n.matcherRegexes = { twitter: X, instagram: Q, soundcloud: ee, tiktok: te }),
+ (n.nonWordCharRegex = ne),
+ (n.serviceName = t.serviceName),
+ n
+ );
+ }
+ return (
+ h(t, e),
+ (t.prototype.parseMatches = function (e) {
+ var t,
+ n = this.serviceName,
+ r = this.matcherRegexes[this.serviceName],
+ o = this.nonWordCharRegex,
+ s = this.tagBuilder,
+ i = [];
+ if (!r) return i;
+ for (; null !== (t = r.exec(e)); ) {
+ var a = t.index,
+ l = e.charAt(a - 1);
+ if (0 === a || o.test(l)) {
+ var c = t[0].replace(/\.+$/g, ''),
+ u = c.slice(1);
+ i.push(new y({ tagBuilder: s, matchedText: c, offset: a, serviceName: n, mention: u }));
+ }
+ }
+ return i;
+ }),
+ t
+ );
+ })(w);
+ function oe(e, t) {
+ for (
+ var n,
+ r = t.onOpenTag,
+ o = t.onCloseTag,
+ s = t.onText,
+ i = t.onComment,
+ l = t.onDoctype,
+ c = new se(),
+ u = 0,
+ p = e.length,
+ h = 0,
+ d = 0,
+ m = c;
+ u < p;
+
+ ) {
+ var g = e.charAt(u);
+ switch (h) {
+ case 0:
+ y(g);
+ break;
+ case 1:
+ v(g);
+ break;
+ case 2:
+ w(g);
+ break;
+ case 3:
+ b(g);
+ break;
+ case 4:
+ S(g);
+ break;
+ case 5:
+ k(g);
+ break;
+ case 6:
+ A(g);
+ break;
+ case 7:
+ C(g);
+ break;
+ case 8:
+ P(g);
+ break;
+ case 9:
+ N(g);
+ break;
+ case 10:
+ I(g);
+ break;
+ case 11:
+ T(g);
+ break;
+ case 12:
+ R(g);
+ break;
+ case 13:
+ M(g);
+ break;
+ case 14:
+ D(g);
+ break;
+ case 15:
+ F(g);
+ break;
+ case 16:
+ L(g);
+ break;
+ case 17:
+ B(g);
+ break;
+ case 18:
+ $(g);
+ break;
+ case 19:
+ q(g);
+ break;
+ case 20:
+ U(g);
+ break;
+ default:
+ a(h);
+ }
+ u++;
+ }
+ function y(e) {
+ '<' === e && V();
+ }
+ function v(e) {
+ '!' === e
+ ? (h = 13)
+ : '/' === e
+ ? ((h = 2), (m = new se(f(f({}, m), { isClosing: !0 }))))
+ : '<' === e
+ ? V()
+ : E.test(e)
+ ? ((h = 3), (m = new se(f(f({}, m), { isOpening: !0 }))))
+ : ((h = 0), (m = c));
+ }
+ function b(e) {
+ _.test(e)
+ ? ((m = new se(f(f({}, m), { name: J() }))), (h = 4))
+ : '<' === e
+ ? V()
+ : '/' === e
+ ? ((m = new se(f(f({}, m), { name: J() }))), (h = 12))
+ : '>' === e
+ ? ((m = new se(f(f({}, m), { name: J() }))), W())
+ : E.test(e) || x.test(e) || ':' === e || z();
+ }
+ function w(e) {
+ '>' === e ? z() : E.test(e) ? (h = 3) : z();
+ }
+ function S(e) {
+ _.test(e) ||
+ ('/' === e
+ ? (h = 12)
+ : '>' === e
+ ? W()
+ : '<' === e
+ ? V()
+ : '=' === e || j.test(e) || O.test(e)
+ ? z()
+ : (h = 5));
+ }
+ function k(e) {
+ _.test(e)
+ ? (h = 6)
+ : '/' === e
+ ? (h = 12)
+ : '=' === e
+ ? (h = 7)
+ : '>' === e
+ ? W()
+ : '<' === e
+ ? V()
+ : j.test(e) && z();
+ }
+ function A(e) {
+ _.test(e) ||
+ ('/' === e
+ ? (h = 12)
+ : '=' === e
+ ? (h = 7)
+ : '>' === e
+ ? W()
+ : '<' === e
+ ? V()
+ : j.test(e)
+ ? z()
+ : (h = 5));
+ }
+ function C(e) {
+ _.test(e) ||
+ ('"' === e ? (h = 8) : "'" === e ? (h = 9) : /[>=`]/.test(e) ? z() : '<' === e ? V() : (h = 10));
+ }
+ function P(e) {
+ '"' === e && (h = 11);
+ }
+ function N(e) {
+ "'" === e && (h = 11);
+ }
+ function I(e) {
+ _.test(e) ? (h = 4) : '>' === e ? W() : '<' === e && V();
+ }
+ function T(e) {
+ _.test(e) ? (h = 4) : '/' === e ? (h = 12) : '>' === e ? W() : '<' === e ? V() : ((h = 4), u--);
+ }
+ function R(e) {
+ '>' === e ? ((m = new se(f(f({}, m), { isClosing: !0 }))), W()) : (h = 4);
+ }
+ function M(t) {
+ '--' === e.substr(u, 2)
+ ? ((u += 2), (m = new se(f(f({}, m), { type: 'comment' }))), (h = 14))
+ : 'DOCTYPE' === e.substr(u, 7).toUpperCase()
+ ? ((u += 7), (m = new se(f(f({}, m), { type: 'doctype' }))), (h = 20))
+ : z();
+ }
+ function D(e) {
+ '-' === e ? (h = 15) : '>' === e ? z() : (h = 16);
+ }
+ function F(e) {
+ '-' === e ? (h = 18) : '>' === e ? z() : (h = 16);
+ }
+ function L(e) {
+ '-' === e && (h = 17);
+ }
+ function B(e) {
+ h = '-' === e ? 18 : 16;
+ }
+ function $(e) {
+ '>' === e ? W() : '!' === e ? (h = 19) : '-' === e || (h = 16);
+ }
+ function q(e) {
+ '-' === e ? (h = 17) : '>' === e ? W() : (h = 16);
+ }
+ function U(e) {
+ '>' === e ? W() : '<' === e && V();
+ }
+ function z() {
+ (h = 0), (m = c);
+ }
+ function V() {
+ (h = 1), (m = new se({ idx: u }));
+ }
+ function W() {
+ var t = e.slice(d, m.idx);
+ t && s(t, d),
+ 'comment' === m.type
+ ? i(m.idx)
+ : 'doctype' === m.type
+ ? l(m.idx)
+ : (m.isOpening && r(m.name, m.idx), m.isClosing && o(m.name, m.idx)),
+ z(),
+ (d = u + 1);
+ }
+ function J() {
+ var t = m.idx + (m.isClosing ? 2 : 1);
+ return e.slice(t, u).toLowerCase();
+ }
+ d < u && ((n = e.slice(d, u)), s(n, d), (d = u + 1));
+ }
+ var se = function (e) {
+ void 0 === e && (e = {}),
+ (this.idx = void 0 !== e.idx ? e.idx : -1),
+ (this.type = e.type || 'tag'),
+ (this.name = e.name || ''),
+ (this.isOpening = !!e.isOpening),
+ (this.isClosing = !!e.isClosing);
+ };
+ const ie = (function () {
+ function e(t) {
+ void 0 === t && (t = {}),
+ (this.version = e.version),
+ (this.urls = {}),
+ (this.email = !0),
+ (this.phone = !0),
+ (this.hashtag = !1),
+ (this.mention = !1),
+ (this.newWindow = !0),
+ (this.stripPrefix = { scheme: !0, www: !0 }),
+ (this.stripTrailingSlash = !0),
+ (this.decodePercentEncoding = !0),
+ (this.truncate = { length: 0, location: 'end' }),
+ (this.className = ''),
+ (this.replaceFn = null),
+ (this.context = void 0),
+ (this.sanitizeHtml = !1),
+ (this.matchers = null),
+ (this.tagBuilder = null),
+ (this.urls = this.normalizeUrlsCfg(t.urls)),
+ (this.email = 'boolean' == typeof t.email ? t.email : this.email),
+ (this.phone = 'boolean' == typeof t.phone ? t.phone : this.phone),
+ (this.hashtag = t.hashtag || this.hashtag),
+ (this.mention = t.mention || this.mention),
+ (this.newWindow = 'boolean' == typeof t.newWindow ? t.newWindow : this.newWindow),
+ (this.stripPrefix = this.normalizeStripPrefixCfg(t.stripPrefix)),
+ (this.stripTrailingSlash =
+ 'boolean' == typeof t.stripTrailingSlash ? t.stripTrailingSlash : this.stripTrailingSlash),
+ (this.decodePercentEncoding =
+ 'boolean' == typeof t.decodePercentEncoding ? t.decodePercentEncoding : this.decodePercentEncoding),
+ (this.sanitizeHtml = t.sanitizeHtml || !1);
+ var n = this.mention;
+ if (!1 !== n && -1 === ['twitter', 'instagram', 'soundcloud', 'tiktok'].indexOf(n))
+ throw new Error("invalid `mention` cfg '".concat(n, "' - see docs"));
+ var r = this.hashtag;
+ if (!1 !== r && -1 === G.indexOf(r)) throw new Error("invalid `hashtag` cfg '".concat(r, "' - see docs"));
+ (this.truncate = this.normalizeTruncateCfg(t.truncate)),
+ (this.className = t.className || this.className),
+ (this.replaceFn = t.replaceFn || this.replaceFn),
+ (this.context = t.context || this);
+ }
+ return (
+ (e.link = function (t, n) {
+ return new e(n).link(t);
+ }),
+ (e.parse = function (t, n) {
+ return new e(n).parse(t);
+ }),
+ (e.prototype.normalizeUrlsCfg = function (e) {
+ return (
+ null == e && (e = !0),
+ 'boolean' == typeof e
+ ? { schemeMatches: e, wwwMatches: e, tldMatches: e }
+ : {
+ schemeMatches: 'boolean' != typeof e.schemeMatches || e.schemeMatches,
+ wwwMatches: 'boolean' != typeof e.wwwMatches || e.wwwMatches,
+ tldMatches: 'boolean' != typeof e.tldMatches || e.tldMatches,
+ }
+ );
+ }),
+ (e.prototype.normalizeStripPrefixCfg = function (e) {
+ return (
+ null == e && (e = !0),
+ 'boolean' == typeof e
+ ? { scheme: e, www: e }
+ : { scheme: 'boolean' != typeof e.scheme || e.scheme, www: 'boolean' != typeof e.www || e.www }
+ );
+ }),
+ (e.prototype.normalizeTruncateCfg = function (e) {
+ return 'number' == typeof e
+ ? { length: e, location: 'end' }
+ : (function (e, t) {
+ for (var n in t) t.hasOwnProperty(n) && void 0 === e[n] && (e[n] = t[n]);
+ return e;
+ })(e || {}, { length: Number.POSITIVE_INFINITY, location: 'end' });
+ }),
+ (e.prototype.parse = function (e) {
+ var t = this,
+ n = ['a', 'style', 'script'],
+ r = 0,
+ o = [];
+ return (
+ oe(e, {
+ onOpenTag: function (e) {
+ n.indexOf(e) >= 0 && r++;
+ },
+ onText: function (e, n) {
+ if (0 === r) {
+ var s = (function (e, t) {
+ if (!t.global) throw new Error("`splitRegex` must have the 'g' flag set");
+ for (var n, r = [], o = 0; (n = t.exec(e)); )
+ r.push(e.substring(o, n.index)), r.push(n[0]), (o = n.index + n[0].length);
+ return r.push(e.substring(o)), r;
+ })(e, /( | |<|<|>|>|"|"|')/gi),
+ i = n;
+ s.forEach(function (e, n) {
+ if (n % 2 == 0) {
+ var r = t.parseText(e, i);
+ o.push.apply(o, r);
+ }
+ i += e.length;
+ });
+ }
+ },
+ onCloseTag: function (e) {
+ n.indexOf(e) >= 0 && (r = Math.max(r - 1, 0));
+ },
+ onComment: function (e) {},
+ onDoctype: function (e) {},
+ }),
+ (o = this.compactMatches(o)),
+ (o = this.removeUnwantedMatches(o))
+ );
+ }),
+ (e.prototype.compactMatches = function (e) {
+ e.sort(function (e, t) {
+ return e.getOffset() - t.getOffset();
+ });
+ for (var t = 0; t < e.length - 1; ) {
+ var n = e[t],
+ r = n.getOffset(),
+ o = n.getMatchedText().length,
+ s = r + o;
+ if (t + 1 < e.length) {
+ if (e[t + 1].getOffset() === r) {
+ var i = e[t + 1].getMatchedText().length > o ? t : t + 1;
+ e.splice(i, 1);
+ continue;
+ }
+ if (e[t + 1].getOffset() < s) {
+ e.splice(t + 1, 1);
+ continue;
+ }
+ }
+ t++;
+ }
+ return e;
+ }),
+ (e.prototype.removeUnwantedMatches = function (e) {
+ return (
+ this.hashtag ||
+ i(e, function (e) {
+ return 'hashtag' === e.getType();
+ }),
+ this.email ||
+ i(e, function (e) {
+ return 'email' === e.getType();
+ }),
+ this.phone ||
+ i(e, function (e) {
+ return 'phone' === e.getType();
+ }),
+ this.mention ||
+ i(e, function (e) {
+ return 'mention' === e.getType();
+ }),
+ this.urls.schemeMatches ||
+ i(e, function (e) {
+ return 'url' === e.getType() && 'scheme' === e.getUrlMatchType();
+ }),
+ this.urls.wwwMatches ||
+ i(e, function (e) {
+ return 'url' === e.getType() && 'www' === e.getUrlMatchType();
+ }),
+ this.urls.tldMatches ||
+ i(e, function (e) {
+ return 'url' === e.getType() && 'tld' === e.getUrlMatchType();
+ }),
+ e
+ );
+ }),
+ (e.prototype.parseText = function (e, t) {
+ void 0 === t && (t = 0), (t = t || 0);
+ for (var n = this.getMatchers(), r = [], o = 0, s = n.length; o < s; o++) {
+ for (var i = n[o].parseMatches(e), a = 0, l = i.length; a < l; a++)
+ i[a].setOffset(t + i[a].getOffset());
+ r.push.apply(r, i);
+ }
+ return r;
+ }),
+ (e.prototype.link = function (e) {
+ if (!e) return '';
+ this.sanitizeHtml && (e = e.replace(//g, '>'));
+ for (var t = this.parse(e), n = [], r = 0, o = 0, s = t.length; o < s; o++) {
+ var i = t[o];
+ n.push(e.substring(r, i.getOffset())),
+ n.push(this.createMatchReturnVal(i)),
+ (r = i.getOffset() + i.getMatchedText().length);
+ }
+ return n.push(e.substring(r)), n.join('');
+ }),
+ (e.prototype.createMatchReturnVal = function (e) {
+ var t;
+ return (
+ this.replaceFn && (t = this.replaceFn.call(this.context, e)),
+ 'string' == typeof t
+ ? t
+ : !1 === t
+ ? e.getMatchedText()
+ : t instanceof l
+ ? t.toAnchorString()
+ : e.buildTag().toAnchorString()
+ );
+ }),
+ (e.prototype.getMatchers = function () {
+ if (this.matchers) return this.matchers;
+ var e = this.getTagBuilder(),
+ t = [
+ new H({ tagBuilder: e, serviceName: this.hashtag }),
+ new q({ tagBuilder: e }),
+ new Y({ tagBuilder: e }),
+ new re({ tagBuilder: e, serviceName: this.mention }),
+ new J({
+ tagBuilder: e,
+ stripPrefix: this.stripPrefix,
+ stripTrailingSlash: this.stripTrailingSlash,
+ decodePercentEncoding: this.decodePercentEncoding,
+ }),
+ ];
+ return (this.matchers = t);
+ }),
+ (e.prototype.getTagBuilder = function () {
+ var e = this.tagBuilder;
+ return (
+ e ||
+ (e = this.tagBuilder =
+ new c({ newWindow: this.newWindow, truncate: this.truncate, className: this.className })),
+ e
+ );
+ }),
+ (e.version = '3.16.2'),
+ (e.AnchorTagBuilder = c),
+ (e.HtmlTag = l),
+ (e.matcher = { Email: q, Hashtag: H, Matcher: w, Mention: re, Phone: Y, Url: J }),
+ (e.match = { Email: m, Hashtag: g, Match: u, Mention: y, Phone: v, Url: b }),
+ e
+ );
+ })();
+ var ae = /www|@|\:\/\//;
+ function le(e) {
+ return /^<\/a\s*>/i.test(e);
+ }
+ function ce() {
+ var e = [],
+ t = new ie({
+ stripPrefix: !1,
+ url: !0,
+ email: !0,
+ replaceFn: function (t) {
+ switch (t.getType()) {
+ case 'url':
+ e.push({ text: t.matchedText, url: t.getUrl() });
+ break;
+ case 'email':
+ e.push({ text: t.matchedText, url: 'mailto:' + t.getEmail().replace(/^mailto:/i, '') });
+ }
+ return !1;
+ },
+ });
+ return { links: e, autolinker: t };
+ }
+ function ue(e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i,
+ a,
+ l,
+ c,
+ u,
+ p,
+ h,
+ f,
+ d,
+ m = e.tokens,
+ g = null;
+ for (n = 0, r = m.length; n < r; n++)
+ if ('inline' === m[n].type)
+ for (p = 0, t = (o = m[n].children).length - 1; t >= 0; t--)
+ if ('link_close' !== (s = o[t]).type) {
+ if (
+ ('htmltag' === s.type &&
+ ((d = s.content), /^\s]/i.test(d) && p > 0 && p--, le(s.content) && p++),
+ !(p > 0) && 'text' === s.type && ae.test(s.content))
+ ) {
+ if (
+ (g || ((h = (g = ce()).links), (f = g.autolinker)),
+ (i = s.content),
+ (h.length = 0),
+ f.link(i),
+ !h.length)
+ )
+ continue;
+ for (a = [], u = s.level, l = 0; l < h.length; l++)
+ e.inline.validateLink(h[l].url) &&
+ ((c = i.indexOf(h[l].text)) && a.push({ type: 'text', content: i.slice(0, c), level: u }),
+ a.push({ type: 'link_open', href: h[l].url, title: '', level: u++ }),
+ a.push({ type: 'text', content: h[l].text, level: u }),
+ a.push({ type: 'link_close', level: --u }),
+ (i = i.slice(c + h[l].text.length)));
+ i.length && a.push({ type: 'text', content: i, level: u }),
+ (m[n].children = o = [].concat(o.slice(0, t), a, o.slice(t + 1)));
+ }
+ } else for (t--; o[t].level !== s.level && 'link_open' !== o[t].type; ) t--;
+ }
+ function pe(e) {
+ e.core.ruler.push('linkify', ue);
+ }
+ var he = n(27856),
+ fe = n.n(he),
+ de = n(94184),
+ me = n.n(de);
+ function ge(e) {
+ let { source: t, className: n = '', getConfigs: s } = e;
+ if ('string' != typeof t) return null;
+ const i = new o._({ html: !0, typographer: !0, breaks: !0, linkTarget: '_blank' }).use(pe);
+ i.core.ruler.disable(['replacements', 'smartquotes']);
+ const { useUnsafeMarkdown: a } = s(),
+ l = i.render(t),
+ c = ve(l, { useUnsafeMarkdown: a });
+ return t && l && c
+ ? r.createElement('div', { className: me()(n, 'markdown'), dangerouslySetInnerHTML: { __html: c } })
+ : null;
+ }
+ fe().addHook &&
+ fe().addHook('beforeSanitizeElements', function (e) {
+ return e.href && e.setAttribute('rel', 'noopener noreferrer'), e;
+ }),
+ (ge.defaultProps = { getConfigs: () => ({ useUnsafeMarkdown: !1 }) });
+ const ye = ge;
+ function ve(e) {
+ let { useUnsafeMarkdown: t = !1 } = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ const n = t,
+ r = t ? [] : ['style', 'class'];
+ return (
+ t &&
+ !ve.hasWarnedAboutDeprecation &&
+ (console.warn(
+ 'useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.'
+ ),
+ (ve.hasWarnedAboutDeprecation = !0)),
+ fe().sanitize(e, {
+ ADD_ATTR: ['target'],
+ FORBID_TAGS: ['style', 'form'],
+ ALLOW_DATA_ATTR: n,
+ FORBID_ATTR: r,
+ })
+ );
+ }
+ ve.hasWarnedAboutDeprecation = !1;
+ },
+ 45308: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => h });
+ var r,
+ o = n(86),
+ s = n.n(o),
+ i = n(8712),
+ a = n.n(i),
+ l = n(90242),
+ c = n(27621);
+ const u = n(95102),
+ p = {},
+ h = p;
+ s()((r = a()(u).call(u))).call(r, function (e) {
+ if ('./index.js' === e) return;
+ let t = u(e);
+ p[(0, l.Zl)(e)] = t.default ? t.default : t;
+ }),
+ (p.SafeRender = c.default);
+ },
+ 55812: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ AUTHORIZE: () => h,
+ AUTHORIZE_OAUTH2: () => m,
+ CONFIGURE_AUTH: () => y,
+ LOGOUT: () => f,
+ PRE_AUTHORIZE_OAUTH2: () => d,
+ RESTORE_AUTHORIZATION: () => v,
+ SHOW_AUTH_POPUP: () => p,
+ VALIDATE: () => g,
+ authPopup: () => M,
+ authorize: () => w,
+ authorizeAccessCodeWithBasicAuthentication: () => P,
+ authorizeAccessCodeWithFormParams: () => C,
+ authorizeApplication: () => A,
+ authorizeOauth2: () => j,
+ authorizeOauth2WithPersistOption: () => O,
+ authorizePassword: () => k,
+ authorizeRequest: () => N,
+ authorizeWithPersistOption: () => E,
+ configureAuth: () => I,
+ logout: () => x,
+ logoutWithPersistOption: () => S,
+ persistAuthorizationIfNeeded: () => R,
+ preAuthorizeImplicit: () => _,
+ restoreAuthorization: () => T,
+ showDefinitions: () => b,
+ });
+ var r = n(35627),
+ o = n.n(r),
+ s = n(76986),
+ i = n.n(s),
+ a = n(84564),
+ l = n.n(a),
+ c = n(27504),
+ u = n(90242);
+ const p = 'show_popup',
+ h = 'authorize',
+ f = 'logout',
+ d = 'pre_authorize_oauth2',
+ m = 'authorize_oauth2',
+ g = 'validate',
+ y = 'configure_auth',
+ v = 'restore_authorization';
+ function b(e) {
+ return { type: p, payload: e };
+ }
+ function w(e) {
+ return { type: h, payload: e };
+ }
+ const E = (e) => (t) => {
+ let { authActions: n } = t;
+ n.authorize(e), n.persistAuthorizationIfNeeded();
+ };
+ function x(e) {
+ return { type: f, payload: e };
+ }
+ const S = (e) => (t) => {
+ let { authActions: n } = t;
+ n.logout(e), n.persistAuthorizationIfNeeded();
+ },
+ _ = (e) => (t) => {
+ let { authActions: n, errActions: r } = t,
+ { auth: s, token: i, isValid: a } = e,
+ { schema: l, name: u } = s,
+ p = l.get('flow');
+ delete c.Z.swaggerUIRedirectOauth2,
+ 'accessCode' === p ||
+ a ||
+ r.newAuthErr({
+ authId: u,
+ source: 'auth',
+ level: 'warning',
+ message:
+ "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server",
+ }),
+ i.error
+ ? r.newAuthErr({ authId: u, source: 'auth', level: 'error', message: o()(i) })
+ : n.authorizeOauth2WithPersistOption({ auth: s, token: i });
+ };
+ function j(e) {
+ return { type: m, payload: e };
+ }
+ const O = (e) => (t) => {
+ let { authActions: n } = t;
+ n.authorizeOauth2(e), n.persistAuthorizationIfNeeded();
+ },
+ k = (e) => (t) => {
+ let { authActions: n } = t,
+ { schema: r, name: o, username: s, password: a, passwordType: l, clientId: c, clientSecret: p } = e,
+ h = { grant_type: 'password', scope: e.scopes.join(' '), username: s, password: a },
+ f = {};
+ switch (l) {
+ case 'request-body':
+ !(function (e, t, n) {
+ t && i()(e, { client_id: t });
+ n && i()(e, { client_secret: n });
+ })(h, c, p);
+ break;
+ case 'basic':
+ f.Authorization = 'Basic ' + (0, u.r3)(c + ':' + p);
+ break;
+ default:
+ console.warn(`Warning: invalid passwordType ${l} was passed, not including client id and secret`);
+ }
+ return n.authorizeRequest({
+ body: (0, u.GZ)(h),
+ url: r.get('tokenUrl'),
+ name: o,
+ headers: f,
+ query: {},
+ auth: e,
+ });
+ };
+ const A = (e) => (t) => {
+ let { authActions: n } = t,
+ { schema: r, scopes: o, name: s, clientId: i, clientSecret: a } = e,
+ l = { Authorization: 'Basic ' + (0, u.r3)(i + ':' + a) },
+ c = { grant_type: 'client_credentials', scope: o.join(' ') };
+ return n.authorizeRequest({ body: (0, u.GZ)(c), name: s, url: r.get('tokenUrl'), auth: e, headers: l });
+ },
+ C = (e) => {
+ let { auth: t, redirectUrl: n } = e;
+ return (e) => {
+ let { authActions: r } = e,
+ { schema: o, name: s, clientId: i, clientSecret: a, codeVerifier: l } = t,
+ c = {
+ grant_type: 'authorization_code',
+ code: t.code,
+ client_id: i,
+ client_secret: a,
+ redirect_uri: n,
+ code_verifier: l,
+ };
+ return r.authorizeRequest({ body: (0, u.GZ)(c), name: s, url: o.get('tokenUrl'), auth: t });
+ };
+ },
+ P = (e) => {
+ let { auth: t, redirectUrl: n } = e;
+ return (e) => {
+ let { authActions: r } = e,
+ { schema: o, name: s, clientId: i, clientSecret: a, codeVerifier: l } = t,
+ c = { Authorization: 'Basic ' + (0, u.r3)(i + ':' + a) },
+ p = {
+ grant_type: 'authorization_code',
+ code: t.code,
+ client_id: i,
+ redirect_uri: n,
+ code_verifier: l,
+ };
+ return r.authorizeRequest({ body: (0, u.GZ)(p), name: s, url: o.get('tokenUrl'), auth: t, headers: c });
+ };
+ },
+ N = (e) => (t) => {
+ let n,
+ {
+ fn: r,
+ getConfigs: s,
+ authActions: a,
+ errActions: c,
+ oas3Selectors: u,
+ specSelectors: p,
+ authSelectors: h,
+ } = t,
+ { body: f, query: d = {}, headers: m = {}, name: g, url: y, auth: v } = e,
+ { additionalQueryStringParams: b } = h.getConfigs() || {};
+ if (p.isOAS3()) {
+ let e = u.serverEffectiveValue(u.selectedServer());
+ n = l()(y, e, !0);
+ } else n = l()(y, p.url(), !0);
+ 'object' == typeof b && (n.query = i()({}, n.query, b));
+ const w = n.toString();
+ let E = i()(
+ {
+ Accept: 'application/json, text/plain, */*',
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'X-Requested-With': 'XMLHttpRequest',
+ },
+ m
+ );
+ r.fetch({
+ url: w,
+ method: 'post',
+ headers: E,
+ query: d,
+ body: f,
+ requestInterceptor: s().requestInterceptor,
+ responseInterceptor: s().responseInterceptor,
+ })
+ .then(function (e) {
+ let t = JSON.parse(e.data),
+ n = t && (t.error || ''),
+ r = t && (t.parseError || '');
+ e.ok
+ ? n || r
+ ? c.newAuthErr({ authId: g, level: 'error', source: 'auth', message: o()(t) })
+ : a.authorizeOauth2WithPersistOption({ auth: v, token: t })
+ : c.newAuthErr({ authId: g, level: 'error', source: 'auth', message: e.statusText });
+ })
+ .catch((e) => {
+ let t = new Error(e).message;
+ if (e.response && e.response.data) {
+ const n = e.response.data;
+ try {
+ const e = 'string' == typeof n ? JSON.parse(n) : n;
+ e.error && (t += `, error: ${e.error}`),
+ e.error_description && (t += `, description: ${e.error_description}`);
+ } catch (e) {}
+ }
+ c.newAuthErr({ authId: g, level: 'error', source: 'auth', message: t });
+ });
+ };
+ function I(e) {
+ return { type: y, payload: e };
+ }
+ function T(e) {
+ return { type: v, payload: e };
+ }
+ const R = () => (e) => {
+ let { authSelectors: t, getConfigs: n } = e;
+ if (!n().persistAuthorization) return;
+ const r = t.authorized().toJS();
+ localStorage.setItem('authorized', o()(r));
+ },
+ M = (e, t) => () => {
+ (c.Z.swaggerUIRedirectOauth2 = t), c.Z.open(e);
+ };
+ },
+ 53779: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { loaded: () => r });
+ const r = (e, t) => (n) => {
+ const { getConfigs: r, authActions: o } = t,
+ s = r();
+ if ((e(n), s.persistAuthorization)) {
+ const e = localStorage.getItem('authorized');
+ e && o.restoreAuthorization({ authorized: JSON.parse(e) });
+ }
+ };
+ },
+ 93705: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p, preauthorizeApiKey: () => f, preauthorizeBasic: () => h });
+ var r = n(11189),
+ o = n.n(r),
+ s = n(43962),
+ i = n(55812),
+ a = n(60035),
+ l = n(60489),
+ c = n(53779),
+ u = n(22849);
+ function p() {
+ return {
+ afterLoad(e) {
+ (this.rootInjects = this.rootInjects || {}),
+ (this.rootInjects.initOAuth = e.authActions.configureAuth),
+ (this.rootInjects.preauthorizeApiKey = o()(f).call(f, null, e)),
+ (this.rootInjects.preauthorizeBasic = o()(h).call(h, null, e));
+ },
+ statePlugins: {
+ auth: {
+ reducers: s.default,
+ actions: i,
+ selectors: a,
+ wrapActions: { authorize: u.authorize, logout: u.logout },
+ },
+ configs: { wrapActions: { loaded: c.loaded } },
+ spec: { wrapActions: { execute: l.execute } },
+ },
+ };
+ }
+ function h(e, t, n, r) {
+ const {
+ authActions: { authorize: o },
+ specSelectors: { specJson: s, isOAS3: i },
+ } = e,
+ a = i() ? ['components', 'securitySchemes'] : ['securityDefinitions'],
+ l = s().getIn([...a, t]);
+ return l ? o({ [t]: { value: { username: n, password: r }, schema: l.toJS() } }) : null;
+ }
+ function f(e, t, n) {
+ const {
+ authActions: { authorize: r },
+ specSelectors: { specJson: o, isOAS3: s },
+ } = e,
+ i = s() ? ['components', 'securitySchemes'] : ['securityDefinitions'],
+ a = o().getIn([...i, t]);
+ return a ? r({ [t]: { value: n, schema: a.toJS() } }) : null;
+ }
+ },
+ 43962: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(86),
+ o = n.n(r),
+ s = n(76986),
+ i = n.n(s),
+ a = n(43393),
+ l = n(90242),
+ c = n(55812);
+ const u = {
+ [c.SHOW_AUTH_POPUP]: (e, t) => {
+ let { payload: n } = t;
+ return e.set('showDefinitions', n);
+ },
+ [c.AUTHORIZE]: (e, t) => {
+ var n;
+ let { payload: r } = t,
+ s = (0, a.fromJS)(r),
+ i = e.get('authorized') || (0, a.Map)();
+ return (
+ o()((n = s.entrySeq())).call(n, (t) => {
+ let [n, r] = t;
+ if (!(0, l.Wl)(r.getIn)) return e.set('authorized', i);
+ let o = r.getIn(['schema', 'type']);
+ if ('apiKey' === o || 'http' === o) i = i.set(n, r);
+ else if ('basic' === o) {
+ let e = r.getIn(['value', 'username']),
+ t = r.getIn(['value', 'password']);
+ (i = i.setIn([n, 'value'], { username: e, header: 'Basic ' + (0, l.r3)(e + ':' + t) })),
+ (i = i.setIn([n, 'schema'], r.get('schema')));
+ }
+ }),
+ e.set('authorized', i)
+ );
+ },
+ [c.AUTHORIZE_OAUTH2]: (e, t) => {
+ let n,
+ { payload: r } = t,
+ { auth: o, token: s } = r;
+ (o.token = i()({}, s)), (n = (0, a.fromJS)(o));
+ let l = e.get('authorized') || (0, a.Map)();
+ return (l = l.set(n.get('name'), n)), e.set('authorized', l);
+ },
+ [c.LOGOUT]: (e, t) => {
+ let { payload: n } = t,
+ r = e.get('authorized').withMutations((e) => {
+ o()(n).call(n, (t) => {
+ e.delete(t);
+ });
+ });
+ return e.set('authorized', r);
+ },
+ [c.CONFIGURE_AUTH]: (e, t) => {
+ let { payload: n } = t;
+ return e.set('configs', n);
+ },
+ [c.RESTORE_AUTHORIZATION]: (e, t) => {
+ let { payload: n } = t;
+ return e.set('authorized', (0, a.fromJS)(n.authorized));
+ },
+ };
+ },
+ 60035: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ authorized: () => x,
+ definitionsForRequirements: () => E,
+ definitionsToAuthorize: () => b,
+ getConfigs: () => _,
+ getDefinitionsByNames: () => w,
+ isAuthorized: () => S,
+ shownDefinitions: () => v,
+ });
+ var r = n(86),
+ o = n.n(r),
+ s = n(51679),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(11882),
+ u = n.n(c),
+ p = n(97606),
+ h = n.n(p),
+ f = n(28222),
+ d = n.n(f),
+ m = n(20573),
+ g = n(43393);
+ const y = (e) => e,
+ v = (0, m.P1)(y, (e) => e.get('showDefinitions')),
+ b = (0, m.P1)(y, () => (e) => {
+ var t;
+ let { specSelectors: n } = e,
+ r = n.securityDefinitions() || (0, g.Map)({}),
+ s = (0, g.List)();
+ return (
+ o()((t = r.entrySeq())).call(t, (e) => {
+ let [t, n] = e,
+ r = (0, g.Map)();
+ (r = r.set(t, n)), (s = s.push(r));
+ }),
+ s
+ );
+ }),
+ w = (e, t) => (e) => {
+ var n;
+ let { specSelectors: r } = e;
+ console.warn(
+ 'WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.'
+ );
+ let s = r.securityDefinitions(),
+ i = (0, g.List)();
+ return (
+ o()((n = t.valueSeq())).call(n, (e) => {
+ var t;
+ let n = (0, g.Map)();
+ o()((t = e.entrySeq())).call(t, (e) => {
+ let t,
+ [r, i] = e,
+ a = s.get(r);
+ var l;
+ 'oauth2' === a.get('type') &&
+ i.size &&
+ ((t = a.get('scopes')),
+ o()((l = t.keySeq())).call(l, (e) => {
+ i.contains(e) || (t = t.delete(e));
+ }),
+ (a = a.set('allowedScopes', t)));
+ n = n.set(r, a);
+ }),
+ (i = i.push(n));
+ }),
+ i
+ );
+ },
+ E = function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : (0, g.List)();
+ return (e) => {
+ let { authSelectors: n } = e;
+ const r = n.definitionsToAuthorize() || (0, g.List)();
+ let s = (0, g.List)();
+ return (
+ o()(r).call(r, (e) => {
+ let n = i()(t).call(t, (t) => t.get(e.keySeq().first()));
+ n &&
+ (o()(e).call(e, (t, r) => {
+ if ('oauth2' === t.get('type')) {
+ const i = n.get(r);
+ let a = t.get('scopes');
+ var s;
+ if (g.List.isList(i) && g.Map.isMap(a))
+ o()((s = a.keySeq())).call(s, (e) => {
+ i.contains(e) || (a = a.delete(e));
+ }),
+ (e = e.set(r, t.set('scopes', a)));
+ }
+ }),
+ (s = s.push(e)));
+ }),
+ s
+ );
+ };
+ },
+ x = (0, m.P1)(y, (e) => e.get('authorized') || (0, g.Map)()),
+ S = (e, t) => (e) => {
+ var n;
+ let { authSelectors: r } = e,
+ o = r.authorized();
+ return g.List.isList(t)
+ ? !!l()((n = t.toJS())).call(n, (e) => {
+ var t, n;
+ return -1 === u()((t = h()((n = d()(e))).call(n, (e) => !!o.get(e)))).call(t, !1);
+ }).length
+ : null;
+ },
+ _ = (0, m.P1)(y, (e) => e.get('configs'));
+ },
+ 60489: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { execute: () => r });
+ const r = (e, t) => {
+ let { authSelectors: n, specSelectors: r } = t;
+ return (t) => {
+ let { path: o, method: s, operation: i, extras: a } = t,
+ l = {
+ authorized: n.authorized() && n.authorized().toJS(),
+ definitions: r.securityDefinitions() && r.securityDefinitions().toJS(),
+ specSecurity: r.security() && r.security().toJS(),
+ };
+ return e({ path: o, method: s, operation: i, securities: l, ...a });
+ };
+ };
+ },
+ 22849: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { authorize: () => c, logout: () => u });
+ var r = n(3665),
+ o = n.n(r),
+ s = n(58309),
+ i = n.n(s),
+ a = n(86),
+ l = n.n(a);
+ const c = (e, t) => (n) => {
+ e(n);
+ if (t.getConfigs().persistAuthorization)
+ try {
+ const [{ schema: e, value: t }] = o()(n),
+ r = 'apiKey' === e.get('type'),
+ s = 'cookie' === e.get('in');
+ r && s && (document.cookie = `${e.get('name')}=${t}; SameSite=None; Secure`);
+ } catch (e) {
+ console.error('Error persisting cookie based apiKey in document.cookie.', e);
+ }
+ },
+ u = (e, t) => (n) => {
+ const r = t.getConfigs(),
+ o = t.authSelectors.authorized();
+ try {
+ r.persistAuthorization &&
+ i()(n) &&
+ l()(n).call(n, (e) => {
+ const t = o.get(e, {}),
+ n = 'apiKey' === t.getIn(['schema', 'type']),
+ r = 'cookie' === t.getIn(['schema', 'in']);
+ if (n && r) {
+ const e = t.getIn(['schema', 'name']);
+ document.cookie = `${e}=; Max-Age=-99999999`;
+ }
+ });
+ } catch (e) {
+ console.error('Error deleting cookie based apiKey from document.cookie.', e);
+ }
+ e(n);
+ };
+ },
+ 70714: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ TOGGLE_CONFIGS: () => o,
+ UPDATE_CONFIGS: () => r,
+ loaded: () => a,
+ toggle: () => i,
+ update: () => s,
+ });
+ const r = 'configs_update',
+ o = 'configs_toggle';
+ function s(e, t) {
+ return { type: r, payload: { [e]: t } };
+ }
+ function i(e) {
+ return { type: o, payload: e };
+ }
+ const a = () => () => {};
+ },
+ 92256: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { parseYamlConfig: () => o });
+ var r = n(1272);
+ const o = (e, t) => {
+ try {
+ return r.ZP.load(e);
+ } catch (e) {
+ return t && t.errActions.newThrownErr(new Error(e)), {};
+ }
+ };
+ },
+ 46709: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(92256),
+ o = n(70714),
+ s = n(22698),
+ i = n(69018),
+ a = n(37743);
+ const l = {
+ getLocalConfig: () =>
+ (0, r.parseYamlConfig)(
+ '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n'
+ ),
+ };
+ function c() {
+ return {
+ statePlugins: {
+ spec: { actions: s, selectors: l },
+ configs: { reducers: a.default, actions: o, selectors: i },
+ },
+ };
+ }
+ },
+ 37743: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(43393),
+ o = n(70714);
+ const s = {
+ [o.UPDATE_CONFIGS]: (e, t) => e.merge((0, r.fromJS)(t.payload)),
+ [o.TOGGLE_CONFIGS]: (e, t) => {
+ const n = t.payload,
+ r = e.get(n);
+ return e.set(n, !r);
+ },
+ };
+ },
+ 69018: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { get: () => s });
+ var r = n(58309),
+ o = n.n(r);
+ const s = (e, t) => e.getIn(o()(t) ? t : [t]);
+ },
+ 22698: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { downloadConfig: () => o, getConfigByUrl: () => s });
+ var r = n(92256);
+ const o = (e) => (t) => {
+ const {
+ fn: { fetch: n },
+ } = t;
+ return n(e);
+ },
+ s = (e, t) => (n) => {
+ let { specActions: o } = n;
+ if (e) return o.downloadConfig(e).then(s, s);
+ function s(n) {
+ n instanceof Error || n.status >= 400
+ ? (o.updateLoadingStatus('failedConfig'),
+ o.updateLoadingStatus('failedConfig'),
+ o.updateUrl(''),
+ console.error(n.statusText + ' ' + e.url),
+ t(null))
+ : t((0, r.parseYamlConfig)(n.text));
+ }
+ };
+ },
+ 31970: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { setHash: () => r });
+ const r = (e) => (e ? history.pushState(null, null, `#${e}`) : (window.location.hash = ''));
+ },
+ 34980: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(41599),
+ o = n(60877),
+ s = n(34584);
+ function i() {
+ return [
+ r.default,
+ {
+ statePlugins: {
+ configs: {
+ wrapActions: {
+ loaded: (e, t) =>
+ function () {
+ e(...arguments);
+ const n = decodeURIComponent(window.location.hash);
+ t.layoutActions.parseDeepLinkHash(n);
+ },
+ },
+ },
+ },
+ wrapComponents: { operation: o.default, OperationTag: s.default },
+ },
+ ];
+ }
+ },
+ 41599: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ clearScrollTo: () => _,
+ default: () => j,
+ parseDeepLinkHash: () => E,
+ readyToScroll: () => x,
+ scrollTo: () => w,
+ scrollToElement: () => S,
+ show: () => b,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(24278),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(11882),
+ u = n.n(c),
+ p = n(31970),
+ h = n(45172),
+ f = n.n(h),
+ d = n(90242),
+ m = n(43393),
+ g = n.n(m);
+ const y = 'layout_scroll_to',
+ v = 'layout_clear_scroll',
+ b = (e, t) => {
+ let { getConfigs: n, layoutSelectors: r } = t;
+ return function () {
+ for (var t = arguments.length, s = new Array(t), i = 0; i < t; i++) s[i] = arguments[i];
+ if ((e(...s), n().deepLinking))
+ try {
+ let [e, t] = s;
+ e = o()(e) ? e : [e];
+ const n = r.urlHashArrayFromIsShownKey(e);
+ if (!n.length) return;
+ const [i, a] = n;
+ if (!t) return (0, p.setHash)('/');
+ 2 === n.length
+ ? (0, p.setHash)((0, d.oJ)(`/${encodeURIComponent(i)}/${encodeURIComponent(a)}`))
+ : 1 === n.length && (0, p.setHash)((0, d.oJ)(`/${encodeURIComponent(i)}`));
+ } catch (e) {
+ console.error(e);
+ }
+ };
+ },
+ w = (e) => ({ type: y, payload: o()(e) ? e : [e] }),
+ E = (e) => (t) => {
+ let { layoutActions: n, layoutSelectors: r, getConfigs: o } = t;
+ if (o().deepLinking && e) {
+ var s;
+ let t = i()(e).call(e, 1);
+ '!' === t[0] && (t = i()(t).call(t, 1)), '/' === t[0] && (t = i()(t).call(t, 1));
+ const o = l()((s = t.split('/'))).call(s, (e) => e || ''),
+ a = r.isShownKeyFromUrlHashArray(o),
+ [c, p = '', h = ''] = a;
+ if ('operations' === c) {
+ const e = r.isShownKeyFromUrlHashArray([p]);
+ u()(p).call(p, '_') > -1 &&
+ (console.warn(
+ 'Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.'
+ ),
+ n.show(
+ l()(e).call(e, (e) => e.replace(/_/g, ' ')),
+ !0
+ )),
+ n.show(e, !0);
+ }
+ (u()(p).call(p, '_') > -1 || u()(h).call(h, '_') > -1) &&
+ (console.warn(
+ 'Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.'
+ ),
+ n.show(
+ l()(a).call(a, (e) => e.replace(/_/g, ' ')),
+ !0
+ )),
+ n.show(a, !0),
+ n.scrollTo(a);
+ }
+ },
+ x = (e, t) => (n) => {
+ const r = n.layoutSelectors.getScrollToKey();
+ g().is(r, (0, m.fromJS)(e)) && (n.layoutActions.scrollToElement(t), n.layoutActions.clearScrollTo());
+ },
+ S = (e, t) => (n) => {
+ try {
+ (t = t || n.fn.getScrollParent(e)), f().createScroller(t).to(e);
+ } catch (e) {
+ console.error(e);
+ }
+ },
+ _ = () => ({ type: v });
+ const j = {
+ fn: {
+ getScrollParent: function (e, t) {
+ const n = document.documentElement;
+ let r = getComputedStyle(e);
+ const o = 'absolute' === r.position,
+ s = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/;
+ if ('fixed' === r.position) return n;
+ for (let t = e; (t = t.parentElement); )
+ if (
+ ((r = getComputedStyle(t)),
+ (!o || 'static' !== r.position) && s.test(r.overflow + r.overflowY + r.overflowX))
+ )
+ return t;
+ return n;
+ },
+ },
+ statePlugins: {
+ layout: {
+ actions: { scrollToElement: S, scrollTo: w, clearScrollTo: _, readyToScroll: x, parseDeepLinkHash: E },
+ selectors: {
+ getScrollToKey: (e) => e.get('scrollToKey'),
+ isShownKeyFromUrlHashArray(e, t) {
+ const [n, r] = t;
+ return r ? ['operations', n, r] : n ? ['operations-tag', n] : [];
+ },
+ urlHashArrayFromIsShownKey(e, t) {
+ let [n, r, o] = t;
+ return 'operations' == n ? [r, o] : 'operations-tag' == n ? [r] : [];
+ },
+ },
+ reducers: {
+ [y]: (e, t) => e.set('scrollToKey', g().fromJS(t.payload)),
+ [v]: (e) => e.delete('scrollToKey'),
+ },
+ wrapActions: { show: b },
+ },
+ },
+ };
+ },
+ 34584: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e, t) =>
+ class extends s.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, 'onLoad', (e) => {
+ const { tag: n } = this.props,
+ r = ['operations-tag', n];
+ t.layoutActions.readyToScroll(r, e);
+ });
+ }
+ render() {
+ return s.createElement('span', { ref: this.onLoad }, s.createElement(e, this.props));
+ }
+ };
+ },
+ 60877: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294);
+ n(23930);
+ const i = (e, t) =>
+ class extends s.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, 'onLoad', (e) => {
+ const { operation: n } = this.props,
+ { tag: r, operationId: o } = n.toObject();
+ let { isShownKey: s } = n.toObject();
+ (s = s || ['operations', r, o]), t.layoutActions.readyToScroll(s, e);
+ });
+ }
+ render() {
+ return s.createElement('span', { ref: this.onLoad }, s.createElement(e, this.props));
+ }
+ };
+ },
+ 48011: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(76986),
+ o = n.n(r),
+ s = n(63460),
+ i = n.n(s),
+ a = n(11882),
+ l = n.n(a),
+ c = n(35627),
+ u = n.n(c),
+ p = n(20573),
+ h = n(43393),
+ f = n(27504);
+ function d(e) {
+ let { fn: t } = e;
+ return {
+ statePlugins: {
+ spec: {
+ actions: {
+ download: (e) => (n) => {
+ let { errActions: r, specSelectors: s, specActions: a, getConfigs: l } = n,
+ { fetch: c } = t;
+ const u = l();
+ function p(t) {
+ if (t instanceof Error || t.status >= 400)
+ return (
+ a.updateLoadingStatus('failed'),
+ r.newThrownErr(o()(new Error((t.message || t.statusText) + ' ' + e), { source: 'fetch' })),
+ void (
+ !t.status &&
+ t instanceof Error &&
+ (function () {
+ try {
+ let t;
+ if (
+ ('URL' in f.Z
+ ? (t = new (i())(e))
+ : ((t = document.createElement('a')), (t.href = e)),
+ 'https:' !== t.protocol && 'https:' === f.Z.location.protocol)
+ ) {
+ const e = o()(
+ new Error(
+ `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`
+ ),
+ { source: 'fetch' }
+ );
+ return void r.newThrownErr(e);
+ }
+ if (t.origin !== f.Z.location.origin) {
+ const e = o()(
+ new Error(
+ `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${f.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`
+ ),
+ { source: 'fetch' }
+ );
+ r.newThrownErr(e);
+ }
+ } catch (e) {
+ return;
+ }
+ })()
+ )
+ );
+ a.updateLoadingStatus('success'), a.updateSpec(t.text), s.url() !== e && a.updateUrl(e);
+ }
+ (e = e || s.url()),
+ a.updateLoadingStatus('loading'),
+ r.clear({ source: 'fetch' }),
+ c({
+ url: e,
+ loadSpec: !0,
+ requestInterceptor: u.requestInterceptor || ((e) => e),
+ responseInterceptor: u.responseInterceptor || ((e) => e),
+ credentials: 'same-origin',
+ headers: { Accept: 'application/json,*/*' },
+ }).then(p, p);
+ },
+ updateLoadingStatus: (e) => {
+ let t = [null, 'loading', 'failed', 'success', 'failedConfig'];
+ return (
+ -1 === l()(t).call(t, e) && console.error(`Error: ${e} is not one of ${u()(t)}`),
+ { type: 'spec_update_loading_status', payload: e }
+ );
+ },
+ },
+ reducers: {
+ spec_update_loading_status: (e, t) =>
+ 'string' == typeof t.payload ? e.set('loadingStatus', t.payload) : e,
+ },
+ selectors: {
+ loadingStatus: (0, p.P1)(
+ (e) => e || (0, h.Map)(),
+ (e) => e.get('loadingStatus') || null
+ ),
+ },
+ },
+ },
+ };
+ }
+ },
+ 34966: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ CLEAR: () => c,
+ CLEAR_BY: () => u,
+ NEW_AUTH_ERR: () => l,
+ NEW_SPEC_ERR: () => i,
+ NEW_SPEC_ERR_BATCH: () => a,
+ NEW_THROWN_ERR: () => o,
+ NEW_THROWN_ERR_BATCH: () => s,
+ clear: () => g,
+ clearBy: () => y,
+ newAuthErr: () => m,
+ newSpecErr: () => f,
+ newSpecErrBatch: () => d,
+ newThrownErr: () => p,
+ newThrownErrBatch: () => h,
+ });
+ var r = n(7710);
+ const o = 'err_new_thrown_err',
+ s = 'err_new_thrown_err_batch',
+ i = 'err_new_spec_err',
+ a = 'err_new_spec_err_batch',
+ l = 'err_new_auth_err',
+ c = 'err_clear',
+ u = 'err_clear_by';
+ function p(e) {
+ return { type: o, payload: (0, r.serializeError)(e) };
+ }
+ function h(e) {
+ return { type: s, payload: e };
+ }
+ function f(e) {
+ return { type: i, payload: e };
+ }
+ function d(e) {
+ return { type: a, payload: e };
+ }
+ function m(e) {
+ return { type: l, payload: e };
+ }
+ function g() {
+ return { type: c, payload: arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {} };
+ }
+ function y() {
+ return { type: u, payload: arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : () => !0 };
+ }
+ },
+ 56982: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(54061),
+ l = n.n(a);
+ const c = [n(2392), n(21835)];
+ function u(e) {
+ var t;
+ let n = { jsSpec: {} },
+ r = l()(
+ c,
+ (e, t) => {
+ try {
+ let r = t.transform(e, n);
+ return o()(r).call(r, (e) => !!e);
+ } catch (t) {
+ return console.error('Transformer error:', t), e;
+ }
+ },
+ e
+ );
+ return i()((t = o()(r).call(r, (e) => !!e))).call(t, (e) => (!e.get('line') && e.get('path'), e));
+ }
+ },
+ 2392: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { transform: () => p });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(11882),
+ i = n.n(s),
+ a = n(24278),
+ l = n.n(a),
+ c = n(24282),
+ u = n.n(c);
+ function p(e) {
+ return o()(e).call(e, (e) => {
+ var t;
+ let n = 'is not of a type(s)',
+ r = i()((t = e.get('message'))).call(t, n);
+ if (r > -1) {
+ var o, s;
+ let t = l()((o = e.get('message')))
+ .call(o, r + 19)
+ .split(',');
+ return e.set(
+ 'message',
+ l()((s = e.get('message'))).call(s, 0, r) +
+ (function (e) {
+ return u()(e).call(
+ e,
+ (e, t, n, r) =>
+ n === r.length - 1 && r.length > 1
+ ? e + 'or ' + t
+ : r[n + 1] && r.length > 2
+ ? e + t + ', '
+ : r[n + 1]
+ ? e + t + ' '
+ : e + t,
+ 'should be a'
+ );
+ })(t)
+ );
+ }
+ return e;
+ });
+ }
+ },
+ 21835: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { transform: () => r });
+ n(97606), n(11882), n(27361), n(43393);
+ function r(e, t) {
+ let { jsSpec: n } = t;
+ return e;
+ }
+ },
+ 77793: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(93527),
+ o = n(34966),
+ s = n(87667);
+ function i(e) {
+ return { statePlugins: { err: { reducers: (0, r.default)(e), actions: o, selectors: s } } };
+ }
+ },
+ 93527: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => y });
+ var r = n(76986),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(39022),
+ l = n.n(a),
+ c = n(14418),
+ u = n.n(c),
+ p = n(2250),
+ h = n.n(p),
+ f = n(34966),
+ d = n(43393),
+ m = n(56982);
+ let g = { line: 0, level: 'error', message: 'Unknown error' };
+ function y() {
+ return {
+ [f.NEW_THROWN_ERR]: (e, t) => {
+ let { payload: n } = t,
+ r = o()(g, n, { type: 'thrown' });
+ return e
+ .update('errors', (e) => (e || (0, d.List)()).push((0, d.fromJS)(r)))
+ .update('errors', (e) => (0, m.default)(e));
+ },
+ [f.NEW_THROWN_ERR_BATCH]: (e, t) => {
+ let { payload: n } = t;
+ return (
+ (n = i()(n).call(n, (e) => (0, d.fromJS)(o()(g, e, { type: 'thrown' })))),
+ e
+ .update('errors', (e) => {
+ var t;
+ return l()((t = e || (0, d.List)())).call(t, (0, d.fromJS)(n));
+ })
+ .update('errors', (e) => (0, m.default)(e))
+ );
+ },
+ [f.NEW_SPEC_ERR]: (e, t) => {
+ let { payload: n } = t,
+ r = (0, d.fromJS)(n);
+ return (
+ (r = r.set('type', 'spec')),
+ e
+ .update('errors', (e) => (e || (0, d.List)()).push((0, d.fromJS)(r)).sortBy((e) => e.get('line')))
+ .update('errors', (e) => (0, m.default)(e))
+ );
+ },
+ [f.NEW_SPEC_ERR_BATCH]: (e, t) => {
+ let { payload: n } = t;
+ return (
+ (n = i()(n).call(n, (e) => (0, d.fromJS)(o()(g, e, { type: 'spec' })))),
+ e
+ .update('errors', (e) => {
+ var t;
+ return l()((t = e || (0, d.List)())).call(t, (0, d.fromJS)(n));
+ })
+ .update('errors', (e) => (0, m.default)(e))
+ );
+ },
+ [f.NEW_AUTH_ERR]: (e, t) => {
+ let { payload: n } = t,
+ r = (0, d.fromJS)(o()({}, n));
+ return (
+ (r = r.set('type', 'auth')),
+ e
+ .update('errors', (e) => (e || (0, d.List)()).push((0, d.fromJS)(r)))
+ .update('errors', (e) => (0, m.default)(e))
+ );
+ },
+ [f.CLEAR]: (e, t) => {
+ var n;
+ let { payload: r } = t;
+ if (!r || !e.get('errors')) return e;
+ let o = u()((n = e.get('errors'))).call(n, (e) => {
+ var t;
+ return h()((t = e.keySeq())).call(t, (t) => {
+ const n = e.get(t),
+ o = r[t];
+ return !o || n !== o;
+ });
+ });
+ return e.merge({ errors: o });
+ },
+ [f.CLEAR_BY]: (e, t) => {
+ var n;
+ let { payload: r } = t;
+ if (!r || 'function' != typeof r) return e;
+ let o = u()((n = e.get('errors'))).call(n, (e) => r(e));
+ return e.merge({ errors: o });
+ },
+ };
+ }
+ },
+ 87667: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { allErrors: () => s, lastError: () => i });
+ var r = n(43393),
+ o = n(20573);
+ const s = (0, o.P1)(
+ (e) => e,
+ (e) => e.get('errors', (0, r.List)())
+ ),
+ i = (0, o.P1)(s, (e) => e.last());
+ },
+ 49978: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(4309);
+ function o() {
+ return { fn: { opsFilter: r.default } };
+ }
+ },
+ 4309: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(11882),
+ i = n.n(s);
+ function a(e, t) {
+ return o()(e).call(e, (e, n) => -1 !== i()(n).call(n, t));
+ }
+ },
+ 47349: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(67294),
+ o = n(94184),
+ s = n.n(o),
+ i = n(12603);
+ const a = (e) => {
+ let { expanded: t, children: n, onChange: o } = e;
+ const a = (0, i.useComponent)('ChevronRightIcon'),
+ l = (0, r.useCallback)(
+ (e) => {
+ o(e, !t);
+ },
+ [t, o]
+ );
+ return r.createElement(
+ 'button',
+ { type: 'button', className: 'json-schema-2020-12-accordion', onClick: l },
+ r.createElement('div', { className: 'json-schema-2020-12-accordion__children' }, n),
+ r.createElement(
+ 'span',
+ {
+ className: s()('json-schema-2020-12-accordion__icon', {
+ 'json-schema-2020-12-accordion__icon--expanded': t,
+ 'json-schema-2020-12-accordion__icon--collapsed': !t,
+ }),
+ },
+ r.createElement(a, null)
+ )
+ );
+ };
+ a.defaultProps = { expanded: !1 };
+ const l = a;
+ },
+ 36867: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { expanded: t, onClick: n } = e;
+ const o = (0, r.useCallback)(
+ (e) => {
+ n(e, !t);
+ },
+ [t, n]
+ );
+ return r.createElement(
+ 'button',
+ { type: 'button', className: 'json-schema-2020-12-expand-deep-button', onClick: o },
+ t ? 'Collapse all' : 'Expand all'
+ );
+ };
+ },
+ 22675: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = (n(16648), n(12603)),
+ c = n(69006);
+ const u = (0, s.forwardRef)((e, t) => {
+ let { schema: n, name: r, dependentRequired: i, onExpand: u } = e;
+ const p = (0, l.useFn)(),
+ h = (0, l.useIsExpanded)(),
+ f = (0, l.useIsExpandedDeeply)(),
+ [d, m] = (0, s.useState)(h || f),
+ [g, y] = (0, s.useState)(f),
+ [v, b] = (0, l.useLevel)(),
+ w = (0, l.useIsEmbedded)(),
+ E = p.isExpandable(n) || i.length > 0,
+ x = (0, l.useIsCircular)(n),
+ S = (0, l.useRenderedSchemas)(n),
+ _ = p.stringifyConstraints(n),
+ j = (0, l.useComponent)('Accordion'),
+ O = (0, l.useComponent)('Keyword$schema'),
+ k = (0, l.useComponent)('Keyword$vocabulary'),
+ A = (0, l.useComponent)('Keyword$id'),
+ C = (0, l.useComponent)('Keyword$anchor'),
+ P = (0, l.useComponent)('Keyword$dynamicAnchor'),
+ N = (0, l.useComponent)('Keyword$ref'),
+ I = (0, l.useComponent)('Keyword$dynamicRef'),
+ T = (0, l.useComponent)('Keyword$defs'),
+ R = (0, l.useComponent)('Keyword$comment'),
+ M = (0, l.useComponent)('KeywordAllOf'),
+ D = (0, l.useComponent)('KeywordAnyOf'),
+ F = (0, l.useComponent)('KeywordOneOf'),
+ L = (0, l.useComponent)('KeywordNot'),
+ B = (0, l.useComponent)('KeywordIf'),
+ $ = (0, l.useComponent)('KeywordThen'),
+ q = (0, l.useComponent)('KeywordElse'),
+ U = (0, l.useComponent)('KeywordDependentSchemas'),
+ z = (0, l.useComponent)('KeywordPrefixItems'),
+ V = (0, l.useComponent)('KeywordItems'),
+ W = (0, l.useComponent)('KeywordContains'),
+ J = (0, l.useComponent)('KeywordProperties'),
+ K = (0, l.useComponent)('KeywordPatternProperties'),
+ H = (0, l.useComponent)('KeywordAdditionalProperties'),
+ G = (0, l.useComponent)('KeywordPropertyNames'),
+ Z = (0, l.useComponent)('KeywordUnevaluatedItems'),
+ Y = (0, l.useComponent)('KeywordUnevaluatedProperties'),
+ X = (0, l.useComponent)('KeywordType'),
+ Q = (0, l.useComponent)('KeywordEnum'),
+ ee = (0, l.useComponent)('KeywordConst'),
+ te = (0, l.useComponent)('KeywordConstraint'),
+ ne = (0, l.useComponent)('KeywordDependentRequired'),
+ re = (0, l.useComponent)('KeywordContentSchema'),
+ oe = (0, l.useComponent)('KeywordTitle'),
+ se = (0, l.useComponent)('KeywordDescription'),
+ ie = (0, l.useComponent)('KeywordDefault'),
+ ae = (0, l.useComponent)('KeywordDeprecated'),
+ le = (0, l.useComponent)('KeywordReadOnly'),
+ ce = (0, l.useComponent)('KeywordWriteOnly'),
+ ue = (0, l.useComponent)('ExpandDeepButton');
+ (0, s.useEffect)(() => {
+ y(f);
+ }, [f]),
+ (0, s.useEffect)(() => {
+ y(g);
+ }, [g]);
+ const pe = (0, s.useCallback)(
+ (e, t) => {
+ m(t), !t && y(!1), u(e, t, !1);
+ },
+ [u]
+ ),
+ he = (0, s.useCallback)(
+ (e, t) => {
+ m(t), y(t), u(e, t, !0);
+ },
+ [u]
+ );
+ return s.createElement(
+ c.JSONSchemaLevelContext.Provider,
+ { value: b },
+ s.createElement(
+ c.JSONSchemaDeepExpansionContext.Provider,
+ { value: g },
+ s.createElement(
+ c.JSONSchemaCyclesContext.Provider,
+ { value: S },
+ s.createElement(
+ 'article',
+ {
+ ref: t,
+ 'data-json-schema-level': v,
+ className: a()('json-schema-2020-12', {
+ 'json-schema-2020-12--embedded': w,
+ 'json-schema-2020-12--circular': x,
+ }),
+ },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-head' },
+ E && !x
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ j,
+ { expanded: d, onChange: pe },
+ s.createElement(oe, { title: r, schema: n })
+ ),
+ s.createElement(ue, { expanded: d, onClick: he })
+ )
+ : s.createElement(oe, { title: r, schema: n }),
+ s.createElement(ae, { schema: n }),
+ s.createElement(le, { schema: n }),
+ s.createElement(ce, { schema: n }),
+ s.createElement(X, { schema: n, isCircular: x }),
+ _.length > 0 &&
+ o()(_).call(_, (e) => s.createElement(te, { key: `${e.scope}-${e.value}`, constraint: e }))
+ ),
+ s.createElement(
+ 'div',
+ { className: a()('json-schema-2020-12-body', { 'json-schema-2020-12-body--collapsed': !d }) },
+ d &&
+ s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(se, { schema: n }),
+ !x &&
+ E &&
+ s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(J, { schema: n }),
+ s.createElement(K, { schema: n }),
+ s.createElement(H, { schema: n }),
+ s.createElement(Y, { schema: n }),
+ s.createElement(G, { schema: n }),
+ s.createElement(M, { schema: n }),
+ s.createElement(D, { schema: n }),
+ s.createElement(F, { schema: n }),
+ s.createElement(L, { schema: n }),
+ s.createElement(B, { schema: n }),
+ s.createElement($, { schema: n }),
+ s.createElement(q, { schema: n }),
+ s.createElement(U, { schema: n }),
+ s.createElement(z, { schema: n }),
+ s.createElement(V, { schema: n }),
+ s.createElement(Z, { schema: n }),
+ s.createElement(W, { schema: n }),
+ s.createElement(re, { schema: n })
+ ),
+ s.createElement(Q, { schema: n }),
+ s.createElement(ee, { schema: n }),
+ s.createElement(ne, { schema: n, dependentRequired: i }),
+ s.createElement(ie, { schema: n }),
+ s.createElement(O, { schema: n }),
+ s.createElement(k, { schema: n }),
+ s.createElement(A, { schema: n }),
+ s.createElement(C, { schema: n }),
+ s.createElement(P, { schema: n }),
+ s.createElement(N, { schema: n }),
+ !x && E && s.createElement(T, { schema: n }),
+ s.createElement(I, { schema: n }),
+ s.createElement(R, { schema: n })
+ )
+ )
+ )
+ )
+ )
+ );
+ });
+ u.defaultProps = { name: '', dependentRequired: [], onExpand: () => {} };
+ const p = u;
+ },
+ 12260: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = () =>
+ r.createElement(
+ 'svg',
+ { xmlns: 'http://www.w3.org/2000/svg', width: '24', height: '24', viewBox: '0 0 24 24' },
+ r.createElement('path', { d: 'M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' })
+ );
+ },
+ 64922: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$anchor
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$anchor'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ t.$anchor
+ )
+ )
+ : null;
+ };
+ },
+ 4685: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$comment
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$comment'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ t.$comment
+ )
+ )
+ : null;
+ };
+ },
+ 36418: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = n(94184),
+ p = n.n(u),
+ h = (n(16648), n(12603)),
+ f = n(69006);
+ const d = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (null == n ? void 0 : n.$defs) || {},
+ s = (0, h.useIsExpandedDeeply)(),
+ [a, u] = (0, c.useState)(s),
+ [d, m] = (0, c.useState)(!1),
+ g = (0, h.useComponent)('Accordion'),
+ y = (0, h.useComponent)('ExpandDeepButton'),
+ v = (0, h.useComponent)('JSONSchema'),
+ b = (0, c.useCallback)(() => {
+ u((e) => !e);
+ }, []),
+ w = (0, c.useCallback)((e, t) => {
+ u(t), m(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : c.createElement(
+ f.JSONSchemaDeepExpansionContext.Provider,
+ { value: d },
+ c.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs' },
+ c.createElement(
+ g,
+ { expanded: a, onChange: b },
+ c.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$defs'
+ )
+ ),
+ c.createElement(y, { expanded: a, onClick: w }),
+ c.createElement(
+ 'strong',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'object'
+ ),
+ c.createElement(
+ 'ul',
+ {
+ className: p()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !a,
+ }),
+ },
+ a &&
+ c.createElement(
+ c.Fragment,
+ null,
+ i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ 'li',
+ { key: t, className: 'json-schema-2020-12-property' },
+ c.createElement(v, { name: t, schema: n })
+ );
+ })
+ )
+ )
+ )
+ );
+ };
+ },
+ 51338: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$dynamicAnchor
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$dynamicAnchor'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ t.$dynamicAnchor
+ )
+ )
+ : null;
+ };
+ },
+ 27655: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$dynamicRef
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$dynamicRef'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ t.$dynamicRef
+ )
+ )
+ : null;
+ };
+ },
+ 93460: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$id
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$id' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$id'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ t.$id
+ )
+ )
+ : null;
+ };
+ },
+ 72348: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$ref
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$ref'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ t.$ref
+ )
+ )
+ : null;
+ };
+ },
+ 69359: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.$schema
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$schema'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ t.$schema
+ )
+ )
+ : null;
+ };
+ },
+ 7568: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(2018),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603));
+ const p = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (0, u.useIsExpandedDeeply)(),
+ [s, l] = (0, a.useState)(r),
+ p = (0, u.useComponent)('Accordion'),
+ h = (0, a.useCallback)(() => {
+ l((e) => !e);
+ }, []);
+ return null != n && n.$vocabulary
+ ? 'object' != typeof n.$vocabulary
+ ? null
+ : a.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary' },
+ a.createElement(
+ p,
+ { expanded: s, onChange: h },
+ a.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ '$vocabulary'
+ )
+ ),
+ a.createElement(
+ 'strong',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'object'
+ ),
+ a.createElement(
+ 'ul',
+ null,
+ s &&
+ o()((t = i()(n.$vocabulary))).call(t, (e) => {
+ let [t, n] = e;
+ return a.createElement(
+ 'li',
+ {
+ key: t,
+ className: c()('json-schema-2020-12-$vocabulary-uri', {
+ 'json-schema-2020-12-$vocabulary-uri--disabled': !n,
+ }),
+ },
+ a.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary',
+ },
+ t
+ )
+ );
+ })
+ )
+ )
+ : null;
+ };
+ },
+ 65253: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { additionalProperties: s } = t,
+ i = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'additionalProperties')) return null;
+ const a = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Additional properties'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties' },
+ !0 === s
+ ? r.createElement(
+ r.Fragment,
+ null,
+ a,
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'allowed'
+ )
+ )
+ : !1 === s
+ ? r.createElement(
+ r.Fragment,
+ null,
+ a,
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'forbidden'
+ )
+ )
+ : r.createElement(i, { name: a, schema: s })
+ );
+ };
+ },
+ 46457: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.allOf) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)('Accordion'),
+ g = (0, u.useComponent)('ExpandDeepButton'),
+ y = (0, u.useComponent)('JSONSchema'),
+ v = (0, u.useComponent)('KeywordType'),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf' },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'All of'
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { allOf: n } }),
+ a.createElement(
+ 'ul',
+ {
+ className: c()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !l,
+ }),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ 'li',
+ { key: `#${t}`, className: 'json-schema-2020-12-property' },
+ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 8776: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.anyOf) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)('Accordion'),
+ g = (0, u.useComponent)('ExpandDeepButton'),
+ y = (0, u.useComponent)('JSONSchema'),
+ v = (0, u.useComponent)('KeywordType'),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf' },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Any of'
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { anyOf: n } }),
+ a.createElement(
+ 'ul',
+ {
+ className: c()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !l,
+ }),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ 'li',
+ { key: `#${t}`, className: 'json-schema-2020-12-property' },
+ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 27308: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)();
+ return n.hasKeyword(t, 'const')
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--const' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Const'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const' },
+ n.stringify(t.const)
+ )
+ )
+ : null;
+ };
+ },
+ 69956: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294);
+ const o = (e) => {
+ let { constraint: t } = e;
+ return r.createElement(
+ 'span',
+ { className: `json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}` },
+ t.value
+ );
+ },
+ s = r.memo(o);
+ },
+ 38993: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'contains')) return null;
+ const i = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Contains'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--contains' },
+ r.createElement(s, { name: i, schema: t.contains })
+ );
+ };
+ },
+ 3484: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'contentSchema')) return null;
+ const i = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Content schema'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema' },
+ r.createElement(s, { name: i, schema: t.contentSchema })
+ );
+ };
+ },
+ 55148: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)();
+ return n.hasKeyword(t, 'default')
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--default' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Default'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const' },
+ n.stringify(t.default)
+ )
+ )
+ : null;
+ };
+ },
+ 24539: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(67294);
+ n(16648);
+ const i = (e) => {
+ let { dependentRequired: t } = e;
+ return 0 === t.length
+ ? null
+ : s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired' },
+ s.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Required when defined'
+ ),
+ s.createElement(
+ 'ul',
+ null,
+ o()(t).call(t, (e) =>
+ s.createElement(
+ 'li',
+ { key: e },
+ s.createElement(
+ 'span',
+ {
+ className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning',
+ },
+ e
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 26076: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = n(94184),
+ p = n.n(u),
+ h = (n(16648), n(12603)),
+ f = n(69006);
+ const d = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (null == n ? void 0 : n.dependentSchemas) || [],
+ s = (0, h.useIsExpandedDeeply)(),
+ [a, u] = (0, c.useState)(s),
+ [d, m] = (0, c.useState)(!1),
+ g = (0, h.useComponent)('Accordion'),
+ y = (0, h.useComponent)('ExpandDeepButton'),
+ v = (0, h.useComponent)('JSONSchema'),
+ b = (0, c.useCallback)(() => {
+ u((e) => !e);
+ }, []),
+ w = (0, c.useCallback)((e, t) => {
+ u(t), m(t);
+ }, []);
+ return 'object' != typeof r || 0 === o()(r).length
+ ? null
+ : c.createElement(
+ f.JSONSchemaDeepExpansionContext.Provider,
+ { value: d },
+ c.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas' },
+ c.createElement(
+ g,
+ { expanded: a, onChange: b },
+ c.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Dependent schemas'
+ )
+ ),
+ c.createElement(y, { expanded: a, onClick: w }),
+ c.createElement(
+ 'strong',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'object'
+ ),
+ c.createElement(
+ 'ul',
+ {
+ className: p()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !a,
+ }),
+ },
+ a &&
+ c.createElement(
+ c.Fragment,
+ null,
+ i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ 'li',
+ { key: t, className: 'json-schema-2020-12-property' },
+ c.createElement(v, { name: t, schema: n })
+ );
+ })
+ )
+ )
+ )
+ );
+ };
+ },
+ 26661: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return !0 !== (null == t ? void 0 : t.deprecated)
+ ? null
+ : r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--warning' },
+ 'deprecated'
+ );
+ };
+ },
+ 79446: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return null != t && t.description
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--description' },
+ r.createElement(
+ 'div',
+ {
+ className:
+ 'json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary',
+ },
+ t.description
+ )
+ )
+ : null;
+ };
+ },
+ 67207: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'else')) return null;
+ const i = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Else'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--if' },
+ r.createElement(s, { name: i, schema: t.else })
+ );
+ };
+ },
+ 91805: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = (n(16648), n(12603));
+ const c = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (0, l.useFn)();
+ return o()(null == n ? void 0 : n.enum)
+ ? a.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--enum' },
+ a.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Allowed values'
+ ),
+ a.createElement(
+ 'ul',
+ null,
+ i()((t = n.enum)).call(t, (e) => {
+ const t = r.stringify(e);
+ return a.createElement(
+ 'li',
+ { key: t },
+ a.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const' },
+ t
+ )
+ );
+ })
+ )
+ )
+ : null;
+ };
+ },
+ 40487: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'if')) return null;
+ const i = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'If'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--if' },
+ r.createElement(s, { name: i, schema: t.if })
+ );
+ };
+ },
+ 89206: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'items')) return null;
+ const i = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Items'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--items' },
+ r.createElement(s, { name: i, schema: t.items })
+ );
+ };
+ },
+ 65174: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'not')) return null;
+ const i = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Not'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--not' },
+ r.createElement(s, { name: i, schema: t.not })
+ );
+ };
+ },
+ 13834: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.oneOf) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)('Accordion'),
+ g = (0, u.useComponent)('ExpandDeepButton'),
+ y = (0, u.useComponent)('JSONSchema'),
+ v = (0, u.useComponent)('KeywordType'),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf' },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'One of'
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { oneOf: n } }),
+ a.createElement(
+ 'ul',
+ {
+ className: c()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !l,
+ }),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ 'li',
+ { key: `#${t}`, className: 'json-schema-2020-12-property' },
+ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 36746: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = (n(16648), n(12603));
+ const p = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (null == n ? void 0 : n.patternProperties) || {},
+ s = (0, u.useComponent)('JSONSchema');
+ return 0 === o()(r).length
+ ? null
+ : c.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties' },
+ c.createElement(
+ 'ul',
+ null,
+ i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ 'li',
+ { key: t, className: 'json-schema-2020-12-property' },
+ c.createElement(s, { name: t, schema: n })
+ );
+ })
+ )
+ );
+ };
+ },
+ 93971: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294),
+ l = n(94184),
+ c = n.n(l),
+ u = (n(16648), n(12603)),
+ p = n(69006);
+ const h = (e) => {
+ let { schema: t } = e;
+ const n = (null == t ? void 0 : t.prefixItems) || [],
+ r = (0, u.useFn)(),
+ s = (0, u.useIsExpandedDeeply)(),
+ [l, h] = (0, a.useState)(s),
+ [f, d] = (0, a.useState)(!1),
+ m = (0, u.useComponent)('Accordion'),
+ g = (0, u.useComponent)('ExpandDeepButton'),
+ y = (0, u.useComponent)('JSONSchema'),
+ v = (0, u.useComponent)('KeywordType'),
+ b = (0, a.useCallback)(() => {
+ h((e) => !e);
+ }, []),
+ w = (0, a.useCallback)((e, t) => {
+ h(t), d(t);
+ }, []);
+ return o()(n) && 0 !== n.length
+ ? a.createElement(
+ p.JSONSchemaDeepExpansionContext.Provider,
+ { value: f },
+ a.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems' },
+ a.createElement(
+ m,
+ { expanded: l, onChange: b },
+ a.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Prefix items'
+ )
+ ),
+ a.createElement(g, { expanded: l, onClick: w }),
+ a.createElement(v, { schema: { prefixItems: n } }),
+ a.createElement(
+ 'ul',
+ {
+ className: c()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !l,
+ }),
+ },
+ l &&
+ a.createElement(
+ a.Fragment,
+ null,
+ i()(n).call(n, (e, t) =>
+ a.createElement(
+ 'li',
+ { key: `#${t}`, className: 'json-schema-2020-12-property' },
+ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e })
+ )
+ )
+ )
+ )
+ )
+ )
+ : null;
+ };
+ },
+ 25472: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => y });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(2018),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(67294),
+ d = n(94184),
+ m = n.n(d),
+ g = (n(16648), n(12603));
+ const y = (e) => {
+ var t;
+ let { schema: n } = e;
+ const r = (0, g.useFn)(),
+ s = (null == n ? void 0 : n.properties) || {},
+ a = o()(null == n ? void 0 : n.required) ? n.required : [],
+ c = (0, g.useComponent)('JSONSchema');
+ return 0 === i()(s).length
+ ? null
+ : f.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--properties' },
+ f.createElement(
+ 'ul',
+ null,
+ l()((t = u()(s))).call(t, (e) => {
+ let [t, o] = e;
+ const s = h()(a).call(a, t),
+ i = r.getDependentRequired(t, n);
+ return f.createElement(
+ 'li',
+ {
+ key: t,
+ className: m()('json-schema-2020-12-property', {
+ 'json-schema-2020-12-property--required': s,
+ }),
+ },
+ f.createElement(c, { name: t, schema: o, dependentRequired: i })
+ );
+ })
+ )
+ );
+ };
+ },
+ 42338: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { propertyNames: s } = t,
+ i = (0, o.useComponent)('JSONSchema'),
+ a = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Property names'
+ );
+ return n.hasKeyword(t, 'propertyNames')
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames' },
+ r.createElement(i, { name: a, schema: s })
+ )
+ : null;
+ };
+ },
+ 16456: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return !0 !== (null == t ? void 0 : t.readOnly)
+ ? null
+ : r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted' },
+ 'read-only'
+ );
+ };
+ },
+ 67401: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ s = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'then')) return null;
+ const i = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Then'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--then' },
+ r.createElement(s, { name: i, schema: t.then })
+ );
+ };
+ },
+ 78137: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { title: t, schema: n } = e;
+ const s = (0, o.useFn)();
+ return t || s.getTitle(n)
+ ? r.createElement('div', { className: 'json-schema-2020-12__title' }, t || s.getTitle(n))
+ : null;
+ };
+ s.defaultProps = { title: '' };
+ const i = s;
+ },
+ 22285: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t, isCircular: n } = e;
+ const s = (0, o.useFn)().getType(t),
+ i = n ? ' [circular]' : '';
+ return r.createElement(
+ 'strong',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ `${s}${i}`
+ );
+ };
+ s.defaultProps = { isCircular: !1 };
+ const i = s;
+ },
+ 85828: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { unevaluatedItems: s } = t,
+ i = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'unevaluatedItems')) return null;
+ const a = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Unevaluated items'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems' },
+ r.createElement(i, { name: a, schema: s })
+ );
+ };
+ },
+ 6907: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = (n(16648), n(12603));
+ const s = (e) => {
+ let { schema: t } = e;
+ const n = (0, o.useFn)(),
+ { unevaluatedProperties: s } = t,
+ i = (0, o.useComponent)('JSONSchema');
+ if (!n.hasKeyword(t, 'unevaluatedProperties')) return null;
+ const a = r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary' },
+ 'Unevaluated properties'
+ );
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties' },
+ r.createElement(i, { name: a, schema: s })
+ );
+ };
+ },
+ 15789: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ n(16648);
+ const o = (e) => {
+ let { schema: t } = e;
+ return !0 !== (null == t ? void 0 : t.writeOnly)
+ ? null
+ : r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted' },
+ 'write-only'
+ );
+ };
+ },
+ 69006: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ JSONSchemaContext: () => i,
+ JSONSchemaCyclesContext: () => c,
+ JSONSchemaDeepExpansionContext: () => l,
+ JSONSchemaLevelContext: () => a,
+ });
+ var r = n(82737),
+ o = n.n(r),
+ s = n(67294);
+ const i = (0, s.createContext)(null);
+ i.displayName = 'JSONSchemaContext';
+ const a = (0, s.createContext)(0);
+ a.displayName = 'JSONSchemaLevelContext';
+ const l = (0, s.createContext)(!1);
+ l.displayName = 'JSONSchemaDeepExpansionContext';
+ const c = (0, s.createContext)(new (o())());
+ },
+ 33499: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ getDependentRequired: () => F,
+ getTitle: () => C,
+ getType: () => P,
+ hasKeyword: () => I,
+ isBooleanJSONSchema: () => N,
+ isExpandable: () => T,
+ stringify: () => R,
+ stringifyConstraints: () => D,
+ upperFirst: () => A,
+ });
+ var r = n(24278),
+ o = n.n(r),
+ s = n(19030),
+ i = n.n(s),
+ a = n(58309),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(91086),
+ d = n.n(f),
+ m = n(14418),
+ g = n.n(m),
+ y = n(35627),
+ v = n.n(y),
+ b = n(25110),
+ w = n.n(b),
+ E = n(24282),
+ x = n.n(E),
+ S = n(2018),
+ _ = n.n(S),
+ j = n(82737),
+ O = n.n(j),
+ k = n(12603);
+ const A = (e) => ('string' == typeof e ? `${e.charAt(0).toUpperCase()}${o()(e).call(e, 1)}` : e),
+ C = (e) => {
+ const t = (0, k.useFn)();
+ return null != e && e.title
+ ? t.upperFirst(e.title)
+ : null != e && e.$anchor
+ ? t.upperFirst(e.$anchor)
+ : null != e && e.$id
+ ? e.$id
+ : '';
+ },
+ P = function (e) {
+ var t, n;
+ let r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : new (i())();
+ const o = (0, k.useFn)();
+ if (null == e) return 'any';
+ if (o.isBooleanJSONSchema(e)) return e ? 'any' : 'never';
+ if ('object' != typeof e) return 'any';
+ if (r.has(e)) return 'any';
+ r.add(e);
+ const { type: s, prefixItems: a, items: c } = e,
+ p = () => {
+ if (l()(a)) {
+ const e = u()(a).call(a, (e) => P(e, r)),
+ t = c ? P(c, r) : 'any';
+ return `array<[${e.join(', ')}], ${t}>`;
+ }
+ if (c) {
+ return `array<${P(c, r)}>`;
+ }
+ return 'array';
+ };
+ if (e.not && 'any' === P(e.not)) return 'never';
+ const f = l()(s)
+ ? u()(s)
+ .call(s, (e) => ('array' === e ? p() : e))
+ .join(' | ')
+ : 'array' === s
+ ? p()
+ : h()((t = ['null', 'boolean', 'object', 'array', 'number', 'integer', 'string'])).call(t, s)
+ ? s
+ : (() => {
+ var t, n;
+ if (
+ Object.hasOwn(e, 'prefixItems') ||
+ Object.hasOwn(e, 'items') ||
+ Object.hasOwn(e, 'contains')
+ )
+ return p();
+ if (
+ Object.hasOwn(e, 'properties') ||
+ Object.hasOwn(e, 'additionalProperties') ||
+ Object.hasOwn(e, 'patternProperties')
+ )
+ return 'object';
+ if (h()((t = ['int32', 'int64'])).call(t, e.format)) return 'integer';
+ if (h()((n = ['float', 'double'])).call(n, e.format)) return 'number';
+ if (
+ Object.hasOwn(e, 'minimum') ||
+ Object.hasOwn(e, 'maximum') ||
+ Object.hasOwn(e, 'exclusiveMinimum') ||
+ Object.hasOwn(e, 'exclusiveMaximum') ||
+ Object.hasOwn(e, 'multipleOf')
+ )
+ return 'number | integer';
+ if (
+ Object.hasOwn(e, 'pattern') ||
+ Object.hasOwn(e, 'format') ||
+ Object.hasOwn(e, 'minLength') ||
+ Object.hasOwn(e, 'maxLength')
+ )
+ return 'string';
+ if (void 0 !== e.const) {
+ if (null === e.const) return 'null';
+ if ('boolean' == typeof e.const) return 'boolean';
+ if ('number' == typeof e.const) return d()(e.const) ? 'integer' : 'number';
+ if ('string' == typeof e.const) return 'string';
+ if (l()(e.const)) return 'array';
+ if ('object' == typeof e.const) return 'object';
+ }
+ return null;
+ })(),
+ m = (t, n) => {
+ if (l()(e[t])) {
+ var o;
+ return `(${u()((o = e[t]))
+ .call(o, (e) => P(e, r))
+ .join(n)})`;
+ }
+ return null;
+ },
+ y = m('oneOf', ' | '),
+ v = m('anyOf', ' | '),
+ b = m('allOf', ' & '),
+ w = g()((n = [f, y, v, b]))
+ .call(n, Boolean)
+ .join(' | ');
+ return r.delete(e), w || 'any';
+ },
+ N = (e) => 'boolean' == typeof e,
+ I = (e, t) => null !== e && 'object' == typeof e && Object.hasOwn(e, t),
+ T = (e) => {
+ const t = (0, k.useFn)();
+ return (
+ (null == e ? void 0 : e.$schema) ||
+ (null == e ? void 0 : e.$vocabulary) ||
+ (null == e ? void 0 : e.$id) ||
+ (null == e ? void 0 : e.$anchor) ||
+ (null == e ? void 0 : e.$dynamicAnchor) ||
+ (null == e ? void 0 : e.$ref) ||
+ (null == e ? void 0 : e.$dynamicRef) ||
+ (null == e ? void 0 : e.$defs) ||
+ (null == e ? void 0 : e.$comment) ||
+ (null == e ? void 0 : e.allOf) ||
+ (null == e ? void 0 : e.anyOf) ||
+ (null == e ? void 0 : e.oneOf) ||
+ t.hasKeyword(e, 'not') ||
+ t.hasKeyword(e, 'if') ||
+ t.hasKeyword(e, 'then') ||
+ t.hasKeyword(e, 'else') ||
+ (null == e ? void 0 : e.dependentSchemas) ||
+ (null == e ? void 0 : e.prefixItems) ||
+ t.hasKeyword(e, 'items') ||
+ t.hasKeyword(e, 'contains') ||
+ (null == e ? void 0 : e.properties) ||
+ (null == e ? void 0 : e.patternProperties) ||
+ t.hasKeyword(e, 'additionalProperties') ||
+ t.hasKeyword(e, 'propertyNames') ||
+ t.hasKeyword(e, 'unevaluatedItems') ||
+ t.hasKeyword(e, 'unevaluatedProperties') ||
+ (null == e ? void 0 : e.description) ||
+ (null == e ? void 0 : e.enum) ||
+ t.hasKeyword(e, 'const') ||
+ t.hasKeyword(e, 'contentSchema') ||
+ t.hasKeyword(e, 'default')
+ );
+ },
+ R = (e) => {
+ var t;
+ return null === e || h()((t = ['number', 'bigint', 'boolean'])).call(t, typeof e)
+ ? String(e)
+ : l()(e)
+ ? `[${u()(e).call(e, R).join(', ')}]`
+ : v()(e);
+ },
+ M = (e, t, n) => {
+ const r = 'number' == typeof t,
+ o = 'number' == typeof n;
+ return r && o
+ ? t === n
+ ? `${t} ${e}`
+ : `[${t}, ${n}] ${e}`
+ : r
+ ? `>= ${t} ${e}`
+ : o
+ ? `<= ${n} ${e}`
+ : null;
+ },
+ D = (e) => {
+ const t = [],
+ n = ((e) => {
+ if ('number' != typeof (null == e ? void 0 : e.multipleOf)) return null;
+ if (e.multipleOf <= 0) return null;
+ if (1 === e.multipleOf) return null;
+ const { multipleOf: t } = e;
+ if (d()(t)) return `multiple of ${t}`;
+ const n = 10 ** t.toString().split('.')[1].length;
+ return `multiple of ${t * n}/${n}`;
+ })(e);
+ null !== n && t.push({ scope: 'number', value: n });
+ const r = ((e) => {
+ const t = null == e ? void 0 : e.minimum,
+ n = null == e ? void 0 : e.maximum,
+ r = null == e ? void 0 : e.exclusiveMinimum,
+ o = null == e ? void 0 : e.exclusiveMaximum,
+ s = 'number' == typeof t,
+ i = 'number' == typeof n,
+ a = 'number' == typeof r,
+ l = 'number' == typeof o,
+ c = a && (!s || t < r),
+ u = l && (!i || n > o);
+ if ((s || a) && (i || l)) return `${c ? '(' : '['}${c ? r : t}, ${u ? o : n}${u ? ')' : ']'}`;
+ if (s || a) return `${c ? '>' : '≥'} ${c ? r : t}`;
+ if (i || l) return `${u ? '<' : '≤'} ${u ? o : n}`;
+ return null;
+ })(e);
+ null !== r && t.push({ scope: 'number', value: r }),
+ null != e && e.format && t.push({ scope: 'string', value: e.format });
+ const o = M('characters', null == e ? void 0 : e.minLength, null == e ? void 0 : e.maxLength);
+ null !== o && t.push({ scope: 'string', value: o }),
+ null != e &&
+ e.pattern &&
+ t.push({ scope: 'string', value: `matches ${null == e ? void 0 : e.pattern}` }),
+ null != e &&
+ e.contentMediaType &&
+ t.push({ scope: 'string', value: `media type: ${e.contentMediaType}` }),
+ null != e && e.contentEncoding && t.push({ scope: 'string', value: `encoding: ${e.contentEncoding}` });
+ const s = M(
+ null != e && e.hasUniqueItems ? 'unique items' : 'items',
+ null == e ? void 0 : e.minItems,
+ null == e ? void 0 : e.maxItems
+ );
+ null !== s && t.push({ scope: 'array', value: s });
+ const i = M('contained items', null == e ? void 0 : e.minContains, null == e ? void 0 : e.maxContains);
+ null !== i && t.push({ scope: 'array', value: i });
+ const a = M('properties', null == e ? void 0 : e.minProperties, null == e ? void 0 : e.maxProperties);
+ return null !== a && t.push({ scope: 'object', value: a }), t;
+ },
+ F = (e, t) => {
+ var n;
+ return null != t && t.dependentRequired
+ ? w()(
+ x()((n = _()(t.dependentRequired))).call(
+ n,
+ (t, n) => {
+ let [r, o] = n;
+ return l()(o) && h()(o).call(o, e) ? (t.add(r), t) : t;
+ },
+ new (O())()
+ )
+ )
+ : [];
+ };
+ },
+ 65077: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { withJSONSchemaContext: () => H });
+ var r = n(67294),
+ o = n(22675),
+ s = n(69359),
+ i = n(7568),
+ a = n(93460),
+ l = n(64922),
+ c = n(51338),
+ u = n(72348),
+ p = n(27655),
+ h = n(36418),
+ f = n(4685),
+ d = n(46457),
+ m = n(8776),
+ g = n(13834),
+ y = n(65174),
+ v = n(40487),
+ b = n(67401),
+ w = n(67207),
+ E = n(26076),
+ x = n(93971),
+ S = n(89206),
+ _ = n(38993),
+ j = n(25472),
+ O = n(36746),
+ k = n(65253),
+ A = n(42338),
+ C = n(85828),
+ P = n(6907),
+ N = n(22285),
+ I = n(91805),
+ T = n(27308),
+ R = n(69956),
+ M = n(24539),
+ D = n(3484),
+ F = n(78137),
+ L = n(79446),
+ B = n(55148),
+ $ = n(26661),
+ q = n(16456),
+ U = n(15789),
+ z = n(47349),
+ V = n(36867),
+ W = n(12260),
+ J = n(69006),
+ K = n(33499);
+ const H = function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ const n = {
+ components: {
+ JSONSchema: o.default,
+ Keyword$schema: s.default,
+ Keyword$vocabulary: i.default,
+ Keyword$id: a.default,
+ Keyword$anchor: l.default,
+ Keyword$dynamicAnchor: c.default,
+ Keyword$ref: u.default,
+ Keyword$dynamicRef: p.default,
+ Keyword$defs: h.default,
+ Keyword$comment: f.default,
+ KeywordAllOf: d.default,
+ KeywordAnyOf: m.default,
+ KeywordOneOf: g.default,
+ KeywordNot: y.default,
+ KeywordIf: v.default,
+ KeywordThen: b.default,
+ KeywordElse: w.default,
+ KeywordDependentSchemas: E.default,
+ KeywordPrefixItems: x.default,
+ KeywordItems: S.default,
+ KeywordContains: _.default,
+ KeywordProperties: j.default,
+ KeywordPatternProperties: O.default,
+ KeywordAdditionalProperties: k.default,
+ KeywordPropertyNames: A.default,
+ KeywordUnevaluatedItems: C.default,
+ KeywordUnevaluatedProperties: P.default,
+ KeywordType: N.default,
+ KeywordEnum: I.default,
+ KeywordConst: T.default,
+ KeywordConstraint: R.default,
+ KeywordDependentRequired: M.default,
+ KeywordContentSchema: D.default,
+ KeywordTitle: F.default,
+ KeywordDescription: L.default,
+ KeywordDefault: B.default,
+ KeywordDeprecated: $.default,
+ KeywordReadOnly: q.default,
+ KeywordWriteOnly: U.default,
+ Accordion: z.default,
+ ExpandDeepButton: V.default,
+ ChevronRightIcon: W.default,
+ ...t.components,
+ },
+ config: {
+ default$schema: 'https://json-schema.org/draft/2020-12/schema',
+ defaultExpandedLevels: 0,
+ ...t.config,
+ },
+ fn: {
+ upperFirst: K.upperFirst,
+ getTitle: K.getTitle,
+ getType: K.getType,
+ isBooleanJSONSchema: K.isBooleanJSONSchema,
+ hasKeyword: K.hasKeyword,
+ isExpandable: K.isExpandable,
+ stringify: K.stringify,
+ stringifyConstraints: K.stringifyConstraints,
+ getDependentRequired: K.getDependentRequired,
+ ...t.fn,
+ },
+ },
+ H = (t) => r.createElement(J.JSONSchemaContext.Provider, { value: n }, r.createElement(e, t));
+ return (H.contexts = { JSONSchemaContext: J.JSONSchemaContext }), (H.displayName = e.displayName), H;
+ };
+ },
+ 12603: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ useComponent: () => l,
+ useConfig: () => a,
+ useFn: () => c,
+ useIsCircular: () => m,
+ useIsEmbedded: () => p,
+ useIsExpanded: () => h,
+ useIsExpandedDeeply: () => f,
+ useLevel: () => u,
+ useRenderedSchemas: () => d,
+ });
+ var r = n(82737),
+ o = n.n(r),
+ s = n(67294),
+ i = n(69006);
+ const a = () => {
+ const { config: e } = (0, s.useContext)(i.JSONSchemaContext);
+ return e;
+ },
+ l = (e) => {
+ const { components: t } = (0, s.useContext)(i.JSONSchemaContext);
+ return t[e] || null;
+ },
+ c = function () {
+ let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : void 0;
+ const { fn: t } = (0, s.useContext)(i.JSONSchemaContext);
+ return void 0 !== e ? t[e] : t;
+ },
+ u = () => {
+ const e = (0, s.useContext)(i.JSONSchemaLevelContext);
+ return [e, e + 1];
+ },
+ p = () => {
+ const [e] = u();
+ return e > 0;
+ },
+ h = () => {
+ const [e] = u(),
+ { defaultExpandedLevels: t } = a();
+ return t - e > 0;
+ },
+ f = () => (0, s.useContext)(i.JSONSchemaDeepExpansionContext),
+ d = function () {
+ let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : void 0;
+ if (void 0 === e) return (0, s.useContext)(i.JSONSchemaCyclesContext);
+ const t = (0, s.useContext)(i.JSONSchemaCyclesContext);
+ return new (o())([...t, e]);
+ },
+ m = (e) => d().has(e);
+ },
+ 97139: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => Z });
+ var r = n(22675),
+ o = n(69359),
+ s = n(7568),
+ i = n(93460),
+ a = n(64922),
+ l = n(51338),
+ c = n(72348),
+ u = n(27655),
+ p = n(36418),
+ h = n(4685),
+ f = n(46457),
+ d = n(8776),
+ m = n(13834),
+ g = n(65174),
+ y = n(40487),
+ v = n(67401),
+ b = n(67207),
+ w = n(26076),
+ E = n(93971),
+ x = n(89206),
+ S = n(38993),
+ _ = n(25472),
+ j = n(36746),
+ O = n(65253),
+ k = n(42338),
+ A = n(85828),
+ C = n(6907),
+ P = n(22285),
+ N = n(91805),
+ I = n(27308),
+ T = n(69956),
+ R = n(24539),
+ M = n(3484),
+ D = n(78137),
+ F = n(79446),
+ L = n(55148),
+ B = n(26661),
+ $ = n(16456),
+ q = n(15789),
+ U = n(47349),
+ z = n(36867),
+ V = n(12260),
+ W = n(33499),
+ J = n(78591),
+ K = n(69006),
+ H = n(12603),
+ G = n(65077);
+ const Z = () => ({
+ components: {
+ JSONSchema202012: r.default,
+ JSONSchema202012Keyword$schema: o.default,
+ JSONSchema202012Keyword$vocabulary: s.default,
+ JSONSchema202012Keyword$id: i.default,
+ JSONSchema202012Keyword$anchor: a.default,
+ JSONSchema202012Keyword$dynamicAnchor: l.default,
+ JSONSchema202012Keyword$ref: c.default,
+ JSONSchema202012Keyword$dynamicRef: u.default,
+ JSONSchema202012Keyword$defs: p.default,
+ JSONSchema202012Keyword$comment: h.default,
+ JSONSchema202012KeywordAllOf: f.default,
+ JSONSchema202012KeywordAnyOf: d.default,
+ JSONSchema202012KeywordOneOf: m.default,
+ JSONSchema202012KeywordNot: g.default,
+ JSONSchema202012KeywordIf: y.default,
+ JSONSchema202012KeywordThen: v.default,
+ JSONSchema202012KeywordElse: b.default,
+ JSONSchema202012KeywordDependentSchemas: w.default,
+ JSONSchema202012KeywordPrefixItems: E.default,
+ JSONSchema202012KeywordItems: x.default,
+ JSONSchema202012KeywordContains: S.default,
+ JSONSchema202012KeywordProperties: _.default,
+ JSONSchema202012KeywordPatternProperties: j.default,
+ JSONSchema202012KeywordAdditionalProperties: O.default,
+ JSONSchema202012KeywordPropertyNames: k.default,
+ JSONSchema202012KeywordUnevaluatedItems: A.default,
+ JSONSchema202012KeywordUnevaluatedProperties: C.default,
+ JSONSchema202012KeywordType: P.default,
+ JSONSchema202012KeywordEnum: N.default,
+ JSONSchema202012KeywordConst: I.default,
+ JSONSchema202012KeywordConstraint: T.default,
+ JSONSchema202012KeywordDependentRequired: R.default,
+ JSONSchema202012KeywordContentSchema: M.default,
+ JSONSchema202012KeywordTitle: D.default,
+ JSONSchema202012KeywordDescription: F.default,
+ JSONSchema202012KeywordDefault: L.default,
+ JSONSchema202012KeywordDeprecated: B.default,
+ JSONSchema202012KeywordReadOnly: $.default,
+ JSONSchema202012KeywordWriteOnly: q.default,
+ JSONSchema202012Accordion: U.default,
+ JSONSchema202012ExpandDeepButton: z.default,
+ JSONSchema202012ChevronRightIcon: V.default,
+ withJSONSchema202012Context: G.withJSONSchemaContext,
+ JSONSchema202012DeepExpansionContext: () => K.JSONSchemaDeepExpansionContext,
+ },
+ fn: {
+ upperFirst: W.upperFirst,
+ jsonSchema202012: {
+ isExpandable: W.isExpandable,
+ hasKeyword: W.hasKeyword,
+ useFn: H.useFn,
+ useConfig: H.useConfig,
+ useComponent: H.useComponent,
+ useIsExpandedDeeply: H.useIsExpandedDeeply,
+ sampleFromSchema: J.sampleFromSchema,
+ sampleFromSchemaGeneric: J.sampleFromSchemaGeneric,
+ sampleEncoderAPI: J.encoderAPI,
+ sampleFormatAPI: J.formatAPI,
+ sampleMediaTypeAPI: J.mediaTypeAPI,
+ createXMLExample: J.createXMLExample,
+ memoizedSampleFromSchema: J.memoizedSampleFromSchema,
+ memoizedCreateXMLExample: J.memoizedCreateXMLExample,
+ },
+ },
+ });
+ },
+ 16648: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { booleanSchema: () => i, objectSchema: () => s, schema: () => a });
+ var r = n(45697),
+ o = n.n(r);
+ const s = o().object,
+ i = o().bool,
+ a = o().oneOfType([s, i]);
+ },
+ 9507: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ const r = new (n(70674).default)(),
+ o = (e, t) => ('function' == typeof t ? r.register(e, t) : null === t ? r.unregister(e) : r.get(e));
+ o.getDefaults = () => r.defaults;
+ const s = o;
+ },
+ 22906: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ const r = new (n(14215).default)(),
+ o = (e, t) => ('function' == typeof t ? r.register(e, t) : null === t ? r.unregister(e) : r.get(e));
+ },
+ 90537: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ const r = new (n(43782).default)(),
+ o = (e, t) => {
+ if ('function' == typeof t) return r.register(e, t);
+ if (null === t) return r.unregister(e);
+ const n = e.split(';').at(0),
+ o = `${n.split('/').at(0)}/*`;
+ return r.get(e) || r.get(n) || r.get(o);
+ };
+ o.getDefaults = () => r.defaults;
+ const s = o;
+ },
+ 70674: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => w });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(47667),
+ i = n.n(s),
+ a = n(28886),
+ l = n.n(a),
+ c = n(14215),
+ u = n(41433),
+ p = n(58509),
+ h = n(44366),
+ f = n(65037),
+ d = n(5709),
+ m = n(54180),
+ g = n(91967);
+ function y(e, t, n) {
+ !(function (e, t) {
+ if (t.has(e)) throw new TypeError('Cannot initialize the same private elements twice on an object');
+ })(e, t),
+ t.set(e, n);
+ }
+ var v = new (l())();
+ class b extends c.default {
+ constructor() {
+ super(...arguments),
+ y(this, v, {
+ writable: !0,
+ value: {
+ '7bit': u.default,
+ '8bit': p.default,
+ binary: h.default,
+ 'quoted-printable': f.default,
+ base16: d.default,
+ base32: m.default,
+ base64: g.default,
+ },
+ }),
+ o()(this, 'data', { ...i()(this, v) });
+ }
+ get defaults() {
+ return { ...i()(this, v) };
+ }
+ }
+ const w = b;
+ },
+ 43782: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => v });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(47667),
+ i = n.n(s),
+ a = n(28886),
+ l = n.n(a),
+ c = n(14215),
+ u = n(65378),
+ p = n(46724),
+ h = n(54342),
+ f = n(92974),
+ d = n(2672);
+ function m(e, t, n) {
+ !(function (e, t) {
+ if (t.has(e)) throw new TypeError('Cannot initialize the same private elements twice on an object');
+ })(e, t),
+ t.set(e, n);
+ }
+ var g = new (l())();
+ class y extends c.default {
+ constructor() {
+ super(...arguments),
+ m(this, g, {
+ writable: !0,
+ value: { ...u.default, ...p.default, ...h.default, ...f.default, ...d.default },
+ }),
+ o()(this, 'data', { ...i()(this, g) });
+ }
+ get defaults() {
+ return { ...i()(this, g) };
+ }
+ }
+ const v = y;
+ },
+ 14215: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(61125),
+ o = n.n(r);
+ const s = class {
+ constructor() {
+ o()(this, 'data', {});
+ }
+ register(e, t) {
+ this.data[e] = t;
+ }
+ unregister(e) {
+ void 0 === e ? (this.data = {}) : delete this.data[e];
+ }
+ get(e) {
+ return this.data[e];
+ }
+ };
+ },
+ 84539: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { ALL_TYPES: () => o, SCALAR_TYPES: () => r });
+ const r = ['number', 'integer', 'string', 'boolean', 'null'],
+ o = ['array', 'object', ...r];
+ },
+ 13783: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { extractExample: () => a, hasExample: () => i });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(23084);
+ const i = (e) => {
+ if (!(0, s.isJSONSchemaObject)(e)) return !1;
+ const { examples: t, example: n, default: r } = e;
+ return !!(o()(t) && t.length >= 1) || void 0 !== r || void 0 !== n;
+ },
+ a = (e) => {
+ if (!(0, s.isJSONSchemaObject)(e)) return null;
+ const { examples: t, example: n, default: r } = e;
+ return o()(t) && t.length >= 1 ? t.at(0) : void 0 !== r ? r : void 0 !== n ? n : void 0;
+ };
+ },
+ 37078: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => v });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(39022),
+ i = n.n(s),
+ a = n(25110),
+ l = n.n(a),
+ c = n(82737),
+ u = n.n(c),
+ p = n(28222),
+ h = n.n(p),
+ f = n(14418),
+ d = n.n(f),
+ m = n(90242),
+ g = n(23084);
+ const y = function (e, t) {
+ let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ if ((0, g.isBooleanJSONSchema)(e) && !0 === e) return !0;
+ if ((0, g.isBooleanJSONSchema)(e) && !1 === e) return !1;
+ if ((0, g.isBooleanJSONSchema)(t) && !0 === t) return !0;
+ if ((0, g.isBooleanJSONSchema)(t) && !1 === t) return !1;
+ if (!(0, g.isJSONSchema)(e)) return t;
+ if (!(0, g.isJSONSchema)(t)) return e;
+ const r = { ...t, ...e };
+ if (t.type && e.type && o()(t.type) && 'string' == typeof t.type) {
+ var s;
+ const n = i()((s = (0, m.AF)(t.type))).call(s, e.type);
+ r.type = l()(new (u())(n));
+ }
+ if (
+ (o()(t.required) && o()(e.required) && (r.required = [...new (u())([...e.required, ...t.required])]),
+ t.properties && e.properties)
+ ) {
+ const o = new (u())([...h()(t.properties), ...h()(e.properties)]);
+ r.properties = {};
+ for (const s of o) {
+ const o = t.properties[s] || {},
+ i = e.properties[s] || {};
+ var a;
+ if ((o.readOnly && !n.includeReadOnly) || (o.writeOnly && !n.includeWriteOnly))
+ r.required = d()((a = r.required || [])).call(a, (e) => e !== s);
+ else r.properties[s] = y(i, o, n);
+ }
+ }
+ return (
+ (0, g.isJSONSchema)(t.items) && (0, g.isJSONSchema)(e.items) && (r.items = y(e.items, t.items, n)),
+ (0, g.isJSONSchema)(t.contains) &&
+ (0, g.isJSONSchema)(e.contains) &&
+ (r.contains = y(e.contains, t.contains, n)),
+ (0, g.isJSONSchema)(t.contentSchema) &&
+ (0, g.isJSONSchema)(e.contentSchema) &&
+ (r.contentSchema = y(e.contentSchema, t.contentSchema, n)),
+ r
+ );
+ },
+ v = y;
+ },
+ 23084: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { isBooleanJSONSchema: () => s, isJSONSchema: () => a, isJSONSchemaObject: () => i });
+ var r = n(68630),
+ o = n.n(r);
+ const s = (e) => 'boolean' == typeof e,
+ i = (e) => o()(e),
+ a = (e) => s(e) || i(e);
+ },
+ 35202: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ bytes: () => a,
+ integer: () => h,
+ number: () => p,
+ pick: () => c,
+ randexp: () => l,
+ string: () => u,
+ });
+ var r = n(92282),
+ o = n.n(r),
+ s = n(14419),
+ i = n.n(s);
+ const a = (e) => o()(e),
+ l = (e) => {
+ try {
+ return new (i())(e).gen();
+ } catch {
+ return 'string';
+ }
+ },
+ c = (e) => e.at(0),
+ u = () => 'string',
+ p = () => 0,
+ h = () => 0;
+ },
+ 96276: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { foldType: () => _, getType: () => O, inferType: () => j });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(91086),
+ i = n.n(s),
+ a = n(58118),
+ l = n.n(a),
+ c = n(19030),
+ u = n.n(c),
+ p = n(28222),
+ h = n.n(p),
+ f = n(97606),
+ d = n.n(f),
+ m = n(14418),
+ g = n.n(m),
+ y = n(84539),
+ v = n(23084),
+ b = n(35202),
+ w = n(13783);
+ const E = {
+ array: [
+ 'items',
+ 'prefixItems',
+ 'contains',
+ 'maxContains',
+ 'minContains',
+ 'maxItems',
+ 'minItems',
+ 'uniqueItems',
+ 'unevaluatedItems',
+ ],
+ object: [
+ 'properties',
+ 'additionalProperties',
+ 'patternProperties',
+ 'propertyNames',
+ 'minProperties',
+ 'maxProperties',
+ 'required',
+ 'dependentSchemas',
+ 'dependentRequired',
+ 'unevaluatedProperties',
+ ],
+ string: [
+ 'pattern',
+ 'format',
+ 'minLength',
+ 'maxLength',
+ 'contentEncoding',
+ 'contentMediaType',
+ 'contentSchema',
+ ],
+ integer: ['minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'],
+ };
+ E.number = E.integer;
+ const x = 'string',
+ S = (e) => (void 0 === e ? null : null === e ? 'null' : o()(e) ? 'array' : i()(e) ? 'integer' : typeof e),
+ _ = (e) => {
+ if (o()(e) && e.length >= 1) {
+ if (l()(e).call(e, 'array')) return 'array';
+ if (l()(e).call(e, 'object')) return 'object';
+ {
+ const t = (0, b.pick)(e);
+ if (l()(y.ALL_TYPES).call(y.ALL_TYPES, t)) return t;
+ }
+ }
+ return l()(y.ALL_TYPES).call(y.ALL_TYPES, e) ? e : null;
+ },
+ j = function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : new (u())();
+ if (!(0, v.isJSONSchemaObject)(e)) return x;
+ if (t.has(e)) return x;
+ t.add(e);
+ let { type: n, const: r } = e;
+ if (((n = _(n)), 'string' != typeof n)) {
+ const t = h()(E);
+ e: for (let r = 0; r < t.length; r += 1) {
+ const o = t[r],
+ s = E[o];
+ for (let t = 0; t < s.length; t += 1) {
+ const r = s[t];
+ if (Object.hasOwn(e, r)) {
+ n = o;
+ break e;
+ }
+ }
+ }
+ }
+ if ('string' != typeof n && void 0 !== r) {
+ const e = S(r);
+ n = 'string' == typeof e ? e : n;
+ }
+ if ('string' != typeof n) {
+ const r = (n) => {
+ if (o()(e[n])) {
+ var r;
+ const o = d()((r = e[n])).call(r, (e) => j(e, t));
+ return _(o);
+ }
+ return null;
+ },
+ i = r('allOf'),
+ a = r('anyOf'),
+ l = r('oneOf'),
+ c = e.not ? j(e.not, t) : null;
+ var s;
+ if (i || a || l || c) n = _(g()((s = [i, a, l, c])).call(s, Boolean));
+ }
+ if ('string' != typeof n && (0, w.hasExample)(e)) {
+ const t = (0, w.extractExample)(e),
+ r = S(t);
+ n = 'string' == typeof r ? r : n;
+ }
+ return t.delete(e), n || x;
+ },
+ O = (e) => j(e);
+ },
+ 99346: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { fromJSONBooleanSchema: () => o, typeCast: () => s });
+ var r = n(23084);
+ const o = (e) => (!1 === e ? { not: {} } : {}),
+ s = (e) => ((0, r.isBooleanJSONSchema)(e) ? o(e) : (0, r.isJSONSchemaObject)(e) ? e : {});
+ },
+ 41433: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString('ascii');
+ },
+ 58509: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString('utf8');
+ },
+ 5709: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString('hex');
+ },
+ 54180: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => {
+ const t = r.from(e).toString('utf8'),
+ n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+ let o = 0,
+ s = '',
+ i = 0,
+ a = 0;
+ for (let e = 0; e < t.length; e++)
+ for (i = (i << 8) | t.charCodeAt(e), a += 8; a >= 5; ) (s += n.charAt((i >>> (a - 5)) & 31)), (a -= 5);
+ a > 0 && ((s += n.charAt((i << (5 - a)) & 31)), (o = (8 - ((8 * t.length) % 5)) % 5));
+ for (let e = 0; e < o; e++) s += '=';
+ return s;
+ };
+ },
+ 91967: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString('base64');
+ },
+ 44366: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(48764).Buffer;
+ const o = (e) => r.from(e).toString('binary');
+ },
+ 65037: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(24278),
+ o = n.n(r);
+ const s = (e) => {
+ let t = '';
+ for (let s = 0; s < e.length; s++) {
+ const i = e.charCodeAt(s);
+ if (61 === i) t += '=3D';
+ else if ((i >= 33 && i <= 60) || (i >= 62 && i <= 126) || 9 === i || 32 === i) t += e.charAt(s);
+ else if (13 === i || 10 === i) t += '\r\n';
+ else if (i > 126) {
+ const r = unescape(encodeURIComponent(e.charAt(s)));
+ for (let e = 0; e < r.length; e++) {
+ var n;
+ t +=
+ '=' +
+ o()((n = '0' + r.charCodeAt(e).toString(16)))
+ .call(n, -2)
+ .toUpperCase();
+ }
+ } else {
+ var r;
+ t +=
+ '=' +
+ o()((r = '0' + i.toString(16)))
+ .call(r, -2)
+ .toUpperCase();
+ }
+ }
+ return t;
+ };
+ },
+ 74045: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => new Date().toISOString();
+ },
+ 81456: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => new Date().toISOString().substring(0, 10);
+ },
+ 560: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 0.1;
+ },
+ 64299: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'P3D';
+ },
+ 3981: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'user@example.com';
+ },
+ 51890: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 0.1;
+ },
+ 69375: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'example.com';
+ },
+ 94518: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '실례@example.com';
+ },
+ 70273: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '실례.com';
+ },
+ 57864: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => (2 ** 30) >>> 0;
+ },
+ 21726: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 2 ** 53 - 1;
+ },
+ 28793: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '198.51.100.42';
+ },
+ 98269: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '2001:0db8:5b96:0000:0000:426f:8e17:642a';
+ },
+ 45693: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'path/실례.html';
+ },
+ 13080: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'https://실례.com/';
+ },
+ 37856: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '/a/b/c';
+ },
+ 2672: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(57740),
+ o = n.n(r),
+ s = n(35202);
+ const i = {
+ 'application/json': () => '{"key":"value"}',
+ 'application/ld+json': () => '{"name": "John Doe"}',
+ 'application/x-httpd-php': () => "Hello World!
'; ?>",
+ 'application/rtf': () => o()`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,
+ 'application/x-sh': () => 'echo "Hello World!"',
+ 'application/xhtml+xml': () => 'content
',
+ 'application/*': () => (0, s.bytes)(25).toString('binary'),
+ };
+ },
+ 54342: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(35202);
+ const o = { 'audio/*': () => (0, r.bytes)(25).toString('binary') };
+ },
+ 46724: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(35202);
+ const o = { 'image/*': () => (0, r.bytes)(25).toString('binary') };
+ },
+ 65378: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = {
+ 'text/plain': () => 'string',
+ 'text/css': () => '.selector { border: 1px solid red }',
+ 'text/csv': () => 'value1,value2,value3',
+ 'text/html': () => 'content
',
+ 'text/calendar': () => 'BEGIN:VCALENDAR',
+ 'text/javascript': () => "console.dir('Hello world!');",
+ 'text/xml': () => 'John Doe',
+ 'text/*': () => 'string',
+ };
+ },
+ 92974: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(35202);
+ const o = { 'video/*': () => (0, r.bytes)(25).toString('binary') };
+ },
+ 93393: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '********';
+ },
+ 4335: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '^[a-z]+$';
+ },
+ 80375: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '1/0';
+ },
+ 65243: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => new Date().toISOString().substring(11);
+ },
+ 94692: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'path/index.html';
+ },
+ 83829: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'https://example.com/dictionary/{term:1}/{term}';
+ },
+ 52978: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => 'https://example.com/';
+ },
+ 38859: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => '3fa85f64-5717-4562-b3fc-2c963f66afa6';
+ },
+ 78591: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ createXMLExample: () => r.createXMLExample,
+ encoderAPI: () => o.default,
+ formatAPI: () => s.default,
+ mediaTypeAPI: () => i.default,
+ memoizedCreateXMLExample: () => r.memoizedCreateXMLExample,
+ memoizedSampleFromSchema: () => r.memoizedSampleFromSchema,
+ sampleFromSchema: () => r.sampleFromSchema,
+ sampleFromSchemaGeneric: () => r.sampleFromSchemaGeneric,
+ });
+ var r = n(94277),
+ o = n(9507),
+ s = n(22906),
+ i = n(90537);
+ },
+ 94277: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ createXMLExample: () => M,
+ memoizedCreateXMLExample: () => L,
+ memoizedSampleFromSchema: () => B,
+ sampleFromSchema: () => D,
+ sampleFromSchemaGeneric: () => R,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(91086),
+ i = n.n(s),
+ a = n(86),
+ l = n.n(a),
+ c = n(51679),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(39022),
+ d = n.n(f),
+ m = n(97606),
+ g = n.n(m),
+ y = n(35627),
+ v = n.n(y),
+ b = n(53479),
+ w = n.n(b),
+ E = n(41609),
+ x = n.n(E),
+ S = n(68630),
+ _ = n.n(S),
+ j = n(90242),
+ O = n(60314),
+ k = n(63273),
+ A = n(96276),
+ C = n(99346),
+ P = n(13783),
+ N = n(35202),
+ I = n(37078),
+ T = n(23084);
+ const R = function (e) {
+ var t;
+ let n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
+ r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : void 0,
+ s = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
+ 'function' == typeof (null === (t = e) || void 0 === t ? void 0 : t.toJS) && (e = e.toJS()),
+ (e = (0, C.typeCast)(e));
+ let a = void 0 !== r || (0, P.hasExample)(e);
+ const c = !a && o()(e.oneOf) && e.oneOf.length > 0,
+ p = !a && o()(e.anyOf) && e.anyOf.length > 0;
+ if (!a && (c || p)) {
+ const t = (0, C.typeCast)(c ? (0, N.pick)(e.oneOf) : (0, N.pick)(e.anyOf));
+ !(e = (0, I.default)(e, t, n)).xml && t.xml && (e.xml = t.xml),
+ (0, P.hasExample)(e) && (0, P.hasExample)(t) && (a = !0);
+ }
+ const f = {};
+ let { xml: m, properties: y, additionalProperties: v, items: b, contains: w } = e || {},
+ E = (0, A.getType)(e),
+ { includeReadOnly: S, includeWriteOnly: O } = n;
+ m = m || {};
+ let M,
+ { name: D, prefix: F, namespace: L } = m,
+ B = {};
+ if (
+ (Object.hasOwn(e, 'type') || (e.type = E),
+ s && ((D = D || 'notagname'), (M = (F ? `${F}:` : '') + D), L))
+ ) {
+ f[F ? `xmlns:${F}` : 'xmlns'] = L;
+ }
+ s && (B[M] = []);
+ const $ = (0, j.mz)(y);
+ let q,
+ U = 0;
+ const z = () => i()(e.maxProperties) && e.maxProperties > 0 && U >= e.maxProperties,
+ V = (t) =>
+ !(i()(e.maxProperties) && e.maxProperties > 0) ||
+ (!z() &&
+ (!((t) => {
+ var n;
+ return !o()(e.required) || 0 === e.required.length || !h()((n = e.required)).call(n, t);
+ })(t) ||
+ e.maxProperties -
+ U -
+ (() => {
+ if (!o()(e.required) || 0 === e.required.length) return 0;
+ let t = 0;
+ var n, r;
+ return (
+ s
+ ? l()((n = e.required)).call(n, (e) => (t += void 0 === B[e] ? 0 : 1))
+ : l()((r = e.required)).call(r, (e) => {
+ var n;
+ t +=
+ void 0 ===
+ (null === (n = B[M]) || void 0 === n
+ ? void 0
+ : u()(n).call(n, (t) => void 0 !== t[e]))
+ ? 0
+ : 1;
+ }),
+ e.required.length - t
+ );
+ })() >
+ 0));
+ if (
+ ((q = s
+ ? function (t) {
+ let r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0;
+ if (e && $[t]) {
+ if ((($[t].xml = $[t].xml || {}), $[t].xml.attribute)) {
+ const e = o()($[t].enum) ? (0, N.pick)($[t].enum) : void 0;
+ if ((0, P.hasExample)($[t])) f[$[t].xml.name || t] = (0, P.extractExample)($[t]);
+ else if (void 0 !== e) f[$[t].xml.name || t] = e;
+ else {
+ const e = (0, C.typeCast)($[t]),
+ n = (0, A.getType)(e),
+ r = $[t].xml.name || t;
+ f[r] = k.default[n](e);
+ }
+ return;
+ }
+ $[t].xml.name = $[t].xml.name || t;
+ } else $[t] || !1 === v || ($[t] = { xml: { name: t } });
+ let i = R($[t], n, r, s);
+ var a;
+ V(t) && (U++, o()(i) ? (B[M] = d()((a = B[M])).call(a, i)) : B[M].push(i));
+ }
+ : (t, r) => {
+ var o;
+ if (V(t)) {
+ if (
+ _()(null === (o = e.discriminator) || void 0 === o ? void 0 : o.mapping) &&
+ e.discriminator.propertyName === t &&
+ 'string' == typeof e.$$ref
+ ) {
+ for (const n in e.discriminator.mapping)
+ if (-1 !== e.$$ref.search(e.discriminator.mapping[n])) {
+ B[t] = n;
+ break;
+ }
+ } else B[t] = R($[t], n, r, s);
+ U++;
+ }
+ }),
+ a)
+ ) {
+ let t;
+ if (((t = void 0 !== r ? r : (0, P.extractExample)(e)), !s)) {
+ if ('number' == typeof t && 'string' === E) return `${t}`;
+ if ('string' != typeof t || 'string' === E) return t;
+ try {
+ return JSON.parse(t);
+ } catch {
+ return t;
+ }
+ }
+ if ('array' === E) {
+ if (!o()(t)) {
+ if ('string' == typeof t) return t;
+ t = [t];
+ }
+ let r = [];
+ return (
+ (0, T.isJSONSchemaObject)(b) &&
+ ((b.xml = b.xml || m || {}),
+ (b.xml.name = b.xml.name || m.name),
+ (r = g()(t).call(t, (e) => R(b, n, e, s)))),
+ (0, T.isJSONSchemaObject)(w) &&
+ ((w.xml = w.xml || m || {}),
+ (w.xml.name = w.xml.name || m.name),
+ (r = [R(w, n, void 0, s), ...r])),
+ (r = k.default.array(e, { sample: r })),
+ m.wrapped ? ((B[M] = r), x()(f) || B[M].push({ _attr: f })) : (B = r),
+ B
+ );
+ }
+ if ('object' === E) {
+ if ('string' == typeof t) return t;
+ for (const e in t) {
+ var W, J, K, H;
+ Object.hasOwn(t, e) &&
+ ((null !== (W = $[e]) && void 0 !== W && W.readOnly && !S) ||
+ (null !== (J = $[e]) && void 0 !== J && J.writeOnly && !O) ||
+ (null !== (K = $[e]) && void 0 !== K && null !== (H = K.xml) && void 0 !== H && H.attribute
+ ? (f[$[e].xml.name || e] = t[e])
+ : q(e, t[e])));
+ }
+ return x()(f) || B[M].push({ _attr: f }), B;
+ }
+ return (B[M] = x()(f) ? t : [{ _attr: f }, t]), B;
+ }
+ if ('array' === E) {
+ let t = [];
+ var G, Z;
+ if ((0, T.isJSONSchemaObject)(w))
+ if ((s && ((w.xml = w.xml || e.xml || {}), (w.xml.name = w.xml.name || m.name)), o()(w.anyOf)))
+ t.push(...g()((G = w.anyOf)).call(G, (e) => R((0, I.default)(e, w, n), n, void 0, s)));
+ else if (o()(w.oneOf)) {
+ var Y;
+ t.push(...g()((Y = w.oneOf)).call(Y, (e) => R((0, I.default)(e, w, n), n, void 0, s)));
+ } else {
+ if (!(!s || (s && m.wrapped))) return R(w, n, void 0, s);
+ t.push(R(w, n, void 0, s));
+ }
+ if ((0, T.isJSONSchemaObject)(b))
+ if ((s && ((b.xml = b.xml || e.xml || {}), (b.xml.name = b.xml.name || m.name)), o()(b.anyOf)))
+ t.push(...g()((Z = b.anyOf)).call(Z, (e) => R((0, I.default)(e, b, n), n, void 0, s)));
+ else if (o()(b.oneOf)) {
+ var X;
+ t.push(...g()((X = b.oneOf)).call(X, (e) => R((0, I.default)(e, b, n), n, void 0, s)));
+ } else {
+ if (!(!s || (s && m.wrapped))) return R(b, n, void 0, s);
+ t.push(R(b, n, void 0, s));
+ }
+ return (
+ (t = k.default.array(e, { sample: t })),
+ s && m.wrapped ? ((B[M] = t), x()(f) || B[M].push({ _attr: f }), B) : t
+ );
+ }
+ if ('object' === E) {
+ for (let e in $) {
+ var Q, ee, te;
+ Object.hasOwn($, e) &&
+ ((null !== (Q = $[e]) && void 0 !== Q && Q.deprecated) ||
+ (null !== (ee = $[e]) && void 0 !== ee && ee.readOnly && !S) ||
+ (null !== (te = $[e]) && void 0 !== te && te.writeOnly && !O) ||
+ q(e));
+ }
+ if ((s && f && B[M].push({ _attr: f }), z())) return B;
+ if ((0, T.isBooleanJSONSchema)(v))
+ s ? B[M].push({ additionalProp: 'Anything can be here' }) : (B.additionalProp1 = {}), U++;
+ else if ((0, T.isJSONSchemaObject)(v)) {
+ var ne, re;
+ const t = v,
+ r = R(t, n, void 0, s);
+ if (
+ s &&
+ 'string' == typeof (null == t || null === (ne = t.xml) || void 0 === ne ? void 0 : ne.name) &&
+ 'notagname' !== (null == t || null === (re = t.xml) || void 0 === re ? void 0 : re.name)
+ )
+ B[M].push(r);
+ else {
+ const t =
+ i()(e.minProperties) && e.minProperties > 0 && U < e.minProperties ? e.minProperties - U : 3;
+ for (let e = 1; e <= t; e++) {
+ if (z()) return B;
+ if (s) {
+ const t = {};
+ (t['additionalProp' + e] = r.notagname), B[M].push(t);
+ } else B['additionalProp' + e] = r;
+ U++;
+ }
+ }
+ }
+ return B;
+ }
+ let oe;
+ if (void 0 !== e.const) oe = e.const;
+ else if (e && o()(e.enum)) oe = (0, N.pick)((0, j.AF)(e.enum));
+ else {
+ const t = (0, T.isJSONSchemaObject)(e.contentSchema) ? R(e.contentSchema, n, void 0, s) : void 0;
+ oe = k.default[E](e, { sample: t });
+ }
+ return s ? ((B[M] = x()(f) ? oe : [{ _attr: f }, oe]), B) : oe;
+ },
+ M = (e, t, n) => {
+ const r = R(e, t, n, !0);
+ if (r) return 'string' == typeof r ? r : w()(r, { declaration: !0, indent: '\t' });
+ },
+ D = (e, t, n) => R(e, t, n, !1),
+ F = (e, t, n) => [e, v()(t), v()(n)],
+ L = (0, O.Z)(M, F),
+ B = (0, O.Z)(D, F);
+ },
+ 83982: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { applyArrayConstraints: () => p, default: () => h });
+ var r = n(91086),
+ o = n.n(r),
+ s = n(24278),
+ i = n.n(s),
+ a = n(25110),
+ l = n.n(a),
+ c = n(82737),
+ u = n.n(c);
+ const p = function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ const { minItems: n, maxItems: r, uniqueItems: s } = t,
+ { contains: a, minContains: c, maxContains: p } = t;
+ let h = [...e];
+ if (null != a && 'object' == typeof a) {
+ if (o()(c) && c > 1) {
+ const e = h.at(0);
+ for (let t = 1; t < c; t += 1) h.unshift(e);
+ }
+ o()(p);
+ }
+ if ((o()(r) && r > 0 && (h = i()(e).call(e, 0, r)), o()(n) && n > 0))
+ for (let e = 0; h.length < n; e += 1) h.push(h[e % h.length]);
+ return !0 === s && (h = l()(new (u())(h))), h;
+ },
+ h = (e, t) => {
+ let { sample: n } = t;
+ return p(n, e);
+ };
+ },
+ 34108: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = (e) => 'boolean' != typeof e.default || e.default;
+ },
+ 63273: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(83982),
+ o = n(46852),
+ s = n(74522),
+ i = n(83455),
+ a = n(58864),
+ l = n(34108),
+ c = n(90853);
+ const u = {
+ array: r.default,
+ object: o.default,
+ string: s.default,
+ number: i.default,
+ integer: a.default,
+ boolean: l.default,
+ null: c.default,
+ },
+ p = new Proxy(u, {
+ get: (e, t) => ('string' == typeof t && Object.hasOwn(e, t) ? e[t] : () => `Unknown Type: ${t}`),
+ });
+ },
+ 58864: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(35202),
+ o = n(22906),
+ s = n(57864),
+ i = n(21726);
+ const a = (e) => {
+ const { format: t } = e;
+ return 'string' == typeof t
+ ? ((e) => {
+ const { format: t } = e,
+ n = (0, o.default)(t);
+ if ('function' == typeof n) return n(e);
+ switch (t) {
+ case 'int32':
+ return (0, s.default)();
+ case 'int64':
+ return (0, i.default)();
+ }
+ return (0, r.integer)();
+ })(e)
+ : (0, r.integer)();
+ };
+ },
+ 90853: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => null;
+ },
+ 83455: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(91086),
+ o = n.n(r),
+ s = n(44081),
+ i = n.n(s),
+ a = n(35202),
+ l = n(22906),
+ c = n(51890),
+ u = n(560);
+ const p = (e) => {
+ const { format: t } = e;
+ let n;
+ return (
+ (n =
+ 'string' == typeof t
+ ? ((e) => {
+ const { format: t } = e,
+ n = (0, l.default)(t);
+ if ('function' == typeof n) return n(e);
+ switch (t) {
+ case 'float':
+ return (0, c.default)();
+ case 'double':
+ return (0, u.default)();
+ }
+ return (0, a.number)();
+ })(e)
+ : (0, a.number)()),
+ (function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ const { minimum: n, maximum: r, exclusiveMinimum: s, exclusiveMaximum: a } = t,
+ { multipleOf: l } = t,
+ c = o()(e) ? 1 : i();
+ let u = 'number' == typeof n ? n : null,
+ p = 'number' == typeof r ? r : null,
+ h = e;
+ if (
+ ('number' == typeof s && (u = null !== u ? Math.max(u, s + c) : s + c),
+ 'number' == typeof a && (p = null !== p ? Math.min(p, a - c) : a - c),
+ (h = (u > p && e) || u || p || h),
+ 'number' == typeof l && l > 0)
+ ) {
+ const e = h % l;
+ h = 0 === e ? h : h + l - e;
+ }
+ return h;
+ })(n, e)
+ );
+ };
+ },
+ 46852: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = () => {
+ throw new Error('Not implemented');
+ };
+ },
+ 74522: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => L });
+ var r = n(91086),
+ o = n.n(r),
+ s = n(24278),
+ i = n.n(s),
+ a = n(58309),
+ l = n.n(a),
+ c = n(35627),
+ u = n.n(c),
+ p = n(6557),
+ h = n.n(p),
+ f = n(35202),
+ d = n(23084),
+ m = n(3981),
+ g = n(94518),
+ y = n(69375),
+ v = n(70273),
+ b = n(28793),
+ w = n(98269),
+ E = n(52978),
+ x = n(94692),
+ S = n(13080),
+ _ = n(45693),
+ j = n(38859),
+ O = n(83829),
+ k = n(37856),
+ A = n(80375),
+ C = n(74045),
+ P = n(81456),
+ N = n(65243),
+ I = n(64299),
+ T = n(93393),
+ R = n(4335),
+ M = n(22906),
+ D = n(9507),
+ F = n(90537);
+ const L = function (e) {
+ let { sample: t } = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ const { contentEncoding: n, contentMediaType: r, contentSchema: s } = e,
+ { pattern: a, format: c } = e,
+ p = (0, D.default)(n) || h();
+ let L;
+ if ('string' == typeof a) L = (0, f.randexp)(a);
+ else if ('string' == typeof c)
+ L = ((e) => {
+ const { format: t } = e,
+ n = (0, M.default)(t);
+ if ('function' == typeof n) return n(e);
+ switch (t) {
+ case 'email':
+ return (0, m.default)();
+ case 'idn-email':
+ return (0, g.default)();
+ case 'hostname':
+ return (0, y.default)();
+ case 'idn-hostname':
+ return (0, v.default)();
+ case 'ipv4':
+ return (0, b.default)();
+ case 'ipv6':
+ return (0, w.default)();
+ case 'uri':
+ return (0, E.default)();
+ case 'uri-reference':
+ return (0, x.default)();
+ case 'iri':
+ return (0, S.default)();
+ case 'iri-reference':
+ return (0, _.default)();
+ case 'uuid':
+ return (0, j.default)();
+ case 'uri-template':
+ return (0, O.default)();
+ case 'json-pointer':
+ return (0, k.default)();
+ case 'relative-json-pointer':
+ return (0, A.default)();
+ case 'date-time':
+ return (0, C.default)();
+ case 'date':
+ return (0, P.default)();
+ case 'time':
+ return (0, N.default)();
+ case 'duration':
+ return (0, I.default)();
+ case 'password':
+ return (0, T.default)();
+ case 'regex':
+ return (0, R.default)();
+ }
+ return (0, f.string)();
+ })(e);
+ else if ((0, d.isJSONSchema)(s) && 'string' == typeof r && void 0 !== t)
+ L = l()(t) || 'object' == typeof t ? u()(t) : String(t);
+ else if ('string' == typeof r) {
+ const t = (0, F.default)(r);
+ 'function' == typeof t && (L = t(e));
+ } else L = (0, f.string)();
+ return p(
+ (function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ const { maxLength: n, minLength: r } = t;
+ let s = e;
+ if ((o()(n) && n > 0 && (s = i()(s).call(s, 0, n)), o()(r) && r > 0)) {
+ let e = 0;
+ for (; s.length < r; ) s += s[e++ % s.length];
+ }
+ return s;
+ })(L, e)
+ );
+ };
+ },
+ 25474: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ SHOW: () => a,
+ UPDATE_FILTER: () => s,
+ UPDATE_LAYOUT: () => o,
+ UPDATE_MODE: () => i,
+ changeMode: () => p,
+ show: () => u,
+ updateFilter: () => c,
+ updateLayout: () => l,
+ });
+ var r = n(90242);
+ const o = 'layout_update_layout',
+ s = 'layout_update_filter',
+ i = 'layout_update_mode',
+ a = 'layout_show';
+ function l(e) {
+ return { type: o, payload: e };
+ }
+ function c(e) {
+ return { type: s, payload: e };
+ }
+ function u(e) {
+ let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
+ return (e = (0, r.AF)(e)), { type: a, payload: { thing: e, shown: t } };
+ }
+ function p(e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '';
+ return (e = (0, r.AF)(e)), { type: i, payload: { thing: e, mode: t } };
+ }
+ },
+ 26821: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(5672),
+ o = n(25474),
+ s = n(4400),
+ i = n(28989);
+ function a() {
+ return {
+ statePlugins: { layout: { reducers: r.default, actions: o, selectors: s }, spec: { wrapSelectors: i } },
+ };
+ }
+ },
+ 5672: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(39022),
+ o = n.n(r),
+ s = n(43393),
+ i = n(25474);
+ const a = {
+ [i.UPDATE_LAYOUT]: (e, t) => e.set('layout', t.payload),
+ [i.UPDATE_FILTER]: (e, t) => e.set('filter', t.payload),
+ [i.SHOW]: (e, t) => {
+ const n = t.payload.shown,
+ r = (0, s.fromJS)(t.payload.thing);
+ return e.update('shown', (0, s.fromJS)({}), (e) => e.set(r, n));
+ },
+ [i.UPDATE_MODE]: (e, t) => {
+ var n;
+ let r = t.payload.thing,
+ s = t.payload.mode;
+ return e.setIn(o()((n = ['modes'])).call(n, r), (s || '') + '');
+ },
+ };
+ },
+ 4400: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ current: () => i,
+ currentFilter: () => a,
+ isShown: () => l,
+ showSummary: () => u,
+ whatMode: () => c,
+ });
+ var r = n(20573),
+ o = n(90242),
+ s = n(43393);
+ const i = (e) => e.get('layout'),
+ a = (e) => e.get('filter'),
+ l = (e, t, n) => ((t = (0, o.AF)(t)), e.get('shown', (0, s.fromJS)({})).get((0, s.fromJS)(t), n)),
+ c = function (e, t) {
+ let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : '';
+ return (t = (0, o.AF)(t)), e.getIn(['modes', ...t], n);
+ },
+ u = (0, r.P1)(
+ (e) => e,
+ (e) => !l(e, 'editor')
+ );
+ },
+ 28989: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { taggedOperations: () => s });
+ var r = n(24278),
+ o = n.n(r);
+ const s = (e, t) =>
+ function (n) {
+ for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
+ s[i - 1] = arguments[i];
+ let a = e(n, ...s);
+ const { fn: l, layoutSelectors: c, getConfigs: u } = t.getSystem(),
+ p = u(),
+ { maxDisplayedTags: h } = p;
+ let f = c.currentFilter();
+ return (
+ f && !0 !== f && 'true' !== f && 'false' !== f && (a = l.opsFilter(a, f)),
+ h && !isNaN(h) && h >= 0 && (a = o()(a).call(a, 0, h)),
+ a
+ );
+ };
+ },
+ 9150: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(11189),
+ o = n.n(r);
+ function s(e) {
+ let { configs: t } = e;
+ const n = { debug: 0, info: 1, log: 2, warn: 3, error: 4 },
+ r = (e) => n[e] || -1;
+ let { logLevel: s } = t,
+ i = r(s);
+ function a(e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
+ n[o - 1] = arguments[o];
+ r(e) >= i && console[e](...n);
+ }
+ return (
+ (a.warn = o()(a).call(a, null, 'warn')),
+ (a.error = o()(a).call(a, null, 'error')),
+ (a.info = o()(a).call(a, null, 'info')),
+ (a.debug = o()(a).call(a, null, 'debug')),
+ { rootInjects: { log: a } }
+ );
+ }
+ },
+ 67002: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ CLEAR_REQUEST_BODY_VALIDATE_ERROR: () => h,
+ CLEAR_REQUEST_BODY_VALUE: () => f,
+ SET_REQUEST_BODY_VALIDATE_ERROR: () => p,
+ UPDATE_ACTIVE_EXAMPLES_MEMBER: () => a,
+ UPDATE_REQUEST_BODY_INCLUSION: () => i,
+ UPDATE_REQUEST_BODY_VALUE: () => o,
+ UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG: () => s,
+ UPDATE_REQUEST_CONTENT_TYPE: () => l,
+ UPDATE_RESPONSE_CONTENT_TYPE: () => c,
+ UPDATE_SELECTED_SERVER: () => r,
+ UPDATE_SERVER_VARIABLE_VALUE: () => u,
+ clearRequestBodyValidateError: () => S,
+ clearRequestBodyValue: () => j,
+ initRequestBodyValidateError: () => _,
+ setActiveExamplesMember: () => v,
+ setRequestBodyInclusion: () => y,
+ setRequestBodyValidateError: () => x,
+ setRequestBodyValue: () => m,
+ setRequestContentType: () => b,
+ setResponseContentType: () => w,
+ setRetainRequestBodyValueFlag: () => g,
+ setSelectedServer: () => d,
+ setServerVariableValue: () => E,
+ });
+ const r = 'oas3_set_servers',
+ o = 'oas3_set_request_body_value',
+ s = 'oas3_set_request_body_retain_flag',
+ i = 'oas3_set_request_body_inclusion',
+ a = 'oas3_set_active_examples_member',
+ l = 'oas3_set_request_content_type',
+ c = 'oas3_set_response_content_type',
+ u = 'oas3_set_server_variable_value',
+ p = 'oas3_set_request_body_validate_error',
+ h = 'oas3_clear_request_body_validate_error',
+ f = 'oas3_clear_request_body_value';
+ function d(e, t) {
+ return { type: r, payload: { selectedServerUrl: e, namespace: t } };
+ }
+ function m(e) {
+ let { value: t, pathMethod: n } = e;
+ return { type: o, payload: { value: t, pathMethod: n } };
+ }
+ const g = (e) => {
+ let { value: t, pathMethod: n } = e;
+ return { type: s, payload: { value: t, pathMethod: n } };
+ };
+ function y(e) {
+ let { value: t, pathMethod: n, name: r } = e;
+ return { type: i, payload: { value: t, pathMethod: n, name: r } };
+ }
+ function v(e) {
+ let { name: t, pathMethod: n, contextType: r, contextName: o } = e;
+ return { type: a, payload: { name: t, pathMethod: n, contextType: r, contextName: o } };
+ }
+ function b(e) {
+ let { value: t, pathMethod: n } = e;
+ return { type: l, payload: { value: t, pathMethod: n } };
+ }
+ function w(e) {
+ let { value: t, path: n, method: r } = e;
+ return { type: c, payload: { value: t, path: n, method: r } };
+ }
+ function E(e) {
+ let { server: t, namespace: n, key: r, val: o } = e;
+ return { type: u, payload: { server: t, namespace: n, key: r, val: o } };
+ }
+ const x = (e) => {
+ let { path: t, method: n, validationErrors: r } = e;
+ return { type: p, payload: { path: t, method: n, validationErrors: r } };
+ },
+ S = (e) => {
+ let { path: t, method: n } = e;
+ return { type: h, payload: { path: t, method: n } };
+ },
+ _ = (e) => {
+ let { pathMethod: t } = e;
+ return { type: h, payload: { path: t[0], method: t[1] } };
+ },
+ j = (e) => {
+ let { pathMethod: t } = e;
+ return { type: f, payload: { pathMethod: t } };
+ };
+ },
+ 73723: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { definitionsToAuthorize: () => p });
+ var r = n(86),
+ o = n.n(r),
+ s = n(14418),
+ i = n.n(s),
+ a = n(24282),
+ l = n.n(a),
+ c = n(20573),
+ u = n(43393);
+ const p =
+ ((h = (0, c.P1)(
+ (e) => e,
+ (e) => {
+ let { specSelectors: t } = e;
+ return t.securityDefinitions();
+ },
+ (e, t) => {
+ var n;
+ let r = (0, u.List)();
+ return t
+ ? (o()((n = t.entrySeq())).call(n, (e) => {
+ let [t, n] = e;
+ const s = n.get('type');
+ var a;
+ if (
+ ('oauth2' === s &&
+ o()((a = n.get('flows').entrySeq())).call(a, (e) => {
+ let [o, s] = e,
+ a = (0, u.fromJS)({
+ flow: o,
+ authorizationUrl: s.get('authorizationUrl'),
+ tokenUrl: s.get('tokenUrl'),
+ scopes: s.get('scopes'),
+ type: n.get('type'),
+ description: n.get('description'),
+ });
+ r = r.push(new u.Map({ [t]: i()(a).call(a, (e) => void 0 !== e) }));
+ }),
+ ('http' !== s && 'apiKey' !== s) || (r = r.push(new u.Map({ [t]: n }))),
+ 'openIdConnect' === s && n.get('openIdConnectData'))
+ ) {
+ let e = n.get('openIdConnectData'),
+ s = e.get('grant_types_supported') || ['authorization_code', 'implicit'];
+ o()(s).call(s, (o) => {
+ var s;
+ let a =
+ e.get('scopes_supported') &&
+ l()((s = e.get('scopes_supported'))).call(s, (e, t) => e.set(t, ''), new u.Map()),
+ c = (0, u.fromJS)({
+ flow: o,
+ authorizationUrl: e.get('authorization_endpoint'),
+ tokenUrl: e.get('token_endpoint'),
+ scopes: a,
+ type: 'oauth2',
+ openIdConnectUrl: n.get('openIdConnectUrl'),
+ });
+ r = r.push(new u.Map({ [t]: i()(c).call(c, (e) => void 0 !== e) }));
+ });
+ }
+ }),
+ r)
+ : r;
+ }
+ )),
+ (e, t) =>
+ function () {
+ for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o];
+ if (t.getSystem().specSelectors.isOAS3()) {
+ let e = t.getState().getIn(['spec', 'resolvedSubtrees', 'components', 'securitySchemes']);
+ return h(t, e, ...r);
+ }
+ return e(...r);
+ });
+ var h;
+ },
+ 33427: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294);
+ n(23930);
+ const l = (e) => {
+ let { callbacks: t, specPath: n, specSelectors: r, getComponent: s } = e;
+ const l = r.callbacksOperations({ callbacks: t, specPath: n }),
+ c = o()(l),
+ u = s('OperationContainer', !0);
+ return 0 === c.length
+ ? a.createElement('span', null, 'No callbacks')
+ : a.createElement(
+ 'div',
+ null,
+ i()(c).call(c, (e) => {
+ var t;
+ return a.createElement(
+ 'div',
+ { key: `${e}` },
+ a.createElement('h2', null, e),
+ i()((t = l[e])).call(t, (t) =>
+ a.createElement(u, {
+ key: `${e}-${t.path}-${t.method}`,
+ op: t.operation,
+ tag: 'callbacks',
+ method: t.method,
+ path: t.path,
+ specPath: t.specPath,
+ allowTryItOut: !1,
+ })
+ )
+ );
+ })
+ );
+ };
+ },
+ 86775: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(76986),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(67294);
+ class h extends p.Component {
+ constructor(e, t) {
+ super(e, t),
+ o()(this, 'onChange', (e) => {
+ let { onChange: t } = this.props,
+ { value: n, name: r } = e.target,
+ o = i()({}, this.state.value);
+ r ? (o[r] = n) : (o = n), this.setState({ value: o }, () => t(this.state));
+ });
+ let { name: n, schema: r } = this.props,
+ s = this.getValue();
+ this.state = { name: n, schema: r, value: s };
+ }
+ getValue() {
+ let { name: e, authorized: t } = this.props;
+ return t && t.getIn([e, 'value']);
+ }
+ render() {
+ var e;
+ let { schema: t, getComponent: n, errSelectors: r, name: o } = this.props;
+ const s = n('Input'),
+ i = n('Row'),
+ a = n('Col'),
+ c = n('authError'),
+ h = n('Markdown', !0),
+ f = n('JumpToPath', !0),
+ d = (t.get('scheme') || '').toLowerCase();
+ let m = this.getValue(),
+ g = l()((e = r.allErrors())).call(e, (e) => e.get('authId') === o);
+ if ('basic' === d) {
+ var y;
+ let e = m ? m.get('username') : null;
+ return p.createElement(
+ 'div',
+ null,
+ p.createElement(
+ 'h4',
+ null,
+ p.createElement('code', null, o || t.get('name')),
+ ' (http, Basic)',
+ p.createElement(f, { path: ['securityDefinitions', o] })
+ ),
+ e && p.createElement('h6', null, 'Authorized'),
+ p.createElement(i, null, p.createElement(h, { source: t.get('description') })),
+ p.createElement(
+ i,
+ null,
+ p.createElement('label', null, 'Username:'),
+ e
+ ? p.createElement('code', null, ' ', e, ' ')
+ : p.createElement(
+ a,
+ null,
+ p.createElement(s, {
+ type: 'text',
+ required: 'required',
+ name: 'username',
+ 'aria-label': 'auth-basic-username',
+ onChange: this.onChange,
+ autoFocus: !0,
+ })
+ )
+ ),
+ p.createElement(
+ i,
+ null,
+ p.createElement('label', null, 'Password:'),
+ e
+ ? p.createElement('code', null, ' ****** ')
+ : p.createElement(
+ a,
+ null,
+ p.createElement(s, {
+ autoComplete: 'new-password',
+ name: 'password',
+ type: 'password',
+ 'aria-label': 'auth-basic-password',
+ onChange: this.onChange,
+ })
+ )
+ ),
+ u()((y = g.valueSeq())).call(y, (e, t) => p.createElement(c, { error: e, key: t }))
+ );
+ }
+ var v;
+ return 'bearer' === d
+ ? p.createElement(
+ 'div',
+ null,
+ p.createElement(
+ 'h4',
+ null,
+ p.createElement('code', null, o || t.get('name')),
+ ' (http, Bearer)',
+ p.createElement(f, { path: ['securityDefinitions', o] })
+ ),
+ m && p.createElement('h6', null, 'Authorized'),
+ p.createElement(i, null, p.createElement(h, { source: t.get('description') })),
+ p.createElement(
+ i,
+ null,
+ p.createElement('label', null, 'Value:'),
+ m
+ ? p.createElement('code', null, ' ****** ')
+ : p.createElement(
+ a,
+ null,
+ p.createElement(s, {
+ type: 'text',
+ 'aria-label': 'auth-bearer-value',
+ onChange: this.onChange,
+ autoFocus: !0,
+ })
+ )
+ ),
+ u()((v = g.valueSeq())).call(v, (e, t) => p.createElement(c, { error: e, key: t }))
+ )
+ : p.createElement(
+ 'div',
+ null,
+ p.createElement(
+ 'em',
+ null,
+ p.createElement('b', null, o),
+ ' HTTP authentication: unsupported scheme ',
+ `'${d}'`
+ )
+ );
+ }
+ }
+ },
+ 76467: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(33427),
+ o = n(42458),
+ s = n(15757),
+ i = n(56617),
+ a = n(9928),
+ l = n(45327),
+ c = n(86775),
+ u = n(96796);
+ const p = {
+ Callbacks: r.default,
+ HttpAuth: c.default,
+ RequestBody: o.default,
+ Servers: i.default,
+ ServersContainer: a.default,
+ RequestBodyEditor: l.default,
+ OperationServers: u.default,
+ operationLink: s.default,
+ };
+ },
+ 15757: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(35627),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294);
+ n(23930);
+ class l extends a.Component {
+ render() {
+ const { link: e, name: t, getComponent: n } = this.props,
+ r = n('Markdown', !0);
+ let s = e.get('operationId') || e.get('operationRef'),
+ l = e.get('parameters') && e.get('parameters').toJS(),
+ c = e.get('description');
+ return a.createElement(
+ 'div',
+ { className: 'operation-link' },
+ a.createElement(
+ 'div',
+ { className: 'description' },
+ a.createElement('b', null, a.createElement('code', null, t)),
+ c ? a.createElement(r, { source: c }) : null
+ ),
+ a.createElement(
+ 'pre',
+ null,
+ 'Operation `',
+ s,
+ '`',
+ a.createElement('br', null),
+ a.createElement('br', null),
+ 'Parameters ',
+ (function (e, t) {
+ var n;
+ if ('string' != typeof t) return '';
+ return i()((n = t.split('\n')))
+ .call(n, (t, n) => (n > 0 ? Array(e + 1).join(' ') + t : t))
+ .join('\n');
+ })(0, o()(l, null, 2)) || '{}',
+ a.createElement('br', null)
+ )
+ );
+ }
+ }
+ const c = l;
+ },
+ 96796: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294);
+ n(23930);
+ class i extends s.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, 'setSelectedServer', (e) => {
+ const { path: t, method: n } = this.props;
+ return this.forceUpdate(), this.props.setSelectedServer(e, `${t}:${n}`);
+ }),
+ o()(this, 'setServerVariableValue', (e) => {
+ const { path: t, method: n } = this.props;
+ return this.forceUpdate(), this.props.setServerVariableValue({ ...e, namespace: `${t}:${n}` });
+ }),
+ o()(this, 'getSelectedServer', () => {
+ const { path: e, method: t } = this.props;
+ return this.props.getSelectedServer(`${e}:${t}`);
+ }),
+ o()(this, 'getServerVariable', (e, t) => {
+ const { path: n, method: r } = this.props;
+ return this.props.getServerVariable({ namespace: `${n}:${r}`, server: e }, t);
+ }),
+ o()(this, 'getEffectiveServerValue', (e) => {
+ const { path: t, method: n } = this.props;
+ return this.props.getEffectiveServerValue({ server: e, namespace: `${t}:${n}` });
+ });
+ }
+ render() {
+ const { operationServers: e, pathServers: t, getComponent: n } = this.props;
+ if (!e && !t) return null;
+ const r = n('Servers'),
+ o = e || t,
+ i = e ? 'operation' : 'path';
+ return s.createElement(
+ 'div',
+ { className: 'opblock-section operation-servers' },
+ s.createElement(
+ 'div',
+ { className: 'opblock-section-header' },
+ s.createElement(
+ 'div',
+ { className: 'tab-header' },
+ s.createElement('h4', { className: 'opblock-title' }, 'Servers')
+ )
+ ),
+ s.createElement(
+ 'div',
+ { className: 'opblock-description-wrapper' },
+ s.createElement(
+ 'h4',
+ { className: 'message' },
+ 'These ',
+ i,
+ '-level options override the global server options.'
+ ),
+ s.createElement(r, {
+ servers: o,
+ currentServer: this.getSelectedServer(),
+ setSelectedServer: this.setSelectedServer,
+ setServerVariableValue: this.setServerVariableValue,
+ getServerVariable: this.getServerVariable,
+ getEffectiveServerValue: this.getEffectiveServerValue,
+ })
+ )
+ );
+ }
+ }
+ },
+ 45327: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(90242);
+ const c = Function.prototype;
+ class u extends s.PureComponent {
+ constructor(e, t) {
+ super(e, t),
+ o()(this, 'applyDefaultValue', (e) => {
+ const { onChange: t, defaultValue: n } = e || this.props;
+ return this.setState({ value: n }), t(n);
+ }),
+ o()(this, 'onChange', (e) => {
+ this.props.onChange((0, l.Pz)(e));
+ }),
+ o()(this, 'onDomChange', (e) => {
+ const t = e.target.value;
+ this.setState({ value: t }, () => this.onChange(t));
+ }),
+ (this.state = { value: (0, l.Pz)(e.value) || e.defaultValue }),
+ e.onChange(e.value);
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ this.props.value !== e.value &&
+ e.value !== this.state.value &&
+ this.setState({ value: (0, l.Pz)(e.value) }),
+ !e.value && e.defaultValue && this.state.value && this.applyDefaultValue(e);
+ }
+ render() {
+ let { getComponent: e, errors: t } = this.props,
+ { value: n } = this.state,
+ r = t.size > 0;
+ const o = e('TextArea');
+ return s.createElement(
+ 'div',
+ { className: 'body-param' },
+ s.createElement(o, {
+ className: a()('body-param__text', { invalid: r }),
+ title: t.size ? t.join(', ') : '',
+ value: n,
+ onChange: this.onDomChange,
+ })
+ );
+ }
+ }
+ o()(u, 'defaultProps', { onChange: c, userHasEditedBody: !1 });
+ },
+ 42458: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => g, getDefaultRequestBodyValue: () => m });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(11882),
+ i = n.n(s),
+ a = n(58118),
+ l = n.n(a),
+ c = n(58309),
+ u = n.n(c),
+ p = n(67294),
+ h = (n(23930), n(43393)),
+ f = n(90242),
+ d = n(2518);
+ const m = (e, t, n, r) => {
+ const o = e.getIn(['content', t]),
+ s = o.get('schema').toJS(),
+ i = void 0 !== o.get('examples'),
+ a = o.get('example'),
+ l = i ? o.getIn(['examples', n, 'value']) : a,
+ c = r.getSampleSchema(s, t, { includeWriteOnly: !0 }, l);
+ return (0, f.Pz)(c);
+ },
+ g = (e) => {
+ let {
+ userHasEditedBody: t,
+ requestBody: n,
+ requestBodyValue: r,
+ requestBodyInclusionSetting: s,
+ requestBodyErrors: a,
+ getComponent: c,
+ getConfigs: g,
+ specSelectors: y,
+ fn: v,
+ contentType: b,
+ isExecute: w,
+ specPath: E,
+ onChange: x,
+ onChangeIncludeEmpty: S,
+ activeExamplesKey: _,
+ updateActiveExamplesKey: j,
+ setRetainRequestBodyValueFlag: O,
+ } = e;
+ const k = (e) => {
+ x(e.target.files[0]);
+ },
+ A = (e) => {
+ let t = { key: e, shouldDispatchInit: !1, defaultValue: !0 };
+ return 'no value' === s.get(e, 'no value') && (t.shouldDispatchInit = !0), t;
+ },
+ C = c('Markdown', !0),
+ P = c('modelExample'),
+ N = c('RequestBodyEditor'),
+ I = c('highlightCode'),
+ T = c('ExamplesSelectValueRetainer'),
+ R = c('Example'),
+ M = c('ParameterIncludeEmpty'),
+ { showCommonExtensions: D } = g(),
+ F = (n && n.get('description')) || null,
+ L = (n && n.get('content')) || new h.OrderedMap();
+ b = b || L.keySeq().first() || '';
+ const B = L.get(b, (0, h.OrderedMap)()),
+ $ = B.get('schema', (0, h.OrderedMap)()),
+ q = B.get('examples', null),
+ U =
+ null == q
+ ? void 0
+ : o()(q).call(q, (e, t) => {
+ var r;
+ const o = null === (r = e) || void 0 === r ? void 0 : r.get('value', null);
+ return o && (e = e.set('value', m(n, b, t, v), o)), e;
+ });
+ if (((a = h.List.isList(a) ? a : (0, h.List)()), !B.size)) return null;
+ const z = 'object' === B.getIn(['schema', 'type']),
+ V = 'binary' === B.getIn(['schema', 'format']),
+ W = 'base64' === B.getIn(['schema', 'format']);
+ if (
+ 'application/octet-stream' === b ||
+ 0 === i()(b).call(b, 'image/') ||
+ 0 === i()(b).call(b, 'audio/') ||
+ 0 === i()(b).call(b, 'video/') ||
+ V ||
+ W
+ ) {
+ const e = c('Input');
+ return w
+ ? p.createElement(e, { type: 'file', onChange: k })
+ : p.createElement(
+ 'i',
+ null,
+ 'Example values are not available for ',
+ p.createElement('code', null, b),
+ ' media types.'
+ );
+ }
+ if (
+ z &&
+ ('application/x-www-form-urlencoded' === b || 0 === i()(b).call(b, 'multipart/')) &&
+ $.get('properties', (0, h.OrderedMap)()).size > 0
+ ) {
+ var J;
+ const e = c('JsonSchemaForm'),
+ t = c('ParameterExt'),
+ n = $.get('properties', (0, h.OrderedMap)());
+ return (
+ (r = h.Map.isMap(r) ? r : (0, h.OrderedMap)()),
+ p.createElement(
+ 'div',
+ { className: 'table-container' },
+ F && p.createElement(C, { source: F }),
+ p.createElement(
+ 'table',
+ null,
+ p.createElement(
+ 'tbody',
+ null,
+ h.Map.isMap(n) &&
+ o()((J = n.entrySeq())).call(J, (n) => {
+ var i, d;
+ let [m, g] = n;
+ if (g.get('readOnly')) return;
+ let y = D ? (0, f.po)(g) : null;
+ const b = l()((i = $.get('required', (0, h.List)()))).call(i, m),
+ E = g.get('type'),
+ _ = g.get('format'),
+ j = g.get('description'),
+ O = r.getIn([m, 'value']),
+ k = r.getIn([m, 'errors']) || a,
+ P = s.get(m) || !1,
+ N =
+ g.has('default') ||
+ g.has('example') ||
+ g.hasIn(['items', 'example']) ||
+ g.hasIn(['items', 'default']),
+ I = g.has('enum') && (1 === g.get('enum').size || b),
+ T = N || I;
+ let R = '';
+ 'array' !== E || T || (R = []),
+ ('object' === E || T) && (R = v.getSampleSchema(g, !1, { includeWriteOnly: !0 })),
+ 'string' != typeof R && 'object' === E && (R = (0, f.Pz)(R)),
+ 'string' == typeof R && 'array' === E && (R = JSON.parse(R));
+ const F = 'string' === E && ('binary' === _ || 'base64' === _);
+ return p.createElement(
+ 'tr',
+ { key: m, className: 'parameters', 'data-property-name': m },
+ p.createElement(
+ 'td',
+ { className: 'parameters-col_name' },
+ p.createElement(
+ 'div',
+ { className: b ? 'parameter__name required' : 'parameter__name' },
+ m,
+ b ? p.createElement('span', null, ' *') : null
+ ),
+ p.createElement(
+ 'div',
+ { className: 'parameter__type' },
+ E,
+ _ && p.createElement('span', { className: 'prop-format' }, '($', _, ')'),
+ D && y.size
+ ? o()((d = y.entrySeq())).call(d, (e) => {
+ let [n, r] = e;
+ return p.createElement(t, { key: `${n}-${r}`, xKey: n, xVal: r });
+ })
+ : null
+ ),
+ p.createElement(
+ 'div',
+ { className: 'parameter__deprecated' },
+ g.get('deprecated') ? 'deprecated' : null
+ )
+ ),
+ p.createElement(
+ 'td',
+ { className: 'parameters-col_description' },
+ p.createElement(C, { source: j }),
+ w
+ ? p.createElement(
+ 'div',
+ null,
+ p.createElement(e, {
+ fn: v,
+ dispatchInitialValue: !F,
+ schema: g,
+ description: m,
+ getComponent: c,
+ value: void 0 === O ? R : O,
+ required: b,
+ errors: k,
+ onChange: (e) => {
+ x(e, [m]);
+ },
+ }),
+ b
+ ? null
+ : p.createElement(M, {
+ onChange: (e) => S(m, e),
+ isIncluded: P,
+ isIncludedOptions: A(m),
+ isDisabled: u()(O) ? 0 !== O.length : !(0, f.O2)(O),
+ })
+ )
+ : null
+ )
+ );
+ })
+ )
+ )
+ )
+ );
+ }
+ const K = m(n, b, _, v);
+ let H = null;
+ return (
+ (0, d.O)(K) && (H = 'json'),
+ p.createElement(
+ 'div',
+ null,
+ F && p.createElement(C, { source: F }),
+ U
+ ? p.createElement(T, {
+ userHasEditedBody: t,
+ examples: U,
+ currentKey: _,
+ currentUserInputValue: r,
+ onSelect: (e) => {
+ j(e);
+ },
+ updateValue: x,
+ defaultToFirstExample: !0,
+ getComponent: c,
+ setRetainRequestBodyValueFlag: O,
+ })
+ : null,
+ w
+ ? p.createElement(
+ 'div',
+ null,
+ p.createElement(N, { value: r, errors: a, defaultValue: K, onChange: x, getComponent: c })
+ )
+ : p.createElement(P, {
+ getComponent: c,
+ getConfigs: g,
+ specSelectors: y,
+ expandDepth: 1,
+ isExecute: w,
+ schema: B.get('schema'),
+ specPath: E.push('content', b),
+ example: p.createElement(I, {
+ className: 'body-param__example',
+ getConfigs: g,
+ language: H,
+ value: (0, f.Pz)(r) || K,
+ }),
+ includeWriteOnly: !0,
+ }),
+ U ? p.createElement(R, { example: U.get(_), getComponent: c, getConfigs: g }) : null
+ )
+ );
+ };
+ },
+ 9928: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ class o extends r.Component {
+ render() {
+ const { specSelectors: e, oas3Selectors: t, oas3Actions: n, getComponent: o } = this.props,
+ s = e.servers(),
+ i = o('Servers');
+ return s && s.size
+ ? r.createElement(
+ 'div',
+ null,
+ r.createElement('span', { className: 'servers-title' }, 'Servers'),
+ r.createElement(i, {
+ servers: s,
+ currentServer: t.selectedServer(),
+ setSelectedServer: n.setSelectedServer,
+ setServerVariableValue: n.setServerVariableValue,
+ getServerVariable: t.serverVariableValue,
+ getEffectiveServerValue: t.serverEffectiveValue,
+ })
+ )
+ : null;
+ }
+ }
+ },
+ 56617: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(61125),
+ o = n.n(r),
+ s = n(51679),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(67294),
+ u = n(43393);
+ n(23930);
+ class p extends c.Component {
+ constructor() {
+ super(...arguments),
+ o()(this, 'onServerChange', (e) => {
+ this.setServer(e.target.value);
+ }),
+ o()(this, 'onServerVariableValueChange', (e) => {
+ let { setServerVariableValue: t, currentServer: n } = this.props,
+ r = e.target.getAttribute('data-variable'),
+ o = e.target.value;
+ 'function' == typeof t && t({ server: n, key: r, val: o });
+ }),
+ o()(this, 'setServer', (e) => {
+ let { setSelectedServer: t } = this.props;
+ t(e);
+ });
+ }
+ componentDidMount() {
+ var e;
+ let { servers: t, currentServer: n } = this.props;
+ n || this.setServer(null === (e = t.first()) || void 0 === e ? void 0 : e.get('url'));
+ }
+ UNSAFE_componentWillReceiveProps(e) {
+ let { servers: t, setServerVariableValue: n, getServerVariable: r } = e;
+ if (this.props.currentServer !== e.currentServer || this.props.servers !== e.servers) {
+ var o;
+ let s = i()(t).call(t, (t) => t.get('url') === e.currentServer),
+ a =
+ i()((o = this.props.servers)).call(o, (e) => e.get('url') === this.props.currentServer) ||
+ (0, u.OrderedMap)();
+ if (!s) return this.setServer(t.first().get('url'));
+ let c = a.get('variables') || (0, u.OrderedMap)(),
+ p = (i()(c).call(c, (e) => e.get('default')) || (0, u.OrderedMap)()).get('default'),
+ h = s.get('variables') || (0, u.OrderedMap)(),
+ f = (i()(h).call(h, (e) => e.get('default')) || (0, u.OrderedMap)()).get('default');
+ l()(h).call(h, (t, o) => {
+ (r(e.currentServer, o) && p === f) ||
+ n({ server: e.currentServer, key: o, val: t.get('default') || '' });
+ });
+ }
+ }
+ render() {
+ var e, t;
+ let { servers: n, currentServer: r, getServerVariable: o, getEffectiveServerValue: s } = this.props,
+ a =
+ (i()(n).call(n, (e) => e.get('url') === r) || (0, u.OrderedMap)()).get('variables') ||
+ (0, u.OrderedMap)(),
+ p = 0 !== a.size;
+ return c.createElement(
+ 'div',
+ { className: 'servers' },
+ c.createElement(
+ 'label',
+ { htmlFor: 'servers' },
+ c.createElement(
+ 'select',
+ { onChange: this.onServerChange, value: r },
+ l()((e = n.valueSeq()))
+ .call(e, (e) =>
+ c.createElement(
+ 'option',
+ { value: e.get('url'), key: e.get('url') },
+ e.get('url'),
+ e.get('description') && ` - ${e.get('description')}`
+ )
+ )
+ .toArray()
+ )
+ ),
+ p
+ ? c.createElement(
+ 'div',
+ null,
+ c.createElement(
+ 'div',
+ { className: 'computed-url' },
+ 'Computed URL:',
+ c.createElement('code', null, s(r))
+ ),
+ c.createElement('h4', null, 'Server variables'),
+ c.createElement(
+ 'table',
+ null,
+ c.createElement(
+ 'tbody',
+ null,
+ l()((t = a.entrySeq())).call(t, (e) => {
+ var t;
+ let [n, s] = e;
+ return c.createElement(
+ 'tr',
+ { key: n },
+ c.createElement('td', null, n),
+ c.createElement(
+ 'td',
+ null,
+ s.get('enum')
+ ? c.createElement(
+ 'select',
+ { 'data-variable': n, onChange: this.onServerVariableValueChange },
+ l()((t = s.get('enum'))).call(t, (e) =>
+ c.createElement('option', { selected: e === o(r, n), key: e, value: e }, e)
+ )
+ )
+ : c.createElement('input', {
+ type: 'text',
+ value: o(r, n) || '',
+ onChange: this.onServerVariableValueChange,
+ 'data-variable': n,
+ })
+ )
+ );
+ })
+ )
+ )
+ )
+ : null
+ );
+ }
+ }
+ },
+ 7779: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ OAS30ComponentWrapFactory: () => c,
+ OAS3ComponentWrapFactory: () => l,
+ isOAS30: () => i,
+ isSwagger2: () => a,
+ });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ function i(e) {
+ const t = e.get('openapi');
+ return 'string' == typeof t && /^3\.0\.([0123])(?:-rc[012])?$/.test(t);
+ }
+ function a(e) {
+ const t = e.get('swagger');
+ return 'string' == typeof t && '2.0' === t;
+ }
+ function l(e) {
+ return (t, n) => (r) => {
+ var i;
+ return 'function' == typeof (null === (i = n.specSelectors) || void 0 === i ? void 0 : i.isOAS3)
+ ? n.specSelectors.isOAS3()
+ ? s.createElement(e, o()({}, r, n, { Ori: t }))
+ : s.createElement(t, r)
+ : (console.warn("OAS3 wrapper: couldn't get spec"), null);
+ };
+ }
+ function c(e) {
+ return (t, n) => (r) => {
+ var i;
+ return 'function' == typeof (null === (i = n.specSelectors) || void 0 === i ? void 0 : i.isOAS30)
+ ? n.specSelectors.isOAS30()
+ ? s.createElement(e, o()({}, r, n, { Ori: t }))
+ : s.createElement(t, r)
+ : (console.warn("OAS30 wrapper: couldn't get spec"), null);
+ };
+ }
+ },
+ 97451: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(92044),
+ o = n(73723),
+ s = n(91741),
+ i = n(76467),
+ a = n(37761),
+ l = n(67002),
+ c = n(5065),
+ u = n(62109);
+ function p() {
+ return {
+ components: i.default,
+ wrapComponents: a.default,
+ statePlugins: {
+ spec: { wrapSelectors: r, selectors: s },
+ auth: { wrapSelectors: o },
+ oas3: { actions: l, reducers: u.default, selectors: c },
+ },
+ };
+ }
+ },
+ 62109: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(8712),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(24282),
+ l = n.n(a),
+ c = n(43393),
+ u = n(67002);
+ const p = {
+ [u.UPDATE_SELECTED_SERVER]: (e, t) => {
+ let {
+ payload: { selectedServerUrl: n, namespace: r },
+ } = t;
+ const o = r ? [r, 'selectedServer'] : ['selectedServer'];
+ return e.setIn(o, n);
+ },
+ [u.UPDATE_REQUEST_BODY_VALUE]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r },
+ } = t,
+ [s, a] = r;
+ if (!c.Map.isMap(n)) return e.setIn(['requestData', s, a, 'bodyValue'], n);
+ let l,
+ u = e.getIn(['requestData', s, a, 'bodyValue']) || (0, c.Map)();
+ c.Map.isMap(u) || (u = (0, c.Map)());
+ const [...p] = o()(n).call(n);
+ return (
+ i()(p).call(p, (e) => {
+ let t = n.getIn([e]);
+ (u.has(e) && c.Map.isMap(t)) || (l = u.setIn([e, 'value'], t));
+ }),
+ e.setIn(['requestData', s, a, 'bodyValue'], l)
+ );
+ },
+ [u.UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r },
+ } = t,
+ [o, s] = r;
+ return e.setIn(['requestData', o, s, 'retainBodyValue'], n);
+ },
+ [u.UPDATE_REQUEST_BODY_INCLUSION]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r, name: o },
+ } = t,
+ [s, i] = r;
+ return e.setIn(['requestData', s, i, 'bodyInclusion', o], n);
+ },
+ [u.UPDATE_ACTIVE_EXAMPLES_MEMBER]: (e, t) => {
+ let {
+ payload: { name: n, pathMethod: r, contextType: o, contextName: s },
+ } = t,
+ [i, a] = r;
+ return e.setIn(['examples', i, a, o, s, 'activeExample'], n);
+ },
+ [u.UPDATE_REQUEST_CONTENT_TYPE]: (e, t) => {
+ let {
+ payload: { value: n, pathMethod: r },
+ } = t,
+ [o, s] = r;
+ return e.setIn(['requestData', o, s, 'requestContentType'], n);
+ },
+ [u.UPDATE_RESPONSE_CONTENT_TYPE]: (e, t) => {
+ let {
+ payload: { value: n, path: r, method: o },
+ } = t;
+ return e.setIn(['requestData', r, o, 'responseContentType'], n);
+ },
+ [u.UPDATE_SERVER_VARIABLE_VALUE]: (e, t) => {
+ let {
+ payload: { server: n, namespace: r, key: o, val: s },
+ } = t;
+ const i = r ? [r, 'serverVariableValues', n, o] : ['serverVariableValues', n, o];
+ return e.setIn(i, s);
+ },
+ [u.SET_REQUEST_BODY_VALIDATE_ERROR]: (e, t) => {
+ let {
+ payload: { path: n, method: r, validationErrors: o },
+ } = t,
+ s = [];
+ if ((s.push('Required field is not provided'), o.missingBodyValue))
+ return e.setIn(['requestData', n, r, 'errors'], (0, c.fromJS)(s));
+ if (o.missingRequiredKeys && o.missingRequiredKeys.length > 0) {
+ const { missingRequiredKeys: t } = o;
+ return e.updateIn(['requestData', n, r, 'bodyValue'], (0, c.fromJS)({}), (e) =>
+ l()(t).call(t, (e, t) => e.setIn([t, 'errors'], (0, c.fromJS)(s)), e)
+ );
+ }
+ return console.warn('unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR'), e;
+ },
+ [u.CLEAR_REQUEST_BODY_VALIDATE_ERROR]: (e, t) => {
+ let {
+ payload: { path: n, method: r },
+ } = t;
+ const s = e.getIn(['requestData', n, r, 'bodyValue']);
+ if (!c.Map.isMap(s)) return e.setIn(['requestData', n, r, 'errors'], (0, c.fromJS)([]));
+ const [...i] = o()(s).call(s);
+ return i
+ ? e.updateIn(['requestData', n, r, 'bodyValue'], (0, c.fromJS)({}), (e) =>
+ l()(i).call(i, (e, t) => e.setIn([t, 'errors'], (0, c.fromJS)([])), e)
+ )
+ : e;
+ },
+ [u.CLEAR_REQUEST_BODY_VALUE]: (e, t) => {
+ let {
+ payload: { pathMethod: n },
+ } = t,
+ [r, o] = n;
+ const s = e.getIn(['requestData', r, o, 'bodyValue']);
+ return s
+ ? c.Map.isMap(s)
+ ? e.setIn(['requestData', r, o, 'bodyValue'], (0, c.Map)())
+ : e.setIn(['requestData', r, o, 'bodyValue'], '')
+ : e;
+ },
+ };
+ },
+ 5065: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ activeExamplesMember: () => S,
+ hasUserEditedBody: () => w,
+ requestBodyErrors: () => x,
+ requestBodyInclusionSetting: () => E,
+ requestBodyValue: () => y,
+ requestContentType: () => _,
+ responseContentType: () => j,
+ selectDefaultRequestBodyValue: () => b,
+ selectedServer: () => g,
+ serverEffectiveValue: () => A,
+ serverVariableValue: () => O,
+ serverVariables: () => k,
+ shouldRetainRequestBodyValue: () => v,
+ validOperationMethods: () => I,
+ validateBeforeExecute: () => C,
+ validateShallowRequired: () => N,
+ });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(28222),
+ l = n.n(a),
+ c = n(11882),
+ u = n.n(c),
+ p = n(43393),
+ h = n(20573),
+ f = n(42458),
+ d = n(90242);
+ const m = (e) =>
+ function (t) {
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
+ r[o - 1] = arguments[o];
+ return (n) => {
+ if (n.getSystem().specSelectors.isOAS3()) {
+ const o = e(t, ...r);
+ return 'function' == typeof o ? o(n) : o;
+ }
+ return null;
+ };
+ };
+ const g = m((e, t) => {
+ const n = t ? [t, 'selectedServer'] : ['selectedServer'];
+ return e.getIn(n) || '';
+ }),
+ y = m((e, t, n) => e.getIn(['requestData', t, n, 'bodyValue']) || null),
+ v = m((e, t, n) => e.getIn(['requestData', t, n, 'retainBodyValue']) || !1),
+ b = (e, t, n) => (e) => {
+ const { oas3Selectors: r, specSelectors: o, fn: s } = e.getSystem();
+ if (o.isOAS3()) {
+ const e = r.requestContentType(t, n);
+ if (e)
+ return (0, f.getDefaultRequestBodyValue)(
+ o.specResolvedSubtree(['paths', t, n, 'requestBody']),
+ e,
+ r.activeExamplesMember(t, n, 'requestBody', 'requestBody'),
+ s
+ );
+ }
+ return null;
+ },
+ w = m((e, t, n) => (e) => {
+ const { oas3Selectors: r, specSelectors: o, fn: s } = e;
+ let i = !1;
+ const a = r.requestContentType(t, n);
+ let l = r.requestBodyValue(t, n);
+ const c = o.specResolvedSubtree(['paths', t, n, 'requestBody']);
+ if (!c) return !1;
+ if (
+ (p.Map.isMap(l) &&
+ (l = (0, d.Pz)(l.mapEntries((e) => (p.Map.isMap(e[1]) ? [e[0], e[1].get('value')] : e)).toJS())),
+ p.List.isList(l) && (l = (0, d.Pz)(l)),
+ a)
+ ) {
+ const e = (0, f.getDefaultRequestBodyValue)(
+ c,
+ a,
+ r.activeExamplesMember(t, n, 'requestBody', 'requestBody'),
+ s
+ );
+ i = !!l && l !== e;
+ }
+ return i;
+ }),
+ E = m((e, t, n) => e.getIn(['requestData', t, n, 'bodyInclusion']) || (0, p.Map)()),
+ x = m((e, t, n) => e.getIn(['requestData', t, n, 'errors']) || null),
+ S = m((e, t, n, r, o) => e.getIn(['examples', t, n, r, o, 'activeExample']) || null),
+ _ = m((e, t, n) => e.getIn(['requestData', t, n, 'requestContentType']) || null),
+ j = m((e, t, n) => e.getIn(['requestData', t, n, 'responseContentType']) || null),
+ O = m((e, t, n) => {
+ let r;
+ if ('string' != typeof t) {
+ const { server: e, namespace: o } = t;
+ r = o ? [o, 'serverVariableValues', e, n] : ['serverVariableValues', e, n];
+ } else {
+ r = ['serverVariableValues', t, n];
+ }
+ return e.getIn(r) || null;
+ }),
+ k = m((e, t) => {
+ let n;
+ if ('string' != typeof t) {
+ const { server: e, namespace: r } = t;
+ n = r ? [r, 'serverVariableValues', e] : ['serverVariableValues', e];
+ } else {
+ n = ['serverVariableValues', t];
+ }
+ return e.getIn(n) || (0, p.OrderedMap)();
+ }),
+ A = m((e, t) => {
+ var n, r;
+ if ('string' != typeof t) {
+ const { server: o, namespace: s } = t;
+ (r = o), (n = s ? e.getIn([s, 'serverVariableValues', r]) : e.getIn(['serverVariableValues', r]));
+ } else (r = t), (n = e.getIn(['serverVariableValues', r]));
+ n = n || (0, p.OrderedMap)();
+ let s = r;
+ return (
+ o()(n).call(n, (e, t) => {
+ s = s.replace(new RegExp(`{${t}}`, 'g'), e);
+ }),
+ s
+ );
+ }),
+ C =
+ ((P = (e, t) => ((e, t) => ((t = t || []), !!e.getIn(['requestData', ...t, 'bodyValue'])))(e, t)),
+ function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
+ return (e) => {
+ const n = e.getSystem().specSelectors.specJson();
+ let r = [...t][1] || [];
+ return !n.getIn(['paths', ...r, 'requestBody', 'required']) || P(...t);
+ };
+ });
+ var P;
+ const N = (e, t) => {
+ var n;
+ let { oas3RequiredRequestBodyContentType: r, oas3RequestContentType: o, oas3RequestBodyValue: s } = t,
+ a = [];
+ if (!p.Map.isMap(s)) return a;
+ let c = [];
+ return (
+ i()((n = l()(r.requestContentType))).call(n, (e) => {
+ if (e === o) {
+ let t = r.requestContentType[e];
+ i()(t).call(t, (e) => {
+ u()(c).call(c, e) < 0 && c.push(e);
+ });
+ }
+ }),
+ i()(c).call(c, (e) => {
+ s.getIn([e, 'value']) || a.push(e);
+ }),
+ a
+ );
+ },
+ I = (0, h.P1)(() => ['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace']);
+ },
+ 91741: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ callbacksOperations: () => E,
+ isOAS3: () => v,
+ isOAS30: () => y,
+ isSwagger2: () => g,
+ servers: () => w,
+ });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(24282),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(58118),
+ u = n.n(c),
+ p = n(39022),
+ h = n.n(p),
+ f = n(43393),
+ d = n(7779);
+ const m = (0, f.Map)(),
+ g = () => (e) => {
+ const t = e.getSystem().specSelectors.specJson();
+ return (0, d.isSwagger2)(t);
+ },
+ y = () => (e) => {
+ const t = e.getSystem().specSelectors.specJson();
+ return (0, d.isOAS30)(t);
+ },
+ v = () => (e) => e.getSystem().specSelectors.isOAS30();
+ function b(e) {
+ return function (t) {
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
+ r[o - 1] = arguments[o];
+ return (n) => {
+ if (n.specSelectors.isOAS3()) {
+ const o = e(t, ...r);
+ return 'function' == typeof o ? o(n) : o;
+ }
+ return null;
+ };
+ };
+ }
+ const w = b(() => (e) => e.specSelectors.specJson().get('servers', m)),
+ E = b((e, t) => {
+ let { callbacks: n, specPath: r } = t;
+ return (e) => {
+ var t;
+ const s = e.specSelectors.validOperationMethods();
+ return f.Map.isMap(n)
+ ? o()(
+ (t = i()(n)
+ .call(
+ n,
+ (e, t, n) =>
+ f.Map.isMap(t)
+ ? i()(t).call(
+ t,
+ (e, t, i) => {
+ var a, c;
+ if (!f.Map.isMap(t)) return e;
+ const p = o()(
+ (a = l()((c = t.entrySeq())).call(c, (e) => {
+ let [t] = e;
+ return u()(s).call(s, t);
+ }))
+ ).call(a, (e) => {
+ let [t, o] = e;
+ return {
+ operation: (0, f.Map)({ operation: o }),
+ method: t,
+ path: i,
+ callbackName: n,
+ specPath: h()(r).call(r, [n, i, t]),
+ };
+ });
+ return h()(e).call(e, p);
+ },
+ (0, f.List)()
+ )
+ : e,
+ (0, f.List)()
+ )
+ .groupBy((e) => e.callbackName))
+ )
+ .call(t, (e) => e.toArray())
+ .toObject()
+ : {};
+ };
+ });
+ },
+ 92044: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ basePath: () => d,
+ consumes: () => m,
+ definitions: () => c,
+ hasHost: () => u,
+ host: () => f,
+ produces: () => g,
+ schemes: () => y,
+ securityDefinitions: () => p,
+ validOperationMethods: () => h,
+ });
+ var r = n(20573),
+ o = n(33881),
+ s = n(43393);
+ const i = (0, s.Map)();
+ function a(e) {
+ return (t, n) =>
+ function () {
+ if (n.getSystem().specSelectors.isOAS3()) {
+ const t = e(...arguments);
+ return 'function' == typeof t ? t(n) : t;
+ }
+ return t(...arguments);
+ };
+ }
+ const l = a((0, r.P1)(() => null)),
+ c = a(() => (e) => {
+ const t = e.getSystem().specSelectors.specJson().getIn(['components', 'schemas']);
+ return s.Map.isMap(t) ? t : i;
+ }),
+ u = a(() => (e) => e.getSystem().specSelectors.specJson().hasIn(['servers', 0])),
+ p = a((0, r.P1)(o.specJsonWithResolvedSubtrees, (e) => e.getIn(['components', 'securitySchemes']) || null)),
+ h = (e, t) =>
+ function (n) {
+ if (t.specSelectors.isOAS3()) return t.oas3Selectors.validOperationMethods();
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
+ o[s - 1] = arguments[s];
+ return e(...o);
+ },
+ f = l,
+ d = l,
+ m = l,
+ g = l,
+ y = l;
+ },
+ 70356: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(7779).OAS3ComponentWrapFactory)((e) => {
+ let { Ori: t, ...n } = e;
+ const { schema: o, getComponent: s, errSelectors: i, authorized: a, onAuthChange: l, name: c } = n,
+ u = s('HttpAuth');
+ return 'http' === o.get('type')
+ ? r.createElement(u, {
+ key: c,
+ schema: o,
+ name: c,
+ errSelectors: i,
+ authorized: a,
+ getComponent: s,
+ onChange: l,
+ })
+ : r.createElement(t, n);
+ });
+ },
+ 37761: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(22460),
+ o = n(70356),
+ s = n(69487),
+ i = n(50058),
+ a = n(53499),
+ l = n(90287);
+ const c = {
+ Markdown: r.default,
+ AuthItem: o.default,
+ JsonSchema_string: l.default,
+ VersionStamp: s.default,
+ model: a.default,
+ onlineValidatorBadge: i.default,
+ };
+ },
+ 90287: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(7779).OAS3ComponentWrapFactory)((e) => {
+ let { Ori: t, ...n } = e;
+ const { schema: o, getComponent: s, errors: i, onChange: a } = n,
+ l = o && o.get ? o.get('format') : null,
+ c = o && o.get ? o.get('type') : null,
+ u = s('Input');
+ return c && 'string' === c && l && ('binary' === l || 'base64' === l)
+ ? r.createElement(u, {
+ type: 'file',
+ className: i.length ? 'invalid' : '',
+ title: i.length ? i : '',
+ onChange: (e) => {
+ a(e.target.files[0]);
+ },
+ disabled: t.isDisabled,
+ })
+ : r.createElement(t, n);
+ });
+ },
+ 22460: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { Markdown: () => h, default: () => f });
+ var r = n(81607),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(89927),
+ c = n(7779),
+ u = n(4599);
+ const p = new l._('commonmark');
+ p.block.ruler.enable(['table']), p.set({ linkTarget: '_blank' });
+ const h = (e) => {
+ let { source: t, className: n = '', getConfigs: r } = e;
+ if ('string' != typeof t) return null;
+ if (t) {
+ const { useUnsafeMarkdown: e } = r(),
+ i = p.render(t),
+ l = (0, u.s)(i, { useUnsafeMarkdown: e });
+ let c;
+ return (
+ 'string' == typeof l && (c = o()(l).call(l)),
+ s.createElement('div', {
+ dangerouslySetInnerHTML: { __html: c },
+ className: a()(n, 'renderedMarkdown'),
+ })
+ );
+ }
+ return null;
+ };
+ h.defaultProps = { getConfigs: () => ({ useUnsafeMarkdown: !1 }) };
+ const f = (0, c.OAS3ComponentWrapFactory)(h);
+ },
+ 53499: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294),
+ i = n(7779),
+ a = n(53795);
+ class l extends s.Component {
+ render() {
+ let { getConfigs: e, schema: t } = this.props,
+ n = ['model-box'],
+ r = null;
+ return (
+ !0 === t.get('deprecated') &&
+ (n.push('deprecated'),
+ (r = s.createElement('span', { className: 'model-deprecated-warning' }, 'Deprecated:'))),
+ s.createElement(
+ 'div',
+ { className: n.join(' ') },
+ r,
+ s.createElement(
+ a.Z,
+ o()({}, this.props, { getConfigs: e, depth: 1, expandDepth: this.props.expandDepth || 0 })
+ )
+ )
+ );
+ }
+ }
+ const c = (0, i.OAS3ComponentWrapFactory)(l);
+ },
+ 50058: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(7779),
+ o = n(5623);
+ const s = (0, r.OAS3ComponentWrapFactory)(o.Z);
+ },
+ 69487: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(7779).OAS30ComponentWrapFactory)((e) => {
+ const { Ori: t } = e;
+ return r.createElement(
+ 'span',
+ null,
+ r.createElement(t, e),
+ r.createElement(
+ 'small',
+ { className: 'version-stamp' },
+ r.createElement('pre', { className: 'version' }, 'OAS 3.0')
+ )
+ );
+ });
+ },
+ 92372: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(76986),
+ o = n.n(r),
+ s = n(25800),
+ i = n(84380);
+ const a = function (e) {
+ let { fn: t, getSystem: n } = e;
+ if (t.jsonSchema202012) {
+ const e = (0, s.makeIsExpandable)(t.jsonSchema202012.isExpandable, n);
+ o()(this.fn.jsonSchema202012, { isExpandable: e, getProperties: s.getProperties });
+ }
+ if ('function' == typeof t.sampleFromSchema && t.jsonSchema202012) {
+ const e = (0, i.wrapOAS31Fn)(
+ {
+ sampleFromSchema: t.jsonSchema202012.sampleFromSchema,
+ sampleFromSchemaGeneric: t.jsonSchema202012.sampleFromSchemaGeneric,
+ createXMLExample: t.jsonSchema202012.createXMLExample,
+ memoizedSampleFromSchema: t.jsonSchema202012.memoizedSampleFromSchema,
+ memoizedCreateXMLExample: t.jsonSchema202012.memoizedCreateXMLExample,
+ },
+ n()
+ );
+ o()(this.fn, e);
+ }
+ };
+ },
+ 89503: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.selectContactNameField(),
+ i = n.selectContactUrl(),
+ a = n.selectContactEmailField(),
+ l = t('Link');
+ return r.createElement(
+ 'div',
+ { className: 'info__contact' },
+ i &&
+ r.createElement(
+ 'div',
+ null,
+ r.createElement(l, { href: (0, o.Nm)(i), target: '_blank' }, s, ' - Website')
+ ),
+ a && r.createElement(l, { href: (0, o.Nm)(`mailto:${a}`) }, i ? `Send email to ${s}` : `Contact ${s}`)
+ );
+ };
+ },
+ 16133: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.version(),
+ i = n.url(),
+ a = n.basePath(),
+ l = n.host(),
+ c = n.selectInfoSummaryField(),
+ u = n.selectInfoDescriptionField(),
+ p = n.selectInfoTitleField(),
+ h = n.selectInfoTermsOfServiceUrl(),
+ f = n.selectExternalDocsUrl(),
+ d = n.selectExternalDocsDescriptionField(),
+ m = n.contact(),
+ g = n.license(),
+ y = t('Markdown', !0),
+ v = t('Link'),
+ b = t('VersionStamp'),
+ w = t('InfoUrl'),
+ E = t('InfoBasePath'),
+ x = t('License', !0),
+ S = t('Contact', !0),
+ _ = t('JsonSchemaDialect', !0);
+ return r.createElement(
+ 'div',
+ { className: 'info' },
+ r.createElement(
+ 'hgroup',
+ { className: 'main' },
+ r.createElement('h2', { className: 'title' }, p, s && r.createElement(b, { version: s })),
+ (l || a) && r.createElement(E, { host: l, basePath: a }),
+ i && r.createElement(w, { getComponent: t, url: i })
+ ),
+ c && r.createElement('p', { className: 'info__summary' }, c),
+ r.createElement('div', { className: 'info__description description' }, r.createElement(y, { source: u })),
+ h &&
+ r.createElement(
+ 'div',
+ { className: 'info__tos' },
+ r.createElement(v, { target: '_blank', href: (0, o.Nm)(h) }, 'Terms of service')
+ ),
+ m.size > 0 && r.createElement(S, null),
+ g.size > 0 && r.createElement(x, null),
+ f && r.createElement(v, { className: 'info__extdocs', target: '_blank', href: (0, o.Nm)(f) }, d || f),
+ r.createElement(_, null)
+ );
+ };
+ },
+ 92562: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.selectJsonSchemaDialectField(),
+ i = n.selectJsonSchemaDialectDefault(),
+ a = t('Link');
+ return r.createElement(
+ r.Fragment,
+ null,
+ s &&
+ s === i &&
+ r.createElement(
+ 'p',
+ { className: 'info__jsonschemadialect' },
+ 'JSON Schema dialect:',
+ ' ',
+ r.createElement(a, { target: '_blank', href: (0, o.Nm)(s) }, s)
+ ),
+ s &&
+ s !== i &&
+ r.createElement(
+ 'div',
+ { className: 'error-wrapper' },
+ r.createElement(
+ 'div',
+ { className: 'no-margin' },
+ r.createElement(
+ 'div',
+ { className: 'errors' },
+ r.createElement(
+ 'div',
+ { className: 'errors-wrapper' },
+ r.createElement('h4', { className: 'center' }, 'Warning'),
+ r.createElement(
+ 'p',
+ { className: 'message' },
+ r.createElement('strong', null, 'OpenAPI.jsonSchemaDialect'),
+ ' field contains a value different from the default value of',
+ ' ',
+ r.createElement(a, { target: '_blank', href: i }, i),
+ '. Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.'
+ )
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 51876: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294),
+ o = n(90242);
+ const s = (e) => {
+ let { getComponent: t, specSelectors: n } = e;
+ const s = n.selectLicenseNameField(),
+ i = n.selectLicenseUrl(),
+ a = t('Link');
+ return r.createElement(
+ 'div',
+ { className: 'info__license' },
+ i
+ ? r.createElement(
+ 'div',
+ { className: 'info__license__url' },
+ r.createElement(a, { target: '_blank', href: (0, o.Nm)(i) }, s)
+ )
+ : r.createElement('span', null, s)
+ );
+ };
+ },
+ 92718: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(58118),
+ o = n.n(r),
+ s = n(67294);
+ n(23930);
+ const i = (e) =>
+ 'string' == typeof e && o()(e).call(e, '#/components/schemas/')
+ ? ((e) => {
+ const t = e.replace(/~1/g, '/').replace(/~0/g, '~');
+ try {
+ return decodeURIComponent(t);
+ } catch {
+ return t;
+ }
+ })(e.replace(/^.*#\/components\/schemas\//, ''))
+ : null,
+ a = (0, s.forwardRef)((e, t) => {
+ let { schema: n, getComponent: r, onToggle: o } = e;
+ const a = r('JSONSchema202012'),
+ l = i(n.get('$$ref')),
+ c = (0, s.useCallback)(
+ (e, t) => {
+ o(l, t);
+ },
+ [l, o]
+ );
+ return s.createElement(a, { name: l, schema: n.toJS(), ref: t, onExpand: c });
+ });
+ a.defaultProps = {
+ name: '',
+ displayName: '',
+ isRef: !1,
+ required: !1,
+ expandDepth: 0,
+ depth: 1,
+ includeReadOnly: !1,
+ includeWriteOnly: !1,
+ onToggle: () => {},
+ };
+ const l = a;
+ },
+ 20263: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => h });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294),
+ u = n(94184),
+ p = n.n(u);
+ const h = (e) => {
+ var t;
+ let {
+ specActions: n,
+ specSelectors: r,
+ layoutSelectors: s,
+ layoutActions: a,
+ getComponent: u,
+ getConfigs: h,
+ } = e;
+ const f = r.selectSchemas(),
+ d = o()(f).length > 0,
+ m = ['components', 'schemas'],
+ { docExpansion: g, defaultModelsExpandDepth: y } = h(),
+ v = y > 0 && 'none' !== g,
+ b = s.isShown(m, v),
+ w = u('Collapse'),
+ E = u('JSONSchema202012');
+ (0, c.useEffect)(() => {
+ const e = b && y > 1,
+ t = null != r.specResolvedSubtree(m);
+ e && !t && n.requestResolvedSubtree(m);
+ }, [b, y]);
+ const x = (0, c.useCallback)(() => {
+ a.show(m, !b);
+ }, [b]),
+ S = (0, c.useCallback)((e) => {
+ null !== e && a.readyToScroll(m, e);
+ }, []),
+ _ = (e) => (t) => {
+ null !== t && a.readyToScroll([...m, e], t);
+ },
+ j = (e) => (t, o) => {
+ if (o) {
+ const t = [...m, e];
+ null != r.specResolvedSubtree(t) || n.requestResolvedSubtree([...m, e]);
+ }
+ };
+ return !d || y < 0
+ ? null
+ : c.createElement(
+ 'section',
+ { className: p()('models', { 'is-open': b }), ref: S },
+ c.createElement(
+ 'h4',
+ null,
+ c.createElement(
+ 'button',
+ { 'aria-expanded': b, className: 'models-control', onClick: x },
+ c.createElement('span', null, 'Schemas'),
+ c.createElement(
+ 'svg',
+ { width: '20', height: '20', 'aria-hidden': 'true', focusable: 'false' },
+ c.createElement('use', { xlinkHref: b ? '#large-arrow-up' : '#large-arrow-down' })
+ )
+ )
+ ),
+ c.createElement(
+ w,
+ { isOpened: b },
+ i()((t = l()(f))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(E, { key: t, ref: _(t), schema: n, name: t, onExpand: j(t) });
+ })
+ )
+ );
+ };
+ },
+ 33429: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { bypass: t, isSwagger2: n, isOAS3: o, isOAS31: s, alsoShow: i, children: a } = e;
+ return t
+ ? r.createElement('div', null, a)
+ : n && (o || s)
+ ? r.createElement(
+ 'div',
+ { className: 'version-pragma' },
+ i,
+ r.createElement(
+ 'div',
+ { className: 'version-pragma__message version-pragma__message--ambiguous' },
+ r.createElement(
+ 'div',
+ null,
+ r.createElement('h3', null, 'Unable to render this definition'),
+ r.createElement(
+ 'p',
+ null,
+ r.createElement('code', null, 'swagger'),
+ ' and ',
+ r.createElement('code', null, 'openapi'),
+ ' fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.'
+ ),
+ r.createElement(
+ 'p',
+ null,
+ 'Supported version fields are ',
+ r.createElement('code', null, 'swagger: "2.0"'),
+ ' and those that match ',
+ r.createElement('code', null, 'openapi: 3.x.y'),
+ ' (for example,',
+ ' ',
+ r.createElement('code', null, 'openapi: 3.1.0'),
+ ').'
+ )
+ )
+ )
+ )
+ : n || o || s
+ ? r.createElement('div', null, a)
+ : r.createElement(
+ 'div',
+ { className: 'version-pragma' },
+ i,
+ r.createElement(
+ 'div',
+ { className: 'version-pragma__message version-pragma__message--missing' },
+ r.createElement(
+ 'div',
+ null,
+ r.createElement('h3', null, 'Unable to render this definition'),
+ r.createElement('p', null, 'The provided definition does not specify a valid version field.'),
+ r.createElement(
+ 'p',
+ null,
+ 'Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ',
+ r.createElement('code', null, 'swagger: "2.0"'),
+ ' and those that match ',
+ r.createElement('code', null, 'openapi: 3.x.y'),
+ ' (for example,',
+ ' ',
+ r.createElement('code', null, 'openapi: 3.1.0'),
+ ').'
+ )
+ )
+ )
+ );
+ };
+ },
+ 39508: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(67294);
+ const l = (e) => {
+ let { specSelectors: t, getComponent: n } = e;
+ const r = t.selectWebhooksOperations(),
+ s = o()(r),
+ l = n('OperationContainer', !0);
+ return 0 === s.length
+ ? null
+ : a.createElement(
+ 'div',
+ { className: 'webhooks' },
+ a.createElement('h2', null, 'Webhooks'),
+ i()(s).call(s, (e) => {
+ var t;
+ return a.createElement(
+ 'div',
+ { key: `${e}-webhook` },
+ i()((t = r[e])).call(t, (t) =>
+ a.createElement(l, {
+ key: `${e}-${t.method}-webhook`,
+ op: t.operation,
+ tag: 'webhooks',
+ method: t.method,
+ path: e,
+ specPath: t.specPath,
+ allowTryItOut: !1,
+ })
+ )
+ );
+ })
+ );
+ };
+ },
+ 84380: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ createOnlyOAS31ComponentWrapper: () => g,
+ createOnlyOAS31Selector: () => f,
+ createOnlyOAS31SelectorWrapper: () => d,
+ createSystemSelector: () => m,
+ isOAS31: () => h,
+ wrapOAS31Fn: () => y,
+ });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(82865),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(2018),
+ u = n.n(c),
+ p = n(67294);
+ const h = (e) => {
+ const t = e.get('openapi');
+ return 'string' == typeof t && /^3\.1\.(?:[1-9]\d*|0)$/.test(t);
+ },
+ f = (e) =>
+ function (t) {
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
+ r[o - 1] = arguments[o];
+ return (n) => {
+ if (n.getSystem().specSelectors.isOAS31()) {
+ const o = e(t, ...r);
+ return 'function' == typeof o ? o(n) : o;
+ }
+ return null;
+ };
+ },
+ d = (e) => (t, n) =>
+ function (r) {
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), i = 1; i < o; i++)
+ s[i - 1] = arguments[i];
+ if (n.getSystem().specSelectors.isOAS31()) {
+ const o = e(r, ...s);
+ return 'function' == typeof o ? o(t, n) : o;
+ }
+ return t(...s);
+ },
+ m = (e) =>
+ function (t) {
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
+ r[o - 1] = arguments[o];
+ return (n) => {
+ const o = e(t, n, ...r);
+ return 'function' == typeof o ? o(n) : o;
+ };
+ },
+ g = (e) => (t, n) => (r) =>
+ n.specSelectors.isOAS31()
+ ? p.createElement(e, o()({}, r, { originalComponent: t, getSystem: n.getSystem }))
+ : p.createElement(t, r),
+ y = (e, t) => {
+ var n;
+ const { fn: r, specSelectors: o } = t;
+ return i()(
+ l()((n = u()(e))).call(n, (e) => {
+ let [t, n] = e;
+ const s = r[t];
+ return [
+ t,
+ function () {
+ return o.isOAS31() ? n(...arguments) : 'function' == typeof s ? s(...arguments) : void 0;
+ },
+ ];
+ })
+ );
+ };
+ },
+ 29806: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => P });
+ var r = n(39508),
+ o = n(51876),
+ s = n(89503),
+ i = n(16133),
+ a = n(92562),
+ l = n(33429),
+ c = n(92718),
+ u = n(20263),
+ p = n(6608),
+ h = n(77423),
+ f = n(284),
+ d = n(17042),
+ m = n(22914),
+ g = n(41434),
+ y = n(1122),
+ v = n(84380),
+ b = n(9305),
+ w = n(32884),
+ E = n(64280),
+ x = n(59450),
+ S = n(36617),
+ _ = n(19525),
+ j = n(25324),
+ O = n(80809),
+ k = n(14951),
+ A = n(77536),
+ C = n(92372);
+ const P = (e) => {
+ let { fn: t } = e;
+ const n = t.createSystemSelector || v.createSystemSelector,
+ P = t.createOnlyOAS31Selector || v.createOnlyOAS31Selector;
+ return {
+ afterLoad: C.default,
+ fn: {
+ isOAS31: v.isOAS31,
+ createSystemSelector: v.createSystemSelector,
+ createOnlyOAS31Selector: v.createOnlyOAS31Selector,
+ },
+ components: {
+ Webhooks: r.default,
+ JsonSchemaDialect: a.default,
+ OAS31Info: i.default,
+ OAS31License: o.default,
+ OAS31Contact: s.default,
+ OAS31VersionPragmaFilter: l.default,
+ OAS31Model: c.default,
+ OAS31Models: u.default,
+ JSONSchema202012KeywordExample: x.default,
+ JSONSchema202012KeywordXml: S.default,
+ JSONSchema202012KeywordDiscriminator: _.default,
+ JSONSchema202012KeywordExternalDocs: j.default,
+ },
+ wrapComponents: {
+ InfoContainer: f.default,
+ License: p.default,
+ Contact: h.default,
+ VersionPragmaFilter: g.default,
+ VersionStamp: y.default,
+ Model: d.default,
+ Models: m.default,
+ JSONSchema202012KeywordDescription: O.default,
+ JSONSchema202012KeywordDefault: k.default,
+ JSONSchema202012KeywordProperties: A.default,
+ },
+ statePlugins: {
+ spec: {
+ selectors: {
+ isOAS31: n(b.isOAS31),
+ license: b.license,
+ selectLicenseNameField: b.selectLicenseNameField,
+ selectLicenseUrlField: b.selectLicenseUrlField,
+ selectLicenseIdentifierField: P(b.selectLicenseIdentifierField),
+ selectLicenseUrl: n(b.selectLicenseUrl),
+ contact: b.contact,
+ selectContactNameField: b.selectContactNameField,
+ selectContactEmailField: b.selectContactEmailField,
+ selectContactUrlField: b.selectContactUrlField,
+ selectContactUrl: n(b.selectContactUrl),
+ selectInfoTitleField: b.selectInfoTitleField,
+ selectInfoSummaryField: P(b.selectInfoSummaryField),
+ selectInfoDescriptionField: b.selectInfoDescriptionField,
+ selectInfoTermsOfServiceField: b.selectInfoTermsOfServiceField,
+ selectInfoTermsOfServiceUrl: n(b.selectInfoTermsOfServiceUrl),
+ selectExternalDocsDescriptionField: b.selectExternalDocsDescriptionField,
+ selectExternalDocsUrlField: b.selectExternalDocsUrlField,
+ selectExternalDocsUrl: n(b.selectExternalDocsUrl),
+ webhooks: P(b.webhooks),
+ selectWebhooksOperations: P(n(b.selectWebhooksOperations)),
+ selectJsonSchemaDialectField: b.selectJsonSchemaDialectField,
+ selectJsonSchemaDialectDefault: b.selectJsonSchemaDialectDefault,
+ selectSchemas: n(b.selectSchemas),
+ },
+ wrapSelectors: { isOAS3: w.isOAS3, selectLicenseUrl: w.selectLicenseUrl },
+ },
+ oas31: { selectors: { selectLicenseUrl: P(n(E.selectLicenseUrl)) } },
+ },
+ };
+ };
+ },
+ 45989: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { schema: t, getSystem: n } = e;
+ if (null == t || !t.description) return null;
+ const { getComponent: o } = n(),
+ s = o('Markdown');
+ return r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--description' },
+ r.createElement(
+ 'div',
+ {
+ className:
+ 'json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary',
+ },
+ r.createElement(s, { source: t.description })
+ )
+ );
+ };
+ },
+ 19525: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(7749);
+ const c = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const r = (null == t ? void 0 : t.discriminator) || {},
+ { fn: i, getComponent: c } = n(),
+ { useIsExpandedDeeply: u, useComponent: p } = i.jsonSchema202012,
+ h = u(),
+ f = !!r.mapping,
+ [d, m] = (0, s.useState)(h),
+ [g, y] = (0, s.useState)(!1),
+ v = p('Accordion'),
+ b = p('ExpandDeepButton'),
+ w = c('JSONSchema202012DeepExpansionContext')(),
+ E = (0, s.useCallback)(() => {
+ m((e) => !e);
+ }, []),
+ x = (0, s.useCallback)((e, t) => {
+ m(t), y(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : s.createElement(
+ w.Provider,
+ { value: g },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator' },
+ f
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ v,
+ { expanded: d, onChange: E },
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'Discriminator'
+ )
+ ),
+ s.createElement(b, { expanded: d, onClick: x })
+ )
+ : s.createElement(
+ 'span',
+ {
+ className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'Discriminator'
+ ),
+ r.propertyName &&
+ s.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted' },
+ r.propertyName
+ ),
+ s.createElement(
+ 'strong',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'object'
+ ),
+ s.createElement(
+ 'ul',
+ {
+ className: a()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !d,
+ }),
+ },
+ d &&
+ s.createElement(
+ 'li',
+ { className: 'json-schema-2020-12-property' },
+ s.createElement(l.default, { discriminator: r })
+ )
+ )
+ )
+ );
+ };
+ },
+ 7749: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(2018),
+ l = n.n(a),
+ c = n(67294);
+ const u = (e) => {
+ var t;
+ let { discriminator: n } = e;
+ const r = (null == n ? void 0 : n.mapping) || {};
+ return 0 === o()(r).length
+ ? null
+ : i()((t = l()(r))).call(t, (e) => {
+ let [t, n] = e;
+ return c.createElement(
+ 'div',
+ { key: `${t}-${n}`, className: 'json-schema-2020-12-keyword' },
+ c.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ t
+ ),
+ c.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary' },
+ n
+ )
+ );
+ });
+ };
+ u.defaultProps = { mapping: void 0 };
+ const p = u;
+ },
+ 59450: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const { fn: o } = n(),
+ { hasKeyword: s, stringify: i } = o.jsonSchema202012.useFn();
+ return s(t, 'example')
+ ? r.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--example' },
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary' },
+ 'Example'
+ ),
+ r.createElement(
+ 'span',
+ { className: 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const' },
+ i(t.example)
+ )
+ )
+ : null;
+ };
+ },
+ 25324: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i),
+ l = n(90242);
+ const c = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const r = (null == t ? void 0 : t.externalDocs) || {},
+ { fn: i, getComponent: c } = n(),
+ { useIsExpandedDeeply: u, useComponent: p } = i.jsonSchema202012,
+ h = u(),
+ f = !(!r.description && !r.url),
+ [d, m] = (0, s.useState)(h),
+ [g, y] = (0, s.useState)(!1),
+ v = p('Accordion'),
+ b = p('ExpandDeepButton'),
+ w = c('JSONSchema202012KeywordDescription'),
+ E = c('Link'),
+ x = c('JSONSchema202012DeepExpansionContext')(),
+ S = (0, s.useCallback)(() => {
+ m((e) => !e);
+ }, []),
+ _ = (0, s.useCallback)((e, t) => {
+ m(t), y(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : s.createElement(
+ x.Provider,
+ { value: g },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs' },
+ f
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ v,
+ { expanded: d, onChange: S },
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'External documentation'
+ )
+ ),
+ s.createElement(b, { expanded: d, onClick: _ })
+ )
+ : s.createElement(
+ 'span',
+ {
+ className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'External documentation'
+ ),
+ s.createElement(
+ 'strong',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'object'
+ ),
+ s.createElement(
+ 'ul',
+ {
+ className: a()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !d,
+ }),
+ },
+ d &&
+ s.createElement(
+ s.Fragment,
+ null,
+ r.description &&
+ s.createElement(
+ 'li',
+ { className: 'json-schema-2020-12-property' },
+ s.createElement(w, { schema: r, getSystem: n })
+ ),
+ r.url &&
+ s.createElement(
+ 'li',
+ { className: 'json-schema-2020-12-property' },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword' },
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'url'
+ ),
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary',
+ },
+ s.createElement(E, { target: '_blank', href: (0, l.Nm)(r.url) }, r.url)
+ )
+ )
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 9023: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => g });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(2018),
+ u = n.n(c),
+ p = n(58118),
+ h = n.n(p),
+ f = n(67294),
+ d = n(94184),
+ m = n.n(d);
+ const g = (e) => {
+ var t;
+ let { schema: n, getSystem: r } = e;
+ const { fn: s } = r(),
+ { useComponent: a } = s.jsonSchema202012,
+ { getDependentRequired: c, getProperties: p } = s.jsonSchema202012.useFn(),
+ d = s.jsonSchema202012.useConfig(),
+ g = o()(null == n ? void 0 : n.required) ? n.required : [],
+ y = a('JSONSchema'),
+ v = p(n, d);
+ return 0 === i()(v).length
+ ? null
+ : f.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--properties' },
+ f.createElement(
+ 'ul',
+ null,
+ l()((t = u()(v))).call(t, (e) => {
+ let [t, r] = e;
+ const o = h()(g).call(g, t),
+ s = c(t, n);
+ return f.createElement(
+ 'li',
+ {
+ key: t,
+ className: m()('json-schema-2020-12-property', {
+ 'json-schema-2020-12-property--required': o,
+ }),
+ },
+ f.createElement(y, { name: t, schema: r, dependentRequired: s })
+ );
+ })
+ )
+ );
+ };
+ },
+ 36617: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(67294),
+ i = n(94184),
+ a = n.n(i);
+ const l = (e) => {
+ let { schema: t, getSystem: n } = e;
+ const r = (null == t ? void 0 : t.xml) || {},
+ { fn: i, getComponent: l } = n(),
+ { useIsExpandedDeeply: c, useComponent: u } = i.jsonSchema202012,
+ p = c(),
+ h = !!(r.name || r.namespace || r.prefix),
+ [f, d] = (0, s.useState)(p),
+ [m, g] = (0, s.useState)(!1),
+ y = u('Accordion'),
+ v = u('ExpandDeepButton'),
+ b = l('JSONSchema202012DeepExpansionContext')(),
+ w = (0, s.useCallback)(() => {
+ d((e) => !e);
+ }, []),
+ E = (0, s.useCallback)((e, t) => {
+ d(t), g(t);
+ }, []);
+ return 0 === o()(r).length
+ ? null
+ : s.createElement(
+ b.Provider,
+ { value: m },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword--xml' },
+ h
+ ? s.createElement(
+ s.Fragment,
+ null,
+ s.createElement(
+ y,
+ { expanded: f, onChange: w },
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'XML'
+ )
+ ),
+ s.createElement(v, { expanded: f, onClick: E })
+ )
+ : s.createElement(
+ 'span',
+ {
+ className: 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'XML'
+ ),
+ !0 === r.attribute &&
+ s.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted' },
+ 'attribute'
+ ),
+ !0 === r.wrapped &&
+ s.createElement(
+ 'span',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--muted' },
+ 'wrapped'
+ ),
+ s.createElement(
+ 'strong',
+ { className: 'json-schema-2020-12__attribute json-schema-2020-12__attribute--primary' },
+ 'object'
+ ),
+ s.createElement(
+ 'ul',
+ {
+ className: a()('json-schema-2020-12-keyword__children', {
+ 'json-schema-2020-12-keyword__children--collapsed': !f,
+ }),
+ },
+ f &&
+ s.createElement(
+ s.Fragment,
+ null,
+ r.name &&
+ s.createElement(
+ 'li',
+ { className: 'json-schema-2020-12-property' },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword json-schema-2020-12-keyword' },
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'name'
+ ),
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary',
+ },
+ r.name
+ )
+ )
+ ),
+ r.namespace &&
+ s.createElement(
+ 'li',
+ { className: 'json-schema-2020-12-property' },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword' },
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'namespace'
+ ),
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary',
+ },
+ r.namespace
+ )
+ )
+ ),
+ r.prefix &&
+ s.createElement(
+ 'li',
+ { className: 'json-schema-2020-12-property' },
+ s.createElement(
+ 'div',
+ { className: 'json-schema-2020-12-keyword' },
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary',
+ },
+ 'prefix'
+ ),
+ s.createElement(
+ 'span',
+ {
+ className:
+ 'json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary',
+ },
+ r.prefix
+ )
+ )
+ )
+ )
+ )
+ )
+ );
+ };
+ },
+ 25800: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { getProperties: () => u, makeIsExpandable: () => c });
+ var r = n(2018),
+ o = n.n(r),
+ s = n(14418),
+ i = n.n(s),
+ a = n(82865),
+ l = n.n(a);
+ const c = (e, t) => {
+ const { fn: n } = t();
+ if ('function' != typeof e) return null;
+ const { hasKeyword: r } = n.jsonSchema202012;
+ return (t) =>
+ e(t) ||
+ r(t, 'example') ||
+ (null == t ? void 0 : t.xml) ||
+ (null == t ? void 0 : t.discriminator) ||
+ (null == t ? void 0 : t.externalDocs);
+ },
+ u = (e, t) => {
+ let { includeReadOnly: n, includeWriteOnly: r } = t;
+ if (null == e || !e.properties) return {};
+ const s = o()(e.properties),
+ a = i()(s).call(s, (e) => {
+ let [, t] = e;
+ const o = !0 === (null == t ? void 0 : t.readOnly),
+ s = !0 === (null == t ? void 0 : t.writeOnly);
+ return (!o || n) && (!s || r);
+ });
+ return l()(a);
+ };
+ },
+ 14951: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { schema: t, getSystem: n, originalComponent: o } = e;
+ const { getComponent: s } = n(),
+ i = s('JSONSchema202012KeywordDiscriminator'),
+ a = s('JSONSchema202012KeywordXml'),
+ l = s('JSONSchema202012KeywordExample'),
+ c = s('JSONSchema202012KeywordExternalDocs');
+ return r.createElement(
+ r.Fragment,
+ null,
+ r.createElement(o, { schema: t }),
+ r.createElement(i, { schema: t, getSystem: n }),
+ r.createElement(a, { schema: t, getSystem: n }),
+ r.createElement(c, { schema: t, getSystem: n }),
+ r.createElement(l, { schema: t, getSystem: n })
+ );
+ });
+ },
+ 80809: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(45989);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)(r.default);
+ },
+ 77536: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(9023);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)(r.default);
+ },
+ 64280: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { selectLicenseUrl: () => s });
+ var r = n(20573),
+ o = n(63543);
+ const s = (0, r.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectLicenseUrlField(),
+ (e, t) => t.specSelectors.selectLicenseIdentifierField(),
+ (e, t, n, r) =>
+ n ? (0, o.mn)(n, e, { selectedServer: t }) : r ? `https://spdx.org/licenses/${r}.html` : void 0
+ );
+ },
+ 9305: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ contact: () => A,
+ isOAS31: () => w,
+ license: () => S,
+ selectContactEmailField: () => P,
+ selectContactNameField: () => C,
+ selectContactUrl: () => I,
+ selectContactUrlField: () => N,
+ selectExternalDocsDescriptionField: () => L,
+ selectExternalDocsUrl: () => $,
+ selectExternalDocsUrlField: () => B,
+ selectInfoDescriptionField: () => M,
+ selectInfoSummaryField: () => R,
+ selectInfoTermsOfServiceField: () => D,
+ selectInfoTermsOfServiceUrl: () => F,
+ selectInfoTitleField: () => T,
+ selectJsonSchemaDialectDefault: () => U,
+ selectJsonSchemaDialectField: () => q,
+ selectLicenseIdentifierField: () => k,
+ selectLicenseNameField: () => _,
+ selectLicenseUrl: () => O,
+ selectLicenseUrlField: () => j,
+ selectSchemas: () => z,
+ selectWebhooksOperations: () => x,
+ webhooks: () => E,
+ });
+ var r = n(97606),
+ o = n.n(r),
+ s = n(24282),
+ i = n.n(s),
+ a = n(14418),
+ l = n.n(a),
+ c = n(58118),
+ u = n.n(c),
+ p = n(39022),
+ h = n.n(p),
+ f = n(2018),
+ d = n.n(f),
+ m = n(43393),
+ g = n(20573),
+ y = n(63543),
+ v = n(84380);
+ const b = (0, m.Map)(),
+ w = (0, g.P1)((e, t) => t.specSelectors.specJson(), v.isOAS31),
+ E = () => (e) => e.specSelectors.specJson().get('webhooks', b),
+ x = (0, g.P1)(
+ (e, t) => t.specSelectors.webhooks(),
+ (e, t) => t.specSelectors.validOperationMethods(),
+ (e, t) => t.specSelectors.specResolvedSubtree(['webhooks']),
+ (e, t) => {
+ var n;
+ return m.Map.isMap(e)
+ ? o()(
+ (n = i()(e)
+ .call(
+ e,
+ (e, n, r) => {
+ var s, i;
+ if (!m.Map.isMap(n)) return e;
+ const a = o()(
+ (s = l()((i = n.entrySeq())).call(i, (e) => {
+ let [n] = e;
+ return u()(t).call(t, n);
+ }))
+ ).call(s, (e) => {
+ let [t, n] = e;
+ return {
+ operation: (0, m.Map)({ operation: n }),
+ method: t,
+ path: r,
+ specPath: (0, m.List)(['webhooks', r, t]),
+ };
+ });
+ return h()(e).call(e, a);
+ },
+ (0, m.List)()
+ )
+ .groupBy((e) => e.path))
+ )
+ .call(n, (e) => e.toArray())
+ .toObject()
+ : {};
+ }
+ ),
+ S = () => (e) => e.specSelectors.info().get('license', b),
+ _ = () => (e) => e.specSelectors.license().get('name', 'License'),
+ j = () => (e) => e.specSelectors.license().get('url'),
+ O = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectLicenseUrlField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ k = () => (e) => e.specSelectors.license().get('identifier'),
+ A = () => (e) => e.specSelectors.info().get('contact', b),
+ C = () => (e) => e.specSelectors.contact().get('name', 'the developer'),
+ P = () => (e) => e.specSelectors.contact().get('email'),
+ N = () => (e) => e.specSelectors.contact().get('url'),
+ I = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectContactUrlField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ T = () => (e) => e.specSelectors.info().get('title'),
+ R = () => (e) => e.specSelectors.info().get('summary'),
+ M = () => (e) => e.specSelectors.info().get('description'),
+ D = () => (e) => e.specSelectors.info().get('termsOfService'),
+ F = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectInfoTermsOfServiceField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ L = () => (e) => e.specSelectors.externalDocs().get('description'),
+ B = () => (e) => e.specSelectors.externalDocs().get('url'),
+ $ = (0, g.P1)(
+ (e, t) => t.specSelectors.url(),
+ (e, t) => t.oas3Selectors.selectedServer(),
+ (e, t) => t.specSelectors.selectExternalDocsUrlField(),
+ (e, t, n) => {
+ if (n) return (0, y.mn)(n, e, { selectedServer: t });
+ }
+ ),
+ q = () => (e) => e.specSelectors.specJson().get('jsonSchemaDialect'),
+ U = () => 'https://spec.openapis.org/oas/3.1/dialect/base',
+ z = (0, g.P1)(
+ (e, t) => t.specSelectors.definitions(),
+ (e, t) => t.specSelectors.specResolvedSubtree(['components', 'schemas']),
+ (e, t) => {
+ var n;
+ return m.Map.isMap(e)
+ ? m.Map.isMap(t)
+ ? i()((n = d()(e.toJS()))).call(
+ n,
+ (e, n) => {
+ let [r, o] = n;
+ const s = t.get(r);
+ return (e[r] = (null == s ? void 0 : s.toJS()) || o), e;
+ },
+ {}
+ )
+ : e.toJS()
+ : {};
+ }
+ );
+ },
+ 32884: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { isOAS3: () => o, selectLicenseUrl: () => s });
+ var r = n(84380);
+ const o = (e, t) =>
+ function (n) {
+ const r = t.specSelectors.isOAS31();
+ for (var o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), i = 1; i < o; i++)
+ s[i - 1] = arguments[i];
+ return r || e(...s);
+ },
+ s = (0, r.createOnlyOAS31SelectorWrapper)(() => (e, t) => t.oas31Selectors.selectLicenseUrl());
+ },
+ 77423: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const n = t().getComponent('OAS31Contact', !0);
+ return r.createElement(n, null);
+ });
+ },
+ 284: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const n = t().getComponent('OAS31Info', !0);
+ return r.createElement(n, null);
+ });
+ },
+ 6608: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const n = t().getComponent('OAS31License', !0);
+ return r.createElement(n, null);
+ });
+ },
+ 17042: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(67294),
+ o = n(84380),
+ s = n(25800);
+ const i = (0, o.createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t, ...n } = e;
+ const o = t(),
+ { getComponent: i, fn: a, getConfigs: l } = o,
+ c = l(),
+ u = i('OAS31Model'),
+ p = i('JSONSchema202012'),
+ h = i('JSONSchema202012Keyword$schema'),
+ f = i('JSONSchema202012Keyword$vocabulary'),
+ d = i('JSONSchema202012Keyword$id'),
+ m = i('JSONSchema202012Keyword$anchor'),
+ g = i('JSONSchema202012Keyword$dynamicAnchor'),
+ y = i('JSONSchema202012Keyword$ref'),
+ v = i('JSONSchema202012Keyword$dynamicRef'),
+ b = i('JSONSchema202012Keyword$defs'),
+ w = i('JSONSchema202012Keyword$comment'),
+ E = i('JSONSchema202012KeywordAllOf'),
+ x = i('JSONSchema202012KeywordAnyOf'),
+ S = i('JSONSchema202012KeywordOneOf'),
+ _ = i('JSONSchema202012KeywordNot'),
+ j = i('JSONSchema202012KeywordIf'),
+ O = i('JSONSchema202012KeywordThen'),
+ k = i('JSONSchema202012KeywordElse'),
+ A = i('JSONSchema202012KeywordDependentSchemas'),
+ C = i('JSONSchema202012KeywordPrefixItems'),
+ P = i('JSONSchema202012KeywordItems'),
+ N = i('JSONSchema202012KeywordContains'),
+ I = i('JSONSchema202012KeywordProperties'),
+ T = i('JSONSchema202012KeywordPatternProperties'),
+ R = i('JSONSchema202012KeywordAdditionalProperties'),
+ M = i('JSONSchema202012KeywordPropertyNames'),
+ D = i('JSONSchema202012KeywordUnevaluatedItems'),
+ F = i('JSONSchema202012KeywordUnevaluatedProperties'),
+ L = i('JSONSchema202012KeywordType'),
+ B = i('JSONSchema202012KeywordEnum'),
+ $ = i('JSONSchema202012KeywordConst'),
+ q = i('JSONSchema202012KeywordConstraint'),
+ U = i('JSONSchema202012KeywordDependentRequired'),
+ z = i('JSONSchema202012KeywordContentSchema'),
+ V = i('JSONSchema202012KeywordTitle'),
+ W = i('JSONSchema202012KeywordDescription'),
+ J = i('JSONSchema202012KeywordDefault'),
+ K = i('JSONSchema202012KeywordDeprecated'),
+ H = i('JSONSchema202012KeywordReadOnly'),
+ G = i('JSONSchema202012KeywordWriteOnly'),
+ Z = i('JSONSchema202012Accordion'),
+ Y = i('JSONSchema202012ExpandDeepButton'),
+ X = i('JSONSchema202012ChevronRightIcon'),
+ Q = i('withJSONSchema202012Context')(u, {
+ config: {
+ default$schema: 'https://spec.openapis.org/oas/3.1/dialect/base',
+ defaultExpandedLevels: c.defaultModelExpandDepth,
+ includeReadOnly: Boolean(n.includeReadOnly),
+ includeWriteOnly: Boolean(n.includeWriteOnly),
+ },
+ components: {
+ JSONSchema: p,
+ Keyword$schema: h,
+ Keyword$vocabulary: f,
+ Keyword$id: d,
+ Keyword$anchor: m,
+ Keyword$dynamicAnchor: g,
+ Keyword$ref: y,
+ Keyword$dynamicRef: v,
+ Keyword$defs: b,
+ Keyword$comment: w,
+ KeywordAllOf: E,
+ KeywordAnyOf: x,
+ KeywordOneOf: S,
+ KeywordNot: _,
+ KeywordIf: j,
+ KeywordThen: O,
+ KeywordElse: k,
+ KeywordDependentSchemas: A,
+ KeywordPrefixItems: C,
+ KeywordItems: P,
+ KeywordContains: N,
+ KeywordProperties: I,
+ KeywordPatternProperties: T,
+ KeywordAdditionalProperties: R,
+ KeywordPropertyNames: M,
+ KeywordUnevaluatedItems: D,
+ KeywordUnevaluatedProperties: F,
+ KeywordType: L,
+ KeywordEnum: B,
+ KeywordConst: $,
+ KeywordConstraint: q,
+ KeywordDependentRequired: U,
+ KeywordContentSchema: z,
+ KeywordTitle: V,
+ KeywordDescription: W,
+ KeywordDefault: J,
+ KeywordDeprecated: K,
+ KeywordReadOnly: H,
+ KeywordWriteOnly: G,
+ Accordion: Z,
+ ExpandDeepButton: Y,
+ ChevronRightIcon: X,
+ },
+ fn: {
+ upperFirst: a.upperFirst,
+ isExpandable: (0, s.makeIsExpandable)(a.jsonSchema202012.isExpandable, t),
+ getProperties: s.getProperties,
+ },
+ });
+ return r.createElement(Q, n);
+ });
+ },
+ 22914: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => s });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { getSystem: t } = e;
+ const { getComponent: n, fn: s, getConfigs: i } = t(),
+ a = i();
+ if (o.ModelsWithJSONSchemaContext) return r.createElement(o.ModelsWithJSONSchemaContext, null);
+ const l = n('OAS31Models', !0),
+ c = n('JSONSchema202012'),
+ u = n('JSONSchema202012Keyword$schema'),
+ p = n('JSONSchema202012Keyword$vocabulary'),
+ h = n('JSONSchema202012Keyword$id'),
+ f = n('JSONSchema202012Keyword$anchor'),
+ d = n('JSONSchema202012Keyword$dynamicAnchor'),
+ m = n('JSONSchema202012Keyword$ref'),
+ g = n('JSONSchema202012Keyword$dynamicRef'),
+ y = n('JSONSchema202012Keyword$defs'),
+ v = n('JSONSchema202012Keyword$comment'),
+ b = n('JSONSchema202012KeywordAllOf'),
+ w = n('JSONSchema202012KeywordAnyOf'),
+ E = n('JSONSchema202012KeywordOneOf'),
+ x = n('JSONSchema202012KeywordNot'),
+ S = n('JSONSchema202012KeywordIf'),
+ _ = n('JSONSchema202012KeywordThen'),
+ j = n('JSONSchema202012KeywordElse'),
+ O = n('JSONSchema202012KeywordDependentSchemas'),
+ k = n('JSONSchema202012KeywordPrefixItems'),
+ A = n('JSONSchema202012KeywordItems'),
+ C = n('JSONSchema202012KeywordContains'),
+ P = n('JSONSchema202012KeywordProperties'),
+ N = n('JSONSchema202012KeywordPatternProperties'),
+ I = n('JSONSchema202012KeywordAdditionalProperties'),
+ T = n('JSONSchema202012KeywordPropertyNames'),
+ R = n('JSONSchema202012KeywordUnevaluatedItems'),
+ M = n('JSONSchema202012KeywordUnevaluatedProperties'),
+ D = n('JSONSchema202012KeywordType'),
+ F = n('JSONSchema202012KeywordEnum'),
+ L = n('JSONSchema202012KeywordConst'),
+ B = n('JSONSchema202012KeywordConstraint'),
+ $ = n('JSONSchema202012KeywordDependentRequired'),
+ q = n('JSONSchema202012KeywordContentSchema'),
+ U = n('JSONSchema202012KeywordTitle'),
+ z = n('JSONSchema202012KeywordDescription'),
+ V = n('JSONSchema202012KeywordDefault'),
+ W = n('JSONSchema202012KeywordDeprecated'),
+ J = n('JSONSchema202012KeywordReadOnly'),
+ K = n('JSONSchema202012KeywordWriteOnly'),
+ H = n('JSONSchema202012Accordion'),
+ G = n('JSONSchema202012ExpandDeepButton'),
+ Z = n('JSONSchema202012ChevronRightIcon'),
+ Y = n('withJSONSchema202012Context');
+ return (
+ (o.ModelsWithJSONSchemaContext = Y(l, {
+ config: {
+ default$schema: 'https://spec.openapis.org/oas/3.1/dialect/base',
+ defaultExpandedLevels: a.defaultModelsExpandDepth - 1,
+ includeReadOnly: !0,
+ includeWriteOnly: !0,
+ },
+ components: {
+ JSONSchema: c,
+ Keyword$schema: u,
+ Keyword$vocabulary: p,
+ Keyword$id: h,
+ Keyword$anchor: f,
+ Keyword$dynamicAnchor: d,
+ Keyword$ref: m,
+ Keyword$dynamicRef: g,
+ Keyword$defs: y,
+ Keyword$comment: v,
+ KeywordAllOf: b,
+ KeywordAnyOf: w,
+ KeywordOneOf: E,
+ KeywordNot: x,
+ KeywordIf: S,
+ KeywordThen: _,
+ KeywordElse: j,
+ KeywordDependentSchemas: O,
+ KeywordPrefixItems: k,
+ KeywordItems: A,
+ KeywordContains: C,
+ KeywordProperties: P,
+ KeywordPatternProperties: N,
+ KeywordAdditionalProperties: I,
+ KeywordPropertyNames: T,
+ KeywordUnevaluatedItems: R,
+ KeywordUnevaluatedProperties: M,
+ KeywordType: D,
+ KeywordEnum: F,
+ KeywordConst: L,
+ KeywordConstraint: B,
+ KeywordDependentRequired: $,
+ KeywordContentSchema: q,
+ KeywordTitle: U,
+ KeywordDescription: z,
+ KeywordDefault: V,
+ KeywordDeprecated: W,
+ KeywordReadOnly: J,
+ KeywordWriteOnly: K,
+ Accordion: H,
+ ExpandDeepButton: G,
+ ChevronRightIcon: Z,
+ },
+ fn: {
+ upperFirst: s.upperFirst,
+ isExpandable: s.jsonSchema202012.isExpandable,
+ getProperties: s.jsonSchema202012.getProperties,
+ },
+ })),
+ r.createElement(o.ModelsWithJSONSchemaContext, null)
+ );
+ });
+ o.ModelsWithJSONSchemaContext = null;
+ const s = o;
+ },
+ 41434: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = (e, t) => (e) => {
+ const n = t.specSelectors.isOAS31(),
+ r = t.getComponent('OAS31VersionPragmaFilter');
+ return s.createElement(r, o()({ isOAS31: n }, e));
+ };
+ },
+ 1122: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (0, n(84380).createOnlyOAS31ComponentWrapper)((e) => {
+ let { originalComponent: t, ...n } = e;
+ return r.createElement(
+ 'span',
+ null,
+ r.createElement(t, n),
+ r.createElement(
+ 'small',
+ { className: 'version-stamp' },
+ r.createElement('pre', { className: 'version' }, 'OAS 3.1')
+ )
+ );
+ });
+ },
+ 28560: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(87198),
+ o = n.n(r);
+ let s = !1;
+ function i() {
+ return {
+ statePlugins: {
+ spec: {
+ wrapActions: {
+ updateSpec: (e) =>
+ function () {
+ return (s = !0), e(...arguments);
+ },
+ updateJsonSpec: (e, t) =>
+ function () {
+ const n = t.getConfigs().onComplete;
+ return s && 'function' == typeof n && (o()(n, 0), (s = !1)), e(...arguments);
+ },
+ },
+ },
+ },
+ };
+ }
+ },
+ 92135: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ requestSnippetGenerator_curl_bash: () => j,
+ requestSnippetGenerator_curl_cmd: () => O,
+ requestSnippetGenerator_curl_powershell: () => _,
+ });
+ var r = n(11882),
+ o = n.n(r),
+ s = n(81607),
+ i = n.n(s),
+ a = n(35627),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(12196),
+ h = n.n(p),
+ f = n(74386),
+ d = n.n(f),
+ m = n(58118),
+ g = n.n(m),
+ y = n(27504),
+ v = n(43393);
+ const b = (e) => {
+ var t;
+ const n = '_**[]';
+ return o()(e).call(e, n) < 0 ? e : i()((t = e.split(n)[0])).call(t);
+ },
+ w = (e) => ('-d ' === e || /^[_\/-]/g.test(e) ? e : "'" + e.replace(/'/g, "'\\''") + "'"),
+ E = (e) =>
+ '-d ' === (e = e.replace(/\^/g, '^^').replace(/\\"/g, '\\\\"').replace(/"/g, '""').replace(/\n/g, '^\n'))
+ ? e.replace(/-d /g, '-d ^\n')
+ : /^[_\/-]/g.test(e)
+ ? e
+ : '"' + e + '"',
+ x = (e) =>
+ '-d ' === e
+ ? e
+ : /\n/.test(e)
+ ? '@"\n' + e.replace(/"/g, '\\"').replace(/`/g, '``').replace(/\$/, '`$') + '\n"@'
+ : /^[_\/-]/g.test(e)
+ ? e
+ : "'" + e.replace(/"/g, '""').replace(/'/g, "''") + "'";
+ const S = function (e, t, n) {
+ let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : '',
+ o = !1,
+ s = '';
+ const i = function () {
+ for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r];
+ return (s += ' ' + u()(n).call(n, t).join(' '));
+ },
+ a = function () {
+ for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r];
+ return (s += u()(n).call(n, t).join(' '));
+ },
+ c = () => (s += ` ${n}`),
+ p = function () {
+ let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1;
+ return (s += h()(' ').call(' ', e));
+ };
+ let f = e.get('headers');
+ if (
+ ((s += 'curl' + r),
+ e.has('curlOptions') && i(...e.get('curlOptions')),
+ i('-X', e.get('method')),
+ c(),
+ p(),
+ a(`${e.get('url')}`),
+ f && f.size)
+ )
+ for (let t of d()((m = e.get('headers'))).call(m)) {
+ var m;
+ c(), p();
+ let [e, n] = t;
+ a('-H', `${e}: ${n}`), (o = o || (/^content-type$/i.test(e) && /^multipart\/form-data$/i.test(n)));
+ }
+ const w = e.get('body');
+ var E;
+ if (w)
+ if (o && g()((E = ['POST', 'PUT', 'PATCH'])).call(E, e.get('method')))
+ for (let [e, t] of w.entrySeq()) {
+ let n = b(e);
+ c(),
+ p(),
+ a('-F'),
+ t instanceof y.Z.File ? i(`${n}=@${t.name}${t.type ? `;type=${t.type}` : ''}`) : i(`${n}=${t}`);
+ }
+ else if (w instanceof y.Z.File) c(), p(), a(`--data-binary '@${w.name}'`);
+ else {
+ c(), p(), a('-d ');
+ let t = w;
+ v.Map.isMap(t)
+ ? a(
+ (function (e) {
+ let t = [];
+ for (let [n, r] of e.get('body').entrySeq()) {
+ let e = b(n);
+ r instanceof y.Z.File
+ ? t.push(
+ ` "${e}": {\n "name": "${r.name}"${
+ r.type ? `,\n "type": "${r.type}"` : ''
+ }\n }`
+ )
+ : t.push(` "${e}": ${l()(r, null, 2).replace(/(\r\n|\r|\n)/g, '\n ')}`);
+ }
+ return `{\n${t.join(',\n')}\n}`;
+ })(e)
+ )
+ : ('string' != typeof t && (t = l()(t)), a(t));
+ }
+ else w || 'POST' !== e.get('method') || (c(), p(), a("-d ''"));
+ return s;
+ },
+ _ = (e) => S(e, x, '`\n', '.exe'),
+ j = (e) => S(e, w, '\\\n'),
+ O = (e) => S(e, E, '^\n');
+ },
+ 86575: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(92135),
+ o = n(4669),
+ s = n(84206);
+ const i = () => ({
+ components: { RequestSnippets: s.default },
+ fn: r,
+ statePlugins: { requestSnippets: { selectors: o } },
+ });
+ },
+ 84206: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => w });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(25110),
+ i = n.n(s),
+ a = n(86),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(67294),
+ h = n(27361),
+ f = n.n(h),
+ d = n(23560),
+ m = n.n(d),
+ g = n(74855),
+ y = n(33424);
+ const v = {
+ cursor: 'pointer',
+ lineHeight: 1,
+ display: 'inline-flex',
+ backgroundColor: 'rgb(250, 250, 250)',
+ paddingBottom: '0',
+ paddingTop: '0',
+ border: '1px solid rgb(51, 51, 51)',
+ borderRadius: '4px 4px 0 0',
+ boxShadow: 'none',
+ borderBottom: 'none',
+ },
+ b = {
+ cursor: 'pointer',
+ lineHeight: 1,
+ display: 'inline-flex',
+ backgroundColor: 'rgb(51, 51, 51)',
+ boxShadow: 'none',
+ border: '1px solid rgb(51, 51, 51)',
+ paddingBottom: '0',
+ paddingTop: '0',
+ borderRadius: '4px 4px 0 0',
+ marginTop: '-5px',
+ marginRight: '-5px',
+ marginLeft: '-5px',
+ zIndex: '9999',
+ borderBottom: 'none',
+ },
+ w = (e) => {
+ var t, n;
+ let { request: r, requestSnippetsSelectors: s, getConfigs: a } = e;
+ const c = m()(a) ? a() : null,
+ h = !1 !== f()(c, 'syntaxHighlight') && f()(c, 'syntaxHighlight.activated', !0),
+ d = (0, p.useRef)(null),
+ [w, E] = (0, p.useState)(
+ null === (t = s.getSnippetGenerators()) || void 0 === t ? void 0 : t.keySeq().first()
+ ),
+ [x, S] = (0, p.useState)(null == s ? void 0 : s.getDefaultExpanded());
+ (0, p.useEffect)(() => {}, []),
+ (0, p.useEffect)(() => {
+ var e;
+ const t = o()((e = i()(d.current.childNodes))).call(e, (e) => {
+ var t;
+ return (
+ !!e.nodeType && (null === (t = e.classList) || void 0 === t ? void 0 : t.contains('curl-command'))
+ );
+ });
+ return (
+ l()(t).call(t, (e) => e.addEventListener('mousewheel', C, { passive: !1 })),
+ () => {
+ l()(t).call(t, (e) => e.removeEventListener('mousewheel', C));
+ }
+ );
+ }, [r]);
+ const _ = s.getSnippetGenerators(),
+ j = _.get(w),
+ O = j.get('fn')(r),
+ k = () => {
+ S(!x);
+ },
+ A = (e) => (e === w ? b : v),
+ C = (e) => {
+ const { target: t, deltaY: n } = e,
+ { scrollHeight: r, offsetHeight: o, scrollTop: s } = t;
+ r > o && ((0 === s && n < 0) || (o + s >= r && n > 0)) && e.preventDefault();
+ },
+ P = h
+ ? p.createElement(
+ y.d3,
+ {
+ language: j.get('syntax'),
+ className: 'curl microlight',
+ style: (0, y.C2)(f()(c, 'syntaxHighlight.theme')),
+ },
+ O
+ )
+ : p.createElement('textarea', { readOnly: !0, className: 'curl', value: O });
+ return p.createElement(
+ 'div',
+ { className: 'request-snippets', ref: d },
+ p.createElement(
+ 'div',
+ {
+ style: {
+ width: '100%',
+ display: 'flex',
+ justifyContent: 'flex-start',
+ alignItems: 'center',
+ marginBottom: '15px',
+ },
+ },
+ p.createElement('h4', { onClick: () => k(), style: { cursor: 'pointer' } }, 'Snippets'),
+ p.createElement(
+ 'button',
+ {
+ onClick: () => k(),
+ style: { border: 'none', background: 'none' },
+ title: x ? 'Collapse operation' : 'Expand operation',
+ },
+ p.createElement(
+ 'svg',
+ { className: 'arrow', width: '10', height: '10' },
+ p.createElement('use', {
+ href: x ? '#large-arrow-down' : '#large-arrow',
+ xlinkHref: x ? '#large-arrow-down' : '#large-arrow',
+ })
+ )
+ )
+ ),
+ x &&
+ p.createElement(
+ 'div',
+ { className: 'curl-command' },
+ p.createElement(
+ 'div',
+ { style: { paddingLeft: '15px', paddingRight: '10px', width: '100%', display: 'flex' } },
+ u()((n = _.entrySeq())).call(n, (e) => {
+ let [t, n] = e;
+ return p.createElement(
+ 'div',
+ {
+ style: A(t),
+ className: 'btn',
+ key: t,
+ onClick: () =>
+ ((e) => {
+ w !== e && E(e);
+ })(t),
+ },
+ p.createElement('h4', { style: t === w ? { color: 'white' } : {} }, n.get('title'))
+ );
+ })
+ ),
+ p.createElement(
+ 'div',
+ { className: 'copy-to-clipboard' },
+ p.createElement(g.CopyToClipboard, { text: O }, p.createElement('button', null))
+ ),
+ p.createElement('div', null, P)
+ )
+ );
+ };
+ },
+ 4669: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ getActiveLanguage: () => d,
+ getDefaultExpanded: () => m,
+ getGenerators: () => h,
+ getSnippetGenerators: () => f,
+ });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(58118),
+ i = n.n(s),
+ a = n(97606),
+ l = n.n(a),
+ c = n(20573),
+ u = n(43393);
+ const p = (e) => e || (0, u.Map)(),
+ h = (0, c.P1)(p, (e) => {
+ const t = e.get('languages'),
+ n = e.get('generators', (0, u.Map)());
+ return !t || t.isEmpty() ? n : o()(n).call(n, (e, n) => i()(t).call(t, n));
+ }),
+ f = (e) => (t) => {
+ var n, r;
+ let { fn: s } = t;
+ return o()(
+ (n = l()((r = h(e))).call(r, (e, t) => {
+ const n = ((e) => s[`requestSnippetGenerator_${e}`])(t);
+ return 'function' != typeof n ? null : e.set('fn', n);
+ }))
+ ).call(n, (e) => e);
+ },
+ d = (0, c.P1)(p, (e) => e.get('activeLanguage')),
+ m = (0, c.P1)(p, (e) => e.get('defaultExpanded'));
+ },
+ 36195: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { ErrorBoundary: () => i, default: () => a });
+ var r = n(67294),
+ o = n(56189),
+ s = n(29403);
+ class i extends r.Component {
+ static getDerivedStateFromError(e) {
+ return { hasError: !0, error: e };
+ }
+ constructor() {
+ super(...arguments), (this.state = { hasError: !1, error: null });
+ }
+ componentDidCatch(e, t) {
+ this.props.fn.componentDidCatch(e, t);
+ }
+ render() {
+ const { getComponent: e, targetName: t, children: n } = this.props;
+ if (this.state.hasError) {
+ const n = e('Fallback');
+ return r.createElement(n, { name: t });
+ }
+ return n;
+ }
+ }
+ i.defaultProps = {
+ targetName: 'this component',
+ getComponent: () => s.default,
+ fn: { componentDidCatch: o.componentDidCatch },
+ children: null,
+ };
+ const a = i;
+ },
+ 29403: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(67294);
+ const o = (e) => {
+ let { name: t } = e;
+ return r.createElement(
+ 'div',
+ { className: 'fallback' },
+ '😱 ',
+ r.createElement('i', null, 'Could not render ', 't' === t ? 'this component' : t, ', see the console.')
+ );
+ };
+ },
+ 56189: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { componentDidCatch: () => i, withErrorBoundary: () => a });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(67294);
+ const i = console.error,
+ a = (e) => (t) => {
+ const { getComponent: n, fn: r } = e(),
+ i = n('ErrorBoundary'),
+ a = r.getDisplayName(t);
+ class l extends s.Component {
+ render() {
+ return s.createElement(
+ i,
+ { targetName: a, getComponent: n, fn: r },
+ s.createElement(t, o()({}, this.props, this.context))
+ );
+ }
+ }
+ var c;
+ return (
+ (l.displayName = `WithErrorBoundary(${a})`),
+ (c = t).prototype &&
+ c.prototype.isReactComponent &&
+ (l.prototype.mapStateToProps = t.prototype.mapStateToProps),
+ l
+ );
+ };
+ },
+ 27621: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => u });
+ var r = n(47475),
+ o = n.n(r),
+ s = n(7287),
+ i = n.n(s),
+ a = n(36195),
+ l = n(29403),
+ c = n(56189);
+ const u = function () {
+ let { componentList: e = [], fullOverride: t = !1 } =
+ arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
+ return (n) => {
+ var r;
+ let { getSystem: s } = n;
+ const u = t
+ ? e
+ : [
+ 'App',
+ 'BaseLayout',
+ 'VersionPragmaFilter',
+ 'InfoContainer',
+ 'ServersContainer',
+ 'SchemesContainer',
+ 'AuthorizeBtnContainer',
+ 'FilterContainer',
+ 'Operations',
+ 'OperationContainer',
+ 'parameters',
+ 'responses',
+ 'OperationServers',
+ 'Models',
+ 'ModelWrapper',
+ ...e,
+ ],
+ p = i()(
+ u,
+ o()((r = Array(u.length))).call(r, (e, t) => {
+ let { fn: n } = t;
+ return n.withErrorBoundary(e);
+ })
+ );
+ return {
+ fn: { componentDidCatch: c.componentDidCatch, withErrorBoundary: (0, c.withErrorBoundary)(s) },
+ components: { ErrorBoundary: a.default, Fallback: l.default },
+ wrapComponents: p,
+ };
+ };
+ };
+ },
+ 72846: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => p });
+ var r = n(24282),
+ o = n.n(r),
+ s = n(35627),
+ i = n.n(s),
+ a = n(59704),
+ l = n.n(a);
+ const c = [{ when: /json/, shouldStringifyTypes: ['string'] }],
+ u = ['object'],
+ p = (e) => (t, n, r, s) => {
+ const { fn: a } = e(),
+ p = a.memoizedSampleFromSchema(t, n, s),
+ h = typeof p,
+ f = o()(c).call(c, (e, t) => (t.when.test(r) ? [...e, ...t.shouldStringifyTypes] : e), u);
+ return l()(f, (e) => e === h) ? i()(p, null, 2) : p;
+ };
+ },
+ 16132: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = (e) =>
+ function (t) {
+ var n, r;
+ let o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '',
+ s = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
+ i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : void 0;
+ const { fn: a } = e();
+ return (
+ 'function' == typeof (null === (n = t) || void 0 === n ? void 0 : n.toJS) && (t = t.toJS()),
+ 'function' == typeof (null === (r = i) || void 0 === r ? void 0 : r.toJS) && (i = i.toJS()),
+ /xml/.test(o)
+ ? a.getXmlSampleSchema(t, s, i)
+ : /(yaml|yml)/.test(o)
+ ? a.getYamlSampleSchema(t, s, o, i)
+ : a.getJsonSampleSchema(t, s, o, i)
+ );
+ };
+ },
+ 81169: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => r });
+ const r = (e) => (t, n, r) => {
+ const { fn: o } = e();
+ if ((t && !t.xml && (t.xml = {}), t && !t.xml.name)) {
+ if (!t.$$ref && (t.type || t.items || t.properties || t.additionalProperties))
+ return '\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e';
+ if (t.$$ref) {
+ let e = t.$$ref.match(/\S*\/(\S+)$/);
+ t.xml.name = e[1];
+ }
+ }
+ return o.memoizedCreateXMLExample(t, n, r);
+ };
+ },
+ 79431: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => i });
+ var r = n(24278),
+ o = n.n(r),
+ s = n(1272);
+ const i = (e) => (t, n, r, i) => {
+ const { fn: a } = e(),
+ l = a.getJsonSampleSchema(t, n, r, i);
+ let c;
+ try {
+ (c = s.ZP.dump(s.ZP.load(l), { lineWidth: -1 }, { schema: s.A8 })),
+ '\n' === c[c.length - 1] && (c = o()(c).call(c, 0, c.length - 1));
+ } catch (e) {
+ return console.error(e), 'error: could not generate yaml example';
+ }
+ return c.replace(/\t/g, ' ');
+ };
+ },
+ 29812: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ createXMLExample: () => q,
+ inferSchema: () => $,
+ memoizedCreateXMLExample: () => V,
+ memoizedSampleFromSchema: () => W,
+ sampleFromSchema: () => U,
+ sampleFromSchemaGeneric: () => B,
+ });
+ var r = n(11882),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(58309),
+ l = n.n(a),
+ c = n(58118),
+ u = n.n(c),
+ p = n(92039),
+ h = n.n(p),
+ f = n(24278),
+ d = n.n(f),
+ m = n(51679),
+ g = n.n(m),
+ y = n(39022),
+ v = n.n(y),
+ b = n(97606),
+ w = n.n(b),
+ E = n(35627),
+ x = n.n(E),
+ S = n(53479),
+ _ = n.n(S),
+ j = n(14419),
+ O = n.n(j),
+ k = n(41609),
+ A = n.n(k),
+ C = n(90242),
+ P = n(60314);
+ const N = {
+ string: (e) =>
+ e.pattern
+ ? ((e) => {
+ try {
+ return new (O())(e).gen();
+ } catch (e) {
+ return 'string';
+ }
+ })(e.pattern)
+ : 'string',
+ string_email: () => 'user@example.com',
+ 'string_date-time': () => new Date().toISOString(),
+ string_date: () => new Date().toISOString().substring(0, 10),
+ string_uuid: () => '3fa85f64-5717-4562-b3fc-2c963f66afa6',
+ string_hostname: () => 'example.com',
+ string_ipv4: () => '198.51.100.42',
+ string_ipv6: () => '2001:0db8:5b96:0000:0000:426f:8e17:642a',
+ number: () => 0,
+ number_float: () => 0,
+ integer: () => 0,
+ boolean: (e) => 'boolean' != typeof e.default || e.default,
+ },
+ I = (e) => {
+ e = (0, C.mz)(e);
+ let { type: t, format: n } = e,
+ r = N[`${t}_${n}`] || N[t];
+ return (0, C.Wl)(r) ? r(e) : 'Unknown Type: ' + e.type;
+ },
+ T = (e) => (0, C.XV)(e, '$$ref', (e) => 'string' == typeof e && o()(e).call(e, '#') > -1),
+ R = ['maxProperties', 'minProperties'],
+ M = ['minItems', 'maxItems'],
+ D = ['minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum'],
+ F = ['minLength', 'maxLength'],
+ L = function (e, t) {
+ var n;
+ let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ var s;
+ (i()((n = ['example', 'default', 'enum', 'xml', 'type', ...R, ...M, ...D, ...F])).call(n, (n) =>
+ ((n) => {
+ void 0 === t[n] && void 0 !== e[n] && (t[n] = e[n]);
+ })(n)
+ ),
+ void 0 !== e.required && l()(e.required)) &&
+ ((void 0 !== t.required && t.required.length) || (t.required = []),
+ i()((s = e.required)).call(s, (e) => {
+ var n;
+ u()((n = t.required)).call(n, e) || t.required.push(e);
+ }));
+ if (e.properties) {
+ t.properties || (t.properties = {});
+ let n = (0, C.mz)(e.properties);
+ for (let s in n) {
+ var a;
+ if (Object.prototype.hasOwnProperty.call(n, s))
+ if (!n[s] || !n[s].deprecated)
+ if (!n[s] || !n[s].readOnly || r.includeReadOnly)
+ if (!n[s] || !n[s].writeOnly || r.includeWriteOnly)
+ if (!t.properties[s])
+ (t.properties[s] = n[s]),
+ !e.required &&
+ l()(e.required) &&
+ -1 !== o()((a = e.required)).call(a, s) &&
+ (t.required ? t.required.push(s) : (t.required = [s]));
+ }
+ }
+ return e.items && (t.items || (t.items = {}), (t.items = L(e.items, t.items, r))), t;
+ },
+ B = function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
+ n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : void 0,
+ r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
+ e && (0, C.Wl)(e.toJS) && (e = e.toJS());
+ let s = void 0 !== n || (e && void 0 !== e.example) || (e && void 0 !== e.default);
+ const a = !s && e && e.oneOf && e.oneOf.length > 0,
+ c = !s && e && e.anyOf && e.anyOf.length > 0;
+ if (!s && (a || c)) {
+ const n = (0, C.mz)(a ? e.oneOf[0] : e.anyOf[0]);
+ if ((L(n, e, t), !e.xml && n.xml && (e.xml = n.xml), void 0 !== e.example && void 0 !== n.example))
+ s = !0;
+ else if (n.properties) {
+ e.properties || (e.properties = {});
+ let r = (0, C.mz)(n.properties);
+ for (let s in r) {
+ var p;
+ if (Object.prototype.hasOwnProperty.call(r, s))
+ if (!r[s] || !r[s].deprecated)
+ if (!r[s] || !r[s].readOnly || t.includeReadOnly)
+ if (!r[s] || !r[s].writeOnly || t.includeWriteOnly)
+ if (!e.properties[s])
+ (e.properties[s] = r[s]),
+ !n.required &&
+ l()(n.required) &&
+ -1 !== o()((p = n.required)).call(p, s) &&
+ (e.required ? e.required.push(s) : (e.required = [s]));
+ }
+ }
+ }
+ const f = {};
+ let { xml: m, type: y, example: b, properties: E, additionalProperties: x, items: S } = e || {},
+ { includeReadOnly: _, includeWriteOnly: j } = t;
+ m = m || {};
+ let O,
+ { name: k, prefix: P, namespace: N } = m,
+ F = {};
+ if (r && ((k = k || 'notagname'), (O = (P ? P + ':' : '') + k), N)) {
+ f[P ? 'xmlns:' + P : 'xmlns'] = N;
+ }
+ r && (F[O] = []);
+ const $ = (t) => h()(t).call(t, (t) => Object.prototype.hasOwnProperty.call(e, t));
+ e &&
+ !y &&
+ (E || x || $(R)
+ ? (y = 'object')
+ : S || $(M)
+ ? (y = 'array')
+ : $(D)
+ ? ((y = 'number'), (e.type = 'number'))
+ : s || e.enum || ((y = 'string'), (e.type = 'string')));
+ const q = (t) => {
+ var n, r, o, s, i;
+ null !== (null === (n = e) || void 0 === n ? void 0 : n.maxItems) &&
+ void 0 !== (null === (r = e) || void 0 === r ? void 0 : r.maxItems) &&
+ (t = d()(t).call(t, 0, null === (i = e) || void 0 === i ? void 0 : i.maxItems));
+ if (
+ null !== (null === (o = e) || void 0 === o ? void 0 : o.minItems) &&
+ void 0 !== (null === (s = e) || void 0 === s ? void 0 : s.minItems)
+ ) {
+ let n = 0;
+ for (; t.length < (null === (a = e) || void 0 === a ? void 0 : a.minItems); ) {
+ var a;
+ t.push(t[n++ % t.length]);
+ }
+ }
+ return t;
+ },
+ U = (0, C.mz)(E);
+ let z,
+ V = 0;
+ const W = () => e && null !== e.maxProperties && void 0 !== e.maxProperties && V >= e.maxProperties,
+ J = (t) =>
+ !e ||
+ null === e.maxProperties ||
+ void 0 === e.maxProperties ||
+ (!W() &&
+ (!((t) => {
+ var n;
+ return !(e && e.required && e.required.length && u()((n = e.required)).call(n, t));
+ })(t) ||
+ e.maxProperties -
+ V -
+ (() => {
+ if (!e || !e.required) return 0;
+ let t = 0;
+ var n, o;
+ return (
+ r
+ ? i()((n = e.required)).call(n, (e) => (t += void 0 === F[e] ? 0 : 1))
+ : i()((o = e.required)).call(o, (e) => {
+ var n;
+ return (t +=
+ void 0 ===
+ (null === (n = F[O]) || void 0 === n
+ ? void 0
+ : g()(n).call(n, (t) => void 0 !== t[e]))
+ ? 0
+ : 1);
+ }),
+ e.required.length - t
+ );
+ })() >
+ 0));
+ if (
+ ((z = r
+ ? function (n) {
+ let o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0;
+ if (e && U[n]) {
+ if (((U[n].xml = U[n].xml || {}), U[n].xml.attribute)) {
+ const e = l()(U[n].enum) ? U[n].enum[0] : void 0,
+ t = U[n].example,
+ r = U[n].default;
+ return void (f[U[n].xml.name || n] =
+ void 0 !== t ? t : void 0 !== r ? r : void 0 !== e ? e : I(U[n]));
+ }
+ U[n].xml.name = U[n].xml.name || n;
+ } else U[n] || !1 === x || (U[n] = { xml: { name: n } });
+ let s = B((e && U[n]) || void 0, t, o, r);
+ var i;
+ J(n) && (V++, l()(s) ? (F[O] = v()((i = F[O])).call(i, s)) : F[O].push(s));
+ }
+ : (n, o) => {
+ if (J(n)) {
+ if (
+ Object.prototype.hasOwnProperty.call(e, 'discriminator') &&
+ e.discriminator &&
+ Object.prototype.hasOwnProperty.call(e.discriminator, 'mapping') &&
+ e.discriminator.mapping &&
+ Object.prototype.hasOwnProperty.call(e, '$$ref') &&
+ e.$$ref &&
+ e.discriminator.propertyName === n
+ ) {
+ for (let t in e.discriminator.mapping)
+ if (-1 !== e.$$ref.search(e.discriminator.mapping[t])) {
+ F[n] = t;
+ break;
+ }
+ } else F[n] = B(U[n], t, o, r);
+ V++;
+ }
+ }),
+ s)
+ ) {
+ let o;
+ if (((o = T(void 0 !== n ? n : void 0 !== b ? b : e.default)), !r)) {
+ if ('number' == typeof o && 'string' === y) return `${o}`;
+ if ('string' != typeof o || 'string' === y) return o;
+ try {
+ return JSON.parse(o);
+ } catch (e) {
+ return o;
+ }
+ }
+ if ((e || (y = l()(o) ? 'array' : typeof o), 'array' === y)) {
+ if (!l()(o)) {
+ if ('string' == typeof o) return o;
+ o = [o];
+ }
+ const n = e ? e.items : void 0;
+ n && ((n.xml = n.xml || m || {}), (n.xml.name = n.xml.name || m.name));
+ let s = w()(o).call(o, (e) => B(n, t, e, r));
+ return (s = q(s)), m.wrapped ? ((F[O] = s), A()(f) || F[O].push({ _attr: f })) : (F = s), F;
+ }
+ if ('object' === y) {
+ if ('string' == typeof o) return o;
+ for (let t in o)
+ Object.prototype.hasOwnProperty.call(o, t) &&
+ ((e && U[t] && U[t].readOnly && !_) ||
+ (e && U[t] && U[t].writeOnly && !j) ||
+ (e && U[t] && U[t].xml && U[t].xml.attribute ? (f[U[t].xml.name || t] = o[t]) : z(t, o[t])));
+ return A()(f) || F[O].push({ _attr: f }), F;
+ }
+ return (F[O] = A()(f) ? o : [{ _attr: f }, o]), F;
+ }
+ if ('object' === y) {
+ for (let e in U)
+ Object.prototype.hasOwnProperty.call(U, e) &&
+ ((U[e] && U[e].deprecated) ||
+ (U[e] && U[e].readOnly && !_) ||
+ (U[e] && U[e].writeOnly && !j) ||
+ z(e));
+ if ((r && f && F[O].push({ _attr: f }), W())) return F;
+ if (!0 === x) r ? F[O].push({ additionalProp: 'Anything can be here' }) : (F.additionalProp1 = {}), V++;
+ else if (x) {
+ const n = (0, C.mz)(x),
+ o = B(n, t, void 0, r);
+ if (r && n.xml && n.xml.name && 'notagname' !== n.xml.name) F[O].push(o);
+ else {
+ const t =
+ null !== e.minProperties && void 0 !== e.minProperties && V < e.minProperties
+ ? e.minProperties - V
+ : 3;
+ for (let e = 1; e <= t; e++) {
+ if (W()) return F;
+ if (r) {
+ const t = {};
+ (t['additionalProp' + e] = o.notagname), F[O].push(t);
+ } else F['additionalProp' + e] = o;
+ V++;
+ }
+ }
+ }
+ return F;
+ }
+ if ('array' === y) {
+ if (!S) return;
+ let n;
+ var K, H;
+ if (r)
+ (S.xml = S.xml || (null === (K = e) || void 0 === K ? void 0 : K.xml) || {}),
+ (S.xml.name = S.xml.name || m.name);
+ if (l()(S.anyOf)) n = w()((H = S.anyOf)).call(H, (e) => B(L(S, e, t), t, void 0, r));
+ else if (l()(S.oneOf)) {
+ var G;
+ n = w()((G = S.oneOf)).call(G, (e) => B(L(S, e, t), t, void 0, r));
+ } else {
+ if (!(!r || (r && m.wrapped))) return B(S, t, void 0, r);
+ n = [B(S, t, void 0, r)];
+ }
+ return (n = q(n)), r && m.wrapped ? ((F[O] = n), A()(f) || F[O].push({ _attr: f }), F) : n;
+ }
+ let Z;
+ if (e && l()(e.enum)) Z = (0, C.AF)(e.enum)[0];
+ else {
+ if (!e) return;
+ if (((Z = I(e)), 'number' == typeof Z)) {
+ let t = e.minimum;
+ null != t && (e.exclusiveMinimum && t++, (Z = t));
+ let n = e.maximum;
+ null != n && (e.exclusiveMaximum && n--, (Z = n));
+ }
+ if (
+ 'string' == typeof Z &&
+ (null !== e.maxLength && void 0 !== e.maxLength && (Z = d()(Z).call(Z, 0, e.maxLength)),
+ null !== e.minLength && void 0 !== e.minLength)
+ ) {
+ let t = 0;
+ for (; Z.length < e.minLength; ) Z += Z[t++ % Z.length];
+ }
+ }
+ if ('file' !== y) return r ? ((F[O] = A()(f) ? Z : [{ _attr: f }, Z]), F) : Z;
+ },
+ $ = (e) => (e.schema && (e = e.schema), e.properties && (e.type = 'object'), e),
+ q = (e, t, n) => {
+ const r = B(e, t, n, !0);
+ if (r) return 'string' == typeof r ? r : _()(r, { declaration: !0, indent: '\t' });
+ },
+ U = (e, t, n) => B(e, t, n, !1),
+ z = (e, t, n) => [e, x()(t), x()(n)],
+ V = (0, P.Z)(q, z),
+ W = (0, P.Z)(U, z);
+ },
+ 8883: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => l });
+ var r = n(29812),
+ o = n(72846),
+ s = n(79431),
+ i = n(81169),
+ a = n(16132);
+ const l = (e) => {
+ let { getSystem: t } = e;
+ return {
+ fn: {
+ inferSchema: r.inferSchema,
+ sampleFromSchema: r.sampleFromSchema,
+ sampleFromSchemaGeneric: r.sampleFromSchemaGeneric,
+ createXMLExample: r.createXMLExample,
+ memoizedSampleFromSchema: r.memoizedSampleFromSchema,
+ memoizedCreateXMLExample: r.memoizedCreateXMLExample,
+ getJsonSampleSchema: (0, o.default)(t),
+ getYamlSampleSchema: (0, s.default)(t),
+ getXmlSampleSchema: (0, i.default)(t),
+ getSampleSchema: (0, a.default)(t),
+ },
+ };
+ };
+ },
+ 51228: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ CLEAR_REQUEST: () => ee,
+ CLEAR_RESPONSE: () => Q,
+ CLEAR_VALIDATE_PARAMS: () => te,
+ LOG_REQUEST: () => X,
+ SET_MUTATED_REQUEST: () => Y,
+ SET_REQUEST: () => Z,
+ SET_RESPONSE: () => G,
+ SET_SCHEME: () => se,
+ UPDATE_EMPTY_PARAM_INCLUSION: () => K,
+ UPDATE_JSON: () => W,
+ UPDATE_OPERATION_META_VALUE: () => ne,
+ UPDATE_PARAM: () => J,
+ UPDATE_RESOLVED: () => re,
+ UPDATE_RESOLVED_SUBTREE: () => oe,
+ UPDATE_SPEC: () => z,
+ UPDATE_URL: () => V,
+ VALIDATE_PARAMS: () => H,
+ changeConsumesValue: () => _e,
+ changeParam: () => ye,
+ changeParamByIdentity: () => ve,
+ changeProducesValue: () => je,
+ clearRequest: () => Te,
+ clearResponse: () => Ie,
+ clearValidateParams: () => Se,
+ execute: () => Ne,
+ executeRequest: () => Pe,
+ invalidateResolvedSubtreeCache: () => we,
+ logRequest: () => Ce,
+ parseToJson: () => pe,
+ requestResolvedSubtree: () => ge,
+ resolveSpec: () => fe,
+ setMutatedRequest: () => Ae,
+ setRequest: () => ke,
+ setResponse: () => Oe,
+ setScheme: () => Re,
+ updateEmptyParamInclusion: () => xe,
+ updateJsonSpec: () => ue,
+ updateResolved: () => le,
+ updateResolvedSubtree: () => be,
+ updateSpec: () => ae,
+ updateUrl: () => ce,
+ validateParams: () => Ee,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(96718),
+ l = n.n(a),
+ c = n(24282),
+ u = n.n(c),
+ p = n(2250),
+ h = n.n(p),
+ f = n(6226),
+ d = n.n(f),
+ m = n(14418),
+ g = n.n(m),
+ y = n(3665),
+ v = n.n(y),
+ b = n(11882),
+ w = n.n(b),
+ E = n(86),
+ x = n.n(E),
+ S = n(28222),
+ _ = n.n(S),
+ j = n(76986),
+ O = n.n(j),
+ k = n(70586),
+ A = n.n(k),
+ C = n(1272),
+ P = n(43393),
+ N = n(84564),
+ I = n.n(N),
+ T = n(7710),
+ R = n(47037),
+ M = n.n(R),
+ D = n(23279),
+ F = n.n(D),
+ L = n(36968),
+ B = n.n(L),
+ $ = n(72700),
+ q = n.n($),
+ U = n(90242);
+ const z = 'spec_update_spec',
+ V = 'spec_update_url',
+ W = 'spec_update_json',
+ J = 'spec_update_param',
+ K = 'spec_update_empty_param_inclusion',
+ H = 'spec_validate_param',
+ G = 'spec_set_response',
+ Z = 'spec_set_request',
+ Y = 'spec_set_mutated_request',
+ X = 'spec_log_request',
+ Q = 'spec_clear_response',
+ ee = 'spec_clear_request',
+ te = 'spec_clear_validate_param',
+ ne = 'spec_update_operation_meta_value',
+ re = 'spec_update_resolved',
+ oe = 'spec_update_resolved_subtree',
+ se = 'set_scheme',
+ ie = (e) => (M()(e) ? e : '');
+ function ae(e) {
+ const t = ie(e).replace(/\t/g, ' ');
+ if ('string' == typeof e) return { type: z, payload: t };
+ }
+ function le(e) {
+ return { type: re, payload: e };
+ }
+ function ce(e) {
+ return { type: V, payload: e };
+ }
+ function ue(e) {
+ return { type: W, payload: e };
+ }
+ const pe = (e) => (t) => {
+ let { specActions: n, specSelectors: r, errActions: o } = t,
+ { specStr: s } = r,
+ i = null;
+ try {
+ (e = e || s()), o.clear({ source: 'parser' }), (i = C.ZP.load(e, { schema: C.A8 }));
+ } catch (e) {
+ return (
+ console.error(e),
+ o.newSpecErr({
+ source: 'parser',
+ level: 'error',
+ message: e.reason,
+ line: e.mark && e.mark.line ? e.mark.line + 1 : void 0,
+ })
+ );
+ }
+ return i && 'object' == typeof i ? n.updateJsonSpec(i) : {};
+ };
+ let he = !1;
+ const fe = (e, t) => (n) => {
+ let {
+ specActions: r,
+ specSelectors: s,
+ errActions: a,
+ fn: { fetch: c, resolve: u, AST: p = {} },
+ getConfigs: h,
+ } = n;
+ he ||
+ (console.warn(
+ 'specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!'
+ ),
+ (he = !0));
+ const { modelPropertyMacro: f, parameterMacro: d, requestInterceptor: m, responseInterceptor: g } = h();
+ void 0 === e && (e = s.specJson()), void 0 === t && (t = s.url());
+ let y = p.getLineNumberForPath ? p.getLineNumberForPath : () => {},
+ v = s.specStr();
+ return u({
+ fetch: c,
+ spec: e,
+ baseDoc: t,
+ modelPropertyMacro: f,
+ parameterMacro: d,
+ requestInterceptor: m,
+ responseInterceptor: g,
+ }).then((e) => {
+ let { spec: t, errors: n } = e;
+ if ((a.clear({ type: 'thrown' }), o()(n) && n.length > 0)) {
+ let e = i()(n).call(
+ n,
+ (e) => (
+ console.error(e),
+ (e.line = e.fullPath ? y(v, e.fullPath) : null),
+ (e.path = e.fullPath ? e.fullPath.join('.') : null),
+ (e.level = 'error'),
+ (e.type = 'thrown'),
+ (e.source = 'resolver'),
+ l()(e, 'message', { enumerable: !0, value: e.message }),
+ e
+ )
+ );
+ a.newThrownErrBatch(e);
+ }
+ return r.updateResolved(t);
+ });
+ };
+ let de = [];
+ const me = F()(async () => {
+ const e = de.system;
+ if (!e) return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");
+ const {
+ errActions: t,
+ errSelectors: n,
+ fn: { resolveSubtree: r, fetch: s, AST: a = {} },
+ specSelectors: c,
+ specActions: p,
+ } = e;
+ if (!r)
+ return void console.error(
+ 'Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.'
+ );
+ let f = a.getLineNumberForPath ? a.getLineNumberForPath : () => {};
+ const m = c.specStr(),
+ {
+ modelPropertyMacro: y,
+ parameterMacro: b,
+ requestInterceptor: w,
+ responseInterceptor: E,
+ } = e.getConfigs();
+ try {
+ var x = await u()(de).call(
+ de,
+ async (e, a) => {
+ let { resultMap: u, specWithCurrentSubtrees: p } = await e;
+ const { errors: x, spec: S } = await r(p, a, {
+ baseDoc: c.url(),
+ modelPropertyMacro: y,
+ parameterMacro: b,
+ requestInterceptor: w,
+ responseInterceptor: E,
+ });
+ if (
+ (n.allErrors().size &&
+ t.clearBy((e) => {
+ var t;
+ return (
+ 'thrown' !== e.get('type') ||
+ 'resolver' !== e.get('source') ||
+ !h()((t = e.get('fullPath'))).call(t, (e, t) => e === a[t] || void 0 === a[t])
+ );
+ }),
+ o()(x) && x.length > 0)
+ ) {
+ let e = i()(x).call(
+ x,
+ (e) => (
+ (e.line = e.fullPath ? f(m, e.fullPath) : null),
+ (e.path = e.fullPath ? e.fullPath.join('.') : null),
+ (e.level = 'error'),
+ (e.type = 'thrown'),
+ (e.source = 'resolver'),
+ l()(e, 'message', { enumerable: !0, value: e.message }),
+ e
+ )
+ );
+ t.newThrownErrBatch(e);
+ }
+ var _, j;
+ S &&
+ c.isOAS3() &&
+ 'components' === a[0] &&
+ 'securitySchemes' === a[1] &&
+ (await d().all(
+ i()((_ = g()((j = v()(S))).call(j, (e) => 'openIdConnect' === e.type))).call(_, async (e) => {
+ const t = { url: e.openIdConnectUrl, requestInterceptor: w, responseInterceptor: E };
+ try {
+ const n = await s(t);
+ n instanceof Error || n.status >= 400
+ ? console.error(n.statusText + ' ' + t.url)
+ : (e.openIdConnectData = JSON.parse(n.text));
+ } catch (e) {
+ console.error(e);
+ }
+ })
+ ));
+ return B()(u, a, S), (p = q()(a, S, p)), { resultMap: u, specWithCurrentSubtrees: p };
+ },
+ d().resolve({
+ resultMap: (c.specResolvedSubtree([]) || (0, P.Map)()).toJS(),
+ specWithCurrentSubtrees: c.specJS(),
+ })
+ );
+ delete de.system, (de = []);
+ } catch (e) {
+ console.error(e);
+ }
+ p.updateResolvedSubtree([], x.resultMap);
+ }, 35),
+ ge = (e) => (t) => {
+ var n;
+ w()((n = i()(de).call(de, (e) => e.join('@@')))).call(n, e.join('@@')) > -1 ||
+ (de.push(e), (de.system = t), me());
+ };
+ function ye(e, t, n, r, o) {
+ return { type: J, payload: { path: e, value: r, paramName: t, paramIn: n, isXml: o } };
+ }
+ function ve(e, t, n, r) {
+ return { type: J, payload: { path: e, param: t, value: n, isXml: r } };
+ }
+ const be = (e, t) => ({ type: oe, payload: { path: e, value: t } }),
+ we = () => ({ type: oe, payload: { path: [], value: (0, P.Map)() } }),
+ Ee = (e, t) => ({ type: H, payload: { pathMethod: e, isOAS3: t } }),
+ xe = (e, t, n, r) => ({
+ type: K,
+ payload: { pathMethod: e, paramName: t, paramIn: n, includeEmptyValue: r },
+ });
+ function Se(e) {
+ return { type: te, payload: { pathMethod: e } };
+ }
+ function _e(e, t) {
+ return { type: ne, payload: { path: e, value: t, key: 'consumes_value' } };
+ }
+ function je(e, t) {
+ return { type: ne, payload: { path: e, value: t, key: 'produces_value' } };
+ }
+ const Oe = (e, t, n) => ({ payload: { path: e, method: t, res: n }, type: G }),
+ ke = (e, t, n) => ({ payload: { path: e, method: t, req: n }, type: Z }),
+ Ae = (e, t, n) => ({ payload: { path: e, method: t, req: n }, type: Y }),
+ Ce = (e) => ({ payload: e, type: X }),
+ Pe = (e) => (t) => {
+ let { fn: n, specActions: r, specSelectors: s, getConfigs: a, oas3Selectors: l } = t,
+ { pathName: c, method: u, operation: p } = e,
+ { requestInterceptor: h, responseInterceptor: f } = a(),
+ d = p.toJS();
+ var m, y;
+ p &&
+ p.get('parameters') &&
+ x()((m = g()((y = p.get('parameters'))).call(y, (e) => e && !0 === e.get('allowEmptyValue')))).call(
+ m,
+ (t) => {
+ if (s.parameterInclusionSettingFor([c, u], t.get('name'), t.get('in'))) {
+ e.parameters = e.parameters || {};
+ const n = (0, U.cz)(t, e.parameters);
+ (!n || (n && 0 === n.size)) && (e.parameters[t.get('name')] = '');
+ }
+ }
+ );
+ if (
+ ((e.contextUrl = I()(s.url()).toString()),
+ d && d.operationId ? (e.operationId = d.operationId) : d && c && u && (e.operationId = n.opId(d, c, u)),
+ s.isOAS3())
+ ) {
+ const t = `${c}:${u}`;
+ e.server = l.selectedServer(t) || l.selectedServer();
+ const n = l.serverVariables({ server: e.server, namespace: t }).toJS(),
+ r = l.serverVariables({ server: e.server }).toJS();
+ (e.serverVariables = _()(n).length ? n : r),
+ (e.requestContentType = l.requestContentType(c, u)),
+ (e.responseContentType = l.responseContentType(c, u) || '*/*');
+ const s = l.requestBodyValue(c, u),
+ a = l.requestBodyInclusionSetting(c, u);
+ var v;
+ if (s && s.toJS)
+ e.requestBody = g()((v = i()(s).call(s, (e) => (P.Map.isMap(e) ? e.get('value') : e))))
+ .call(v, (e, t) => (o()(e) ? 0 !== e.length : !(0, U.O2)(e)) || a.get(t))
+ .toJS();
+ else e.requestBody = s;
+ }
+ let b = O()({}, e);
+ (b = n.buildRequest(b)), r.setRequest(e.pathName, e.method, b);
+ (e.requestInterceptor = async (t) => {
+ let n = await h.apply(void 0, [t]),
+ o = O()({}, n);
+ return r.setMutatedRequest(e.pathName, e.method, o), n;
+ }),
+ (e.responseInterceptor = f);
+ const w = A()();
+ return n
+ .execute(e)
+ .then((t) => {
+ (t.duration = A()() - w), r.setResponse(e.pathName, e.method, t);
+ })
+ .catch((t) => {
+ 'Failed to fetch' === t.message &&
+ ((t.name = ''),
+ (t.message =
+ '**Failed to fetch.** \n**Possible Reasons:** \n - CORS \n - Network Failure \n - URL scheme must be "http" or "https" for CORS request.')),
+ r.setResponse(e.pathName, e.method, { error: !0, err: (0, T.serializeError)(t) });
+ });
+ },
+ Ne = function () {
+ let { path: e, method: t, ...n } = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
+ return (r) => {
+ let {
+ fn: { fetch: o },
+ specSelectors: s,
+ specActions: i,
+ } = r,
+ a = s.specJsonWithResolvedSubtrees().toJS(),
+ l = s.operationScheme(e, t),
+ { requestContentType: c, responseContentType: u } = s.contentTypeValues([e, t]).toJS(),
+ p = /xml/i.test(c),
+ h = s.parameterValues([e, t], p).toJS();
+ return i.executeRequest({
+ ...n,
+ fetch: o,
+ spec: a,
+ pathName: e,
+ method: t,
+ parameters: h,
+ requestContentType: c,
+ scheme: l,
+ responseContentType: u,
+ });
+ };
+ };
+ function Ie(e, t) {
+ return { type: Q, payload: { path: e, method: t } };
+ }
+ function Te(e, t) {
+ return { type: ee, payload: { path: e, method: t } };
+ }
+ function Re(e, t, n) {
+ return { type: se, payload: { scheme: e, path: t, method: n } };
+ }
+ },
+ 37038: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => a });
+ var r = n(20032),
+ o = n(51228),
+ s = n(33881),
+ i = n(77508);
+ function a() {
+ return { statePlugins: { spec: { wrapActions: i, reducers: r.default, actions: o, selectors: s } } };
+ }
+ },
+ 20032: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => d });
+ var r = n(24282),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(76986),
+ l = n.n(a),
+ c = n(43393),
+ u = n(90242),
+ p = n(27504),
+ h = n(33881),
+ f = n(51228);
+ const d = {
+ [f.UPDATE_SPEC]: (e, t) => ('string' == typeof t.payload ? e.set('spec', t.payload) : e),
+ [f.UPDATE_URL]: (e, t) => e.set('url', t.payload + ''),
+ [f.UPDATE_JSON]: (e, t) => e.set('json', (0, u.oG)(t.payload)),
+ [f.UPDATE_RESOLVED]: (e, t) => e.setIn(['resolved'], (0, u.oG)(t.payload)),
+ [f.UPDATE_RESOLVED_SUBTREE]: (e, t) => {
+ const { value: n, path: r } = t.payload;
+ return e.setIn(['resolvedSubtrees', ...r], (0, u.oG)(n));
+ },
+ [f.UPDATE_PARAM]: (e, t) => {
+ let { payload: n } = t,
+ { path: r, paramName: o, paramIn: s, param: i, value: a, isXml: l } = n,
+ c = i ? (0, u.V9)(i) : `${s}.${o}`;
+ const p = l ? 'value_xml' : 'value';
+ return e.setIn(['meta', 'paths', ...r, 'parameters', c, p], a);
+ },
+ [f.UPDATE_EMPTY_PARAM_INCLUSION]: (e, t) => {
+ let { payload: n } = t,
+ { pathMethod: r, paramName: o, paramIn: s, includeEmptyValue: i } = n;
+ if (!o || !s)
+ return console.warn('Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.'), e;
+ const a = `${s}.${o}`;
+ return e.setIn(['meta', 'paths', ...r, 'parameter_inclusions', a], i);
+ },
+ [f.VALIDATE_PARAMS]: (e, t) => {
+ let {
+ payload: { pathMethod: n, isOAS3: r },
+ } = t;
+ const s = (0, h.specJsonWithResolvedSubtrees)(e).getIn(['paths', ...n]),
+ i = (0, h.parameterValues)(e, n).toJS();
+ return e.updateIn(['meta', 'paths', ...n, 'parameters'], (0, c.fromJS)({}), (t) => {
+ var a;
+ return o()((a = s.get('parameters', (0, c.List)()))).call(
+ a,
+ (t, o) => {
+ const s = (0, u.cz)(o, i),
+ a = (0, h.parameterInclusionSettingFor)(e, n, o.get('name'), o.get('in')),
+ l = (0, u.Ik)(o, s, { bypassRequiredCheck: a, isOAS3: r });
+ return t.setIn([(0, u.V9)(o), 'errors'], (0, c.fromJS)(l));
+ },
+ t
+ );
+ });
+ },
+ [f.CLEAR_VALIDATE_PARAMS]: (e, t) => {
+ let {
+ payload: { pathMethod: n },
+ } = t;
+ return e.updateIn(['meta', 'paths', ...n, 'parameters'], (0, c.fromJS)([]), (e) =>
+ i()(e).call(e, (e) => e.set('errors', (0, c.fromJS)([])))
+ );
+ },
+ [f.SET_RESPONSE]: (e, t) => {
+ let n,
+ {
+ payload: { res: r, path: o, method: s },
+ } = t;
+ (n = r.error
+ ? l()(
+ { error: !0, name: r.err.name, message: r.err.message, statusCode: r.err.statusCode },
+ r.err.response
+ )
+ : r),
+ (n.headers = n.headers || {});
+ let i = e.setIn(['responses', o, s], (0, u.oG)(n));
+ return p.Z.Blob && r.data instanceof p.Z.Blob && (i = i.setIn(['responses', o, s, 'text'], r.data)), i;
+ },
+ [f.SET_REQUEST]: (e, t) => {
+ let {
+ payload: { req: n, path: r, method: o },
+ } = t;
+ return e.setIn(['requests', r, o], (0, u.oG)(n));
+ },
+ [f.SET_MUTATED_REQUEST]: (e, t) => {
+ let {
+ payload: { req: n, path: r, method: o },
+ } = t;
+ return e.setIn(['mutatedRequests', r, o], (0, u.oG)(n));
+ },
+ [f.UPDATE_OPERATION_META_VALUE]: (e, t) => {
+ let {
+ payload: { path: n, value: r, key: o },
+ } = t,
+ s = ['paths', ...n],
+ i = ['meta', 'paths', ...n];
+ return e.getIn(['json', ...s]) || e.getIn(['resolved', ...s]) || e.getIn(['resolvedSubtrees', ...s])
+ ? e.setIn([...i, o], (0, c.fromJS)(r))
+ : e;
+ },
+ [f.CLEAR_RESPONSE]: (e, t) => {
+ let {
+ payload: { path: n, method: r },
+ } = t;
+ return e.deleteIn(['responses', n, r]);
+ },
+ [f.CLEAR_REQUEST]: (e, t) => {
+ let {
+ payload: { path: n, method: r },
+ } = t;
+ return e.deleteIn(['requests', n, r]);
+ },
+ [f.SET_SCHEME]: (e, t) => {
+ let {
+ payload: { scheme: n, path: r, method: o },
+ } = t;
+ return r && o ? e.setIn(['scheme', r, o], n) : r || o ? void 0 : e.setIn(['scheme', '_defaultScheme'], n);
+ },
+ };
+ },
+ 33881: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, {
+ allowTryItOutFor: () => fe,
+ basePath: () => Q,
+ canExecuteScheme: () => Ae,
+ consumes: () => K,
+ consumesOptionsFor: () => Oe,
+ contentTypeValues: () => Se,
+ currentProducesFor: () => _e,
+ definitions: () => X,
+ externalDocs: () => q,
+ findDefinition: () => Y,
+ getOAS3RequiredRequestBodyContentType: () => Ne,
+ getParameter: () => ve,
+ hasHost: () => be,
+ host: () => ee,
+ info: () => $,
+ isMediaTypeSchemaPropertiesEqual: () => Ie,
+ isOAS3: () => B,
+ lastError: () => A,
+ mutatedRequestFor: () => he,
+ mutatedRequests: () => ce,
+ operationScheme: () => ke,
+ operationWithMeta: () => ye,
+ operations: () => J,
+ operationsWithRootInherited: () => ne,
+ operationsWithTags: () => se,
+ parameterInclusionSettingFor: () => me,
+ parameterValues: () => we,
+ parameterWithMeta: () => ge,
+ parameterWithMetaByIdentity: () => de,
+ parametersIncludeIn: () => Ee,
+ parametersIncludeType: () => xe,
+ paths: () => V,
+ produces: () => H,
+ producesOptionsFor: () => je,
+ requestFor: () => pe,
+ requests: () => le,
+ responseFor: () => ue,
+ responses: () => ae,
+ schemes: () => te,
+ security: () => G,
+ securityDefinitions: () => Z,
+ semver: () => z,
+ spec: () => L,
+ specJS: () => T,
+ specJson: () => I,
+ specJsonWithResolvedSubtrees: () => F,
+ specResolved: () => R,
+ specResolvedSubtree: () => M,
+ specSource: () => N,
+ specStr: () => P,
+ tagDetails: () => oe,
+ taggedOperations: () => ie,
+ tags: () => re,
+ url: () => C,
+ validOperationMethods: () => W,
+ validateBeforeExecute: () => Pe,
+ validationErrors: () => Ce,
+ version: () => U,
+ });
+ var r = n(24278),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(11882),
+ l = n.n(a),
+ c = n(97606),
+ u = n.n(c),
+ p = n(14418),
+ h = n.n(p),
+ f = n(51679),
+ d = n.n(f),
+ m = n(24282),
+ g = n.n(m),
+ y = n(2578),
+ v = n.n(y),
+ b = n(92039),
+ w = n.n(b),
+ E = n(58309),
+ x = n.n(E),
+ S = n(20573),
+ _ = n(90242),
+ j = n(43393);
+ const O = ['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace'],
+ k = (e) => e || (0, j.Map)(),
+ A = (0, S.P1)(k, (e) => e.get('lastError')),
+ C = (0, S.P1)(k, (e) => e.get('url')),
+ P = (0, S.P1)(k, (e) => e.get('spec') || ''),
+ N = (0, S.P1)(k, (e) => e.get('specSource') || 'not-editor'),
+ I = (0, S.P1)(k, (e) => e.get('json', (0, j.Map)())),
+ T = (0, S.P1)(I, (e) => e.toJS()),
+ R = (0, S.P1)(k, (e) => e.get('resolved', (0, j.Map)())),
+ M = (e, t) => e.getIn(['resolvedSubtrees', ...t], void 0),
+ D = (e, t) =>
+ j.Map.isMap(e) && j.Map.isMap(t) ? (t.get('$$ref') ? t : (0, j.OrderedMap)().mergeWith(D, e, t)) : t,
+ F = (0, S.P1)(k, (e) => (0, j.OrderedMap)().mergeWith(D, e.get('json'), e.get('resolvedSubtrees'))),
+ L = (e) => I(e),
+ B = (0, S.P1)(L, () => !1),
+ $ = (0, S.P1)(L, (e) => Te(e && e.get('info'))),
+ q = (0, S.P1)(L, (e) => Te(e && e.get('externalDocs'))),
+ U = (0, S.P1)($, (e) => e && e.get('version')),
+ z = (0, S.P1)(U, (e) => {
+ var t;
+ return o()((t = /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e))).call(t, 1);
+ }),
+ V = (0, S.P1)(F, (e) => e.get('paths')),
+ W = (0, S.P1)(() => ['get', 'put', 'post', 'delete', 'options', 'head', 'patch']),
+ J = (0, S.P1)(V, (e) => {
+ if (!e || e.size < 1) return (0, j.List)();
+ let t = (0, j.List)();
+ return e && i()(e)
+ ? (i()(e).call(e, (e, n) => {
+ if (!e || !i()(e)) return {};
+ i()(e).call(e, (e, r) => {
+ l()(O).call(O, r) < 0 ||
+ (t = t.push((0, j.fromJS)({ path: n, method: r, operation: e, id: `${r}-${n}` })));
+ });
+ }),
+ t)
+ : (0, j.List)();
+ }),
+ K = (0, S.P1)(L, (e) => (0, j.Set)(e.get('consumes'))),
+ H = (0, S.P1)(L, (e) => (0, j.Set)(e.get('produces'))),
+ G = (0, S.P1)(L, (e) => e.get('security', (0, j.List)())),
+ Z = (0, S.P1)(L, (e) => e.get('securityDefinitions')),
+ Y = (e, t) => {
+ const n = e.getIn(['resolvedSubtrees', 'definitions', t], null),
+ r = e.getIn(['json', 'definitions', t], null);
+ return n || r || null;
+ },
+ X = (0, S.P1)(L, (e) => {
+ const t = e.get('definitions');
+ return j.Map.isMap(t) ? t : (0, j.Map)();
+ }),
+ Q = (0, S.P1)(L, (e) => e.get('basePath')),
+ ee = (0, S.P1)(L, (e) => e.get('host')),
+ te = (0, S.P1)(L, (e) => e.get('schemes', (0, j.Map)())),
+ ne = (0, S.P1)(J, K, H, (e, t, n) =>
+ u()(e).call(e, (e) =>
+ e.update('operation', (e) => {
+ if (e) {
+ if (!j.Map.isMap(e)) return;
+ return e.withMutations(
+ (e) => (
+ e.get('consumes') || e.update('consumes', (e) => (0, j.Set)(e).merge(t)),
+ e.get('produces') || e.update('produces', (e) => (0, j.Set)(e).merge(n)),
+ e
+ )
+ );
+ }
+ return (0, j.Map)();
+ })
+ )
+ ),
+ re = (0, S.P1)(L, (e) => {
+ const t = e.get('tags', (0, j.List)());
+ return j.List.isList(t) ? h()(t).call(t, (e) => j.Map.isMap(e)) : (0, j.List)();
+ }),
+ oe = (e, t) => {
+ var n;
+ let r = re(e) || (0, j.List)();
+ return d()((n = h()(r).call(r, j.Map.isMap))).call(n, (e) => e.get('name') === t, (0, j.Map)());
+ },
+ se = (0, S.P1)(ne, re, (e, t) =>
+ g()(e).call(
+ e,
+ (e, t) => {
+ let n = (0, j.Set)(t.getIn(['operation', 'tags']));
+ return n.count() < 1
+ ? e.update('default', (0, j.List)(), (e) => e.push(t))
+ : g()(n).call(n, (e, n) => e.update(n, (0, j.List)(), (e) => e.push(t)), e);
+ },
+ g()(t).call(t, (e, t) => e.set(t.get('name'), (0, j.List)()), (0, j.OrderedMap)())
+ )
+ ),
+ ie = (e) => (t) => {
+ var n;
+ let { getConfigs: r } = t,
+ { tagsSorter: o, operationsSorter: s } = r();
+ return u()(
+ (n = se(e).sortBy(
+ (e, t) => t,
+ (e, t) => {
+ let n = 'function' == typeof o ? o : _.wh.tagsSorter[o];
+ return n ? n(e, t) : null;
+ }
+ ))
+ ).call(n, (t, n) => {
+ let r = 'function' == typeof s ? s : _.wh.operationsSorter[s],
+ o = r ? v()(t).call(t, r) : t;
+ return (0, j.Map)({ tagDetails: oe(e, n), operations: o });
+ });
+ },
+ ae = (0, S.P1)(k, (e) => e.get('responses', (0, j.Map)())),
+ le = (0, S.P1)(k, (e) => e.get('requests', (0, j.Map)())),
+ ce = (0, S.P1)(k, (e) => e.get('mutatedRequests', (0, j.Map)())),
+ ue = (e, t, n) => ae(e).getIn([t, n], null),
+ pe = (e, t, n) => le(e).getIn([t, n], null),
+ he = (e, t, n) => ce(e).getIn([t, n], null),
+ fe = () => !0,
+ de = (e, t, n) => {
+ const r = F(e).getIn(['paths', ...t, 'parameters'], (0, j.OrderedMap)()),
+ o = e.getIn(['meta', 'paths', ...t, 'parameters'], (0, j.OrderedMap)()),
+ s = u()(r).call(r, (e) => {
+ const t = o.get(`${n.get('in')}.${n.get('name')}`),
+ r = o.get(`${n.get('in')}.${n.get('name')}.hash-${n.hashCode()}`);
+ return (0, j.OrderedMap)().merge(e, t, r);
+ });
+ return d()(s).call(
+ s,
+ (e) => e.get('in') === n.get('in') && e.get('name') === n.get('name'),
+ (0, j.OrderedMap)()
+ );
+ },
+ me = (e, t, n, r) => {
+ const o = `${r}.${n}`;
+ return e.getIn(['meta', 'paths', ...t, 'parameter_inclusions', o], !1);
+ },
+ ge = (e, t, n, r) => {
+ const o = F(e).getIn(['paths', ...t, 'parameters'], (0, j.OrderedMap)()),
+ s = d()(o).call(o, (e) => e.get('in') === r && e.get('name') === n, (0, j.OrderedMap)());
+ return de(e, t, s);
+ },
+ ye = (e, t, n) => {
+ var r;
+ const o = F(e).getIn(['paths', t, n], (0, j.OrderedMap)()),
+ s = e.getIn(['meta', 'paths', t, n], (0, j.OrderedMap)()),
+ i = u()((r = o.get('parameters', (0, j.List)()))).call(r, (r) => de(e, [t, n], r));
+ return (0, j.OrderedMap)().merge(o, s).set('parameters', i);
+ };
+ function ve(e, t, n, r) {
+ t = t || [];
+ let o = e.getIn(['meta', 'paths', ...t, 'parameters'], (0, j.fromJS)([]));
+ return d()(o).call(o, (e) => j.Map.isMap(e) && e.get('name') === n && e.get('in') === r) || (0, j.Map)();
+ }
+ const be = (0, S.P1)(L, (e) => {
+ const t = e.get('host');
+ return 'string' == typeof t && t.length > 0 && '/' !== t[0];
+ });
+ function we(e, t, n) {
+ t = t || [];
+ let r = ye(e, ...t).get('parameters', (0, j.List)());
+ return g()(r).call(
+ r,
+ (e, t) => {
+ let r = n && 'body' === t.get('in') ? t.get('value_xml') : t.get('value');
+ return e.set((0, _.V9)(t, { allowHashes: !1 }), r);
+ },
+ (0, j.fromJS)({})
+ );
+ }
+ function Ee(e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '';
+ if (j.List.isList(e)) return w()(e).call(e, (e) => j.Map.isMap(e) && e.get('in') === t);
+ }
+ function xe(e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '';
+ if (j.List.isList(e)) return w()(e).call(e, (e) => j.Map.isMap(e) && e.get('type') === t);
+ }
+ function Se(e, t) {
+ t = t || [];
+ let n = F(e).getIn(['paths', ...t], (0, j.fromJS)({})),
+ r = e.getIn(['meta', 'paths', ...t], (0, j.fromJS)({})),
+ o = _e(e, t);
+ const s = n.get('parameters') || new j.List(),
+ i = r.get('consumes_value')
+ ? r.get('consumes_value')
+ : xe(s, 'file')
+ ? 'multipart/form-data'
+ : xe(s, 'formData')
+ ? 'application/x-www-form-urlencoded'
+ : void 0;
+ return (0, j.fromJS)({ requestContentType: i, responseContentType: o });
+ }
+ function _e(e, t) {
+ t = t || [];
+ const n = F(e).getIn(['paths', ...t], null);
+ if (null === n) return;
+ const r = e.getIn(['meta', 'paths', ...t, 'produces_value'], null),
+ o = n.getIn(['produces', 0], null);
+ return r || o || 'application/json';
+ }
+ function je(e, t) {
+ t = t || [];
+ const n = F(e),
+ r = n.getIn(['paths', ...t], null);
+ if (null === r) return;
+ const [o] = t,
+ s = r.get('produces', null),
+ i = n.getIn(['paths', o, 'produces'], null),
+ a = n.getIn(['produces'], null);
+ return s || i || a;
+ }
+ function Oe(e, t) {
+ t = t || [];
+ const n = F(e),
+ r = n.getIn(['paths', ...t], null);
+ if (null === r) return;
+ const [o] = t,
+ s = r.get('consumes', null),
+ i = n.getIn(['paths', o, 'consumes'], null),
+ a = n.getIn(['consumes'], null);
+ return s || i || a;
+ }
+ const ke = (e, t, n) => {
+ let r = e.get('url').match(/^([a-z][a-z0-9+\-.]*):/),
+ o = x()(r) ? r[1] : null;
+ return e.getIn(['scheme', t, n]) || e.getIn(['scheme', '_defaultScheme']) || o || '';
+ },
+ Ae = (e, t, n) => {
+ var r;
+ return l()((r = ['http', 'https'])).call(r, ke(e, t, n)) > -1;
+ },
+ Ce = (e, t) => {
+ t = t || [];
+ let n = e.getIn(['meta', 'paths', ...t, 'parameters'], (0, j.fromJS)([]));
+ const r = [];
+ return (
+ i()(n).call(n, (e) => {
+ let t = e.get('errors');
+ t && t.count() && i()(t).call(t, (e) => r.push(e));
+ }),
+ r
+ );
+ },
+ Pe = (e, t) => 0 === Ce(e, t).length,
+ Ne = (e, t) => {
+ var n;
+ let r = { requestBody: !1, requestContentType: {} },
+ o = e.getIn(['resolvedSubtrees', 'paths', ...t, 'requestBody'], (0, j.fromJS)([]));
+ return (
+ o.size < 1 ||
+ (o.getIn(['required']) && (r.requestBody = o.getIn(['required'])),
+ i()((n = o.getIn(['content']).entrySeq())).call(n, (e) => {
+ const t = e[0];
+ if (e[1].getIn(['schema', 'required'])) {
+ const n = e[1].getIn(['schema', 'required']).toJS();
+ r.requestContentType[t] = n;
+ }
+ })),
+ r
+ );
+ },
+ Ie = (e, t, n, r) => {
+ if ((n || r) && n === r) return !0;
+ let o = e.getIn(['resolvedSubtrees', 'paths', ...t, 'requestBody', 'content'], (0, j.fromJS)([]));
+ if (o.size < 2 || !n || !r) return !1;
+ let s = o.getIn([n, 'schema', 'properties'], (0, j.fromJS)([])),
+ i = o.getIn([r, 'schema', 'properties'], (0, j.fromJS)([]));
+ return !!s.equals(i);
+ };
+ function Te(e) {
+ return j.Map.isMap(e) ? e : new j.Map();
+ }
+ },
+ 77508: (e, t, n) => {
+ 'use strict';
+ n.r(t),
+ n.d(t, { executeRequest: () => p, updateJsonSpec: () => u, updateSpec: () => c, validateParams: () => h });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(86),
+ i = n.n(s),
+ a = n(27361),
+ l = n.n(a);
+ const c = (e, t) => {
+ let { specActions: n } = t;
+ return function () {
+ e(...arguments), n.parseToJson(...arguments);
+ };
+ },
+ u = (e, t) => {
+ let { specActions: n } = t;
+ return function () {
+ for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++) r[s] = arguments[s];
+ e(...r), n.invalidateResolvedSubtreeCache();
+ const [a] = r,
+ c = l()(a, ['paths']) || {},
+ u = o()(c);
+ i()(u).call(u, (e) => {
+ l()(c, [e]).$ref && n.requestResolvedSubtree(['paths', e]);
+ }),
+ n.requestResolvedSubtree(['components', 'securitySchemes']);
+ };
+ },
+ p = (e, t) => {
+ let { specActions: n } = t;
+ return (t) => (n.logRequest(t), e(t));
+ },
+ h = (e, t) => {
+ let { specSelectors: n } = t;
+ return (t) => e(t, n.isOAS3());
+ };
+ },
+ 34852: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { loaded: () => r });
+ const r = (e, t) =>
+ function () {
+ e(...arguments);
+ const n = t.getConfigs().withCredentials;
+ void 0 !== n && (t.fn.fetch.withCredentials = 'string' == typeof n ? 'true' === n : !!n);
+ };
+ },
+ 79934: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => BE });
+ var r = {};
+ n.r(r),
+ n.d(r, {
+ JsonPatchError: () => j,
+ _areEquals: () => M,
+ applyOperation: () => P,
+ applyPatch: () => N,
+ applyReducer: () => I,
+ deepClone: () => O,
+ getValueByPointer: () => C,
+ validate: () => R,
+ validator: () => T,
+ });
+ var o = {};
+ n.r(o), n.d(o, { compare: () => z, generate: () => q, observe: () => $, unobserve: () => B });
+ var s = {};
+ n.r(s),
+ n.d(s, {
+ hasElementSourceMap: () => Cs,
+ includesClasses: () => Ns,
+ includesSymbols: () => Ps,
+ isAnnotationElement: () => _s,
+ isArrayElement: () => ws,
+ isBooleanElement: () => vs,
+ isCommentElement: () => js,
+ isElement: () => ds,
+ isLinkElement: () => xs,
+ isMemberElement: () => Es,
+ isNullElement: () => ys,
+ isNumberElement: () => gs,
+ isObjectElement: () => bs,
+ isParseResultElement: () => Os,
+ isPrimitiveElement: () => As,
+ isRefElement: () => Ss,
+ isSourceMapElement: () => ks,
+ isStringElement: () => ms,
+ });
+ var i = {};
+ n.r(i),
+ n.d(i, {
+ isJSONReferenceElement: () => cc,
+ isJSONSchemaElement: () => lc,
+ isLinkDescriptionElement: () => pc,
+ isMediaElement: () => uc,
+ });
+ var a = {};
+ n.r(a),
+ n.d(a, {
+ isOpenApi3_0LikeElement: () => $c,
+ isOpenApiExtension: () => Kc,
+ isParameterLikeElement: () => qc,
+ isReferenceLikeElement: () => Uc,
+ isRequestBodyLikeElement: () => zc,
+ isResponseLikeElement: () => Vc,
+ isServerLikeElement: () => Wc,
+ isTagLikeElement: () => Jc,
+ });
+ var l = {};
+ n.r(l),
+ n.d(l, {
+ isBooleanJsonSchemaElement: () => ap,
+ isCallbackElement: () => Lu,
+ isComponentsElement: () => Bu,
+ isContactElement: () => $u,
+ isExampleElement: () => qu,
+ isExternalDocumentationElement: () => Uu,
+ isHeaderElement: () => zu,
+ isInfoElement: () => Vu,
+ isLicenseElement: () => Wu,
+ isLinkElement: () => Ju,
+ isLinkElementExternal: () => Ku,
+ isMediaTypeElement: () => pp,
+ isOpenApi3_0Element: () => Gu,
+ isOpenapiElement: () => Hu,
+ isOperationElement: () => Zu,
+ isParameterElement: () => Yu,
+ isPathItemElement: () => Xu,
+ isPathItemElementExternal: () => Qu,
+ isPathsElement: () => ep,
+ isReferenceElement: () => tp,
+ isReferenceElementExternal: () => np,
+ isRequestBodyElement: () => rp,
+ isResponseElement: () => op,
+ isResponsesElement: () => sp,
+ isSchemaElement: () => ip,
+ isSecurityRequirementElement: () => lp,
+ isServerElement: () => cp,
+ isServerVariableElement: () => up,
+ });
+ var c = {};
+ n.r(c),
+ n.d(c, {
+ isBooleanJsonSchemaElement: () => Kg,
+ isCallbackElement: () => Sg,
+ isComponentsElement: () => _g,
+ isContactElement: () => jg,
+ isExampleElement: () => Og,
+ isExternalDocumentationElement: () => kg,
+ isHeaderElement: () => Ag,
+ isInfoElement: () => Cg,
+ isJsonSchemaDialectElement: () => Pg,
+ isLicenseElement: () => Ng,
+ isLinkElement: () => Ig,
+ isLinkElementExternal: () => Tg,
+ isMediaTypeElement: () => Yg,
+ isOpenApi3_1Element: () => Mg,
+ isOpenapiElement: () => Rg,
+ isOperationElement: () => Dg,
+ isParameterElement: () => Fg,
+ isPathItemElement: () => Lg,
+ isPathItemElementExternal: () => Bg,
+ isPathsElement: () => $g,
+ isReferenceElement: () => qg,
+ isReferenceElementExternal: () => Ug,
+ isRequestBodyElement: () => zg,
+ isResponseElement: () => Vg,
+ isResponsesElement: () => Wg,
+ isSchemaElement: () => Jg,
+ isSecurityRequirementElement: () => Hg,
+ isServerElement: () => Gg,
+ isServerVariableElement: () => Zg,
+ });
+ var u = {};
+ n.r(u), n.d(u, { cookie: () => EE, header: () => wE, path: () => yE, query: () => vE });
+ var p,
+ h = n(58826),
+ f = n.n(h),
+ d =
+ ((p = function (e, t) {
+ return (
+ (p =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t;
+ }) ||
+ function (e, t) {
+ for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
+ }),
+ p(e, t)
+ );
+ }),
+ function (e, t) {
+ function n() {
+ this.constructor = e;
+ }
+ p(e, t), (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
+ }),
+ m = Object.prototype.hasOwnProperty;
+ function g(e, t) {
+ return m.call(e, t);
+ }
+ function y(e) {
+ if (Array.isArray(e)) {
+ for (var t = new Array(e.length), n = 0; n < t.length; n++) t[n] = '' + n;
+ return t;
+ }
+ if (Object.keys) return Object.keys(e);
+ var r = [];
+ for (var o in e) g(e, o) && r.push(o);
+ return r;
+ }
+ function v(e) {
+ switch (typeof e) {
+ case 'object':
+ return JSON.parse(JSON.stringify(e));
+ case 'undefined':
+ return null;
+ default:
+ return e;
+ }
+ }
+ function b(e) {
+ for (var t, n = 0, r = e.length; n < r; ) {
+ if (!((t = e.charCodeAt(n)) >= 48 && t <= 57)) return !1;
+ n++;
+ }
+ return !0;
+ }
+ function w(e) {
+ return -1 === e.indexOf('/') && -1 === e.indexOf('~') ? e : e.replace(/~/g, '~0').replace(/\//g, '~1');
+ }
+ function E(e) {
+ return e.replace(/~1/g, '/').replace(/~0/g, '~');
+ }
+ function x(e) {
+ if (void 0 === e) return !0;
+ if (e)
+ if (Array.isArray(e)) {
+ for (var t = 0, n = e.length; t < n; t++) if (x(e[t])) return !0;
+ } else if ('object' == typeof e)
+ for (var r = y(e), o = r.length, s = 0; s < o; s++) if (x(e[r[s]])) return !0;
+ return !1;
+ }
+ function S(e, t) {
+ var n = [e];
+ for (var r in t) {
+ var o = 'object' == typeof t[r] ? JSON.stringify(t[r], null, 2) : t[r];
+ void 0 !== o && n.push(r + ': ' + o);
+ }
+ return n.join('\n');
+ }
+ var _ = (function (e) {
+ function t(t, n, r, o, s) {
+ var i = this.constructor,
+ a = e.call(this, S(t, { name: n, index: r, operation: o, tree: s })) || this;
+ return (
+ (a.name = n),
+ (a.index = r),
+ (a.operation = o),
+ (a.tree = s),
+ Object.setPrototypeOf(a, i.prototype),
+ (a.message = S(t, { name: n, index: r, operation: o, tree: s })),
+ a
+ );
+ }
+ return d(t, e), t;
+ })(Error),
+ j = _,
+ O = v,
+ k = {
+ add: function (e, t, n) {
+ return (e[t] = this.value), { newDocument: n };
+ },
+ remove: function (e, t, n) {
+ var r = e[t];
+ return delete e[t], { newDocument: n, removed: r };
+ },
+ replace: function (e, t, n) {
+ var r = e[t];
+ return (e[t] = this.value), { newDocument: n, removed: r };
+ },
+ move: function (e, t, n) {
+ var r = C(n, this.path);
+ r && (r = v(r));
+ var o = P(n, { op: 'remove', path: this.from }).removed;
+ return P(n, { op: 'add', path: this.path, value: o }), { newDocument: n, removed: r };
+ },
+ copy: function (e, t, n) {
+ var r = C(n, this.from);
+ return P(n, { op: 'add', path: this.path, value: v(r) }), { newDocument: n };
+ },
+ test: function (e, t, n) {
+ return { newDocument: n, test: M(e[t], this.value) };
+ },
+ _get: function (e, t, n) {
+ return (this.value = e[t]), { newDocument: n };
+ },
+ },
+ A = {
+ add: function (e, t, n) {
+ return b(t) ? e.splice(t, 0, this.value) : (e[t] = this.value), { newDocument: n, index: t };
+ },
+ remove: function (e, t, n) {
+ return { newDocument: n, removed: e.splice(t, 1)[0] };
+ },
+ replace: function (e, t, n) {
+ var r = e[t];
+ return (e[t] = this.value), { newDocument: n, removed: r };
+ },
+ move: k.move,
+ copy: k.copy,
+ test: k.test,
+ _get: k._get,
+ };
+ function C(e, t) {
+ if ('' == t) return e;
+ var n = { op: '_get', path: t };
+ return P(e, n), n.value;
+ }
+ function P(e, t, n, r, o, s) {
+ if (
+ (void 0 === n && (n = !1),
+ void 0 === r && (r = !0),
+ void 0 === o && (o = !0),
+ void 0 === s && (s = 0),
+ n && ('function' == typeof n ? n(t, 0, e, t.path) : T(t, 0)),
+ '' === t.path)
+ ) {
+ var i = { newDocument: e };
+ if ('add' === t.op) return (i.newDocument = t.value), i;
+ if ('replace' === t.op) return (i.newDocument = t.value), (i.removed = e), i;
+ if ('move' === t.op || 'copy' === t.op)
+ return (i.newDocument = C(e, t.from)), 'move' === t.op && (i.removed = e), i;
+ if ('test' === t.op) {
+ if (((i.test = M(e, t.value)), !1 === i.test))
+ throw new j('Test operation failed', 'TEST_OPERATION_FAILED', s, t, e);
+ return (i.newDocument = e), i;
+ }
+ if ('remove' === t.op) return (i.removed = e), (i.newDocument = null), i;
+ if ('_get' === t.op) return (t.value = e), i;
+ if (n)
+ throw new j(
+ 'Operation `op` property is not one of operations defined in RFC-6902',
+ 'OPERATION_OP_INVALID',
+ s,
+ t,
+ e
+ );
+ return i;
+ }
+ r || (e = v(e));
+ var a = (t.path || '').split('/'),
+ l = e,
+ c = 1,
+ u = a.length,
+ p = void 0,
+ h = void 0,
+ f = void 0;
+ for (f = 'function' == typeof n ? n : T; ; ) {
+ if (
+ ((h = a[c]) && -1 != h.indexOf('~') && (h = E(h)),
+ o && ('__proto__' == h || ('prototype' == h && c > 0 && 'constructor' == a[c - 1])))
+ )
+ throw new TypeError(
+ 'JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README'
+ );
+ if (
+ (n &&
+ void 0 === p &&
+ (void 0 === l[h] ? (p = a.slice(0, c).join('/')) : c == u - 1 && (p = t.path),
+ void 0 !== p && f(t, 0, e, p)),
+ c++,
+ Array.isArray(l))
+ ) {
+ if ('-' === h) h = l.length;
+ else {
+ if (n && !b(h))
+ throw new j(
+ 'Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index',
+ 'OPERATION_PATH_ILLEGAL_ARRAY_INDEX',
+ s,
+ t,
+ e
+ );
+ b(h) && (h = ~~h);
+ }
+ if (c >= u) {
+ if (n && 'add' === t.op && h > l.length)
+ throw new j(
+ 'The specified index MUST NOT be greater than the number of elements in the array',
+ 'OPERATION_VALUE_OUT_OF_BOUNDS',
+ s,
+ t,
+ e
+ );
+ if (!1 === (i = A[t.op].call(t, l, h, e)).test)
+ throw new j('Test operation failed', 'TEST_OPERATION_FAILED', s, t, e);
+ return i;
+ }
+ } else if (c >= u) {
+ if (!1 === (i = k[t.op].call(t, l, h, e)).test)
+ throw new j('Test operation failed', 'TEST_OPERATION_FAILED', s, t, e);
+ return i;
+ }
+ if (((l = l[h]), n && c < u && (!l || 'object' != typeof l)))
+ throw new j('Cannot perform operation at the desired path', 'OPERATION_PATH_UNRESOLVABLE', s, t, e);
+ }
+ }
+ function N(e, t, n, r, o) {
+ if ((void 0 === r && (r = !0), void 0 === o && (o = !0), n && !Array.isArray(t)))
+ throw new j('Patch sequence must be an array', 'SEQUENCE_NOT_AN_ARRAY');
+ r || (e = v(e));
+ for (var s = new Array(t.length), i = 0, a = t.length; i < a; i++)
+ (s[i] = P(e, t[i], n, !0, o, i)), (e = s[i].newDocument);
+ return (s.newDocument = e), s;
+ }
+ function I(e, t, n) {
+ var r = P(e, t);
+ if (!1 === r.test) throw new j('Test operation failed', 'TEST_OPERATION_FAILED', n, t, e);
+ return r.newDocument;
+ }
+ function T(e, t, n, r) {
+ if ('object' != typeof e || null === e || Array.isArray(e))
+ throw new j('Operation is not an object', 'OPERATION_NOT_AN_OBJECT', t, e, n);
+ if (!k[e.op])
+ throw new j(
+ 'Operation `op` property is not one of operations defined in RFC-6902',
+ 'OPERATION_OP_INVALID',
+ t,
+ e,
+ n
+ );
+ if ('string' != typeof e.path)
+ throw new j('Operation `path` property is not a string', 'OPERATION_PATH_INVALID', t, e, n);
+ if (0 !== e.path.indexOf('/') && e.path.length > 0)
+ throw new j('Operation `path` property must start with "/"', 'OPERATION_PATH_INVALID', t, e, n);
+ if (('move' === e.op || 'copy' === e.op) && 'string' != typeof e.from)
+ throw new j(
+ 'Operation `from` property is not present (applicable in `move` and `copy` operations)',
+ 'OPERATION_FROM_REQUIRED',
+ t,
+ e,
+ n
+ );
+ if (('add' === e.op || 'replace' === e.op || 'test' === e.op) && void 0 === e.value)
+ throw new j(
+ 'Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)',
+ 'OPERATION_VALUE_REQUIRED',
+ t,
+ e,
+ n
+ );
+ if (('add' === e.op || 'replace' === e.op || 'test' === e.op) && x(e.value))
+ throw new j(
+ 'Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)',
+ 'OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED',
+ t,
+ e,
+ n
+ );
+ if (n)
+ if ('add' == e.op) {
+ var o = e.path.split('/').length,
+ s = r.split('/').length;
+ if (o !== s + 1 && o !== s)
+ throw new j(
+ 'Cannot perform an `add` operation at the desired path',
+ 'OPERATION_PATH_CANNOT_ADD',
+ t,
+ e,
+ n
+ );
+ } else if ('replace' === e.op || 'remove' === e.op || '_get' === e.op) {
+ if (e.path !== r)
+ throw new j(
+ 'Cannot perform the operation at a path that does not exist',
+ 'OPERATION_PATH_UNRESOLVABLE',
+ t,
+ e,
+ n
+ );
+ } else if ('move' === e.op || 'copy' === e.op) {
+ var i = R([{ op: '_get', path: e.from, value: void 0 }], n);
+ if (i && 'OPERATION_PATH_UNRESOLVABLE' === i.name)
+ throw new j(
+ 'Cannot perform the operation from a path that does not exist',
+ 'OPERATION_FROM_UNRESOLVABLE',
+ t,
+ e,
+ n
+ );
+ }
+ }
+ function R(e, t, n) {
+ try {
+ if (!Array.isArray(e)) throw new j('Patch sequence must be an array', 'SEQUENCE_NOT_AN_ARRAY');
+ if (t) N(v(t), v(e), n || !0);
+ else {
+ n = n || T;
+ for (var r = 0; r < e.length; r++) n(e[r], r, t, void 0);
+ }
+ } catch (e) {
+ if (e instanceof j) return e;
+ throw e;
+ }
+ }
+ function M(e, t) {
+ if (e === t) return !0;
+ if (e && t && 'object' == typeof e && 'object' == typeof t) {
+ var n,
+ r,
+ o,
+ s = Array.isArray(e),
+ i = Array.isArray(t);
+ if (s && i) {
+ if ((r = e.length) != t.length) return !1;
+ for (n = r; 0 != n--; ) if (!M(e[n], t[n])) return !1;
+ return !0;
+ }
+ if (s != i) return !1;
+ var a = Object.keys(e);
+ if ((r = a.length) !== Object.keys(t).length) return !1;
+ for (n = r; 0 != n--; ) if (!t.hasOwnProperty(a[n])) return !1;
+ for (n = r; 0 != n--; ) if (!M(e[(o = a[n])], t[o])) return !1;
+ return !0;
+ }
+ return e != e && t != t;
+ }
+ var D = new WeakMap(),
+ F = function (e) {
+ (this.observers = new Map()), (this.obj = e);
+ },
+ L = function (e, t) {
+ (this.callback = e), (this.observer = t);
+ };
+ function B(e, t) {
+ t.unobserve();
+ }
+ function $(e, t) {
+ var n,
+ r = (function (e) {
+ return D.get(e);
+ })(e);
+ if (r) {
+ var o = (function (e, t) {
+ return e.observers.get(t);
+ })(r, t);
+ n = o && o.observer;
+ } else (r = new F(e)), D.set(e, r);
+ if (n) return n;
+ if (((n = {}), (r.value = v(e)), t)) {
+ (n.callback = t), (n.next = null);
+ var s = function () {
+ q(n);
+ },
+ i = function () {
+ clearTimeout(n.next), (n.next = setTimeout(s));
+ };
+ 'undefined' != typeof window &&
+ (window.addEventListener('mouseup', i),
+ window.addEventListener('keyup', i),
+ window.addEventListener('mousedown', i),
+ window.addEventListener('keydown', i),
+ window.addEventListener('change', i));
+ }
+ return (
+ (n.patches = []),
+ (n.object = e),
+ (n.unobserve = function () {
+ q(n),
+ clearTimeout(n.next),
+ (function (e, t) {
+ e.observers.delete(t.callback);
+ })(r, n),
+ 'undefined' != typeof window &&
+ (window.removeEventListener('mouseup', i),
+ window.removeEventListener('keyup', i),
+ window.removeEventListener('mousedown', i),
+ window.removeEventListener('keydown', i),
+ window.removeEventListener('change', i));
+ }),
+ r.observers.set(t, new L(t, n)),
+ n
+ );
+ }
+ function q(e, t) {
+ void 0 === t && (t = !1);
+ var n = D.get(e.object);
+ U(n.value, e.object, e.patches, '', t), e.patches.length && N(n.value, e.patches);
+ var r = e.patches;
+ return r.length > 0 && ((e.patches = []), e.callback && e.callback(r)), r;
+ }
+ function U(e, t, n, r, o) {
+ if (t !== e) {
+ 'function' == typeof t.toJSON && (t = t.toJSON());
+ for (var s = y(t), i = y(e), a = !1, l = i.length - 1; l >= 0; l--) {
+ var c = e[(p = i[l])];
+ if (!g(t, p) || (void 0 === t[p] && void 0 !== c && !1 === Array.isArray(t)))
+ Array.isArray(e) === Array.isArray(t)
+ ? (o && n.push({ op: 'test', path: r + '/' + w(p), value: v(c) }),
+ n.push({ op: 'remove', path: r + '/' + w(p) }),
+ (a = !0))
+ : (o && n.push({ op: 'test', path: r, value: e }),
+ n.push({ op: 'replace', path: r, value: t }),
+ !0);
+ else {
+ var u = t[p];
+ 'object' == typeof c &&
+ null != c &&
+ 'object' == typeof u &&
+ null != u &&
+ Array.isArray(c) === Array.isArray(u)
+ ? U(c, u, n, r + '/' + w(p), o)
+ : c !== u &&
+ (!0,
+ o && n.push({ op: 'test', path: r + '/' + w(p), value: v(c) }),
+ n.push({ op: 'replace', path: r + '/' + w(p), value: v(u) }));
+ }
+ }
+ if (a || s.length != i.length)
+ for (l = 0; l < s.length; l++) {
+ var p;
+ g(e, (p = s[l])) || void 0 === t[p] || n.push({ op: 'add', path: r + '/' + w(p), value: v(t[p]) });
+ }
+ }
+ }
+ function z(e, t, n) {
+ void 0 === n && (n = !1);
+ var r = [];
+ return U(e, t, r, '', n), r;
+ }
+ Object.assign({}, r, o, {
+ JsonPatchError: _,
+ deepClone: v,
+ escapePathComponent: w,
+ unescapePathComponent: E,
+ });
+ var V = n(9996),
+ W = n.n(V);
+ const J = {
+ add: function (e, t) {
+ return { op: 'add', path: e, value: t };
+ },
+ replace: H,
+ remove: function (e) {
+ return { op: 'remove', path: e };
+ },
+ merge: function (e, t) {
+ return { type: 'mutation', op: 'merge', path: e, value: t };
+ },
+ mergeDeep: function (e, t) {
+ return { type: 'mutation', op: 'mergeDeep', path: e, value: t };
+ },
+ context: function (e, t) {
+ return { type: 'context', path: e, value: t };
+ },
+ getIn: function (e, t) {
+ return t.reduce((e, t) => (void 0 !== t && e ? e[t] : e), e);
+ },
+ applyPatch: function (e, t, n) {
+ if (((n = n || {}), 'merge' === (t = f()(f()({}, t), {}, { path: t.path && K(t.path) })).op)) {
+ const n = ae(e, t.path);
+ Object.assign(n, t.value), N(e, [H(t.path, n)]);
+ } else if ('mergeDeep' === t.op) {
+ const n = ae(e, t.path),
+ r = W()(n, t.value);
+ e = N(e, [H(t.path, r)]).newDocument;
+ } else if ('add' === t.op && '' === t.path && te(t.value)) {
+ N(
+ e,
+ Object.keys(t.value).reduce(
+ (e, n) => (e.push({ op: 'add', path: `/${K(n)}`, value: t.value[n] }), e),
+ []
+ )
+ );
+ } else if ('replace' === t.op && '' === t.path) {
+ let { value: r } = t;
+ n.allowMetaPatches &&
+ t.meta &&
+ se(t) &&
+ (Array.isArray(t.value) || te(t.value)) &&
+ (r = f()(f()({}, r), t.meta)),
+ (e = r);
+ } else if (
+ (N(e, [t]), n.allowMetaPatches && t.meta && se(t) && (Array.isArray(t.value) || te(t.value)))
+ ) {
+ const n = ae(e, t.path),
+ r = f()(f()({}, n), t.meta);
+ N(e, [H(t.path, r)]);
+ }
+ return e;
+ },
+ parentPathMatch: function (e, t) {
+ if (!Array.isArray(t)) return !1;
+ for (let n = 0, r = t.length; n < r; n += 1) if (t[n] !== e[n]) return !1;
+ return !0;
+ },
+ flatten: Q,
+ fullyNormalizeArray: function (e) {
+ return ee(Q(X(e)));
+ },
+ normalizeArray: X,
+ isPromise: function (e) {
+ return te(e) && ne(e.then);
+ },
+ forEachNew: function (e, t) {
+ try {
+ return G(e, Y, t);
+ } catch (e) {
+ return e;
+ }
+ },
+ forEachNewPrimitive: function (e, t) {
+ try {
+ return G(e, Z, t);
+ } catch (e) {
+ return e;
+ }
+ },
+ isJsonPatch: re,
+ isContextPatch: function (e) {
+ return ie(e) && 'context' === e.type;
+ },
+ isPatch: ie,
+ isMutation: oe,
+ isAdditiveMutation: se,
+ isGenerator: function (e) {
+ return '[object GeneratorFunction]' === Object.prototype.toString.call(e);
+ },
+ isFunction: ne,
+ isObject: te,
+ isError: function (e) {
+ return e instanceof Error;
+ },
+ };
+ function K(e) {
+ return Array.isArray(e)
+ ? e.length < 1
+ ? ''
+ : `/${e.map((e) => (e + '').replace(/~/g, '~0').replace(/\//g, '~1')).join('/')}`
+ : e;
+ }
+ function H(e, t, n) {
+ return { op: 'replace', path: e, value: t, meta: n };
+ }
+ function G(e, t, n) {
+ return ee(Q(e.filter(se).map((e) => t(e.value, n, e.path)) || []));
+ }
+ function Z(e, t, n) {
+ return (
+ (n = n || []),
+ Array.isArray(e)
+ ? e.map((e, r) => Z(e, t, n.concat(r)))
+ : te(e)
+ ? Object.keys(e).map((r) => Z(e[r], t, n.concat(r)))
+ : t(e, n[n.length - 1], n)
+ );
+ }
+ function Y(e, t, n) {
+ let r = [];
+ if ((n = n || []).length > 0) {
+ const o = t(e, n[n.length - 1], n);
+ o && (r = r.concat(o));
+ }
+ if (Array.isArray(e)) {
+ const o = e.map((e, r) => Y(e, t, n.concat(r)));
+ o && (r = r.concat(o));
+ } else if (te(e)) {
+ const o = Object.keys(e).map((r) => Y(e[r], t, n.concat(r)));
+ o && (r = r.concat(o));
+ }
+ return (r = Q(r)), r;
+ }
+ function X(e) {
+ return Array.isArray(e) ? e : [e];
+ }
+ function Q(e) {
+ return [].concat(...e.map((e) => (Array.isArray(e) ? Q(e) : e)));
+ }
+ function ee(e) {
+ return e.filter((e) => void 0 !== e);
+ }
+ function te(e) {
+ return e && 'object' == typeof e;
+ }
+ function ne(e) {
+ return e && 'function' == typeof e;
+ }
+ function re(e) {
+ if (ie(e)) {
+ const { op: t } = e;
+ return 'add' === t || 'remove' === t || 'replace' === t;
+ }
+ return !1;
+ }
+ function oe(e) {
+ return re(e) || (ie(e) && 'mutation' === e.type);
+ }
+ function se(e) {
+ return oe(e) && ('add' === e.op || 'replace' === e.op || 'merge' === e.op || 'mergeDeep' === e.op);
+ }
+ function ie(e) {
+ return e && 'object' == typeof e;
+ }
+ function ae(e, t) {
+ try {
+ return C(e, t);
+ } catch (e) {
+ return console.error(e), {};
+ }
+ }
+ n(31905);
+ var le = n(1272),
+ ce = n(8575);
+ function ue(e, t) {
+ function n() {
+ Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error().stack);
+ for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r];
+ ([this.message] = n), t && t.apply(this, n);
+ }
+ return (n.prototype = new Error()), (n.prototype.name = e), (n.prototype.constructor = n), n;
+ }
+ var pe = n(13692),
+ he = n.n(pe);
+ const fe = ['properties'],
+ de = ['properties'],
+ me = [
+ 'definitions',
+ 'parameters',
+ 'responses',
+ 'securityDefinitions',
+ 'components/schemas',
+ 'components/responses',
+ 'components/parameters',
+ 'components/securitySchemes',
+ ],
+ ge = ['schema/example', 'items/example'];
+ function ye(e) {
+ const t = e[e.length - 1],
+ n = e[e.length - 2],
+ r = e.join('/');
+ return (
+ (fe.indexOf(t) > -1 && -1 === de.indexOf(n)) || me.indexOf(r) > -1 || ge.some((e) => r.indexOf(e) > -1)
+ );
+ }
+ function ve(e, t) {
+ const [n, r] = e.split('#'),
+ o = ce.resolve(n || '', t || '');
+ return r ? `${o}#${r}` : o;
+ }
+ const be = 'application/json, application/yaml',
+ we = /^([a-z]+:\/\/|\/\/)/i,
+ Ee = ue('JSONRefError', function (e, t, n) {
+ (this.originalError = n), Object.assign(this, t || {});
+ }),
+ xe = {},
+ Se = new WeakMap(),
+ _e = [
+ (e) => 'paths' === e[0] && 'responses' === e[3] && 'examples' === e[5],
+ (e) => 'paths' === e[0] && 'responses' === e[3] && 'content' === e[5] && 'example' === e[7],
+ (e) =>
+ 'paths' === e[0] &&
+ 'responses' === e[3] &&
+ 'content' === e[5] &&
+ 'examples' === e[7] &&
+ 'value' === e[9],
+ (e) => 'paths' === e[0] && 'requestBody' === e[3] && 'content' === e[4] && 'example' === e[6],
+ (e) =>
+ 'paths' === e[0] &&
+ 'requestBody' === e[3] &&
+ 'content' === e[4] &&
+ 'examples' === e[6] &&
+ 'value' === e[8],
+ (e) => 'paths' === e[0] && 'parameters' === e[2] && 'example' === e[4],
+ (e) => 'paths' === e[0] && 'parameters' === e[3] && 'example' === e[5],
+ (e) => 'paths' === e[0] && 'parameters' === e[2] && 'examples' === e[4] && 'value' === e[6],
+ (e) => 'paths' === e[0] && 'parameters' === e[3] && 'examples' === e[5] && 'value' === e[7],
+ (e) => 'paths' === e[0] && 'parameters' === e[2] && 'content' === e[4] && 'example' === e[6],
+ (e) =>
+ 'paths' === e[0] &&
+ 'parameters' === e[2] &&
+ 'content' === e[4] &&
+ 'examples' === e[6] &&
+ 'value' === e[8],
+ (e) => 'paths' === e[0] && 'parameters' === e[3] && 'content' === e[4] && 'example' === e[7],
+ (e) =>
+ 'paths' === e[0] &&
+ 'parameters' === e[3] &&
+ 'content' === e[5] &&
+ 'examples' === e[7] &&
+ 'value' === e[9],
+ ],
+ je = {
+ key: '$ref',
+ plugin: (e, t, n, r) => {
+ const o = r.getInstance(),
+ s = n.slice(0, -1);
+ if (ye(s) || ((e) => _e.some((t) => t(e)))(s)) return;
+ const { baseDoc: i } = r.getContext(n);
+ if ('string' != typeof e)
+ return new Ee('$ref: must be a string (JSON-Ref)', { $ref: e, baseDoc: i, fullPath: n });
+ const a = Pe(e),
+ l = a[0],
+ c = a[1] || '';
+ let u, p, h;
+ try {
+ u = i || l ? Ae(l, i) : null;
+ } catch (t) {
+ return Ce(t, { pointer: c, $ref: e, basePath: u, fullPath: n });
+ }
+ if (
+ (function (e, t, n, r) {
+ let o = Se.get(r);
+ o || ((o = {}), Se.set(r, o));
+ const s = (function (e) {
+ if (0 === e.length) return '';
+ return `/${e.map(De).join('/')}`;
+ })(n),
+ i = `${t || ''}#${e}`,
+ a = s.replace(/allOf\/\d+\/?/g, ''),
+ l = r.contextTree.get([]).baseDoc;
+ if (t === l && Le(a, e)) return !0;
+ let c = '';
+ const u = n.some((e) => ((c = `${c}/${De(e)}`), o[c] && o[c].some((e) => Le(e, i) || Le(i, e))));
+ if (u) return !0;
+ return void (o[a] = (o[a] || []).concat(i));
+ })(c, u, s, r) &&
+ !o.useCircularStructures
+ ) {
+ const t = ve(e, u);
+ return e === t ? null : J.replace(n, t);
+ }
+ if (
+ (null == u
+ ? ((h = Re(c)),
+ (p = r.get(h)),
+ void 0 === p &&
+ (p = new Ee(`Could not resolve reference: ${e}`, {
+ pointer: c,
+ $ref: e,
+ baseDoc: i,
+ fullPath: n,
+ })))
+ : ((p = Ne(u, c)),
+ (p =
+ null != p.__value
+ ? p.__value
+ : p.catch((t) => {
+ throw Ce(t, { pointer: c, $ref: e, baseDoc: i, fullPath: n });
+ }))),
+ p instanceof Error)
+ )
+ return [J.remove(n), p];
+ const f = ve(e, u),
+ d = J.replace(s, p, { $$ref: f });
+ if (u && u !== i) return [d, J.context(s, { baseDoc: u })];
+ try {
+ if (
+ !(function (e, t) {
+ const n = [e];
+ return t.path.reduce((e, t) => (n.push(e[t]), e[t]), e), r(t.value);
+ function r(e) {
+ return J.isObject(e) && (n.indexOf(e) >= 0 || Object.keys(e).some((t) => r(e[t])));
+ }
+ })(r.state, d) ||
+ o.useCircularStructures
+ )
+ return d;
+ } catch (e) {
+ return null;
+ }
+ },
+ },
+ Oe = Object.assign(je, {
+ docCache: xe,
+ absoluteify: Ae,
+ clearCache: function (e) {
+ void 0 !== e
+ ? delete xe[e]
+ : Object.keys(xe).forEach((e) => {
+ delete xe[e];
+ });
+ },
+ JSONRefError: Ee,
+ wrapError: Ce,
+ getDoc: Ie,
+ split: Pe,
+ extractFromDoc: Ne,
+ fetchJSON: function (e) {
+ return fetch(e, { headers: { Accept: be }, loadSpec: !0 })
+ .then((e) => e.text())
+ .then((e) => le.ZP.load(e));
+ },
+ extract: Te,
+ jsonPointerToArray: Re,
+ unescapeJsonPointerToken: Me,
+ }),
+ ke = Oe;
+ function Ae(e, t) {
+ if (!we.test(e)) {
+ if (!t)
+ throw new Ee(
+ `Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`
+ );
+ return ce.resolve(t, e);
+ }
+ return e;
+ }
+ function Ce(e, t) {
+ let n;
+ return (
+ (n =
+ e && e.response && e.response.body ? `${e.response.body.code} ${e.response.body.message}` : e.message),
+ new Ee(`Could not resolve reference: ${n}`, t, e)
+ );
+ }
+ function Pe(e) {
+ return (e + '').split('#');
+ }
+ function Ne(e, t) {
+ const n = xe[e];
+ if (n && !J.isPromise(n))
+ try {
+ const e = Te(t, n);
+ return Object.assign(Promise.resolve(e), { __value: e });
+ } catch (e) {
+ return Promise.reject(e);
+ }
+ return Ie(e).then((e) => Te(t, e));
+ }
+ function Ie(e) {
+ const t = xe[e];
+ return t
+ ? J.isPromise(t)
+ ? t
+ : Promise.resolve(t)
+ : ((xe[e] = Oe.fetchJSON(e).then((t) => ((xe[e] = t), t))), xe[e]);
+ }
+ function Te(e, t) {
+ const n = Re(e);
+ if (n.length < 1) return t;
+ const r = J.getIn(t, n);
+ if (void 0 === r)
+ throw new Ee(`Could not resolve pointer: ${e} does not exist in document`, { pointer: e });
+ return r;
+ }
+ function Re(e) {
+ if ('string' != typeof e) throw new TypeError('Expected a string, got a ' + typeof e);
+ return '/' === e[0] && (e = e.substr(1)), '' === e ? [] : e.split('/').map(Me);
+ }
+ function Me(e) {
+ if ('string' != typeof e) return e;
+ return new URLSearchParams(`=${e.replace(/~1/g, '/').replace(/~0/g, '~')}`).get('');
+ }
+ function De(e) {
+ return new URLSearchParams([['', e.replace(/~/g, '~0').replace(/\//g, '~1')]]).toString().slice(1);
+ }
+ const Fe = (e) => !e || '/' === e || '#' === e;
+ function Le(e, t) {
+ if (Fe(t)) return !0;
+ const n = e.charAt(t.length),
+ r = t.slice(-1);
+ return 0 === e.indexOf(t) && (!n || '/' === n || '#' === n) && '#' !== r;
+ }
+ const Be = {
+ key: 'allOf',
+ plugin: (e, t, n, r, o) => {
+ if (o.meta && o.meta.$$ref) return;
+ const s = n.slice(0, -1);
+ if (ye(s)) return;
+ if (!Array.isArray(e)) {
+ const e = new TypeError('allOf must be an array');
+ return (e.fullPath = n), e;
+ }
+ let i = !1,
+ a = o.value;
+ if (
+ (s.forEach((e) => {
+ a && (a = a[e]);
+ }),
+ (a = f()({}, a)),
+ 0 === Object.keys(a).length)
+ )
+ return;
+ delete a.allOf;
+ const l = [];
+ return (
+ l.push(r.replace(s, {})),
+ e.forEach((e, t) => {
+ if (!r.isObject(e)) {
+ if (i) return null;
+ i = !0;
+ const e = new TypeError('Elements in allOf must be objects');
+ return (e.fullPath = n), l.push(e);
+ }
+ l.push(r.mergeDeep(s, e));
+ const o = (function (e, t) {
+ let {
+ specmap: n,
+ getBaseUrlForNodePath: r = (e) => n.getContext([...t, ...e]).baseDoc,
+ targetKeys: o = ['$ref', '$$ref'],
+ } = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ const s = [];
+ return (
+ he()(e).forEach(function () {
+ if (o.includes(this.key) && 'string' == typeof this.node) {
+ const e = this.path,
+ o = t.concat(this.path),
+ i = ve(this.node, r(e));
+ s.push(n.replace(o, i));
+ }
+ }),
+ s
+ );
+ })(e, n.slice(0, -1), {
+ getBaseUrlForNodePath: (e) => r.getContext([...n, t, ...e]).baseDoc,
+ specmap: r,
+ });
+ l.push(...o);
+ }),
+ a.example && l.push(r.remove([].concat(s, 'example'))),
+ l.push(r.mergeDeep(s, a)),
+ a.$$ref || l.push(r.remove([].concat(s, '$$ref'))),
+ l
+ );
+ },
+ },
+ $e = {
+ key: 'parameters',
+ plugin: (e, t, n, r) => {
+ if (Array.isArray(e) && e.length) {
+ const t = Object.assign([], e),
+ o = n.slice(0, -1),
+ s = f()({}, J.getIn(r.spec, o));
+ for (let o = 0; o < e.length; o += 1) {
+ const i = e[o];
+ try {
+ t[o].default = r.parameterMacro(s, i);
+ } catch (e) {
+ const t = new Error(e);
+ return (t.fullPath = n), t;
+ }
+ }
+ return J.replace(n, t);
+ }
+ return J.replace(n, e);
+ },
+ },
+ qe = {
+ key: 'properties',
+ plugin: (e, t, n, r) => {
+ const o = f()({}, e);
+ for (const t in e)
+ try {
+ o[t].default = r.modelPropertyMacro(o[t]);
+ } catch (e) {
+ const t = new Error(e);
+ return (t.fullPath = n), t;
+ }
+ return J.replace(n, o);
+ },
+ };
+ class Ue {
+ constructor(e) {
+ this.root = ze(e || {});
+ }
+ set(e, t) {
+ const n = this.getParent(e, !0);
+ if (!n) return void Ve(this.root, t, null);
+ const r = e[e.length - 1],
+ { children: o } = n;
+ o[r] ? Ve(o[r], t, n) : (o[r] = ze(t, n));
+ }
+ get(e) {
+ if ((e = e || []).length < 1) return this.root.value;
+ let t,
+ n,
+ r = this.root;
+ for (let o = 0; o < e.length && ((n = e[o]), (t = r.children), t[n]); o += 1) r = t[n];
+ return r && r.protoValue;
+ }
+ getParent(e, t) {
+ return !e || e.length < 1
+ ? null
+ : e.length < 2
+ ? this.root
+ : e.slice(0, -1).reduce((e, n) => {
+ if (!e) return e;
+ const { children: r } = e;
+ return !r[n] && t && (r[n] = ze(null, e)), r[n];
+ }, this.root);
+ }
+ }
+ function ze(e, t) {
+ return Ve({ children: {} }, e, t);
+ }
+ function Ve(e, t, n) {
+ return (
+ (e.value = t || {}),
+ (e.protoValue = n ? f()(f()({}, n.protoValue), e.value) : e.value),
+ Object.keys(e.children).forEach((t) => {
+ const n = e.children[t];
+ e.children[t] = Ve(n, n.value, e);
+ }),
+ e
+ );
+ }
+ const We = () => {};
+ class Je {
+ static getPluginName(e) {
+ return e.pluginName;
+ }
+ static getPatchesOfType(e, t) {
+ return e.filter(t);
+ }
+ constructor(e) {
+ Object.assign(
+ this,
+ {
+ spec: '',
+ debugLevel: 'info',
+ plugins: [],
+ pluginHistory: {},
+ errors: [],
+ mutations: [],
+ promisedPatches: [],
+ state: {},
+ patches: [],
+ context: {},
+ contextTree: new Ue(),
+ showDebug: !1,
+ allPatches: [],
+ pluginProp: 'specMap',
+ libMethods: Object.assign(Object.create(this), J, { getInstance: () => this }),
+ allowMetaPatches: !1,
+ },
+ e
+ ),
+ (this.get = this._get.bind(this)),
+ (this.getContext = this._getContext.bind(this)),
+ (this.hasRun = this._hasRun.bind(this)),
+ (this.wrappedPlugins = this.plugins.map(this.wrapPlugin.bind(this)).filter(J.isFunction)),
+ this.patches.push(J.add([], this.spec)),
+ this.patches.push(J.context([], this.context)),
+ this.updatePatches(this.patches);
+ }
+ debug(e) {
+ if (this.debugLevel === e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r];
+ console.log(...n);
+ }
+ }
+ verbose(e) {
+ if ('verbose' === this.debugLevel) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r];
+ console.log(`[${e}] `, ...n);
+ }
+ }
+ wrapPlugin(e, t) {
+ const { pathDiscriminator: n } = this;
+ let r,
+ o = null;
+ return (
+ e[this.pluginProp]
+ ? ((o = e), (r = e[this.pluginProp]))
+ : J.isFunction(e)
+ ? (r = e)
+ : J.isObject(e) &&
+ (r = (function (e) {
+ const t = (e, t) => !Array.isArray(e) || e.every((e, n) => e === t[n]);
+ return function* (r, o) {
+ const s = {};
+ for (const e of r.filter(J.isAdditiveMutation)) yield* i(e.value, e.path, e);
+ function* i(r, a, l) {
+ if (J.isObject(r)) {
+ const c = a.length - 1,
+ u = a[c],
+ p = a.indexOf('properties'),
+ h = 'properties' === u && c === p,
+ f = o.allowMetaPatches && s[r.$$ref];
+ for (const c of Object.keys(r)) {
+ const u = r[c],
+ p = a.concat(c),
+ d = J.isObject(u),
+ m = r.$$ref;
+ if (
+ (f || (d && (o.allowMetaPatches && m && (s[m] = !0), yield* i(u, p, l))),
+ !h && c === e.key)
+ ) {
+ const r = t(n, a);
+ (n && !r) || (yield e.plugin(u, c, p, o, l));
+ }
+ }
+ } else e.key === a[a.length - 1] && (yield e.plugin(r, e.key, a, o));
+ }
+ };
+ })(e)),
+ Object.assign(r.bind(o), { pluginName: e.name || t, isGenerator: J.isGenerator(r) })
+ );
+ }
+ nextPlugin() {
+ return this.wrappedPlugins.find((e) => this.getMutationsForPlugin(e).length > 0);
+ }
+ nextPromisedPatch() {
+ if (this.promisedPatches.length > 0) return Promise.race(this.promisedPatches.map((e) => e.value));
+ }
+ getPluginHistory(e) {
+ const t = this.constructor.getPluginName(e);
+ return this.pluginHistory[t] || [];
+ }
+ getPluginRunCount(e) {
+ return this.getPluginHistory(e).length;
+ }
+ getPluginHistoryTip(e) {
+ const t = this.getPluginHistory(e);
+ return (t && t[t.length - 1]) || {};
+ }
+ getPluginMutationIndex(e) {
+ const t = this.getPluginHistoryTip(e).mutationIndex;
+ return 'number' != typeof t ? -1 : t;
+ }
+ updatePluginHistory(e, t) {
+ const n = this.constructor.getPluginName(e);
+ (this.pluginHistory[n] = this.pluginHistory[n] || []), this.pluginHistory[n].push(t);
+ }
+ updatePatches(e) {
+ J.normalizeArray(e).forEach((e) => {
+ if (e instanceof Error) this.errors.push(e);
+ else
+ try {
+ if (!J.isObject(e)) return void this.debug('updatePatches', 'Got a non-object patch', e);
+ if ((this.showDebug && this.allPatches.push(e), J.isPromise(e.value)))
+ return this.promisedPatches.push(e), void this.promisedPatchThen(e);
+ if (J.isContextPatch(e)) return void this.setContext(e.path, e.value);
+ J.isMutation(e) && this.updateMutations(e);
+ } catch (e) {
+ console.error(e), this.errors.push(e);
+ }
+ });
+ }
+ updateMutations(e) {
+ 'object' == typeof e.value &&
+ !Array.isArray(e.value) &&
+ this.allowMetaPatches &&
+ (e.value = f()({}, e.value));
+ const t = J.applyPatch(this.state, e, { allowMetaPatches: this.allowMetaPatches });
+ t && (this.mutations.push(e), (this.state = t));
+ }
+ removePromisedPatch(e) {
+ const t = this.promisedPatches.indexOf(e);
+ t < 0
+ ? this.debug("Tried to remove a promisedPatch that isn't there!")
+ : this.promisedPatches.splice(t, 1);
+ }
+ promisedPatchThen(e) {
+ return (
+ (e.value = e.value
+ .then((t) => {
+ const n = f()(f()({}, e), {}, { value: t });
+ this.removePromisedPatch(e), this.updatePatches(n);
+ })
+ .catch((t) => {
+ this.removePromisedPatch(e), this.updatePatches(t);
+ })),
+ e.value
+ );
+ }
+ getMutations(e, t) {
+ return (e = e || 0), 'number' != typeof t && (t = this.mutations.length), this.mutations.slice(e, t);
+ }
+ getCurrentMutations() {
+ return this.getMutationsForPlugin(this.getCurrentPlugin());
+ }
+ getMutationsForPlugin(e) {
+ const t = this.getPluginMutationIndex(e);
+ return this.getMutations(t + 1);
+ }
+ getCurrentPlugin() {
+ return this.currentPlugin;
+ }
+ getLib() {
+ return this.libMethods;
+ }
+ _get(e) {
+ return J.getIn(this.state, e);
+ }
+ _getContext(e) {
+ return this.contextTree.get(e);
+ }
+ setContext(e, t) {
+ return this.contextTree.set(e, t);
+ }
+ _hasRun(e) {
+ return this.getPluginRunCount(this.getCurrentPlugin()) > (e || 0);
+ }
+ dispatch() {
+ const e = this,
+ t = this.nextPlugin();
+ if (!t) {
+ const e = this.nextPromisedPatch();
+ if (e) return e.then(() => this.dispatch()).catch(() => this.dispatch());
+ const t = { spec: this.state, errors: this.errors };
+ return this.showDebug && (t.patches = this.allPatches), Promise.resolve(t);
+ }
+ if (
+ ((e.pluginCount = e.pluginCount || {}),
+ (e.pluginCount[t] = (e.pluginCount[t] || 0) + 1),
+ e.pluginCount[t] > 100)
+ )
+ return Promise.resolve({
+ spec: e.state,
+ errors: e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs")),
+ });
+ if (t !== this.currentPlugin && this.promisedPatches.length) {
+ const e = this.promisedPatches.map((e) => e.value);
+ return Promise.all(e.map((e) => e.then(We, We))).then(() => this.dispatch());
+ }
+ return (function () {
+ e.currentPlugin = t;
+ const r = e.getCurrentMutations(),
+ o = e.mutations.length - 1;
+ try {
+ if (t.isGenerator) for (const o of t(r, e.getLib())) n(o);
+ else {
+ n(t(r, e.getLib()));
+ }
+ } catch (e) {
+ console.error(e), n([Object.assign(Object.create(e), { plugin: t })]);
+ } finally {
+ e.updatePluginHistory(t, { mutationIndex: o });
+ }
+ return e.dispatch();
+ })();
+ function n(n) {
+ n && ((n = J.fullyNormalizeArray(n)), e.updatePatches(n, t));
+ }
+ }
+ }
+ const Ke = { refs: ke, allOf: Be, parameters: $e, properties: qe };
+ var He = n(32454);
+ function Ge(e) {
+ const { spec: t } = e,
+ { paths: n } = t,
+ r = {};
+ if (!n || t.$$normalized) return e;
+ for (const e in n) {
+ const o = n[e];
+ if (null == o || !['object', 'function'].includes(typeof o)) continue;
+ const s = o.parameters;
+ for (const n in o) {
+ const i = o[n];
+ if (null == i || !['object', 'function'].includes(typeof i)) continue;
+ const a = (0, He.Z)(i, e, n);
+ if (a) {
+ r[a] ? r[a].push(i) : (r[a] = [i]);
+ const e = r[a];
+ if (e.length > 1)
+ e.forEach((e, t) => {
+ (e.__originalOperationId = e.__originalOperationId || e.operationId),
+ (e.operationId = `${a}${t + 1}`);
+ });
+ else if (void 0 !== i.operationId) {
+ const t = e[0];
+ (t.__originalOperationId = t.__originalOperationId || i.operationId), (t.operationId = a);
+ }
+ }
+ if ('parameters' !== n) {
+ const e = [],
+ n = {};
+ for (const r in t)
+ ('produces' !== r && 'consumes' !== r && 'security' !== r) || ((n[r] = t[r]), e.push(n));
+ if ((s && ((n.parameters = s), e.push(n)), e.length))
+ for (const t of e)
+ for (const e in t)
+ if (i[e]) {
+ if ('parameters' === e)
+ for (const n of t[e]) {
+ i[e].some(
+ (e) =>
+ (e.name && e.name === n.name) ||
+ (e.$ref && e.$ref === n.$ref) ||
+ (e.$$ref && e.$$ref === n.$$ref) ||
+ e === n
+ ) || i[e].push(n);
+ }
+ } else i[e] = t[e];
+ }
+ }
+ }
+ return (t.$$normalized = !0), e;
+ }
+ function Ze(e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ const { requestInterceptor: n, responseInterceptor: r } = t,
+ o = e.withCredentials ? 'include' : 'same-origin';
+ return (t) =>
+ e({
+ url: t,
+ loadSpec: !0,
+ requestInterceptor: n,
+ responseInterceptor: r,
+ headers: { Accept: be },
+ credentials: o,
+ }).then((e) => e.body);
+ }
+ var Ye = n(80129),
+ Xe = n.n(Ye);
+ const Qe = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof self ? self : window,
+ { FormData: et, Blob: tt, File: nt } = Qe,
+ rt = (e) => ":/?#[]@!$&'()*+,;=".indexOf(e) > -1,
+ ot = (e) => /^[a-z0-9\-._~]+$/i.test(e);
+ function st(e) {
+ let { escape: t } = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
+ n = arguments.length > 2 ? arguments[2] : void 0;
+ return (
+ 'number' == typeof e && (e = e.toString()),
+ 'string' == typeof e && e.length && t
+ ? n
+ ? JSON.parse(e)
+ : [...e]
+ .map((e) => {
+ if (ot(e)) return e;
+ if (rt(e) && 'unsafe' === t) return e;
+ const n = new TextEncoder();
+ return Array.from(n.encode(e))
+ .map((e) => `0${e.toString(16).toUpperCase()}`.slice(-2))
+ .map((e) => `%${e}`)
+ .join('');
+ })
+ .join('')
+ : e
+ );
+ }
+ function it(e) {
+ const { value: t } = e;
+ return Array.isArray(t)
+ ? (function (e) {
+ let { key: t, value: n, style: r, explode: o, escape: s } = e;
+ const i = (e) => st(e, { escape: s });
+ if ('simple' === r) return n.map((e) => i(e)).join(',');
+ if ('label' === r) return `.${n.map((e) => i(e)).join('.')}`;
+ if ('matrix' === r)
+ return n.map((e) => i(e)).reduce((e, n) => (!e || o ? `${e || ''};${t}=${n}` : `${e},${n}`), '');
+ if ('form' === r) {
+ const e = o ? `&${t}=` : ',';
+ return n.map((e) => i(e)).join(e);
+ }
+ if ('spaceDelimited' === r) {
+ const e = o ? `${t}=` : '';
+ return n.map((e) => i(e)).join(` ${e}`);
+ }
+ if ('pipeDelimited' === r) {
+ const e = o ? `${t}=` : '';
+ return n.map((e) => i(e)).join(`|${e}`);
+ }
+ return;
+ })(e)
+ : 'object' == typeof t
+ ? (function (e) {
+ let { key: t, value: n, style: r, explode: o, escape: s } = e;
+ const i = (e) => st(e, { escape: s }),
+ a = Object.keys(n);
+ if ('simple' === r)
+ return a.reduce((e, t) => {
+ const r = i(n[t]);
+ return `${e ? `${e},` : ''}${t}${o ? '=' : ','}${r}`;
+ }, '');
+ if ('label' === r)
+ return a.reduce((e, t) => {
+ const r = i(n[t]);
+ return `${e ? `${e}.` : '.'}${t}${o ? '=' : '.'}${r}`;
+ }, '');
+ if ('matrix' === r && o) return a.reduce((e, t) => `${e ? `${e};` : ';'}${t}=${i(n[t])}`, '');
+ if ('matrix' === r)
+ return a.reduce((e, r) => {
+ const o = i(n[r]);
+ return `${e ? `${e},` : `;${t}=`}${r},${o}`;
+ }, '');
+ if ('form' === r)
+ return a.reduce((e, t) => {
+ const r = i(n[t]);
+ return `${e ? `${e}${o ? '&' : ','}` : ''}${t}${o ? '=' : ','}${r}`;
+ }, '');
+ return;
+ })(e)
+ : (function (e) {
+ let { key: t, value: n, style: r, escape: o } = e;
+ const s = (e) => st(e, { escape: o });
+ if ('simple' === r) return s(n);
+ if ('label' === r) return `.${s(n)}`;
+ if ('matrix' === r) return `;${t}=${s(n)}`;
+ if ('form' === r) return s(n);
+ if ('deepObject' === r) return s(n, {}, !0);
+ return;
+ })(e);
+ }
+ const at = (e, t) => {
+ t.body = e;
+ },
+ lt = { serializeRes: pt, mergeInQueryOrForm: wt };
+ async function ct(e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ 'object' == typeof e && ((t = e), (e = t.url)),
+ (t.headers = t.headers || {}),
+ lt.mergeInQueryOrForm(t),
+ t.headers &&
+ Object.keys(t.headers).forEach((e) => {
+ const n = t.headers[e];
+ 'string' == typeof n && (t.headers[e] = n.replace(/\n+/g, ' '));
+ }),
+ t.requestInterceptor && (t = (await t.requestInterceptor(t)) || t);
+ const n = t.headers['content-type'] || t.headers['Content-Type'];
+ let r;
+ /multipart\/form-data/i.test(n) &&
+ t.body instanceof et &&
+ (delete t.headers['content-type'], delete t.headers['Content-Type']);
+ try {
+ (r = await (t.userFetch || fetch)(t.url, t)),
+ (r = await lt.serializeRes(r, e, t)),
+ t.responseInterceptor && (r = (await t.responseInterceptor(r)) || r);
+ } catch (e) {
+ if (!r) throw e;
+ const t = new Error(r.statusText || `response status is ${r.status}`);
+ throw ((t.status = r.status), (t.statusCode = r.status), (t.responseError = e), t);
+ }
+ if (!r.ok) {
+ const e = new Error(r.statusText || `response status is ${r.status}`);
+ throw ((e.status = r.status), (e.statusCode = r.status), (e.response = r), e);
+ }
+ return r;
+ }
+ const ut = function () {
+ return /(json|xml|yaml|text)\b/.test(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '');
+ };
+ function pt(e, t) {
+ let { loadSpec: n = !1 } = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ const r = { ok: e.ok, url: e.url || t, status: e.status, statusText: e.statusText, headers: ht(e.headers) },
+ o = r.headers['content-type'],
+ s = n || ut(o);
+ return (s ? e.text : e.blob || e.buffer).call(e).then((e) => {
+ if (((r.text = e), (r.data = e), s))
+ try {
+ const t = (function (e, t) {
+ return t && (0 === t.indexOf('application/json') || t.indexOf('+json') > 0)
+ ? JSON.parse(e)
+ : le.ZP.load(e);
+ })(e, o);
+ (r.body = t), (r.obj = t);
+ } catch (e) {
+ r.parseError = e;
+ }
+ return r;
+ });
+ }
+ function ht() {
+ let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
+ return 'function' != typeof e.entries
+ ? {}
+ : Array.from(e.entries()).reduce((e, t) => {
+ let [n, r] = t;
+ return (
+ (e[n] = (function (e) {
+ return e.includes(', ') ? e.split(', ') : e;
+ })(r)),
+ e
+ );
+ }, {});
+ }
+ function ft(e, t) {
+ return (
+ t || 'undefined' == typeof navigator || (t = navigator),
+ t && 'ReactNative' === t.product
+ ? !(!e || 'object' != typeof e || 'string' != typeof e.uri)
+ : (void 0 !== nt && e instanceof nt) ||
+ (void 0 !== tt && e instanceof tt) ||
+ !!ArrayBuffer.isView(e) ||
+ (null !== e && 'object' == typeof e && 'function' == typeof e.pipe)
+ );
+ }
+ function dt(e, t) {
+ return Array.isArray(e) && e.some((e) => ft(e, t));
+ }
+ const mt = { form: ',', spaceDelimited: '%20', pipeDelimited: '|' },
+ gt = { csv: ',', ssv: '%20', tsv: '%09', pipes: '|' };
+ function yt(e, t) {
+ let n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
+ const { collectionFormat: r, allowEmptyValue: o, serializationOption: s, encoding: i } = t,
+ a = 'object' != typeof t || Array.isArray(t) ? t : t.value,
+ l = n ? (e) => e.toString() : (e) => encodeURIComponent(e),
+ c = l(e);
+ if (void 0 === a && o) return [[c, '']];
+ if (ft(a) || dt(a)) return [[c, a]];
+ if (s) return vt(e, a, n, s);
+ if (i) {
+ if ([typeof i.style, typeof i.explode, typeof i.allowReserved].some((e) => 'undefined' !== e)) {
+ const { style: t, explode: r, allowReserved: o } = i;
+ return vt(e, a, n, { style: t, explode: r, allowReserved: o });
+ }
+ if (i.contentType) {
+ if ('application/json' === i.contentType) {
+ return [[c, l('string' == typeof a ? a : JSON.stringify(a))]];
+ }
+ return [[c, l(a.toString())]];
+ }
+ return 'object' != typeof a
+ ? [[c, l(a)]]
+ : Array.isArray(a) && a.every((e) => 'object' != typeof e)
+ ? [[c, a.map(l).join(',')]]
+ : [[c, l(JSON.stringify(a))]];
+ }
+ return 'object' != typeof a
+ ? [[c, l(a)]]
+ : Array.isArray(a)
+ ? 'multi' === r
+ ? [[c, a.map(l)]]
+ : [[c, a.map(l).join(gt[r || 'csv'])]]
+ : [[c, '']];
+ }
+ function vt(e, t, n, r) {
+ const o = r.style || 'form',
+ s = void 0 === r.explode ? 'form' === o : r.explode,
+ i = !n && (r && r.allowReserved ? 'unsafe' : 'reserved'),
+ a = (e) => st(e, { escape: i }),
+ l = n ? (e) => e : (e) => st(e, { escape: i });
+ return 'object' != typeof t
+ ? [[l(e), a(t)]]
+ : Array.isArray(t)
+ ? s
+ ? [[l(e), t.map(a)]]
+ : [[l(e), t.map(a).join(mt[o])]]
+ : 'deepObject' === o
+ ? Object.keys(t).map((n) => [l(`${e}[${n}]`), a(t[n])])
+ : s
+ ? Object.keys(t).map((e) => [l(e), a(t[e])])
+ : [
+ [
+ l(e),
+ Object.keys(t)
+ .map((e) => [`${l(e)},${a(t[e])}`])
+ .join(','),
+ ],
+ ];
+ }
+ function bt(e) {
+ const t = Object.keys(e).reduce((t, n) => {
+ for (const [r, o] of yt(n, e[n])) t[r] = o;
+ return t;
+ }, {});
+ return Xe().stringify(t, { encode: !1, indices: !1 }) || '';
+ }
+ function wt() {
+ let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
+ const { url: t = '', query: n, form: r } = e;
+ if (r) {
+ const t = Object.keys(r).some((e) => {
+ const { value: t } = r[e];
+ return ft(t) || dt(t);
+ }),
+ n = e.headers['content-type'] || e.headers['Content-Type'];
+ if (t || /multipart\/form-data/i.test(n)) {
+ const t =
+ ((o = e.form),
+ Object.entries(o).reduce((e, t) => {
+ let [n, r] = t;
+ for (const [t, o] of yt(n, r, !0))
+ if (Array.isArray(o))
+ for (const n of o)
+ if (ArrayBuffer.isView(n)) {
+ const r = new tt([n]);
+ e.append(t, r);
+ } else e.append(t, n);
+ else if (ArrayBuffer.isView(o)) {
+ const n = new tt([o]);
+ e.append(t, n);
+ } else e.append(t, o);
+ return e;
+ }, new et()));
+ at(t, e);
+ } else e.body = bt(r);
+ delete e.form;
+ }
+ var o;
+ if (n) {
+ const [r, o] = t.split('?');
+ let s = '';
+ if (o) {
+ const e = Xe().parse(o);
+ Object.keys(n).forEach((t) => delete e[t]), (s = Xe().stringify(e, { encode: !0 }));
+ }
+ const i = (function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
+ const r = t.filter((e) => e).join('&');
+ return r ? `?${r}` : '';
+ })(s, bt(n));
+ (e.url = r + i), delete e.query;
+ }
+ return e;
+ }
+ const Et = (e) => {
+ const { baseDoc: t, url: n } = e;
+ return t || n || '';
+ },
+ xt = (e) => {
+ const { fetch: t, http: n } = e;
+ return t || n || ct;
+ };
+ async function St(e) {
+ const {
+ spec: t,
+ mode: n,
+ allowMetaPatches: r = !0,
+ pathDiscriminator: o,
+ modelPropertyMacro: s,
+ parameterMacro: i,
+ requestInterceptor: a,
+ responseInterceptor: l,
+ skipNormalization: c,
+ useCircularStructures: u,
+ } = e,
+ p = Et(e),
+ h = xt(e);
+ return (function (e) {
+ p && (Ke.refs.docCache[p] = e);
+ Ke.refs.fetchJSON = Ze(h, { requestInterceptor: a, responseInterceptor: l });
+ const t = [Ke.refs];
+ 'function' == typeof i && t.push(Ke.parameters);
+ 'function' == typeof s && t.push(Ke.properties);
+ 'strict' !== n && t.push(Ke.allOf);
+ return ((f = {
+ spec: e,
+ context: { baseDoc: p },
+ plugins: t,
+ allowMetaPatches: r,
+ pathDiscriminator: o,
+ parameterMacro: i,
+ modelPropertyMacro: s,
+ useCircularStructures: u,
+ }),
+ new Je(f).dispatch()).then(c ? async (e) => e : Ge);
+ var f;
+ })(t);
+ }
+ const _t = {
+ name: 'generic',
+ match: () => !0,
+ normalize(e) {
+ let { spec: t } = e;
+ const { spec: n } = Ge({ spec: t });
+ return n;
+ },
+ resolve: async (e) => St(e),
+ };
+ const jt = (e) => {
+ try {
+ const { openapi: t } = e;
+ return 'string' == typeof t && /^3\.0\.([0123])(?:-rc[012])?$/.test(t);
+ } catch {
+ return !1;
+ }
+ },
+ Ot = (e) => {
+ try {
+ const { openapi: t } = e;
+ return 'string' == typeof t && /^3\.1\.(?:[1-9]\d*|0)$/.test(t);
+ } catch {
+ return !1;
+ }
+ },
+ kt = (e) => jt(e) || Ot(e),
+ At = {
+ name: 'openapi-2',
+ match(e) {
+ let { spec: t } = e;
+ return ((e) => {
+ try {
+ const { swagger: t } = e;
+ return '2.0' === t;
+ } catch {
+ return !1;
+ }
+ })(t);
+ },
+ normalize(e) {
+ let { spec: t } = e;
+ const { spec: n } = Ge({ spec: t });
+ return n;
+ },
+ resolve: async (e) =>
+ (async function (e) {
+ return St(e);
+ })(e),
+ };
+ const Ct = {
+ name: 'openapi-3-0',
+ match(e) {
+ let { spec: t } = e;
+ return jt(t);
+ },
+ normalize(e) {
+ let { spec: t } = e;
+ const { spec: n } = Ge({ spec: t });
+ return n;
+ },
+ resolve: async (e) =>
+ (async function (e) {
+ return St(e);
+ })(e),
+ };
+ var Pt = n(43500);
+ class Nt extends Pt.RP {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'annotation');
+ }
+ get code() {
+ return this.attributes.get('code');
+ }
+ set code(e) {
+ this.attributes.set('code', e);
+ }
+ }
+ const It = Nt;
+ class Tt extends Pt.RP {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'comment');
+ }
+ }
+ const Rt = Tt;
+ const Mt = function () {
+ return !1;
+ };
+ const Dt = function () {
+ return !0;
+ };
+ function Ft(e) {
+ return null != e && 'object' == typeof e && !0 === e['@@functional/placeholder'];
+ }
+ function Lt(e) {
+ return function t(n) {
+ return 0 === arguments.length || Ft(n) ? t : e.apply(this, arguments);
+ };
+ }
+ function Bt(e) {
+ return function t(n, r) {
+ switch (arguments.length) {
+ case 0:
+ return t;
+ case 1:
+ return Ft(n)
+ ? t
+ : Lt(function (t) {
+ return e(n, t);
+ });
+ default:
+ return Ft(n) && Ft(r)
+ ? t
+ : Ft(n)
+ ? Lt(function (t) {
+ return e(t, r);
+ })
+ : Ft(r)
+ ? Lt(function (t) {
+ return e(n, t);
+ })
+ : e(n, r);
+ }
+ };
+ }
+ const $t =
+ Array.isArray ||
+ function (e) {
+ return null != e && e.length >= 0 && '[object Array]' === Object.prototype.toString.call(e);
+ };
+ function qt(e, t, n) {
+ return function () {
+ if (0 === arguments.length) return n();
+ var r = arguments[arguments.length - 1];
+ if (!$t(r)) {
+ for (var o = 0; o < e.length; ) {
+ if ('function' == typeof r[e[o]])
+ return r[e[o]].apply(r, Array.prototype.slice.call(arguments, 0, -1));
+ o += 1;
+ }
+ if (
+ (function (e) {
+ return null != e && 'function' == typeof e['@@transducer/step'];
+ })(r)
+ )
+ return t.apply(null, Array.prototype.slice.call(arguments, 0, -1))(r);
+ }
+ return n.apply(this, arguments);
+ };
+ }
+ function Ut(e) {
+ return e && e['@@transducer/reduced'] ? e : { '@@transducer/value': e, '@@transducer/reduced': !0 };
+ }
+ const zt = function () {
+ return this.xf['@@transducer/init']();
+ },
+ Vt = function (e) {
+ return this.xf['@@transducer/result'](e);
+ };
+ var Wt = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e), (this.all = !0);
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = function (e) {
+ return this.all && (e = this.xf['@@transducer/step'](e, !0)), this.xf['@@transducer/result'](e);
+ }),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ return this.f(t) || ((this.all = !1), (e = Ut(this.xf['@@transducer/step'](e, !1)))), e;
+ }),
+ e
+ );
+ })();
+ function Jt(e) {
+ return function (t) {
+ return new Wt(e, t);
+ };
+ }
+ const Kt = Bt(
+ qt(['all'], Jt, function (e, t) {
+ for (var n = 0; n < t.length; ) {
+ if (!e(t[n])) return !1;
+ n += 1;
+ }
+ return !0;
+ })
+ );
+ function Ht(e, t) {
+ switch (e) {
+ case 0:
+ return function () {
+ return t.apply(this, arguments);
+ };
+ case 1:
+ return function (e) {
+ return t.apply(this, arguments);
+ };
+ case 2:
+ return function (e, n) {
+ return t.apply(this, arguments);
+ };
+ case 3:
+ return function (e, n, r) {
+ return t.apply(this, arguments);
+ };
+ case 4:
+ return function (e, n, r, o) {
+ return t.apply(this, arguments);
+ };
+ case 5:
+ return function (e, n, r, o, s) {
+ return t.apply(this, arguments);
+ };
+ case 6:
+ return function (e, n, r, o, s, i) {
+ return t.apply(this, arguments);
+ };
+ case 7:
+ return function (e, n, r, o, s, i, a) {
+ return t.apply(this, arguments);
+ };
+ case 8:
+ return function (e, n, r, o, s, i, a, l) {
+ return t.apply(this, arguments);
+ };
+ case 9:
+ return function (e, n, r, o, s, i, a, l, c) {
+ return t.apply(this, arguments);
+ };
+ case 10:
+ return function (e, n, r, o, s, i, a, l, c, u) {
+ return t.apply(this, arguments);
+ };
+ default:
+ throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
+ }
+ }
+ function Gt(e, t, n) {
+ return function () {
+ for (var r = [], o = 0, s = e, i = 0; i < t.length || o < arguments.length; ) {
+ var a;
+ i < t.length && (!Ft(t[i]) || o >= arguments.length) ? (a = t[i]) : ((a = arguments[o]), (o += 1)),
+ (r[i] = a),
+ Ft(a) || (s -= 1),
+ (i += 1);
+ }
+ return s <= 0 ? n.apply(this, r) : Ht(s, Gt(e, r, n));
+ };
+ }
+ const Zt = Bt(function (e, t) {
+ return 1 === e ? Lt(t) : Ht(e, Gt(e, [], t));
+ });
+ function Yt(e) {
+ for (var t, n = []; !(t = e.next()).done; ) n.push(t.value);
+ return n;
+ }
+ function Xt(e, t, n) {
+ for (var r = 0, o = n.length; r < o; ) {
+ if (e(t, n[r])) return !0;
+ r += 1;
+ }
+ return !1;
+ }
+ function Qt(e, t) {
+ return Object.prototype.hasOwnProperty.call(t, e);
+ }
+ const en =
+ 'function' == typeof Object.is
+ ? Object.is
+ : function (e, t) {
+ return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
+ };
+ var tn = Object.prototype.toString;
+ const nn = (function () {
+ return '[object Arguments]' === tn.call(arguments)
+ ? function (e) {
+ return '[object Arguments]' === tn.call(e);
+ }
+ : function (e) {
+ return Qt('callee', e);
+ };
+ })();
+ var rn = !{ toString: null }.propertyIsEnumerable('toString'),
+ on = [
+ 'constructor',
+ 'valueOf',
+ 'isPrototypeOf',
+ 'toString',
+ 'propertyIsEnumerable',
+ 'hasOwnProperty',
+ 'toLocaleString',
+ ],
+ sn = (function () {
+ return arguments.propertyIsEnumerable('length');
+ })(),
+ an = function (e, t) {
+ for (var n = 0; n < e.length; ) {
+ if (e[n] === t) return !0;
+ n += 1;
+ }
+ return !1;
+ };
+ const ln =
+ 'function' != typeof Object.keys || sn
+ ? Lt(function (e) {
+ if (Object(e) !== e) return [];
+ var t,
+ n,
+ r = [],
+ o = sn && nn(e);
+ for (t in e) !Qt(t, e) || (o && 'length' === t) || (r[r.length] = t);
+ if (rn)
+ for (n = on.length - 1; n >= 0; ) Qt((t = on[n]), e) && !an(r, t) && (r[r.length] = t), (n -= 1);
+ return r;
+ })
+ : Lt(function (e) {
+ return Object(e) !== e ? [] : Object.keys(e);
+ });
+ const cn = Lt(function (e) {
+ return null === e ? 'Null' : void 0 === e ? 'Undefined' : Object.prototype.toString.call(e).slice(8, -1);
+ });
+ function un(e, t, n, r) {
+ var o = Yt(e);
+ function s(e, t) {
+ return pn(e, t, n.slice(), r.slice());
+ }
+ return !Xt(
+ function (e, t) {
+ return !Xt(s, t, e);
+ },
+ Yt(t),
+ o
+ );
+ }
+ function pn(e, t, n, r) {
+ if (en(e, t)) return !0;
+ var o,
+ s,
+ i = cn(e);
+ if (i !== cn(t)) return !1;
+ if ('function' == typeof e['fantasy-land/equals'] || 'function' == typeof t['fantasy-land/equals'])
+ return (
+ 'function' == typeof e['fantasy-land/equals'] &&
+ e['fantasy-land/equals'](t) &&
+ 'function' == typeof t['fantasy-land/equals'] &&
+ t['fantasy-land/equals'](e)
+ );
+ if ('function' == typeof e.equals || 'function' == typeof t.equals)
+ return 'function' == typeof e.equals && e.equals(t) && 'function' == typeof t.equals && t.equals(e);
+ switch (i) {
+ case 'Arguments':
+ case 'Array':
+ case 'Object':
+ if (
+ 'function' == typeof e.constructor &&
+ 'Promise' === ((o = e.constructor), null == (s = String(o).match(/^function (\w*)/)) ? '' : s[1])
+ )
+ return e === t;
+ break;
+ case 'Boolean':
+ case 'Number':
+ case 'String':
+ if (typeof e != typeof t || !en(e.valueOf(), t.valueOf())) return !1;
+ break;
+ case 'Date':
+ if (!en(e.valueOf(), t.valueOf())) return !1;
+ break;
+ case 'Error':
+ return e.name === t.name && e.message === t.message;
+ case 'RegExp':
+ if (
+ e.source !== t.source ||
+ e.global !== t.global ||
+ e.ignoreCase !== t.ignoreCase ||
+ e.multiline !== t.multiline ||
+ e.sticky !== t.sticky ||
+ e.unicode !== t.unicode
+ )
+ return !1;
+ }
+ for (var a = n.length - 1; a >= 0; ) {
+ if (n[a] === e) return r[a] === t;
+ a -= 1;
+ }
+ switch (i) {
+ case 'Map':
+ return e.size === t.size && un(e.entries(), t.entries(), n.concat([e]), r.concat([t]));
+ case 'Set':
+ return e.size === t.size && un(e.values(), t.values(), n.concat([e]), r.concat([t]));
+ case 'Arguments':
+ case 'Array':
+ case 'Object':
+ case 'Boolean':
+ case 'Number':
+ case 'String':
+ case 'Date':
+ case 'Error':
+ case 'RegExp':
+ case 'Int8Array':
+ case 'Uint8Array':
+ case 'Uint8ClampedArray':
+ case 'Int16Array':
+ case 'Uint16Array':
+ case 'Int32Array':
+ case 'Uint32Array':
+ case 'Float32Array':
+ case 'Float64Array':
+ case 'ArrayBuffer':
+ break;
+ default:
+ return !1;
+ }
+ var l = ln(e);
+ if (l.length !== ln(t).length) return !1;
+ var c = n.concat([e]),
+ u = r.concat([t]);
+ for (a = l.length - 1; a >= 0; ) {
+ var p = l[a];
+ if (!Qt(p, t) || !pn(t[p], e[p], c, u)) return !1;
+ a -= 1;
+ }
+ return !0;
+ }
+ const hn = Bt(function (e, t) {
+ return pn(e, t, [], []);
+ });
+ function fn(e, t) {
+ return (
+ (function (e, t, n) {
+ var r, o;
+ if ('function' == typeof e.indexOf)
+ switch (typeof t) {
+ case 'number':
+ if (0 === t) {
+ for (r = 1 / t; n < e.length; ) {
+ if (0 === (o = e[n]) && 1 / o === r) return n;
+ n += 1;
+ }
+ return -1;
+ }
+ if (t != t) {
+ for (; n < e.length; ) {
+ if ('number' == typeof (o = e[n]) && o != o) return n;
+ n += 1;
+ }
+ return -1;
+ }
+ return e.indexOf(t, n);
+ case 'string':
+ case 'boolean':
+ case 'function':
+ case 'undefined':
+ return e.indexOf(t, n);
+ case 'object':
+ if (null === t) return e.indexOf(t, n);
+ }
+ for (; n < e.length; ) {
+ if (hn(e[n], t)) return n;
+ n += 1;
+ }
+ return -1;
+ })(t, e, 0) >= 0
+ );
+ }
+ function dn(e, t) {
+ for (var n = 0, r = t.length, o = Array(r); n < r; ) (o[n] = e(t[n])), (n += 1);
+ return o;
+ }
+ function mn(e) {
+ return (
+ '"' +
+ e
+ .replace(/\\/g, '\\\\')
+ .replace(/[\b]/g, '\\b')
+ .replace(/\f/g, '\\f')
+ .replace(/\n/g, '\\n')
+ .replace(/\r/g, '\\r')
+ .replace(/\t/g, '\\t')
+ .replace(/\v/g, '\\v')
+ .replace(/\0/g, '\\0')
+ .replace(/"/g, '\\"') +
+ '"'
+ );
+ }
+ var gn = function (e) {
+ return (e < 10 ? '0' : '') + e;
+ };
+ const yn =
+ 'function' == typeof Date.prototype.toISOString
+ ? function (e) {
+ return e.toISOString();
+ }
+ : function (e) {
+ return (
+ e.getUTCFullYear() +
+ '-' +
+ gn(e.getUTCMonth() + 1) +
+ '-' +
+ gn(e.getUTCDate()) +
+ 'T' +
+ gn(e.getUTCHours()) +
+ ':' +
+ gn(e.getUTCMinutes()) +
+ ':' +
+ gn(e.getUTCSeconds()) +
+ '.' +
+ (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) +
+ 'Z'
+ );
+ };
+ function vn(e) {
+ return function () {
+ return !e.apply(this, arguments);
+ };
+ }
+ function bn(e, t, n) {
+ for (var r = 0, o = n.length; r < o; ) (t = e(t, n[r])), (r += 1);
+ return t;
+ }
+ function wn(e) {
+ return '[object Object]' === Object.prototype.toString.call(e);
+ }
+ var En = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e);
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = Vt),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ return this.f(t) ? this.xf['@@transducer/step'](e, t) : e;
+ }),
+ e
+ );
+ })();
+ function xn(e) {
+ return function (t) {
+ return new En(e, t);
+ };
+ }
+ const Sn = Bt(
+ qt(['fantasy-land/filter', 'filter'], xn, function (e, t) {
+ return wn(t)
+ ? bn(
+ function (n, r) {
+ return e(t[r]) && (n[r] = t[r]), n;
+ },
+ {},
+ ln(t)
+ )
+ : (function (e, t) {
+ for (var n = 0, r = t.length, o = []; n < r; ) e(t[n]) && (o[o.length] = t[n]), (n += 1);
+ return o;
+ })(e, t);
+ })
+ );
+ const _n = Bt(function (e, t) {
+ return Sn(vn(e), t);
+ });
+ function jn(e, t) {
+ var n = function (n) {
+ var r = t.concat([e]);
+ return fn(n, r) ? '' : jn(n, r);
+ },
+ r = function (e, t) {
+ return dn(function (t) {
+ return mn(t) + ': ' + n(e[t]);
+ }, t.slice().sort());
+ };
+ switch (Object.prototype.toString.call(e)) {
+ case '[object Arguments]':
+ return '(function() { return arguments; }(' + dn(n, e).join(', ') + '))';
+ case '[object Array]':
+ return (
+ '[' +
+ dn(n, e)
+ .concat(
+ r(
+ e,
+ _n(function (e) {
+ return /^\d+$/.test(e);
+ }, ln(e))
+ )
+ )
+ .join(', ') +
+ ']'
+ );
+ case '[object Boolean]':
+ return 'object' == typeof e ? 'new Boolean(' + n(e.valueOf()) + ')' : e.toString();
+ case '[object Date]':
+ return 'new Date(' + (isNaN(e.valueOf()) ? n(NaN) : mn(yn(e))) + ')';
+ case '[object Map]':
+ return 'new Map(' + n(Array.from(e)) + ')';
+ case '[object Null]':
+ return 'null';
+ case '[object Number]':
+ return 'object' == typeof e
+ ? 'new Number(' + n(e.valueOf()) + ')'
+ : 1 / e == -1 / 0
+ ? '-0'
+ : e.toString(10);
+ case '[object Set]':
+ return 'new Set(' + n(Array.from(e).sort()) + ')';
+ case '[object String]':
+ return 'object' == typeof e ? 'new String(' + n(e.valueOf()) + ')' : mn(e);
+ case '[object Undefined]':
+ return 'undefined';
+ default:
+ if ('function' == typeof e.toString) {
+ var o = e.toString();
+ if ('[object Object]' !== o) return o;
+ }
+ return '{' + r(e, ln(e)).join(', ') + '}';
+ }
+ }
+ const On = Lt(function (e) {
+ return jn(e, []);
+ });
+ const kn = Bt(function (e, t) {
+ if (e === t) return t;
+ function n(e, t) {
+ if (e > t != t > e) return t > e ? t : e;
+ }
+ var r = n(e, t);
+ if (void 0 !== r) return r;
+ var o = n(typeof e, typeof t);
+ if (void 0 !== o) return o === typeof e ? e : t;
+ var s = On(e),
+ i = n(s, On(t));
+ return void 0 !== i && i === s ? e : t;
+ });
+ var An = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e);
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = Vt),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ return this.xf['@@transducer/step'](e, this.f(t));
+ }),
+ e
+ );
+ })();
+ const Cn = Bt(
+ qt(
+ ['fantasy-land/map', 'map'],
+ function (e) {
+ return function (t) {
+ return new An(e, t);
+ };
+ },
+ function (e, t) {
+ switch (Object.prototype.toString.call(t)) {
+ case '[object Function]':
+ return Zt(t.length, function () {
+ return e.call(this, t.apply(this, arguments));
+ });
+ case '[object Object]':
+ return bn(
+ function (n, r) {
+ return (n[r] = e(t[r])), n;
+ },
+ {},
+ ln(t)
+ );
+ default:
+ return dn(e, t);
+ }
+ }
+ )
+ ),
+ Pn =
+ Number.isInteger ||
+ function (e) {
+ return e << 0 === e;
+ };
+ function Nn(e) {
+ return '[object String]' === Object.prototype.toString.call(e);
+ }
+ const In = Bt(function (e, t) {
+ var n = e < 0 ? t.length + e : e;
+ return Nn(t) ? t.charAt(n) : t[n];
+ });
+ const Tn = Bt(function (e, t) {
+ if (null != t) return Pn(e) ? In(e, t) : t[e];
+ });
+ const Rn = Bt(function (e, t) {
+ return Cn(Tn(e), t);
+ });
+ function Mn(e) {
+ return function t(n, r, o) {
+ switch (arguments.length) {
+ case 0:
+ return t;
+ case 1:
+ return Ft(n)
+ ? t
+ : Bt(function (t, r) {
+ return e(n, t, r);
+ });
+ case 2:
+ return Ft(n) && Ft(r)
+ ? t
+ : Ft(n)
+ ? Bt(function (t, n) {
+ return e(t, r, n);
+ })
+ : Ft(r)
+ ? Bt(function (t, r) {
+ return e(n, t, r);
+ })
+ : Lt(function (t) {
+ return e(n, r, t);
+ });
+ default:
+ return Ft(n) && Ft(r) && Ft(o)
+ ? t
+ : Ft(n) && Ft(r)
+ ? Bt(function (t, n) {
+ return e(t, n, o);
+ })
+ : Ft(n) && Ft(o)
+ ? Bt(function (t, n) {
+ return e(t, r, n);
+ })
+ : Ft(r) && Ft(o)
+ ? Bt(function (t, r) {
+ return e(n, t, r);
+ })
+ : Ft(n)
+ ? Lt(function (t) {
+ return e(t, r, o);
+ })
+ : Ft(r)
+ ? Lt(function (t) {
+ return e(n, t, o);
+ })
+ : Ft(o)
+ ? Lt(function (t) {
+ return e(n, r, t);
+ })
+ : e(n, r, o);
+ }
+ };
+ }
+ const Dn = Lt(function (e) {
+ return (
+ !!$t(e) ||
+ (!!e &&
+ 'object' == typeof e &&
+ !Nn(e) &&
+ (0 === e.length || (e.length > 0 && e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1))))
+ );
+ });
+ var Fn = 'undefined' != typeof Symbol ? Symbol.iterator : '@@iterator';
+ function Ln(e, t, n) {
+ return function (r, o, s) {
+ if (Dn(s)) return e(r, o, s);
+ if (null == s) return o;
+ if ('function' == typeof s['fantasy-land/reduce']) return t(r, o, s, 'fantasy-land/reduce');
+ if (null != s[Fn]) return n(r, o, s[Fn]());
+ if ('function' == typeof s.next) return n(r, o, s);
+ if ('function' == typeof s.reduce) return t(r, o, s, 'reduce');
+ throw new TypeError('reduce: list must be array or iterable');
+ };
+ }
+ function Bn(e, t, n) {
+ for (var r = 0, o = n.length; r < o; ) {
+ if ((t = e['@@transducer/step'](t, n[r])) && t['@@transducer/reduced']) {
+ t = t['@@transducer/value'];
+ break;
+ }
+ r += 1;
+ }
+ return e['@@transducer/result'](t);
+ }
+ const $n = Bt(function (e, t) {
+ return Ht(e.length, function () {
+ return e.apply(t, arguments);
+ });
+ });
+ function qn(e, t, n) {
+ for (var r = n.next(); !r.done; ) {
+ if ((t = e['@@transducer/step'](t, r.value)) && t['@@transducer/reduced']) {
+ t = t['@@transducer/value'];
+ break;
+ }
+ r = n.next();
+ }
+ return e['@@transducer/result'](t);
+ }
+ function Un(e, t, n, r) {
+ return e['@@transducer/result'](n[r]($n(e['@@transducer/step'], e), t));
+ }
+ const zn = Ln(Bn, Un, qn);
+ var Vn = (function () {
+ function e(e) {
+ this.f = e;
+ }
+ return (
+ (e.prototype['@@transducer/init'] = function () {
+ throw new Error('init not implemented on XWrap');
+ }),
+ (e.prototype['@@transducer/result'] = function (e) {
+ return e;
+ }),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ return this.f(e, t);
+ }),
+ e
+ );
+ })();
+ function Wn(e) {
+ return new Vn(e);
+ }
+ const Jn = Mn(function (e, t, n) {
+ return zn('function' == typeof e ? Wn(e) : e, t, n);
+ });
+ const Kn = Lt(function (e) {
+ return Zt(Jn(kn, 0, Rn('length', e)), function () {
+ for (var t = 0, n = e.length; t < n; ) {
+ if (!e[t].apply(this, arguments)) return !1;
+ t += 1;
+ }
+ return !0;
+ });
+ });
+ const Hn = Lt(function (e) {
+ return function () {
+ return e;
+ };
+ });
+ const Gn = Lt(function (e) {
+ return Zt(Jn(kn, 0, Rn('length', e)), function () {
+ for (var t = 0, n = e.length; t < n; ) {
+ if (e[t].apply(this, arguments)) return !0;
+ t += 1;
+ }
+ return !1;
+ });
+ });
+ function Zn(e, t, n) {
+ for (var r = n.next(); !r.done; ) (t = e(t, r.value)), (r = n.next());
+ return t;
+ }
+ function Yn(e, t, n, r) {
+ return n[r](e, t);
+ }
+ const Xn = Ln(bn, Yn, Zn);
+ const Qn = Bt(function (e, t) {
+ return 'function' == typeof t['fantasy-land/ap']
+ ? t['fantasy-land/ap'](e)
+ : 'function' == typeof e.ap
+ ? e.ap(t)
+ : 'function' == typeof e
+ ? function (n) {
+ return e(n)(t(n));
+ }
+ : Xn(
+ function (e, n) {
+ return (function (e, t) {
+ var n;
+ t = t || [];
+ var r = (e = e || []).length,
+ o = t.length,
+ s = [];
+ for (n = 0; n < r; ) (s[s.length] = e[n]), (n += 1);
+ for (n = 0; n < o; ) (s[s.length] = t[n]), (n += 1);
+ return s;
+ })(e, Cn(n, t));
+ },
+ [],
+ e
+ );
+ });
+ const er = Bt(function (e, t) {
+ return e.apply(this, t);
+ });
+ var tr = Lt(function (e) {
+ for (var t = ln(e), n = t.length, r = [], o = 0; o < n; ) (r[o] = e[t[o]]), (o += 1);
+ return r;
+ });
+ const nr = tr;
+ const rr = Lt(function (e) {
+ return null == e;
+ });
+ const or = Mn(function e(t, n, r) {
+ if (0 === t.length) return n;
+ var o = t[0];
+ if (t.length > 1) {
+ var s = !rr(r) && Qt(o, r) && 'object' == typeof r[o] ? r[o] : Pn(t[1]) ? [] : {};
+ n = e(Array.prototype.slice.call(t, 1), n, s);
+ }
+ return (function (e, t, n) {
+ if (Pn(e) && $t(n)) {
+ var r = [].concat(n);
+ return (r[e] = t), r;
+ }
+ var o = {};
+ for (var s in n) o[s] = n[s];
+ return (o[e] = t), o;
+ })(o, n, r);
+ });
+ function sr(e) {
+ var t = Object.prototype.toString.call(e);
+ return (
+ '[object Function]' === t ||
+ '[object AsyncFunction]' === t ||
+ '[object GeneratorFunction]' === t ||
+ '[object AsyncGeneratorFunction]' === t
+ );
+ }
+ const ir = Bt(function (e, t) {
+ return e && t;
+ });
+ const ar = Bt(function (e, t) {
+ var n = Zt(e, t);
+ return Zt(e, function () {
+ return bn(Qn, Cn(n, arguments[0]), Array.prototype.slice.call(arguments, 1));
+ });
+ });
+ const lr = Lt(function (e) {
+ return ar(e.length, e);
+ });
+ const cr = Bt(function (e, t) {
+ return sr(e)
+ ? function () {
+ return e.apply(this, arguments) && t.apply(this, arguments);
+ }
+ : lr(ir)(e, t);
+ });
+ const ur = Lt(function (e) {
+ return function (t, n) {
+ return e(t, n) ? -1 : e(n, t) ? 1 : 0;
+ };
+ });
+ const pr = lr(
+ Lt(function (e) {
+ return !e;
+ })
+ );
+ function hr(e, t) {
+ return function () {
+ return t.call(this, e.apply(this, arguments));
+ };
+ }
+ function fr(e, t) {
+ return function () {
+ var n = arguments.length;
+ if (0 === n) return t();
+ var r = arguments[n - 1];
+ return $t(r) || 'function' != typeof r[e]
+ ? t.apply(this, arguments)
+ : r[e].apply(r, Array.prototype.slice.call(arguments, 0, n - 1));
+ };
+ }
+ const dr = Mn(
+ fr('slice', function (e, t, n) {
+ return Array.prototype.slice.call(n, e, t);
+ })
+ );
+ const mr = Lt(fr('tail', dr(1, 1 / 0)));
+ function gr() {
+ if (0 === arguments.length) throw new Error('pipe requires at least one argument');
+ return Ht(arguments[0].length, Jn(hr, arguments[0], mr(arguments)));
+ }
+ var yr = Bt(function (e, t) {
+ return Zt(Jn(kn, 0, Rn('length', t)), function () {
+ var n = arguments,
+ r = this;
+ return e.apply(
+ r,
+ dn(function (e) {
+ return e.apply(r, n);
+ }, t)
+ );
+ });
+ });
+ const vr = yr;
+ function br(e) {
+ return new RegExp(
+ e.source,
+ e.flags
+ ? e.flags
+ : (e.global ? 'g' : '') +
+ (e.ignoreCase ? 'i' : '') +
+ (e.multiline ? 'm' : '') +
+ (e.sticky ? 'y' : '') +
+ (e.unicode ? 'u' : '') +
+ (e.dotAll ? 's' : '')
+ );
+ }
+ function wr(e, t, n) {
+ if (
+ (n || (n = new Er()),
+ (function (e) {
+ var t = typeof e;
+ return null == e || ('object' != t && 'function' != t);
+ })(e))
+ )
+ return e;
+ var r = function (r) {
+ var o = n.get(e);
+ if (o) return o;
+ for (var s in (n.set(e, r), e))
+ Object.prototype.hasOwnProperty.call(e, s) && (r[s] = t ? wr(e[s], !0, n) : e[s]);
+ return r;
+ };
+ switch (cn(e)) {
+ case 'Object':
+ return r(Object.create(Object.getPrototypeOf(e)));
+ case 'Array':
+ return r([]);
+ case 'Date':
+ return new Date(e.valueOf());
+ case 'RegExp':
+ return br(e);
+ case 'Int8Array':
+ case 'Uint8Array':
+ case 'Uint8ClampedArray':
+ case 'Int16Array':
+ case 'Uint16Array':
+ case 'Int32Array':
+ case 'Uint32Array':
+ case 'Float32Array':
+ case 'Float64Array':
+ case 'BigInt64Array':
+ case 'BigUint64Array':
+ return e.slice();
+ default:
+ return e;
+ }
+ }
+ var Er = (function () {
+ function e() {
+ (this.map = {}), (this.length = 0);
+ }
+ return (
+ (e.prototype.set = function (e, t) {
+ const n = this.hash(e);
+ let r = this.map[n];
+ r || (this.map[n] = r = []), r.push([e, t]), (this.length += 1);
+ }),
+ (e.prototype.hash = function (e) {
+ let t = [];
+ for (var n in e) t.push(Object.prototype.toString.call(e[n]));
+ return t.join();
+ }),
+ (e.prototype.get = function (e) {
+ if (this.length <= 180) {
+ for (const t in this.map) {
+ const n = this.map[t];
+ for (let t = 0; t < n.length; t += 1) {
+ const r = n[t];
+ if (r[0] === e) return r[1];
+ }
+ }
+ return;
+ }
+ const t = this.hash(e),
+ n = this.map[t];
+ if (n)
+ for (let t = 0; t < n.length; t += 1) {
+ const r = n[t];
+ if (r[0] === e) return r[1];
+ }
+ }),
+ e
+ );
+ })(),
+ xr = (function () {
+ function e(e, t, n, r) {
+ (this.valueFn = e), (this.valueAcc = t), (this.keyFn = n), (this.xf = r), (this.inputs = {});
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = function (e) {
+ var t;
+ for (t in this.inputs)
+ if (
+ Qt(t, this.inputs) &&
+ (e = this.xf['@@transducer/step'](e, this.inputs[t]))['@@transducer/reduced']
+ ) {
+ e = e['@@transducer/value'];
+ break;
+ }
+ return (this.inputs = null), this.xf['@@transducer/result'](e);
+ }),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ var n = this.keyFn(t);
+ return (
+ (this.inputs[n] = this.inputs[n] || [n, wr(this.valueAcc, !1)]),
+ (this.inputs[n][1] = this.valueFn(this.inputs[n][1], t)),
+ e
+ );
+ }),
+ e
+ );
+ })();
+ function Sr(e, t, n) {
+ return function (r) {
+ return new xr(e, t, n, r);
+ };
+ }
+ var _r = Gt(
+ 4,
+ [],
+ qt([], Sr, function (e, t, n, r) {
+ var o = Wn(function (r, o) {
+ var s = n(o),
+ i = e(Qt(s, r) ? r[s] : wr(t, !1), o);
+ return i && i['@@transducer/reduced'] ? Ut(r) : ((r[s] = i), r);
+ });
+ return zn(o, {}, r);
+ })
+ );
+ const jr = _r;
+ const Or = Lt(function (e) {
+ return Zt(e.length, e);
+ });
+ const kr = Bt(function (e, t) {
+ return null == t || t != t ? e : t;
+ });
+ function Ar(e, t, n) {
+ var r,
+ o = typeof e;
+ switch (o) {
+ case 'string':
+ case 'number':
+ return 0 === e && 1 / e == -1 / 0
+ ? !!n._items['-0'] || (t && (n._items['-0'] = !0), !1)
+ : null !== n._nativeSet
+ ? t
+ ? ((r = n._nativeSet.size), n._nativeSet.add(e), n._nativeSet.size === r)
+ : n._nativeSet.has(e)
+ : o in n._items
+ ? e in n._items[o] || (t && (n._items[o][e] = !0), !1)
+ : (t && ((n._items[o] = {}), (n._items[o][e] = !0)), !1);
+ case 'boolean':
+ if (o in n._items) {
+ var s = e ? 1 : 0;
+ return !!n._items[o][s] || (t && (n._items[o][s] = !0), !1);
+ }
+ return t && (n._items[o] = e ? [!1, !0] : [!0, !1]), !1;
+ case 'function':
+ return null !== n._nativeSet
+ ? t
+ ? ((r = n._nativeSet.size), n._nativeSet.add(e), n._nativeSet.size === r)
+ : n._nativeSet.has(e)
+ : o in n._items
+ ? !!fn(e, n._items[o]) || (t && n._items[o].push(e), !1)
+ : (t && (n._items[o] = [e]), !1);
+ case 'undefined':
+ return !!n._items[o] || (t && (n._items[o] = !0), !1);
+ case 'object':
+ if (null === e) return !!n._items.null || (t && (n._items.null = !0), !1);
+ default:
+ return (o = Object.prototype.toString.call(e)) in n._items
+ ? !!fn(e, n._items[o]) || (t && n._items[o].push(e), !1)
+ : (t && (n._items[o] = [e]), !1);
+ }
+ }
+ const Cr = (function () {
+ function e() {
+ (this._nativeSet = 'function' == typeof Set ? new Set() : null), (this._items = {});
+ }
+ return (
+ (e.prototype.add = function (e) {
+ return !Ar(e, !0, this);
+ }),
+ (e.prototype.has = function (e) {
+ return Ar(e, !1, this);
+ }),
+ e
+ );
+ })();
+ const Pr = Bt(function (e, t) {
+ for (var n = [], r = 0, o = e.length, s = t.length, i = new Cr(), a = 0; a < s; a += 1) i.add(t[a]);
+ for (; r < o; ) i.add(e[r]) && (n[n.length] = e[r]), (r += 1);
+ return n;
+ });
+ var Nr = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.n = e), (this.i = 0);
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = Vt),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ this.i += 1;
+ var n = 0 === this.n ? e : this.xf['@@transducer/step'](e, t);
+ return this.n >= 0 && this.i >= this.n ? Ut(n) : n;
+ }),
+ e
+ );
+ })();
+ function Ir(e) {
+ return function (t) {
+ return new Nr(e, t);
+ };
+ }
+ const Tr = Bt(
+ qt(['take'], Ir, function (e, t) {
+ return dr(0, e < 0 ? 1 / 0 : e, t);
+ })
+ );
+ function Rr(e, t) {
+ for (var n = t.length - 1; n >= 0 && e(t[n]); ) n -= 1;
+ return dr(0, n + 1, t);
+ }
+ var Mr = (function () {
+ function e(e, t) {
+ (this.f = e), (this.retained = []), (this.xf = t);
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = function (e) {
+ return (this.retained = null), this.xf['@@transducer/result'](e);
+ }),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ return this.f(t) ? this.retain(e, t) : this.flush(e, t);
+ }),
+ (e.prototype.flush = function (e, t) {
+ return (e = zn(this.xf, e, this.retained)), (this.retained = []), this.xf['@@transducer/step'](e, t);
+ }),
+ (e.prototype.retain = function (e, t) {
+ return this.retained.push(t), e;
+ }),
+ e
+ );
+ })();
+ function Dr(e) {
+ return function (t) {
+ return new Mr(e, t);
+ };
+ }
+ const Fr = Bt(qt([], Dr, Rr));
+ var Lr = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.f = e);
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = Vt),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ if (this.f) {
+ if (this.f(t)) return e;
+ this.f = null;
+ }
+ return this.xf['@@transducer/step'](e, t);
+ }),
+ e
+ );
+ })();
+ function Br(e) {
+ return function (t) {
+ return new Lr(e, t);
+ };
+ }
+ const $r = Bt(
+ qt(['dropWhile'], Br, function (e, t) {
+ for (var n = 0, r = t.length; n < r && e(t[n]); ) n += 1;
+ return dr(n, 1 / 0, t);
+ })
+ );
+ const qr = Bt(function (e, t) {
+ return e || t;
+ });
+ const Ur = Bt(function (e, t) {
+ return sr(e)
+ ? function () {
+ return e.apply(this, arguments) || t.apply(this, arguments);
+ }
+ : lr(qr)(e, t);
+ });
+ var zr = Lt(function (e) {
+ return null != e && 'function' == typeof e['fantasy-land/empty']
+ ? e['fantasy-land/empty']()
+ : null != e && null != e.constructor && 'function' == typeof e.constructor['fantasy-land/empty']
+ ? e.constructor['fantasy-land/empty']()
+ : null != e && 'function' == typeof e.empty
+ ? e.empty()
+ : null != e && null != e.constructor && 'function' == typeof e.constructor.empty
+ ? e.constructor.empty()
+ : $t(e)
+ ? []
+ : Nn(e)
+ ? ''
+ : wn(e)
+ ? {}
+ : nn(e)
+ ? (function () {
+ return arguments;
+ })()
+ : (function (e) {
+ var t = Object.prototype.toString.call(e);
+ return (
+ '[object Uint8ClampedArray]' === t ||
+ '[object Int8Array]' === t ||
+ '[object Uint8Array]' === t ||
+ '[object Int16Array]' === t ||
+ '[object Uint16Array]' === t ||
+ '[object Int32Array]' === t ||
+ '[object Uint32Array]' === t ||
+ '[object Float32Array]' === t ||
+ '[object Float64Array]' === t ||
+ '[object BigInt64Array]' === t ||
+ '[object BigUint64Array]' === t
+ );
+ })(e)
+ ? e.constructor.from('')
+ : void 0;
+ });
+ const Vr = zr;
+ const Wr = Lt(function (e) {
+ return Zt(e.length, function (t, n) {
+ var r = Array.prototype.slice.call(arguments, 0);
+ return (r[0] = n), (r[1] = t), e.apply(this, r);
+ });
+ });
+ const Jr = Bt(
+ fr(
+ 'groupBy',
+ jr(function (e, t) {
+ return e.push(t), e;
+ }, [])
+ )
+ );
+ const Kr = Bt(function (e, t) {
+ if (0 === e.length || rr(t)) return !1;
+ for (var n = t, r = 0; r < e.length; ) {
+ if (rr(n) || !Qt(e[r], n)) return !1;
+ (n = n[e[r]]), (r += 1);
+ }
+ return !0;
+ });
+ const Hr = Bt(function (e, t) {
+ return Kr([e], t);
+ });
+ const Gr = Bt(function (e, t) {
+ return !rr(t) && e in t;
+ });
+ const Zr = In(0);
+ var Yr = function (e, t) {
+ switch (arguments.length) {
+ case 0:
+ return Yr;
+ case 1:
+ return function t(n) {
+ return 0 === arguments.length ? t : en(e, n);
+ };
+ default:
+ return en(e, t);
+ }
+ };
+ const Xr = Yr;
+ function Qr(e) {
+ return e;
+ }
+ const eo = Lt(Qr);
+ const to = Mn(function (e, t, n) {
+ return Zt(Math.max(e.length, t.length, n.length), function () {
+ return e.apply(this, arguments) ? t.apply(this, arguments) : n.apply(this, arguments);
+ });
+ });
+ const no = Bt(fn);
+ const ro = dr(0, -1);
+ 'function' == typeof Object.assign && Object.assign;
+ const oo = Bt(function (e, t) {
+ return Zt(e + 1, function () {
+ var n = arguments[e];
+ if (null != n && sr(n[t])) return n[t].apply(n, Array.prototype.slice.call(arguments, 0, e));
+ throw new TypeError(On(n) + ' does not have a method named "' + t + '"');
+ });
+ });
+ const so = Lt(function (e) {
+ return null != e && hn(e, Vr(e));
+ });
+ const io = oo(1, 'join');
+ const ao = In(-1);
+ const lo = Bt(function (e, t) {
+ return function (n) {
+ return function (r) {
+ return Cn(
+ function (e) {
+ return t(e, r);
+ },
+ n(e(r))
+ );
+ };
+ };
+ });
+ const co = Bt(function (e, t) {
+ return e.map(function (e) {
+ for (var n, r = t, o = 0; o < e.length; ) {
+ if (null == r) return;
+ (n = e[o]), (r = Pn(n) ? In(n, r) : r[n]), (o += 1);
+ }
+ return r;
+ });
+ });
+ const uo = Bt(function (e, t) {
+ return co([e], t)[0];
+ });
+ const po = Bt(function (e, t) {
+ return bn(
+ function (n, r) {
+ return (n[r] = e(t[r], r, t)), n;
+ },
+ {},
+ ln(t)
+ );
+ });
+ const ho = Mn(function (e, t, n) {
+ var r,
+ o = {};
+ for (r in ((n = n || {}), (t = t || {}))) Qt(r, t) && (o[r] = Qt(r, n) ? e(r, t[r], n[r]) : t[r]);
+ for (r in n) Qt(r, n) && !Qt(r, o) && (o[r] = n[r]);
+ return o;
+ });
+ const fo = Mn(function e(t, n, r) {
+ return ho(
+ function (n, r, o) {
+ return wn(r) && wn(o) ? e(t, r, o) : t(n, r, o);
+ },
+ n,
+ r
+ );
+ });
+ const mo = Bt(function (e, t) {
+ return fo(
+ function (e, t, n) {
+ return n;
+ },
+ e,
+ t
+ );
+ });
+ const go = Bt(function (e, t) {
+ return Kt(vn(e), t);
+ });
+ var yo = function (e) {
+ return {
+ value: e,
+ map: function (t) {
+ return yo(t(e));
+ },
+ };
+ };
+ const vo = Mn(function (e, t, n) {
+ return e(function (e) {
+ return yo(t(e));
+ })(n).value;
+ });
+ const bo = Mn(function (e, t, n) {
+ return kr(e, uo(t, n));
+ });
+ const wo = Mn(function (e, t, n) {
+ return e(uo(t, n));
+ });
+ const Eo = Bt(function (e, t) {
+ for (var n = {}, r = 0; r < e.length; ) e[r] in t && (n[e[r]] = t[e[r]]), (r += 1);
+ return n;
+ });
+ const xo = Mn(function (e, t, n) {
+ return hn(e, Tn(t, n));
+ });
+ const So = Mn(function (e, t, n) {
+ return kr(e, Tn(t, n));
+ });
+ const _o = Mn(function (e, t, n) {
+ return e(Tn(t, n));
+ });
+ function jo(e) {
+ return '[object Number]' === Object.prototype.toString.call(e);
+ }
+ var Oo = Bt(function (e, t) {
+ if (!jo(e) || !jo(t)) throw new TypeError('Both arguments to range must be numbers');
+ for (var n = [], r = e; r < t; ) n.push(r), (r += 1);
+ return n;
+ });
+ const ko = Oo;
+ const Ao = Lt(Ut);
+ const Co = Mn(function (e, t, n) {
+ return n.replace(e, t);
+ });
+ var Po = Bt(function (e, t) {
+ return Array.prototype.slice.call(t, 0).sort(e);
+ });
+ const No = Po;
+ const Io = oo(1, 'split');
+ const To = Bt(function (e, t) {
+ return hn(Tr(e.length, t), e);
+ });
+ const Ro = Bt(function (e, t) {
+ if (((n = e), '[object RegExp]' !== Object.prototype.toString.call(n)))
+ throw new TypeError('‘test’ requires a value of type RegExp as its first argument; received ' + On(e));
+ var n;
+ return br(e).test(t);
+ });
+ var Mo = '\t\n\v\f\r \u2028\u2029\ufeff';
+ String.prototype.trim;
+ var Do = (function () {
+ function e(e, t) {
+ (this.xf = t), (this.pred = e), (this.items = []);
+ }
+ return (
+ (e.prototype['@@transducer/init'] = zt),
+ (e.prototype['@@transducer/result'] = Vt),
+ (e.prototype['@@transducer/step'] = function (e, t) {
+ return Xt(this.pred, t, this.items) ? e : (this.items.push(t), this.xf['@@transducer/step'](e, t));
+ }),
+ e
+ );
+ })();
+ function Fo(e) {
+ return function (t) {
+ return new Do(e, t);
+ };
+ }
+ const Lo = Bt(
+ qt([], Fo, function (e, t) {
+ for (var n, r = 0, o = t.length, s = []; r < o; ) Xt(e, (n = t[r]), s) || (s[s.length] = n), (r += 1);
+ return s;
+ })
+ );
+ const Bo = Mn(function (e, t, n) {
+ return e(n) ? t(n) : n;
+ });
+ const $o = Hn(void 0);
+ const qo = hn($o());
+ class Uo extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'parseResult');
+ }
+ get api() {
+ return this.children.filter((e) => e.classes.contains('api')).first;
+ }
+ get results() {
+ return this.children.filter((e) => e.classes.contains('result'));
+ }
+ get result() {
+ return this.results.first;
+ }
+ get annotations() {
+ return this.children.filter((e) => 'annotation' === e.element);
+ }
+ get warnings() {
+ return this.children.filter((e) => 'annotation' === e.element && e.classes.contains('warning'));
+ }
+ get errors() {
+ return this.children.filter((e) => 'annotation' === e.element && e.classes.contains('error'));
+ }
+ get isEmpty() {
+ return this.children.reject((e) => 'annotation' === e.element).isEmpty;
+ }
+ replaceResult(e) {
+ const { result: t } = this;
+ if (qo(t)) return !1;
+ const n = this.content.findIndex((e) => e === t);
+ return -1 !== n && ((this.content[n] = e), !0);
+ }
+ }
+ const zo = Uo;
+ class Vo extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'sourceMap');
+ }
+ get positionStart() {
+ return this.children.filter((e) => e.classes.contains('position')).get(0);
+ }
+ get positionEnd() {
+ return this.children.filter((e) => e.classes.contains('position')).get(1);
+ }
+ set position(e) {
+ if (null === e) return;
+ const t = new Pt.ON([e.start.row, e.start.column, e.start.char]),
+ n = new Pt.ON([e.end.row, e.end.column, e.end.char]);
+ t.classes.push('position'), n.classes.push('position'), this.push(t).push(n);
+ }
+ }
+ const Wo = Vo;
+ var Jo = n(80621),
+ Ko = n(52201),
+ Ho = n(27398);
+ function Go(e) {
+ return (
+ (Go =
+ 'function' == typeof Ko && 'symbol' == typeof Ho
+ ? function (e) {
+ return typeof e;
+ }
+ : function (e) {
+ return e && 'function' == typeof Ko && e.constructor === Ko && e !== Ko.prototype
+ ? 'symbol'
+ : typeof e;
+ }),
+ Go(e)
+ );
+ }
+ var Zo = n(26189);
+ function Yo(e) {
+ var t = (function (e, t) {
+ if ('object' !== Go(e) || null === e) return e;
+ var n = e[Zo];
+ if (void 0 !== n) {
+ var r = n.call(e, t || 'default');
+ if ('object' !== Go(r)) return r;
+ throw new TypeError('@@toPrimitive must return a primitive value.');
+ }
+ return ('string' === t ? String : Number)(e);
+ })(e, 'string');
+ return 'symbol' === Go(t) ? t : String(t);
+ }
+ function Xo(e, t, n) {
+ return (
+ (t = Yo(t)) in e ? Jo(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = n), e
+ );
+ }
+ const Qo = Zt(1, gr(cn, Xr('GeneratorFunction')));
+ const es = Zt(1, gr(cn, Xr('AsyncFunction')));
+ const ts = Gn([gr(cn, Xr('Function')), Qo, es]);
+ const ns = pr(ts);
+ const rs = Zt(1, ts(Array.isArray) ? Array.isArray : gr(cn, Xr('Array')));
+ const os = cr(rs, so);
+ var ss = Zt(3, function (e, t, n) {
+ var r = uo(e, n),
+ o = uo(ro(e), n);
+ if (!ns(r) && !os(e)) {
+ var s = $n(r, o);
+ return er(s, t);
+ }
+ });
+ const is = ss;
+ const as = Wr(no),
+ ls = (e, t) => 'function' == typeof (null == t ? void 0 : t[e]),
+ cs = (e) =>
+ null != e &&
+ Object.prototype.hasOwnProperty.call(e, '_storedElement') &&
+ Object.prototype.hasOwnProperty.call(e, '_content'),
+ us = (e, t) => {
+ var n;
+ return (null == t || null === (n = t.primitive) || void 0 === n ? void 0 : n.call(t)) === e;
+ },
+ ps = (e, t) => {
+ var n, r;
+ return (
+ (null == t || null === (n = t.classes) || void 0 === n || null === (r = n.includes) || void 0 === r
+ ? void 0
+ : r.call(n, e)) || !1
+ );
+ },
+ hs = (e, t) => (null == t ? void 0 : t.element) === e,
+ fs = (e) =>
+ e({ hasMethod: ls, hasBasicElementProps: cs, primitiveEq: us, isElementType: hs, hasClass: ps }),
+ ds = fs(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Pt.W_ || (e(n) && t(void 0, n))
+ ),
+ ms = fs(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Pt.RP || (e(n) && t('string', n))
+ ),
+ gs = fs(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Pt.VL || (e(n) && t('number', n))
+ ),
+ ys = fs(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Pt.zr || (e(n) && t('null', n))
+ ),
+ vs = fs(
+ ({ hasBasicElementProps: e, primitiveEq: t }) =>
+ (n) =>
+ n instanceof Pt.hh || (e(n) && t('boolean', n))
+ ),
+ bs = fs(
+ ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) =>
+ (r) =>
+ r instanceof Pt.Sb || (e(r) && t('object', r) && n('keys', r) && n('values', r) && n('items', r))
+ ),
+ ws = fs(
+ ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) =>
+ (r) =>
+ (r instanceof Pt.ON && !(r instanceof Pt.Sb)) ||
+ (e(r) && t('array', r) && n('push', r) && n('unshift', r) && n('map', r) && n('reduce', r))
+ ),
+ Es = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Pt.c6 || (e(r) && t('member', r) && n(void 0, r))
+ ),
+ xs = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Pt.EA || (e(r) && t('link', r) && n(void 0, r))
+ ),
+ Ss = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Pt.tK || (e(r) && t('ref', r) && n(void 0, r))
+ ),
+ _s = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof It || (e(r) && t('annotation', r) && n('array', r))
+ ),
+ js = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Rt || (e(r) && t('comment', r) && n('string', r))
+ ),
+ Os = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof zo || (e(r) && t('parseResult', r) && n('array', r))
+ ),
+ ks = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Wo || (e(r) && t('sourceMap', r) && n('array', r))
+ ),
+ As = (e) =>
+ hs('object', e) ||
+ hs('array', e) ||
+ hs('boolean', e) ||
+ hs('number', e) ||
+ hs('string', e) ||
+ hs('null', e) ||
+ hs('member', e),
+ Cs = (e) => {
+ var t, n;
+ return ks(
+ null == e || null === (t = e.meta) || void 0 === t || null === (n = t.get) || void 0 === n
+ ? void 0
+ : n.call(t, 'sourceMap')
+ );
+ },
+ Ps = (e, t) => {
+ if (0 === e.length) return !0;
+ const n = t.attributes.get('symbols');
+ return !!ws(n) && Kt(as(n.toValue()), e);
+ },
+ Ns = (e, t) => 0 === e.length || Kt(as(t.classes.toValue()), e);
+ const Is = hn(null);
+ const Ts = pr(Is);
+ function Rs(e) {
+ return (
+ (Rs =
+ '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;
+ }),
+ Rs(e)
+ );
+ }
+ const Ms = function (e) {
+ return 'object' === Rs(e);
+ };
+ const Ds = Zt(1, cr(Ts, Ms));
+ var Fs = gr(cn, Xr('Object')),
+ Ls = gr(On, hn(On(Object))),
+ Bs = wo(cr(ts, Ls), ['constructor']);
+ const $s = Zt(1, function (e) {
+ if (!Ds(e) || !Fs(e)) return !1;
+ var t = Object.getPrototypeOf(e);
+ return !!Is(t) || Bs(t);
+ });
+ class qs extends Pt.lS {
+ constructor() {
+ super(),
+ this.register('annotation', It),
+ this.register('comment', Rt),
+ this.register('parseResult', zo),
+ this.register('sourceMap', Wo);
+ }
+ }
+ const Us = new qs(),
+ zs = (e) => {
+ const t = new qs();
+ return $s(e) && t.use(e), t;
+ },
+ Vs = Us;
+ function Ws(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Js = () => ({
+ predicates: (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Ws(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Ws(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })({}, s),
+ namespace: Vs,
+ });
+ var Ks = n(14058),
+ Hs = n(628),
+ Gs = n(92093);
+ function Zs(e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = {},
+ s = Gs(e);
+ for (r = 0; r < s.length; r++) (n = s[r]), Hs(t).call(t, n) >= 0 || (o[n] = e[n]);
+ return o;
+ })(e, t);
+ if (Ks) {
+ var s = Ks(e);
+ for (r = 0; r < s.length; r++)
+ (n = s[r]),
+ Hs(t).call(t, n) >= 0 || (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]));
+ }
+ return o;
+ }
+ var Ys = n(43992);
+ const Xs = Zt(1, gr(cn, Xr('String'))),
+ Qs = (e, t, n) => {
+ const r = e[t];
+ if (null != r) {
+ if (!n && 'function' == typeof r) return r;
+ const e = n ? r.leave : r.enter;
+ if ('function' == typeof e) return e;
+ } else {
+ const r = n ? e.leave : e.enter;
+ if (null != r) {
+ if ('function' == typeof r) return r;
+ const e = r[t];
+ if ('function' == typeof e) return e;
+ }
+ }
+ return null;
+ },
+ ei = {},
+ ti = (e) => (null == e ? void 0 : e.type),
+ ni = (e) => 'string' == typeof ti(e),
+ ri = (e, { visitFnGetter: t = Qs, nodeTypeGetter: n = ti } = {}) => {
+ const r = new Array(e.length);
+ return {
+ enter(o, ...s) {
+ for (let i = 0; i < e.length; i += 1)
+ if (null == r[i]) {
+ const a = t(e[i], n(o), !1);
+ if ('function' == typeof a) {
+ const t = a.call(e[i], o, ...s);
+ if (!1 === t) r[i] = o;
+ else if (t === ei) r[i] = ei;
+ else if (void 0 !== t) return t;
+ }
+ }
+ },
+ leave(o, ...s) {
+ for (let i = 0; i < e.length; i += 1)
+ if (null == r[i]) {
+ const a = t(e[i], n(o), !0);
+ if ('function' == typeof a) {
+ const t = a.call(e[i], o, ...s);
+ if (t === ei) r[i] = ei;
+ else if (void 0 !== t && !1 !== t) return t;
+ }
+ } else r[i] === o && (r[i] = null);
+ },
+ };
+ },
+ oi = (
+ e,
+ t,
+ {
+ keyMap: n = null,
+ state: r = {},
+ breakSymbol: o = ei,
+ deleteNodeSymbol: s = null,
+ skipVisitingNodeSymbol: i = !1,
+ visitFnGetter: a = Qs,
+ nodeTypeGetter: l = ti,
+ nodePredicate: c = ni,
+ detectCycles: u = !0,
+ } = {}
+ ) => {
+ const p = n || {};
+ let h,
+ f,
+ d = Array.isArray(e),
+ m = [e],
+ g = -1,
+ y = [];
+ const v = [],
+ b = [];
+ let w = e;
+ do {
+ g += 1;
+ const e = g === m.length;
+ let n, E;
+ const x = e && 0 !== y.length;
+ if (e) {
+ if (((n = 0 === b.length ? void 0 : v.pop()), (E = f), (f = b.pop()), x)) {
+ E = d ? E.slice() : Object.create(Object.getPrototypeOf(E), Object.getOwnPropertyDescriptors(E));
+ let e = 0;
+ for (let t = 0; t < y.length; t += 1) {
+ let n = y[t][0];
+ const r = y[t][1];
+ d && (n -= e), d && r === s ? (E.splice(n, 1), (e += 1)) : (E[n] = r);
+ }
+ }
+ (g = h.index), (m = h.keys), (y = h.edits), (d = h.inArray), (h = h.prev);
+ } else {
+ if (((n = f ? (d ? g : m[g]) : void 0), (E = f ? f[n] : w), E === s || void 0 === E)) continue;
+ f && v.push(n);
+ }
+ if (b.includes(E)) continue;
+ let S;
+ if (!Array.isArray(E)) {
+ if (!c(E)) throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);
+ if (u && b.includes(E)) {
+ v.pop();
+ continue;
+ }
+ const s = a(t, l(E), e);
+ if (s) {
+ for (const [e, n] of Object.entries(r)) t[e] = n;
+ if (((S = s.call(t, E, n, f, v, b)), S === o)) break;
+ if (S === i) {
+ if (!e) {
+ v.pop();
+ continue;
+ }
+ } else if (void 0 !== S && (y.push([n, S]), !e)) {
+ if (!c(S)) {
+ v.pop();
+ continue;
+ }
+ E = S;
+ }
+ }
+ }
+ void 0 === S && x && y.push([n, E]),
+ e ||
+ ((h = { inArray: d, index: g, keys: m, edits: y, prev: h }),
+ (d = Array.isArray(E)),
+ (m = d ? E : p[l(E)] || []),
+ (g = -1),
+ (y = []),
+ f && b.push(f),
+ (f = E));
+ } while (void 0 !== h);
+ return 0 !== y.length && ([, w] = y[y.length - 1]), w;
+ };
+ oi[Symbol.for('nodejs.util.promisify.custom')] = async (
+ e,
+ t,
+ {
+ keyMap: n = null,
+ state: r = {},
+ breakSymbol: o = ei,
+ deleteNodeSymbol: s = null,
+ skipVisitingNodeSymbol: i = !1,
+ visitFnGetter: a = Qs,
+ nodeTypeGetter: l = ti,
+ nodePredicate: c = ni,
+ detectCycles: u = !0,
+ } = {}
+ ) => {
+ const p = n || {};
+ let h,
+ f,
+ d = Array.isArray(e),
+ m = [e],
+ g = -1,
+ y = [];
+ const v = [],
+ b = [];
+ let w = e;
+ do {
+ g += 1;
+ const e = g === m.length;
+ let n, E;
+ const x = e && 0 !== y.length;
+ if (e) {
+ if (((n = 0 === b.length ? void 0 : v.pop()), (E = f), (f = b.pop()), x)) {
+ E = d ? E.slice() : Object.create(Object.getPrototypeOf(E), Object.getOwnPropertyDescriptors(E));
+ let e = 0;
+ for (let t = 0; t < y.length; t += 1) {
+ let n = y[t][0];
+ const r = y[t][1];
+ d && (n -= e), d && r === s ? (E.splice(n, 1), (e += 1)) : (E[n] = r);
+ }
+ }
+ (g = h.index), (m = h.keys), (y = h.edits), (d = h.inArray), (h = h.prev);
+ } else {
+ if (((n = f ? (d ? g : m[g]) : void 0), (E = f ? f[n] : w), E === s || void 0 === E)) continue;
+ f && v.push(n);
+ }
+ let S;
+ if (!Array.isArray(E)) {
+ if (!c(E)) throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);
+ if (u && b.includes(E)) {
+ v.pop();
+ continue;
+ }
+ const s = a(t, l(E), e);
+ if (s) {
+ for (const [e, n] of Object.entries(r)) t[e] = n;
+ if (((S = await s.call(t, E, n, f, v, b)), S === o)) break;
+ if (S === i) {
+ if (!e) {
+ v.pop();
+ continue;
+ }
+ } else if (void 0 !== S && (y.push([n, S]), !e)) {
+ if (!c(S)) {
+ v.pop();
+ continue;
+ }
+ E = S;
+ }
+ }
+ }
+ void 0 === S && x && y.push([n, E]),
+ e ||
+ ((h = { inArray: d, index: g, keys: m, edits: y, prev: h }),
+ (d = Array.isArray(E)),
+ (m = d ? E : p[l(E)] || []),
+ (g = -1),
+ (y = []),
+ f && b.push(f),
+ (f = E));
+ } while (void 0 !== h);
+ return 0 !== y.length && ([, w] = y[y.length - 1]), w;
+ };
+ const si = ['keyMap'],
+ ii = ['keyMap'];
+ function ai(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function li(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? ai(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : ai(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const ci = (e) =>
+ bs(e)
+ ? 'ObjectElement'
+ : ws(e)
+ ? 'ArrayElement'
+ : Es(e)
+ ? 'MemberElement'
+ : ms(e)
+ ? 'StringElement'
+ : vs(e)
+ ? 'BooleanElement'
+ : gs(e)
+ ? 'NumberElement'
+ : ys(e)
+ ? 'NullElement'
+ : xs(e)
+ ? 'LinkElement'
+ : Ss(e)
+ ? 'RefElement'
+ : void 0,
+ ui = gr(ci, Xs),
+ pi = {
+ ObjectElement: ['content'],
+ ArrayElement: ['content'],
+ MemberElement: ['key', 'value'],
+ StringElement: [],
+ BooleanElement: [],
+ NumberElement: [],
+ NullElement: [],
+ RefElement: [],
+ LinkElement: [],
+ Annotation: [],
+ Comment: [],
+ ParseResultElement: ['content'],
+ SourceMap: ['content'],
+ },
+ hi = Ys({
+ props: { result: [], predicate: Mt, returnOnTrue: void 0, returnOnFalse: void 0 },
+ init({
+ predicate: e = this.predicate,
+ returnOnTrue: t = this.returnOnTrue,
+ returnOnFalse: n = this.returnOnFalse,
+ } = {}) {
+ (this.result = []), (this.predicate = e), (this.returnOnTrue = t), (this.returnOnFalse = n);
+ },
+ methods: {
+ enter(e) {
+ return this.predicate(e) ? (this.result.push(e), this.returnOnTrue) : this.returnOnFalse;
+ },
+ },
+ }),
+ fi = (e, t, n = {}) => {
+ let { keyMap: r = pi } = n,
+ o = Zs(n, si);
+ return oi(e, t, li({ keyMap: r, nodeTypeGetter: ci, nodePredicate: ui }, o));
+ };
+ fi[Symbol.for('nodejs.util.promisify.custom')] = async (e, t, n = {}) => {
+ let { keyMap: r = pi } = n,
+ o = Zs(n, ii);
+ return oi[Symbol.for('nodejs.util.promisify.custom')](
+ e,
+ t,
+ li({ keyMap: r, nodeTypeGetter: ci, nodePredicate: ui }, o)
+ );
+ };
+ const di = (e, t, n = {}) => {
+ if (0 === t.length) return e;
+ const r = So(Js, 'toolboxCreator', n),
+ o = So({}, 'visitorOptions', n),
+ s = So(ci, 'nodeTypeGetter', o),
+ i = r(),
+ a = t.map((e) => e(i)),
+ l = ri(a.map(So({}, 'visitor')), { nodeTypeGetter: s });
+ a.forEach(is(['pre'], []));
+ const c = fi(e, l, o);
+ return a.forEach(is(['post'], [])), c;
+ };
+ function mi(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function gi(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? mi(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : mi(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const yi = (e, { Type: t, plugins: n = [] }) => {
+ const r = new t(e);
+ return di(r, n, { toolboxCreator: Js, visitorOptions: { nodeTypeGetter: ci } });
+ },
+ vi =
+ (e) =>
+ (t, n = {}) =>
+ yi(t, gi(gi({}, n), {}, { Type: e }));
+ (Pt.Sb.refract = vi(Pt.Sb)),
+ (Pt.ON.refract = vi(Pt.ON)),
+ (Pt.RP.refract = vi(Pt.RP)),
+ (Pt.hh.refract = vi(Pt.hh)),
+ (Pt.zr.refract = vi(Pt.zr)),
+ (Pt.VL.refract = vi(Pt.VL)),
+ (Pt.EA.refract = vi(Pt.EA)),
+ (Pt.tK.refract = vi(Pt.tK)),
+ (It.refract = vi(It)),
+ (Rt.refract = vi(Rt)),
+ (zo.refract = vi(zo)),
+ (Wo.refract = vi(Wo));
+ const bi = (e, t = new WeakMap()) => (
+ Es(e)
+ ? (t.set(e.key, e), bi(e.key, t), t.set(e.value, e), bi(e.value, t))
+ : e.children.forEach((n) => {
+ t.set(n, e), bi(n, t);
+ }),
+ t
+ ),
+ wi = Ys.init(function ({ element: e }) {
+ let t;
+ this.transclude = function (n, r) {
+ var o;
+ if (n === e) return r;
+ if (n === r) return e;
+ t = null !== (o = t) && void 0 !== o ? o : bi(e);
+ const s = t.get(n);
+ return qo(s)
+ ? void 0
+ : (bs(s)
+ ? ((e, t, n) => {
+ const r = n.get(e);
+ bs(r) && (r.content = r.map((o, s, i) => (i === e ? (n.delete(e), n.set(t, r), t) : i)));
+ })(n, r, t)
+ : ws(s)
+ ? ((e, t, n) => {
+ const r = n.get(e);
+ ws(r) && (r.content = r.map((o) => (o === e ? (n.delete(e), n.set(t, r), t) : o)));
+ })(n, r, t)
+ : Es(s) &&
+ ((e, t, n) => {
+ const r = n.get(e);
+ Es(r) &&
+ (r.key === e && ((r.key = t), n.delete(e), n.set(t, r)),
+ r.value === e && ((r.value = t), n.delete(e), n.set(t, r)));
+ })(n, r, t),
+ e);
+ };
+ }),
+ Ei = wi,
+ xi = ['keyMap'],
+ Si = ['keyMap'];
+ function _i(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function ji(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? _i(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : _i(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const Oi = (e) => ('string' == typeof (null == e ? void 0 : e.type) ? e.type : ci(e)),
+ ki = ji({ EphemeralObject: ['content'], EphemeralArray: ['content'] }, pi),
+ Ai = (e, t, n = {}) => {
+ let { keyMap: r = ki } = n,
+ o = Zs(n, xi);
+ return fi(
+ e,
+ t,
+ ji(
+ {
+ keyMap: r,
+ nodeTypeGetter: Oi,
+ nodePredicate: Dt,
+ detectCycles: !1,
+ deleteNodeSymbol: Symbol.for('delete-node'),
+ skipVisitingNodeSymbol: Symbol.for('skip-visiting-node'),
+ },
+ o
+ )
+ );
+ };
+ Ai[Symbol.for('nodejs.util.promisify.custom')] = async (e, t = {}) => {
+ let { keyMap: n = ki } = t,
+ r = Zs(t, Si);
+ return fi[Symbol.for('nodejs.util.promisify.custom')](
+ e,
+ visitor,
+ ji(
+ {
+ keyMap: n,
+ nodeTypeGetter: Oi,
+ nodePredicate: Dt,
+ detectCycles: !1,
+ deleteNodeSymbol: Symbol.for('delete-node'),
+ skipVisitingNodeSymbol: Symbol.for('skip-visiting-node'),
+ },
+ r
+ )
+ );
+ };
+ const Ci = class {
+ constructor(e) {
+ Xo(this, 'type', 'EphemeralArray'),
+ Xo(this, 'content', []),
+ Xo(this, 'reference', void 0),
+ (this.content = e),
+ (this.reference = []);
+ }
+ toReference() {
+ return this.reference;
+ }
+ toArray() {
+ return this.reference.push(...this.content), this.reference;
+ }
+ };
+ const Pi = class {
+ constructor(e) {
+ Xo(this, 'type', 'EphemeralObject'),
+ Xo(this, 'content', []),
+ Xo(this, 'reference', void 0),
+ (this.content = e),
+ (this.reference = {});
+ }
+ toReference() {
+ return this.reference;
+ }
+ toObject() {
+ return Object.assign(this.reference, Object.fromEntries(this.content));
+ }
+ },
+ Ni = Ys.init(function () {
+ const e = new WeakMap();
+ (this.BooleanElement = function (e) {
+ return e.toValue();
+ }),
+ (this.NumberElement = function (e) {
+ return e.toValue();
+ }),
+ (this.StringElement = function (e) {
+ return e.toValue();
+ }),
+ (this.NullElement = function () {
+ return null;
+ }),
+ (this.ObjectElement = {
+ enter(t) {
+ if (e.has(t)) return e.get(t).toReference();
+ const n = new Pi(t.content);
+ return e.set(t, n), n;
+ },
+ }),
+ (this.EphemeralObject = { leave: (e) => e.toObject() }),
+ (this.MemberElement = { enter: (e) => [e.key, e.value] }),
+ (this.ArrayElement = {
+ enter(t) {
+ if (e.has(t)) return e.get(t).toReference();
+ const n = new Ci(t.content);
+ return e.set(t, n), n;
+ },
+ }),
+ (this.EphemeralArray = { leave: (e) => e.toArray() });
+ }),
+ Ii = (e, t = Vs) => {
+ if (Xs(e))
+ try {
+ return t.fromRefract(JSON.parse(e));
+ } catch {}
+ return $s(e) && Hr('element', e) ? t.fromRefract(e) : t.toElement(e);
+ },
+ Ti = (e) => Ai(e, Ni());
+ const Ri = hn('');
+ var Mi = cr(Zt(1, gr(cn, Xr('Number'))), isFinite);
+ var Di = Zt(1, Mi);
+ var Fi = cr(ts(Number.isFinite) ? Zt(1, $n(Number.isFinite, Number)) : Di, vr(hn, [Math.floor, eo]));
+ var Li = Zt(1, Fi);
+ const Bi = ts(Number.isInteger) ? Zt(1, $n(Number.isInteger, Number)) : Li;
+ var $i = Or(function (e, t) {
+ return gr(Io(''), $r(as(e)), io(''))(t);
+ });
+ const qi = $i;
+ class Ui extends Error {
+ constructor(e, t) {
+ super(`Invalid $ref pointer "${e}". Pointers must begin with "/"`, t),
+ (this.name = this.constructor.name),
+ (this.message = `Invalid $ref pointer "${e}". Pointers must begin with "/"`),
+ 'function' == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(`Invalid $ref pointer "${e}". Pointers must begin with "/"`).stack);
+ }
+ }
+ class zi extends Error {
+ constructor(e, t) {
+ super(e, t),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ 'function' == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack);
+ }
+ }
+ const Vi = gr(Co(/~/g, '~0'), Co(/\//g, '~1'), encodeURIComponent),
+ Wi = gr(Co(/~1/g, '/'), Co(/~0/g, '~'), (e) => {
+ try {
+ return decodeURIComponent(e);
+ } catch {
+ return e;
+ }
+ }),
+ Ji = (e, t) => {
+ const n = ((e) => {
+ if (Ri(e)) return [];
+ if (!To('/', e)) throw new Ui(e);
+ const t = gr(Io('/'), Cn(Wi))(e);
+ return mr(t);
+ })(e);
+ return n.reduce((e, t) => {
+ if (bs(e)) {
+ if (!e.hasKey(t)) throw new zi(`Evaluation failed on token: "${t}"`);
+ return e.get(t);
+ }
+ if (ws(e)) {
+ if (!(t in e.content) || !Bi(Number(t))) throw new zi(`Evaluation failed on token: "${t}"`);
+ return e.get(Number(t));
+ }
+ throw new zi(`Evaluation failed on token: "${t}"`);
+ }, t);
+ },
+ Ki = (e) => {
+ const t = ((e) => {
+ const t = e.indexOf('#');
+ return -1 !== t ? e.substring(t) : '#';
+ })(e);
+ return qi('#', t);
+ };
+ class Hi extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'callback');
+ }
+ }
+ const Gi = Hi;
+ class Zi extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'components');
+ }
+ get schemas() {
+ return this.get('schemas');
+ }
+ set schemas(e) {
+ this.set('schemas', e);
+ }
+ get responses() {
+ return this.get('responses');
+ }
+ set responses(e) {
+ this.set('responses', e);
+ }
+ get parameters() {
+ return this.get('parameters');
+ }
+ set parameters(e) {
+ this.set('parameters', e);
+ }
+ get examples() {
+ return this.get('examples');
+ }
+ set examples(e) {
+ this.set('examples', e);
+ }
+ get requestBodies() {
+ return this.get('requestBodies');
+ }
+ set requestBodies(e) {
+ this.set('requestBodies', e);
+ }
+ get headers() {
+ return this.get('headers');
+ }
+ set headers(e) {
+ this.set('headers', e);
+ }
+ get securitySchemes() {
+ return this.get('securitySchemes');
+ }
+ set securitySchemes(e) {
+ this.set('securitySchemes', e);
+ }
+ get links() {
+ return this.get('links');
+ }
+ set links(e) {
+ this.set('links', e);
+ }
+ get callbacks() {
+ return this.get('callbacks');
+ }
+ set callbacks(e) {
+ this.set('callbacks', e);
+ }
+ }
+ const Yi = Zi;
+ class Xi extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'contact');
+ }
+ get name() {
+ return this.get('name');
+ }
+ set name(e) {
+ this.set('name', e);
+ }
+ get url() {
+ return this.get('url');
+ }
+ set url(e) {
+ this.set('url', e);
+ }
+ get email() {
+ return this.get('email');
+ }
+ set email(e) {
+ this.set('email', e);
+ }
+ }
+ const Qi = Xi;
+ class ea extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'discriminator');
+ }
+ get propertyName() {
+ return this.get('propertyName');
+ }
+ set propertyName(e) {
+ this.set('propertyName', e);
+ }
+ get mapping() {
+ return this.get('mapping');
+ }
+ set mapping(e) {
+ this.set('mapping', e);
+ }
+ }
+ const ta = ea;
+ class na extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'encoding');
+ }
+ get contentType() {
+ return this.get('contentType');
+ }
+ set contentType(e) {
+ this.set('contentType', e);
+ }
+ get headers() {
+ return this.get('headers');
+ }
+ set headers(e) {
+ this.set('headers', e);
+ }
+ get style() {
+ return this.get('style');
+ }
+ set style(e) {
+ this.set('style', e);
+ }
+ get explode() {
+ return this.get('explode');
+ }
+ set explode(e) {
+ this.set('explode', e);
+ }
+ get allowedReserved() {
+ return this.get('allowedReserved');
+ }
+ set allowedReserved(e) {
+ this.set('allowedReserved', e);
+ }
+ }
+ const ra = na;
+ class oa extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'example');
+ }
+ get summary() {
+ return this.get('summary');
+ }
+ set summary(e) {
+ this.set('summary', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get value() {
+ return this.get('value');
+ }
+ set value(e) {
+ this.set('value', e);
+ }
+ get externalValue() {
+ return this.get('externalValue');
+ }
+ set externalValue(e) {
+ this.set('externalValue', e);
+ }
+ }
+ const sa = oa;
+ class ia extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'externalDocumentation');
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get url() {
+ return this.get('url');
+ }
+ set url(e) {
+ this.set('url', e);
+ }
+ }
+ const aa = ia;
+ class la extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'header');
+ }
+ get required() {
+ return this.hasKey('required') ? this.get('required') : new Pt.hh(!1);
+ }
+ set required(e) {
+ this.set('required', e);
+ }
+ get deprecated() {
+ return this.hasKey('deprecated') ? this.get('deprecated') : new Pt.hh(!1);
+ }
+ set deprecated(e) {
+ this.set('deprecated', e);
+ }
+ get allowEmptyValue() {
+ return this.get('allowEmptyValue');
+ }
+ set allowEmptyValue(e) {
+ this.set('allowEmptyValue', e);
+ }
+ get style() {
+ return this.get('style');
+ }
+ set style(e) {
+ this.set('style', e);
+ }
+ get explode() {
+ return this.get('explode');
+ }
+ set explode(e) {
+ this.set('explode', e);
+ }
+ get allowReserved() {
+ return this.get('allowReserved');
+ }
+ set allowReserved(e) {
+ this.set('allowReserved', e);
+ }
+ get schema() {
+ return this.get('schema');
+ }
+ set schema(e) {
+ this.set('schema', e);
+ }
+ get example() {
+ return this.get('example');
+ }
+ set example(e) {
+ this.set('example', e);
+ }
+ get examples() {
+ return this.get('examples');
+ }
+ set examples(e) {
+ this.set('examples', e);
+ }
+ get contentProp() {
+ return this.get('content');
+ }
+ set contentProp(e) {
+ this.set('content', e);
+ }
+ }
+ Object.defineProperty(la.prototype, 'description', {
+ get() {
+ return this.get('description');
+ },
+ set(e) {
+ this.set('description', e);
+ },
+ enumerable: !0,
+ });
+ const ca = la;
+ class ua extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'info'), this.classes.push('info');
+ }
+ get title() {
+ return this.get('title');
+ }
+ set title(e) {
+ this.set('title', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get termsOfService() {
+ return this.get('termsOfService');
+ }
+ set termsOfService(e) {
+ this.set('termsOfService', e);
+ }
+ get contact() {
+ return this.get('contact');
+ }
+ set contact(e) {
+ this.set('contact', e);
+ }
+ get license() {
+ return this.get('license');
+ }
+ set license(e) {
+ this.set('license', e);
+ }
+ get version() {
+ return this.get('version');
+ }
+ set version(e) {
+ this.set('version', e);
+ }
+ }
+ const pa = ua;
+ class ha extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'license');
+ }
+ get name() {
+ return this.get('name');
+ }
+ set name(e) {
+ this.set('name', e);
+ }
+ get url() {
+ return this.get('url');
+ }
+ set url(e) {
+ this.set('url', e);
+ }
+ }
+ const fa = ha;
+ class da extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'link');
+ }
+ get operationRef() {
+ return this.get('operationRef');
+ }
+ set operationRef(e) {
+ this.set('operationRef', e);
+ }
+ get operationId() {
+ return this.get('operationId');
+ }
+ set operationId(e) {
+ this.set('operationId', e);
+ }
+ get operation() {
+ var e, t;
+ return ms(this.operationRef)
+ ? null === (e = this.operationRef) || void 0 === e
+ ? void 0
+ : e.meta.get('operation')
+ : ms(this.operationId)
+ ? null === (t = this.operationId) || void 0 === t
+ ? void 0
+ : t.meta.get('operation')
+ : void 0;
+ }
+ set operation(e) {
+ this.set('operation', e);
+ }
+ get parameters() {
+ return this.get('parameters');
+ }
+ set parameters(e) {
+ this.set('parameters', e);
+ }
+ get requestBody() {
+ return this.get('requestBody');
+ }
+ set requestBody(e) {
+ this.set('requestBody', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get server() {
+ return this.get('server');
+ }
+ set server(e) {
+ this.set('server', e);
+ }
+ }
+ const ma = da;
+ class ga extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'mediaType');
+ }
+ get schema() {
+ return this.get('schema');
+ }
+ set schema(e) {
+ this.set('schema', e);
+ }
+ get example() {
+ return this.get('example');
+ }
+ set example(e) {
+ this.set('example', e);
+ }
+ get examples() {
+ return this.get('examples');
+ }
+ set examples(e) {
+ this.set('examples', e);
+ }
+ get encoding() {
+ return this.get('encoding');
+ }
+ set encoding(e) {
+ this.set('encoding', e);
+ }
+ }
+ const ya = ga;
+ class va extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'oAuthFlow');
+ }
+ get authorizationUrl() {
+ return this.get('authorizationUrl');
+ }
+ set authorizationUrl(e) {
+ this.set('authorizationUrl', e);
+ }
+ get tokenUrl() {
+ return this.get('tokenUrl');
+ }
+ set tokenUrl(e) {
+ this.set('tokenUrl', e);
+ }
+ get refreshUrl() {
+ return this.get('refreshUrl');
+ }
+ set refreshUrl(e) {
+ this.set('refreshUrl', e);
+ }
+ get scopes() {
+ return this.get('scopes');
+ }
+ set scopes(e) {
+ this.set('scopes', e);
+ }
+ }
+ const ba = va;
+ class wa extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'oAuthFlows');
+ }
+ get implicit() {
+ return this.get('implicit');
+ }
+ set implicit(e) {
+ this.set('implicit', e);
+ }
+ get password() {
+ return this.get('password');
+ }
+ set password(e) {
+ this.set('password', e);
+ }
+ get clientCredentials() {
+ return this.get('clientCredentials');
+ }
+ set clientCredentials(e) {
+ this.set('clientCredentials', e);
+ }
+ get authorizationCode() {
+ return this.get('authorizationCode');
+ }
+ set authorizationCode(e) {
+ this.set('authorizationCode', e);
+ }
+ }
+ const Ea = wa;
+ class xa extends Pt.RP {
+ constructor(e, t, n) {
+ super(e, t, n),
+ (this.element = 'openapi'),
+ this.classes.push('spec-version'),
+ this.classes.push('version');
+ }
+ }
+ const Sa = xa;
+ class _a extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'openApi3_0'), this.classes.push('api');
+ }
+ get openapi() {
+ return this.get('openapi');
+ }
+ set openapi(e) {
+ this.set('openapi', e);
+ }
+ get info() {
+ return this.get('info');
+ }
+ set info(e) {
+ this.set('info', e);
+ }
+ get servers() {
+ return this.get('servers');
+ }
+ set servers(e) {
+ this.set('servers', e);
+ }
+ get paths() {
+ return this.get('paths');
+ }
+ set paths(e) {
+ this.set('paths', e);
+ }
+ get components() {
+ return this.get('components');
+ }
+ set components(e) {
+ this.set('components', e);
+ }
+ get security() {
+ return this.get('security');
+ }
+ set security(e) {
+ this.set('security', e);
+ }
+ get tags() {
+ return this.get('tags');
+ }
+ set tags(e) {
+ this.set('tags', e);
+ }
+ get externalDocs() {
+ return this.get('externalDocs');
+ }
+ set externalDocs(e) {
+ this.set('externalDocs', e);
+ }
+ }
+ const ja = _a;
+ class Oa extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'operation');
+ }
+ get tags() {
+ return this.get('tags');
+ }
+ set tags(e) {
+ this.set('tags', e);
+ }
+ get summary() {
+ return this.get('summary');
+ }
+ set summary(e) {
+ this.set('summary', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ set externalDocs(e) {
+ this.set('externalDocs', e);
+ }
+ get externalDocs() {
+ return this.get('externalDocs');
+ }
+ get operationId() {
+ return this.get('operationId');
+ }
+ set operationId(e) {
+ this.set('operationId', e);
+ }
+ get parameters() {
+ return this.get('parameters');
+ }
+ set parameters(e) {
+ this.set('parameters', e);
+ }
+ get requestBody() {
+ return this.get('requestBody');
+ }
+ set requestBody(e) {
+ this.set('requestBody', e);
+ }
+ get responses() {
+ return this.get('responses');
+ }
+ set responses(e) {
+ this.set('responses', e);
+ }
+ get callbacks() {
+ return this.get('callbacks');
+ }
+ set callbacks(e) {
+ this.set('callbacks', e);
+ }
+ get deprecated() {
+ return this.hasKey('deprecated') ? this.get('deprecated') : new Pt.hh(!1);
+ }
+ set deprecated(e) {
+ this.set('deprecated', e);
+ }
+ get security() {
+ return this.get('security');
+ }
+ set security(e) {
+ this.set('security', e);
+ }
+ get servers() {
+ return this.get('severs');
+ }
+ set servers(e) {
+ this.set('servers', e);
+ }
+ }
+ const ka = Oa;
+ class Aa extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'parameter');
+ }
+ get name() {
+ return this.get('name');
+ }
+ set name(e) {
+ this.set('name', e);
+ }
+ get in() {
+ return this.get('in');
+ }
+ set in(e) {
+ this.set('in', e);
+ }
+ get required() {
+ return this.hasKey('required') ? this.get('required') : new Pt.hh(!1);
+ }
+ set required(e) {
+ this.set('required', e);
+ }
+ get deprecated() {
+ return this.hasKey('deprecated') ? this.get('deprecated') : new Pt.hh(!1);
+ }
+ set deprecated(e) {
+ this.set('deprecated', e);
+ }
+ get allowEmptyValue() {
+ return this.get('allowEmptyValue');
+ }
+ set allowEmptyValue(e) {
+ this.set('allowEmptyValue', e);
+ }
+ get style() {
+ return this.get('style');
+ }
+ set style(e) {
+ this.set('style', e);
+ }
+ get explode() {
+ return this.get('explode');
+ }
+ set explode(e) {
+ this.set('explode', e);
+ }
+ get allowReserved() {
+ return this.get('allowReserved');
+ }
+ set allowReserved(e) {
+ this.set('allowReserved', e);
+ }
+ get schema() {
+ return this.get('schema');
+ }
+ set schema(e) {
+ this.set('schema', e);
+ }
+ get example() {
+ return this.get('example');
+ }
+ set example(e) {
+ this.set('example', e);
+ }
+ get examples() {
+ return this.get('examples');
+ }
+ set examples(e) {
+ this.set('examples', e);
+ }
+ get contentProp() {
+ return this.get('content');
+ }
+ set contentProp(e) {
+ this.set('content', e);
+ }
+ }
+ Object.defineProperty(Aa.prototype, 'description', {
+ get() {
+ return this.get('description');
+ },
+ set(e) {
+ this.set('description', e);
+ },
+ enumerable: !0,
+ });
+ const Ca = Aa;
+ class Pa extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'pathItem');
+ }
+ get $ref() {
+ return this.get('$ref');
+ }
+ set $ref(e) {
+ this.set('$ref', e);
+ }
+ get summary() {
+ return this.get('summary');
+ }
+ set summary(e) {
+ this.set('summary', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get GET() {
+ return this.get('get');
+ }
+ set GET(e) {
+ this.set('GET', e);
+ }
+ get PUT() {
+ return this.get('put');
+ }
+ set PUT(e) {
+ this.set('PUT', e);
+ }
+ get POST() {
+ return this.get('post');
+ }
+ set POST(e) {
+ this.set('POST', e);
+ }
+ get DELETE() {
+ return this.get('delete');
+ }
+ set DELETE(e) {
+ this.set('DELETE', e);
+ }
+ get OPTIONS() {
+ return this.get('options');
+ }
+ set OPTIONS(e) {
+ this.set('OPTIONS', e);
+ }
+ get HEAD() {
+ return this.get('head');
+ }
+ set HEAD(e) {
+ this.set('HEAD', e);
+ }
+ get PATCH() {
+ return this.get('patch');
+ }
+ set PATCH(e) {
+ this.set('PATCH', e);
+ }
+ get TRACE() {
+ return this.get('trace');
+ }
+ set TRACE(e) {
+ this.set('TRACE', e);
+ }
+ get servers() {
+ return this.get('servers');
+ }
+ set servers(e) {
+ this.set('servers', e);
+ }
+ get parameters() {
+ return this.get('parameters');
+ }
+ set parameters(e) {
+ this.set('parameters', e);
+ }
+ }
+ const Na = Pa;
+ class Ia extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'paths');
+ }
+ }
+ const Ta = Ia;
+ class Ra extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'reference'), this.classes.push('openapi-reference');
+ }
+ get $ref() {
+ return this.get('$ref');
+ }
+ set $ref(e) {
+ this.set('$ref', e);
+ }
+ }
+ const Ma = Ra;
+ class Da extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'requestBody');
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get contentProp() {
+ return this.get('content');
+ }
+ set contentProp(e) {
+ this.set('content', e);
+ }
+ get required() {
+ return this.hasKey('required') ? this.get('required') : new Pt.hh(!1);
+ }
+ set required(e) {
+ this.set('required', e);
+ }
+ }
+ const Fa = Da;
+ class La extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'response');
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get headers() {
+ return this.get('headers');
+ }
+ set headers(e) {
+ this.set('headers', e);
+ }
+ get contentProp() {
+ return this.get('content');
+ }
+ set contentProp(e) {
+ this.set('content', e);
+ }
+ get links() {
+ return this.get('links');
+ }
+ set links(e) {
+ this.set('links', e);
+ }
+ }
+ const Ba = La;
+ class $a extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'responses');
+ }
+ get default() {
+ return this.get('default');
+ }
+ set default(e) {
+ this.set('default', e);
+ }
+ }
+ const qa = $a;
+ class Ua extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'JSONSchemaDraft4');
+ }
+ get idProp() {
+ return this.get('id');
+ }
+ set idProp(e) {
+ this.set('id', e);
+ }
+ get $schema() {
+ return this.get('$schema');
+ }
+ set $schema(e) {
+ this.set('idProp', e);
+ }
+ get multipleOf() {
+ return this.get('multipleOf');
+ }
+ set multipleOf(e) {
+ this.set('multipleOf', e);
+ }
+ get maximum() {
+ return this.get('maximum');
+ }
+ set maximum(e) {
+ this.set('maximum', e);
+ }
+ get exclusiveMaximum() {
+ return this.get('exclusiveMaximum');
+ }
+ set exclusiveMaximum(e) {
+ this.set('exclusiveMaximum', e);
+ }
+ get minimum() {
+ return this.get('minimum');
+ }
+ set minimum(e) {
+ this.set('minimum', e);
+ }
+ get exclusiveMinimum() {
+ return this.get('exclusiveMinimum');
+ }
+ set exclusiveMinimum(e) {
+ this.set('exclusiveMinimum', e);
+ }
+ get maxLength() {
+ return this.get('maxLength');
+ }
+ set maxLength(e) {
+ this.set('maxLength', e);
+ }
+ get minLength() {
+ return this.get('minLength');
+ }
+ set minLength(e) {
+ this.set('minLength', e);
+ }
+ get pattern() {
+ return this.get('pattern');
+ }
+ set pattern(e) {
+ this.set('pattern', e);
+ }
+ get additionalItems() {
+ return this.get('additionalItems');
+ }
+ set additionalItems(e) {
+ this.set('additionalItems', e);
+ }
+ get items() {
+ return this.get('items');
+ }
+ set items(e) {
+ this.set('items', e);
+ }
+ get maxItems() {
+ return this.get('maxItems');
+ }
+ set maxItems(e) {
+ this.set('maxItems', e);
+ }
+ get minItems() {
+ return this.get('minItems');
+ }
+ set minItems(e) {
+ this.set('minItems', e);
+ }
+ get uniqueItems() {
+ return this.get('uniqueItems');
+ }
+ set uniqueItems(e) {
+ this.set('uniqueItems', e);
+ }
+ get maxProperties() {
+ return this.get('maxProperties');
+ }
+ set maxProperties(e) {
+ this.set('maxProperties', e);
+ }
+ get minProperties() {
+ return this.get('minProperties');
+ }
+ set minProperties(e) {
+ this.set('minProperties', e);
+ }
+ get required() {
+ return this.get('required');
+ }
+ set required(e) {
+ this.set('required', e);
+ }
+ get properties() {
+ return this.get('properties');
+ }
+ set properties(e) {
+ this.set('properties', e);
+ }
+ get additionalProperties() {
+ return this.get('additionalProperties');
+ }
+ set additionalProperties(e) {
+ this.set('additionalProperties', e);
+ }
+ get patternProperties() {
+ return this.get('patternProperties');
+ }
+ set patternProperties(e) {
+ this.set('patternProperties', e);
+ }
+ get dependencies() {
+ return this.get('dependencies');
+ }
+ set dependencies(e) {
+ this.set('dependencies', e);
+ }
+ get enum() {
+ return this.get('enum');
+ }
+ set enum(e) {
+ this.set('enum', e);
+ }
+ get type() {
+ return this.get('type');
+ }
+ set type(e) {
+ this.set('type', e);
+ }
+ get allOf() {
+ return this.get('allOf');
+ }
+ set allOf(e) {
+ this.set('allOf', e);
+ }
+ get anyOf() {
+ return this.get('anyOf');
+ }
+ set anyOf(e) {
+ this.set('anyOf', e);
+ }
+ get oneOf() {
+ return this.get('oneOf');
+ }
+ set oneOf(e) {
+ this.set('oneOf', e);
+ }
+ get not() {
+ return this.get('not');
+ }
+ set not(e) {
+ this.set('not', e);
+ }
+ get definitions() {
+ return this.get('definitions');
+ }
+ set definitions(e) {
+ this.set('definitions', e);
+ }
+ get title() {
+ return this.get('title');
+ }
+ set title(e) {
+ this.set('title', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get default() {
+ return this.get('default');
+ }
+ set default(e) {
+ this.set('default', e);
+ }
+ get format() {
+ return this.get('format');
+ }
+ set format(e) {
+ this.set('format', e);
+ }
+ get base() {
+ return this.get('base');
+ }
+ set base(e) {
+ this.set('base', e);
+ }
+ get links() {
+ return this.get('links');
+ }
+ set links(e) {
+ this.set('links', e);
+ }
+ get media() {
+ return this.get('media');
+ }
+ set media(e) {
+ this.set('media', e);
+ }
+ get readOnly() {
+ return this.get('readOnly');
+ }
+ set readOnly(e) {
+ this.set('readOnly', e);
+ }
+ }
+ const za = Ua;
+ class Va extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'JSONReference'), this.classes.push('json-reference');
+ }
+ get $ref() {
+ return this.get('$ref');
+ }
+ set $ref(e) {
+ this.set('$ref', e);
+ }
+ }
+ const Wa = Va;
+ class Ja extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'media');
+ }
+ get binaryEncoding() {
+ return this.get('binaryEncoding');
+ }
+ set binaryEncoding(e) {
+ this.set('binaryEncoding', e);
+ }
+ get type() {
+ return this.get('type');
+ }
+ set type(e) {
+ this.set('type', e);
+ }
+ }
+ const Ka = Ja;
+ class Ha extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'linkDescription');
+ }
+ get href() {
+ return this.get('href');
+ }
+ set href(e) {
+ this.set('href', e);
+ }
+ get rel() {
+ return this.get('rel');
+ }
+ set rel(e) {
+ this.set('rel', e);
+ }
+ get title() {
+ return this.get('title');
+ }
+ set title(e) {
+ this.set('title', e);
+ }
+ get targetSchema() {
+ return this.get('targetSchema');
+ }
+ set targetSchema(e) {
+ this.set('targetSchema', e);
+ }
+ get mediaType() {
+ return this.get('mediaType');
+ }
+ set mediaType(e) {
+ this.set('mediaType', e);
+ }
+ get method() {
+ return this.get('method');
+ }
+ set method(e) {
+ this.set('method', e);
+ }
+ get encType() {
+ return this.get('encType');
+ }
+ set encType(e) {
+ this.set('encType', e);
+ }
+ get schema() {
+ return this.get('schema');
+ }
+ set schema(e) {
+ this.set('schema', e);
+ }
+ }
+ const Ga = Ha,
+ Za = (e, t) => {
+ const n = kr(e, t);
+ return po((e) => {
+ if ($s(e) && Hr('$ref', e) && _o(Xs, '$ref', e)) {
+ const t = uo(['$ref'], e),
+ r = qi('#/', t);
+ return uo(r.split('/'), n);
+ }
+ return $s(e) ? Za(e, n) : e;
+ }, e);
+ },
+ Ya = Ys({
+ props: { element: null },
+ methods: {
+ copyMetaAndAttributes(e, t) {
+ Cs(e) && t.meta.set('sourceMap', e.meta.get('sourceMap'));
+ },
+ },
+ }),
+ Xa = Ya,
+ Qa = Ys(Xa, {
+ methods: {
+ enter(e) {
+ return (this.element = e.clone()), ei;
+ },
+ },
+ });
+ const el = Hn($o());
+ function tl(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const nl = (e) => {
+ if (ds(e)) return `${e.element.charAt(0).toUpperCase() + e.element.slice(1)}Element`;
+ },
+ rl = (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? tl(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : tl(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })(
+ {
+ JSONSchemaDraft4Element: ['content'],
+ JSONReferenceElement: ['content'],
+ MediaElement: ['content'],
+ LinkDescriptionElement: ['content'],
+ },
+ pi
+ );
+ function ol(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function sl(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? ol(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : ol(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const il = Ys(Xa, {
+ props: { specObj: null, passingOptionsNames: ['specObj'] },
+ init({ specObj: e = this.specObj }) {
+ this.specObj = e;
+ },
+ methods: {
+ retrievePassingOptions() {
+ return Eo(this.passingOptionsNames, this);
+ },
+ retrieveFixedFields(e) {
+ return gr(uo(['visitors', ...e, 'fixedFields']), ln)(this.specObj);
+ },
+ retrieveVisitor(e) {
+ return wo(ts, ['visitors', ...e], this.specObj)
+ ? uo(['visitors', ...e], this.specObj)
+ : uo(['visitors', ...e, '$visitor'], this.specObj);
+ },
+ retrieveVisitorInstance(e, t = {}) {
+ const n = this.retrievePassingOptions();
+ return this.retrieveVisitor(e)(sl(sl({}, n), t));
+ },
+ toRefractedElement(e, t, n = {}) {
+ const r = this.retrieveVisitorInstance(e, n),
+ o = Object.getPrototypeOf(r);
+ return (
+ qo(this.fallbackVisitorPrototype) &&
+ (this.fallbackVisitorPrototype = Object.getPrototypeOf(this.retrieveVisitorInstance(['value']))),
+ this.fallbackVisitorPrototype === o
+ ? t.clone()
+ : (fi(t, r, sl({ keyMap: rl, nodeTypeGetter: nl }, n)), r.element)
+ );
+ },
+ },
+ }),
+ al = Ys(il, {
+ props: { specPath: el, ignoredFields: [] },
+ init({ specPath: e = this.specPath, ignoredFields: t = this.ignoredFields } = {}) {
+ (this.specPath = e), (this.ignoredFields = t);
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = this.specPath(e),
+ n = this.retrieveFixedFields(t);
+ return (
+ e.forEach((e, r, o) => {
+ if (ms(r) && n.includes(r.toValue()) && !this.ignoredFields.includes(r.toValue())) {
+ const n = this.toRefractedElement([...t, 'fixedFields', r.toValue()], e),
+ s = new Pt.c6(r.clone(), n);
+ this.copyMetaAndAttributes(o, s), s.classes.push('fixed-field'), this.element.content.push(s);
+ } else this.ignoredFields.includes(r.toValue()) || this.element.content.push(o.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ ll = al,
+ cl = Ys(ll, Qa, {
+ props: { specPath: Hn(['document', 'objects', 'JSONSchema']) },
+ init() {
+ this.element = new za();
+ },
+ }),
+ ul = Qa,
+ pl = Qa,
+ hl = Qa,
+ fl = Qa,
+ dl = Qa,
+ ml = Qa,
+ gl = Qa,
+ yl = Qa,
+ vl = Qa,
+ bl = Qa,
+ wl = Ys({
+ props: { parent: null },
+ init({ parent: e = this.parent }) {
+ (this.parent = e), (this.passingOptionsNames = [...this.passingOptionsNames, 'parent']);
+ },
+ }),
+ El = (e) => bs(e) && e.hasKey('$ref'),
+ xl = Ys(il, wl, Qa, {
+ methods: {
+ ObjectElement(e) {
+ const t = El(e) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'];
+ return (this.element = this.toRefractedElement(t, e)), ei;
+ },
+ ArrayElement(e) {
+ return (
+ (this.element = new Pt.ON()),
+ this.element.classes.push('json-schema-items'),
+ e.forEach((e) => {
+ const t = El(e)
+ ? ['document', 'objects', 'JSONReference']
+ : ['document', 'objects', 'JSONSchema'],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ Sl = Qa,
+ _l = Qa,
+ jl = Qa,
+ Ol = Qa,
+ kl = Qa,
+ Al = Ys(Qa, {
+ methods: {
+ ArrayElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-required'), ei;
+ },
+ },
+ });
+ const Cl = pr(Zt(1, cr(Ts, Ur(Ms, ts))));
+ const Pl = pr(so);
+ const Nl = Kn([Xs, Cl, Pl]),
+ Il = Ys(il, {
+ props: { fieldPatternPredicate: Mt, specPath: el, ignoredFields: [] },
+ init({ specPath: e = this.specPath, ignoredFields: t = this.ignoredFields } = {}) {
+ (this.specPath = e), (this.ignoredFields = t);
+ },
+ methods: {
+ ObjectElement(e) {
+ return (
+ e.forEach((e, t, n) => {
+ if (!this.ignoredFields.includes(t.toValue()) && this.fieldPatternPredicate(t.toValue())) {
+ const r = this.specPath(e),
+ o = this.toRefractedElement(r, e),
+ s = new Pt.c6(t.clone(), o);
+ this.copyMetaAndAttributes(n, s),
+ s.classes.push('patterned-field'),
+ this.element.content.push(s);
+ } else this.ignoredFields.includes(t.toValue()) || this.element.content.push(n.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ Tl = Ys(Il, { props: { fieldPatternPredicate: Nl } }),
+ Rl = Ys(Tl, wl, Qa, {
+ props: {
+ specPath: (e) =>
+ El(e) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'],
+ },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-properties');
+ },
+ }),
+ Ml = Ys(Tl, wl, Qa, {
+ props: {
+ specPath: (e) =>
+ El(e) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'],
+ },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-patternProperties');
+ },
+ }),
+ Dl = Ys(Tl, wl, Qa, {
+ props: {
+ specPath: (e) =>
+ El(e) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'],
+ },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-dependencies');
+ },
+ }),
+ Fl = Ys(Qa, {
+ methods: {
+ ArrayElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-enum'), ei;
+ },
+ },
+ }),
+ Ll = Ys(Qa, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-type'), ei;
+ },
+ ArrayElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-type'), ei;
+ },
+ },
+ }),
+ Bl = Ys(il, wl, Qa, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-allOf');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = El(e)
+ ? ['document', 'objects', 'JSONReference']
+ : ['document', 'objects', 'JSONSchema'],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ $l = Ys(il, wl, Qa, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-anyOf');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = El(e)
+ ? ['document', 'objects', 'JSONReference']
+ : ['document', 'objects', 'JSONSchema'],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ ql = Ys(il, wl, Qa, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-oneOf');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = El(e)
+ ? ['document', 'objects', 'JSONReference']
+ : ['document', 'objects', 'JSONSchema'],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ Ul = Ys(Tl, wl, Qa, {
+ props: {
+ specPath: (e) =>
+ El(e) ? ['document', 'objects', 'JSONReference'] : ['document', 'objects', 'JSONSchema'],
+ },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-definitions');
+ },
+ }),
+ zl = Qa,
+ Vl = Qa,
+ Wl = Qa,
+ Jl = Qa,
+ Kl = Qa,
+ Hl = Ys(il, wl, Qa, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-links');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = this.toRefractedElement(['document', 'objects', 'LinkDescription'], e);
+ this.element.push(t);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ Gl = Qa,
+ Zl = Ys(ll, Qa, {
+ props: { specPath: Hn(['document', 'objects', 'JSONReference']) },
+ init() {
+ this.element = new Wa();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = ll.compose.methods.ObjectElement.call(this, e);
+ return ms(this.element.$ref) && this.element.classes.push('reference-element'), t;
+ },
+ },
+ }),
+ Yl = Ys(Qa, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('reference-value'), ei;
+ },
+ },
+ });
+ const Xl = pr(rr);
+ const Ql = cr(rs, Pl);
+ function ec(e) {
+ return (
+ (function (e) {
+ if (Array.isArray(e)) return tc(e);
+ })(e) ||
+ (function (e) {
+ if (('undefined' != typeof Symbol && null != e[Symbol.iterator]) || null != e['@@iterator'])
+ return Array.from(e);
+ })(e) ||
+ (function (e, t) {
+ if (!e) return;
+ if ('string' == typeof e) return tc(e, t);
+ var n = Object.prototype.toString.call(e).slice(8, -1);
+ 'Object' === n && e.constructor && (n = e.constructor.name);
+ if ('Map' === n || 'Set' === n) return Array.from(e);
+ if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return tc(e, t);
+ })(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 tc(e, t) {
+ (null == t || t > e.length) && (t = e.length);
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
+ return r;
+ }
+ var nc = gr(
+ No(
+ ur(function (e, t) {
+ return e.length > t.length;
+ })
+ ),
+ Zr,
+ Tn('length')
+ ),
+ rc = Or(function (e, t, n) {
+ var r = n.apply(void 0, ec(e));
+ return Xl(r) ? Ao(r) : t;
+ });
+ const oc = to(
+ Ql,
+ function (e) {
+ var t = nc(e);
+ return Zt(t, function () {
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
+ return Jn(rc(n), void 0, e);
+ });
+ },
+ $o
+ ),
+ sc = Ys(il, {
+ props: { alternator: [] },
+ methods: {
+ enter(e) {
+ const t = this.alternator.map(({ predicate: e, specPath: t }) => to(e, Hn(t), $o)),
+ n = oc(t)(e);
+ return (this.element = this.toRefractedElement(n, e)), ei;
+ },
+ },
+ }),
+ ic = Ys(sc, {
+ props: {
+ alternator: [
+ { predicate: El, specPath: ['document', 'objects', 'JSONReference'] },
+ { predicate: Dt, specPath: ['document', 'objects', 'JSONSchema'] },
+ ],
+ },
+ }),
+ ac = {
+ visitors: {
+ value: Qa,
+ JSONSchemaOrJSONReferenceVisitor: ic,
+ document: {
+ objects: {
+ JSONSchema: {
+ $visitor: cl,
+ fixedFields: {
+ id: ul,
+ $schema: pl,
+ multipleOf: hl,
+ maximum: fl,
+ exclusiveMaximum: dl,
+ minimum: ml,
+ exclusiveMinimum: gl,
+ maxLength: yl,
+ minLength: vl,
+ pattern: bl,
+ additionalItems: ic,
+ items: xl,
+ maxItems: Sl,
+ minItems: _l,
+ uniqueItems: jl,
+ maxProperties: Ol,
+ minProperties: kl,
+ required: Al,
+ properties: Rl,
+ additionalProperties: ic,
+ patternProperties: Ml,
+ dependencies: Dl,
+ enum: Fl,
+ type: Ll,
+ allOf: Bl,
+ anyOf: $l,
+ oneOf: ql,
+ not: ic,
+ definitions: Ul,
+ title: zl,
+ description: Vl,
+ default: Wl,
+ format: Jl,
+ base: Kl,
+ links: Hl,
+ media: { $ref: '#/visitors/document/objects/Media' },
+ readOnly: Gl,
+ },
+ },
+ JSONReference: { $visitor: Zl, fixedFields: { $ref: Yl } },
+ Media: {
+ $visitor: Ys(ll, Qa, {
+ props: { specPath: Hn(['document', 'objects', 'Media']) },
+ init() {
+ this.element = new Ka();
+ },
+ }),
+ fixedFields: { binaryEncoding: Qa, type: Qa },
+ },
+ LinkDescription: {
+ $visitor: Ys(ll, Qa, {
+ props: { specPath: Hn(['document', 'objects', 'LinkDescription']) },
+ init() {
+ this.element = new Ga();
+ },
+ }),
+ fixedFields: {
+ href: Qa,
+ rel: Qa,
+ title: Qa,
+ targetSchema: ic,
+ mediaType: Qa,
+ method: Qa,
+ encType: Qa,
+ schema: ic,
+ },
+ },
+ },
+ },
+ },
+ },
+ lc = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof za || (e(r) && t('JSONSchemaDraft4', r) && n('object', r))
+ ),
+ cc = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Wa || (e(r) && t('JSONReference', r) && n('object', r))
+ ),
+ uc = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ka || (e(r) && t('media', r) && n('object', r))
+ ),
+ pc = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ga || (e(r) && t('linkDescription', r) && n('object', r))
+ ),
+ hc = {
+ namespace: (e) => {
+ const { base: t } = e;
+ return (
+ t.register('jSONSchemaDraft4', za),
+ t.register('jSONReference', Wa),
+ t.register('media', Ka),
+ t.register('linkDescription', Ga),
+ t
+ );
+ },
+ };
+ function fc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function dc(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? fc(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : fc(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const mc = () => {
+ const e = zs(hc);
+ return { predicates: dc(dc({}, i), {}, { isStringElement: ms }), namespace: e };
+ };
+ function gc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const yc = (
+ e,
+ {
+ specPath: t = ['visitors', 'document', 'objects', 'JSONSchema', '$visitor'],
+ plugins: n = [],
+ specificationObj: r = ac,
+ } = {}
+ ) => {
+ const o = (0, Pt.Qc)(e),
+ s = Za(r),
+ i = is(t, [], s);
+ return (
+ fi(o, i, { state: { specObj: s } }),
+ di(i.element, n, { toolboxCreator: mc, visitorOptions: { keyMap: rl, nodeTypeGetter: nl } })
+ );
+ },
+ vc =
+ (e) =>
+ (t, n = {}) =>
+ yc(
+ t,
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? gc(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : gc(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })({ specPath: e }, n)
+ );
+ (za.refract = vc(['visitors', 'document', 'objects', 'JSONSchema', '$visitor'])),
+ (Wa.refract = vc(['visitors', 'document', 'objects', 'JSONReference', '$visitor'])),
+ (Ka.refract = vc(['visitors', 'document', 'objects', 'Media', '$visitor'])),
+ (Ga.refract = vc(['visitors', 'document', 'objects', 'LinkDescription', '$visitor']));
+ const bc = class extends za {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'schema'), this.classes.push('json-schema-draft-4');
+ }
+ get additionalItems() {
+ return this.get('additionalItems');
+ }
+ set additionalItems(e) {
+ this.set('additionalItems', e);
+ }
+ get items() {
+ return this.get('items');
+ }
+ set items(e) {
+ this.set('items', e);
+ }
+ get additionalProperties() {
+ return this.get('additionalProperties');
+ }
+ set additionalProperties(e) {
+ this.set('additionalProperties', e);
+ }
+ get type() {
+ return this.get('type');
+ }
+ set type(e) {
+ this.set('type', e);
+ }
+ get not() {
+ return this.get('not');
+ }
+ set not(e) {
+ this.set('not', e);
+ }
+ get nullable() {
+ return this.get('nullable');
+ }
+ set nullable(e) {
+ this.set('nullable', e);
+ }
+ get discriminator() {
+ return this.get('discriminator');
+ }
+ set discriminator(e) {
+ this.set('discriminator', e);
+ }
+ get writeOnly() {
+ return this.get('writeOnly');
+ }
+ set writeOnly(e) {
+ this.set('writeOnly', e);
+ }
+ get xml() {
+ return this.get('xml');
+ }
+ set xml(e) {
+ this.set('xml', e);
+ }
+ get externalDocs() {
+ return this.get('externalDocs');
+ }
+ set externalDocs(e) {
+ this.set('externalDocs', e);
+ }
+ get example() {
+ return this.get('example');
+ }
+ set example(e) {
+ this.set('example', e);
+ }
+ get deprecated() {
+ return this.get('deprecated');
+ }
+ set deprecated(e) {
+ this.set('deprecated', e);
+ }
+ };
+ class wc extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'securityRequirement');
+ }
+ }
+ const Ec = wc;
+ class xc extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'securityScheme');
+ }
+ get type() {
+ return this.get('type');
+ }
+ set type(e) {
+ this.set('type', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get name() {
+ return this.get('name');
+ }
+ set name(e) {
+ this.set('name', e);
+ }
+ get in() {
+ return this.get('in');
+ }
+ set in(e) {
+ this.set('in', e);
+ }
+ get scheme() {
+ return this.get('scheme');
+ }
+ set scheme(e) {
+ this.set('scheme', e);
+ }
+ get bearerFormat() {
+ return this.get('bearerFormat');
+ }
+ set bearerFormat(e) {
+ this.set('bearerFormat', e);
+ }
+ get flows() {
+ return this.get('flows');
+ }
+ set flows(e) {
+ this.set('flows', e);
+ }
+ get openIdConnectUrl() {
+ return this.get('openIdConnectUrl');
+ }
+ set openIdConnectUrl(e) {
+ this.set('openIdConnectUrl', e);
+ }
+ }
+ const Sc = xc;
+ class _c extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'server');
+ }
+ get url() {
+ return this.get('url');
+ }
+ set url(e) {
+ this.set('url', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get variables() {
+ return this.get('variables');
+ }
+ set variables(e) {
+ this.set('variables', e);
+ }
+ }
+ const jc = _c;
+ class Oc extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'serverVariable');
+ }
+ get enum() {
+ return this.get('enum');
+ }
+ set enum(e) {
+ this.set('enum', e);
+ }
+ get default() {
+ return this.get('default');
+ }
+ set default(e) {
+ this.set('default', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ }
+ const kc = Oc;
+ class Ac extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'tag');
+ }
+ get name() {
+ return this.get('name');
+ }
+ set name(e) {
+ this.set('name', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get externalDocs() {
+ return this.get('externalDocs');
+ }
+ set externalDocs(e) {
+ this.set('externalDocs', e);
+ }
+ }
+ const Cc = Ac;
+ class Pc extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'xml');
+ }
+ get name() {
+ return this.get('name');
+ }
+ set name(e) {
+ this.set('name', e);
+ }
+ get namespace() {
+ return this.get('namespace');
+ }
+ set namespace(e) {
+ this.set('namespace', e);
+ }
+ get prefix() {
+ return this.get('prefix');
+ }
+ set prefix(e) {
+ this.set('prefix', e);
+ }
+ get attribute() {
+ return this.get('attribute');
+ }
+ set attribute(e) {
+ this.set('attribute', e);
+ }
+ get wrapped() {
+ return this.get('wrapped');
+ }
+ set wrapped(e) {
+ this.set('wrapped', e);
+ }
+ }
+ const Nc = Pc,
+ Ic = Ys({
+ props: { element: null },
+ methods: {
+ copyMetaAndAttributes(e, t) {
+ Cs(e) && t.meta.set('sourceMap', e.meta.get('sourceMap'));
+ },
+ },
+ }),
+ Tc = Ic;
+ function Rc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Mc = (e) => {
+ if (ds(e)) return `${e.element.charAt(0).toUpperCase() + e.element.slice(1)}Element`;
+ },
+ Dc = (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Rc(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Rc(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })(
+ {
+ CallbackElement: ['content'],
+ ComponentsElement: ['content'],
+ ContactElement: ['content'],
+ DiscriminatorElement: ['content'],
+ Encoding: ['content'],
+ Example: ['content'],
+ ExternalDocumentationElement: ['content'],
+ HeaderElement: ['content'],
+ InfoElement: ['content'],
+ LicenseElement: ['content'],
+ MediaTypeElement: ['content'],
+ OAuthFlowElement: ['content'],
+ OAuthFlowsElement: ['content'],
+ OpenApi3_0Element: ['content'],
+ OperationElement: ['content'],
+ ParameterElement: ['content'],
+ PathItemElement: ['content'],
+ PathsElement: ['content'],
+ ReferenceElement: ['content'],
+ RequestBodyElement: ['content'],
+ ResponseElement: ['content'],
+ ResponsesElement: ['content'],
+ SchemaElement: ['content'],
+ SecurityRequirementElement: ['content'],
+ SecuritySchemeElement: ['content'],
+ ServerElement: ['content'],
+ ServerVariableElement: ['content'],
+ TagElement: ['content'],
+ },
+ pi
+ );
+ function Fc(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Lc(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Fc(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Fc(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const Bc = Ys(Tc, {
+ props: {
+ passingOptionsNames: ['specObj', 'openApiGenericElement', 'openApiSemanticElement'],
+ specObj: null,
+ openApiGenericElement: null,
+ openApiSemanticElement: null,
+ },
+ init({
+ specObj: e = this.specObj,
+ openApiGenericElement: t = this.openApiGenericElement,
+ openApiSemanticElement: n = this.openApiSemanticElement,
+ }) {
+ (this.specObj = e), (this.openApiGenericElement = t), (this.openApiSemanticElement = n);
+ },
+ methods: {
+ retrievePassingOptions() {
+ return Eo(this.passingOptionsNames, this);
+ },
+ retrieveFixedFields(e) {
+ return gr(uo(['visitors', ...e, 'fixedFields']), ln)(this.specObj);
+ },
+ retrieveVisitor(e) {
+ return wo(ts, ['visitors', ...e], this.specObj)
+ ? uo(['visitors', ...e], this.specObj)
+ : uo(['visitors', ...e, '$visitor'], this.specObj);
+ },
+ retrieveVisitorInstance(e, t = {}) {
+ const n = this.retrievePassingOptions();
+ return this.retrieveVisitor(e)(Lc(Lc({}, n), t));
+ },
+ toRefractedElement(e, t, n = {}) {
+ const r = this.retrieveVisitorInstance(e, n),
+ o = Object.getPrototypeOf(r);
+ return (
+ qo(this.fallbackVisitorPrototype) &&
+ (this.fallbackVisitorPrototype = Object.getPrototypeOf(this.retrieveVisitorInstance(['value']))),
+ this.fallbackVisitorPrototype === o
+ ? t.clone()
+ : (fi(t, r, Lc({ keyMap: Dc, nodeTypeGetter: Mc }, n)), r.element)
+ );
+ },
+ },
+ }),
+ $c = (e) => bs(e) && e.hasKey('openapi') && e.hasKey('info'),
+ qc = (e) => bs(e) && e.hasKey('name') && e.hasKey('in'),
+ Uc = (e) => bs(e) && e.hasKey('$ref'),
+ zc = (e) => bs(e) && e.hasKey('content'),
+ Vc = (e) => bs(e) && e.hasKey('description'),
+ Wc = bs,
+ Jc = bs,
+ Kc = (e) => ms(e.key) && To('x-', e.key.toValue()),
+ Hc = Ys(Bc, {
+ props: {
+ specPath: el,
+ ignoredFields: [],
+ canSupportSpecificationExtensions: !0,
+ specificationExtensionPredicate: Kc,
+ },
+ init({
+ specPath: e = this.specPath,
+ ignoredFields: t = this.ignoredFields,
+ canSupportSpecificationExtensions: n = this.canSupportSpecificationExtensions,
+ specificationExtensionPredicate: r = this.specificationExtensionPredicate,
+ } = {}) {
+ (this.specPath = e),
+ (this.ignoredFields = t),
+ (this.canSupportSpecificationExtensions = n),
+ (this.specificationExtensionPredicate = r);
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = this.specPath(e),
+ n = this.retrieveFixedFields(t);
+ return (
+ e.forEach((e, r, o) => {
+ if (ms(r) && n.includes(r.toValue()) && !this.ignoredFields.includes(r.toValue())) {
+ const n = this.toRefractedElement([...t, 'fixedFields', r.toValue()], e),
+ s = new Pt.c6(r.clone(), n);
+ this.copyMetaAndAttributes(o, s), s.classes.push('fixed-field'), this.element.content.push(s);
+ } else if (this.canSupportSpecificationExtensions && this.specificationExtensionPredicate(o)) {
+ const e = this.toRefractedElement(['document', 'extension'], o);
+ this.element.content.push(e);
+ } else this.ignoredFields.includes(r.toValue()) || this.element.content.push(o.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ Gc = Hc,
+ Zc = Ys(Tc, {
+ methods: {
+ enter(e) {
+ return (this.element = e.clone()), ei;
+ },
+ },
+ }),
+ Yc = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'OpenApi']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new ja();
+ },
+ methods: {
+ ObjectElement(e) {
+ return (this.unrefractedElement = e), Gc.compose.methods.ObjectElement.call(this, e);
+ },
+ },
+ }),
+ Xc = Ys(Bc, Zc, {
+ methods: {
+ StringElement(e) {
+ const t = new Sa(e.toValue());
+ return this.copyMetaAndAttributes(e, t), (this.element = t), ei;
+ },
+ },
+ }),
+ Qc = Ys(Bc, {
+ methods: {
+ MemberElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('specification-extension'), ei;
+ },
+ },
+ }),
+ eu = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Info']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new pa();
+ },
+ }),
+ tu = Zc,
+ nu = Zc,
+ ru = Zc,
+ ou = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (
+ (this.element = e.clone()),
+ this.element.classes.push('api-version'),
+ this.element.classes.push('version'),
+ ei
+ );
+ },
+ },
+ }),
+ su = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Contact']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new Qi();
+ },
+ }),
+ iu = Zc,
+ au = Zc,
+ lu = Zc,
+ cu = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'License']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new fa();
+ },
+ }),
+ uu = Zc,
+ pu = Zc,
+ hu = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Link']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new ma();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return (
+ (ms(this.element.operationId) || ms(this.element.operationRef)) &&
+ this.element.classes.push('reference-element'),
+ t
+ );
+ },
+ },
+ }),
+ fu = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('reference-value'), ei;
+ },
+ },
+ }),
+ du = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('reference-value'), ei;
+ },
+ },
+ }),
+ mu = Ys(Bc, {
+ props: {
+ fieldPatternPredicate: Mt,
+ specPath: el,
+ ignoredFields: [],
+ canSupportSpecificationExtensions: !1,
+ specificationExtensionPredicate: Kc,
+ },
+ init({
+ specPath: e = this.specPath,
+ ignoredFields: t = this.ignoredFields,
+ canSupportSpecificationExtensions: n = this.canSupportSpecificationExtensions,
+ specificationExtensionPredicate: r = this.specificationExtensionPredicate,
+ } = {}) {
+ (this.specPath = e),
+ (this.ignoredFields = t),
+ (this.canSupportSpecificationExtensions = n),
+ (this.specificationExtensionPredicate = r);
+ },
+ methods: {
+ ObjectElement(e) {
+ return (
+ e.forEach((e, t, n) => {
+ if (this.canSupportSpecificationExtensions && this.specificationExtensionPredicate(n)) {
+ const e = this.toRefractedElement(['document', 'extension'], n);
+ this.element.content.push(e);
+ } else if (!this.ignoredFields.includes(t.toValue()) && this.fieldPatternPredicate(t.toValue())) {
+ const r = this.specPath(e),
+ o = this.toRefractedElement(r, e),
+ s = new Pt.c6(t.clone(), o);
+ this.copyMetaAndAttributes(n, s),
+ s.classes.push('patterned-field'),
+ this.element.content.push(s);
+ } else this.ignoredFields.includes(t.toValue()) || this.element.content.push(n.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ gu = mu,
+ yu = Ys(gu, { props: { fieldPatternPredicate: Nl } });
+ class vu extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(vu.primaryClass);
+ }
+ }
+ Xo(vu, 'primaryClass', 'link-parameters');
+ const bu = vu,
+ wu = Ys(yu, Zc, {
+ props: { specPath: Hn(['value']) },
+ init() {
+ this.element = new bu();
+ },
+ }),
+ Eu = Zc,
+ xu = Zc,
+ Su = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Server']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new jc();
+ },
+ }),
+ _u = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('server-url'), ei;
+ },
+ },
+ }),
+ ju = Zc;
+ class Ou extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Ou.primaryClass);
+ }
+ }
+ Xo(Ou, 'primaryClass', 'servers');
+ const ku = Ou,
+ Au = Ys(Bc, Zc, {
+ init() {
+ this.element = new ku();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = Wc(e) ? ['document', 'objects', 'Server'] : ['value'],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ Cu = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'ServerVariable']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new kc();
+ },
+ }),
+ Pu = Zc,
+ Nu = Zc,
+ Iu = Zc;
+ class Tu extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Tu.primaryClass);
+ }
+ }
+ Xo(Tu, 'primaryClass', 'server-variables');
+ const Ru = Tu,
+ Mu = Ys(yu, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'ServerVariable']) },
+ init() {
+ this.element = new Ru();
+ },
+ }),
+ Du = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'MediaType']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new ya();
+ },
+ }),
+ Fu = Ys(Bc, {
+ props: { alternator: [] },
+ methods: {
+ enter(e) {
+ const t = this.alternator.map(({ predicate: e, specPath: t }) => to(e, Hn(t), $o)),
+ n = oc(t)(e);
+ return (this.element = this.toRefractedElement(n, e)), ei;
+ },
+ },
+ }),
+ Lu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Gi || (e(r) && t('callback', r) && n('object', r))
+ ),
+ Bu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Yi || (e(r) && t('components', r) && n('object', r))
+ ),
+ $u = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Qi || (e(r) && t('contact', r) && n('object', r))
+ ),
+ qu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof sa || (e(r) && t('example', r) && n('object', r))
+ ),
+ Uu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof aa || (e(r) && t('externalDocumentation', r) && n('object', r))
+ ),
+ zu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ca || (e(r) && t('header', r) && n('object', r))
+ ),
+ Vu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof pa || (e(r) && t('info', r) && n('object', r))
+ ),
+ Wu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof fa || (e(r) && t('license', r) && n('object', r))
+ ),
+ Ju = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ma || (e(r) && t('link', r) && n('object', r))
+ ),
+ Ku = (e) => {
+ if (!Ju(e)) return !1;
+ if (!ms(e.operationRef)) return !1;
+ const t = e.operationRef.toValue();
+ return 'string' == typeof t && t.length > 0 && !t.startsWith('#');
+ },
+ Hu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Sa || (e(r) && t('openapi', r) && n('string', r))
+ ),
+ Gu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n, hasClass: r }) =>
+ (o) =>
+ o instanceof ja || (e(o) && t('openApi3_0', o) && n('object', o) && r('api', o))
+ ),
+ Zu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ka || (e(r) && t('operation', r) && n('object', r))
+ ),
+ Yu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ca || (e(r) && t('parameter', r) && n('object', r))
+ ),
+ Xu = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Na || (e(r) && t('pathItem', r) && n('object', r))
+ ),
+ Qu = (e) => {
+ if (!Xu(e)) return !1;
+ if (!ms(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return 'string' == typeof t && t.length > 0 && !t.startsWith('#');
+ },
+ ep = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ta || (e(r) && t('paths', r) && n('object', r))
+ ),
+ tp = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ma || (e(r) && t('reference', r) && n('object', r))
+ ),
+ np = (e) => {
+ if (!tp(e)) return !1;
+ if (!ms(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return 'string' == typeof t && t.length > 0 && !t.startsWith('#');
+ },
+ rp = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Fa || (e(r) && t('requestBody', r) && n('object', r))
+ ),
+ op = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ba || (e(r) && t('response', r) && n('object', r))
+ ),
+ sp = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof qa || (e(r) && t('responses', r) && n('object', r))
+ ),
+ ip = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof bc || (e(r) && t('schema', r) && n('object', r))
+ ),
+ ap = (e) => vs(e) && e.classes.includes('boolean-json-schema'),
+ lp = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Ec || (e(r) && t('securityRequirement', r) && n('object', r))
+ ),
+ cp = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof jc || (e(r) && t('server', r) && n('object', r))
+ ),
+ up = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof kc || (e(r) && t('serverVariable', r) && n('object', r))
+ ),
+ pp = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ya || (e(r) && t('mediaType', r) && n('object', r))
+ ),
+ hp = Ys(Fu, Zc, {
+ props: {
+ alternator: [
+ { predicate: Uc, specPath: ['document', 'objects', 'Reference'] },
+ { predicate: Dt, specPath: ['document', 'objects', 'Schema'] },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Fu.compose.methods.enter.call(this, e);
+ return tp(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), t;
+ },
+ },
+ }),
+ fp = Zc,
+ dp = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Example']),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('examples');
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'example');
+ }),
+ t
+ );
+ },
+ },
+ });
+ class mp extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(mp.primaryClass), this.classes.push('examples');
+ }
+ }
+ Xo(mp, 'primaryClass', 'media-type-examples');
+ const gp = mp,
+ yp = Ys(dp, {
+ init() {
+ this.element = new gp();
+ },
+ });
+ class vp extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(vp.primaryClass);
+ }
+ }
+ Xo(vp, 'primaryClass', 'media-type-encoding');
+ const bp = vp,
+ wp = Ys(yu, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Encoding']) },
+ init() {
+ this.element = new bp();
+ },
+ }),
+ Ep = Ys(yu, Zc, {
+ props: { specPath: Hn(['value']) },
+ init() {
+ this.element = new Ec();
+ },
+ });
+ class xp extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(xp.primaryClass);
+ }
+ }
+ Xo(xp, 'primaryClass', 'security');
+ const Sp = xp,
+ _p = Ys(Bc, Zc, {
+ init() {
+ this.element = new Sp();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (bs(e)) {
+ const t = this.toRefractedElement(['document', 'objects', 'SecurityRequirement'], e);
+ this.element.push(t);
+ } else this.element.push(e.clone());
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ jp = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Components']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new Yi();
+ },
+ }),
+ Op = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Tag']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new Cc();
+ },
+ }),
+ kp = Zc,
+ Ap = Zc,
+ Cp = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Reference']), canSupportSpecificationExtensions: !1 },
+ init() {
+ this.element = new Ma();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return ms(this.element.$ref) && this.element.classes.push('reference-element'), t;
+ },
+ },
+ }),
+ Pp = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('reference-value'), ei;
+ },
+ },
+ }),
+ Np = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Parameter']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new Ca();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return (
+ bs(this.element.contentProp) &&
+ this.element.contentProp.filter(pp).forEach((e, t) => {
+ e.setMetaProperty('media-type', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Ip = Zc,
+ Tp = Zc,
+ Rp = Zc,
+ Mp = Zc,
+ Dp = Zc,
+ Fp = Zc,
+ Lp = Zc,
+ Bp = Zc,
+ $p = Zc,
+ qp = Ys(Fu, Zc, {
+ props: {
+ alternator: [
+ { predicate: Uc, specPath: ['document', 'objects', 'Reference'] },
+ { predicate: Dt, specPath: ['document', 'objects', 'Schema'] },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Fu.compose.methods.enter.call(this, e);
+ return tp(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), t;
+ },
+ },
+ }),
+ Up = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Header']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new ca();
+ },
+ }),
+ zp = Zc,
+ Vp = Zc,
+ Wp = Zc,
+ Jp = Zc,
+ Kp = Zc,
+ Hp = Zc,
+ Gp = Zc,
+ Zp = Ys(Fu, Zc, {
+ props: {
+ alternator: [
+ { predicate: Uc, specPath: ['document', 'objects', 'Reference'] },
+ { predicate: Dt, specPath: ['document', 'objects', 'Schema'] },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Fu.compose.methods.enter.call(this, e);
+ return tp(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), t;
+ },
+ },
+ }),
+ Yp = Zc;
+ class Xp extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Xp.primaryClass), this.classes.push('examples');
+ }
+ }
+ Xo(Xp, 'primaryClass', 'header-examples');
+ const Qp = Xp,
+ eh = Ys(dp, {
+ init() {
+ this.element = new Qp();
+ },
+ }),
+ th = Ys(yu, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'MediaType']) },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('content');
+ },
+ });
+ class nh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(nh.primaryClass), this.classes.push('content');
+ }
+ }
+ Xo(nh, 'primaryClass', 'header-content');
+ const rh = nh,
+ oh = Ys(th, {
+ init() {
+ this.element = new rh();
+ },
+ }),
+ sh = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Schema']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new bc();
+ },
+ }),
+ { items: ih } = ac.visitors.document.objects.JSONSchema.fixedFields,
+ ah = Ys(ih, {
+ methods: {
+ ObjectElement(e) {
+ const t = ih.compose.methods.ObjectElement.call(this, e);
+ return tp(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), t;
+ },
+ ArrayElement(e) {
+ return (this.element = e.clone()), ei;
+ },
+ },
+ }),
+ { properties: lh } = ac.visitors.document.objects.JSONSchema.fixedFields,
+ ch = Ys(lh, {
+ methods: {
+ ObjectElement(e) {
+ const t = lh.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'schema');
+ }),
+ t
+ );
+ },
+ },
+ }),
+ { type: uh } = ac.visitors.document.objects.JSONSchema.fixedFields,
+ ph = Ys(uh, {
+ methods: {
+ ArrayElement(e) {
+ return (this.element = e.clone()), ei;
+ },
+ },
+ }),
+ hh = Zc,
+ fh = Zc,
+ dh = Zc,
+ mh = Zc,
+ { JSONSchemaOrJSONReferenceVisitor: gh } = ac.visitors,
+ yh = Ys(gh, {
+ methods: {
+ ObjectElement(e) {
+ const t = gh.compose.methods.enter.call(this, e);
+ return tp(this.element) && this.element.setMetaProperty('referenced-element', 'schema'), t;
+ },
+ },
+ }),
+ vh = Object.fromEntries(
+ Object.entries(ac.visitors.document.objects.JSONSchema.fixedFields).map(([e, t]) =>
+ t === ac.visitors.JSONSchemaOrJSONReferenceVisitor ? [e, yh] : [e, t]
+ )
+ ),
+ bh = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Discriminator']), canSupportSpecificationExtensions: !1 },
+ init() {
+ this.element = new ta();
+ },
+ }),
+ wh = Zc;
+ class Eh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Eh.primaryClass);
+ }
+ }
+ Xo(Eh, 'primaryClass', 'discriminator-mapping');
+ const xh = Eh,
+ Sh = Ys(yu, Zc, {
+ props: { specPath: Hn(['value']) },
+ init() {
+ this.element = new xh();
+ },
+ }),
+ _h = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'XML']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new Nc();
+ },
+ }),
+ jh = Zc,
+ Oh = Zc,
+ kh = Zc,
+ Ah = Zc,
+ Ch = Zc,
+ Ph = Zc;
+ class Nh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Nh.primaryClass), this.classes.push('examples');
+ }
+ }
+ Xo(Nh, 'primaryClass', 'parameter-examples');
+ const Ih = Nh,
+ Th = Ys(dp, {
+ init() {
+ this.element = new Ih();
+ },
+ });
+ class Rh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Rh.primaryClass), this.classes.push('content');
+ }
+ }
+ Xo(Rh, 'primaryClass', 'parameter-content');
+ const Mh = Rh,
+ Dh = Ys(th, {
+ init() {
+ this.element = new Mh();
+ },
+ });
+ class Fh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Fh.primaryClass);
+ }
+ }
+ Xo(Fh, 'primaryClass', 'components-schemas');
+ const Lh = Fh,
+ Bh = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Schema']),
+ },
+ init() {
+ this.element = new Lh();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'schema');
+ }),
+ t
+ );
+ },
+ },
+ });
+ class $h extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push($h.primaryClass);
+ }
+ }
+ Xo($h, 'primaryClass', 'components-responses');
+ const qh = $h,
+ Uh = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Response']),
+ },
+ init() {
+ this.element = new qh();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'response');
+ }),
+ this.element.filter(op).forEach((e, t) => {
+ e.setMetaProperty('http-status-code', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ zh = Uh;
+ class Vh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Vh.primaryClass), this.classes.push('parameters');
+ }
+ }
+ Xo(Vh, 'primaryClass', 'components-parameters');
+ const Wh = Vh,
+ Jh = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Parameter']),
+ },
+ init() {
+ this.element = new Wh();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'parameter');
+ }),
+ t
+ );
+ },
+ },
+ });
+ class Kh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Kh.primaryClass), this.classes.push('examples');
+ }
+ }
+ Xo(Kh, 'primaryClass', 'components-examples');
+ const Hh = Kh,
+ Gh = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Example']),
+ },
+ init() {
+ this.element = new Hh();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'example');
+ }),
+ t
+ );
+ },
+ },
+ });
+ class Zh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Zh.primaryClass);
+ }
+ }
+ Xo(Zh, 'primaryClass', 'components-request-bodies');
+ const Yh = Zh,
+ Xh = Ys(yu, Zc, {
+ props: {
+ specPath: (e) =>
+ Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'RequestBody'],
+ },
+ init() {
+ this.element = new Yh();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'requestBody');
+ }),
+ t
+ );
+ },
+ },
+ });
+ class Qh extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Qh.primaryClass);
+ }
+ }
+ Xo(Qh, 'primaryClass', 'components-headers');
+ const ef = Qh,
+ tf = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Header']),
+ },
+ init() {
+ this.element = new ef();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'header');
+ }),
+ this.element.filter(zu).forEach((e, t) => {
+ e.setMetaProperty('header-name', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ nf = tf;
+ class rf extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(rf.primaryClass);
+ }
+ }
+ Xo(rf, 'primaryClass', 'components-security-schemes');
+ const of = rf,
+ sf = Ys(yu, Zc, {
+ props: {
+ specPath: (e) =>
+ Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'SecurityScheme'],
+ },
+ init() {
+ this.element = new of();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'securityScheme');
+ }),
+ t
+ );
+ },
+ },
+ });
+ class af extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(af.primaryClass);
+ }
+ }
+ Xo(af, 'primaryClass', 'components-links');
+ const lf = af,
+ cf = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Link']),
+ },
+ init() {
+ this.element = new lf();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'link');
+ }),
+ t
+ );
+ },
+ },
+ });
+ class uf extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(uf.primaryClass);
+ }
+ }
+ Xo(uf, 'primaryClass', 'components-callbacks');
+ const pf = uf,
+ hf = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Callback']),
+ },
+ init() {
+ this.element = new pf();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'callback');
+ }),
+ t
+ );
+ },
+ },
+ }),
+ ff = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Example']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new sa();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return ms(this.element.externalValue) && this.element.classes.push('reference-element'), t;
+ },
+ },
+ }),
+ df = Zc,
+ mf = Zc,
+ gf = Zc,
+ yf = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('reference-value'), ei;
+ },
+ },
+ }),
+ vf = Ys(Gc, Zc, {
+ props: {
+ specPath: Hn(['document', 'objects', 'ExternalDocumentation']),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new aa();
+ },
+ }),
+ bf = Zc,
+ wf = Zc,
+ Ef = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Encoding']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new ra();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return (
+ bs(this.element.headers) &&
+ this.element.headers.filter(zu).forEach((e, t) => {
+ e.setMetaProperty('header-name', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ xf = Zc;
+ class Sf extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Sf.primaryClass);
+ }
+ }
+ Xo(Sf, 'primaryClass', 'encoding-headers');
+ const _f = Sf,
+ jf = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Header']),
+ },
+ init() {
+ this.element = new _f();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'header');
+ }),
+ this.element.forEach((e, t) => {
+ if (!zu(e)) return;
+ const n = t.toValue();
+ e.setMetaProperty('headerName', n);
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Of = jf,
+ kf = Zc,
+ Af = Zc,
+ Cf = Zc,
+ Pf = Ys(gu, Zc, {
+ props: {
+ fieldPatternPredicate: Ro(/^\/(?.*)$/),
+ specPath: Hn(['document', 'objects', 'PathItem']),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Ta();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = gu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(Xu).forEach((e, t) => {
+ e.setMetaProperty('path', t.clone());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Nf = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'RequestBody']) },
+ init() {
+ this.element = new Fa();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return (
+ bs(this.element.contentProp) &&
+ this.element.contentProp.filter(pp).forEach((e, t) => {
+ e.setMetaProperty('media-type', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ If = Zc;
+ class Tf extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Tf.primaryClass), this.classes.push('content');
+ }
+ }
+ Xo(Tf, 'primaryClass', 'request-body-content');
+ const Rf = Tf,
+ Mf = Ys(th, {
+ init() {
+ this.element = new Rf();
+ },
+ }),
+ Df = Zc,
+ Ff = Ys(gu, Zc, {
+ props: {
+ fieldPatternPredicate: Ro(/{(?.*)}/),
+ specPath: Hn(['document', 'objects', 'PathItem']),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new Gi();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(Xu).forEach((e, t) => {
+ e.setMetaProperty('runtime-expression', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Lf = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Response']) },
+ init() {
+ this.element = new Ba();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return (
+ bs(this.element.contentProp) &&
+ this.element.contentProp.filter(pp).forEach((e, t) => {
+ e.setMetaProperty('media-type', t.toValue());
+ }),
+ bs(this.element.headers) &&
+ this.element.headers.filter(zu).forEach((e, t) => {
+ e.setMetaProperty('header-name', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Bf = Zc;
+ class $f extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push($f.primaryClass);
+ }
+ }
+ Xo($f, 'primaryClass', 'response-headers');
+ const qf = $f,
+ Uf = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Header']),
+ },
+ init() {
+ this.element = new qf();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'header');
+ }),
+ this.element.forEach((e, t) => {
+ if (!zu(e)) return;
+ const n = t.toValue();
+ e.setMetaProperty('header-name', n);
+ }),
+ t
+ );
+ },
+ },
+ }),
+ zf = Uf;
+ class Vf extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Vf.primaryClass), this.classes.push('content');
+ }
+ }
+ Xo(Vf, 'primaryClass', 'response-content');
+ const Wf = Vf,
+ Jf = Ys(th, {
+ init() {
+ this.element = new Wf();
+ },
+ });
+ class Kf extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Kf.primaryClass);
+ }
+ }
+ Xo(Kf, 'primaryClass', 'response-links');
+ const Hf = Kf,
+ Gf = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Link']),
+ },
+ init() {
+ this.element = new Hf();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'link');
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Zf = Ys(Gc, gu, {
+ props: { specPathFixedFields: el, specPathPatternedFields: el },
+ methods: {
+ ObjectElement(e) {
+ const { specPath: t, ignoredFields: n } = this;
+ try {
+ this.specPath = this.specPathFixedFields;
+ const t = this.retrieveFixedFields(this.specPath(e));
+ (this.ignoredFields = [...n, ...Pr(e.keys(), t)]),
+ Gc.compose.methods.ObjectElement.call(this, e),
+ (this.specPath = this.specPathPatternedFields),
+ (this.ignoredFields = t),
+ gu.compose.methods.ObjectElement.call(this, e);
+ } catch (e) {
+ throw ((this.specPath = t), e);
+ }
+ return ei;
+ },
+ },
+ }),
+ Yf = Ys(Zf, Zc, {
+ props: {
+ specPathFixedFields: Hn(['document', 'objects', 'Responses']),
+ specPathPatternedFields: (e) =>
+ Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Response'],
+ fieldPatternPredicate: Ro(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ko(100, 600).join('|')})$`)),
+ canSupportSpecificationExtensions: !0,
+ },
+ init() {
+ this.element = new qa();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Zf.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'response');
+ }),
+ this.element.filter(op).forEach((e, t) => {
+ const n = t.clone();
+ this.fieldPatternPredicate(n.toValue()) && e.setMetaProperty('http-status-code', n);
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Xf = Yf,
+ Qf = Ys(Fu, Zc, {
+ props: {
+ alternator: [
+ { predicate: Uc, specPath: ['document', 'objects', 'Reference'] },
+ { predicate: Dt, specPath: ['document', 'objects', 'Response'] },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Fu.compose.methods.enter.call(this, e);
+ return (
+ tp(this.element)
+ ? this.element.setMetaProperty('referenced-element', 'response')
+ : op(this.element) && this.element.setMetaProperty('http-status-code', 'default'),
+ t
+ );
+ },
+ },
+ }),
+ ed = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Operation']) },
+ init() {
+ this.element = new ka();
+ },
+ });
+ class td extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(td.primaryClass);
+ }
+ }
+ Xo(td, 'primaryClass', 'operation-tags');
+ const nd = td,
+ rd = Ys(Zc, {
+ init() {
+ this.element = new nd();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (this.element = this.element.concat(e.clone())), ei;
+ },
+ },
+ }),
+ od = Zc,
+ sd = Zc,
+ id = Zc;
+ class ad extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(ad.primaryClass), this.classes.push('parameters');
+ }
+ }
+ Xo(ad, 'primaryClass', 'operation-parameters');
+ const ld = ad,
+ cd = Ys(Bc, Zc, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('parameters');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Parameter'],
+ n = this.toRefractedElement(t, e);
+ tp(n) && n.setMetaProperty('referenced-element', 'parameter'), this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ ud = Ys(cd, {
+ init() {
+ this.element = new ld();
+ },
+ }),
+ pd = Ys(Fu, {
+ props: {
+ alternator: [
+ { predicate: Uc, specPath: ['document', 'objects', 'Reference'] },
+ { predicate: Dt, specPath: ['document', 'objects', 'RequestBody'] },
+ ],
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Fu.compose.methods.enter.call(this, e);
+ return tp(this.element) && this.element.setMetaProperty('referenced-element', 'requestBody'), t;
+ },
+ },
+ });
+ class hd extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(hd.primaryClass);
+ }
+ }
+ Xo(hd, 'primaryClass', 'operation-callbacks');
+ const fd = hd,
+ dd = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'Callback']),
+ },
+ init() {
+ this.element = new fd();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(tp).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'callback');
+ }),
+ t
+ );
+ },
+ },
+ }),
+ md = Zc;
+ class gd extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(gd.primaryClass), this.classes.push('security');
+ }
+ }
+ Xo(gd, 'primaryClass', 'operation-security');
+ const yd = gd,
+ vd = Ys(Bc, Zc, {
+ init() {
+ this.element = new yd();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = bs(e) ? ['document', 'objects', 'SecurityRequirement'] : ['value'],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ });
+ class bd extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(bd.primaryClass), this.classes.push('servers');
+ }
+ }
+ Xo(bd, 'primaryClass', 'operation-servers');
+ const wd = bd,
+ Ed = Ys(Au, {
+ init() {
+ this.element = new wd();
+ },
+ }),
+ xd = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'PathItem']) },
+ init() {
+ this.element = new Na();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = Gc.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(Zu).forEach((e, t) => {
+ const n = t.clone();
+ (n.content = n.toValue().toUpperCase()), e.setMetaProperty('http-method', n);
+ }),
+ ms(this.element.$ref) && this.element.classes.push('reference-element'),
+ t
+ );
+ },
+ },
+ }),
+ Sd = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('reference-value'), ei;
+ },
+ },
+ }),
+ _d = Zc,
+ jd = Zc;
+ class Od extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Od.primaryClass), this.classes.push('servers');
+ }
+ }
+ Xo(Od, 'primaryClass', 'path-item-servers');
+ const kd = Od,
+ Ad = Ys(Au, {
+ init() {
+ this.element = new kd();
+ },
+ });
+ class Cd extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Cd.primaryClass), this.classes.push('parameters');
+ }
+ }
+ Xo(Cd, 'primaryClass', 'path-item-parameters');
+ const Pd = Cd,
+ Nd = Ys(cd, {
+ init() {
+ this.element = new Pd();
+ },
+ }),
+ Id = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'SecurityScheme']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new Sc();
+ },
+ }),
+ Td = Zc,
+ Rd = Zc,
+ Md = Zc,
+ Dd = Zc,
+ Fd = Zc,
+ Ld = Zc,
+ Bd = Zc,
+ $d = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'OAuthFlows']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new Ea();
+ },
+ }),
+ qd = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'OAuthFlow']), canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new ba();
+ },
+ }),
+ Ud = Zc,
+ zd = Zc,
+ Vd = Zc;
+ class Wd extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Wd.primaryClass);
+ }
+ }
+ Xo(Wd, 'primaryClass', 'oauth-flow-scopes');
+ const Jd = Wd,
+ Kd = Ys(yu, Zc, {
+ props: { specPath: Hn(['value']) },
+ init() {
+ this.element = new Jd();
+ },
+ });
+ class Hd extends Pt.ON {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Hd.primaryClass);
+ }
+ }
+ Xo(Hd, 'primaryClass', 'tags');
+ const Gd = Hd,
+ Zd = Ys(Bc, Zc, {
+ init() {
+ this.element = new Gd();
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ const t = Jc(e) ? ['document', 'objects', 'Tag'] : ['value'],
+ n = this.toRefractedElement(t, e);
+ this.element.push(n);
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ });
+ function Yd(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Xd(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Yd(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Yd(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const Qd = { $visitor: Cp, fixedFields: { $ref: Pp } },
+ em = {
+ $visitor: sh,
+ fixedFields: Xd(
+ Xd({}, vh),
+ {},
+ {
+ items: ah,
+ properties: ch,
+ type: ph,
+ nullable: hh,
+ discriminator: { $ref: '#/visitors/document/objects/Discriminator' },
+ writeOnly: fh,
+ xml: { $ref: '#/visitors/document/objects/XML' },
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ example: dh,
+ deprecated: mh,
+ }
+ ),
+ },
+ tm = {
+ visitors: {
+ value: Zc,
+ document: {
+ objects: {
+ OpenApi: {
+ $visitor: Yc,
+ fixedFields: {
+ openapi: Xc,
+ info: { $ref: '#/visitors/document/objects/Info' },
+ servers: Au,
+ paths: { $ref: '#/visitors/document/objects/Paths' },
+ components: { $ref: '#/visitors/document/objects/Components' },
+ security: _p,
+ tags: Zd,
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ },
+ },
+ Info: {
+ $visitor: eu,
+ fixedFields: {
+ title: tu,
+ description: nu,
+ termsOfService: ru,
+ contact: { $ref: '#/visitors/document/objects/Contact' },
+ license: { $ref: '#/visitors/document/objects/License' },
+ version: ou,
+ },
+ },
+ Contact: { $visitor: su, fixedFields: { name: iu, url: au, email: lu } },
+ License: { $visitor: cu, fixedFields: { name: uu, url: pu } },
+ Server: { $visitor: Su, fixedFields: { url: _u, description: ju, variables: Mu } },
+ ServerVariable: { $visitor: Cu, fixedFields: { enum: Pu, default: Nu, description: Iu } },
+ Components: {
+ $visitor: jp,
+ fixedFields: {
+ schemas: Bh,
+ responses: zh,
+ parameters: Jh,
+ examples: Gh,
+ requestBodies: Xh,
+ headers: nf,
+ securitySchemes: sf,
+ links: cf,
+ callbacks: hf,
+ },
+ },
+ Paths: { $visitor: Pf },
+ PathItem: {
+ $visitor: xd,
+ fixedFields: {
+ $ref: Sd,
+ summary: _d,
+ description: jd,
+ get: { $ref: '#/visitors/document/objects/Operation' },
+ put: { $ref: '#/visitors/document/objects/Operation' },
+ post: { $ref: '#/visitors/document/objects/Operation' },
+ delete: { $ref: '#/visitors/document/objects/Operation' },
+ options: { $ref: '#/visitors/document/objects/Operation' },
+ head: { $ref: '#/visitors/document/objects/Operation' },
+ patch: { $ref: '#/visitors/document/objects/Operation' },
+ trace: { $ref: '#/visitors/document/objects/Operation' },
+ servers: Ad,
+ parameters: Nd,
+ },
+ },
+ Operation: {
+ $visitor: ed,
+ fixedFields: {
+ tags: rd,
+ summary: od,
+ description: sd,
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ operationId: id,
+ parameters: ud,
+ requestBody: pd,
+ responses: { $ref: '#/visitors/document/objects/Responses' },
+ callbacks: dd,
+ deprecated: md,
+ security: vd,
+ servers: Ed,
+ },
+ },
+ ExternalDocumentation: { $visitor: vf, fixedFields: { description: bf, url: wf } },
+ Parameter: {
+ $visitor: Np,
+ fixedFields: {
+ name: Ip,
+ in: Tp,
+ description: Rp,
+ required: Mp,
+ deprecated: Dp,
+ allowEmptyValue: Fp,
+ style: Lp,
+ explode: Bp,
+ allowReserved: $p,
+ schema: qp,
+ example: Ph,
+ examples: Th,
+ content: Dh,
+ },
+ },
+ RequestBody: { $visitor: Nf, fixedFields: { description: If, content: Mf, required: Df } },
+ MediaType: { $visitor: Du, fixedFields: { schema: hp, example: fp, examples: yp, encoding: wp } },
+ Encoding: {
+ $visitor: Ef,
+ fixedFields: { contentType: xf, headers: Of, style: kf, explode: Af, allowReserved: Cf },
+ },
+ Responses: { $visitor: Xf, fixedFields: { default: Qf } },
+ Response: { $visitor: Lf, fixedFields: { description: Bf, headers: zf, content: Jf, links: Gf } },
+ Callback: { $visitor: Ff },
+ Example: {
+ $visitor: ff,
+ fixedFields: { summary: df, description: mf, value: gf, externalValue: yf },
+ },
+ Link: {
+ $visitor: hu,
+ fixedFields: {
+ operationRef: fu,
+ operationId: du,
+ parameters: wu,
+ requestBody: Eu,
+ description: xu,
+ server: { $ref: '#/visitors/document/objects/Server' },
+ },
+ },
+ Header: {
+ $visitor: Up,
+ fixedFields: {
+ description: zp,
+ required: Vp,
+ deprecated: Wp,
+ allowEmptyValue: Jp,
+ style: Kp,
+ explode: Hp,
+ allowReserved: Gp,
+ schema: Zp,
+ example: Yp,
+ examples: eh,
+ content: oh,
+ },
+ },
+ Tag: {
+ $visitor: Op,
+ fixedFields: {
+ name: kp,
+ description: Ap,
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ },
+ },
+ JSONReference: Qd,
+ Reference: Qd,
+ JSONSchema: em,
+ Schema: em,
+ LinkDescription: ac.visitors.document.objects.LinkDescription,
+ Media: ac.visitors.document.objects.Media,
+ Discriminator: { $visitor: bh, fixedFields: { propertyName: wh, mapping: Sh } },
+ XML: {
+ $visitor: _h,
+ fixedFields: { name: jh, namespace: Oh, prefix: kh, attribute: Ah, wrapped: Ch },
+ },
+ SecurityScheme: {
+ $visitor: Id,
+ fixedFields: {
+ type: Td,
+ description: Rd,
+ name: Md,
+ in: Dd,
+ scheme: Fd,
+ bearerFormat: Ld,
+ flows: { $ref: '#/visitors/document/objects/OAuthFlows' },
+ openIdConnectUrl: Bd,
+ },
+ },
+ OAuthFlows: {
+ $visitor: $d,
+ fixedFields: {
+ implicit: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ password: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ clientCredentials: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ authorizationCode: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ },
+ },
+ OAuthFlow: {
+ $visitor: qd,
+ fixedFields: { authorizationUrl: Ud, tokenUrl: zd, refreshUrl: Vd, scopes: Kd },
+ },
+ SecurityRequirement: { $visitor: Ep },
+ },
+ extension: { $visitor: Qc },
+ },
+ },
+ },
+ nm = {
+ namespace: (e) => {
+ const { base: t } = e;
+ return (
+ t.register('callback', Gi),
+ t.register('components', Yi),
+ t.register('contact', Qi),
+ t.register('discriminator', ta),
+ t.register('encoding', ra),
+ t.register('example', sa),
+ t.register('externalDocumentation', aa),
+ t.register('header', ca),
+ t.register('info', pa),
+ t.register('license', fa),
+ t.register('link', ma),
+ t.register('mediaType', ya),
+ t.register('oAuthFlow', ba),
+ t.register('oAuthFlows', Ea),
+ t.register('openapi', Sa),
+ t.register('openApi3_0', ja),
+ t.register('operation', ka),
+ t.register('parameter', Ca),
+ t.register('pathItem', Na),
+ t.register('paths', Ta),
+ t.register('reference', Ma),
+ t.register('requestBody', Fa),
+ t.register('response', Ba),
+ t.register('responses', qa),
+ t.register('schema', bc),
+ t.register('securityRequirement', Ec),
+ t.register('securityScheme', Sc),
+ t.register('server', jc),
+ t.register('serverVariable', kc),
+ t.register('tag', Cc),
+ t.register('xml', Nc),
+ t
+ );
+ },
+ };
+ function rm(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function om(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? rm(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : rm(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const sm = () => {
+ const e = zs(nm);
+ return { predicates: om(om(om({}, a), l), {}, { isStringElement: ms }), namespace: e };
+ };
+ function im(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const am = (
+ e,
+ { specPath: t = ['visitors', 'document', 'objects', 'OpenApi', '$visitor'], plugins: n = [] } = {}
+ ) => {
+ const r = (0, Pt.Qc)(e),
+ o = Za(tm),
+ s = is(t, [], o);
+ return (
+ fi(r, s, { state: { specObj: o } }),
+ di(s.element, n, { toolboxCreator: sm, visitorOptions: { keyMap: Dc, nodeTypeGetter: Mc } })
+ );
+ },
+ lm =
+ (e) =>
+ (t, n = {}) =>
+ am(
+ t,
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? im(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : im(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })({ specPath: e }, n)
+ );
+ (Gi.refract = lm(['visitors', 'document', 'objects', 'Callback', '$visitor'])),
+ (Yi.refract = lm(['visitors', 'document', 'objects', 'Components', '$visitor'])),
+ (Qi.refract = lm(['visitors', 'document', 'objects', 'Contact', '$visitor'])),
+ (sa.refract = lm(['visitors', 'document', 'objects', 'Example', '$visitor'])),
+ (ta.refract = lm(['visitors', 'document', 'objects', 'Discriminator', '$visitor'])),
+ (ra.refract = lm(['visitors', 'document', 'objects', 'Encoding', '$visitor'])),
+ (aa.refract = lm(['visitors', 'document', 'objects', 'ExternalDocumentation', '$visitor'])),
+ (ca.refract = lm(['visitors', 'document', 'objects', 'Header', '$visitor'])),
+ (pa.refract = lm(['visitors', 'document', 'objects', 'Info', '$visitor'])),
+ (fa.refract = lm(['visitors', 'document', 'objects', 'License', '$visitor'])),
+ (ma.refract = lm(['visitors', 'document', 'objects', 'Link', '$visitor'])),
+ (ya.refract = lm(['visitors', 'document', 'objects', 'MediaType', '$visitor'])),
+ (ba.refract = lm(['visitors', 'document', 'objects', 'OAuthFlow', '$visitor'])),
+ (Ea.refract = lm(['visitors', 'document', 'objects', 'OAuthFlows', '$visitor'])),
+ (Sa.refract = lm(['visitors', 'document', 'objects', 'OpenApi', 'fixedFields', 'openapi'])),
+ (ja.refract = lm(['visitors', 'document', 'objects', 'OpenApi', '$visitor'])),
+ (ka.refract = lm(['visitors', 'document', 'objects', 'Operation', '$visitor'])),
+ (Ca.refract = lm(['visitors', 'document', 'objects', 'Parameter', '$visitor'])),
+ (Na.refract = lm(['visitors', 'document', 'objects', 'PathItem', '$visitor'])),
+ (Ta.refract = lm(['visitors', 'document', 'objects', 'Paths', '$visitor'])),
+ (Ma.refract = lm(['visitors', 'document', 'objects', 'Reference', '$visitor'])),
+ (Fa.refract = lm(['visitors', 'document', 'objects', 'RequestBody', '$visitor'])),
+ (Ba.refract = lm(['visitors', 'document', 'objects', 'Response', '$visitor'])),
+ (qa.refract = lm(['visitors', 'document', 'objects', 'Responses', '$visitor'])),
+ (bc.refract = lm(['visitors', 'document', 'objects', 'Schema', '$visitor'])),
+ (Ec.refract = lm(['visitors', 'document', 'objects', 'SecurityRequirement', '$visitor'])),
+ (Sc.refract = lm(['visitors', 'document', 'objects', 'SecurityScheme', '$visitor'])),
+ (jc.refract = lm(['visitors', 'document', 'objects', 'Server', '$visitor'])),
+ (kc.refract = lm(['visitors', 'document', 'objects', 'ServerVariable', '$visitor'])),
+ (Cc.refract = lm(['visitors', 'document', 'objects', 'Tag', '$visitor'])),
+ (Nc.refract = lm(['visitors', 'document', 'objects', 'XML', '$visitor']));
+ const cm = class extends Gi {};
+ const um = class extends Yi {
+ get pathItems() {
+ return this.get('pathItems');
+ }
+ set pathItems(e) {
+ this.set('pathItems', e);
+ }
+ };
+ const pm = class extends Qi {};
+ const hm = class extends ta {};
+ const fm = class extends ra {};
+ const dm = class extends sa {};
+ const mm = class extends aa {};
+ const gm = class extends ca {
+ get schema() {
+ return this.get('schema');
+ }
+ set schema(e) {
+ this.set('schema', e);
+ }
+ };
+ const ym = class extends pa {
+ get license() {
+ return this.get('license');
+ }
+ set license(e) {
+ this.set('license', e);
+ }
+ get summary() {
+ return this.get('summary');
+ }
+ set summary(e) {
+ this.set('summary', e);
+ }
+ };
+ class vm extends Pt.RP {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'jsonSchemaDialect');
+ }
+ }
+ Xo(vm, 'default', new vm('https://spec.openapis.org/oas/3.1/dialect/base'));
+ const bm = vm;
+ const wm = class extends fa {
+ get identifier() {
+ return this.get('identifier');
+ }
+ set identifier(e) {
+ this.set('identifier', e);
+ }
+ };
+ const Em = class extends ma {};
+ const xm = class extends ya {
+ get schema() {
+ return this.get('schema');
+ }
+ set schema(e) {
+ this.set('schema', e);
+ }
+ };
+ const Sm = class extends ba {};
+ const _m = class extends Ea {};
+ const jm = class extends Sa {};
+ class Om extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'openApi3_1'), this.classes.push('api');
+ }
+ get openapi() {
+ return this.get('openapi');
+ }
+ set openapi(e) {
+ this.set('openapi', e);
+ }
+ get info() {
+ return this.get('info');
+ }
+ set info(e) {
+ this.set('info', e);
+ }
+ get jsonSchemaDialect() {
+ return this.get('jsonSchemaDialect');
+ }
+ set jsonSchemaDialect(e) {
+ this.set('jsonSchemaDialect', e);
+ }
+ get servers() {
+ return this.get('servers');
+ }
+ set servers(e) {
+ this.set('servers', e);
+ }
+ get paths() {
+ return this.get('paths');
+ }
+ set paths(e) {
+ this.set('paths', e);
+ }
+ get components() {
+ return this.get('components');
+ }
+ set components(e) {
+ this.set('components', e);
+ }
+ get security() {
+ return this.get('security');
+ }
+ set security(e) {
+ this.set('security', e);
+ }
+ get tags() {
+ return this.get('tags');
+ }
+ set tags(e) {
+ this.set('tags', e);
+ }
+ get externalDocs() {
+ return this.get('externalDocs');
+ }
+ set externalDocs(e) {
+ this.set('externalDocs', e);
+ }
+ get webhooks() {
+ return this.get('webhooks');
+ }
+ set webhooks(e) {
+ this.set('webhooks', e);
+ }
+ }
+ const km = Om;
+ const Am = class extends ka {
+ get requestBody() {
+ return this.get('requestBody');
+ }
+ set requestBody(e) {
+ this.set('requestBody', e);
+ }
+ };
+ const Cm = class extends Ca {
+ get schema() {
+ return this.get('schema');
+ }
+ set schema(e) {
+ this.set('schema', e);
+ }
+ };
+ const Pm = class extends Na {
+ get GET() {
+ return this.get('get');
+ }
+ set GET(e) {
+ this.set('GET', e);
+ }
+ get PUT() {
+ return this.get('put');
+ }
+ set PUT(e) {
+ this.set('PUT', e);
+ }
+ get POST() {
+ return this.get('post');
+ }
+ set POST(e) {
+ this.set('POST', e);
+ }
+ get DELETE() {
+ return this.get('delete');
+ }
+ set DELETE(e) {
+ this.set('DELETE', e);
+ }
+ get OPTIONS() {
+ return this.get('options');
+ }
+ set OPTIONS(e) {
+ this.set('OPTIONS', e);
+ }
+ get HEAD() {
+ return this.get('head');
+ }
+ set HEAD(e) {
+ this.set('HEAD', e);
+ }
+ get PATCH() {
+ return this.get('patch');
+ }
+ set PATCH(e) {
+ this.set('PATCH', e);
+ }
+ get TRACE() {
+ return this.get('trace');
+ }
+ set TRACE(e) {
+ this.set('TRACE', e);
+ }
+ };
+ const Nm = class extends Ta {};
+ class Im extends Ma {}
+ Object.defineProperty(Im.prototype, 'description', {
+ get() {
+ return this.get('description');
+ },
+ set(e) {
+ this.set('description', e);
+ },
+ enumerable: !0,
+ }),
+ Object.defineProperty(Im.prototype, 'summary', {
+ get() {
+ return this.get('summary');
+ },
+ set(e) {
+ this.set('summary', e);
+ },
+ enumerable: !0,
+ });
+ const Tm = Im;
+ const Rm = class extends Fa {};
+ const Mm = class extends Ba {};
+ const Dm = class extends qa {};
+ class Fm extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), (this.element = 'schema');
+ }
+ get $schema() {
+ return this.get('$schema');
+ }
+ set $schema(e) {
+ this.set('$schema', e);
+ }
+ get $vocabulary() {
+ return this.get('$vocabulary');
+ }
+ set $vocabulary(e) {
+ this.set('$vocabulary', e);
+ }
+ get $id() {
+ return this.get('$id');
+ }
+ set $id(e) {
+ this.set('$id', e);
+ }
+ get $anchor() {
+ return this.get('$anchor');
+ }
+ set $anchor(e) {
+ this.set('$anchor', e);
+ }
+ get $dynamicAnchor() {
+ return this.get('$dynamicAnchor');
+ }
+ set $dynamicAnchor(e) {
+ this.set('$dynamicAnchor', e);
+ }
+ get $dynamicRef() {
+ return this.get('$dynamicRef');
+ }
+ set $dynamicRef(e) {
+ this.set('$dynamicRef', e);
+ }
+ get $ref() {
+ return this.get('$ref');
+ }
+ set $ref(e) {
+ this.set('$ref', e);
+ }
+ get $defs() {
+ return this.get('$defs');
+ }
+ set $defs(e) {
+ this.set('$defs', e);
+ }
+ get $comment() {
+ return this.get('$comment');
+ }
+ set $comment(e) {
+ this.set('$comment', e);
+ }
+ get allOf() {
+ return this.get('allOf');
+ }
+ set allOf(e) {
+ this.set('allOf', e);
+ }
+ get anyOf() {
+ return this.get('anyOf');
+ }
+ set anyOf(e) {
+ this.set('anyOf', e);
+ }
+ get oneOf() {
+ return this.get('oneOf');
+ }
+ set oneOf(e) {
+ this.set('oneOf', e);
+ }
+ get not() {
+ return this.get('not');
+ }
+ set not(e) {
+ this.set('not', e);
+ }
+ get if() {
+ return this.get('if');
+ }
+ set if(e) {
+ this.set('if', e);
+ }
+ get then() {
+ return this.get('then');
+ }
+ set then(e) {
+ this.set('then', e);
+ }
+ get else() {
+ return this.get('else');
+ }
+ set else(e) {
+ this.set('else', e);
+ }
+ get dependentSchemas() {
+ return this.get('dependentSchemas');
+ }
+ set dependentSchemas(e) {
+ this.set('dependentSchemas', e);
+ }
+ get prefixItems() {
+ return this.get('prefixItems');
+ }
+ set prefixItems(e) {
+ this.set('prefixItems', e);
+ }
+ get items() {
+ return this.get('items');
+ }
+ set items(e) {
+ this.set('items', e);
+ }
+ get containsProp() {
+ return this.get('contains');
+ }
+ set containsProp(e) {
+ this.set('contains', e);
+ }
+ get properties() {
+ return this.get('properties');
+ }
+ set properties(e) {
+ this.set('properties', e);
+ }
+ get patternProperties() {
+ return this.get('patternProperties');
+ }
+ set patternProperties(e) {
+ this.set('patternProperties', e);
+ }
+ get additionalProperties() {
+ return this.get('additionalProperties');
+ }
+ set additionalProperties(e) {
+ this.set('additionalProperties', e);
+ }
+ get propertyNames() {
+ return this.get('propertyNames');
+ }
+ set propertyNames(e) {
+ this.set('propertyNames', e);
+ }
+ get unevaluatedItems() {
+ return this.get('unevaluatedItems');
+ }
+ set unevaluatedItems(e) {
+ this.set('unevaluatedItems', e);
+ }
+ get unevaluatedProperties() {
+ return this.get('unevaluatedProperties');
+ }
+ set unevaluatedProperties(e) {
+ this.set('unevaluatedProperties', e);
+ }
+ get type() {
+ return this.get('type');
+ }
+ set type(e) {
+ this.set('type', e);
+ }
+ get enum() {
+ return this.get('enum');
+ }
+ set enum(e) {
+ this.set('enum', e);
+ }
+ get const() {
+ return this.get('const');
+ }
+ set const(e) {
+ this.set('const', e);
+ }
+ get multipleOf() {
+ return this.get('multipleOf');
+ }
+ set multipleOf(e) {
+ this.set('multipleOf', e);
+ }
+ get maximum() {
+ return this.get('maximum');
+ }
+ set maximum(e) {
+ this.set('maximum', e);
+ }
+ get exclusiveMaximum() {
+ return this.get('exclusiveMaximum');
+ }
+ set exclusiveMaximum(e) {
+ this.set('exclusiveMaximum', e);
+ }
+ get minimum() {
+ return this.get('minimum');
+ }
+ set minimum(e) {
+ this.set('minimum', e);
+ }
+ get exclusiveMinimum() {
+ return this.get('exclusiveMinimum');
+ }
+ set exclusiveMinimum(e) {
+ this.set('exclusiveMinimum', e);
+ }
+ get maxLength() {
+ return this.get('maxLength');
+ }
+ set maxLength(e) {
+ this.set('maxLength', e);
+ }
+ get minLength() {
+ return this.get('minLength');
+ }
+ set minLength(e) {
+ this.set('minLength', e);
+ }
+ get pattern() {
+ return this.get('pattern');
+ }
+ set pattern(e) {
+ this.set('pattern', e);
+ }
+ get maxItems() {
+ return this.get('maxItems');
+ }
+ set maxItems(e) {
+ this.set('maxItems', e);
+ }
+ get minItems() {
+ return this.get('minItems');
+ }
+ set minItems(e) {
+ this.set('minItems', e);
+ }
+ get uniqueItems() {
+ return this.get('uniqueItems');
+ }
+ set uniqueItems(e) {
+ this.set('uniqueItems', e);
+ }
+ get maxContains() {
+ return this.get('maxContains');
+ }
+ set maxContains(e) {
+ this.set('maxContains', e);
+ }
+ get minContains() {
+ return this.get('minContains');
+ }
+ set minContains(e) {
+ this.set('minContains', e);
+ }
+ get maxProperties() {
+ return this.get('maxProperties');
+ }
+ set maxProperties(e) {
+ this.set('maxProperties', e);
+ }
+ get minProperties() {
+ return this.get('minProperties');
+ }
+ set minProperties(e) {
+ this.set('minProperties', e);
+ }
+ get required() {
+ return this.get('required');
+ }
+ set required(e) {
+ this.set('required', e);
+ }
+ get dependentRequired() {
+ return this.get('dependentRequired');
+ }
+ set dependentRequired(e) {
+ this.set('dependentRequired', e);
+ }
+ get title() {
+ return this.get('title');
+ }
+ set title(e) {
+ this.set('title', e);
+ }
+ get description() {
+ return this.get('description');
+ }
+ set description(e) {
+ this.set('description', e);
+ }
+ get default() {
+ return this.get('default');
+ }
+ set default(e) {
+ this.set('default', e);
+ }
+ get deprecated() {
+ return this.get('deprecated');
+ }
+ set deprecated(e) {
+ this.set('deprecated', e);
+ }
+ get readOnly() {
+ return this.get('readOnly');
+ }
+ set readOnly(e) {
+ this.set('readOnly', e);
+ }
+ get writeOnly() {
+ return this.get('writeOnly');
+ }
+ set writeOnly(e) {
+ this.set('writeOnly', e);
+ }
+ get examples() {
+ return this.get('examples');
+ }
+ set examples(e) {
+ this.set('examples', e);
+ }
+ get format() {
+ return this.get('format');
+ }
+ set format(e) {
+ this.set('format', e);
+ }
+ get contentEncoding() {
+ return this.get('contentEncoding');
+ }
+ set contentEncoding(e) {
+ this.set('contentEncoding', e);
+ }
+ get contentMediaType() {
+ return this.get('contentMediaType');
+ }
+ set contentMediaType(e) {
+ this.set('contentMediaType', e);
+ }
+ get contentSchema() {
+ return this.get('contentSchema');
+ }
+ set contentSchema(e) {
+ this.set('contentSchema', e);
+ }
+ get discriminator() {
+ return this.get('discriminator');
+ }
+ set discriminator(e) {
+ this.set('discriminator', e);
+ }
+ get xml() {
+ return this.get('xml');
+ }
+ set xml(e) {
+ this.set('xml', e);
+ }
+ get externalDocs() {
+ return this.get('externalDocs');
+ }
+ set externalDocs(e) {
+ this.set('externalDocs', e);
+ }
+ get example() {
+ return this.get('example');
+ }
+ set example(e) {
+ this.set('example', e);
+ }
+ }
+ const Lm = Fm;
+ const Bm = class extends Ec {};
+ const $m = class extends Sc {};
+ const qm = class extends jc {};
+ const Um = class extends kc {};
+ const zm = class extends Cc {};
+ const Vm = class extends Nc {},
+ Wm = Ys(Gc, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'OpenApi']), canSupportSpecificationExtensions: !0 },
+ init() {
+ (this.element = new km()), (this.openApiSemanticElement = this.element);
+ },
+ methods: {
+ ObjectElement(e) {
+ return (this.openApiGenericElement = e), Gc.compose.methods.ObjectElement.call(this, e);
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Info: { $visitor: Jm },
+ },
+ },
+ },
+ } = tm,
+ Km = Ys(Jm, {
+ init() {
+ this.element = new ym();
+ },
+ }),
+ Hm = Zc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Contact: { $visitor: Gm },
+ },
+ },
+ },
+ } = tm,
+ Zm = Ys(Gm, {
+ init() {
+ this.element = new pm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ License: { $visitor: Ym },
+ },
+ },
+ },
+ } = tm,
+ Xm = Ys(Ym, {
+ init() {
+ this.element = new wm();
+ },
+ }),
+ Qm = Zc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Link: { $visitor: eg },
+ },
+ },
+ },
+ } = tm,
+ tg = Ys(eg, {
+ init() {
+ this.element = new Em();
+ },
+ }),
+ ng = Ys(Bc, Zc, {
+ methods: {
+ StringElement(e) {
+ const t = new bm(e.toValue());
+ return this.copyMetaAndAttributes(e, t), (this.element = t), ei;
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Server: { $visitor: rg },
+ },
+ },
+ },
+ } = tm,
+ og = Ys(rg, {
+ init() {
+ this.element = new qm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ ServerVariable: { $visitor: sg },
+ },
+ },
+ },
+ } = tm,
+ ig = Ys(sg, {
+ init() {
+ this.element = new Um();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ MediaType: { $visitor: ag },
+ },
+ },
+ },
+ } = tm,
+ lg = Ys(ag, {
+ init() {
+ this.element = new xm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ SecurityRequirement: { $visitor: cg },
+ },
+ },
+ },
+ } = tm,
+ ug = Ys(cg, {
+ init() {
+ this.element = new Bm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Components: { $visitor: pg },
+ },
+ },
+ },
+ } = tm,
+ hg = Ys(pg, {
+ init() {
+ this.element = new um();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Tag: { $visitor: fg },
+ },
+ },
+ },
+ } = tm,
+ dg = Ys(fg, {
+ init() {
+ this.element = new zm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Reference: { $visitor: mg },
+ },
+ },
+ },
+ } = tm,
+ gg = Ys(mg, {
+ init() {
+ this.element = new Tm();
+ },
+ }),
+ yg = Zc,
+ vg = Zc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Parameter: { $visitor: bg },
+ },
+ },
+ },
+ } = tm,
+ wg = Ys(bg, {
+ init() {
+ this.element = new Cm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Header: { $visitor: Eg },
+ },
+ },
+ },
+ } = tm,
+ xg = Ys(Eg, {
+ init() {
+ this.element = new gm();
+ },
+ }),
+ Sg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof cm || (e(r) && t('callback', r) && n('object', r))
+ ),
+ _g = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof um || (e(r) && t('components', r) && n('object', r))
+ ),
+ jg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof pm || (e(r) && t('contact', r) && n('object', r))
+ ),
+ Og = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof dm || (e(r) && t('example', r) && n('object', r))
+ ),
+ kg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof mm || (e(r) && t('externalDocumentation', r) && n('object', r))
+ ),
+ Ag = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof gm || (e(r) && t('header', r) && n('object', r))
+ ),
+ Cg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof ym || (e(r) && t('info', r) && n('object', r))
+ ),
+ Pg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof bm || (e(r) && t('jsonSchemaDialect', r) && n('string', r))
+ ),
+ Ng = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof wm || (e(r) && t('license', r) && n('object', r))
+ ),
+ Ig = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Em || (e(r) && t('link', r) && n('object', r))
+ ),
+ Tg = (e) => {
+ if (!Ig(e)) return !1;
+ if (!ms(e.operationRef)) return !1;
+ const t = e.operationRef.toValue();
+ return 'string' == typeof t && t.length > 0 && !t.startsWith('#');
+ },
+ Rg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof jm || (e(r) && t('openapi', r) && n('string', r))
+ ),
+ Mg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n, hasClass: r }) =>
+ (o) =>
+ o instanceof km || (e(o) && t('openApi3_1', o) && n('object', o) && r('api', o))
+ ),
+ Dg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Am || (e(r) && t('operation', r) && n('object', r))
+ ),
+ Fg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Cm || (e(r) && t('parameter', r) && n('object', r))
+ ),
+ Lg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Pm || (e(r) && t('pathItem', r) && n('object', r))
+ ),
+ Bg = (e) => {
+ if (!Lg(e)) return !1;
+ if (!ms(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return 'string' == typeof t && t.length > 0 && !t.startsWith('#');
+ },
+ $g = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Nm || (e(r) && t('paths', r) && n('object', r))
+ ),
+ qg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Tm || (e(r) && t('reference', r) && n('object', r))
+ ),
+ Ug = (e) => {
+ if (!qg(e)) return !1;
+ if (!ms(e.$ref)) return !1;
+ const t = e.$ref.toValue();
+ return 'string' == typeof t && t.length > 0 && !t.startsWith('#');
+ },
+ zg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Rm || (e(r) && t('requestBody', r) && n('object', r))
+ ),
+ Vg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Mm || (e(r) && t('response', r) && n('object', r))
+ ),
+ Wg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Dm || (e(r) && t('responses', r) && n('object', r))
+ ),
+ Jg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Lm || (e(r) && t('schema', r) && n('object', r))
+ ),
+ Kg = (e) => vs(e) && e.classes.includes('boolean-json-schema'),
+ Hg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Bm || (e(r) && t('securityRequirement', r) && n('object', r))
+ ),
+ Gg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof qm || (e(r) && t('server', r) && n('object', r))
+ ),
+ Zg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof Um || (e(r) && t('serverVariable', r) && n('object', r))
+ ),
+ Yg = fs(
+ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) =>
+ (r) =>
+ r instanceof xm || (e(r) && t('mediaType', r) && n('object', r))
+ ),
+ Xg = Ys({
+ props: { parent: null },
+ init({ parent: e = this.parent }) {
+ (this.parent = e), (this.passingOptionsNames = [...this.passingOptionsNames, 'parent']);
+ },
+ }),
+ Qg = Ys(Gc, Xg, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Schema']), canSupportSpecificationExtensions: !0 },
+ init() {
+ const e = () => {
+ let e;
+ return (
+ (e =
+ null !== this.openApiSemanticElement && Pg(this.openApiSemanticElement.jsonSchemaDialect)
+ ? this.openApiSemanticElement.jsonSchemaDialect.toValue()
+ : null !== this.openApiGenericElement &&
+ ms(this.openApiGenericElement.get('jsonSchemaDialect'))
+ ? this.openApiGenericElement.get('jsonSchemaDialect').toValue()
+ : bm.default.toValue()),
+ e
+ );
+ },
+ t = (t) => {
+ if (Is(this.parent) && !ms(t.get('$schema'))) this.element.setMetaProperty('inherited$schema', e());
+ else if (Jg(this.parent) && !ms(t.get('$schema'))) {
+ var n, r;
+ const e = kr(
+ null === (n = this.parent.meta.get('inherited$schema')) || void 0 === n ? void 0 : n.toValue(),
+ null === (r = this.parent.$schema) || void 0 === r ? void 0 : r.toValue()
+ );
+ this.element.setMetaProperty('inherited$schema', e);
+ }
+ },
+ n = (e) => {
+ var t;
+ const n =
+ null !== this.parent ? this.parent.getMetaProperty('inherited$id', []).clone() : new Pt.ON(),
+ r = null === (t = e.get('$id')) || void 0 === t ? void 0 : t.toValue();
+ Nl(r) && n.push(r), this.element.setMetaProperty('inherited$id', n);
+ };
+ (this.ObjectElement = function (e) {
+ (this.element = new Lm()), t(e), n(e), (this.parent = this.element);
+ const r = Gc.compose.methods.ObjectElement.call(this, e);
+ return (
+ ms(this.element.$ref) &&
+ (this.element.classes.push('reference-element'),
+ this.element.setMetaProperty('referenced-element', 'schema')),
+ r
+ );
+ }),
+ (this.BooleanElement = function (e) {
+ return (this.element = e.clone()), this.element.classes.push('boolean-json-schema'), ei;
+ });
+ },
+ }),
+ ey = Zc,
+ ty = Ys(Zc, {
+ methods: {
+ ObjectElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-$vocabulary'), ei;
+ },
+ },
+ }),
+ ny = Zc,
+ ry = Zc,
+ oy = Zc,
+ sy = Zc,
+ iy = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('reference-value'), ei;
+ },
+ },
+ }),
+ ay = Ys(yu, Xg, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Schema']) },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-$defs');
+ },
+ }),
+ ly = Zc,
+ cy = Ys(Bc, Xg, Zc, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-allOf');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (bs(e)) {
+ const t = this.toRefractedElement(['document', 'objects', 'Schema'], e);
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ uy = Ys(Bc, Xg, Zc, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-anyOf');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (bs(e)) {
+ const t = this.toRefractedElement(['document', 'objects', 'Schema'], e);
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ py = Ys(Bc, Xg, Zc, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-oneOf');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (bs(e)) {
+ const t = this.toRefractedElement(['document', 'objects', 'Schema'], e);
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ hy = Ys(yu, Xg, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Schema']) },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-dependentSchemas');
+ },
+ }),
+ fy = Ys(Bc, Xg, Zc, {
+ init() {
+ (this.element = new Pt.ON()), this.element.classes.push('json-schema-prefixItems');
+ },
+ methods: {
+ ArrayElement(e) {
+ return (
+ e.forEach((e) => {
+ if (bs(e)) {
+ const t = this.toRefractedElement(['document', 'objects', 'Schema'], e);
+ this.element.push(t);
+ } else {
+ const t = e.clone();
+ this.element.push(t);
+ }
+ }),
+ this.copyMetaAndAttributes(e, this.element),
+ ei
+ );
+ },
+ },
+ }),
+ dy = Ys(yu, Xg, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Schema']) },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-properties');
+ },
+ }),
+ my = Ys(yu, Xg, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Schema']) },
+ init() {
+ (this.element = new Pt.Sb()), this.element.classes.push('json-schema-patternProperties');
+ },
+ }),
+ gy = Ys(Zc, {
+ methods: {
+ StringElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-type'), ei;
+ },
+ ArrayElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-type'), ei;
+ },
+ },
+ }),
+ yy = Ys(Zc, {
+ methods: {
+ ArrayElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-enum'), ei;
+ },
+ },
+ }),
+ vy = Zc,
+ by = Zc,
+ wy = Zc,
+ Ey = Zc,
+ xy = Zc,
+ Sy = Zc,
+ _y = Zc,
+ jy = Zc,
+ Oy = Zc,
+ ky = Zc,
+ Ay = Zc,
+ Cy = Zc,
+ Py = Zc,
+ Ny = Zc,
+ Iy = Zc,
+ Ty = Zc,
+ Ry = Ys(Zc, {
+ methods: {
+ ArrayElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-required'), ei;
+ },
+ },
+ }),
+ My = Ys(Zc, {
+ methods: {
+ ObjectElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-dependentRequired'), ei;
+ },
+ },
+ }),
+ Dy = Zc,
+ Fy = Zc,
+ Ly = Zc,
+ By = Zc,
+ $y = Zc,
+ qy = Zc,
+ Uy = Ys(Zc, {
+ methods: {
+ ArrayElement(e) {
+ return (this.element = e.clone()), this.element.classes.push('json-schema-examples'), ei;
+ },
+ },
+ }),
+ zy = Zc,
+ Vy = Zc,
+ Wy = Zc,
+ Jy = Zc,
+ {
+ visitors: {
+ document: {
+ objects: {
+ Discriminator: { $visitor: Ky },
+ },
+ },
+ },
+ } = tm,
+ Hy = Ys(Ky, {
+ props: { canSupportSpecificationExtensions: !0 },
+ init() {
+ this.element = new hm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ XML: { $visitor: Gy },
+ },
+ },
+ },
+ } = tm,
+ Zy = Ys(Gy, {
+ init() {
+ this.element = new Vm();
+ },
+ }),
+ Yy = Ys(yu, Zc, {
+ props: { specPath: Hn(['document', 'objects', 'Schema']) },
+ init() {
+ this.element = new Lh();
+ },
+ });
+ class Xy extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(Xy.primaryClass);
+ }
+ }
+ Xo(Xy, 'primaryClass', 'components-path-items');
+ const Qy = Xy,
+ ev = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'PathItem']),
+ },
+ init() {
+ this.element = new Qy();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(qg).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'pathItem');
+ }),
+ t
+ );
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Example: { $visitor: tv },
+ },
+ },
+ },
+ } = tm,
+ nv = Ys(tv, {
+ init() {
+ this.element = new dm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ ExternalDocumentation: { $visitor: rv },
+ },
+ },
+ },
+ } = tm,
+ ov = Ys(rv, {
+ init() {
+ this.element = new mm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Encoding: { $visitor: sv },
+ },
+ },
+ },
+ } = tm,
+ iv = Ys(sv, {
+ init() {
+ this.element = new fm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Paths: { $visitor: av },
+ },
+ },
+ },
+ } = tm,
+ lv = Ys(av, {
+ init() {
+ this.element = new Nm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ RequestBody: { $visitor: cv },
+ },
+ },
+ },
+ } = tm,
+ uv = Ys(cv, {
+ init() {
+ this.element = new Rm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Callback: { $visitor: pv },
+ },
+ },
+ },
+ } = tm,
+ hv = Ys(pv, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'PathItem']),
+ },
+ init() {
+ this.element = new cm();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = pv.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(qg).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'pathItem');
+ }),
+ t
+ );
+ },
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Response: { $visitor: fv },
+ },
+ },
+ },
+ } = tm,
+ dv = Ys(fv, {
+ init() {
+ this.element = new Mm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Responses: { $visitor: mv },
+ },
+ },
+ },
+ } = tm,
+ gv = Ys(mv, {
+ init() {
+ this.element = new Dm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ Operation: { $visitor: yv },
+ },
+ },
+ },
+ } = tm,
+ vv = Ys(yv, {
+ init() {
+ this.element = new Am();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ PathItem: { $visitor: bv },
+ },
+ },
+ },
+ } = tm,
+ wv = Ys(bv, {
+ init() {
+ this.element = new Pm();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ SecurityScheme: { $visitor: Ev },
+ },
+ },
+ },
+ } = tm,
+ xv = Ys(Ev, {
+ init() {
+ this.element = new $m();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ OAuthFlows: { $visitor: Sv },
+ },
+ },
+ },
+ } = tm,
+ _v = Ys(Sv, {
+ init() {
+ this.element = new _m();
+ },
+ }),
+ {
+ visitors: {
+ document: {
+ objects: {
+ OAuthFlow: { $visitor: jv },
+ },
+ },
+ },
+ } = tm,
+ Ov = Ys(jv, {
+ init() {
+ this.element = new Sm();
+ },
+ });
+ class kv extends Pt.Sb {
+ constructor(e, t, n) {
+ super(e, t, n), this.classes.push(kv.primaryClass);
+ }
+ }
+ Xo(kv, 'primaryClass', 'webhooks');
+ const Av = kv,
+ Cv = Ys(yu, Zc, {
+ props: {
+ specPath: (e) => (Uc(e) ? ['document', 'objects', 'Reference'] : ['document', 'objects', 'PathItem']),
+ },
+ init() {
+ this.element = new Av();
+ },
+ methods: {
+ ObjectElement(e) {
+ const t = yu.compose.methods.ObjectElement.call(this, e);
+ return (
+ this.element.filter(qg).forEach((e) => {
+ e.setMetaProperty('referenced-element', 'pathItem');
+ }),
+ this.element.filter(Lg).forEach((e, t) => {
+ e.setMetaProperty('webhook-name', t.toValue());
+ }),
+ t
+ );
+ },
+ },
+ }),
+ Pv = {
+ visitors: {
+ value: tm.visitors.value,
+ document: {
+ objects: {
+ OpenApi: {
+ $visitor: Wm,
+ fixedFields: {
+ openapi: tm.visitors.document.objects.OpenApi.fixedFields.openapi,
+ info: { $ref: '#/visitors/document/objects/Info' },
+ jsonSchemaDialect: ng,
+ servers: tm.visitors.document.objects.OpenApi.fixedFields.servers,
+ paths: { $ref: '#/visitors/document/objects/Paths' },
+ webhooks: Cv,
+ components: { $ref: '#/visitors/document/objects/Components' },
+ security: tm.visitors.document.objects.OpenApi.fixedFields.security,
+ tags: tm.visitors.document.objects.OpenApi.fixedFields.tags,
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ },
+ },
+ Info: {
+ $visitor: Km,
+ fixedFields: {
+ title: tm.visitors.document.objects.Info.fixedFields.title,
+ description: tm.visitors.document.objects.Info.fixedFields.description,
+ summary: Hm,
+ termsOfService: tm.visitors.document.objects.Info.fixedFields.termsOfService,
+ contact: { $ref: '#/visitors/document/objects/Contact' },
+ license: { $ref: '#/visitors/document/objects/License' },
+ version: tm.visitors.document.objects.Info.fixedFields.version,
+ },
+ },
+ Contact: {
+ $visitor: Zm,
+ fixedFields: {
+ name: tm.visitors.document.objects.Contact.fixedFields.name,
+ url: tm.visitors.document.objects.Contact.fixedFields.url,
+ email: tm.visitors.document.objects.Contact.fixedFields.email,
+ },
+ },
+ License: {
+ $visitor: Xm,
+ fixedFields: {
+ name: tm.visitors.document.objects.License.fixedFields.name,
+ identifier: Qm,
+ url: tm.visitors.document.objects.License.fixedFields.url,
+ },
+ },
+ Server: {
+ $visitor: og,
+ fixedFields: {
+ url: tm.visitors.document.objects.Server.fixedFields.url,
+ description: tm.visitors.document.objects.Server.fixedFields.description,
+ variables: tm.visitors.document.objects.Server.fixedFields.variables,
+ },
+ },
+ ServerVariable: {
+ $visitor: ig,
+ fixedFields: {
+ enum: tm.visitors.document.objects.ServerVariable.fixedFields.enum,
+ default: tm.visitors.document.objects.ServerVariable.fixedFields.default,
+ description: tm.visitors.document.objects.ServerVariable.fixedFields.description,
+ },
+ },
+ Components: {
+ $visitor: hg,
+ fixedFields: {
+ schemas: Yy,
+ responses: tm.visitors.document.objects.Components.fixedFields.responses,
+ parameters: tm.visitors.document.objects.Components.fixedFields.parameters,
+ examples: tm.visitors.document.objects.Components.fixedFields.examples,
+ requestBodies: tm.visitors.document.objects.Components.fixedFields.requestBodies,
+ headers: tm.visitors.document.objects.Components.fixedFields.headers,
+ securitySchemes: tm.visitors.document.objects.Components.fixedFields.securitySchemes,
+ links: tm.visitors.document.objects.Components.fixedFields.links,
+ callbacks: tm.visitors.document.objects.Components.fixedFields.callbacks,
+ pathItems: ev,
+ },
+ },
+ Paths: { $visitor: lv },
+ PathItem: {
+ $visitor: wv,
+ fixedFields: {
+ $ref: tm.visitors.document.objects.PathItem.fixedFields.$ref,
+ summary: tm.visitors.document.objects.PathItem.fixedFields.summary,
+ description: tm.visitors.document.objects.PathItem.fixedFields.description,
+ get: { $ref: '#/visitors/document/objects/Operation' },
+ put: { $ref: '#/visitors/document/objects/Operation' },
+ post: { $ref: '#/visitors/document/objects/Operation' },
+ delete: { $ref: '#/visitors/document/objects/Operation' },
+ options: { $ref: '#/visitors/document/objects/Operation' },
+ head: { $ref: '#/visitors/document/objects/Operation' },
+ patch: { $ref: '#/visitors/document/objects/Operation' },
+ trace: { $ref: '#/visitors/document/objects/Operation' },
+ servers: tm.visitors.document.objects.PathItem.fixedFields.servers,
+ parameters: tm.visitors.document.objects.PathItem.fixedFields.parameters,
+ },
+ },
+ Operation: {
+ $visitor: vv,
+ fixedFields: {
+ tags: tm.visitors.document.objects.Operation.fixedFields.tags,
+ summary: tm.visitors.document.objects.Operation.fixedFields.summary,
+ description: tm.visitors.document.objects.Operation.fixedFields.description,
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ operationId: tm.visitors.document.objects.Operation.fixedFields.operationId,
+ parameters: tm.visitors.document.objects.Operation.fixedFields.parameters,
+ requestBody: tm.visitors.document.objects.Operation.fixedFields.requestBody,
+ responses: { $ref: '#/visitors/document/objects/Responses' },
+ callbacks: tm.visitors.document.objects.Operation.fixedFields.callbacks,
+ deprecated: tm.visitors.document.objects.Operation.fixedFields.deprecated,
+ security: tm.visitors.document.objects.Operation.fixedFields.security,
+ servers: tm.visitors.document.objects.Operation.fixedFields.servers,
+ },
+ },
+ ExternalDocumentation: {
+ $visitor: ov,
+ fixedFields: {
+ description: tm.visitors.document.objects.ExternalDocumentation.fixedFields.description,
+ url: tm.visitors.document.objects.ExternalDocumentation.fixedFields.url,
+ },
+ },
+ Parameter: {
+ $visitor: wg,
+ fixedFields: {
+ name: tm.visitors.document.objects.Parameter.fixedFields.name,
+ in: tm.visitors.document.objects.Parameter.fixedFields.in,
+ description: tm.visitors.document.objects.Parameter.fixedFields.description,
+ required: tm.visitors.document.objects.Parameter.fixedFields.required,
+ deprecated: tm.visitors.document.objects.Parameter.fixedFields.deprecated,
+ allowEmptyValue: tm.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,
+ style: tm.visitors.document.objects.Parameter.fixedFields.style,
+ explode: tm.visitors.document.objects.Parameter.fixedFields.explode,
+ allowReserved: tm.visitors.document.objects.Parameter.fixedFields.allowReserved,
+ schema: { $ref: '#/visitors/document/objects/Schema' },
+ example: tm.visitors.document.objects.Parameter.fixedFields.example,
+ examples: tm.visitors.document.objects.Parameter.fixedFields.examples,
+ content: tm.visitors.document.objects.Parameter.fixedFields.content,
+ },
+ },
+ RequestBody: {
+ $visitor: uv,
+ fixedFields: {
+ description: tm.visitors.document.objects.RequestBody.fixedFields.description,
+ content: tm.visitors.document.objects.RequestBody.fixedFields.content,
+ required: tm.visitors.document.objects.RequestBody.fixedFields.required,
+ },
+ },
+ MediaType: {
+ $visitor: lg,
+ fixedFields: {
+ schema: { $ref: '#/visitors/document/objects/Schema' },
+ example: tm.visitors.document.objects.MediaType.fixedFields.example,
+ examples: tm.visitors.document.objects.MediaType.fixedFields.examples,
+ encoding: tm.visitors.document.objects.MediaType.fixedFields.encoding,
+ },
+ },
+ Encoding: {
+ $visitor: iv,
+ fixedFields: {
+ contentType: tm.visitors.document.objects.Encoding.fixedFields.contentType,
+ headers: tm.visitors.document.objects.Encoding.fixedFields.headers,
+ style: tm.visitors.document.objects.Encoding.fixedFields.style,
+ explode: tm.visitors.document.objects.Encoding.fixedFields.explode,
+ allowReserved: tm.visitors.document.objects.Encoding.fixedFields.allowReserved,
+ },
+ },
+ Responses: {
+ $visitor: gv,
+ fixedFields: { default: tm.visitors.document.objects.Responses.fixedFields.default },
+ },
+ Response: {
+ $visitor: dv,
+ fixedFields: {
+ description: tm.visitors.document.objects.Response.fixedFields.description,
+ headers: tm.visitors.document.objects.Response.fixedFields.headers,
+ content: tm.visitors.document.objects.Response.fixedFields.content,
+ links: tm.visitors.document.objects.Response.fixedFields.links,
+ },
+ },
+ Callback: { $visitor: hv },
+ Example: {
+ $visitor: nv,
+ fixedFields: {
+ summary: tm.visitors.document.objects.Example.fixedFields.summary,
+ description: tm.visitors.document.objects.Example.fixedFields.description,
+ value: tm.visitors.document.objects.Example.fixedFields.value,
+ externalValue: tm.visitors.document.objects.Example.fixedFields.externalValue,
+ },
+ },
+ Link: {
+ $visitor: tg,
+ fixedFields: {
+ operationRef: tm.visitors.document.objects.Link.fixedFields.operationRef,
+ operationId: tm.visitors.document.objects.Link.fixedFields.operationId,
+ parameters: tm.visitors.document.objects.Link.fixedFields.parameters,
+ requestBody: tm.visitors.document.objects.Link.fixedFields.requestBody,
+ description: tm.visitors.document.objects.Link.fixedFields.description,
+ server: { $ref: '#/visitors/document/objects/Server' },
+ },
+ },
+ Header: {
+ $visitor: xg,
+ fixedFields: {
+ description: tm.visitors.document.objects.Header.fixedFields.description,
+ required: tm.visitors.document.objects.Header.fixedFields.required,
+ deprecated: tm.visitors.document.objects.Header.fixedFields.deprecated,
+ allowEmptyValue: tm.visitors.document.objects.Header.fixedFields.allowEmptyValue,
+ style: tm.visitors.document.objects.Header.fixedFields.style,
+ explode: tm.visitors.document.objects.Header.fixedFields.explode,
+ allowReserved: tm.visitors.document.objects.Header.fixedFields.allowReserved,
+ schema: { $ref: '#/visitors/document/objects/Schema' },
+ example: tm.visitors.document.objects.Header.fixedFields.example,
+ examples: tm.visitors.document.objects.Header.fixedFields.examples,
+ content: tm.visitors.document.objects.Header.fixedFields.content,
+ },
+ },
+ Tag: {
+ $visitor: dg,
+ fixedFields: {
+ name: tm.visitors.document.objects.Tag.fixedFields.name,
+ description: tm.visitors.document.objects.Tag.fixedFields.description,
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ },
+ },
+ Reference: {
+ $visitor: gg,
+ fixedFields: {
+ $ref: tm.visitors.document.objects.Reference.fixedFields.$ref,
+ summary: yg,
+ description: vg,
+ },
+ },
+ Schema: {
+ $visitor: Qg,
+ fixedFields: {
+ $schema: ey,
+ $vocabulary: ty,
+ $id: ny,
+ $anchor: ry,
+ $dynamicAnchor: oy,
+ $dynamicRef: sy,
+ $ref: iy,
+ $defs: ay,
+ $comment: ly,
+ allOf: cy,
+ anyOf: uy,
+ oneOf: py,
+ not: { $ref: '#/visitors/document/objects/Schema' },
+ if: { $ref: '#/visitors/document/objects/Schema' },
+ then: { $ref: '#/visitors/document/objects/Schema' },
+ else: { $ref: '#/visitors/document/objects/Schema' },
+ dependentSchemas: hy,
+ prefixItems: fy,
+ items: { $ref: '#/visitors/document/objects/Schema' },
+ contains: { $ref: '#/visitors/document/objects/Schema' },
+ properties: dy,
+ patternProperties: my,
+ additionalProperties: { $ref: '#/visitors/document/objects/Schema' },
+ propertyNames: { $ref: '#/visitors/document/objects/Schema' },
+ unevaluatedItems: { $ref: '#/visitors/document/objects/Schema' },
+ unevaluatedProperties: { $ref: '#/visitors/document/objects/Schema' },
+ type: gy,
+ enum: yy,
+ const: vy,
+ multipleOf: by,
+ maximum: wy,
+ exclusiveMaximum: Ey,
+ minimum: xy,
+ exclusiveMinimum: Sy,
+ maxLength: _y,
+ minLength: jy,
+ pattern: Oy,
+ maxItems: ky,
+ minItems: Ay,
+ uniqueItems: Cy,
+ maxContains: Py,
+ minContains: Ny,
+ maxProperties: Iy,
+ minProperties: Ty,
+ required: Ry,
+ dependentRequired: My,
+ title: Dy,
+ description: Fy,
+ default: Ly,
+ deprecated: By,
+ readOnly: $y,
+ writeOnly: qy,
+ examples: Uy,
+ format: zy,
+ contentEncoding: Vy,
+ contentMediaType: Wy,
+ contentSchema: { $ref: '#/visitors/document/objects/Schema' },
+ discriminator: { $ref: '#/visitors/document/objects/Discriminator' },
+ xml: { $ref: '#/visitors/document/objects/XML' },
+ externalDocs: { $ref: '#/visitors/document/objects/ExternalDocumentation' },
+ example: Jy,
+ },
+ },
+ Discriminator: {
+ $visitor: Hy,
+ fixedFields: {
+ propertyName: tm.visitors.document.objects.Discriminator.fixedFields.propertyName,
+ mapping: tm.visitors.document.objects.Discriminator.fixedFields.mapping,
+ },
+ },
+ XML: {
+ $visitor: Zy,
+ fixedFields: {
+ name: tm.visitors.document.objects.XML.fixedFields.name,
+ namespace: tm.visitors.document.objects.XML.fixedFields.namespace,
+ prefix: tm.visitors.document.objects.XML.fixedFields.prefix,
+ attribute: tm.visitors.document.objects.XML.fixedFields.attribute,
+ wrapped: tm.visitors.document.objects.XML.fixedFields.wrapped,
+ },
+ },
+ SecurityScheme: {
+ $visitor: xv,
+ fixedFields: {
+ type: tm.visitors.document.objects.SecurityScheme.fixedFields.type,
+ description: tm.visitors.document.objects.SecurityScheme.fixedFields.description,
+ name: tm.visitors.document.objects.SecurityScheme.fixedFields.name,
+ in: tm.visitors.document.objects.SecurityScheme.fixedFields.in,
+ scheme: tm.visitors.document.objects.SecurityScheme.fixedFields.scheme,
+ bearerFormat: tm.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,
+ flows: { $ref: '#/visitors/document/objects/OAuthFlows' },
+ openIdConnectUrl: tm.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl,
+ },
+ },
+ OAuthFlows: {
+ $visitor: _v,
+ fixedFields: {
+ implicit: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ password: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ clientCredentials: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ authorizationCode: { $ref: '#/visitors/document/objects/OAuthFlow' },
+ },
+ },
+ OAuthFlow: {
+ $visitor: Ov,
+ fixedFields: {
+ authorizationUrl: tm.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,
+ tokenUrl: tm.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,
+ refreshUrl: tm.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,
+ scopes: tm.visitors.document.objects.OAuthFlow.fixedFields.scopes,
+ },
+ },
+ SecurityRequirement: { $visitor: ug },
+ },
+ extension: { $visitor: tm.visitors.document.extension.$visitor },
+ },
+ },
+ };
+ function Nv(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Iv = (e) => {
+ if (ds(e)) return `${e.element.charAt(0).toUpperCase() + e.element.slice(1)}Element`;
+ },
+ Tv = (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Nv(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Nv(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })(
+ {
+ CallbackElement: ['content'],
+ ComponentsElement: ['content'],
+ ContactElement: ['content'],
+ DiscriminatorElement: ['content'],
+ Encoding: ['content'],
+ Example: ['content'],
+ ExternalDocumentationElement: ['content'],
+ HeaderElement: ['content'],
+ InfoElement: ['content'],
+ LicenseElement: ['content'],
+ MediaTypeElement: ['content'],
+ OAuthFlowElement: ['content'],
+ OAuthFlowsElement: ['content'],
+ OpenApi3_1Element: ['content'],
+ OperationElement: ['content'],
+ ParameterElement: ['content'],
+ PathItemElement: ['content'],
+ PathsElement: ['content'],
+ ReferenceElement: ['content'],
+ RequestBodyElement: ['content'],
+ ResponseElement: ['content'],
+ ResponsesElement: ['content'],
+ SchemaElement: ['content'],
+ SecurityRequirementElement: ['content'],
+ SecuritySchemeElement: ['content'],
+ ServerElement: ['content'],
+ ServerVariableElement: ['content'],
+ TagElement: ['content'],
+ },
+ pi
+ ),
+ Rv = {
+ namespace: (e) => {
+ const { base: t } = e;
+ return (
+ t.register('callback', cm),
+ t.register('components', um),
+ t.register('contact', pm),
+ t.register('discriminator', hm),
+ t.register('encoding', fm),
+ t.register('example', dm),
+ t.register('externalDocumentation', mm),
+ t.register('header', gm),
+ t.register('info', ym),
+ t.register('jsonSchemaDialect', bm),
+ t.register('license', wm),
+ t.register('link', Em),
+ t.register('mediaType', xm),
+ t.register('oAuthFlow', Sm),
+ t.register('oAuthFlows', _m),
+ t.register('openapi', jm),
+ t.register('openApi3_1', km),
+ t.register('operation', Am),
+ t.register('parameter', Cm),
+ t.register('pathItem', Pm),
+ t.register('paths', Nm),
+ t.register('reference', Tm),
+ t.register('requestBody', Rm),
+ t.register('response', Mm),
+ t.register('responses', Dm),
+ t.register('schema', Lm),
+ t.register('securityRequirement', Bm),
+ t.register('securityScheme', $m),
+ t.register('server', qm),
+ t.register('serverVariable', Um),
+ t.register('tag', zm),
+ t.register('xml', Vm),
+ t
+ );
+ },
+ };
+ function Mv(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Dv(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Mv(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Mv(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const Fv = () => {
+ const e = zs(Rv);
+ return {
+ predicates: Dv(
+ Dv({}, c),
+ {},
+ { isStringElement: ms, isArrayElement: ws, isObjectElement: bs, includesClasses: Ns }
+ ),
+ namespace: e,
+ };
+ };
+ function Lv(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ const Bv = (
+ e,
+ { specPath: t = ['visitors', 'document', 'objects', 'OpenApi', '$visitor'], plugins: n = [] } = {}
+ ) => {
+ const r = (0, Pt.Qc)(e),
+ o = Za(Pv),
+ s = is(t, [], o);
+ return (
+ fi(r, s, { state: { specObj: o } }),
+ di(s.element, n, { toolboxCreator: Fv, visitorOptions: { keyMap: Tv, nodeTypeGetter: Iv } })
+ );
+ },
+ $v =
+ (e) =>
+ (t, n = {}) =>
+ Bv(
+ t,
+ (function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Lv(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Lv(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ })({ specPath: e }, n)
+ );
+ (cm.refract = $v(['visitors', 'document', 'objects', 'Callback', '$visitor'])),
+ (um.refract = $v(['visitors', 'document', 'objects', 'Components', '$visitor'])),
+ (pm.refract = $v(['visitors', 'document', 'objects', 'Contact', '$visitor'])),
+ (dm.refract = $v(['visitors', 'document', 'objects', 'Example', '$visitor'])),
+ (hm.refract = $v(['visitors', 'document', 'objects', 'Discriminator', '$visitor'])),
+ (fm.refract = $v(['visitors', 'document', 'objects', 'Encoding', '$visitor'])),
+ (mm.refract = $v(['visitors', 'document', 'objects', 'ExternalDocumentation', '$visitor'])),
+ (gm.refract = $v(['visitors', 'document', 'objects', 'Header', '$visitor'])),
+ (ym.refract = $v(['visitors', 'document', 'objects', 'Info', '$visitor'])),
+ (bm.refract = $v(['visitors', 'document', 'objects', 'OpenApi', 'fixedFields', 'jsonSchemaDialect'])),
+ (wm.refract = $v(['visitors', 'document', 'objects', 'License', '$visitor'])),
+ (Em.refract = $v(['visitors', 'document', 'objects', 'Link', '$visitor'])),
+ (xm.refract = $v(['visitors', 'document', 'objects', 'MediaType', '$visitor'])),
+ (Sm.refract = $v(['visitors', 'document', 'objects', 'OAuthFlow', '$visitor'])),
+ (_m.refract = $v(['visitors', 'document', 'objects', 'OAuthFlows', '$visitor'])),
+ (jm.refract = $v(['visitors', 'document', 'objects', 'OpenApi', 'fixedFields', 'openapi'])),
+ (km.refract = $v(['visitors', 'document', 'objects', 'OpenApi', '$visitor'])),
+ (Am.refract = $v(['visitors', 'document', 'objects', 'Operation', '$visitor'])),
+ (Cm.refract = $v(['visitors', 'document', 'objects', 'Parameter', '$visitor'])),
+ (Pm.refract = $v(['visitors', 'document', 'objects', 'PathItem', '$visitor'])),
+ (Nm.refract = $v(['visitors', 'document', 'objects', 'Paths', '$visitor'])),
+ (Tm.refract = $v(['visitors', 'document', 'objects', 'Reference', '$visitor'])),
+ (Rm.refract = $v(['visitors', 'document', 'objects', 'RequestBody', '$visitor'])),
+ (Mm.refract = $v(['visitors', 'document', 'objects', 'Response', '$visitor'])),
+ (Dm.refract = $v(['visitors', 'document', 'objects', 'Responses', '$visitor'])),
+ (Lm.refract = $v(['visitors', 'document', 'objects', 'Schema', '$visitor'])),
+ (Bm.refract = $v(['visitors', 'document', 'objects', 'SecurityRequirement', '$visitor'])),
+ ($m.refract = $v(['visitors', 'document', 'objects', 'SecurityScheme', '$visitor'])),
+ (qm.refract = $v(['visitors', 'document', 'objects', 'Server', '$visitor'])),
+ (Um.refract = $v(['visitors', 'document', 'objects', 'ServerVariable', '$visitor'])),
+ (zm.refract = $v(['visitors', 'document', 'objects', 'Tag', '$visitor'])),
+ (Vm.refract = $v(['visitors', 'document', 'objects', 'XML', '$visitor']));
+ const qv = class extends Array {
+ constructor(...e) {
+ super(...e), Xo(this, 'unknownMediaType', 'application/octet-stream');
+ }
+ filterByFormat() {
+ throw new Error('Not implemented!');
+ }
+ findBy() {
+ throw new Error('Not implemented');
+ }
+ latest() {
+ throw new Error('Not implemented!');
+ }
+ };
+ class Uv extends qv {
+ filterByFormat(e = 'generic') {
+ const t = 'generic' === e ? 'openapi;version' : e;
+ return this.filter((e) => e.includes(t));
+ }
+ findBy(e = '3.1.0', t = 'generic') {
+ const n = 'generic' === t ? `vnd.oai.openapi;version=${e}` : `vnd.oai.openapi+${t};version=${e}`;
+ return this.find((e) => e.includes(n)) || this.unknownMediaType;
+ }
+ latest(e = 'generic') {
+ return ao(this.filterByFormat(e));
+ }
+ }
+ const zv = new Uv(
+ 'application/vnd.oai.openapi;version=3.1.0',
+ 'application/vnd.oai.openapi+json;version=3.1.0',
+ 'application/vnd.oai.openapi+yaml;version=3.1.0'
+ );
+ var Vv = n(34155),
+ Wv = Or(function (e, t) {
+ return gr(Io(''), Fr(as(e)), io(''))(t);
+ });
+ const Jv = Wv;
+ const Kv = pr(qo);
+ const Hv = Zt(1, gr(cn, Xr('RegExp')));
+ const Gv = Bo(Xs, Co(/[.*+?^${}()|[\]\\-]/g, '\\$&'));
+ var Zv = function (e, t) {
+ if ('string' != typeof e && !(e instanceof String)) throw TypeError('`'.concat(t, '` must be a string'));
+ };
+ var Yv = Zt(3, function (e, t, n) {
+ !(function (e, t, n) {
+ if (null == n || null == e || null == t)
+ throw TypeError('Input values must not be `null` or `undefined`');
+ })(e, t, n),
+ Zv(n, 'str'),
+ Zv(t, 'replaceValue'),
+ (function (e) {
+ if (!('string' == typeof e || e instanceof String || e instanceof RegExp))
+ throw TypeError('`searchValue` must be a string or an regexp');
+ })(e);
+ var r = new RegExp(Hv(e) ? e : Gv(e), 'g');
+ return Co(r, t, n);
+ }),
+ Xv = oo(2, 'replaceAll');
+ const Qv = ts(String.prototype.replaceAll) ? Xv : Yv,
+ eb = () => wo(Ro(/^win/), ['platform'], Vv),
+ tb = (e) => {
+ try {
+ const t = new URL(e);
+ return Jv(':', t.protocol);
+ } catch {
+ return;
+ }
+ },
+ nb =
+ (gr(tb, Kv),
+ (e) => {
+ if (Vv.browser) return !1;
+ const t = tb(e);
+ return qo(t) || 'file' === t || /^[a-zA-Z]$/.test(t);
+ }),
+ rb = (e) => {
+ const t = tb(e);
+ return 'http' === t || 'https' === t;
+ },
+ ob = (e, t) => {
+ const n = [/%23/g, '#', /%24/g, '$', /%26/g, '&', /%2C/g, ',', /%40/g, '@'],
+ r = So(!1, 'keepFileProtocol', t),
+ o = So(eb, 'isWindows', t);
+ let s = decodeURI(e);
+ for (let e = 0; e < n.length; e += 2) s = s.replace(n[e], n[e + 1]);
+ let i = 'file://' === s.substr(0, 7).toLowerCase();
+ return (
+ i &&
+ ((s = '/' === s[7] ? s.substr(8) : s.substr(7)),
+ o() && '/' === s[1] && (s = `${s[0]}:${s.substr(1)}`),
+ r ? (s = `file:///${s}`) : ((i = !1), (s = o() ? s : `/${s}`))),
+ o() &&
+ !i &&
+ ((s = Qv('/', '\\', s)), ':\\' === s.substr(1, 2) && (s = s[0].toUpperCase() + s.substr(1))),
+ s
+ );
+ },
+ sb = (e) => {
+ const t = e.indexOf('#');
+ return -1 !== t ? e.substr(t) : '#';
+ },
+ ib = (e) => {
+ const t = e.indexOf('#');
+ let n = e;
+ return t >= 0 && (n = e.substr(0, t)), n;
+ },
+ ab = () => {
+ if (Vv.browser) return ib(globalThis.location.href);
+ const e = Vv.cwd(),
+ t = ao(e);
+ return ['/', '\\'].includes(t) ? e : e + (eb() ? '\\' : '/');
+ },
+ lb = (e, t) => {
+ const n = new URL(t, new URL(e, 'resolve://'));
+ if ('resolve:' === n.protocol) {
+ const { pathname: e, search: t, hash: r } = n;
+ return e + t + r;
+ }
+ return n.toString();
+ },
+ cb = (e) =>
+ nb(e)
+ ? ((e) => {
+ const t = [/\?/g, '%3F', /#/g, '%23'];
+ let n = e;
+ eb() && (n = n.replace(/\\/g, '/')), (n = encodeURI(n));
+ for (let e = 0; e < t.length; e += 2) n = n.replace(t[e], t[e + 1]);
+ return n;
+ })(ob(e))
+ : encodeURI(decodeURI(e)).replace(/%5B/g, '[').replace(/%5D/g, ']'),
+ ub = (e) => (nb(e) ? ob(e) : decodeURI(e)),
+ pb = Ys({
+ props: { uri: '', value: null, depth: 0, refSet: null, errors: [] },
+ init({ depth: e = this.depth, refSet: t = this.refSet, uri: n = this.uri, value: r = this.value } = {}) {
+ (this.uri = n), (this.value = r), (this.depth = e), (this.refSet = t), (this.errors = []);
+ },
+ }),
+ hb = pb,
+ fb = Ys({
+ props: { rootRef: null, refs: [], circular: !1 },
+ init({ refs: e = [] } = {}) {
+ (this.refs = []), e.forEach((e) => this.add(e));
+ },
+ methods: {
+ get size() {
+ return this.refs.length;
+ },
+ add(e) {
+ return (
+ this.has(e) ||
+ (this.refs.push(e), (this.rootRef = null === this.rootRef ? e : this.rootRef), (e.refSet = this)),
+ this
+ );
+ },
+ merge(e) {
+ for (const t of e.values()) this.add(t);
+ return this;
+ },
+ has(e) {
+ const t = Xs(e) ? e : e.uri;
+ return Kv(this.find(xo(t, 'uri')));
+ },
+ find(e) {
+ return this.refs.find(e);
+ },
+ *values() {
+ yield* this.refs;
+ },
+ clean() {
+ this.refs.forEach((e) => {
+ e.refSet = null;
+ }),
+ (this.refs = []);
+ },
+ },
+ }),
+ db = fb,
+ mb = {
+ parse: { mediaType: 'text/plain', parsers: [], parserOpts: {} },
+ resolve: { baseURI: '', resolvers: [], resolverOpts: {}, strategies: [], external: !0, maxDepth: 1 / 0 },
+ dereference: { strategies: [], refSet: null, maxDepth: 1 / 0 },
+ },
+ gb = lo(uo(['resolve', 'baseURI']), or(['resolve', 'baseURI'])),
+ yb = (e) => (Ri(e) ? ab() : e),
+ vb = Ys({
+ props: { uri: null, mediaType: 'text/plain', data: null, parseResult: null },
+ init({
+ uri: e = this.uri,
+ mediaType: t = this.mediaType,
+ data: n = this.data,
+ parseResult: r = this.parseResult,
+ } = {}) {
+ (this.uri = e), (this.mediaType = t), (this.data = n), (this.parseResult = r);
+ },
+ methods: {
+ get extension() {
+ return Xs(this.uri)
+ ? ((e) => {
+ const t = e.lastIndexOf('.');
+ return t >= 0 ? e.substr(t).toLowerCase() : '';
+ })(this.uri)
+ : '';
+ },
+ toString() {
+ if ('string' == typeof this.data) return this.data;
+ if (
+ this.data instanceof ArrayBuffer ||
+ ['ArrayBuffer'].includes(cn(this.data)) ||
+ ArrayBuffer.isView(this.data)
+ ) {
+ return new TextDecoder('utf-8').decode(this.data);
+ }
+ return String(this.data);
+ },
+ },
+ });
+ class bb extends Error {
+ constructor(e, t) {
+ if (
+ (super(e),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ 'function' == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack),
+ $s(t) && Gr('cause', t) && !Gr('cause', this))
+ ) {
+ const { cause: e } = t;
+ (this.cause = e),
+ Gr('stack', e) && (this.stack = `${this.stack}\nCAUSE: ${null == e ? void 0 : e.stack}`);
+ }
+ }
+ }
+ const wb = bb;
+ const Eb = class extends wb {
+ constructor(e, t) {
+ super(e, { cause: t.cause }), Xo(this, 'plugin', void 0), (this.plugin = t.plugin);
+ }
+ },
+ xb = async (e, t, n) => {
+ const r = await Promise.all(n.map(is([e], [t])));
+ return n.filter((e, t) => r[t]);
+ },
+ Sb = async (e, t, n) => {
+ let r;
+ for (const o of n)
+ try {
+ const n = await o[e].call(o, ...t);
+ return { plugin: o, result: n };
+ } catch (e) {
+ r = new Eb('Error while running plugin', { cause: e, plugin: o });
+ }
+ return Promise.reject(r);
+ };
+ const _b = class extends wb {};
+ const jb = class extends _b {};
+ const Ob = class extends wb {},
+ kb = async (e, t) => {
+ let n = e,
+ r = !1;
+ if (!Os(e)) {
+ const t = new e.constructor(e.content, e.meta.clone(), e.attributes);
+ t.classes.push('result'), (n = new zo([t])), (r = !0);
+ }
+ const o = vb({ uri: t.resolve.baseURI, parseResult: n, mediaType: t.parse.mediaType }),
+ s = await xb('canDereference', o, t.dereference.strategies);
+ if (so(s)) throw new jb(o.uri);
+ try {
+ const { result: e } = await Sb('dereference', [o, t], s);
+ return r ? e.get(0) : e;
+ } catch (e) {
+ throw new Ob(`Error while dereferencing file "${o.uri}"`, { cause: e });
+ }
+ },
+ Ab = async (e, t = {}) => {
+ const n = ((e, t) => {
+ const n = mo(e, t);
+ return vo(gb, yb, n);
+ })(mb, t);
+ return kb(e, n);
+ };
+ const Cb = class extends wb {
+ constructor(e = 'Not Implemented', t) {
+ super(e, t);
+ }
+ },
+ Pb = Ys({
+ props: { name: '', allowEmpty: !0, sourceMap: !1, fileExtensions: [], mediaTypes: [] },
+ init({
+ allowEmpty: e = this.allowEmpty,
+ sourceMap: t = this.sourceMap,
+ fileExtensions: n = this.fileExtensions,
+ mediaTypes: r = this.mediaTypes,
+ } = {}) {
+ (this.allowEmpty = e), (this.sourceMap = t), (this.fileExtensions = n), (this.mediaTypes = r);
+ },
+ methods: {
+ async canParse() {
+ throw new Cb();
+ },
+ async parse() {
+ throw new Cb();
+ },
+ },
+ }),
+ Nb = Pb,
+ Ib = Ys(Nb, {
+ props: { name: 'binary' },
+ methods: {
+ async canParse(e) {
+ return 0 === this.fileExtensions.length || this.fileExtensions.includes(e.extension);
+ },
+ async parse(e) {
+ try {
+ const t = unescape(encodeURIComponent(e.toString())),
+ n = btoa(t),
+ r = new zo();
+ if (0 !== n.length) {
+ const e = new Pt.RP(n);
+ e.classes.push('result'), r.push(e);
+ }
+ return r;
+ } catch (t) {
+ throw new _b(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Tb = Ys({
+ props: { name: null },
+ methods: {
+ canResolve: () => !1,
+ async resolve() {
+ throw new Cb();
+ },
+ },
+ });
+ const Rb = Zt(1, $n(Promise.all, Promise));
+ const Mb = class extends wb {};
+ const Db = class extends Mb {};
+ const Fb = class extends Ob {};
+ const Lb = class extends Mb {};
+ function Bb(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function $b(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Bb(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Bb(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const qb = async (e, t) => {
+ const n = vb({ uri: cb(ib(e)), mediaType: t.parse.mediaType }),
+ r = await (async (e, t) => {
+ const n = t.resolve.resolvers.map((e) => {
+ const n = Object.create(e);
+ return Object.assign(n, t.resolve.resolverOpts);
+ }),
+ r = await xb('canRead', e, n);
+ if (so(r)) throw new Lb(e.uri);
+ try {
+ const { result: t } = await Sb('read', [e], r);
+ return t;
+ } catch (t) {
+ throw new Mb(`Error while reading file "${e.uri}"`, { cause: t });
+ }
+ })(n, t);
+ return (async (e, t) => {
+ const n = t.parse.parsers.map((e) => {
+ const n = Object.create(e);
+ return Object.assign(n, t.parse.parserOpts);
+ }),
+ r = await xb('canParse', e, n);
+ if (so(r)) throw new Lb(e.uri);
+ try {
+ const { plugin: t, result: n } = await Sb('parse', [e], r);
+ return !t.allowEmpty && n.isEmpty
+ ? Promise.reject(new _b(`Error while parsing file "${e.uri}". File is empty.`))
+ : n;
+ } catch (t) {
+ throw new _b(`Error while parsing file "${e.uri}"`, { cause: t });
+ }
+ })(vb($b($b({}, n), {}, { data: r })), t);
+ },
+ Ub = (e, t) => {
+ const n = hi({ predicate: e });
+ return fi(t, n), new Pt.O4(n.result);
+ };
+ class zb extends Error {
+ constructor(e) {
+ super(e),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ 'function' == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack);
+ }
+ }
+ const Vb = (e, t) => {
+ const n = hi({ predicate: e, returnOnTrue: ei });
+ return fi(t, n), bo(void 0, [0], n.result);
+ };
+ const Wb = class extends wb {};
+ class Jb extends Wb {
+ constructor(e) {
+ super(`Invalid JSON Schema $anchor "${e}".`);
+ }
+ }
+ class Kb extends Error {
+ constructor(e) {
+ super(e),
+ (this.name = this.constructor.name),
+ (this.message = e),
+ 'function' == typeof Error.captureStackTrace
+ ? Error.captureStackTrace(this, this.constructor)
+ : (this.stack = new Error(e).stack);
+ }
+ }
+ const Hb = (e) => /^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),
+ Gb = (e) => {
+ const t = sb(e);
+ return qi('#', t);
+ },
+ Zb = (e, t) => {
+ const n = ((e) => {
+ if (!Hb(e)) throw new Jb(e);
+ return e;
+ })(e),
+ r = Vb((e) => {
+ var t;
+ return Jg(e) && (null === (t = e.$anchor) || void 0 === t ? void 0 : t.toValue()) === n;
+ }, t);
+ if (qo(r)) throw new Kb(`Evaluation failed on token: "${n}"`);
+ return r;
+ },
+ Yb = (e, t) => {
+ if (void 0 === t.$ref) return;
+ const n = sb(t.$ref.toValue()),
+ r = t.meta.get('inherited$id').toValue();
+ return `${Jn((e, t) => lb(e, cb(ib(t))), e, [...r, t.$ref.toValue()])}${'#' === n ? '' : n}`;
+ },
+ Xb = (e) => {
+ if (Xb.cache.has(e)) return Xb.cache.get(e);
+ const t = Lm.refract(e);
+ return Xb.cache.set(e, t), t;
+ };
+ Xb.cache = new WeakMap();
+ const Qb = (e) => (As(e) ? Xb(e) : e),
+ ew = (e, t) => {
+ const { cache: n } = ew,
+ r = ib(e),
+ o = (e) => Jg(e) && void 0 !== e.$id;
+ if (!n.has(t)) {
+ const e = Ub(o, t);
+ n.set(t, Array.from(e));
+ }
+ const s = n.get(t).find(
+ (e) =>
+ ((e, t) => {
+ if (void 0 === t.$id) return;
+ const n = t.meta.get('inherited$id').toValue();
+ return Jn((e, t) => lb(e, cb(ib(t))), e, [...n, t.$id.toValue()]);
+ })(r, e) === r
+ );
+ if (qo(s)) throw new zb(`Evaluation failed on URI: "${e}"`);
+ let i, a;
+ return Hb(Gb(e)) ? ((i = Zb), (a = Gb(e))) : ((i = Ji), (a = Ki(e))), i(a, s);
+ };
+ function tw(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function nw(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? tw(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : tw(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ ew.cache = new WeakMap();
+ const rw = fi[Symbol.for('nodejs.util.promisify.custom')],
+ ow = Ys({
+ props: {
+ indirections: [],
+ namespace: null,
+ reference: null,
+ crawledElements: null,
+ crawlingMap: null,
+ visited: null,
+ options: null,
+ },
+ init({ reference: e, namespace: t, indirections: n = [], visited: r = new WeakSet(), options: o }) {
+ (this.indirections = n),
+ (this.namespace = t),
+ (this.reference = e),
+ (this.crawledElements = []),
+ (this.crawlingMap = {}),
+ (this.visited = r),
+ (this.options = o);
+ },
+ methods: {
+ toBaseURI(e) {
+ return lb(this.reference.uri, cb(ib(e)));
+ },
+ async toReference(e) {
+ if (this.reference.depth >= this.options.resolve.maxDepth)
+ throw new Db(
+ `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`
+ );
+ const t = this.toBaseURI(e),
+ { refSet: n } = this.reference;
+ if (n.has(t)) return n.find(xo(t, 'uri'));
+ const r = await qb(
+ ub(t),
+ nw(
+ nw({}, this.options),
+ {},
+ { parse: nw(nw({}, this.options.parse), {}, { mediaType: 'text/plain' }) }
+ )
+ ),
+ o = hb({ uri: t, value: r, depth: this.reference.depth + 1 });
+ return n.add(o), o;
+ },
+ ReferenceElement(e) {
+ var t;
+ if (!this.options.resolve.external && Ug(e)) return !1;
+ const n = null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue(),
+ r = this.toBaseURI(n);
+ Hr(r, this.crawlingMap) || (this.crawlingMap[r] = this.toReference(n)), this.crawledElements.push(e);
+ },
+ PathItemElement(e) {
+ var t;
+ if (!ms(e.$ref)) return;
+ if (!this.options.resolve.external && Bg(e)) return;
+ const n = null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue(),
+ r = this.toBaseURI(n);
+ Hr(r, this.crawlingMap) || (this.crawlingMap[r] = this.toReference(n)), this.crawledElements.push(e);
+ },
+ LinkElement(e) {
+ if ((ms(e.operationRef) || ms(e.operationId)) && (this.options.resolve.external || !Tg(e))) {
+ if (ms(e.operationRef) && ms(e.operationId))
+ throw new Error('LinkElement operationRef and operationId are mutually exclusive.');
+ if (Tg(e)) {
+ var t;
+ const n = null === (t = e.operationRef) || void 0 === t ? void 0 : t.toValue(),
+ r = this.toBaseURI(n);
+ Hr(r, this.crawlingMap) || (this.crawlingMap[r] = this.toReference(n));
+ }
+ }
+ },
+ ExampleElement(e) {
+ var t;
+ if (!ms(e.externalValue)) return;
+ if (!this.options.resolve.external && ms(e.externalValue)) return;
+ if (e.hasKey('value') && ms(e.externalValue))
+ throw new Error('ExampleElement value and externalValue fields are mutually exclusive.');
+ const n = null === (t = e.externalValue) || void 0 === t ? void 0 : t.toValue(),
+ r = this.toBaseURI(n);
+ Hr(r, this.crawlingMap) || (this.crawlingMap[r] = this.toReference(n));
+ },
+ async SchemaElement(e) {
+ if (this.visited.has(e)) return !1;
+ if (!ms(e.$ref)) return void this.visited.add(e);
+ const t = await this.toReference(ub(this.reference.uri)),
+ { uri: n } = t,
+ r = Yb(n, e),
+ o = ib(r),
+ s = vb({ uri: o }),
+ i = go((e) => e.canRead(s), this.options.resolve.resolvers),
+ a = !i,
+ l = !i && n !== o;
+ if (this.options.resolve.external || !l) {
+ if (!Hr(o, this.crawlingMap))
+ try {
+ this.crawlingMap[o] = i || a ? t : this.toReference(ub(r));
+ } catch (e) {
+ if (!(a && e instanceof zb)) throw e;
+ this.crawlingMap[o] = this.toReference(ub(r));
+ }
+ this.crawledElements.push(e);
+ } else this.visited.add(e);
+ },
+ async crawlReferenceElement(e) {
+ var t;
+ const n = await this.toReference(e.$ref.toValue());
+ this.indirections.push(e);
+ const r = Ki(null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue());
+ let o = Ji(r, n.value.result);
+ if (As(o)) {
+ const t = e.meta.get('referenced-element').toValue();
+ if (Uc(o)) (o = Tm.refract(o)), o.setMetaProperty('referenced-element', t);
+ else {
+ o = this.namespace.getElementClass(t).refract(o);
+ }
+ }
+ if (this.indirections.includes(o)) throw new Error('Recursive Reference Object detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ const s = ow({
+ reference: n,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ });
+ await rw(o, s, { keyMap: Tv, nodeTypeGetter: Iv }), await s.crawl(), this.indirections.pop();
+ },
+ async crawlPathItemElement(e) {
+ var t;
+ const n = await this.toReference(e.$ref.toValue());
+ this.indirections.push(e);
+ const r = Ki(null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue());
+ let o = Ji(r, n.value.result);
+ if ((As(o) && (o = Pm.refract(o)), this.indirections.includes(o)))
+ throw new Error('Recursive Path Item Object reference detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ const s = ow({
+ reference: n,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ });
+ await rw(o, s, { keyMap: Tv, nodeTypeGetter: Iv }), await s.crawl(), this.indirections.pop();
+ },
+ async crawlSchemaElement(e) {
+ let t = await this.toReference(ub(this.reference.uri));
+ const { uri: n } = t,
+ r = Yb(n, e),
+ o = ib(r),
+ s = vb({ uri: o }),
+ i = go((e) => e.canRead(s), this.options.resolve.resolvers),
+ a = !i;
+ let l;
+ this.indirections.push(e);
+ try {
+ if (i || a) {
+ l = ew(r, Qb(t.value.result));
+ } else {
+ t = await this.toReference(ub(r));
+ const e = Ki(r);
+ l = Qb(Ji(e, t.value.result));
+ }
+ } catch (e) {
+ if (!(a && e instanceof zb)) throw e;
+ if (Hb(Gb(r))) {
+ t = await this.toReference(ub(r));
+ const e = Gb(r);
+ l = Zb(e, Qb(t.value.result));
+ } else {
+ t = await this.toReference(ub(r));
+ const e = Ki(r);
+ l = Qb(Ji(e, t.value.result));
+ }
+ }
+ if ((this.visited.add(e), this.indirections.includes(l)))
+ throw new Error('Recursive Schema Object reference detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ const c = ow({
+ reference: t,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ visited: this.visited,
+ });
+ await rw(l, c, { keyMap: Tv, nodeTypeGetter: Iv }), await c.crawl(), this.indirections.pop();
+ },
+ async crawl() {
+ await gr(nr, Rb)(this.crawlingMap), (this.crawlingMap = null);
+ for (const e of this.crawledElements)
+ qg(e)
+ ? await this.crawlReferenceElement(e)
+ : Jg(e)
+ ? await this.crawlSchemaElement(e)
+ : Lg(e) && (await this.crawlPathItemElement(e));
+ },
+ },
+ }),
+ sw = ow,
+ iw = fi[Symbol.for('nodejs.util.promisify.custom')],
+ aw = Ys(Tb, {
+ init() {
+ this.name = 'openapi-3-1';
+ },
+ methods: {
+ canResolve(e) {
+ var t;
+ return 'text/plain' !== e.mediaType
+ ? zv.includes(e.mediaType)
+ : Mg(null === (t = e.parseResult) || void 0 === t ? void 0 : t.result);
+ },
+ async resolve(e, t) {
+ const n = zs(Rv),
+ r = hb({ uri: e.uri, value: e.parseResult }),
+ o = sw({ reference: r, namespace: n, options: t }),
+ s = db();
+ return s.add(r), await iw(s.rootRef.value, o, { keyMap: Tv, nodeTypeGetter: Iv }), await o.crawl(), s;
+ },
+ },
+ }),
+ lw = aw,
+ cw = (e) => e.replace(/\s/g, ''),
+ uw = (e) => e.replace(/\W/gi, '_'),
+ pw = (e, t, n) => {
+ const r = cw(e);
+ return r.length > 0 ? uw(r) : ((e, t) => `${uw(cw(t.toLowerCase()))}${uw(cw(e))}`)(t, n);
+ },
+ hw =
+ ({ operationIdNormalizer: e = pw } = {}) =>
+ ({ predicates: t, namespace: n }) => {
+ const r = [],
+ o = [],
+ s = [];
+ return {
+ visitor: {
+ OpenApi3_1Element: {
+ leave() {
+ const e = Jr((e) => Ti(e.operationId), o);
+ Object.entries(e).forEach(([e, t]) => {
+ Array.isArray(t) &&
+ (t.length <= 1 ||
+ t.forEach((t, r) => {
+ const o = `${e}${r + 1}`;
+ t.operationId = new n.elements.String(o);
+ }));
+ }),
+ s.forEach((e) => {
+ var t;
+ if (void 0 === e.operationId) return;
+ const n = String(Ti(e.operationId)),
+ r = o.find((e) => Ti(e.meta.get('originalOperationId')) === n);
+ void 0 !== r &&
+ ((e.operationId = null === (t = r.operationId) || void 0 === t ? void 0 : t.clone()),
+ e.meta.set('originalOperationId', n),
+ e.set('__originalOperationId', n));
+ }),
+ (o.length = 0),
+ (s.length = 0);
+ },
+ },
+ PathItemElement: {
+ enter(e) {
+ const t = kr('path', Ti(e.meta.get('path')));
+ r.push(t);
+ },
+ leave() {
+ r.pop();
+ },
+ },
+ OperationElement: {
+ enter(t) {
+ if (void 0 === t.operationId) return;
+ const s = String(Ti(t.operationId)),
+ i = ao(r),
+ a = kr('method', Ti(t.meta.get('http-method'))),
+ l = e(s, i, a);
+ s !== l &&
+ ((t.operationId = new n.elements.String(l)),
+ t.set('__originalOperationId', s),
+ t.meta.set('originalOperationId', s),
+ o.push(t));
+ },
+ },
+ LinkElement: {
+ leave(e) {
+ t.isLinkElement(e) && void 0 !== e.operationId && s.push(e);
+ },
+ },
+ },
+ };
+ },
+ fw =
+ () =>
+ ({ predicates: e }) => {
+ const t = (t, n) =>
+ !!e.isParameterElement(t) &&
+ !!e.isParameterElement(n) &&
+ !!e.isStringElement(t.name) &&
+ !!e.isStringElement(t.in) &&
+ !!e.isStringElement(n.name) &&
+ !!e.isStringElement(n.in) &&
+ Ti(t.name) === Ti(n.name) &&
+ Ti(t.in) === Ti(n.in),
+ n = [];
+ return {
+ visitor: {
+ PathItemElement: {
+ enter(t, r, o, s, i) {
+ if (i.some(e.isComponentsElement)) return;
+ const { parameters: a } = t;
+ e.isArrayElement(a) ? n.push([...a.content]) : n.push([]);
+ },
+ leave() {
+ n.pop();
+ },
+ },
+ OperationElement: {
+ leave(e) {
+ const r = ao(n);
+ if (!Array.isArray(r) || 0 === r.length) return;
+ const o = bo([], ['parameters', 'content'], e),
+ s = Lo(t, [...o, ...r]);
+ e.parameters = new ld(s);
+ },
+ },
+ },
+ };
+ },
+ dw =
+ () =>
+ ({ predicates: e }) => {
+ let t;
+ return {
+ visitor: {
+ OpenApi3_1Element: {
+ enter(n) {
+ e.isArrayElement(n.security) && (t = n.security);
+ },
+ leave() {
+ t = void 0;
+ },
+ },
+ OperationElement: {
+ leave(n, r, o, s, i) {
+ if (i.some(e.isComponentsElement)) return;
+ var a;
+ void 0 === n.security &&
+ void 0 !== t &&
+ (n.security = new yd(null === (a = t) || void 0 === a ? void 0 : a.content));
+ },
+ },
+ },
+ };
+ },
+ mw =
+ () =>
+ ({ predicates: e }) => {
+ let t;
+ const n = [];
+ return {
+ visitor: {
+ OpenApi3_1Element: {
+ enter(n) {
+ var r;
+ e.isArrayElement(n.servers) &&
+ (t = null === (r = n.servers) || void 0 === r ? void 0 : r.content);
+ },
+ leave() {
+ t = void 0;
+ },
+ },
+ PathItemElement: {
+ enter(r, o, s, i, a) {
+ if (a.some(e.isComponentsElement)) return;
+ void 0 === r.servers && void 0 !== t && (r.servers = new kd(t));
+ const { servers: l } = r;
+ void 0 !== l && e.isArrayElement(l) ? n.push([...l.content]) : n.push(void 0);
+ },
+ leave() {
+ n.pop();
+ },
+ },
+ OperationElement: {
+ enter(t) {
+ const r = ao(n);
+ void 0 !== r && (e.isArrayElement(t.servers) || (t.servers = new wd(r)));
+ },
+ },
+ },
+ };
+ },
+ gw =
+ () =>
+ ({ predicates: e }) => ({
+ visitor: {
+ ParameterElement: {
+ leave(t, n, r, o, s) {
+ var i, a;
+ if (
+ !s.some(e.isComponentsElement) &&
+ void 0 !== t.schema &&
+ e.isSchemaElement(t.schema) &&
+ (void 0 !== (null === (i = t.schema) || void 0 === i ? void 0 : i.example) ||
+ void 0 !== (null === (a = t.schema) || void 0 === a ? void 0 : a.examples))
+ ) {
+ if (void 0 !== t.examples && e.isObjectElement(t.examples)) {
+ const e = t.examples.map((e) => {
+ var t;
+ return null === (t = e.value) || void 0 === t ? void 0 : t.clone();
+ });
+ return (
+ void 0 !== t.schema.examples && t.schema.set('examples', e),
+ void (void 0 !== t.schema.example && t.schema.set('example', e))
+ );
+ }
+ void 0 !== t.example &&
+ (void 0 !== t.schema.examples && t.schema.set('examples', [t.example.clone()]),
+ void 0 !== t.schema.example && t.schema.set('example', t.example.clone()));
+ }
+ },
+ },
+ },
+ }),
+ yw =
+ () =>
+ ({ predicates: e }) => ({
+ visitor: {
+ HeaderElement: {
+ leave(t, n, r, o, s) {
+ var i, a;
+ if (
+ !s.some(e.isComponentsElement) &&
+ void 0 !== t.schema &&
+ e.isSchemaElement(t.schema) &&
+ (void 0 !== (null === (i = t.schema) || void 0 === i ? void 0 : i.example) ||
+ void 0 !== (null === (a = t.schema) || void 0 === a ? void 0 : a.examples))
+ ) {
+ if (void 0 !== t.examples && e.isObjectElement(t.examples)) {
+ const e = t.examples.map((e) => {
+ var t;
+ return null === (t = e.value) || void 0 === t ? void 0 : t.clone();
+ });
+ return (
+ void 0 !== t.schema.examples && t.schema.set('examples', e),
+ void (void 0 !== t.schema.example && t.schema.set('example', e))
+ );
+ }
+ void 0 !== t.example &&
+ (void 0 !== t.schema.examples && t.schema.set('examples', [t.example.clone()]),
+ void 0 !== t.schema.example && t.schema.set('example', t.example.clone()));
+ }
+ },
+ },
+ },
+ }),
+ vw = (e) => (t) => {
+ if (t?.$$normalized) return t;
+ if (vw.cache.has(t)) return t;
+ const n = km.refract(t),
+ r = e(n),
+ o = Ti(r);
+ return vw.cache.set(t, o), o;
+ };
+ vw.cache = new WeakMap();
+ const bw = (e) => {
+ if (!bs(e)) return e;
+ if (e.hasKey('$$normalized')) return e;
+ const t = [
+ hw({
+ operationIdNormalizer: (e, t, n) =>
+ (0, He.Z)({ operationId: e }, t, n, { v2OperationIdCompatibilityMode: !1 }),
+ }),
+ fw(),
+ dw(),
+ mw(),
+ gw(),
+ yw(),
+ ],
+ n = di(e, t, { toolboxCreator: Fv, visitorOptions: { keyMap: Tv, nodeTypeGetter: Iv } });
+ return n.set('$$normalized', !0), n;
+ },
+ ww = Ys({
+ props: { name: null },
+ methods: {
+ canRead: () => !1,
+ async read() {
+ throw new Cb();
+ },
+ },
+ }),
+ Ew = Ys(ww, {
+ props: { timeout: 5e3, redirects: 5, withCredentials: !1 },
+ init({
+ timeout: e = this.timeout,
+ redirects: t = this.redirects,
+ withCredentials: n = this.withCredentials,
+ } = {}) {
+ (this.timeout = e), (this.redirects = t), (this.withCredentials = n);
+ },
+ methods: {
+ canRead: (e) => rb(e.uri),
+ async read() {
+ throw new Cb();
+ },
+ getHttpClient() {
+ throw new Cb();
+ },
+ },
+ }).compose({
+ props: { name: 'http-swagger-client', swaggerHTTPClient: ct, swaggerHTTPClientConfig: {} },
+ init() {
+ let { swaggerHTTPClient: e = this.swaggerHTTPClient } =
+ arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
+ this.swaggerHTTPClient = e;
+ },
+ methods: {
+ getHttpClient() {
+ return this.swaggerHTTPClient;
+ },
+ async read(e) {
+ const t = this.getHttpClient(),
+ n = new AbortController(),
+ { signal: r } = n,
+ o = setTimeout(() => {
+ n.abort();
+ }, this.timeout),
+ s = this.getHttpClient().withCredentials || this.withCredentials ? 'include' : 'same-origin',
+ i = 0 === this.redirects ? 'error' : 'follow',
+ a = this.redirects > 0 ? this.redirects : void 0;
+ try {
+ return (
+ await t(
+ f()(
+ {
+ url: e.uri,
+ signal: r,
+ userFetch: async (e, t) => {
+ let n = await fetch(e, t);
+ try {
+ n.headers.delete('Content-Type');
+ } catch {
+ (n = new Response(n.body, f()(f()({}, n), {}, { headers: new Headers(n.headers) }))),
+ n.headers.delete('Content-Type');
+ }
+ return n;
+ },
+ credentials: s,
+ redirects: i,
+ follow: a,
+ },
+ this.swaggerHTTPClientConfig
+ )
+ )
+ ).text.arrayBuffer();
+ } catch (t) {
+ throw new Mb(`Error downloading "${e.uri}"`, { cause: t });
+ } finally {
+ clearTimeout(o);
+ }
+ },
+ },
+ }),
+ xw = Nb.compose({
+ props: { name: 'json-swagger-client', fileExtensions: ['.json'], mediaTypes: ['application/json'] },
+ methods: {
+ async canParse(e) {
+ const t = 0 === this.fileExtensions.length || this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ return JSON.parse(e.toString()), !0;
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new _b("json-swagger-client parser plugin doesn't support sourceMaps option");
+ const t = new zo(),
+ n = e.toString();
+ if (this.allowEmpty && '' === n.trim()) return t;
+ try {
+ const e = Ii(JSON.parse(n));
+ return e.classes.push('result'), t.push(e), t;
+ } catch (t) {
+ throw new _b(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Sw = Nb.compose({
+ props: {
+ name: 'yaml-1-2-swagger-client',
+ fileExtensions: ['.yaml', '.yml'],
+ mediaTypes: ['text/yaml', 'application/yaml'],
+ },
+ methods: {
+ async canParse(e) {
+ const t = 0 === this.fileExtensions.length || this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ return le.ZP.load(e.toString(), { schema: le.A8 }), !0;
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new _b("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");
+ const t = new zo(),
+ n = e.toString();
+ try {
+ const e = le.ZP.load(n, { schema: le.A8 });
+ if (this.allowEmpty && void 0 === e) return t;
+ const r = Ii(e);
+ return r.classes.push('result'), t.push(r), t;
+ } catch (t) {
+ throw new _b(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ _w = Nb.compose({
+ props: {
+ name: 'openapi-json-3-1-swagger-client',
+ fileExtensions: ['.json'],
+ mediaTypes: new Uv(...zv.filterByFormat('generic'), ...zv.filterByFormat('json')),
+ detectionRegExp: /"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))"/,
+ },
+ methods: {
+ async canParse(e) {
+ const t = 0 === this.fileExtensions.length || this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ const t = e.toString();
+ return JSON.parse(t), this.detectionRegExp.test(t);
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new _b("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");
+ const t = new zo(),
+ n = e.toString();
+ if (this.allowEmpty && '' === n.trim()) return t;
+ try {
+ const e = JSON.parse(n),
+ r = km.refract(e, this.refractorOpts);
+ return r.classes.push('result'), t.push(r), t;
+ } catch (t) {
+ throw new _b(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ jw = Nb.compose({
+ props: {
+ name: 'openapi-yaml-3-1-swagger-client',
+ fileExtensions: ['.yaml', '.yml'],
+ mediaTypes: new Uv(...zv.filterByFormat('generic'), ...zv.filterByFormat('yaml')),
+ detectionRegExp:
+ /(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))")/m,
+ },
+ methods: {
+ async canParse(e) {
+ const t = 0 === this.fileExtensions.length || this.fileExtensions.includes(e.extension),
+ n = this.mediaTypes.includes(e.mediaType);
+ if (!t) return !1;
+ if (n) return !0;
+ if (!n)
+ try {
+ const t = e.toString();
+ return le.ZP.load(t), this.detectionRegExp.test(t);
+ } catch (e) {
+ return !1;
+ }
+ return !1;
+ },
+ async parse(e) {
+ if (this.sourceMap)
+ throw new _b("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");
+ const t = new zo(),
+ n = e.toString();
+ try {
+ const e = le.ZP.load(n, { schema: le.A8 });
+ if (this.allowEmpty && void 0 === e) return t;
+ const r = km.refract(e, this.refractorOpts);
+ return r.classes.push('result'), t.push(r), t;
+ } catch (t) {
+ throw new _b(`Error parsing "${e.uri}"`, { cause: t });
+ }
+ },
+ },
+ }),
+ Ow = Ys({
+ props: { name: null },
+ methods: {
+ canDereference: () => !1,
+ async dereference() {
+ throw new Cb();
+ },
+ },
+ });
+ function kw(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Aw(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? kw(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : kw(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const Cw = fi[Symbol.for('nodejs.util.promisify.custom')],
+ Pw = Ys({
+ props: { indirections: null, namespace: null, reference: null, options: null, ancestors: null },
+ init({ indirections: e = [], reference: t, namespace: n, options: r, ancestors: o = [] }) {
+ (this.indirections = e),
+ (this.namespace = n),
+ (this.reference = t),
+ (this.options = r),
+ (this.ancestors = [...o]);
+ },
+ methods: {
+ toBaseURI(e) {
+ return lb(this.reference.uri, cb(ib(e)));
+ },
+ toAncestorLineage(e) {
+ const t = new WeakSet(e.filter(ds));
+ return [[...this.ancestors, t], t];
+ },
+ async toReference(e) {
+ if (this.reference.depth >= this.options.resolve.maxDepth)
+ throw new Db(
+ `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`
+ );
+ const t = this.toBaseURI(e),
+ { refSet: n } = this.reference;
+ if (n.has(t)) return n.find(xo(t, 'uri'));
+ const r = await qb(
+ ub(t),
+ Aw(
+ Aw({}, this.options),
+ {},
+ { parse: Aw(Aw({}, this.options.parse), {}, { mediaType: 'text/plain' }) }
+ )
+ ),
+ o = hb({ uri: t, value: r, depth: this.reference.depth + 1 });
+ return n.add(o), o;
+ },
+ async ReferenceElement(e, t, n, r, o) {
+ var s, i, a, l, c;
+ const [u, p] = this.toAncestorLineage([...o, n]);
+ if (u.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && Ug(e)) return !1;
+ const h = await this.toReference(null === (s = e.$ref) || void 0 === s ? void 0 : s.toValue()),
+ { uri: f } = h,
+ d = lb(f, null === (i = e.$ref) || void 0 === i ? void 0 : i.toValue());
+ this.indirections.push(e);
+ const m = Ki(d);
+ let g = Ji(m, h.value.result);
+ if (As(g)) {
+ const t = e.meta.get('referenced-element').toValue();
+ if (Uc(g)) (g = Tm.refract(g)), g.setMetaProperty('referenced-element', t);
+ else {
+ g = this.namespace.getElementClass(t).refract(g);
+ }
+ }
+ if (this.indirections.includes(g)) throw new Error('Recursive Reference Object detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ p.add(e);
+ const y = Pw({
+ reference: h,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: u,
+ });
+ (g = await Cw(g, y, { keyMap: Tv, nodeTypeGetter: Iv })),
+ p.delete(e),
+ this.indirections.pop(),
+ (g = g.clone()),
+ g.setMetaProperty('ref-fields', {
+ $ref: null === (a = e.$ref) || void 0 === a ? void 0 : a.toValue(),
+ description: null === (l = e.description) || void 0 === l ? void 0 : l.toValue(),
+ summary: null === (c = e.summary) || void 0 === c ? void 0 : c.toValue(),
+ }),
+ g.setMetaProperty('ref-origin', h.uri);
+ const v = wo(Kv, ['description'], e),
+ b = wo(Kv, ['summary'], e);
+ return (
+ v && Gr('description', g) && (g.description = e.description),
+ b && Gr('summary', g) && (g.summary = e.summary),
+ this.indirections.pop(),
+ g
+ );
+ },
+ async PathItemElement(e, t, n, r, o) {
+ var s, i, a;
+ const [l, c] = this.toAncestorLineage([...o, n]);
+ if (!ms(e.$ref)) return;
+ if (l.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && Bg(e)) return;
+ const u = await this.toReference(null === (s = e.$ref) || void 0 === s ? void 0 : s.toValue()),
+ { uri: p } = u,
+ h = lb(p, null === (i = e.$ref) || void 0 === i ? void 0 : i.toValue());
+ this.indirections.push(e);
+ const f = Ki(h);
+ let d = Ji(f, u.value.result);
+ if ((As(d) && (d = Pm.refract(d)), this.indirections.includes(d)))
+ throw new Error('Recursive Path Item Object reference detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ c.add(e);
+ const m = Pw({
+ reference: u,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: l,
+ });
+ (d = await Cw(d, m, { keyMap: Tv, nodeTypeGetter: Iv })), c.delete(e), this.indirections.pop();
+ const g = new Pm([...d.content], d.meta.clone(), d.attributes.clone());
+ return (
+ e.forEach((e, t, n) => {
+ g.remove(t.toValue()), g.content.push(n);
+ }),
+ g.remove('$ref'),
+ g.setMetaProperty('ref-fields', {
+ $ref: null === (a = e.$ref) || void 0 === a ? void 0 : a.toValue(),
+ }),
+ g.setMetaProperty('ref-origin', u.uri),
+ g
+ );
+ },
+ async LinkElement(e) {
+ if (!ms(e.operationRef) && !ms(e.operationId)) return;
+ if (!this.options.resolve.external && Tg(e)) return;
+ if (ms(e.operationRef) && ms(e.operationId))
+ throw new Error('LinkElement operationRef and operationId fields are mutually exclusive.');
+ let t;
+ if (ms(e.operationRef)) {
+ var n, r, o;
+ const s = Ki(null === (n = e.operationRef) || void 0 === n ? void 0 : n.toValue()),
+ i = await this.toReference(null === (r = e.operationRef) || void 0 === r ? void 0 : r.toValue());
+ (t = Ji(s, i.value.result)),
+ As(t) && (t = Am.refract(t)),
+ (t = new Am([...t.content], t.meta.clone(), t.attributes.clone())),
+ t.setMetaProperty('ref-origin', i.uri),
+ null === (o = e.operationRef) || void 0 === o || o.meta.set('operation', t);
+ } else if (ms(e.operationId)) {
+ var s, i;
+ const n = null === (s = e.operationId) || void 0 === s ? void 0 : s.toValue(),
+ r = await this.toReference(ub(this.reference.uri));
+ if (((t = Vb((e) => Dg(e) && e.operationId.equals(n), r.value.result)), qo(t)))
+ throw new Error(`OperationElement(operationId=${n}) not found.`);
+ null === (i = e.operationId) || void 0 === i || i.meta.set('operation', t);
+ }
+ },
+ async ExampleElement(e) {
+ var t;
+ if (!ms(e.externalValue)) return;
+ if (!this.options.resolve.external && ms(e.externalValue)) return;
+ if (e.hasKey('value') && ms(e.externalValue))
+ throw new Error('ExampleElement value and externalValue fields are mutually exclusive.');
+ const n = await this.toReference(
+ null === (t = e.externalValue) || void 0 === t ? void 0 : t.toValue()
+ ),
+ r = new n.value.result.constructor(
+ n.value.result.content,
+ n.value.result.meta.clone(),
+ n.value.result.attributes.clone()
+ );
+ r.setMetaProperty('ref-origin', n.uri), (e.value = r);
+ },
+ async SchemaElement(e, t, n, r, o) {
+ var s;
+ const [i, a] = this.toAncestorLineage([...o, n]);
+ if (!ms(e.$ref)) return;
+ if (i.some((t) => t.has(e))) return !1;
+ let l = await this.toReference(ub(this.reference.uri)),
+ { uri: c } = l;
+ const u = Yb(c, e),
+ p = ib(u),
+ h = vb({ uri: p }),
+ f = go((e) => e.canRead(h), this.options.resolve.resolvers),
+ d = !f,
+ m = d && c !== p;
+ if (!this.options.resolve.external && m) return;
+ let g;
+ this.indirections.push(e);
+ try {
+ if (f || d) {
+ g = ew(u, Qb(l.value.result));
+ } else {
+ l = await this.toReference(ub(u));
+ const e = Ki(u);
+ g = Qb(Ji(e, l.value.result));
+ }
+ } catch (e) {
+ if (!(d && e instanceof zb)) throw e;
+ if (Hb(Gb(u))) {
+ (l = await this.toReference(ub(u))), (c = l.uri);
+ const e = Gb(u);
+ g = Zb(e, Qb(l.value.result));
+ } else {
+ (l = await this.toReference(ub(u))), (c = l.uri);
+ const e = Ki(u);
+ g = Qb(Ji(e, l.value.result));
+ }
+ }
+ if (this.indirections.includes(g)) throw new Error('Recursive Schema Object reference detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ a.add(e);
+ const y = Pw({
+ reference: l,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: i,
+ });
+ if (
+ ((g = await Cw(g, y, { keyMap: Tv, nodeTypeGetter: Iv })),
+ a.delete(e),
+ this.indirections.pop(),
+ Kg(g))
+ ) {
+ var v;
+ const t = g.clone();
+ return (
+ t.setMetaProperty('ref-fields', {
+ $ref: null === (v = e.$ref) || void 0 === v ? void 0 : v.toValue(),
+ }),
+ t.setMetaProperty('ref-origin', l.uri),
+ t
+ );
+ }
+ const b = new Lm([...g.content], g.meta.clone(), g.attributes.clone());
+ return (
+ e.forEach((e, t, n) => {
+ b.remove(t.toValue()), b.content.push(n);
+ }),
+ b.remove('$ref'),
+ b.setMetaProperty('ref-fields', {
+ $ref: null === (s = e.$ref) || void 0 === s ? void 0 : s.toValue(),
+ }),
+ b.setMetaProperty('ref-origin', l.uri),
+ b
+ );
+ },
+ },
+ }),
+ Nw = Pw,
+ Iw = fi[Symbol.for('nodejs.util.promisify.custom')],
+ Tw = Ys(Ow, {
+ init() {
+ this.name = 'openapi-3-1';
+ },
+ methods: {
+ canDereference(e) {
+ var t;
+ return 'text/plain' !== e.mediaType
+ ? zv.includes(e.mediaType)
+ : Mg(null === (t = e.parseResult) || void 0 === t ? void 0 : t.result);
+ },
+ async dereference(e, t) {
+ const n = zs(Rv),
+ r = kr(db(), t.dereference.refSet);
+ let o;
+ r.has(e.uri)
+ ? (o = r.find(xo(e.uri, 'uri')))
+ : ((o = hb({ uri: e.uri, value: e.parseResult })), r.add(o));
+ const s = Nw({ reference: o, namespace: n, options: t }),
+ i = await Iw(r.rootRef.value, s, { keyMap: Tv, nodeTypeGetter: Iv });
+ return null === t.dereference.refSet && r.clean(), i;
+ },
+ },
+ }),
+ Rw = Tw,
+ Mw = (e) => {
+ const t = ((e) => e.slice(2))(e);
+ return t.reduce((e, n, r) => {
+ if (Es(n)) {
+ const t = String(n.key.toValue());
+ e.push(t);
+ } else if (ws(t[r - 2])) {
+ const o = t[r - 2].content.indexOf(n);
+ e.push(o);
+ }
+ return e;
+ }, []);
+ },
+ Dw = (e) => {
+ if (null == e.cause) return e;
+ let { cause: t } = e;
+ for (; null != t.cause; ) t = t.cause;
+ return t;
+ },
+ Fw = ue('SchemaRefError', function (e, t, n) {
+ (this.originalError = n), Object.assign(this, t || {});
+ }),
+ { wrapError: Lw } = ke,
+ Bw = fi[Symbol.for('nodejs.util.promisify.custom')],
+ $w = Nw.compose({
+ props: { useCircularStructures: !0, allowMetaPatches: !1, basePath: null },
+ init(e) {
+ let {
+ allowMetaPatches: t = this.allowMetaPatches,
+ useCircularStructures: n = this.useCircularStructures,
+ basePath: r = this.basePath,
+ } = e;
+ (this.allowMetaPatches = t), (this.useCircularStructures = n), (this.basePath = r);
+ },
+ methods: {
+ async ReferenceElement(e, t, n, r, o) {
+ try {
+ const [t, r] = this.toAncestorLineage([...o, n]);
+ if (Ns(['cycle'], e.$ref)) return !1;
+ if (t.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && Ug(e)) return !1;
+ const s = await this.toReference(e.$ref.toValue()),
+ { uri: i } = s,
+ a = lb(i, e.$ref.toValue());
+ this.indirections.push(e);
+ const l = Ki(a);
+ let c = Ji(l, s.value.result);
+ if (As(c)) {
+ const t = e.meta.get('referenced-element').toValue();
+ if (Uc(c)) (c = Tm.refract(c)), c.setMetaProperty('referenced-element', t);
+ else {
+ const e = this.namespace.getElementClass(t);
+ c = e.refract(c);
+ }
+ }
+ if (this.indirections.includes(c)) throw new Error('Recursive JSON Pointer detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ if (!this.useCircularStructures) {
+ if (t.some((e) => e.has(c))) {
+ if (rb(i) || nb(i)) {
+ const t = new Tm({ $ref: a }, e.meta.clone(), e.attributes.clone());
+ return t.get('$ref').classes.push('cycle'), t;
+ }
+ return !1;
+ }
+ }
+ r.add(e);
+ const u = $w({
+ reference: s,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: t,
+ allowMetaPatches: this.allowMetaPatches,
+ useCircularStructures: this.useCircularStructures,
+ basePath: this.basePath ?? [...Mw([...o, n, e]), '$ref'],
+ });
+ (c = await Bw(c, u, { keyMap: Tv, nodeTypeGetter: Iv })),
+ r.delete(e),
+ this.indirections.pop(),
+ (c = c.clone()),
+ c.setMetaProperty('ref-fields', {
+ $ref: e.$ref?.toValue(),
+ description: e.description?.toValue(),
+ summary: e.summary?.toValue(),
+ }),
+ c.setMetaProperty('ref-origin', s.uri);
+ const p = void 0 !== e.description,
+ h = void 0 !== e.summary;
+ if (
+ (p && 'description' in c && (c.description = e.description),
+ h && 'summary' in c && (c.summary = e.summary),
+ this.allowMetaPatches && bs(c))
+ ) {
+ const e = c;
+ if (void 0 === e.get('$$ref')) {
+ const t = lb(i, a);
+ e.set('$$ref', t);
+ }
+ }
+ return c;
+ } catch (t) {
+ const r = Dw(t),
+ s = Lw(r, {
+ baseDoc: this.reference.uri,
+ $ref: e.$ref.toValue(),
+ pointer: Ki(e.$ref.toValue()),
+ fullPath: this.basePath ?? [...Mw([...o, n, e]), '$ref'],
+ });
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(s);
+ }
+ },
+ async PathItemElement(e, t, n, r, o) {
+ try {
+ const [t, r] = this.toAncestorLineage([...o, n]);
+ if (!ms(e.$ref)) return;
+ if (Ns(['cycle'], e.$ref)) return !1;
+ if (t.some((t) => t.has(e))) return !1;
+ if (!this.options.resolve.external && Bg(e)) return;
+ const s = await this.toReference(e.$ref.toValue()),
+ { uri: i } = s,
+ a = lb(i, e.$ref.toValue());
+ this.indirections.push(e);
+ const l = Ki(a);
+ let c = Ji(l, s.value.result);
+ if ((As(c) && (c = Pm.refract(c)), this.indirections.includes(c)))
+ throw new Error('Recursive JSON Pointer detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ if (!this.useCircularStructures) {
+ if (t.some((e) => e.has(c))) {
+ if (rb(i) || nb(i)) {
+ const t = new Pm({ $ref: a }, e.meta.clone(), e.attributes.clone());
+ return t.get('$ref').classes.push('cycle'), t;
+ }
+ return !1;
+ }
+ }
+ r.add(e);
+ const u = $w({
+ reference: s,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ ancestors: t,
+ allowMetaPatches: this.allowMetaPatches,
+ useCircularStructures: this.useCircularStructures,
+ basePath: this.basePath ?? [...Mw([...o, n, e]), '$ref'],
+ });
+ (c = await Bw(c, u, { keyMap: Tv, nodeTypeGetter: Iv })), r.delete(e), this.indirections.pop();
+ const p = new Pm([...c.content], c.meta.clone(), c.attributes.clone());
+ if (
+ (e.forEach((e, t, n) => {
+ p.remove(t.toValue()), p.content.push(n);
+ }),
+ p.remove('$ref'),
+ p.setMetaProperty('ref-fields', { $ref: e.$ref?.toValue() }),
+ p.setMetaProperty('ref-origin', s.uri),
+ this.allowMetaPatches && void 0 === p.get('$$ref'))
+ ) {
+ const e = lb(i, a);
+ p.set('$$ref', e);
+ }
+ return p;
+ } catch (t) {
+ const r = Dw(t),
+ s = Lw(r, {
+ baseDoc: this.reference.uri,
+ $ref: e.$ref.toValue(),
+ pointer: Ki(e.$ref.toValue()),
+ fullPath: this.basePath ?? [...Mw([...o, n, e]), '$ref'],
+ });
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(s);
+ }
+ },
+ async SchemaElement(e, t, n, r, o) {
+ try {
+ const [t, r] = this.toAncestorLineage([...o, n]);
+ if (!ms(e.$ref)) return;
+ if (Ns(['cycle'], e.$ref)) return !1;
+ if (t.some((t) => t.has(e))) return !1;
+ let s = await this.toReference(ub(this.reference.uri)),
+ { uri: i } = s;
+ const a = Yb(i, e),
+ l = ib(a),
+ c = vb({ uri: l }),
+ u = !this.options.resolve.resolvers.some((e) => e.canRead(c)),
+ p = !u,
+ h = p && i !== l;
+ if (!this.options.resolve.external && h) return;
+ let f;
+ this.indirections.push(e);
+ try {
+ if (u || p) {
+ f = ew(a, Qb(s.value.result));
+ } else {
+ (s = await this.toReference(ub(a))), (i = s.uri);
+ const e = Ki(a);
+ f = Qb(Ji(e, s.value.result));
+ }
+ } catch (e) {
+ if (!(p && e instanceof zb)) throw e;
+ if (Hb(Gb(a))) {
+ (s = await this.toReference(ub(a))), (i = s.uri);
+ const e = Gb(a);
+ f = Zb(e, Qb(s.value.result));
+ } else {
+ (s = await this.toReference(ub(a))), (i = s.uri);
+ const e = Ki(a);
+ f = Qb(Ji(e, s.value.result));
+ }
+ }
+ if (this.indirections.includes(f)) throw new Error('Recursive Schema Object reference detected');
+ if (this.indirections.length > this.options.dereference.maxDepth)
+ throw new Fb(
+ `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`
+ );
+ if (!this.useCircularStructures) {
+ if (t.some((e) => e.has(f))) {
+ if (rb(i) || nb(i)) {
+ const t = lb(i, a),
+ n = new Lm({ $ref: t }, e.meta.clone(), e.attributes.clone());
+ return n.get('$ref').classes.push('cycle'), n;
+ }
+ return !1;
+ }
+ }
+ r.add(e);
+ const d = $w({
+ reference: s,
+ namespace: this.namespace,
+ indirections: [...this.indirections],
+ options: this.options,
+ useCircularStructures: this.useCircularStructures,
+ allowMetaPatches: this.allowMetaPatches,
+ ancestors: t,
+ basePath: this.basePath ?? [...Mw([...o, n, e]), '$ref'],
+ });
+ if (
+ ((f = await Bw(f, d, { keyMap: Tv, nodeTypeGetter: Iv })),
+ r.delete(e),
+ this.indirections.pop(),
+ Kg(f))
+ ) {
+ const t = f.clone();
+ return (
+ t.setMetaProperty('ref-fields', { $ref: e.$ref?.toValue() }),
+ t.setMetaProperty('ref-origin', i),
+ t
+ );
+ }
+ const m = new Lm([...f.content], f.meta.clone(), f.attributes.clone());
+ if (
+ (e.forEach((e, t, n) => {
+ m.remove(t.toValue()), m.content.push(n);
+ }),
+ m.remove('$ref'),
+ m.setMetaProperty('ref-fields', { $ref: e.$ref?.toValue() }),
+ m.setMetaProperty('ref-origin', i),
+ this.allowMetaPatches && void 0 === m.get('$$ref'))
+ ) {
+ const e = lb(i, a);
+ m.set('$$ref', e);
+ }
+ return m;
+ } catch (t) {
+ const r = Dw(t),
+ s = new Fw(
+ `Could not resolve reference: ${r.message}`,
+ {
+ baseDoc: this.reference.uri,
+ $ref: e.$ref.toValue(),
+ fullPath: this.basePath ?? [...Mw([...o, n, e]), '$ref'],
+ },
+ r
+ );
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(s);
+ }
+ },
+ async LinkElement() {},
+ async ExampleElement(e, t, n, r, o) {
+ try {
+ return await Nw.compose.methods.ExampleElement.call(this, e, t, n, r, o);
+ } catch (t) {
+ const r = Dw(t),
+ s = Lw(r, {
+ baseDoc: this.reference.uri,
+ externalValue: e.externalValue?.toValue(),
+ fullPath: this.basePath ?? [...Mw([...o, n, e]), 'externalValue'],
+ });
+ return void this.options.dereference.dereferenceOpts?.errors?.push?.(s);
+ }
+ },
+ },
+ }),
+ qw = $w,
+ Uw = Rw.compose.bind(),
+ zw = Uw({
+ init(e) {
+ let { parameterMacro: t, options: n } = e;
+ (this.parameterMacro = t), (this.options = n);
+ },
+ props: {
+ parameterMacro: null,
+ options: null,
+ macroOperation: null,
+ OperationElement: {
+ enter(e) {
+ this.macroOperation = e;
+ },
+ leave() {
+ this.macroOperation = null;
+ },
+ },
+ ParameterElement: {
+ leave(e, t, n, r, o) {
+ const s = null === this.macroOperation ? null : Ti(this.macroOperation),
+ i = Ti(e);
+ try {
+ const t = this.parameterMacro(s, i);
+ e.set('default', t);
+ } catch (e) {
+ const t = new Error(e, { cause: e });
+ (t.fullPath = Mw([...o, n])), this.options.dereference.dereferenceOpts?.errors?.push?.(t);
+ }
+ },
+ },
+ },
+ }),
+ Vw = Uw({
+ init(e) {
+ let { modelPropertyMacro: t, options: n } = e;
+ (this.modelPropertyMacro = t), (this.options = n);
+ },
+ props: {
+ modelPropertyMacro: null,
+ options: null,
+ SchemaElement: {
+ leave(e, t, n, r, o) {
+ void 0 !== e.properties &&
+ bs(e.properties) &&
+ e.properties.forEach((t) => {
+ if (bs(t))
+ try {
+ const e = this.modelPropertyMacro(Ti(t));
+ t.set('default', e);
+ } catch (t) {
+ const r = new Error(t, { cause: t });
+ (r.fullPath = [...Mw([...o, n, e]), 'properties']),
+ this.options.dereference.dereferenceOpts?.errors?.push?.(r);
+ }
+ });
+ },
+ },
+ },
+ });
+ function Ww(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function Jw(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? Ww(Object(n), !0).forEach(function (t) {
+ Xo(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : Ww(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ const Kw = (e) => {
+ const t = e.meta.clone(),
+ n = e.attributes.clone();
+ return new e.constructor(void 0, t, n);
+ },
+ Hw = (e) => new Pt.c6(e.key, e.value, e.meta.clone(), e.attributes.clone()),
+ Gw = (e, t) => (t.clone && t.isMergeableElement(e) ? Xw(Kw(e), e, t) : e),
+ Zw = (e, t, n) => e.concat(t)['fantasy-land/map']((e) => Gw(e, n)),
+ Yw = (e, t, n) => {
+ const r = bs(e) ? Kw(e) : Kw(t);
+ return (
+ bs(e) &&
+ e.forEach((e, t, o) => {
+ const s = Hw(o);
+ (s.value = Gw(e, n)), r.content.push(s);
+ }),
+ t.forEach((t, o, s) => {
+ const i = o.toValue();
+ let a;
+ if (bs(e) && e.hasKey(i) && n.isMergeableElement(t)) {
+ const r = e.get(i);
+ (a = Hw(s)),
+ (a.value = ((e, t) => {
+ if ('function' != typeof t.customMerge) return Xw;
+ const n = t.customMerge(e, t);
+ return 'function' == typeof n ? n : Xw;
+ })(o, n)(r, t));
+ } else (a = Hw(s)), (a.value = Gw(t, n));
+ r.remove(i), r.content.push(a);
+ }),
+ r
+ );
+ };
+ function Xw(e, t, n) {
+ var r, o, s;
+ const i = {
+ clone: !0,
+ isMergeableElement: (e) => bs(e) || ws(e),
+ arrayElementMerge: Zw,
+ objectElementMerge: Yw,
+ customMerge: void 0,
+ },
+ a = Jw(Jw({}, i), n);
+ (a.isMergeableElement = null !== (r = a.isMergeableElement) && void 0 !== r ? r : i.isMergeableElement),
+ (a.arrayElementMerge = null !== (o = a.arrayElementMerge) && void 0 !== o ? o : i.arrayElementMerge),
+ (a.objectElementMerge = null !== (s = a.objectElementMerge) && void 0 !== s ? s : i.objectElementMerge);
+ const l = ws(t);
+ return l === ws(e)
+ ? l && 'function' == typeof a.arrayElementMerge
+ ? a.arrayElementMerge(e, t, a)
+ : a.objectElementMerge(e, t, a)
+ : Gw(t, a);
+ }
+ Xw.all = (e, t) => {
+ if (!Array.isArray(e)) throw new Error('first argument should be an array');
+ return 0 === e.length ? new Pt.Sb() : e.reduce((e, n) => Xw(e, n, t), Kw(e[0]));
+ };
+ const Qw = Uw({
+ init(e) {
+ let { options: t } = e;
+ this.options = t;
+ },
+ props: {
+ options: null,
+ SchemaElement: {
+ leave(e, t, n, r, o) {
+ if (void 0 === e.allOf) return;
+ if (!ws(e.allOf)) {
+ const t = new TypeError('allOf must be an array');
+ return (
+ (t.fullPath = [...Mw([...o, n, e]), 'allOf']),
+ void this.options.dereference.dereferenceOpts?.errors?.push?.(t)
+ );
+ }
+ if (e.allOf.isEmpty)
+ return new Lm(
+ e.content.filter((e) => 'allOf' !== e.key.toValue()),
+ e.meta.clone(),
+ e.attributes.clone()
+ );
+ if (!e.allOf.content.every(Jg)) {
+ const t = new TypeError('Elements in allOf must be objects');
+ return (
+ (t.fullPath = [...Mw([...o, n, e]), 'allOf']),
+ void this.options.dereference.dereferenceOpts?.errors?.push?.(t)
+ );
+ }
+ const s = Xw.all([...e.allOf.content, e]);
+ if ((e.hasKey('$$ref') || s.remove('$$ref'), e.hasKey('example'))) {
+ s.getMember('example').value = e.get('example');
+ }
+ if (e.hasKey('examples')) {
+ s.getMember('examples').value = e.get('examples');
+ }
+ return s.remove('allOf'), s;
+ },
+ },
+ },
+ }),
+ eE = fi[Symbol.for('nodejs.util.promisify.custom')],
+ tE = Rw.compose({
+ props: {
+ useCircularStructures: !0,
+ allowMetaPatches: !1,
+ parameterMacro: null,
+ modelPropertyMacro: null,
+ mode: 'non-strict',
+ ancestors: null,
+ },
+ init() {
+ let {
+ useCircularStructures: e = this.useCircularStructures,
+ allowMetaPatches: t = this.allowMetaPatches,
+ parameterMacro: n = this.parameterMacro,
+ modelPropertyMacro: r = this.modelPropertyMacro,
+ mode: o = this.mode,
+ ancestors: s = [],
+ } = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
+ (this.name = 'openapi-3-1-swagger-client'),
+ (this.useCircularStructures = e),
+ (this.allowMetaPatches = t),
+ (this.parameterMacro = n),
+ (this.modelPropertyMacro = r),
+ (this.mode = o),
+ (this.ancestors = [...s]);
+ },
+ methods: {
+ async dereference(e, t) {
+ const n = [],
+ r = zs(Rv),
+ o = t.dereference.refSet ?? db();
+ let s;
+ o.has(e.uri)
+ ? (s = o.find((t) => t.uri === e.uri))
+ : ((s = hb({ uri: e.uri, value: e.parseResult })), o.add(s));
+ const i = qw({
+ reference: s,
+ namespace: r,
+ options: t,
+ useCircularStructures: this.useCircularStructures,
+ allowMetaPatches: this.allowMetaPatches,
+ ancestors: this.ancestors,
+ });
+ if ((n.push(i), 'function' == typeof this.parameterMacro)) {
+ const e = zw({ parameterMacro: this.parameterMacro, options: t });
+ n.push(e);
+ }
+ if ('function' == typeof this.modelPropertyMacro) {
+ const e = Vw({ modelPropertyMacro: this.modelPropertyMacro, options: t });
+ n.push(e);
+ }
+ if ('strict' !== this.mode) {
+ const e = Qw({ options: t });
+ n.push(e);
+ }
+ const a = ri(n, { nodeTypeGetter: Iv }),
+ l = await eE(o.rootRef.value, a, { keyMap: Tv, nodeTypeGetter: Iv });
+ return null === t.dereference.refSet && o.clean(), l;
+ },
+ },
+ }),
+ nE = tE,
+ rE = async (e) => {
+ const {
+ spec: t,
+ timeout: n,
+ redirects: r,
+ requestInterceptor: o,
+ responseInterceptor: s,
+ pathDiscriminator: i = [],
+ allowMetaPatches: a = !1,
+ useCircularStructures: l = !1,
+ skipNormalization: c = !1,
+ parameterMacro: u = null,
+ modelPropertyMacro: p = null,
+ mode: h = 'non-strict',
+ } = e;
+ try {
+ const { cache: d } = rE,
+ m = rb(ab()) ? ab() : 'https://smartbear.com/',
+ g = Et(e),
+ y = lb(m, g);
+ let v;
+ d.has(t) ? (v = d.get(t)) : ((v = km.refract(t)), v.classes.push('result'), d.set(t, v));
+ const b = new zo([v]),
+ w = 0 === (f = i).length ? '' : `/${f.map(Vi).join('/')}`,
+ E = '' === w ? '' : `#${w}`,
+ x = Ji(w, v),
+ S = hb({ uri: y, value: b }),
+ _ = db({ refs: [S] });
+ '' !== w && (_.rootRef = null);
+ const j = [new WeakSet([x])],
+ O = [],
+ k = ((e, t, n) => Ei({ element: n }).transclude(e, t))(
+ x,
+ await Ab(x, {
+ resolve: {
+ baseURI: `${y}${E}`,
+ resolvers: [Ew({ timeout: n || 1e4, redirects: r || 10 })],
+ resolverOpts: { swaggerHTTPClientConfig: { requestInterceptor: o, responseInterceptor: s } },
+ strategies: [lw()],
+ },
+ parse: {
+ mediaType: zv.latest(),
+ parsers: [
+ _w({ allowEmpty: !1, sourceMap: !1 }),
+ jw({ allowEmpty: !1, sourceMap: !1 }),
+ xw({ allowEmpty: !1, sourceMap: !1 }),
+ Sw({ allowEmpty: !1, sourceMap: !1 }),
+ Ib({ allowEmpty: !1, sourceMap: !1 }),
+ ],
+ },
+ dereference: {
+ maxDepth: 100,
+ strategies: [
+ nE({
+ allowMetaPatches: a,
+ useCircularStructures: l,
+ parameterMacro: u,
+ modelPropertyMacro: p,
+ mode: h,
+ ancestors: j,
+ }),
+ ],
+ refSet: _,
+ dereferenceOpts: { errors: O },
+ },
+ }),
+ v
+ ),
+ A = c ? k : bw(k);
+ return { spec: Ti(A), errors: O };
+ } catch (e) {
+ if (e instanceof Ui || e instanceof zi) return { spec: null, errors: [] };
+ throw e;
+ }
+ var f;
+ };
+ rE.cache = new WeakMap();
+ const oE = rE,
+ sE = {
+ name: 'openapi-3-1-apidom',
+ match(e) {
+ let { spec: t } = e;
+ return Ot(t);
+ },
+ normalize(e) {
+ let { spec: t } = e;
+ return vw(bw)(t);
+ },
+ resolve: async (e) => oE(e),
+ },
+ iE = (e) => async (t) =>
+ (async (e) => {
+ const { spec: t, requestInterceptor: n, responseInterceptor: r } = e,
+ o = Et(e),
+ s = xt(e),
+ i = t || (await Ze(s, { requestInterceptor: n, responseInterceptor: r })(o)),
+ a = f()(f()({}, e), {}, { spec: i });
+ return e.strategies.find((e) => e.match(a)).resolve(a);
+ })(f()(f()({}, e), t)),
+ aE = iE({ strategies: [Ct, At, _t] });
+ var lE = n(88436),
+ cE = n.n(lE),
+ uE = n(27361),
+ pE = n.n(uE),
+ hE = n(76489);
+ function fE(e) {
+ return '[object Object]' === Object.prototype.toString.call(e);
+ }
+ function dE(e) {
+ var t, n;
+ return (
+ !1 !== fE(e) &&
+ (void 0 === (t = e.constructor) ||
+ (!1 !== fE((n = t.prototype)) && !1 !== n.hasOwnProperty('isPrototypeOf')))
+ );
+ }
+ const mE = {
+ body: function (e) {
+ let { req: t, value: n } = e;
+ t.body = n;
+ },
+ header: function (e) {
+ let { req: t, parameter: n, value: r } = e;
+ (t.headers = t.headers || {}), void 0 !== r && (t.headers[n.name] = r);
+ },
+ query: function (e) {
+ let { req: t, value: n, parameter: r } = e;
+ (t.query = t.query || {}), !1 === n && 'boolean' === r.type && (n = 'false');
+ 0 === n && ['number', 'integer'].indexOf(r.type) > -1 && (n = '0');
+ if (n) t.query[r.name] = { collectionFormat: r.collectionFormat, value: n };
+ else if (r.allowEmptyValue && void 0 !== n) {
+ const e = r.name;
+ (t.query[e] = t.query[e] || {}), (t.query[e].allowEmptyValue = !0);
+ }
+ },
+ path: function (e) {
+ let { req: t, value: n, parameter: r } = e;
+ t.url = t.url.split(`{${r.name}}`).join(encodeURIComponent(n));
+ },
+ formData: function (e) {
+ let { req: t, value: n, parameter: r } = e;
+ (n || r.allowEmptyValue) &&
+ ((t.form = t.form || {}),
+ (t.form[r.name] = {
+ value: n,
+ allowEmptyValue: r.allowEmptyValue,
+ collectionFormat: r.collectionFormat,
+ }));
+ },
+ };
+ function gE(e, t) {
+ return t.includes('application/json') ? ('string' == typeof e ? e : JSON.stringify(e)) : e.toString();
+ }
+ function yE(e) {
+ let { req: t, value: n, parameter: r } = e;
+ const { name: o, style: s, explode: i, content: a } = r;
+ if (a) {
+ const e = Object.keys(a)[0];
+ return void (t.url = t.url.split(`{${o}}`).join(st(gE(n, e), { escape: !0 })));
+ }
+ const l = it({ key: r.name, value: n, style: s || 'simple', explode: i || !1, escape: !0 });
+ t.url = t.url.split(`{${o}}`).join(l);
+ }
+ function vE(e) {
+ let { req: t, value: n, parameter: r } = e;
+ if (((t.query = t.query || {}), r.content)) {
+ const e = gE(n, Object.keys(r.content)[0]);
+ if (e) t.query[r.name] = e;
+ else if (r.allowEmptyValue && void 0 !== n) {
+ const e = r.name;
+ (t.query[e] = t.query[e] || {}), (t.query[e].allowEmptyValue = !0);
+ }
+ } else if ((!1 === n && (n = 'false'), 0 === n && (n = '0'), n)) {
+ const { style: e, explode: o, allowReserved: s } = r;
+ t.query[r.name] = { value: n, serializationOption: { style: e, explode: o, allowReserved: s } };
+ } else if (r.allowEmptyValue && void 0 !== n) {
+ const e = r.name;
+ (t.query[e] = t.query[e] || {}), (t.query[e].allowEmptyValue = !0);
+ }
+ }
+ const bE = ['accept', 'authorization', 'content-type'];
+ function wE(e) {
+ let { req: t, parameter: n, value: r } = e;
+ if (((t.headers = t.headers || {}), !(bE.indexOf(n.name.toLowerCase()) > -1)))
+ if (n.content) {
+ const e = Object.keys(n.content)[0];
+ t.headers[n.name] = gE(r, e);
+ } else
+ void 0 !== r &&
+ (t.headers[n.name] = it({
+ key: n.name,
+ value: r,
+ style: n.style || 'simple',
+ explode: void 0 !== n.explode && n.explode,
+ escape: !1,
+ }));
+ }
+ function EE(e) {
+ let { req: t, parameter: n, value: r } = e;
+ t.headers = t.headers || {};
+ const o = typeof r;
+ if (n.content) {
+ const e = Object.keys(n.content)[0];
+ t.headers.Cookie = `${n.name}=${gE(r, e)}`;
+ } else if ('undefined' !== o) {
+ const e = 'object' === o && !Array.isArray(r) && n.explode ? '' : `${n.name}=`;
+ t.headers.Cookie =
+ e +
+ it({
+ key: n.name,
+ value: r,
+ escape: !1,
+ style: n.style || 'form',
+ explode: void 0 !== n.explode && n.explode,
+ });
+ }
+ }
+ const xE = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof self ? self : window,
+ { btoa: SE } = xE,
+ _E = SE;
+ function jE(e, t) {
+ const { operation: n, requestBody: r, securities: o, spec: s, attachContentTypeForEmptyPayload: i } = e;
+ let { requestContentType: a } = e;
+ t = (function (e) {
+ let { request: t, securities: n = {}, operation: r = {}, spec: o } = e;
+ const s = f()({}, t),
+ { authorized: i = {} } = n,
+ a = r.security || o.security || [],
+ l = i && !!Object.keys(i).length,
+ c = pE()(o, ['components', 'securitySchemes']) || {};
+ if (
+ ((s.headers = s.headers || {}),
+ (s.query = s.query || {}),
+ !Object.keys(n).length || !l || !a || (Array.isArray(r.security) && !r.security.length))
+ )
+ return t;
+ return (
+ a.forEach((e) => {
+ Object.keys(e).forEach((e) => {
+ const t = i[e],
+ n = c[e];
+ if (!t) return;
+ const r = t.value || t,
+ { type: o } = n;
+ if (t)
+ if ('apiKey' === o)
+ 'query' === n.in && (s.query[n.name] = r),
+ 'header' === n.in && (s.headers[n.name] = r),
+ 'cookie' === n.in && (s.cookies[n.name] = r);
+ else if ('http' === o) {
+ if (/^basic$/i.test(n.scheme)) {
+ const e = r.username || '',
+ t = r.password || '',
+ n = _E(`${e}:${t}`);
+ s.headers.Authorization = `Basic ${n}`;
+ }
+ /^bearer$/i.test(n.scheme) && (s.headers.Authorization = `Bearer ${r}`);
+ } else if ('oauth2' === o || 'openIdConnect' === o) {
+ const e = t.token || {},
+ r = e[n['x-tokenName'] || 'access_token'];
+ let o = e.token_type;
+ (o && 'bearer' !== o.toLowerCase()) || (o = 'Bearer'), (s.headers.Authorization = `${o} ${r}`);
+ }
+ });
+ }),
+ s
+ );
+ })({ request: t, securities: o, operation: n, spec: s });
+ const l = n.requestBody || {},
+ c = Object.keys(l.content || {}),
+ u = a && c.indexOf(a) > -1;
+ if (r || i) {
+ if (a && u) t.headers['Content-Type'] = a;
+ else if (!a) {
+ const e = c[0];
+ e && ((t.headers['Content-Type'] = e), (a = e));
+ }
+ } else a && u && (t.headers['Content-Type'] = a);
+ if (!e.responseContentType && n.responses) {
+ const e = Object.entries(n.responses)
+ .filter((e) => {
+ let [t, n] = e;
+ const r = parseInt(t, 10);
+ return r >= 200 && r < 300 && dE(n.content);
+ })
+ .reduce((e, t) => {
+ let [, n] = t;
+ return e.concat(Object.keys(n.content));
+ }, []);
+ e.length > 0 && (t.headers.accept = e.join(', '));
+ }
+ if (r)
+ if (a) {
+ if (c.indexOf(a) > -1)
+ if ('application/x-www-form-urlencoded' === a || 'multipart/form-data' === a)
+ if ('object' == typeof r) {
+ const e = (l.content[a] || {}).encoding || {};
+ (t.form = {}),
+ Object.keys(r).forEach((n) => {
+ t.form[n] = { value: r[n], encoding: e[n] || {} };
+ });
+ } else t.form = r;
+ else t.body = r;
+ } else t.body = r;
+ return t;
+ }
+ function OE(e, t) {
+ const {
+ spec: n,
+ operation: r,
+ securities: o,
+ requestContentType: s,
+ responseContentType: i,
+ attachContentTypeForEmptyPayload: a,
+ } = e;
+ if (
+ ((t = (function (e) {
+ let { request: t, securities: n = {}, operation: r = {}, spec: o } = e;
+ const s = f()({}, t),
+ { authorized: i = {}, specSecurity: a = [] } = n,
+ l = r.security || a,
+ c = i && !!Object.keys(i).length,
+ u = o.securityDefinitions;
+ if (
+ ((s.headers = s.headers || {}),
+ (s.query = s.query || {}),
+ !Object.keys(n).length || !c || !l || (Array.isArray(r.security) && !r.security.length))
+ )
+ return t;
+ return (
+ l.forEach((e) => {
+ Object.keys(e).forEach((e) => {
+ const t = i[e];
+ if (!t) return;
+ const { token: n } = t,
+ r = t.value || t,
+ o = u[e],
+ { type: a } = o,
+ l = o['x-tokenName'] || 'access_token',
+ c = n && n[l];
+ let p = n && n.token_type;
+ if (t)
+ if ('apiKey' === a) {
+ const e = 'query' === o.in ? 'query' : 'headers';
+ (s[e] = s[e] || {}), (s[e][o.name] = r);
+ } else if ('basic' === a)
+ if (r.header) s.headers.authorization = r.header;
+ else {
+ const e = r.username || '',
+ t = r.password || '';
+ (r.base64 = _E(`${e}:${t}`)), (s.headers.authorization = `Basic ${r.base64}`);
+ }
+ else
+ 'oauth2' === a &&
+ c &&
+ ((p = p && 'bearer' !== p.toLowerCase() ? p : 'Bearer'),
+ (s.headers.authorization = `${p} ${c}`));
+ });
+ }),
+ s
+ );
+ })({ request: t, securities: o, operation: r, spec: n })),
+ t.body || t.form || a)
+ )
+ s
+ ? (t.headers['Content-Type'] = s)
+ : Array.isArray(r.consumes)
+ ? ([t.headers['Content-Type']] = r.consumes)
+ : Array.isArray(n.consumes)
+ ? ([t.headers['Content-Type']] = n.consumes)
+ : r.parameters && r.parameters.filter((e) => 'file' === e.type).length
+ ? (t.headers['Content-Type'] = 'multipart/form-data')
+ : r.parameters &&
+ r.parameters.filter((e) => 'formData' === e.in).length &&
+ (t.headers['Content-Type'] = 'application/x-www-form-urlencoded');
+ else if (s) {
+ const e = r.parameters && r.parameters.filter((e) => 'body' === e.in).length > 0,
+ n = r.parameters && r.parameters.filter((e) => 'formData' === e.in).length > 0;
+ (e || n) && (t.headers['Content-Type'] = s);
+ }
+ return (
+ !i && Array.isArray(r.produces) && r.produces.length > 0 && (t.headers.accept = r.produces.join(', ')), t
+ );
+ }
+ function kE(e, t) {
+ return `${t.toLowerCase()}-${e}`;
+ }
+ const AE = ['http', 'fetch', 'spec', 'operationId', 'pathName', 'method', 'parameters', 'securities'],
+ CE = (e) => (Array.isArray(e) ? e : []),
+ PE = ue('OperationNotFoundError', function (e, t, n) {
+ (this.originalError = n), Object.assign(this, t || {});
+ }),
+ NE = (e, t) => t.filter((t) => t.name === e),
+ IE = (e) => {
+ const t = {};
+ e.forEach((e) => {
+ t[e.in] || (t[e.in] = {}), (t[e.in][e.name] = e);
+ });
+ const n = [];
+ return (
+ Object.keys(t).forEach((e) => {
+ Object.keys(t[e]).forEach((r) => {
+ n.push(t[e][r]);
+ });
+ }),
+ n
+ );
+ },
+ TE = { buildRequest: ME };
+ function RE(e) {
+ let {
+ http: t,
+ fetch: n,
+ spec: r,
+ operationId: o,
+ pathName: s,
+ method: i,
+ parameters: a,
+ securities: l,
+ } = e,
+ c = cE()(e, AE);
+ const u = t || n || ct;
+ s && i && !o && (o = kE(s, i));
+ const p = TE.buildRequest(f()({ spec: r, operationId: o, parameters: a, securities: l, http: u }, c));
+ return p.body && (dE(p.body) || Array.isArray(p.body)) && (p.body = JSON.stringify(p.body)), u(p);
+ }
+ function ME(e) {
+ const {
+ spec: t,
+ operationId: n,
+ responseContentType: r,
+ scheme: o,
+ requestInterceptor: s,
+ responseInterceptor: i,
+ contextUrl: a,
+ userFetch: l,
+ server: c,
+ serverVariables: p,
+ http: h,
+ signal: d,
+ } = e;
+ let { parameters: m, parameterBuilders: g } = e;
+ const y = kt(t);
+ g || (g = y ? u : mE);
+ let v = {
+ url: '',
+ credentials: h && h.withCredentials ? 'include' : 'same-origin',
+ headers: {},
+ cookies: {},
+ };
+ d && (v.signal = d),
+ s && (v.requestInterceptor = s),
+ i && (v.responseInterceptor = i),
+ l && (v.userFetch = l);
+ const b = (function (e, t) {
+ return e && e.paths
+ ? (function (e, t) {
+ return (
+ (function (e, t, n) {
+ if (!e || 'object' != typeof e || !e.paths || 'object' != typeof e.paths) return null;
+ const { paths: r } = e;
+ for (const o in r)
+ for (const s in r[o]) {
+ if ('PARAMETERS' === s.toUpperCase()) continue;
+ const i = r[o][s];
+ if (!i || 'object' != typeof i) continue;
+ const a = { spec: e, pathName: o, method: s.toUpperCase(), operation: i },
+ l = t(a);
+ if (n && l) return a;
+ }
+ })(e, t, !0) || null
+ );
+ })(e, (e) => {
+ let { pathName: n, method: r, operation: o } = e;
+ if (!o || 'object' != typeof o) return !1;
+ const s = o.operationId;
+ return [(0, He.Z)(o, n, r), kE(n, r), s].some((e) => e && e === t);
+ })
+ : null;
+ })(t, n);
+ if (!b) throw new PE(`Operation ${n} not found`);
+ const { operation: w = {}, method: E, pathName: x } = b;
+ if (
+ ((v.url += (function (e) {
+ const t = kt(e.spec);
+ return t
+ ? (function (e) {
+ let { spec: t, pathName: n, method: r, server: o, contextUrl: s, serverVariables: i = {} } = e;
+ const a =
+ pE()(t, ['paths', n, (r || '').toLowerCase(), 'servers']) ||
+ pE()(t, ['paths', n, 'servers']) ||
+ pE()(t, ['servers']);
+ let l = '',
+ c = null;
+ if (o && a && a.length) {
+ const e = a.map((e) => e.url);
+ e.indexOf(o) > -1 && ((l = o), (c = a[e.indexOf(o)]));
+ }
+ !l && a && a.length && ((l = a[0].url), ([c] = a));
+ if (l.indexOf('{') > -1) {
+ (function (e) {
+ const t = [],
+ n = /{([^}]+)}/g;
+ let r;
+ for (; (r = n.exec(e)); ) t.push(r[1]);
+ return t;
+ })(l).forEach((e) => {
+ if (c.variables && c.variables[e]) {
+ const t = c.variables[e],
+ n = i[e] || t.default,
+ r = new RegExp(`{${e}}`, 'g');
+ l = l.replace(r, n);
+ }
+ });
+ }
+ return (function () {
+ let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '',
+ t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '';
+ const n = e && t ? ce.parse(ce.resolve(t, e)) : ce.parse(e),
+ r = ce.parse(t),
+ o = DE(n.protocol) || DE(r.protocol) || '',
+ s = n.host || r.host,
+ i = n.pathname || '';
+ let a;
+ a = o && s ? `${o}://${s + i}` : i;
+ return '/' === a[a.length - 1] ? a.slice(0, -1) : a;
+ })(l, s);
+ })(e)
+ : (function (e) {
+ let { spec: t, scheme: n, contextUrl: r = '' } = e;
+ const o = ce.parse(r),
+ s = Array.isArray(t.schemes) ? t.schemes[0] : null,
+ i = n || s || DE(o.protocol) || 'http',
+ a = t.host || o.host || '',
+ l = t.basePath || '';
+ let c;
+ c = i && a ? `${i}://${a + l}` : l;
+ return '/' === c[c.length - 1] ? c.slice(0, -1) : c;
+ })(e);
+ })({ spec: t, scheme: o, contextUrl: a, server: c, serverVariables: p, pathName: x, method: E })),
+ !n)
+ )
+ return delete v.cookies, v;
+ (v.url += x), (v.method = `${E}`.toUpperCase()), (m = m || {});
+ const S = t.paths[x] || {};
+ r && (v.headers.accept = r);
+ const _ = IE([].concat(CE(w.parameters)).concat(CE(S.parameters)));
+ _.forEach((e) => {
+ const n = g[e.in];
+ let r;
+ if (
+ ('body' === e.in && e.schema && e.schema.properties && (r = m),
+ (r = e && e.name && m[e.name]),
+ void 0 === r
+ ? (r = e && e.name && m[`${e.in}.${e.name}`])
+ : NE(e.name, _).length > 1 &&
+ console.warn(
+ `Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`
+ ),
+ null !== r)
+ ) {
+ if (
+ (void 0 !== e.default && void 0 === r && (r = e.default),
+ void 0 === r && e.required && !e.allowEmptyValue)
+ )
+ throw new Error(`Required parameter ${e.name} is not provided`);
+ if (y && e.schema && 'object' === e.schema.type && 'string' == typeof r)
+ try {
+ r = JSON.parse(r);
+ } catch (e) {
+ throw new Error('Could not parse object parameter value string as JSON');
+ }
+ n && n({ req: v, parameter: e, value: r, operation: w, spec: t });
+ }
+ });
+ const j = f()(f()({}, e), {}, { operation: w });
+ if (((v = y ? jE(j, v) : OE(j, v)), v.cookies && Object.keys(v.cookies).length)) {
+ const e = Object.keys(v.cookies).reduce((e, t) => {
+ const n = v.cookies[t];
+ return e + (e ? '&' : '') + hE.serialize(t, n);
+ }, '');
+ v.headers.Cookie = e;
+ }
+ return v.cookies && delete v.cookies, wt(v), v;
+ }
+ const DE = (e) => (e ? e.replace(/\W/g, '') : null);
+ const FE = (e) =>
+ async function (t, n) {
+ let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ return (async function (e, t) {
+ let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ const {
+ returnEntireTree: r,
+ baseDoc: o,
+ requestInterceptor: s,
+ responseInterceptor: i,
+ parameterMacro: a,
+ modelPropertyMacro: l,
+ useCircularStructures: c,
+ strategies: u,
+ } = n,
+ p = {
+ spec: e,
+ pathDiscriminator: t,
+ baseDoc: o,
+ requestInterceptor: s,
+ responseInterceptor: i,
+ parameterMacro: a,
+ modelPropertyMacro: l,
+ useCircularStructures: c,
+ strategies: u,
+ },
+ h = u.find((e) => e.match(p)).normalize(p),
+ d = await aE(f()(f()({}, p), {}, { spec: h, allowMetaPatches: !0, skipNormalization: !0 }));
+ return !r && Array.isArray(t) && t.length && (d.spec = pE()(d.spec, t) || null), d;
+ })(t, n, f()(f()({}, e), r));
+ };
+ FE({ strategies: [Ct, At, _t] });
+ var LE = n(34852);
+ function BE(e) {
+ let { configs: t, getConfigs: n } = e;
+ return {
+ fn: {
+ fetch:
+ ((r = ct),
+ (o = t.preFetch),
+ (s = t.postFetch),
+ (s = s || ((e) => e)),
+ (o = o || ((e) => e)),
+ (e) => ('string' == typeof e && (e = { url: e }), lt.mergeInQueryOrForm(e), (e = o(e)), s(r(e)))),
+ buildRequest: ME,
+ execute: RE,
+ resolve: iE({ strategies: [sE, Ct, At, _t] }),
+ resolveSubtree: async function (e, t) {
+ let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ const o = n(),
+ s = {
+ modelPropertyMacro: o.modelPropertyMacro,
+ parameterMacro: o.parameterMacro,
+ requestInterceptor: o.requestInterceptor,
+ responseInterceptor: o.responseInterceptor,
+ strategies: [sE, Ct, At, _t],
+ };
+ return FE(s)(e, t, r);
+ },
+ serializeRes: pt,
+ opId: He.Z,
+ },
+ statePlugins: { configs: { wrapActions: { loaded: LE.loaded } } },
+ };
+ var r, o, s;
+ }
+ },
+ 98525: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => o });
+ var r = n(90242);
+ function o() {
+ return { fn: { shallowEqualKeys: r.be } };
+ }
+ },
+ 48347: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { getDisplayName: () => r });
+ const r = (e) => e.displayName || e.name || 'Component';
+ },
+ 73420: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { default: () => c });
+ var r = n(35627),
+ o = n.n(r),
+ s = n(90242),
+ i = n(11092),
+ a = n(48347),
+ l = n(60314);
+ const c = (e) => {
+ let { getComponents: t, getStore: n, getSystem: r } = e;
+ const c =
+ ((u = (0, i.getComponent)(r, n, t)),
+ (0, s.HP)(u, function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
+ return o()(t);
+ }));
+ var u;
+ const p = ((e) =>
+ (0, l.Z)(e, function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
+ return t;
+ }))((0, i.withMappedContainer)(r, n, c));
+ return {
+ rootInjects: { getComponent: c, makeMappedContainer: p, render: (0, i.render)(r, n, i.getComponent, t) },
+ fn: { getDisplayName: a.getDisplayName },
+ };
+ };
+ },
+ 11092: (e, t, n) => {
+ 'use strict';
+ n.r(t), n.d(t, { getComponent: () => ee, render: () => Q, withMappedContainer: () => X });
+ var r = n(23101),
+ o = n.n(r),
+ s = n(28222),
+ i = n.n(s),
+ a = n(67294),
+ l = n(73935),
+ c = n(97779),
+ u = n(61688),
+ p = n(52798);
+ let h = function (e) {
+ e();
+ };
+ const f = () => h,
+ d = Symbol.for(`react-redux-context-${a.version}`),
+ m = globalThis;
+ const g = new Proxy(
+ {},
+ new Proxy(
+ {},
+ {
+ get(e, t) {
+ const n = (function () {
+ let e = m[d];
+ return e || ((e = (0, a.createContext)(null)), (m[d] = e)), e;
+ })();
+ return (e, ...r) => Reflect[t](n, ...r);
+ },
+ }
+ )
+ );
+ let y = null;
+ var v = n(87462),
+ b = n(63366),
+ w = n(8679),
+ E = n.n(w),
+ x = n(59864);
+ const S = ['initMapStateToProps', 'initMapDispatchToProps', 'initMergeProps'];
+ function _(e, t, n, r, { areStatesEqual: o, areOwnPropsEqual: s, areStatePropsEqual: i }) {
+ let a,
+ l,
+ c,
+ u,
+ p,
+ h = !1;
+ function f(h, f) {
+ const d = !s(f, l),
+ m = !o(h, a, f, l);
+ return (
+ (a = h),
+ (l = f),
+ d && m
+ ? ((c = e(a, l)), t.dependsOnOwnProps && (u = t(r, l)), (p = n(c, u, l)), p)
+ : d
+ ? (e.dependsOnOwnProps && (c = e(a, l)), t.dependsOnOwnProps && (u = t(r, l)), (p = n(c, u, l)), p)
+ : m
+ ? (function () {
+ const t = e(a, l),
+ r = !i(t, c);
+ return (c = t), r && (p = n(c, u, l)), p;
+ })()
+ : p
+ );
+ }
+ return function (o, s) {
+ return h ? f(o, s) : ((a = o), (l = s), (c = e(a, l)), (u = t(r, l)), (p = n(c, u, l)), (h = !0), p);
+ };
+ }
+ function j(e) {
+ return function (t) {
+ const n = e(t);
+ function r() {
+ return n;
+ }
+ return (r.dependsOnOwnProps = !1), r;
+ };
+ }
+ function O(e) {
+ return e.dependsOnOwnProps ? Boolean(e.dependsOnOwnProps) : 1 !== e.length;
+ }
+ function k(e, t) {
+ return function (t, { displayName: n }) {
+ const r = function (e, t) {
+ return r.dependsOnOwnProps ? r.mapToProps(e, t) : r.mapToProps(e, void 0);
+ };
+ return (
+ (r.dependsOnOwnProps = !0),
+ (r.mapToProps = function (t, n) {
+ (r.mapToProps = e), (r.dependsOnOwnProps = O(e));
+ let o = r(t, n);
+ return 'function' == typeof o && ((r.mapToProps = o), (r.dependsOnOwnProps = O(o)), (o = r(t, n))), o;
+ }),
+ r
+ );
+ };
+ }
+ function A(e, t) {
+ return (n, r) => {
+ throw new Error(
+ `Invalid value of type ${typeof e} for ${t} argument when connecting component ${
+ r.wrappedComponentName
+ }.`
+ );
+ };
+ }
+ function C(e, t, n) {
+ return (0, v.Z)({}, n, e, t);
+ }
+ const P = { notify() {}, get: () => [] };
+ function N(e, t) {
+ let n,
+ r = P;
+ function o() {
+ i.onStateChange && i.onStateChange();
+ }
+ function s() {
+ n ||
+ ((n = t ? t.addNestedSub(o) : e.subscribe(o)),
+ (r = (function () {
+ const e = f();
+ let t = null,
+ n = null;
+ return {
+ clear() {
+ (t = null), (n = null);
+ },
+ notify() {
+ e(() => {
+ let e = t;
+ for (; e; ) e.callback(), (e = e.next);
+ });
+ },
+ get() {
+ let e = [],
+ n = t;
+ for (; n; ) e.push(n), (n = n.next);
+ return e;
+ },
+ subscribe(e) {
+ let r = !0,
+ o = (n = { callback: e, next: null, prev: n });
+ return (
+ o.prev ? (o.prev.next = o) : (t = o),
+ function () {
+ r &&
+ null !== t &&
+ ((r = !1),
+ o.next ? (o.next.prev = o.prev) : (n = o.prev),
+ o.prev ? (o.prev.next = o.next) : (t = o.next));
+ }
+ );
+ },
+ };
+ })()));
+ }
+ const i = {
+ addNestedSub: function (e) {
+ return s(), r.subscribe(e);
+ },
+ notifyNestedSubs: function () {
+ r.notify();
+ },
+ handleChangeWrapper: o,
+ isSubscribed: function () {
+ return Boolean(n);
+ },
+ trySubscribe: s,
+ tryUnsubscribe: function () {
+ n && (n(), (n = void 0), r.clear(), (r = P));
+ },
+ getListeners: () => r,
+ };
+ return i;
+ }
+ const I = !(
+ 'undefined' == typeof window ||
+ void 0 === window.document ||
+ void 0 === window.document.createElement
+ )
+ ? a.useLayoutEffect
+ : a.useEffect;
+ function T(e, t) {
+ return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t;
+ }
+ function R(e, t) {
+ if (T(e, t)) return !0;
+ if ('object' != typeof e || null === e || 'object' != typeof t || null === t) return !1;
+ const n = Object.keys(e),
+ r = Object.keys(t);
+ if (n.length !== r.length) return !1;
+ for (let r = 0; r < n.length; r++)
+ if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !T(e[n[r]], t[n[r]])) return !1;
+ return !0;
+ }
+ const M = ['reactReduxForwardedRef'];
+ let D = () => {
+ throw new Error('uSES not initialized!');
+ };
+ const F = [null, null];
+ function L(e, t, n, r, o, s) {
+ (e.current = r), (n.current = !1), o.current && ((o.current = null), s());
+ }
+ function B(e, t) {
+ return e === t;
+ }
+ const $ = function (
+ e,
+ t,
+ n,
+ {
+ pure: r,
+ areStatesEqual: o = B,
+ areOwnPropsEqual: s = R,
+ areStatePropsEqual: i = R,
+ areMergedPropsEqual: l = R,
+ forwardRef: c = !1,
+ context: u = g,
+ } = {}
+ ) {
+ const p = u,
+ h = (function (e) {
+ return e ? ('function' == typeof e ? k(e) : A(e, 'mapStateToProps')) : j(() => ({}));
+ })(e),
+ f = (function (e) {
+ return e && 'object' == typeof e
+ ? j((t) =>
+ (function (e, t) {
+ const n = {};
+ for (const r in e) {
+ const o = e[r];
+ 'function' == typeof o && (n[r] = (...e) => t(o(...e)));
+ }
+ return n;
+ })(e, t)
+ )
+ : e
+ ? 'function' == typeof e
+ ? k(e)
+ : A(e, 'mapDispatchToProps')
+ : j((e) => ({ dispatch: e }));
+ })(t),
+ d = (function (e) {
+ return e
+ ? 'function' == typeof e
+ ? (function (e) {
+ return function (t, { displayName: n, areMergedPropsEqual: r }) {
+ let o,
+ s = !1;
+ return function (t, n, i) {
+ const a = e(t, n, i);
+ return s ? r(a, o) || (o = a) : ((s = !0), (o = a)), o;
+ };
+ };
+ })(e)
+ : A(e, 'mergeProps')
+ : () => C;
+ })(n),
+ m = Boolean(e);
+ return (e) => {
+ const t = e.displayName || e.name || 'Component',
+ n = `Connect(${t})`,
+ r = {
+ shouldHandleStateChanges: m,
+ displayName: n,
+ wrappedComponentName: t,
+ WrappedComponent: e,
+ initMapStateToProps: h,
+ initMapDispatchToProps: f,
+ initMergeProps: d,
+ areStatesEqual: o,
+ areStatePropsEqual: i,
+ areOwnPropsEqual: s,
+ areMergedPropsEqual: l,
+ };
+ function u(t) {
+ const [n, o, s] = (0, a.useMemo)(() => {
+ const { reactReduxForwardedRef: e } = t,
+ n = (0, b.Z)(t, M);
+ return [t.context, e, n];
+ }, [t]),
+ i = (0, a.useMemo)(
+ () => (n && n.Consumer && (0, x.isContextConsumer)(a.createElement(n.Consumer, null)) ? n : p),
+ [n, p]
+ ),
+ l = (0, a.useContext)(i),
+ c = Boolean(t.store) && Boolean(t.store.getState) && Boolean(t.store.dispatch),
+ u = Boolean(l) && Boolean(l.store);
+ const h = c ? t.store : l.store,
+ f = u ? l.getServerState : h.getState,
+ d = (0, a.useMemo)(
+ () =>
+ (function (e, t) {
+ let { initMapStateToProps: n, initMapDispatchToProps: r, initMergeProps: o } = t,
+ s = (0, b.Z)(t, S);
+ return _(n(e, s), r(e, s), o(e, s), e, s);
+ })(h.dispatch, r),
+ [h]
+ ),
+ [g, y] = (0, a.useMemo)(() => {
+ if (!m) return F;
+ const e = N(h, c ? void 0 : l.subscription),
+ t = e.notifyNestedSubs.bind(e);
+ return [e, t];
+ }, [h, c, l]),
+ w = (0, a.useMemo)(() => (c ? l : (0, v.Z)({}, l, { subscription: g })), [c, l, g]),
+ E = (0, a.useRef)(),
+ j = (0, a.useRef)(s),
+ O = (0, a.useRef)(),
+ k = (0, a.useRef)(!1),
+ A = ((0, a.useRef)(!1), (0, a.useRef)(!1)),
+ C = (0, a.useRef)();
+ I(
+ () => (
+ (A.current = !0),
+ () => {
+ A.current = !1;
+ }
+ ),
+ []
+ );
+ const P = (0, a.useMemo)(
+ () => () => (O.current && s === j.current ? O.current : d(h.getState(), s)),
+ [h, s]
+ ),
+ T = (0, a.useMemo)(
+ () => (e) =>
+ g
+ ? (function (e, t, n, r, o, s, i, a, l, c, u) {
+ if (!e) return () => {};
+ let p = !1,
+ h = null;
+ const f = () => {
+ if (p || !a.current) return;
+ const e = t.getState();
+ let n, f;
+ try {
+ n = r(e, o.current);
+ } catch (e) {
+ (f = e), (h = e);
+ }
+ f || (h = null),
+ n === s.current
+ ? i.current || c()
+ : ((s.current = n), (l.current = n), (i.current = !0), u());
+ };
+ return (
+ (n.onStateChange = f),
+ n.trySubscribe(),
+ f(),
+ () => {
+ if (((p = !0), n.tryUnsubscribe(), (n.onStateChange = null), h)) throw h;
+ }
+ );
+ })(m, h, g, d, j, E, k, A, O, y, e)
+ : () => {},
+ [g]
+ );
+ var R, B, $;
+ let q;
+ (R = L), (B = [j, E, k, s, O, y]), I(() => R(...B), $);
+ try {
+ q = D(T, P, f ? () => d(f(), s) : P);
+ } catch (e) {
+ throw (
+ (C.current &&
+ (e.message += `\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),
+ e)
+ );
+ }
+ I(() => {
+ (C.current = void 0), (O.current = void 0), (E.current = q);
+ });
+ const U = (0, a.useMemo)(() => a.createElement(e, (0, v.Z)({}, q, { ref: o })), [o, e, q]);
+ return (0, a.useMemo)(() => (m ? a.createElement(i.Provider, { value: w }, U) : U), [i, U, w]);
+ }
+ const g = a.memo(u);
+ if (((g.WrappedComponent = e), (g.displayName = u.displayName = n), c)) {
+ const t = a.forwardRef(function (e, t) {
+ return a.createElement(g, (0, v.Z)({}, e, { reactReduxForwardedRef: t }));
+ });
+ return (t.displayName = n), (t.WrappedComponent = e), E()(t, e);
+ }
+ return E()(g, e);
+ };
+ };
+ const q = function ({
+ store: e,
+ context: t,
+ children: n,
+ serverState: r,
+ stabilityCheck: o = 'once',
+ noopCheck: s = 'once',
+ }) {
+ const i = (0, a.useMemo)(() => {
+ const t = N(e);
+ return {
+ store: e,
+ subscription: t,
+ getServerState: r ? () => r : void 0,
+ stabilityCheck: o,
+ noopCheck: s,
+ };
+ }, [e, r, o, s]),
+ l = (0, a.useMemo)(() => e.getState(), [e]);
+ I(() => {
+ const { subscription: t } = i;
+ return (
+ (t.onStateChange = t.notifyNestedSubs),
+ t.trySubscribe(),
+ l !== e.getState() && t.notifyNestedSubs(),
+ () => {
+ t.tryUnsubscribe(), (t.onStateChange = void 0);
+ }
+ );
+ }, [i, l]);
+ const c = t || g;
+ return a.createElement(c.Provider, { value: i }, n);
+ };
+ var U, z;
+ (U = p.useSyncExternalStoreWithSelector),
+ (y = U),
+ ((e) => {
+ D = e;
+ })(u.useSyncExternalStore),
+ (z = l.unstable_batchedUpdates),
+ (h = z);
+ var V = n(57557),
+ W = n.n(V),
+ J = n(6557),
+ K = n.n(J);
+ const H = (e) => (t) => {
+ const { fn: n } = e();
+ class r extends a.Component {
+ render() {
+ return a.createElement(t, o()({}, e(), this.props, this.context));
+ }
+ }
+ return (r.displayName = `WithSystem(${n.getDisplayName(t)})`), r;
+ },
+ G = (e, t) => (n) => {
+ const { fn: r } = e();
+ class s extends a.Component {
+ render() {
+ return a.createElement(q, { store: t }, a.createElement(n, o()({}, this.props, this.context)));
+ }
+ }
+ return (s.displayName = `WithRoot(${r.getDisplayName(n)})`), s;
+ },
+ Z = (e, t, n) =>
+ (0, c.qC)(
+ n ? G(e, n) : K(),
+ $((n, r) => {
+ var o;
+ const s = { ...r, ...e() },
+ i =
+ (null === (o = t.prototype) || void 0 === o ? void 0 : o.mapStateToProps) ||
+ ((e) => ({ state: e }));
+ return i(n, s);
+ }),
+ H(e)
+ )(t),
+ Y = (e, t, n, r) => {
+ for (const o in t) {
+ const s = t[o];
+ 'function' == typeof s && s(n[o], r[o], e());
+ }
+ },
+ X = (e, t, n) => (t, r) => {
+ const { fn: o } = e(),
+ s = n(t, 'root');
+ class l extends a.Component {
+ constructor(t, n) {
+ super(t, n), Y(e, r, t, {});
+ }
+ UNSAFE_componentWillReceiveProps(t) {
+ Y(e, r, t, this.props);
+ }
+ render() {
+ const e = W()(this.props, r ? i()(r) : []);
+ return a.createElement(s, e);
+ }
+ }
+ return (l.displayName = `WithMappedContainer(${o.getDisplayName(s)})`), l;
+ },
+ Q = (e, t, n, r) => (o) => {
+ const s = n(e, t, r)('App', 'root');
+ l.render(a.createElement(s, null), o);
+ },
+ ee = (e, t, n) =>
+ function (r, o) {
+ let s = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ if ('string' != typeof r)
+ throw new TypeError('Need a string, to fetch a component. Was given a ' + typeof r);
+ const i = n(r);
+ return i
+ ? o
+ ? 'root' === o
+ ? Z(e, i, t())
+ : Z(e, i)
+ : i
+ : (s.failSilently || e().log.warn('Could not find component:', r), null);
+ };
+ },
+ 33424: (e, t, n) => {
+ 'use strict';
+ n.d(t, { d3: () => D, C2: () => ee });
+ var r = n(28222),
+ o = n.n(r),
+ s = n(58118),
+ i = n.n(s),
+ a = n(63366);
+ function l(e, t) {
+ (null == t || t > e.length) && (t = e.length);
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
+ return r;
+ }
+ function c(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) ||
+ (function (e, t) {
+ if (e) {
+ if ('string' == typeof e) return l(e, t);
+ var n = Object.prototype.toString.call(e).slice(8, -1);
+ return (
+ 'Object' === n && e.constructor && (n = e.constructor.name),
+ 'Map' === n || 'Set' === n
+ ? Array.from(e)
+ : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
+ ? l(e, t)
+ : void 0
+ );
+ }
+ })(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.'
+ );
+ })()
+ );
+ }
+ var u = n(64572),
+ p = n(67294),
+ h = n(87462);
+ function f(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function d(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? f(Object(n), !0).forEach(function (t) {
+ (0, u.Z)(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : f(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ var m = {};
+ function g(e) {
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
+ n = arguments.length > 2 ? arguments[2] : void 0;
+ return (function (e) {
+ if (0 === e.length || 1 === e.length) return e;
+ var t,
+ n,
+ r = e.join('.');
+ return (
+ m[r] ||
+ (m[r] =
+ 0 === (n = (t = e).length) || 1 === n
+ ? t
+ : 2 === n
+ ? [t[0], t[1], ''.concat(t[0], '.').concat(t[1]), ''.concat(t[1], '.').concat(t[0])]
+ : 3 === n
+ ? [
+ t[0],
+ t[1],
+ t[2],
+ ''.concat(t[0], '.').concat(t[1]),
+ ''.concat(t[0], '.').concat(t[2]),
+ ''.concat(t[1], '.').concat(t[0]),
+ ''.concat(t[1], '.').concat(t[2]),
+ ''.concat(t[2], '.').concat(t[0]),
+ ''.concat(t[2], '.').concat(t[1]),
+ ''.concat(t[0], '.').concat(t[1], '.').concat(t[2]),
+ ''.concat(t[0], '.').concat(t[2], '.').concat(t[1]),
+ ''.concat(t[1], '.').concat(t[0], '.').concat(t[2]),
+ ''.concat(t[1], '.').concat(t[2], '.').concat(t[0]),
+ ''.concat(t[2], '.').concat(t[0], '.').concat(t[1]),
+ ''.concat(t[2], '.').concat(t[1], '.').concat(t[0]),
+ ]
+ : n >= 4
+ ? [
+ t[0],
+ t[1],
+ t[2],
+ t[3],
+ ''.concat(t[0], '.').concat(t[1]),
+ ''.concat(t[0], '.').concat(t[2]),
+ ''.concat(t[0], '.').concat(t[3]),
+ ''.concat(t[1], '.').concat(t[0]),
+ ''.concat(t[1], '.').concat(t[2]),
+ ''.concat(t[1], '.').concat(t[3]),
+ ''.concat(t[2], '.').concat(t[0]),
+ ''.concat(t[2], '.').concat(t[1]),
+ ''.concat(t[2], '.').concat(t[3]),
+ ''.concat(t[3], '.').concat(t[0]),
+ ''.concat(t[3], '.').concat(t[1]),
+ ''.concat(t[3], '.').concat(t[2]),
+ ''.concat(t[0], '.').concat(t[1], '.').concat(t[2]),
+ ''.concat(t[0], '.').concat(t[1], '.').concat(t[3]),
+ ''.concat(t[0], '.').concat(t[2], '.').concat(t[1]),
+ ''.concat(t[0], '.').concat(t[2], '.').concat(t[3]),
+ ''.concat(t[0], '.').concat(t[3], '.').concat(t[1]),
+ ''.concat(t[0], '.').concat(t[3], '.').concat(t[2]),
+ ''.concat(t[1], '.').concat(t[0], '.').concat(t[2]),
+ ''.concat(t[1], '.').concat(t[0], '.').concat(t[3]),
+ ''.concat(t[1], '.').concat(t[2], '.').concat(t[0]),
+ ''.concat(t[1], '.').concat(t[2], '.').concat(t[3]),
+ ''.concat(t[1], '.').concat(t[3], '.').concat(t[0]),
+ ''.concat(t[1], '.').concat(t[3], '.').concat(t[2]),
+ ''.concat(t[2], '.').concat(t[0], '.').concat(t[1]),
+ ''.concat(t[2], '.').concat(t[0], '.').concat(t[3]),
+ ''.concat(t[2], '.').concat(t[1], '.').concat(t[0]),
+ ''.concat(t[2], '.').concat(t[1], '.').concat(t[3]),
+ ''.concat(t[2], '.').concat(t[3], '.').concat(t[0]),
+ ''.concat(t[2], '.').concat(t[3], '.').concat(t[1]),
+ ''.concat(t[3], '.').concat(t[0], '.').concat(t[1]),
+ ''.concat(t[3], '.').concat(t[0], '.').concat(t[2]),
+ ''.concat(t[3], '.').concat(t[1], '.').concat(t[0]),
+ ''.concat(t[3], '.').concat(t[1], '.').concat(t[2]),
+ ''.concat(t[3], '.').concat(t[2], '.').concat(t[0]),
+ ''.concat(t[3], '.').concat(t[2], '.').concat(t[1]),
+ ''.concat(t[0], '.').concat(t[1], '.').concat(t[2], '.').concat(t[3]),
+ ''.concat(t[0], '.').concat(t[1], '.').concat(t[3], '.').concat(t[2]),
+ ''.concat(t[0], '.').concat(t[2], '.').concat(t[1], '.').concat(t[3]),
+ ''.concat(t[0], '.').concat(t[2], '.').concat(t[3], '.').concat(t[1]),
+ ''.concat(t[0], '.').concat(t[3], '.').concat(t[1], '.').concat(t[2]),
+ ''.concat(t[0], '.').concat(t[3], '.').concat(t[2], '.').concat(t[1]),
+ ''.concat(t[1], '.').concat(t[0], '.').concat(t[2], '.').concat(t[3]),
+ ''.concat(t[1], '.').concat(t[0], '.').concat(t[3], '.').concat(t[2]),
+ ''.concat(t[1], '.').concat(t[2], '.').concat(t[0], '.').concat(t[3]),
+ ''.concat(t[1], '.').concat(t[2], '.').concat(t[3], '.').concat(t[0]),
+ ''.concat(t[1], '.').concat(t[3], '.').concat(t[0], '.').concat(t[2]),
+ ''.concat(t[1], '.').concat(t[3], '.').concat(t[2], '.').concat(t[0]),
+ ''.concat(t[2], '.').concat(t[0], '.').concat(t[1], '.').concat(t[3]),
+ ''.concat(t[2], '.').concat(t[0], '.').concat(t[3], '.').concat(t[1]),
+ ''.concat(t[2], '.').concat(t[1], '.').concat(t[0], '.').concat(t[3]),
+ ''.concat(t[2], '.').concat(t[1], '.').concat(t[3], '.').concat(t[0]),
+ ''.concat(t[2], '.').concat(t[3], '.').concat(t[0], '.').concat(t[1]),
+ ''.concat(t[2], '.').concat(t[3], '.').concat(t[1], '.').concat(t[0]),
+ ''.concat(t[3], '.').concat(t[0], '.').concat(t[1], '.').concat(t[2]),
+ ''.concat(t[3], '.').concat(t[0], '.').concat(t[2], '.').concat(t[1]),
+ ''.concat(t[3], '.').concat(t[1], '.').concat(t[0], '.').concat(t[2]),
+ ''.concat(t[3], '.').concat(t[1], '.').concat(t[2], '.').concat(t[0]),
+ ''.concat(t[3], '.').concat(t[2], '.').concat(t[0], '.').concat(t[1]),
+ ''.concat(t[3], '.').concat(t[2], '.').concat(t[1], '.').concat(t[0]),
+ ]
+ : void 0),
+ m[r]
+ );
+ })(
+ e.filter(function (e) {
+ return 'token' !== e;
+ })
+ ).reduce(function (e, t) {
+ return d(d({}, e), n[t]);
+ }, t);
+ }
+ function y(e) {
+ return e.join(' ');
+ }
+ function v(e) {
+ var t = e.node,
+ n = e.stylesheet,
+ r = e.style,
+ o = void 0 === r ? {} : r,
+ s = e.useInlineStyles,
+ i = e.key,
+ a = t.properties,
+ l = t.type,
+ c = t.tagName,
+ u = t.value;
+ if ('text' === l) return u;
+ if (c) {
+ var f,
+ m = (function (e, t) {
+ var n = 0;
+ return function (r) {
+ return (
+ (n += 1),
+ r.map(function (r, o) {
+ return v({
+ node: r,
+ stylesheet: e,
+ useInlineStyles: t,
+ key: 'code-segment-'.concat(n, '-').concat(o),
+ });
+ })
+ );
+ };
+ })(n, s);
+ if (s) {
+ var b = Object.keys(n).reduce(function (e, t) {
+ return (
+ t.split('.').forEach(function (t) {
+ e.includes(t) || e.push(t);
+ }),
+ e
+ );
+ }, []),
+ w = a.className && a.className.includes('token') ? ['token'] : [],
+ E =
+ a.className &&
+ w.concat(
+ a.className.filter(function (e) {
+ return !b.includes(e);
+ })
+ );
+ f = d(
+ d({}, a),
+ {},
+ { className: y(E) || void 0, style: g(a.className, Object.assign({}, a.style, o), n) }
+ );
+ } else f = d(d({}, a), {}, { className: y(a.className) });
+ var x = m(t.children);
+ return p.createElement(c, (0, h.Z)({ key: i }, f), x);
+ }
+ }
+ const b = function (e, t) {
+ return -1 !== e.listLanguages().indexOf(t);
+ };
+ var w = [
+ 'language',
+ 'children',
+ 'style',
+ 'customStyle',
+ 'codeTagProps',
+ 'useInlineStyles',
+ 'showLineNumbers',
+ 'showInlineLineNumbers',
+ 'startingLineNumber',
+ 'lineNumberContainerStyle',
+ 'lineNumberStyle',
+ 'wrapLines',
+ 'wrapLongLines',
+ 'lineProps',
+ 'renderer',
+ 'PreTag',
+ 'CodeTag',
+ 'code',
+ 'astGenerator',
+ ];
+ function E(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t &&
+ (r = r.filter(function (t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function x(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = null != arguments[t] ? arguments[t] : {};
+ t % 2
+ ? E(Object(n), !0).forEach(function (t) {
+ (0, u.Z)(e, t, n[t]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
+ : E(Object(n)).forEach(function (t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+ }
+ var S = /\n/g;
+ function _(e) {
+ var t = e.codeString,
+ n = e.codeStyle,
+ r = e.containerStyle,
+ o = void 0 === r ? { float: 'left', paddingRight: '10px' } : r,
+ s = e.numberStyle,
+ i = void 0 === s ? {} : s,
+ a = e.startingLineNumber;
+ return p.createElement(
+ 'code',
+ { style: Object.assign({}, n, o) },
+ (function (e) {
+ var t = e.lines,
+ n = e.startingLineNumber,
+ r = e.style;
+ return t.map(function (e, t) {
+ var o = t + n;
+ return p.createElement(
+ 'span',
+ {
+ key: 'line-'.concat(t),
+ className: 'react-syntax-highlighter-line-number',
+ style: 'function' == typeof r ? r(o) : r,
+ },
+ ''.concat(o, '\n')
+ );
+ });
+ })({ lines: t.replace(/\n$/, '').split('\n'), style: i, startingLineNumber: a })
+ );
+ }
+ function j(e, t) {
+ return {
+ type: 'element',
+ tagName: 'span',
+ properties: {
+ key: 'line-number--'.concat(e),
+ className: ['comment', 'linenumber', 'react-syntax-highlighter-line-number'],
+ style: t,
+ },
+ children: [{ type: 'text', value: e }],
+ };
+ }
+ function O(e, t, n) {
+ var r,
+ o = {
+ display: 'inline-block',
+ minWidth: ((r = n), ''.concat(r.toString().length, '.25em')),
+ paddingRight: '1em',
+ textAlign: 'right',
+ userSelect: 'none',
+ },
+ s = 'function' == typeof e ? e(t) : e;
+ return x(x({}, o), s);
+ }
+ function k(e) {
+ var t = e.children,
+ n = e.lineNumber,
+ r = e.lineNumberStyle,
+ o = e.largestLineNumber,
+ s = e.showInlineLineNumbers,
+ i = e.lineProps,
+ a = void 0 === i ? {} : i,
+ l = e.className,
+ c = void 0 === l ? [] : l,
+ u = e.showLineNumbers,
+ p = e.wrapLongLines,
+ h = 'function' == typeof a ? a(n) : a;
+ if (((h.className = c), n && s)) {
+ var f = O(r, n, o);
+ t.unshift(j(n, f));
+ }
+ return (
+ p & u && (h.style = x(x({}, h.style), {}, { display: 'flex' })),
+ { type: 'element', tagName: 'span', properties: h, children: t }
+ );
+ }
+ function A(e) {
+ for (
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
+ n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [],
+ r = 0;
+ r < e.length;
+ r++
+ ) {
+ var o = e[r];
+ if ('text' === o.type) n.push(k({ children: [o], className: c(new Set(t)) }));
+ else if (o.children) {
+ var s = t.concat(o.properties.className);
+ A(o.children, s).forEach(function (e) {
+ return n.push(e);
+ });
+ }
+ }
+ return n;
+ }
+ function C(e, t, n, r, o, s, i, a, l) {
+ var c,
+ u = A(e.value),
+ p = [],
+ h = -1,
+ f = 0;
+ function d(e, s) {
+ var c = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [];
+ return t || c.length > 0
+ ? (function (e, t) {
+ return k({
+ children: e,
+ lineNumber: t,
+ lineNumberStyle: a,
+ largestLineNumber: i,
+ showInlineLineNumbers: o,
+ lineProps: n,
+ className: arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [],
+ showLineNumbers: r,
+ wrapLongLines: l,
+ });
+ })(e, s, c)
+ : (function (e, t) {
+ if (r && t && o) {
+ var n = O(a, t, i);
+ e.unshift(j(t, n));
+ }
+ return e;
+ })(e, s);
+ }
+ for (
+ var m = function () {
+ var e = u[f],
+ t = e.children[0].value;
+ if (t.match(S)) {
+ var n = t.split('\n');
+ n.forEach(function (t, o) {
+ var i = r && p.length + s,
+ a = { type: 'text', value: ''.concat(t, '\n') };
+ if (0 === o) {
+ var l = d(u.slice(h + 1, f).concat(k({ children: [a], className: e.properties.className })), i);
+ p.push(l);
+ } else if (o === n.length - 1) {
+ var c = u[f + 1] && u[f + 1].children && u[f + 1].children[0],
+ m = { type: 'text', value: ''.concat(t) };
+ if (c) {
+ var g = k({ children: [m], className: e.properties.className });
+ u.splice(f + 1, 0, g);
+ } else {
+ var y = d([m], i, e.properties.className);
+ p.push(y);
+ }
+ } else {
+ var v = d([a], i, e.properties.className);
+ p.push(v);
+ }
+ }),
+ (h = f);
+ }
+ f++;
+ };
+ f < u.length;
+
+ )
+ m();
+ if (h !== u.length - 1) {
+ var g = u.slice(h + 1, u.length);
+ if (g && g.length) {
+ var y = d(g, r && p.length + s);
+ p.push(y);
+ }
+ }
+ return t ? p : (c = []).concat.apply(c, p);
+ }
+ function P(e) {
+ var t = e.rows,
+ n = e.stylesheet,
+ r = e.useInlineStyles;
+ return t.map(function (e, t) {
+ return v({ node: e, stylesheet: n, useInlineStyles: r, key: 'code-segement'.concat(t) });
+ });
+ }
+ function N(e) {
+ return e && void 0 !== e.highlightAuto;
+ }
+ var I,
+ T,
+ R = n(96470),
+ M =
+ ((I = R),
+ (T = {}),
+ function (e) {
+ var t = e.language,
+ n = e.children,
+ r = e.style,
+ o = void 0 === r ? T : r,
+ s = e.customStyle,
+ i = void 0 === s ? {} : s,
+ l = e.codeTagProps,
+ c =
+ void 0 === l
+ ? {
+ className: t ? 'language-'.concat(t) : void 0,
+ style: x(x({}, o['code[class*="language-"]']), o['code[class*="language-'.concat(t, '"]')]),
+ }
+ : l,
+ u = e.useInlineStyles,
+ h = void 0 === u || u,
+ f = e.showLineNumbers,
+ d = void 0 !== f && f,
+ m = e.showInlineLineNumbers,
+ g = void 0 === m || m,
+ y = e.startingLineNumber,
+ v = void 0 === y ? 1 : y,
+ E = e.lineNumberContainerStyle,
+ S = e.lineNumberStyle,
+ j = void 0 === S ? {} : S,
+ O = e.wrapLines,
+ k = e.wrapLongLines,
+ A = void 0 !== k && k,
+ R = e.lineProps,
+ M = void 0 === R ? {} : R,
+ D = e.renderer,
+ F = e.PreTag,
+ L = void 0 === F ? 'pre' : F,
+ B = e.CodeTag,
+ $ = void 0 === B ? 'code' : B,
+ q = e.code,
+ U = void 0 === q ? (Array.isArray(n) ? n[0] : n) || '' : q,
+ z = e.astGenerator,
+ V = (function (e, t) {
+ if (null == e) return {};
+ var n,
+ r,
+ o = (0, a.Z)(e, t);
+ if (Object.getOwnPropertySymbols) {
+ var s = Object.getOwnPropertySymbols(e);
+ for (r = 0; r < s.length; r++)
+ (n = s[r]),
+ t.indexOf(n) >= 0 || (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]));
+ }
+ return o;
+ })(e, w);
+ z = z || I;
+ var W = d
+ ? p.createElement(_, {
+ containerStyle: E,
+ codeStyle: c.style || {},
+ numberStyle: j,
+ startingLineNumber: v,
+ codeString: U,
+ })
+ : null,
+ J = o.hljs || o['pre[class*="language-"]'] || { backgroundColor: '#fff' },
+ K = N(z) ? 'hljs' : 'prismjs',
+ H = h
+ ? Object.assign({}, V, { style: Object.assign({}, J, i) })
+ : Object.assign({}, V, {
+ className: V.className ? ''.concat(K, ' ').concat(V.className) : K,
+ style: Object.assign({}, i),
+ });
+ if (((c.style = x(x({}, c.style), {}, A ? { whiteSpace: 'pre-wrap' } : { whiteSpace: 'pre' })), !z))
+ return p.createElement(L, H, W, p.createElement($, c, U));
+ ((void 0 === O && D) || A) && (O = !0), (D = D || P);
+ var G = [{ type: 'text', value: U }],
+ Z = (function (e) {
+ var t = e.astGenerator,
+ n = e.language,
+ r = e.code,
+ o = e.defaultCodeValue;
+ if (N(t)) {
+ var s = b(t, n);
+ return 'text' === n ? { value: o, language: 'text' } : s ? t.highlight(n, r) : t.highlightAuto(r);
+ }
+ try {
+ return n && 'text' !== n ? { value: t.highlight(r, n) } : { value: o };
+ } catch (e) {
+ return { value: o };
+ }
+ })({ astGenerator: z, language: t, code: U, defaultCodeValue: G });
+ null === Z.language && (Z.value = G);
+ var Y = C(Z, O, M, d, g, v, Z.value.length + v, j, A);
+ return p.createElement(
+ L,
+ H,
+ p.createElement($, c, !g && W, D({ rows: Y, stylesheet: o, useInlineStyles: h }))
+ );
+ });
+ M.registerLanguage = R.registerLanguage;
+ const D = M;
+ var F = n(96344);
+ const L = n.n(F)();
+ var B = n(82026);
+ const $ = n.n(B)();
+ var q = n(42157);
+ const U = n.n(q)();
+ var z = n(61519);
+ const V = n.n(z)();
+ var W = n(54587);
+ const J = n.n(W)();
+ var K = n(30786);
+ const H = n.n(K)();
+ var G = n(66336);
+ const Z = n.n(G)(),
+ Y = {
+ hljs: { display: 'block', overflowX: 'auto', padding: '0.5em', background: '#333', color: 'white' },
+ 'hljs-name': { fontWeight: 'bold' },
+ 'hljs-strong': { fontWeight: 'bold' },
+ 'hljs-code': { fontStyle: 'italic', color: '#888' },
+ 'hljs-emphasis': { fontStyle: 'italic' },
+ 'hljs-tag': { color: '#62c8f3' },
+ 'hljs-variable': { color: '#ade5fc' },
+ 'hljs-template-variable': { color: '#ade5fc' },
+ 'hljs-selector-id': { color: '#ade5fc' },
+ 'hljs-selector-class': { color: '#ade5fc' },
+ 'hljs-string': { color: '#a2fca2' },
+ 'hljs-bullet': { color: '#d36363' },
+ 'hljs-type': { color: '#ffa' },
+ 'hljs-title': { color: '#ffa' },
+ 'hljs-section': { color: '#ffa' },
+ 'hljs-attribute': { color: '#ffa' },
+ 'hljs-quote': { color: '#ffa' },
+ 'hljs-built_in': { color: '#ffa' },
+ 'hljs-builtin-name': { color: '#ffa' },
+ 'hljs-number': { color: '#d36363' },
+ 'hljs-symbol': { color: '#d36363' },
+ 'hljs-keyword': { color: '#fcc28c' },
+ 'hljs-selector-tag': { color: '#fcc28c' },
+ 'hljs-literal': { color: '#fcc28c' },
+ 'hljs-comment': { color: '#888' },
+ 'hljs-deletion': { color: '#333', backgroundColor: '#fc9b9b' },
+ 'hljs-regexp': { color: '#c6b4f0' },
+ 'hljs-link': { color: '#c6b4f0' },
+ 'hljs-meta': { color: '#fc9b9b' },
+ 'hljs-addition': { backgroundColor: '#a2fca2', color: '#333' },
+ };
+ D.registerLanguage('json', $),
+ D.registerLanguage('js', L),
+ D.registerLanguage('xml', U),
+ D.registerLanguage('yaml', J),
+ D.registerLanguage('http', H),
+ D.registerLanguage('bash', V),
+ D.registerLanguage('powershell', Z),
+ D.registerLanguage('javascript', L);
+ const X = {
+ agate: Y,
+ arta: {
+ hljs: { display: 'block', overflowX: 'auto', padding: '0.5em', background: '#222', color: '#aaa' },
+ 'hljs-subst': { color: '#aaa' },
+ 'hljs-section': { color: '#fff', fontWeight: 'bold' },
+ 'hljs-comment': { color: '#444' },
+ 'hljs-quote': { color: '#444' },
+ 'hljs-meta': { color: '#444' },
+ 'hljs-string': { color: '#ffcc33' },
+ 'hljs-symbol': { color: '#ffcc33' },
+ 'hljs-bullet': { color: '#ffcc33' },
+ 'hljs-regexp': { color: '#ffcc33' },
+ 'hljs-number': { color: '#00cc66' },
+ 'hljs-addition': { color: '#00cc66' },
+ 'hljs-built_in': { color: '#32aaee' },
+ 'hljs-builtin-name': { color: '#32aaee' },
+ 'hljs-literal': { color: '#32aaee' },
+ 'hljs-type': { color: '#32aaee' },
+ 'hljs-template-variable': { color: '#32aaee' },
+ 'hljs-attribute': { color: '#32aaee' },
+ 'hljs-link': { color: '#32aaee' },
+ 'hljs-keyword': { color: '#6644aa' },
+ 'hljs-selector-tag': { color: '#6644aa' },
+ 'hljs-name': { color: '#6644aa' },
+ 'hljs-selector-id': { color: '#6644aa' },
+ 'hljs-selector-class': { color: '#6644aa' },
+ 'hljs-title': { color: '#bb1166' },
+ 'hljs-variable': { color: '#bb1166' },
+ 'hljs-deletion': { color: '#bb1166' },
+ 'hljs-template-tag': { color: '#bb1166' },
+ 'hljs-doctag': { fontWeight: 'bold' },
+ 'hljs-strong': { fontWeight: 'bold' },
+ 'hljs-emphasis': { fontStyle: 'italic' },
+ },
+ monokai: {
+ hljs: { display: 'block', overflowX: 'auto', padding: '0.5em', background: '#272822', color: '#ddd' },
+ 'hljs-tag': { color: '#f92672' },
+ 'hljs-keyword': { color: '#f92672', fontWeight: 'bold' },
+ 'hljs-selector-tag': { color: '#f92672', fontWeight: 'bold' },
+ 'hljs-literal': { color: '#f92672', fontWeight: 'bold' },
+ 'hljs-strong': { color: '#f92672' },
+ 'hljs-name': { color: '#f92672' },
+ 'hljs-code': { color: '#66d9ef' },
+ 'hljs-class .hljs-title': { color: 'white' },
+ 'hljs-attribute': { color: '#bf79db' },
+ 'hljs-symbol': { color: '#bf79db' },
+ 'hljs-regexp': { color: '#bf79db' },
+ 'hljs-link': { color: '#bf79db' },
+ 'hljs-string': { color: '#a6e22e' },
+ 'hljs-bullet': { color: '#a6e22e' },
+ 'hljs-subst': { color: '#a6e22e' },
+ 'hljs-title': { color: '#a6e22e', fontWeight: 'bold' },
+ 'hljs-section': { color: '#a6e22e', fontWeight: 'bold' },
+ 'hljs-emphasis': { color: '#a6e22e' },
+ 'hljs-type': { color: '#a6e22e', fontWeight: 'bold' },
+ 'hljs-built_in': { color: '#a6e22e' },
+ 'hljs-builtin-name': { color: '#a6e22e' },
+ 'hljs-selector-attr': { color: '#a6e22e' },
+ 'hljs-selector-pseudo': { color: '#a6e22e' },
+ 'hljs-addition': { color: '#a6e22e' },
+ 'hljs-variable': { color: '#a6e22e' },
+ 'hljs-template-tag': { color: '#a6e22e' },
+ 'hljs-template-variable': { color: '#a6e22e' },
+ 'hljs-comment': { color: '#75715e' },
+ 'hljs-quote': { color: '#75715e' },
+ 'hljs-deletion': { color: '#75715e' },
+ 'hljs-meta': { color: '#75715e' },
+ 'hljs-doctag': { fontWeight: 'bold' },
+ 'hljs-selector-id': { fontWeight: 'bold' },
+ },
+ nord: {
+ hljs: {
+ display: 'block',
+ overflowX: 'auto',
+ padding: '0.5em',
+ background: '#2E3440',
+ color: '#D8DEE9',
+ },
+ 'hljs-subst': { color: '#D8DEE9' },
+ 'hljs-selector-tag': { color: '#81A1C1' },
+ 'hljs-selector-id': { color: '#8FBCBB', fontWeight: 'bold' },
+ 'hljs-selector-class': { color: '#8FBCBB' },
+ 'hljs-selector-attr': { color: '#8FBCBB' },
+ 'hljs-selector-pseudo': { color: '#88C0D0' },
+ 'hljs-addition': { backgroundColor: 'rgba(163, 190, 140, 0.5)' },
+ 'hljs-deletion': { backgroundColor: 'rgba(191, 97, 106, 0.5)' },
+ 'hljs-built_in': { color: '#8FBCBB' },
+ 'hljs-type': { color: '#8FBCBB' },
+ 'hljs-class': { color: '#8FBCBB' },
+ 'hljs-function': { color: '#88C0D0' },
+ 'hljs-function > .hljs-title': { color: '#88C0D0' },
+ 'hljs-keyword': { color: '#81A1C1' },
+ 'hljs-literal': { color: '#81A1C1' },
+ 'hljs-symbol': { color: '#81A1C1' },
+ 'hljs-number': { color: '#B48EAD' },
+ 'hljs-regexp': { color: '#EBCB8B' },
+ 'hljs-string': { color: '#A3BE8C' },
+ 'hljs-title': { color: '#8FBCBB' },
+ 'hljs-params': { color: '#D8DEE9' },
+ 'hljs-bullet': { color: '#81A1C1' },
+ 'hljs-code': { color: '#8FBCBB' },
+ 'hljs-emphasis': { fontStyle: 'italic' },
+ 'hljs-formula': { color: '#8FBCBB' },
+ 'hljs-strong': { fontWeight: 'bold' },
+ 'hljs-link:hover': { textDecoration: 'underline' },
+ 'hljs-quote': { color: '#4C566A' },
+ 'hljs-comment': { color: '#4C566A' },
+ 'hljs-doctag': { color: '#8FBCBB' },
+ 'hljs-meta': { color: '#5E81AC' },
+ 'hljs-meta-keyword': { color: '#5E81AC' },
+ 'hljs-meta-string': { color: '#A3BE8C' },
+ 'hljs-attr': { color: '#8FBCBB' },
+ 'hljs-attribute': { color: '#D8DEE9' },
+ 'hljs-builtin-name': { color: '#81A1C1' },
+ 'hljs-name': { color: '#81A1C1' },
+ 'hljs-section': { color: '#88C0D0' },
+ 'hljs-tag': { color: '#81A1C1' },
+ 'hljs-variable': { color: '#D8DEE9' },
+ 'hljs-template-variable': { color: '#D8DEE9' },
+ 'hljs-template-tag': { color: '#5E81AC' },
+ 'abnf .hljs-attribute': { color: '#88C0D0' },
+ 'abnf .hljs-symbol': { color: '#EBCB8B' },
+ 'apache .hljs-attribute': { color: '#88C0D0' },
+ 'apache .hljs-section': { color: '#81A1C1' },
+ 'arduino .hljs-built_in': { color: '#88C0D0' },
+ 'aspectj .hljs-meta': { color: '#D08770' },
+ 'aspectj > .hljs-title': { color: '#88C0D0' },
+ 'bnf .hljs-attribute': { color: '#8FBCBB' },
+ 'clojure .hljs-name': { color: '#88C0D0' },
+ 'clojure .hljs-symbol': { color: '#EBCB8B' },
+ 'coq .hljs-built_in': { color: '#88C0D0' },
+ 'cpp .hljs-meta-string': { color: '#8FBCBB' },
+ 'css .hljs-built_in': { color: '#88C0D0' },
+ 'css .hljs-keyword': { color: '#D08770' },
+ 'diff .hljs-meta': { color: '#8FBCBB' },
+ 'ebnf .hljs-attribute': { color: '#8FBCBB' },
+ 'glsl .hljs-built_in': { color: '#88C0D0' },
+ 'groovy .hljs-meta:not(:first-child)': { color: '#D08770' },
+ 'haxe .hljs-meta': { color: '#D08770' },
+ 'java .hljs-meta': { color: '#D08770' },
+ 'ldif .hljs-attribute': { color: '#8FBCBB' },
+ 'lisp .hljs-name': { color: '#88C0D0' },
+ 'lua .hljs-built_in': { color: '#88C0D0' },
+ 'moonscript .hljs-built_in': { color: '#88C0D0' },
+ 'nginx .hljs-attribute': { color: '#88C0D0' },
+ 'nginx .hljs-section': { color: '#5E81AC' },
+ 'pf .hljs-built_in': { color: '#88C0D0' },
+ 'processing .hljs-built_in': { color: '#88C0D0' },
+ 'scss .hljs-keyword': { color: '#81A1C1' },
+ 'stylus .hljs-keyword': { color: '#81A1C1' },
+ 'swift .hljs-meta': { color: '#D08770' },
+ 'vim .hljs-built_in': { color: '#88C0D0', fontStyle: 'italic' },
+ 'yaml .hljs-meta': { color: '#D08770' },
+ },
+ obsidian: {
+ hljs: {
+ display: 'block',
+ overflowX: 'auto',
+ padding: '0.5em',
+ background: '#282b2e',
+ color: '#e0e2e4',
+ },
+ 'hljs-keyword': { color: '#93c763', fontWeight: 'bold' },
+ 'hljs-selector-tag': { color: '#93c763', fontWeight: 'bold' },
+ 'hljs-literal': { color: '#93c763', fontWeight: 'bold' },
+ 'hljs-selector-id': { color: '#93c763' },
+ 'hljs-number': { color: '#ffcd22' },
+ 'hljs-attribute': { color: '#668bb0' },
+ 'hljs-code': { color: 'white' },
+ 'hljs-class .hljs-title': { color: 'white' },
+ 'hljs-section': { color: 'white', fontWeight: 'bold' },
+ 'hljs-regexp': { color: '#d39745' },
+ 'hljs-link': { color: '#d39745' },
+ 'hljs-meta': { color: '#557182' },
+ 'hljs-tag': { color: '#8cbbad' },
+ 'hljs-name': { color: '#8cbbad', fontWeight: 'bold' },
+ 'hljs-bullet': { color: '#8cbbad' },
+ 'hljs-subst': { color: '#8cbbad' },
+ 'hljs-emphasis': { color: '#8cbbad' },
+ 'hljs-type': { color: '#8cbbad', fontWeight: 'bold' },
+ 'hljs-built_in': { color: '#8cbbad' },
+ 'hljs-selector-attr': { color: '#8cbbad' },
+ 'hljs-selector-pseudo': { color: '#8cbbad' },
+ 'hljs-addition': { color: '#8cbbad' },
+ 'hljs-variable': { color: '#8cbbad' },
+ 'hljs-template-tag': { color: '#8cbbad' },
+ 'hljs-template-variable': { color: '#8cbbad' },
+ 'hljs-string': { color: '#ec7600' },
+ 'hljs-symbol': { color: '#ec7600' },
+ 'hljs-comment': { color: '#818e96' },
+ 'hljs-quote': { color: '#818e96' },
+ 'hljs-deletion': { color: '#818e96' },
+ 'hljs-selector-class': { color: '#A082BD' },
+ 'hljs-doctag': { fontWeight: 'bold' },
+ 'hljs-title': { fontWeight: 'bold' },
+ 'hljs-strong': { fontWeight: 'bold' },
+ },
+ 'tomorrow-night': {
+ 'hljs-comment': { color: '#969896' },
+ 'hljs-quote': { color: '#969896' },
+ 'hljs-variable': { color: '#cc6666' },
+ 'hljs-template-variable': { color: '#cc6666' },
+ 'hljs-tag': { color: '#cc6666' },
+ 'hljs-name': { color: '#cc6666' },
+ 'hljs-selector-id': { color: '#cc6666' },
+ 'hljs-selector-class': { color: '#cc6666' },
+ 'hljs-regexp': { color: '#cc6666' },
+ 'hljs-deletion': { color: '#cc6666' },
+ 'hljs-number': { color: '#de935f' },
+ 'hljs-built_in': { color: '#de935f' },
+ 'hljs-builtin-name': { color: '#de935f' },
+ 'hljs-literal': { color: '#de935f' },
+ 'hljs-type': { color: '#de935f' },
+ 'hljs-params': { color: '#de935f' },
+ 'hljs-meta': { color: '#de935f' },
+ 'hljs-link': { color: '#de935f' },
+ 'hljs-attribute': { color: '#f0c674' },
+ 'hljs-string': { color: '#b5bd68' },
+ 'hljs-symbol': { color: '#b5bd68' },
+ 'hljs-bullet': { color: '#b5bd68' },
+ 'hljs-addition': { color: '#b5bd68' },
+ 'hljs-title': { color: '#81a2be' },
+ 'hljs-section': { color: '#81a2be' },
+ 'hljs-keyword': { color: '#b294bb' },
+ 'hljs-selector-tag': { color: '#b294bb' },
+ hljs: {
+ display: 'block',
+ overflowX: 'auto',
+ background: '#1d1f21',
+ color: '#c5c8c6',
+ padding: '0.5em',
+ },
+ 'hljs-emphasis': { fontStyle: 'italic' },
+ 'hljs-strong': { fontWeight: 'bold' },
+ },
+ },
+ Q = o()(X),
+ ee = (e) =>
+ i()(Q).call(Q, e)
+ ? X[e]
+ : (console.warn(`Request style '${e}' is not available, returning default instead`), Y);
+ },
+ 90242: (e, t, n) => {
+ 'use strict';
+ n.d(t, {
+ AF: () => ae,
+ Ay: () => fe,
+ D$: () => De,
+ DR: () => ve,
+ GZ: () => je,
+ HP: () => he,
+ Ik: () => Ee,
+ J6: () => Ne,
+ Kn: () => ce,
+ LQ: () => le,
+ Nm: () => ke,
+ O2: () => Ue,
+ Pz: () => Me,
+ Q2: () => de,
+ QG: () => Ce,
+ UG: () => xe,
+ Uj: () => Be,
+ V9: () => Fe,
+ Wl: () => ue,
+ XV: () => Re,
+ Xb: () => $e,
+ Zl: () => be,
+ _5: () => me,
+ be: () => Oe,
+ cz: () => Le,
+ gp: () => ye,
+ hW: () => Ae,
+ iQ: () => ge,
+ kJ: () => pe,
+ mz: () => se,
+ nX: () => Ie,
+ oG: () => ie,
+ oJ: () => Pe,
+ po: () => Te,
+ r3: () => Se,
+ wh: () => _e,
+ });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(97606),
+ i = n.n(s),
+ a = n(74386),
+ l = n.n(a),
+ c = n(86),
+ u = n.n(c),
+ p = n(14418),
+ h = n.n(p),
+ f = n(28222),
+ d = n.n(f),
+ m = (n(11189), n(24282)),
+ g = n.n(m),
+ y = n(76986),
+ v = n.n(y),
+ b = n(2578),
+ w = n.n(b),
+ E = (n(24278), n(39022), n(92039)),
+ x = n.n(E),
+ S = (n(58118), n(11882)),
+ _ = n.n(S),
+ j = n(51679),
+ O = n.n(j),
+ k = n(27043),
+ A = n.n(k),
+ C = n(81607),
+ P = n.n(C),
+ N = n(35627),
+ I = n.n(N),
+ T = n(43393),
+ R = n.n(T),
+ M = n(17967),
+ D = n(68929),
+ F = n.n(D),
+ L = n(11700),
+ B = n.n(L),
+ $ = n(88306),
+ q = n.n($),
+ U = n(13311),
+ z = n.n(U),
+ V = (n(59704), n(77813)),
+ W = n.n(V),
+ J = n(23560),
+ K = n.n(J),
+ H = n(27504),
+ G = n(8269),
+ Z = n.n(G),
+ Y = n(19069),
+ X = n(92282),
+ Q = n.n(X),
+ ee = n(89072),
+ te = n.n(ee),
+ ne = n(48764).Buffer;
+ const re = 'default',
+ oe = (e) => R().Iterable.isIterable(e);
+ function se(e) {
+ return ce(e) ? (oe(e) ? e.toJS() : e) : {};
+ }
+ function ie(e) {
+ var t, n;
+ if (oe(e)) return e;
+ if (e instanceof H.Z.File) return e;
+ if (!ce(e)) return e;
+ if (o()(e))
+ return i()((n = R().Seq(e)))
+ .call(n, ie)
+ .toList();
+ if (K()(l()(e))) {
+ var r;
+ const t = (function (e) {
+ if (!K()(l()(e))) return e;
+ const t = {},
+ n = '_**[]',
+ r = {};
+ for (let o of l()(e).call(e))
+ if (t[o[0]] || (r[o[0]] && r[o[0]].containsMultiple)) {
+ if (!r[o[0]]) {
+ (r[o[0]] = { containsMultiple: !0, length: 1 }),
+ (t[`${o[0]}${n}${r[o[0]].length}`] = t[o[0]]),
+ delete t[o[0]];
+ }
+ (r[o[0]].length += 1), (t[`${o[0]}${n}${r[o[0]].length}`] = o[1]);
+ } else t[o[0]] = o[1];
+ return t;
+ })(e);
+ return i()((r = R().OrderedMap(t))).call(r, ie);
+ }
+ return i()((t = R().OrderedMap(e))).call(t, ie);
+ }
+ function ae(e) {
+ return o()(e) ? e : [e];
+ }
+ function le(e) {
+ return 'function' == typeof e;
+ }
+ function ce(e) {
+ return !!e && 'object' == typeof e;
+ }
+ function ue(e) {
+ return 'function' == typeof e;
+ }
+ function pe(e) {
+ return o()(e);
+ }
+ const he = q();
+ function fe(e, t) {
+ var n;
+ return g()((n = d()(e))).call(n, (n, r) => ((n[r] = t(e[r], r)), n), {});
+ }
+ function de(e, t) {
+ var n;
+ return g()((n = d()(e))).call(
+ n,
+ (n, r) => {
+ let o = t(e[r], r);
+ return o && 'object' == typeof o && v()(n, o), n;
+ },
+ {}
+ );
+ }
+ function me(e) {
+ return (t) => {
+ let { dispatch: n, getState: r } = t;
+ return (t) => (n) => ('function' == typeof n ? n(e()) : t(n));
+ };
+ }
+ function ge(e) {
+ var t;
+ let n = e.keySeq();
+ return n.contains(re)
+ ? re
+ : w()((t = h()(n).call(n, (e) => '2' === (e + '')[0])))
+ .call(t)
+ .first();
+ }
+ function ye(e, t) {
+ if (!R().Iterable.isIterable(e)) return R().List();
+ let n = e.getIn(o()(t) ? t : [t]);
+ return R().List.isList(n) ? n : R().List();
+ }
+ function ve(e) {
+ let t,
+ n = [
+ /filename\*=[^']+'\w*'"([^"]+)";?/i,
+ /filename\*=[^']+'\w*'([^;]+);?/i,
+ /filename="([^;]*);?"/i,
+ /filename=([^;]*);?/i,
+ ];
+ if ((x()(n).call(n, (n) => ((t = n.exec(e)), null !== t)), null !== t && t.length > 1))
+ try {
+ return decodeURIComponent(t[1]);
+ } catch (e) {
+ console.error(e);
+ }
+ return null;
+ }
+ function be(e) {
+ return (t = e.replace(/\.[^./]*$/, '')), B()(F()(t));
+ var t;
+ }
+ function we(e, t, n, r, s) {
+ if (!t) return [];
+ let a = [],
+ l = t.get('nullable'),
+ c = t.get('required'),
+ p = t.get('maximum'),
+ f = t.get('minimum'),
+ d = t.get('type'),
+ m = t.get('format'),
+ g = t.get('maxLength'),
+ y = t.get('minLength'),
+ v = t.get('uniqueItems'),
+ b = t.get('maxItems'),
+ w = t.get('minItems'),
+ E = t.get('pattern');
+ const S = n || !0 === c,
+ _ = null != e;
+ if ((l && null === e) || !d || !(S || (_ && 'array' === d) || !(!S && !_))) return [];
+ let j = 'string' === d && e,
+ O = 'array' === d && o()(e) && e.length,
+ k = 'array' === d && R().List.isList(e) && e.count();
+ const A = [
+ j,
+ O,
+ k,
+ 'array' === d && 'string' == typeof e && e,
+ 'file' === d && e instanceof H.Z.File,
+ 'boolean' === d && (e || !1 === e),
+ 'number' === d && (e || 0 === e),
+ 'integer' === d && (e || 0 === e),
+ 'object' === d && 'object' == typeof e && null !== e,
+ 'object' === d && 'string' == typeof e && e,
+ ],
+ C = x()(A).call(A, (e) => !!e);
+ if (S && !C && !r) return a.push('Required field is not provided'), a;
+ if ('object' === d && (null === s || 'application/json' === s)) {
+ let n = e;
+ if ('string' == typeof e)
+ try {
+ n = JSON.parse(e);
+ } catch (e) {
+ return a.push('Parameter string value must be valid JSON'), a;
+ }
+ var P;
+ if (
+ (t &&
+ t.has('required') &&
+ ue(c.isList) &&
+ c.isList() &&
+ u()(c).call(c, (e) => {
+ void 0 === n[e] && a.push({ propKey: e, error: 'Required property not found' });
+ }),
+ t && t.has('properties'))
+ )
+ u()((P = t.get('properties'))).call(P, (e, t) => {
+ const o = we(n[t], e, !1, r, s);
+ a.push(...i()(o).call(o, (e) => ({ propKey: t, error: e })));
+ });
+ }
+ if (E) {
+ let t = ((e, t) => {
+ if (!new RegExp(t).test(e)) return 'Value must follow pattern ' + t;
+ })(e, E);
+ t && a.push(t);
+ }
+ if (w && 'array' === d) {
+ let t = ((e, t) => {
+ if ((!e && t >= 1) || (e && e.length < t))
+ return `Array must contain at least ${t} item${1 === t ? '' : 's'}`;
+ })(e, w);
+ t && a.push(t);
+ }
+ if (b && 'array' === d) {
+ let t = ((e, t) => {
+ if (e && e.length > t) return `Array must not contain more then ${t} item${1 === t ? '' : 's'}`;
+ })(e, b);
+ t && a.push({ needRemove: !0, error: t });
+ }
+ if (v && 'array' === d) {
+ let t = ((e, t) => {
+ if (e && ('true' === t || !0 === t)) {
+ const t = (0, T.fromJS)(e),
+ n = t.toSet();
+ if (e.length > n.size) {
+ let e = (0, T.Set)();
+ if (
+ (u()(t).call(t, (n, r) => {
+ h()(t).call(t, (e) => (ue(e.equals) ? e.equals(n) : e === n)).size > 1 && (e = e.add(r));
+ }),
+ 0 !== e.size)
+ )
+ return i()(e)
+ .call(e, (e) => ({ index: e, error: 'No duplicates allowed.' }))
+ .toArray();
+ }
+ }
+ })(e, v);
+ t && a.push(...t);
+ }
+ if (g || 0 === g) {
+ let t = ((e, t) => {
+ if (e.length > t) return `Value must be no longer than ${t} character${1 !== t ? 's' : ''}`;
+ })(e, g);
+ t && a.push(t);
+ }
+ if (y) {
+ let t = ((e, t) => {
+ if (e.length < t) return `Value must be at least ${t} character${1 !== t ? 's' : ''}`;
+ })(e, y);
+ t && a.push(t);
+ }
+ if (p || 0 === p) {
+ let t = ((e, t) => {
+ if (e > t) return `Value must be less than ${t}`;
+ })(e, p);
+ t && a.push(t);
+ }
+ if (f || 0 === f) {
+ let t = ((e, t) => {
+ if (e < t) return `Value must be greater than ${t}`;
+ })(e, f);
+ t && a.push(t);
+ }
+ if ('string' === d) {
+ let t;
+ if (
+ ((t =
+ 'date-time' === m
+ ? ((e) => {
+ if (isNaN(Date.parse(e))) return 'Value must be a DateTime';
+ })(e)
+ : 'uuid' === m
+ ? ((e) => {
+ if (
+ ((e = e.toString().toLowerCase()),
+ !/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(e))
+ )
+ return 'Value must be a Guid';
+ })(e)
+ : ((e) => {
+ if (e && 'string' != typeof e) return 'Value must be a string';
+ })(e)),
+ !t)
+ )
+ return a;
+ a.push(t);
+ } else if ('boolean' === d) {
+ let t = ((e) => {
+ if ('true' !== e && 'false' !== e && !0 !== e && !1 !== e) return 'Value must be a boolean';
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ } else if ('number' === d) {
+ let t = ((e) => {
+ if (!/^-?\d+(\.?\d+)?$/.test(e)) return 'Value must be a number';
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ } else if ('integer' === d) {
+ let t = ((e) => {
+ if (!/^-?\d+$/.test(e)) return 'Value must be an integer';
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ } else if ('array' === d) {
+ if (!O && !k) return a;
+ e &&
+ u()(e).call(e, (e, n) => {
+ const o = we(e, t.get('items'), !1, r, s);
+ a.push(...i()(o).call(o, (e) => ({ index: n, error: e })));
+ });
+ } else if ('file' === d) {
+ let t = ((e) => {
+ if (e && !(e instanceof H.Z.File)) return 'Value must be a file';
+ })(e);
+ if (!t) return a;
+ a.push(t);
+ }
+ return a;
+ }
+ const Ee = function (e, t) {
+ let { isOAS3: n = !1, bypassRequiredCheck: r = !1 } =
+ arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
+ o = e.get('required'),
+ { schema: s, parameterContentMediaType: i } = (0, Y.Z)(e, { isOAS3: n });
+ return we(t, s, o, r, i);
+ },
+ xe = () => {
+ let e = {},
+ t = H.Z.location.search;
+ if (!t) return {};
+ if ('' != t) {
+ let n = t.substr(1).split('&');
+ for (let t in n)
+ Object.prototype.hasOwnProperty.call(n, t) &&
+ ((t = n[t].split('=')), (e[decodeURIComponent(t[0])] = (t[1] && decodeURIComponent(t[1])) || ''));
+ }
+ return e;
+ },
+ Se = (e) => {
+ let t;
+ return (t = e instanceof ne ? e : ne.from(e.toString(), 'utf-8')), t.toString('base64');
+ },
+ _e = {
+ operationsSorter: {
+ alpha: (e, t) => e.get('path').localeCompare(t.get('path')),
+ method: (e, t) => e.get('method').localeCompare(t.get('method')),
+ },
+ tagsSorter: { alpha: (e, t) => e.localeCompare(t) },
+ },
+ je = (e) => {
+ let t = [];
+ for (let n in e) {
+ let r = e[n];
+ void 0 !== r && '' !== r && t.push([n, '=', encodeURIComponent(r).replace(/%20/g, '+')].join(''));
+ }
+ return t.join('&');
+ },
+ Oe = (e, t, n) => !!z()(n, (n) => W()(e[n], t[n]));
+ function ke(e) {
+ return 'string' != typeof e || '' === e ? '' : (0, M.N)(e);
+ }
+ function Ae(e) {
+ return !(!e || _()(e).call(e, 'localhost') >= 0 || _()(e).call(e, '127.0.0.1') >= 0 || 'none' === e);
+ }
+ function Ce(e) {
+ if (!R().OrderedMap.isOrderedMap(e)) return null;
+ if (!e.size) return null;
+ const t = O()(e).call(e, (e, t) => A()(t).call(t, '2') && d()(e.get('content') || {}).length > 0),
+ n = e.get('default') || R().OrderedMap(),
+ r = (n.get('content') || R().OrderedMap()).keySeq().toJS().length ? n : null;
+ return t || r;
+ }
+ const Pe = (e) => ('string' == typeof e || e instanceof String ? P()(e).call(e).replace(/\s/g, '%20') : ''),
+ Ne = (e) => Z()(Pe(e).replace(/%20/g, '_')),
+ Ie = (e) => h()(e).call(e, (e, t) => /^x-/.test(t)),
+ Te = (e) => h()(e).call(e, (e, t) => /^pattern|maxLength|minLength|maximum|minimum/.test(t));
+ function Re(e, t) {
+ var n;
+ let r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : () => !0;
+ if ('object' != typeof e || o()(e) || null === e || !t) return e;
+ const s = v()({}, e);
+ return (
+ u()((n = d()(s))).call(n, (e) => {
+ e === t && r(s[e], e) ? delete s[e] : (s[e] = Re(s[e], t, r));
+ }),
+ s
+ );
+ }
+ function Me(e) {
+ if ('string' == typeof e) return e;
+ if ((e && e.toJS && (e = e.toJS()), 'object' == typeof e && null !== e))
+ try {
+ return I()(e, null, 2);
+ } catch (t) {
+ return String(e);
+ }
+ return null == e ? '' : e.toString();
+ }
+ function De(e) {
+ return 'number' == typeof e ? e.toString() : e;
+ }
+ function Fe(e) {
+ let { returnAll: t = !1, allowHashes: n = !0 } =
+ arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ if (!R().Map.isMap(e)) throw new Error('paramToIdentifier: received a non-Im.Map parameter as input');
+ const r = e.get('name'),
+ o = e.get('in');
+ let s = [];
+ return (
+ e && e.hashCode && o && r && n && s.push(`${o}.${r}.hash-${e.hashCode()}`),
+ o && r && s.push(`${o}.${r}`),
+ s.push(r),
+ t ? s : s[0] || ''
+ );
+ }
+ function Le(e, t) {
+ var n;
+ const r = Fe(e, { returnAll: !0 });
+ return h()((n = i()(r).call(r, (e) => t[e]))).call(n, (e) => void 0 !== e)[0];
+ }
+ function Be() {
+ return qe(Q()(32).toString('base64'));
+ }
+ function $e(e) {
+ return qe(te()('sha256').update(e).digest('base64'));
+ }
+ function qe(e) {
+ return e.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
+ }
+ const Ue = (e) => !e || !(!oe(e) || !e.isEmpty());
+ },
+ 2518: (e, t, n) => {
+ 'use strict';
+ function r(e) {
+ return (function (e) {
+ try {
+ return !!JSON.parse(e);
+ } catch (e) {
+ return null;
+ }
+ })(e)
+ ? 'json'
+ : null;
+ }
+ n.d(t, { O: () => r });
+ },
+ 63543: (e, t, n) => {
+ 'use strict';
+ n.d(t, { mn: () => a });
+ var r = n(63460),
+ o = n.n(r);
+ function s(e) {
+ return e.match(/^(?:[a-z]+:)?\/\//i);
+ }
+ function i(e, t) {
+ return e
+ ? s(e)
+ ? (function (e) {
+ return e.match(/^\/\//i) ? `${window.location.protocol}${e}` : e;
+ })(e)
+ : new (o())(e, t).href
+ : t;
+ }
+ function a(e, t) {
+ let { selectedServer: n = '' } = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ try {
+ return (function (e, t) {
+ let { selectedServer: n = '' } = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
+ if (!e) return;
+ if (s(e)) return e;
+ const r = i(n, t);
+ return s(r) ? new (o())(e, r).href : new (o())(e, window.location.href).href;
+ })(e, t, { selectedServer: n });
+ } catch {
+ return;
+ }
+ }
+ },
+ 27504: (e, t, n) => {
+ 'use strict';
+ n.d(t, { Z: () => r });
+ const r = (function () {
+ var e = { location: {}, history: {}, open: () => {}, close: () => {}, File: function () {} };
+ if ('undefined' == typeof window) return e;
+ try {
+ e = window;
+ for (var t of ['File', 'Blob', 'FormData']) t in window && (e[t] = window[t]);
+ } catch (e) {
+ console.error(e);
+ }
+ return e;
+ })();
+ },
+ 19069: (e, t, n) => {
+ 'use strict';
+ n.d(t, { Z: () => u });
+ var r = n(14418),
+ o = n.n(r),
+ s = n(58118),
+ i = n.n(s),
+ a = n(43393),
+ l = n.n(a);
+ const c = l().Set.of(
+ 'type',
+ 'format',
+ 'items',
+ 'default',
+ 'maximum',
+ 'exclusiveMaximum',
+ 'minimum',
+ 'exclusiveMinimum',
+ 'maxLength',
+ 'minLength',
+ 'pattern',
+ 'maxItems',
+ 'minItems',
+ 'uniqueItems',
+ 'enum',
+ 'multipleOf'
+ );
+ function u(e) {
+ let { isOAS3: t } = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ if (!l().Map.isMap(e)) return { schema: l().Map(), parameterContentMediaType: null };
+ if (!t)
+ return 'body' === e.get('in')
+ ? { schema: e.get('schema', l().Map()), parameterContentMediaType: null }
+ : { schema: o()(e).call(e, (e, t) => i()(c).call(c, t)), parameterContentMediaType: null };
+ if (e.get('content')) {
+ const t = e.get('content', l().Map({})).keySeq().first();
+ return { schema: e.getIn(['content', t, 'schema'], l().Map()), parameterContentMediaType: t };
+ }
+ return {
+ schema: e.get('schema') ? e.get('schema', l().Map()) : l().Map(),
+ parameterContentMediaType: null,
+ };
+ }
+ },
+ 60314: (e, t, n) => {
+ 'use strict';
+ n.d(t, { Z: () => x });
+ var r = n(58309),
+ o = n.n(r),
+ s = n(2250),
+ i = n.n(s),
+ a = n(25110),
+ l = n.n(a),
+ c = n(8712),
+ u = n.n(c),
+ p = n(51679),
+ h = n.n(p),
+ f = n(12373),
+ d = n.n(f),
+ m = n(18492),
+ g = n.n(m),
+ y = n(88306),
+ v = n.n(y);
+ const b = (e) => (t) => o()(e) && o()(t) && e.length === t.length && i()(e).call(e, (e, n) => e === t[n]),
+ w = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
+ return t;
+ };
+ class E extends g() {
+ delete(e) {
+ const t = l()(u()(this).call(this)),
+ n = h()(t).call(t, b(e));
+ return super.delete(n);
+ }
+ get(e) {
+ const t = l()(u()(this).call(this)),
+ n = h()(t).call(t, b(e));
+ return super.get(n);
+ }
+ has(e) {
+ const t = l()(u()(this).call(this));
+ return -1 !== d()(t).call(t, b(e));
+ }
+ }
+ const x = function (e) {
+ let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : w;
+ const { Cache: n } = v();
+ v().Cache = E;
+ const r = v()(e, t);
+ return (v().Cache = n), r;
+ };
+ },
+ 79742: (e, t) => {
+ 'use strict';
+ (t.byteLength = function (e) {
+ var t = a(e),
+ n = t[0],
+ r = t[1];
+ return (3 * (n + r)) / 4 - r;
+ }),
+ (t.toByteArray = function (e) {
+ var t,
+ n,
+ s = a(e),
+ i = s[0],
+ l = s[1],
+ c = new o(
+ (function (e, t, n) {
+ return (3 * (t + n)) / 4 - n;
+ })(0, i, l)
+ ),
+ u = 0,
+ p = l > 0 ? i - 4 : i;
+ for (n = 0; n < p; n += 4)
+ (t =
+ (r[e.charCodeAt(n)] << 18) |
+ (r[e.charCodeAt(n + 1)] << 12) |
+ (r[e.charCodeAt(n + 2)] << 6) |
+ r[e.charCodeAt(n + 3)]),
+ (c[u++] = (t >> 16) & 255),
+ (c[u++] = (t >> 8) & 255),
+ (c[u++] = 255 & t);
+ 2 === l && ((t = (r[e.charCodeAt(n)] << 2) | (r[e.charCodeAt(n + 1)] >> 4)), (c[u++] = 255 & t));
+ 1 === l &&
+ ((t = (r[e.charCodeAt(n)] << 10) | (r[e.charCodeAt(n + 1)] << 4) | (r[e.charCodeAt(n + 2)] >> 2)),
+ (c[u++] = (t >> 8) & 255),
+ (c[u++] = 255 & t));
+ return c;
+ }),
+ (t.fromByteArray = function (e) {
+ for (var t, r = e.length, o = r % 3, s = [], i = 16383, a = 0, c = r - o; a < c; a += i)
+ s.push(l(e, a, a + i > c ? c : a + i));
+ 1 === o
+ ? ((t = e[r - 1]), s.push(n[t >> 2] + n[(t << 4) & 63] + '=='))
+ : 2 === o &&
+ ((t = (e[r - 2] << 8) + e[r - 1]), s.push(n[t >> 10] + n[(t >> 4) & 63] + n[(t << 2) & 63] + '='));
+ return s.join('');
+ });
+ for (
+ var n = [],
+ r = [],
+ o = 'undefined' != typeof Uint8Array ? Uint8Array : Array,
+ s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
+ i = 0;
+ i < 64;
+ ++i
+ )
+ (n[i] = s[i]), (r[s.charCodeAt(i)] = i);
+ function a(e) {
+ var t = e.length;
+ if (t % 4 > 0) throw new Error('Invalid string. Length must be a multiple of 4');
+ var n = e.indexOf('=');
+ return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)];
+ }
+ function l(e, t, r) {
+ for (var o, s, i = [], a = t; a < r; a += 3)
+ (o = ((e[a] << 16) & 16711680) + ((e[a + 1] << 8) & 65280) + (255 & e[a + 2])),
+ i.push(n[((s = o) >> 18) & 63] + n[(s >> 12) & 63] + n[(s >> 6) & 63] + n[63 & s]);
+ return i.join('');
+ }
+ (r['-'.charCodeAt(0)] = 62), (r['_'.charCodeAt(0)] = 63);
+ },
+ 48764: (e, t, n) => {
+ 'use strict';
+ const r = n(79742),
+ o = n(80645),
+ s =
+ 'function' == typeof Symbol && 'function' == typeof Symbol.for
+ ? Symbol.for('nodejs.util.inspect.custom')
+ : null;
+ (t.Buffer = l),
+ (t.SlowBuffer = function (e) {
+ +e != e && (e = 0);
+ return l.alloc(+e);
+ }),
+ (t.INSPECT_MAX_BYTES = 50);
+ const i = 2147483647;
+ function a(e) {
+ if (e > i) throw new RangeError('The value "' + e + '" is invalid for option "size"');
+ const t = new Uint8Array(e);
+ return Object.setPrototypeOf(t, l.prototype), t;
+ }
+ function l(e, t, n) {
+ if ('number' == typeof e) {
+ if ('string' == typeof t)
+ throw new TypeError('The "string" argument must be of type string. Received type number');
+ return p(e);
+ }
+ return c(e, t, n);
+ }
+ function c(e, t, n) {
+ if ('string' == typeof e)
+ return (function (e, t) {
+ ('string' == typeof t && '' !== t) || (t = 'utf8');
+ if (!l.isEncoding(t)) throw new TypeError('Unknown encoding: ' + t);
+ const n = 0 | m(e, t);
+ let r = a(n);
+ const o = r.write(e, t);
+ o !== n && (r = r.slice(0, o));
+ return r;
+ })(e, t);
+ if (ArrayBuffer.isView(e))
+ return (function (e) {
+ if (G(e, Uint8Array)) {
+ const t = new Uint8Array(e);
+ return f(t.buffer, t.byteOffset, t.byteLength);
+ }
+ return h(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 (G(e, ArrayBuffer) || (e && G(e.buffer, ArrayBuffer))) return f(e, t, n);
+ if (
+ 'undefined' != typeof SharedArrayBuffer &&
+ (G(e, SharedArrayBuffer) || (e && G(e.buffer, SharedArrayBuffer)))
+ )
+ return f(e, t, n);
+ if ('number' == typeof e)
+ throw new TypeError('The "value" argument must not be of type number. Received type number');
+ const r = e.valueOf && e.valueOf();
+ if (null != r && r !== e) return l.from(r, t, n);
+ const o = (function (e) {
+ if (l.isBuffer(e)) {
+ const t = 0 | d(e.length),
+ n = a(t);
+ return 0 === n.length || e.copy(n, 0, 0, t), n;
+ }
+ if (void 0 !== e.length) return 'number' != typeof e.length || Z(e.length) ? a(0) : h(e);
+ if ('Buffer' === e.type && Array.isArray(e.data)) return h(e.data);
+ })(e);
+ if (o) return o;
+ if (
+ 'undefined' != typeof Symbol &&
+ null != Symbol.toPrimitive &&
+ 'function' == typeof e[Symbol.toPrimitive]
+ )
+ return l.from(e[Symbol.toPrimitive]('string'), t, n);
+ 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 p(e) {
+ return u(e), a(e < 0 ? 0 : 0 | d(e));
+ }
+ function h(e) {
+ const t = e.length < 0 ? 0 : 0 | d(e.length),
+ n = a(t);
+ for (let r = 0; r < t; r += 1) n[r] = 255 & e[r];
+ return n;
+ }
+ function f(e, t, n) {
+ if (t < 0 || e.byteLength < t) throw new RangeError('"offset" is outside of buffer bounds');
+ if (e.byteLength < t + (n || 0)) throw new RangeError('"length" is outside of buffer bounds');
+ let r;
+ return (
+ (r =
+ void 0 === t && void 0 === n
+ ? new Uint8Array(e)
+ : void 0 === n
+ ? new Uint8Array(e, t)
+ : new Uint8Array(e, t, n)),
+ Object.setPrototypeOf(r, l.prototype),
+ r
+ );
+ }
+ function d(e) {
+ if (e >= i)
+ throw new RangeError(
+ 'Attempt to allocate Buffer larger than maximum size: 0x' + i.toString(16) + ' bytes'
+ );
+ return 0 | e;
+ }
+ function m(e, t) {
+ if (l.isBuffer(e)) return e.length;
+ if (ArrayBuffer.isView(e) || G(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
+ );
+ const n = e.length,
+ r = arguments.length > 2 && !0 === arguments[2];
+ if (!r && 0 === n) return 0;
+ let o = !1;
+ for (;;)
+ switch (t) {
+ case 'ascii':
+ case 'latin1':
+ case 'binary':
+ return n;
+ case 'utf8':
+ case 'utf-8':
+ return J(e).length;
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return 2 * n;
+ case 'hex':
+ return n >>> 1;
+ case 'base64':
+ return K(e).length;
+ default:
+ if (o) return r ? -1 : J(e).length;
+ (t = ('' + t).toLowerCase()), (o = !0);
+ }
+ }
+ function g(e, t, n) {
+ let r = !1;
+ if (((void 0 === t || t < 0) && (t = 0), t > this.length)) return '';
+ if (((void 0 === n || n > this.length) && (n = this.length), n <= 0)) return '';
+ if ((n >>>= 0) <= (t >>>= 0)) return '';
+ for (e || (e = 'utf8'); ; )
+ switch (e) {
+ case 'hex':
+ return P(this, t, n);
+ case 'utf8':
+ case 'utf-8':
+ return O(this, t, n);
+ case 'ascii':
+ return A(this, t, n);
+ case 'latin1':
+ case 'binary':
+ return C(this, t, n);
+ case 'base64':
+ return j(this, t, n);
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return N(this, t, n);
+ default:
+ if (r) throw new TypeError('Unknown encoding: ' + e);
+ (e = (e + '').toLowerCase()), (r = !0);
+ }
+ }
+ function y(e, t, n) {
+ const r = e[t];
+ (e[t] = e[n]), (e[n] = r);
+ }
+ function v(e, t, n, r, o) {
+ if (0 === e.length) return -1;
+ if (
+ ('string' == typeof n
+ ? ((r = n), (n = 0))
+ : n > 2147483647
+ ? (n = 2147483647)
+ : n < -2147483648 && (n = -2147483648),
+ Z((n = +n)) && (n = o ? 0 : e.length - 1),
+ n < 0 && (n = e.length + n),
+ n >= e.length)
+ ) {
+ if (o) return -1;
+ n = e.length - 1;
+ } else if (n < 0) {
+ if (!o) return -1;
+ n = 0;
+ }
+ if (('string' == typeof t && (t = l.from(t, r)), l.isBuffer(t)))
+ return 0 === t.length ? -1 : b(e, t, n, r, o);
+ if ('number' == typeof t)
+ return (
+ (t &= 255),
+ 'function' == typeof Uint8Array.prototype.indexOf
+ ? o
+ ? Uint8Array.prototype.indexOf.call(e, t, n)
+ : Uint8Array.prototype.lastIndexOf.call(e, t, n)
+ : b(e, [t], n, r, o)
+ );
+ throw new TypeError('val must be string, number or Buffer');
+ }
+ function b(e, t, n, r, o) {
+ let s,
+ i = 1,
+ a = e.length,
+ l = t.length;
+ if (
+ void 0 !== r &&
+ ('ucs2' === (r = String(r).toLowerCase()) || 'ucs-2' === r || 'utf16le' === r || 'utf-16le' === r)
+ ) {
+ if (e.length < 2 || t.length < 2) return -1;
+ (i = 2), (a /= 2), (l /= 2), (n /= 2);
+ }
+ function c(e, t) {
+ return 1 === i ? e[t] : e.readUInt16BE(t * i);
+ }
+ if (o) {
+ let r = -1;
+ for (s = n; s < a; s++)
+ if (c(e, s) === c(t, -1 === r ? 0 : s - r)) {
+ if ((-1 === r && (r = s), s - r + 1 === l)) return r * i;
+ } else -1 !== r && (s -= s - r), (r = -1);
+ } else
+ for (n + l > a && (n = a - l), s = n; s >= 0; s--) {
+ let n = !0;
+ for (let r = 0; r < l; r++)
+ if (c(e, s + r) !== c(t, r)) {
+ n = !1;
+ break;
+ }
+ if (n) return s;
+ }
+ return -1;
+ }
+ function w(e, t, n, r) {
+ n = Number(n) || 0;
+ const o = e.length - n;
+ r ? (r = Number(r)) > o && (r = o) : (r = o);
+ const s = t.length;
+ let i;
+ for (r > s / 2 && (r = s / 2), i = 0; i < r; ++i) {
+ const r = parseInt(t.substr(2 * i, 2), 16);
+ if (Z(r)) return i;
+ e[n + i] = r;
+ }
+ return i;
+ }
+ function E(e, t, n, r) {
+ return H(J(t, e.length - n), e, n, r);
+ }
+ function x(e, t, n, r) {
+ return H(
+ (function (e) {
+ const t = [];
+ for (let n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n));
+ return t;
+ })(t),
+ e,
+ n,
+ r
+ );
+ }
+ function S(e, t, n, r) {
+ return H(K(t), e, n, r);
+ }
+ function _(e, t, n, r) {
+ return H(
+ (function (e, t) {
+ let n, r, o;
+ const s = [];
+ for (let i = 0; i < e.length && !((t -= 2) < 0); ++i)
+ (n = e.charCodeAt(i)), (r = n >> 8), (o = n % 256), s.push(o), s.push(r);
+ return s;
+ })(t, e.length - n),
+ e,
+ n,
+ r
+ );
+ }
+ function j(e, t, n) {
+ return 0 === t && n === e.length ? r.fromByteArray(e) : r.fromByteArray(e.slice(t, n));
+ }
+ function O(e, t, n) {
+ n = Math.min(e.length, n);
+ const r = [];
+ let o = t;
+ for (; o < n; ) {
+ const t = e[o];
+ let s = null,
+ i = t > 239 ? 4 : t > 223 ? 3 : t > 191 ? 2 : 1;
+ if (o + i <= n) {
+ let n, r, a, l;
+ switch (i) {
+ case 1:
+ t < 128 && (s = t);
+ break;
+ case 2:
+ (n = e[o + 1]), 128 == (192 & n) && ((l = ((31 & t) << 6) | (63 & n)), l > 127 && (s = l));
+ break;
+ case 3:
+ (n = e[o + 1]),
+ (r = e[o + 2]),
+ 128 == (192 & n) &&
+ 128 == (192 & r) &&
+ ((l = ((15 & t) << 12) | ((63 & n) << 6) | (63 & r)),
+ l > 2047 && (l < 55296 || l > 57343) && (s = l));
+ break;
+ case 4:
+ (n = e[o + 1]),
+ (r = e[o + 2]),
+ (a = e[o + 3]),
+ 128 == (192 & n) &&
+ 128 == (192 & r) &&
+ 128 == (192 & a) &&
+ ((l = ((15 & t) << 18) | ((63 & n) << 12) | ((63 & r) << 6) | (63 & a)),
+ l > 65535 && l < 1114112 && (s = l));
+ }
+ }
+ null === s
+ ? ((s = 65533), (i = 1))
+ : s > 65535 && ((s -= 65536), r.push(((s >>> 10) & 1023) | 55296), (s = 56320 | (1023 & s))),
+ r.push(s),
+ (o += i);
+ }
+ return (function (e) {
+ const t = e.length;
+ if (t <= k) return String.fromCharCode.apply(String, e);
+ let n = '',
+ r = 0;
+ for (; r < t; ) n += String.fromCharCode.apply(String, e.slice(r, (r += k)));
+ return n;
+ })(r);
+ }
+ (t.kMaxLength = i),
+ (l.TYPED_ARRAY_SUPPORT = (function () {
+ try {
+ const e = new Uint8Array(1),
+ t = {
+ foo: function () {
+ return 42;
+ },
+ };
+ return Object.setPrototypeOf(t, Uint8Array.prototype), Object.setPrototypeOf(e, t), 42 === e.foo();
+ } catch (e) {
+ return !1;
+ }
+ })()),
+ l.TYPED_ARRAY_SUPPORT ||
+ 'undefined' == typeof console ||
+ 'function' != typeof console.error ||
+ console.error(
+ 'This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.'
+ ),
+ Object.defineProperty(l.prototype, 'parent', {
+ enumerable: !0,
+ get: function () {
+ if (l.isBuffer(this)) return this.buffer;
+ },
+ }),
+ Object.defineProperty(l.prototype, 'offset', {
+ enumerable: !0,
+ get: function () {
+ if (l.isBuffer(this)) return this.byteOffset;
+ },
+ }),
+ (l.poolSize = 8192),
+ (l.from = function (e, t, n) {
+ return c(e, t, n);
+ }),
+ Object.setPrototypeOf(l.prototype, Uint8Array.prototype),
+ Object.setPrototypeOf(l, Uint8Array),
+ (l.alloc = function (e, t, n) {
+ return (function (e, t, n) {
+ return (
+ u(e), e <= 0 ? a(e) : void 0 !== t ? ('string' == typeof n ? a(e).fill(t, n) : a(e).fill(t)) : a(e)
+ );
+ })(e, t, n);
+ }),
+ (l.allocUnsafe = function (e) {
+ return p(e);
+ }),
+ (l.allocUnsafeSlow = function (e) {
+ return p(e);
+ }),
+ (l.isBuffer = function (e) {
+ return null != e && !0 === e._isBuffer && e !== l.prototype;
+ }),
+ (l.compare = function (e, t) {
+ if (
+ (G(e, Uint8Array) && (e = l.from(e, e.offset, e.byteLength)),
+ G(t, Uint8Array) && (t = l.from(t, t.offset, t.byteLength)),
+ !l.isBuffer(e) || !l.isBuffer(t))
+ )
+ throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
+ if (e === t) return 0;
+ let n = e.length,
+ r = t.length;
+ for (let o = 0, s = Math.min(n, r); o < s; ++o)
+ if (e[o] !== t[o]) {
+ (n = e[o]), (r = t[o]);
+ break;
+ }
+ return n < r ? -1 : r < n ? 1 : 0;
+ }),
+ (l.isEncoding = function (e) {
+ switch (String(e).toLowerCase()) {
+ case 'hex':
+ case 'utf8':
+ case 'utf-8':
+ case 'ascii':
+ case 'latin1':
+ case 'binary':
+ case 'base64':
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return !0;
+ default:
+ return !1;
+ }
+ }),
+ (l.concat = function (e, t) {
+ if (!Array.isArray(e)) throw new TypeError('"list" argument must be an Array of Buffers');
+ if (0 === e.length) return l.alloc(0);
+ let n;
+ if (void 0 === t) for (t = 0, n = 0; n < e.length; ++n) t += e[n].length;
+ const r = l.allocUnsafe(t);
+ let o = 0;
+ for (n = 0; n < e.length; ++n) {
+ let t = e[n];
+ if (G(t, Uint8Array))
+ o + t.length > r.length
+ ? (l.isBuffer(t) || (t = l.from(t)), t.copy(r, o))
+ : Uint8Array.prototype.set.call(r, t, o);
+ else {
+ if (!l.isBuffer(t)) throw new TypeError('"list" argument must be an Array of Buffers');
+ t.copy(r, o);
+ }
+ o += t.length;
+ }
+ return r;
+ }),
+ (l.byteLength = m),
+ (l.prototype._isBuffer = !0),
+ (l.prototype.swap16 = function () {
+ const e = this.length;
+ if (e % 2 != 0) throw new RangeError('Buffer size must be a multiple of 16-bits');
+ for (let t = 0; t < e; t += 2) y(this, t, t + 1);
+ return this;
+ }),
+ (l.prototype.swap32 = function () {
+ const e = this.length;
+ if (e % 4 != 0) throw new RangeError('Buffer size must be a multiple of 32-bits');
+ for (let t = 0; t < e; t += 4) y(this, t, t + 3), y(this, t + 1, t + 2);
+ return this;
+ }),
+ (l.prototype.swap64 = function () {
+ const e = this.length;
+ if (e % 8 != 0) throw new RangeError('Buffer size must be a multiple of 64-bits');
+ for (let t = 0; t < e; t += 8)
+ y(this, t, t + 7), y(this, t + 1, t + 6), y(this, t + 2, t + 5), y(this, t + 3, t + 4);
+ return this;
+ }),
+ (l.prototype.toString = function () {
+ const e = this.length;
+ return 0 === e ? '' : 0 === arguments.length ? O(this, 0, e) : g.apply(this, arguments);
+ }),
+ (l.prototype.toLocaleString = l.prototype.toString),
+ (l.prototype.equals = function (e) {
+ if (!l.isBuffer(e)) throw new TypeError('Argument must be a Buffer');
+ return this === e || 0 === l.compare(this, e);
+ }),
+ (l.prototype.inspect = function () {
+ let e = '';
+ const n = t.INSPECT_MAX_BYTES;
+ return (
+ (e = this.toString('hex', 0, n)
+ .replace(/(.{2})/g, '$1 ')
+ .trim()),
+ this.length > n && (e += ' ... '),
+ ''
+ );
+ }),
+ s && (l.prototype[s] = l.prototype.inspect),
+ (l.prototype.compare = function (e, t, n, r, o) {
+ if ((G(e, Uint8Array) && (e = l.from(e, e.offset, e.byteLength)), !l.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 === n && (n = e ? e.length : 0),
+ void 0 === r && (r = 0),
+ void 0 === o && (o = this.length),
+ t < 0 || n > e.length || r < 0 || o > this.length)
+ )
+ throw new RangeError('out of range index');
+ if (r >= o && t >= n) return 0;
+ if (r >= o) return -1;
+ if (t >= n) return 1;
+ if (this === e) return 0;
+ let s = (o >>>= 0) - (r >>>= 0),
+ i = (n >>>= 0) - (t >>>= 0);
+ const a = Math.min(s, i),
+ c = this.slice(r, o),
+ u = e.slice(t, n);
+ for (let e = 0; e < a; ++e)
+ if (c[e] !== u[e]) {
+ (s = c[e]), (i = u[e]);
+ break;
+ }
+ return s < i ? -1 : i < s ? 1 : 0;
+ }),
+ (l.prototype.includes = function (e, t, n) {
+ return -1 !== this.indexOf(e, t, n);
+ }),
+ (l.prototype.indexOf = function (e, t, n) {
+ return v(this, e, t, n, !0);
+ }),
+ (l.prototype.lastIndexOf = function (e, t, n) {
+ return v(this, e, t, n, !1);
+ }),
+ (l.prototype.write = function (e, t, n, r) {
+ if (void 0 === t) (r = 'utf8'), (n = this.length), (t = 0);
+ else if (void 0 === n && 'string' == typeof t) (r = t), (n = this.length), (t = 0);
+ else {
+ if (!isFinite(t))
+ throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');
+ (t >>>= 0), isFinite(n) ? ((n >>>= 0), void 0 === r && (r = 'utf8')) : ((r = n), (n = void 0));
+ }
+ const o = this.length - t;
+ if (((void 0 === n || n > o) && (n = o), (e.length > 0 && (n < 0 || t < 0)) || t > this.length))
+ throw new RangeError('Attempt to write outside buffer bounds');
+ r || (r = 'utf8');
+ let s = !1;
+ for (;;)
+ switch (r) {
+ case 'hex':
+ return w(this, e, t, n);
+ case 'utf8':
+ case 'utf-8':
+ return E(this, e, t, n);
+ case 'ascii':
+ case 'latin1':
+ case 'binary':
+ return x(this, e, t, n);
+ case 'base64':
+ return S(this, e, t, n);
+ case 'ucs2':
+ case 'ucs-2':
+ case 'utf16le':
+ case 'utf-16le':
+ return _(this, e, t, n);
+ default:
+ if (s) throw new TypeError('Unknown encoding: ' + r);
+ (r = ('' + r).toLowerCase()), (s = !0);
+ }
+ }),
+ (l.prototype.toJSON = function () {
+ return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) };
+ });
+ const k = 4096;
+ function A(e, t, n) {
+ let r = '';
+ n = Math.min(e.length, n);
+ for (let o = t; o < n; ++o) r += String.fromCharCode(127 & e[o]);
+ return r;
+ }
+ function C(e, t, n) {
+ let r = '';
+ n = Math.min(e.length, n);
+ for (let o = t; o < n; ++o) r += String.fromCharCode(e[o]);
+ return r;
+ }
+ function P(e, t, n) {
+ const r = e.length;
+ (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
+ let o = '';
+ for (let r = t; r < n; ++r) o += Y[e[r]];
+ return o;
+ }
+ function N(e, t, n) {
+ const r = e.slice(t, n);
+ let o = '';
+ for (let e = 0; e < r.length - 1; e += 2) o += String.fromCharCode(r[e] + 256 * r[e + 1]);
+ return o;
+ }
+ function I(e, t, n) {
+ if (e % 1 != 0 || e < 0) throw new RangeError('offset is not uint');
+ if (e + t > n) throw new RangeError('Trying to access beyond buffer length');
+ }
+ function T(e, t, n, r, o, s) {
+ if (!l.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
+ if (t > o || t < s) throw new RangeError('"value" argument is out of bounds');
+ if (n + r > e.length) throw new RangeError('Index out of range');
+ }
+ function R(e, t, n, r, o) {
+ U(t, r, o, e, n, 7);
+ let s = Number(t & BigInt(4294967295));
+ (e[n++] = s), (s >>= 8), (e[n++] = s), (s >>= 8), (e[n++] = s), (s >>= 8), (e[n++] = s);
+ let i = Number((t >> BigInt(32)) & BigInt(4294967295));
+ return (e[n++] = i), (i >>= 8), (e[n++] = i), (i >>= 8), (e[n++] = i), (i >>= 8), (e[n++] = i), n;
+ }
+ function M(e, t, n, r, o) {
+ U(t, r, o, e, n, 7);
+ let s = Number(t & BigInt(4294967295));
+ (e[n + 7] = s), (s >>= 8), (e[n + 6] = s), (s >>= 8), (e[n + 5] = s), (s >>= 8), (e[n + 4] = s);
+ let i = Number((t >> BigInt(32)) & BigInt(4294967295));
+ return (e[n + 3] = i), (i >>= 8), (e[n + 2] = i), (i >>= 8), (e[n + 1] = i), (i >>= 8), (e[n] = i), n + 8;
+ }
+ function D(e, t, n, r, o, s) {
+ if (n + r > e.length) throw new RangeError('Index out of range');
+ if (n < 0) throw new RangeError('Index out of range');
+ }
+ function F(e, t, n, r, s) {
+ return (t = +t), (n >>>= 0), s || D(e, 0, n, 4), o.write(e, t, n, r, 23, 4), n + 4;
+ }
+ function L(e, t, n, r, s) {
+ return (t = +t), (n >>>= 0), s || D(e, 0, n, 8), o.write(e, t, n, r, 52, 8), n + 8;
+ }
+ (l.prototype.slice = function (e, t) {
+ const n = this.length;
+ (e = ~~e) < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n),
+ (t = void 0 === t ? n : ~~t) < 0 ? (t += n) < 0 && (t = 0) : t > n && (t = n),
+ t < e && (t = e);
+ const r = this.subarray(e, t);
+ return Object.setPrototypeOf(r, l.prototype), r;
+ }),
+ (l.prototype.readUintLE = l.prototype.readUIntLE =
+ function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = this[e],
+ o = 1,
+ s = 0;
+ for (; ++s < t && (o *= 256); ) r += this[e + s] * o;
+ return r;
+ }),
+ (l.prototype.readUintBE = l.prototype.readUIntBE =
+ function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = this[e + --t],
+ o = 1;
+ for (; t > 0 && (o *= 256); ) r += this[e + --t] * o;
+ return r;
+ }),
+ (l.prototype.readUint8 = l.prototype.readUInt8 =
+ function (e, t) {
+ return (e >>>= 0), t || I(e, 1, this.length), this[e];
+ }),
+ (l.prototype.readUint16LE = l.prototype.readUInt16LE =
+ function (e, t) {
+ return (e >>>= 0), t || I(e, 2, this.length), this[e] | (this[e + 1] << 8);
+ }),
+ (l.prototype.readUint16BE = l.prototype.readUInt16BE =
+ function (e, t) {
+ return (e >>>= 0), t || I(e, 2, this.length), (this[e] << 8) | this[e + 1];
+ }),
+ (l.prototype.readUint32LE = l.prototype.readUInt32LE =
+ function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) + 16777216 * this[e + 3]
+ );
+ }),
+ (l.prototype.readUint32BE = l.prototype.readUInt32BE =
+ function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ 16777216 * this[e] + ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3])
+ );
+ }),
+ (l.prototype.readBigUInt64LE = X(function (e) {
+ z((e >>>= 0), 'offset');
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r = t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24,
+ o = this[++e] + 256 * this[++e] + 65536 * this[++e] + n * 2 ** 24;
+ return BigInt(r) + (BigInt(o) << BigInt(32));
+ })),
+ (l.prototype.readBigUInt64BE = X(function (e) {
+ z((e >>>= 0), 'offset');
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r = t * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + this[++e],
+ o = this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n;
+ return (BigInt(r) << BigInt(32)) + BigInt(o);
+ })),
+ (l.prototype.readIntLE = function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = this[e],
+ o = 1,
+ s = 0;
+ for (; ++s < t && (o *= 256); ) r += this[e + s] * o;
+ return (o *= 128), r >= o && (r -= Math.pow(2, 8 * t)), r;
+ }),
+ (l.prototype.readIntBE = function (e, t, n) {
+ (e >>>= 0), (t >>>= 0), n || I(e, t, this.length);
+ let r = t,
+ o = 1,
+ s = this[e + --r];
+ for (; r > 0 && (o *= 256); ) s += this[e + --r] * o;
+ return (o *= 128), s >= o && (s -= Math.pow(2, 8 * t)), s;
+ }),
+ (l.prototype.readInt8 = function (e, t) {
+ return (e >>>= 0), t || I(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e];
+ }),
+ (l.prototype.readInt16LE = function (e, t) {
+ (e >>>= 0), t || I(e, 2, this.length);
+ const n = this[e] | (this[e + 1] << 8);
+ return 32768 & n ? 4294901760 | n : n;
+ }),
+ (l.prototype.readInt16BE = function (e, t) {
+ (e >>>= 0), t || I(e, 2, this.length);
+ const n = this[e + 1] | (this[e] << 8);
+ return 32768 & n ? 4294901760 | n : n;
+ }),
+ (l.prototype.readInt32LE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ this[e] | (this[e + 1] << 8) | (this[e + 2] << 16) | (this[e + 3] << 24)
+ );
+ }),
+ (l.prototype.readInt32BE = function (e, t) {
+ return (
+ (e >>>= 0),
+ t || I(e, 4, this.length),
+ (this[e] << 24) | (this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3]
+ );
+ }),
+ (l.prototype.readBigInt64LE = X(function (e) {
+ z((e >>>= 0), 'offset');
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r = this[e + 4] + 256 * this[e + 5] + 65536 * this[e + 6] + (n << 24);
+ return (BigInt(r) << BigInt(32)) + BigInt(t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24);
+ })),
+ (l.prototype.readBigInt64BE = X(function (e) {
+ z((e >>>= 0), 'offset');
+ const t = this[e],
+ n = this[e + 7];
+ (void 0 !== t && void 0 !== n) || V(e, this.length - 8);
+ const r = (t << 24) + 65536 * this[++e] + 256 * this[++e] + this[++e];
+ return (BigInt(r) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n);
+ })),
+ (l.prototype.readFloatLE = function (e, t) {
+ return (e >>>= 0), t || I(e, 4, this.length), o.read(this, e, !0, 23, 4);
+ }),
+ (l.prototype.readFloatBE = function (e, t) {
+ return (e >>>= 0), t || I(e, 4, this.length), o.read(this, e, !1, 23, 4);
+ }),
+ (l.prototype.readDoubleLE = function (e, t) {
+ return (e >>>= 0), t || I(e, 8, this.length), o.read(this, e, !0, 52, 8);
+ }),
+ (l.prototype.readDoubleBE = function (e, t) {
+ return (e >>>= 0), t || I(e, 8, this.length), o.read(this, e, !1, 52, 8);
+ }),
+ (l.prototype.writeUintLE = l.prototype.writeUIntLE =
+ function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), (n >>>= 0), !r)) {
+ T(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
+ }
+ let o = 1,
+ s = 0;
+ for (this[t] = 255 & e; ++s < n && (o *= 256); ) this[t + s] = (e / o) & 255;
+ return t + n;
+ }),
+ (l.prototype.writeUintBE = l.prototype.writeUIntBE =
+ function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), (n >>>= 0), !r)) {
+ T(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
+ }
+ let o = n - 1,
+ s = 1;
+ for (this[t + o] = 255 & e; --o >= 0 && (s *= 256); ) this[t + o] = (e / s) & 255;
+ return t + n;
+ }),
+ (l.prototype.writeUint8 = l.prototype.writeUInt8 =
+ function (e, t, n) {
+ return (e = +e), (t >>>= 0), n || T(this, e, t, 1, 255, 0), (this[t] = 255 & e), t + 1;
+ }),
+ (l.prototype.writeUint16LE = l.prototype.writeUInt16LE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 65535, 0),
+ (this[t] = 255 & e),
+ (this[t + 1] = e >>> 8),
+ t + 2
+ );
+ }),
+ (l.prototype.writeUint16BE = l.prototype.writeUInt16BE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 65535, 0),
+ (this[t] = e >>> 8),
+ (this[t + 1] = 255 & e),
+ t + 2
+ );
+ }),
+ (l.prototype.writeUint32LE = l.prototype.writeUInt32LE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(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
+ );
+ }),
+ (l.prototype.writeUint32BE = l.prototype.writeUInt32BE =
+ function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(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
+ );
+ }),
+ (l.prototype.writeBigUInt64LE = X(function (e, t = 0) {
+ return R(this, e, t, BigInt(0), BigInt('0xffffffffffffffff'));
+ })),
+ (l.prototype.writeBigUInt64BE = X(function (e, t = 0) {
+ return M(this, e, t, BigInt(0), BigInt('0xffffffffffffffff'));
+ })),
+ (l.prototype.writeIntLE = function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), !r)) {
+ const r = Math.pow(2, 8 * n - 1);
+ T(this, e, t, n, r - 1, -r);
+ }
+ let o = 0,
+ s = 1,
+ i = 0;
+ for (this[t] = 255 & e; ++o < n && (s *= 256); )
+ e < 0 && 0 === i && 0 !== this[t + o - 1] && (i = 1), (this[t + o] = (((e / s) >> 0) - i) & 255);
+ return t + n;
+ }),
+ (l.prototype.writeIntBE = function (e, t, n, r) {
+ if (((e = +e), (t >>>= 0), !r)) {
+ const r = Math.pow(2, 8 * n - 1);
+ T(this, e, t, n, r - 1, -r);
+ }
+ let o = n - 1,
+ s = 1,
+ i = 0;
+ for (this[t + o] = 255 & e; --o >= 0 && (s *= 256); )
+ e < 0 && 0 === i && 0 !== this[t + o + 1] && (i = 1), (this[t + o] = (((e / s) >> 0) - i) & 255);
+ return t + n;
+ }),
+ (l.prototype.writeInt8 = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 1, 127, -128),
+ e < 0 && (e = 255 + e + 1),
+ (this[t] = 255 & e),
+ t + 1
+ );
+ }),
+ (l.prototype.writeInt16LE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 32767, -32768),
+ (this[t] = 255 & e),
+ (this[t + 1] = e >>> 8),
+ t + 2
+ );
+ }),
+ (l.prototype.writeInt16BE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(this, e, t, 2, 32767, -32768),
+ (this[t] = e >>> 8),
+ (this[t + 1] = 255 & e),
+ t + 2
+ );
+ }),
+ (l.prototype.writeInt32LE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(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
+ );
+ }),
+ (l.prototype.writeInt32BE = function (e, t, n) {
+ return (
+ (e = +e),
+ (t >>>= 0),
+ n || T(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
+ );
+ }),
+ (l.prototype.writeBigInt64LE = X(function (e, t = 0) {
+ return R(this, e, t, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'));
+ })),
+ (l.prototype.writeBigInt64BE = X(function (e, t = 0) {
+ return M(this, e, t, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'));
+ })),
+ (l.prototype.writeFloatLE = function (e, t, n) {
+ return F(this, e, t, !0, n);
+ }),
+ (l.prototype.writeFloatBE = function (e, t, n) {
+ return F(this, e, t, !1, n);
+ }),
+ (l.prototype.writeDoubleLE = function (e, t, n) {
+ return L(this, e, t, !0, n);
+ }),
+ (l.prototype.writeDoubleBE = function (e, t, n) {
+ return L(this, e, t, !1, n);
+ }),
+ (l.prototype.copy = function (e, t, n, r) {
+ if (!l.isBuffer(e)) throw new TypeError('argument should be a Buffer');
+ if (
+ (n || (n = 0),
+ r || 0 === r || (r = this.length),
+ t >= e.length && (t = e.length),
+ t || (t = 0),
+ r > 0 && r < n && (r = n),
+ r === n)
+ )
+ return 0;
+ if (0 === e.length || 0 === this.length) return 0;
+ if (t < 0) throw new RangeError('targetStart out of bounds');
+ if (n < 0 || n >= this.length) throw new RangeError('Index out of range');
+ if (r < 0) throw new RangeError('sourceEnd out of bounds');
+ r > this.length && (r = this.length), e.length - t < r - n && (r = e.length - t + n);
+ const o = r - n;
+ return (
+ this === e && 'function' == typeof Uint8Array.prototype.copyWithin
+ ? this.copyWithin(t, n, r)
+ : Uint8Array.prototype.set.call(e, this.subarray(n, r), t),
+ o
+ );
+ }),
+ (l.prototype.fill = function (e, t, n, r) {
+ if ('string' == typeof e) {
+ if (
+ ('string' == typeof t
+ ? ((r = t), (t = 0), (n = this.length))
+ : 'string' == typeof n && ((r = n), (n = this.length)),
+ void 0 !== r && 'string' != typeof r)
+ )
+ throw new TypeError('encoding must be a string');
+ if ('string' == typeof r && !l.isEncoding(r)) throw new TypeError('Unknown encoding: ' + r);
+ if (1 === e.length) {
+ const t = e.charCodeAt(0);
+ (('utf8' === r && t < 128) || 'latin1' === r) && (e = t);
+ }
+ } else 'number' == typeof e ? (e &= 255) : 'boolean' == typeof e && (e = Number(e));
+ if (t < 0 || this.length < t || this.length < n) throw new RangeError('Out of range index');
+ if (n <= t) return this;
+ let o;
+ if (((t >>>= 0), (n = void 0 === n ? this.length : n >>> 0), e || (e = 0), 'number' == typeof e))
+ for (o = t; o < n; ++o) this[o] = e;
+ else {
+ const s = l.isBuffer(e) ? e : l.from(e, r),
+ i = s.length;
+ if (0 === i) throw new TypeError('The value "' + e + '" is invalid for argument "value"');
+ for (o = 0; o < n - t; ++o) this[o + t] = s[o % i];
+ }
+ return this;
+ });
+ const B = {};
+ function $(e, t, n) {
+ B[e] = class extends n {
+ constructor() {
+ super(),
+ Object.defineProperty(this, 'message', {
+ value: t.apply(this, arguments),
+ writable: !0,
+ configurable: !0,
+ }),
+ (this.name = `${this.name} [${e}]`),
+ this.stack,
+ delete this.name;
+ }
+ get code() {
+ return e;
+ }
+ set code(e) {
+ Object.defineProperty(this, 'code', { configurable: !0, enumerable: !0, value: e, writable: !0 });
+ }
+ toString() {
+ return `${this.name} [${e}]: ${this.message}`;
+ }
+ };
+ }
+ function q(e) {
+ let t = '',
+ n = e.length;
+ const r = '-' === e[0] ? 1 : 0;
+ for (; n >= r + 4; n -= 3) t = `_${e.slice(n - 3, n)}${t}`;
+ return `${e.slice(0, n)}${t}`;
+ }
+ function U(e, t, n, r, o, s) {
+ if (e > n || e < t) {
+ const r = 'bigint' == typeof t ? 'n' : '';
+ let o;
+ throw (
+ ((o =
+ s > 3
+ ? 0 === t || t === BigInt(0)
+ ? `>= 0${r} and < 2${r} ** ${8 * (s + 1)}${r}`
+ : `>= -(2${r} ** ${8 * (s + 1) - 1}${r}) and < 2 ** ${8 * (s + 1) - 1}${r}`
+ : `>= ${t}${r} and <= ${n}${r}`),
+ new B.ERR_OUT_OF_RANGE('value', o, e))
+ );
+ }
+ !(function (e, t, n) {
+ z(t, 'offset'), (void 0 !== e[t] && void 0 !== e[t + n]) || V(t, e.length - (n + 1));
+ })(r, o, s);
+ }
+ function z(e, t) {
+ if ('number' != typeof e) throw new B.ERR_INVALID_ARG_TYPE(t, 'number', e);
+ }
+ function V(e, t, n) {
+ if (Math.floor(e) !== e) throw (z(e, n), new B.ERR_OUT_OF_RANGE(n || 'offset', 'an integer', e));
+ if (t < 0) throw new B.ERR_BUFFER_OUT_OF_BOUNDS();
+ throw new B.ERR_OUT_OF_RANGE(n || 'offset', `>= ${n ? 1 : 0} and <= ${t}`, e);
+ }
+ $(
+ 'ERR_BUFFER_OUT_OF_BOUNDS',
+ function (e) {
+ return e ? `${e} is outside of buffer bounds` : 'Attempt to access memory outside buffer bounds';
+ },
+ RangeError
+ ),
+ $(
+ 'ERR_INVALID_ARG_TYPE',
+ function (e, t) {
+ return `The "${e}" argument must be of type number. Received type ${typeof t}`;
+ },
+ TypeError
+ ),
+ $(
+ 'ERR_OUT_OF_RANGE',
+ function (e, t, n) {
+ let r = `The value of "${e}" is out of range.`,
+ o = n;
+ return (
+ Number.isInteger(n) && Math.abs(n) > 2 ** 32
+ ? (o = q(String(n)))
+ : 'bigint' == typeof n &&
+ ((o = String(n)),
+ (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (o = q(o)),
+ (o += 'n')),
+ (r += ` It must be ${t}. Received ${o}`),
+ r
+ );
+ },
+ RangeError
+ );
+ const W = /[^+/0-9A-Za-z-_]/g;
+ function J(e, t) {
+ let n;
+ t = t || 1 / 0;
+ const r = e.length;
+ let o = null;
+ const s = [];
+ for (let i = 0; i < r; ++i) {
+ if (((n = e.charCodeAt(i)), n > 55295 && n < 57344)) {
+ if (!o) {
+ if (n > 56319) {
+ (t -= 3) > -1 && s.push(239, 191, 189);
+ continue;
+ }
+ if (i + 1 === r) {
+ (t -= 3) > -1 && s.push(239, 191, 189);
+ continue;
+ }
+ o = n;
+ continue;
+ }
+ if (n < 56320) {
+ (t -= 3) > -1 && s.push(239, 191, 189), (o = n);
+ continue;
+ }
+ n = 65536 + (((o - 55296) << 10) | (n - 56320));
+ } else o && (t -= 3) > -1 && s.push(239, 191, 189);
+ if (((o = null), n < 128)) {
+ if ((t -= 1) < 0) break;
+ s.push(n);
+ } else if (n < 2048) {
+ if ((t -= 2) < 0) break;
+ s.push((n >> 6) | 192, (63 & n) | 128);
+ } else if (n < 65536) {
+ if ((t -= 3) < 0) break;
+ s.push((n >> 12) | 224, ((n >> 6) & 63) | 128, (63 & n) | 128);
+ } else {
+ if (!(n < 1114112)) throw new Error('Invalid code point');
+ if ((t -= 4) < 0) break;
+ s.push((n >> 18) | 240, ((n >> 12) & 63) | 128, ((n >> 6) & 63) | 128, (63 & n) | 128);
+ }
+ }
+ return s;
+ }
+ function K(e) {
+ return r.toByteArray(
+ (function (e) {
+ if ((e = (e = e.split('=')[0]).trim().replace(W, '')).length < 2) return '';
+ for (; e.length % 4 != 0; ) e += '=';
+ return e;
+ })(e)
+ );
+ }
+ function H(e, t, n, r) {
+ let o;
+ for (o = 0; o < r && !(o + n >= t.length || o >= e.length); ++o) t[o + n] = e[o];
+ return o;
+ }
+ function G(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;
+ }
+ const Y = (function () {
+ const e = '0123456789abcdef',
+ t = new Array(256);
+ for (let n = 0; n < 16; ++n) {
+ const r = 16 * n;
+ for (let o = 0; o < 16; ++o) t[r + o] = e[n] + e[o];
+ }
+ return t;
+ })();
+ function X(e) {
+ return 'undefined' == typeof BigInt ? Q : e;
+ }
+ function Q() {
+ throw new Error('BigInt not supported');
+ }
+ },
+ 21924: (e, t, n) => {
+ 'use strict';
+ var r = n(40210),
+ o = n(55559),
+ s = o(r('String.prototype.indexOf'));
+ e.exports = function (e, t) {
+ var n = r(e, !!t);
+ return 'function' == typeof n && s(e, '.prototype.') > -1 ? o(n) : n;
+ };
+ },
+ 55559: (e, t, n) => {
+ 'use strict';
+ var r = n(58612),
+ o = n(40210),
+ s = o('%Function.prototype.apply%'),
+ i = o('%Function.prototype.call%'),
+ a = o('%Reflect.apply%', !0) || r.call(i, s),
+ l = o('%Object.getOwnPropertyDescriptor%', !0),
+ c = o('%Object.defineProperty%', !0),
+ u = o('%Math.max%');
+ if (c)
+ try {
+ c({}, 'a', { value: 1 });
+ } catch (e) {
+ c = null;
+ }
+ e.exports = function (e) {
+ var t = a(r, i, arguments);
+ l &&
+ c &&
+ l(t, 'length').configurable &&
+ c(t, 'length', { value: 1 + u(0, e.length - (arguments.length - 1)) });
+ return t;
+ };
+ var p = function () {
+ return a(r, s, arguments);
+ };
+ c ? c(e.exports, 'apply', { value: p }) : (e.exports.apply = p);
+ },
+ 94184: (e, t) => {
+ var n;
+ !(function () {
+ 'use strict';
+ var r = {}.hasOwnProperty;
+ function o() {
+ for (var e = [], t = 0; t < arguments.length; t++) {
+ var n = arguments[t];
+ if (n) {
+ var s = typeof n;
+ if ('string' === s || 'number' === s) e.push(n);
+ else if (Array.isArray(n)) {
+ if (n.length) {
+ var i = o.apply(null, n);
+ i && e.push(i);
+ }
+ } else if ('object' === s) {
+ if (n.toString !== Object.prototype.toString && !n.toString.toString().includes('[native code]')) {
+ e.push(n.toString());
+ continue;
+ }
+ for (var a in n) r.call(n, a) && n[a] && e.push(a);
+ }
+ }
+ }
+ return e.join(' ');
+ }
+ e.exports
+ ? ((o.default = o), (e.exports = o))
+ : void 0 ===
+ (n = function () {
+ return o;
+ }.apply(t, [])) || (e.exports = n);
+ })();
+ },
+ 76489: (e, t) => {
+ 'use strict';
+ (t.parse = function (e, t) {
+ if ('string' != typeof e) throw new TypeError('argument str must be a string');
+ var n = {},
+ r = (t || {}).decode || o,
+ s = 0;
+ for (; s < e.length; ) {
+ var a = e.indexOf('=', s);
+ if (-1 === a) break;
+ var l = e.indexOf(';', s);
+ if (-1 === l) l = e.length;
+ else if (l < a) {
+ s = e.lastIndexOf(';', a - 1) + 1;
+ continue;
+ }
+ var c = e.slice(s, a).trim();
+ if (void 0 === n[c]) {
+ var u = e.slice(a + 1, l).trim();
+ 34 === u.charCodeAt(0) && (u = u.slice(1, -1)), (n[c] = i(u, r));
+ }
+ s = l + 1;
+ }
+ return n;
+ }),
+ (t.serialize = function (e, t, o) {
+ var i = o || {},
+ a = i.encode || s;
+ if ('function' != typeof a) throw new TypeError('option encode is invalid');
+ if (!r.test(e)) throw new TypeError('argument name is invalid');
+ var l = a(t);
+ if (l && !r.test(l)) throw new TypeError('argument val is invalid');
+ var c = e + '=' + l;
+ if (null != i.maxAge) {
+ var u = i.maxAge - 0;
+ if (isNaN(u) || !isFinite(u)) throw new TypeError('option maxAge is invalid');
+ c += '; Max-Age=' + Math.floor(u);
+ }
+ if (i.domain) {
+ if (!r.test(i.domain)) throw new TypeError('option domain is invalid');
+ c += '; Domain=' + i.domain;
+ }
+ if (i.path) {
+ if (!r.test(i.path)) throw new TypeError('option path is invalid');
+ c += '; Path=' + i.path;
+ }
+ if (i.expires) {
+ var p = i.expires;
+ if (
+ !(function (e) {
+ return '[object Date]' === n.call(e) || e instanceof Date;
+ })(p) ||
+ isNaN(p.valueOf())
+ )
+ throw new TypeError('option expires is invalid');
+ c += '; Expires=' + p.toUTCString();
+ }
+ i.httpOnly && (c += '; HttpOnly');
+ i.secure && (c += '; Secure');
+ if (i.priority) {
+ switch ('string' == typeof i.priority ? i.priority.toLowerCase() : i.priority) {
+ case 'low':
+ c += '; Priority=Low';
+ break;
+ case 'medium':
+ c += '; Priority=Medium';
+ break;
+ case 'high':
+ c += '; Priority=High';
+ break;
+ default:
+ throw new TypeError('option priority is invalid');
+ }
+ }
+ if (i.sameSite) {
+ switch ('string' == typeof i.sameSite ? i.sameSite.toLowerCase() : i.sameSite) {
+ case !0:
+ c += '; SameSite=Strict';
+ break;
+ case 'lax':
+ c += '; SameSite=Lax';
+ break;
+ case 'strict':
+ c += '; SameSite=Strict';
+ break;
+ case 'none':
+ c += '; SameSite=None';
+ break;
+ default:
+ throw new TypeError('option sameSite is invalid');
+ }
+ }
+ return c;
+ });
+ var n = Object.prototype.toString,
+ r = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
+ function o(e) {
+ return -1 !== e.indexOf('%') ? decodeURIComponent(e) : e;
+ }
+ function s(e) {
+ return encodeURIComponent(e);
+ }
+ function i(e, t) {
+ try {
+ return t(e);
+ } catch (t) {
+ return e;
+ }
+ }
+ },
+ 20640: (e, t, n) => {
+ 'use strict';
+ var r = n(11742),
+ o = { 'text/plain': 'Text', 'text/html': 'Url', default: 'Text' };
+ e.exports = function (e, t) {
+ var n,
+ s,
+ i,
+ a,
+ l,
+ c,
+ u = !1;
+ t || (t = {}), (n = t.debug || !1);
+ try {
+ if (
+ ((i = r()),
+ (a = document.createRange()),
+ (l = document.getSelection()),
+ ((c = document.createElement('span')).textContent = e),
+ (c.ariaHidden = 'true'),
+ (c.style.all = 'unset'),
+ (c.style.position = 'fixed'),
+ (c.style.top = 0),
+ (c.style.clip = 'rect(0, 0, 0, 0)'),
+ (c.style.whiteSpace = 'pre'),
+ (c.style.webkitUserSelect = 'text'),
+ (c.style.MozUserSelect = 'text'),
+ (c.style.msUserSelect = 'text'),
+ (c.style.userSelect = 'text'),
+ c.addEventListener('copy', function (r) {
+ if ((r.stopPropagation(), t.format))
+ if ((r.preventDefault(), void 0 === r.clipboardData)) {
+ n && console.warn('unable to use e.clipboardData'),
+ n && console.warn('trying IE specific stuff'),
+ window.clipboardData.clearData();
+ var s = o[t.format] || o.default;
+ window.clipboardData.setData(s, e);
+ } else r.clipboardData.clearData(), r.clipboardData.setData(t.format, e);
+ t.onCopy && (r.preventDefault(), t.onCopy(r.clipboardData));
+ }),
+ document.body.appendChild(c),
+ a.selectNodeContents(c),
+ l.addRange(a),
+ !document.execCommand('copy'))
+ )
+ throw new Error('copy command was unsuccessful');
+ u = !0;
+ } catch (r) {
+ n && console.error('unable to copy using execCommand: ', r),
+ n && console.warn('trying IE specific stuff');
+ try {
+ window.clipboardData.setData(t.format || 'text', e),
+ t.onCopy && t.onCopy(window.clipboardData),
+ (u = !0);
+ } catch (r) {
+ n && console.error('unable to copy using clipboardData: ', r),
+ n && console.error('falling back to prompt'),
+ (s = (function (e) {
+ var t = (/mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl') + '+C';
+ return e.replace(/#{\s*key\s*}/g, t);
+ })('message' in t ? t.message : 'Copy to clipboard: #{key}, Enter')),
+ window.prompt(s, e);
+ }
+ } finally {
+ l && ('function' == typeof l.removeRange ? l.removeRange(a) : l.removeAllRanges()),
+ c && document.body.removeChild(c),
+ i();
+ }
+ return u;
+ };
+ },
+ 90093: (e, t, n) => {
+ var r = n(28196);
+ e.exports = r;
+ },
+ 3688: (e, t, n) => {
+ var r = n(11955);
+ e.exports = r;
+ },
+ 83838: (e, t, n) => {
+ var r = n(46279);
+ e.exports = r;
+ },
+ 15684: (e, t, n) => {
+ var r = n(19373);
+ e.exports = r;
+ },
+ 81331: (e, t, n) => {
+ var r = n(52759);
+ e.exports = r;
+ },
+ 65362: (e, t, n) => {
+ var r = n(63383);
+ e.exports = r;
+ },
+ 91254: (e, t, n) => {
+ var r = n(57396);
+ e.exports = r;
+ },
+ 43536: (e, t, n) => {
+ var r = n(41910);
+ e.exports = r;
+ },
+ 37331: (e, t, n) => {
+ var r = n(79427);
+ e.exports = r;
+ },
+ 68522: (e, t, n) => {
+ var r = n(62857);
+ e.exports = r;
+ },
+ 73151: (e, t, n) => {
+ var r = n(9534);
+ e.exports = r;
+ },
+ 45012: (e, t, n) => {
+ var r = n(23059);
+ e.exports = r;
+ },
+ 80281: (e, t, n) => {
+ var r = n(92547);
+ n(97522), n(43975), n(45414), (e.exports = r);
+ },
+ 40031: (e, t, n) => {
+ var r = n(46509);
+ e.exports = r;
+ },
+ 17487: (e, t, n) => {
+ var r = n(35774);
+ e.exports = r;
+ },
+ 54493: (e, t, n) => {
+ n(77971), n(53242);
+ var r = n(54058);
+ e.exports = r.Array.from;
+ },
+ 24034: (e, t, n) => {
+ n(92737);
+ var r = n(54058);
+ e.exports = r.Array.isArray;
+ },
+ 15367: (e, t, n) => {
+ n(85906);
+ var r = n(35703);
+ e.exports = r('Array').concat;
+ },
+ 12710: (e, t, n) => {
+ n(66274), n(55967);
+ var r = n(35703);
+ e.exports = r('Array').entries;
+ },
+ 51459: (e, t, n) => {
+ n(48851);
+ var r = n(35703);
+ e.exports = r('Array').every;
+ },
+ 6172: (e, t, n) => {
+ n(80290);
+ var r = n(35703);
+ e.exports = r('Array').fill;
+ },
+ 62383: (e, t, n) => {
+ n(21501);
+ var r = n(35703);
+ e.exports = r('Array').filter;
+ },
+ 60009: (e, t, n) => {
+ n(44929);
+ var r = n(35703);
+ e.exports = r('Array').findIndex;
+ },
+ 17671: (e, t, n) => {
+ n(80833);
+ var r = n(35703);
+ e.exports = r('Array').find;
+ },
+ 99324: (e, t, n) => {
+ n(2437);
+ var r = n(35703);
+ e.exports = r('Array').forEach;
+ },
+ 80991: (e, t, n) => {
+ n(97690);
+ var r = n(35703);
+ e.exports = r('Array').includes;
+ },
+ 8700: (e, t, n) => {
+ n(99076);
+ var r = n(35703);
+ e.exports = r('Array').indexOf;
+ },
+ 95909: (e, t, n) => {
+ n(66274), n(55967);
+ var r = n(35703);
+ e.exports = r('Array').keys;
+ },
+ 6442: (e, t, n) => {
+ n(75915);
+ var r = n(35703);
+ e.exports = r('Array').lastIndexOf;
+ },
+ 23866: (e, t, n) => {
+ n(68787);
+ var r = n(35703);
+ e.exports = r('Array').map;
+ },
+ 9896: (e, t, n) => {
+ n(48528);
+ var r = n(35703);
+ e.exports = r('Array').push;
+ },
+ 52999: (e, t, n) => {
+ n(81876);
+ var r = n(35703);
+ e.exports = r('Array').reduce;
+ },
+ 24900: (e, t, n) => {
+ n(60186);
+ var r = n(35703);
+ e.exports = r('Array').slice;
+ },
+ 3824: (e, t, n) => {
+ n(36026);
+ var r = n(35703);
+ e.exports = r('Array').some;
+ },
+ 2948: (e, t, n) => {
+ n(4115);
+ var r = n(35703);
+ e.exports = r('Array').sort;
+ },
+ 78209: (e, t, n) => {
+ n(98611);
+ var r = n(35703);
+ e.exports = r('Array').splice;
+ },
+ 14423: (e, t, n) => {
+ n(66274), n(55967);
+ var r = n(35703);
+ e.exports = r('Array').values;
+ },
+ 81103: (e, t, n) => {
+ n(95160);
+ var r = n(54058);
+ e.exports = r.Date.now;
+ },
+ 27700: (e, t, n) => {
+ n(73381);
+ var r = n(35703);
+ e.exports = r('Function').bind;
+ },
+ 16246: (e, t, n) => {
+ var r = n(7046),
+ o = n(27700),
+ s = Function.prototype;
+ e.exports = function (e) {
+ var t = e.bind;
+ return e === s || (r(s, e) && t === s.bind) ? o : t;
+ };
+ },
+ 56043: (e, t, n) => {
+ var r = n(7046),
+ o = n(15367),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.concat;
+ return e === s || (r(s, e) && t === s.concat) ? o : t;
+ };
+ },
+ 13160: (e, t, n) => {
+ var r = n(7046),
+ o = n(51459),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.every;
+ return e === s || (r(s, e) && t === s.every) ? o : t;
+ };
+ },
+ 80446: (e, t, n) => {
+ var r = n(7046),
+ o = n(6172),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.fill;
+ return e === s || (r(s, e) && t === s.fill) ? o : t;
+ };
+ },
+ 2480: (e, t, n) => {
+ var r = n(7046),
+ o = n(62383),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.filter;
+ return e === s || (r(s, e) && t === s.filter) ? o : t;
+ };
+ },
+ 7147: (e, t, n) => {
+ var r = n(7046),
+ o = n(60009),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.findIndex;
+ return e === s || (r(s, e) && t === s.findIndex) ? o : t;
+ };
+ },
+ 32236: (e, t, n) => {
+ var r = n(7046),
+ o = n(17671),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.find;
+ return e === s || (r(s, e) && t === s.find) ? o : t;
+ };
+ },
+ 58557: (e, t, n) => {
+ var r = n(7046),
+ o = n(80991),
+ s = n(21631),
+ i = Array.prototype,
+ a = String.prototype;
+ e.exports = function (e) {
+ var t = e.includes;
+ return e === i || (r(i, e) && t === i.includes)
+ ? o
+ : 'string' == typeof e || e === a || (r(a, e) && t === a.includes)
+ ? s
+ : t;
+ };
+ },
+ 34570: (e, t, n) => {
+ var r = n(7046),
+ o = n(8700),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.indexOf;
+ return e === s || (r(s, e) && t === s.indexOf) ? o : t;
+ };
+ },
+ 57564: (e, t, n) => {
+ var r = n(7046),
+ o = n(6442),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.lastIndexOf;
+ return e === s || (r(s, e) && t === s.lastIndexOf) ? o : t;
+ };
+ },
+ 88287: (e, t, n) => {
+ var r = n(7046),
+ o = n(23866),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.map;
+ return e === s || (r(s, e) && t === s.map) ? o : t;
+ };
+ },
+ 93993: (e, t, n) => {
+ var r = n(7046),
+ o = n(9896),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.push;
+ return e === s || (r(s, e) && t === s.push) ? o : t;
+ };
+ },
+ 68025: (e, t, n) => {
+ var r = n(7046),
+ o = n(52999),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.reduce;
+ return e === s || (r(s, e) && t === s.reduce) ? o : t;
+ };
+ },
+ 59257: (e, t, n) => {
+ var r = n(7046),
+ o = n(80454),
+ s = String.prototype;
+ e.exports = function (e) {
+ var t = e.repeat;
+ return 'string' == typeof e || e === s || (r(s, e) && t === s.repeat) ? o : t;
+ };
+ },
+ 69601: (e, t, n) => {
+ var r = n(7046),
+ o = n(24900),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.slice;
+ return e === s || (r(s, e) && t === s.slice) ? o : t;
+ };
+ },
+ 28299: (e, t, n) => {
+ var r = n(7046),
+ o = n(3824),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.some;
+ return e === s || (r(s, e) && t === s.some) ? o : t;
+ };
+ },
+ 69355: (e, t, n) => {
+ var r = n(7046),
+ o = n(2948),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.sort;
+ return e === s || (r(s, e) && t === s.sort) ? o : t;
+ };
+ },
+ 18339: (e, t, n) => {
+ var r = n(7046),
+ o = n(78209),
+ s = Array.prototype;
+ e.exports = function (e) {
+ var t = e.splice;
+ return e === s || (r(s, e) && t === s.splice) ? o : t;
+ };
+ },
+ 71611: (e, t, n) => {
+ var r = n(7046),
+ o = n(3269),
+ s = String.prototype;
+ e.exports = function (e) {
+ var t = e.startsWith;
+ return 'string' == typeof e || e === s || (r(s, e) && t === s.startsWith) ? o : t;
+ };
+ },
+ 62774: (e, t, n) => {
+ var r = n(7046),
+ o = n(13348),
+ s = String.prototype;
+ e.exports = function (e) {
+ var t = e.trim;
+ return 'string' == typeof e || e === s || (r(s, e) && t === s.trim) ? o : t;
+ };
+ },
+ 84426: (e, t, n) => {
+ n(32619);
+ var r = n(54058),
+ o = n(79730);
+ r.JSON || (r.JSON = { stringify: JSON.stringify }),
+ (e.exports = function (e, t, n) {
+ return o(r.JSON.stringify, null, arguments);
+ });
+ },
+ 91018: (e, t, n) => {
+ n(66274), n(37501), n(55967), n(77971);
+ var r = n(54058);
+ e.exports = r.Map;
+ },
+ 97849: (e, t, n) => {
+ n(54973), (e.exports = Math.pow(2, -52));
+ },
+ 3820: (e, t, n) => {
+ n(30800);
+ var r = n(54058);
+ e.exports = r.Number.isInteger;
+ },
+ 45999: (e, t, n) => {
+ n(49221);
+ var r = n(54058);
+ e.exports = r.Object.assign;
+ },
+ 7702: (e, t, n) => {
+ n(74979);
+ var r = n(54058).Object,
+ o = (e.exports = function (e, t) {
+ return r.defineProperties(e, t);
+ });
+ r.defineProperties.sham && (o.sham = !0);
+ },
+ 48171: (e, t, n) => {
+ n(86450);
+ var r = n(54058).Object,
+ o = (e.exports = function (e, t, n) {
+ return r.defineProperty(e, t, n);
+ });
+ r.defineProperty.sham && (o.sham = !0);
+ },
+ 73081: (e, t, n) => {
+ n(94366);
+ var r = n(54058);
+ e.exports = r.Object.entries;
+ },
+ 7699: (e, t, n) => {
+ n(66274), n(28387);
+ var r = n(54058);
+ e.exports = r.Object.fromEntries;
+ },
+ 286: (e, t, n) => {
+ n(46924);
+ var r = n(54058).Object,
+ o = (e.exports = function (e, t) {
+ return r.getOwnPropertyDescriptor(e, t);
+ });
+ r.getOwnPropertyDescriptor.sham && (o.sham = !0);
+ },
+ 92766: (e, t, n) => {
+ n(88482);
+ var r = n(54058);
+ e.exports = r.Object.getOwnPropertyDescriptors;
+ },
+ 30498: (e, t, n) => {
+ n(35824);
+ var r = n(54058);
+ e.exports = r.Object.getOwnPropertySymbols;
+ },
+ 48494: (e, t, n) => {
+ n(21724);
+ var r = n(54058);
+ e.exports = r.Object.keys;
+ },
+ 98430: (e, t, n) => {
+ n(26614);
+ var r = n(54058);
+ e.exports = r.Object.values;
+ },
+ 52956: (e, t, n) => {
+ n(47627), n(66274), n(55967), n(98881), n(4560), n(91302), n(44349), n(77971);
+ var r = n(54058);
+ e.exports = r.Promise;
+ },
+ 76998: (e, t, n) => {
+ n(66274), n(55967), n(69008), n(77971);
+ var r = n(54058);
+ e.exports = r.Set;
+ },
+ 97089: (e, t, n) => {
+ n(74679);
+ var r = n(54058);
+ e.exports = r.String.raw;
+ },
+ 21631: (e, t, n) => {
+ n(11035);
+ var r = n(35703);
+ e.exports = r('String').includes;
+ },
+ 80454: (e, t, n) => {
+ n(60986);
+ var r = n(35703);
+ e.exports = r('String').repeat;
+ },
+ 3269: (e, t, n) => {
+ n(94761);
+ var r = n(35703);
+ e.exports = r('String').startsWith;
+ },
+ 13348: (e, t, n) => {
+ n(57398);
+ var r = n(35703);
+ e.exports = r('String').trim;
+ },
+ 57473: (e, t, n) => {
+ n(85906),
+ n(55967),
+ n(35824),
+ n(8555),
+ n(52615),
+ n(21732),
+ n(35903),
+ n(1825),
+ n(28394),
+ n(45915),
+ n(61766),
+ n(62737),
+ n(89911),
+ n(74315),
+ n(63131),
+ n(64714),
+ n(70659),
+ n(69120),
+ n(79413),
+ n(1502);
+ var r = n(54058);
+ e.exports = r.Symbol;
+ },
+ 24227: (e, t, n) => {
+ n(66274), n(55967), n(77971), n(1825);
+ var r = n(11477);
+ e.exports = r.f('iterator');
+ },
+ 62978: (e, t, n) => {
+ n(18084), n(63131);
+ var r = n(11477);
+ e.exports = r.f('toPrimitive');
+ },
+ 32304: (e, t, n) => {
+ n(66274), n(55967), n(54334);
+ var r = n(54058);
+ e.exports = r.WeakMap;
+ },
+ 29567: (e, t, n) => {
+ n(66274), n(55967), n(1773);
+ var r = n(54058);
+ e.exports = r.WeakSet;
+ },
+ 14122: (e, t, n) => {
+ e.exports = n(89097);
+ },
+ 44442: (e, t, n) => {
+ e.exports = n(51675);
+ },
+ 57152: (e, t, n) => {
+ e.exports = n(82507);
+ },
+ 69447: (e, t, n) => {
+ e.exports = n(628);
+ },
+ 1449: (e, t, n) => {
+ e.exports = n(34501);
+ },
+ 60269: (e, t, n) => {
+ e.exports = n(76936);
+ },
+ 70573: (e, t, n) => {
+ e.exports = n(18180);
+ },
+ 73685: (e, t, n) => {
+ e.exports = n(80621);
+ },
+ 27533: (e, t, n) => {
+ e.exports = n(22948);
+ },
+ 39057: (e, t, n) => {
+ e.exports = n(82108);
+ },
+ 84710: (e, t, n) => {
+ e.exports = n(14058);
+ },
+ 93799: (e, t, n) => {
+ e.exports = n(92093);
+ },
+ 86600: (e, t, n) => {
+ e.exports = n(52201);
+ },
+ 9759: (e, t, n) => {
+ e.exports = n(27398);
+ },
+ 71384: (e, t, n) => {
+ e.exports = n(26189);
+ },
+ 89097: (e, t, n) => {
+ var r = n(90093);
+ e.exports = r;
+ },
+ 51675: (e, t, n) => {
+ var r = n(3688);
+ e.exports = r;
+ },
+ 82507: (e, t, n) => {
+ var r = n(83838);
+ e.exports = r;
+ },
+ 628: (e, t, n) => {
+ var r = n(15684);
+ e.exports = r;
+ },
+ 34501: (e, t, n) => {
+ var r = n(81331);
+ e.exports = r;
+ },
+ 76936: (e, t, n) => {
+ var r = n(65362);
+ e.exports = r;
+ },
+ 18180: (e, t, n) => {
+ var r = n(91254);
+ e.exports = r;
+ },
+ 80621: (e, t, n) => {
+ var r = n(43536);
+ e.exports = r;
+ },
+ 22948: (e, t, n) => {
+ var r = n(37331);
+ e.exports = r;
+ },
+ 82108: (e, t, n) => {
+ var r = n(68522);
+ e.exports = r;
+ },
+ 14058: (e, t, n) => {
+ var r = n(73151);
+ e.exports = r;
+ },
+ 92093: (e, t, n) => {
+ var r = n(45012);
+ e.exports = r;
+ },
+ 52201: (e, t, n) => {
+ var r = n(80281);
+ n(28783),
+ n(97618),
+ n(6989),
+ n(65799),
+ n(46774),
+ n(22731),
+ n(85605),
+ n(31943),
+ n(80620),
+ n(36172),
+ (e.exports = r);
+ },
+ 27398: (e, t, n) => {
+ var r = n(40031);
+ e.exports = r;
+ },
+ 26189: (e, t, n) => {
+ var r = n(17487);
+ e.exports = r;
+ },
+ 24883: (e, t, n) => {
+ var r = n(57475),
+ o = n(69826),
+ s = TypeError;
+ e.exports = function (e) {
+ if (r(e)) return e;
+ throw s(o(e) + ' is not a function');
+ };
+ },
+ 174: (e, t, n) => {
+ var r = n(24284),
+ o = n(69826),
+ s = TypeError;
+ e.exports = function (e) {
+ if (r(e)) return e;
+ throw s(o(e) + ' is not a constructor');
+ };
+ },
+ 11851: (e, t, n) => {
+ var r = n(57475),
+ o = String,
+ s = TypeError;
+ e.exports = function (e) {
+ if ('object' == typeof e || r(e)) return e;
+ throw s("Can't set " + o(e) + ' as a prototype');
+ };
+ },
+ 18479: (e) => {
+ e.exports = function () {};
+ },
+ 5743: (e, t, n) => {
+ var r = n(7046),
+ o = TypeError;
+ e.exports = function (e, t) {
+ if (r(t, e)) return e;
+ throw o('Incorrect invocation');
+ };
+ },
+ 96059: (e, t, n) => {
+ var r = n(10941),
+ o = String,
+ s = TypeError;
+ e.exports = function (e) {
+ if (r(e)) return e;
+ throw s(o(e) + ' is not an object');
+ };
+ },
+ 97135: (e, t, n) => {
+ var r = n(95981);
+ e.exports = r(function () {
+ if ('function' == typeof ArrayBuffer) {
+ var e = new ArrayBuffer(8);
+ Object.isExtensible(e) && Object.defineProperty(e, 'a', { value: 8 });
+ }
+ });
+ },
+ 91860: (e, t, n) => {
+ 'use strict';
+ var r = n(89678),
+ o = n(59413),
+ s = n(10623);
+ e.exports = function (e) {
+ for (
+ var t = r(this),
+ n = s(t),
+ i = arguments.length,
+ a = o(i > 1 ? arguments[1] : void 0, n),
+ l = i > 2 ? arguments[2] : void 0,
+ c = void 0 === l ? n : o(l, n);
+ c > a;
+
+ )
+ t[a++] = e;
+ return t;
+ };
+ },
+ 56837: (e, t, n) => {
+ 'use strict';
+ var r = n(3610).forEach,
+ o = n(34194)('forEach');
+ e.exports = o
+ ? [].forEach
+ : function (e) {
+ return r(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ };
+ },
+ 11354: (e, t, n) => {
+ 'use strict';
+ var r = n(86843),
+ o = n(78834),
+ s = n(89678),
+ i = n(75196),
+ a = n(6782),
+ l = n(24284),
+ c = n(10623),
+ u = n(55449),
+ p = n(53476),
+ h = n(22902),
+ f = Array;
+ e.exports = function (e) {
+ var t = s(e),
+ n = l(this),
+ d = arguments.length,
+ m = d > 1 ? arguments[1] : void 0,
+ g = void 0 !== m;
+ g && (m = r(m, d > 2 ? arguments[2] : void 0));
+ var y,
+ v,
+ b,
+ w,
+ E,
+ x,
+ S = h(t),
+ _ = 0;
+ if (!S || (this === f && a(S)))
+ for (y = c(t), v = n ? new this(y) : f(y); y > _; _++) (x = g ? m(t[_], _) : t[_]), u(v, _, x);
+ else
+ for (E = (w = p(t, S)).next, v = n ? new this() : []; !(b = o(E, w)).done; _++)
+ (x = g ? i(w, m, [b.value, _], !0) : b.value), u(v, _, x);
+ return (v.length = _), v;
+ };
+ },
+ 31692: (e, t, n) => {
+ var r = n(74529),
+ o = n(59413),
+ s = n(10623),
+ i = function (e) {
+ return function (t, n, i) {
+ var a,
+ l = r(t),
+ c = s(l),
+ u = o(i, c);
+ if (e && n != n) {
+ for (; c > u; ) if ((a = l[u++]) != a) return !0;
+ } else for (; c > u; u++) if ((e || u in l) && l[u] === n) return e || u || 0;
+ return !e && -1;
+ };
+ };
+ e.exports = { includes: i(!0), indexOf: i(!1) };
+ },
+ 3610: (e, t, n) => {
+ var r = n(86843),
+ o = n(95329),
+ s = n(37026),
+ i = n(89678),
+ a = n(10623),
+ l = n(64692),
+ c = o([].push),
+ u = function (e) {
+ var t = 1 == e,
+ n = 2 == e,
+ o = 3 == e,
+ u = 4 == e,
+ p = 6 == e,
+ h = 7 == e,
+ f = 5 == e || p;
+ return function (d, m, g, y) {
+ for (
+ var v,
+ b,
+ w = i(d),
+ E = s(w),
+ x = r(m, g),
+ S = a(E),
+ _ = 0,
+ j = y || l,
+ O = t ? j(d, S) : n || h ? j(d, 0) : void 0;
+ S > _;
+ _++
+ )
+ if ((f || _ in E) && ((b = x((v = E[_]), _, w)), e))
+ if (t) O[_] = b;
+ else if (b)
+ switch (e) {
+ case 3:
+ return !0;
+ case 5:
+ return v;
+ case 6:
+ return _;
+ case 2:
+ c(O, v);
+ }
+ else
+ switch (e) {
+ case 4:
+ return !1;
+ case 7:
+ c(O, v);
+ }
+ return p ? -1 : o || u ? u : O;
+ };
+ };
+ e.exports = {
+ forEach: u(0),
+ map: u(1),
+ filter: u(2),
+ some: u(3),
+ every: u(4),
+ find: u(5),
+ findIndex: u(6),
+ filterReject: u(7),
+ };
+ },
+ 67145: (e, t, n) => {
+ 'use strict';
+ var r = n(79730),
+ o = n(74529),
+ s = n(62435),
+ i = n(10623),
+ a = n(34194),
+ l = Math.min,
+ c = [].lastIndexOf,
+ u = !!c && 1 / [1].lastIndexOf(1, -0) < 0,
+ p = a('lastIndexOf'),
+ h = u || !p;
+ e.exports = h
+ ? function (e) {
+ if (u) return r(c, this, arguments) || 0;
+ var t = o(this),
+ n = i(t),
+ a = n - 1;
+ for (arguments.length > 1 && (a = l(a, s(arguments[1]))), a < 0 && (a = n + a); a >= 0; a--)
+ if (a in t && t[a] === e) return a || 0;
+ return -1;
+ }
+ : c;
+ },
+ 50568: (e, t, n) => {
+ var r = n(95981),
+ o = n(99813),
+ s = n(53385),
+ i = o('species');
+ e.exports = function (e) {
+ return (
+ s >= 51 ||
+ !r(function () {
+ var t = [];
+ return (
+ ((t.constructor = {})[i] = function () {
+ return { foo: 1 };
+ }),
+ 1 !== t[e](Boolean).foo
+ );
+ })
+ );
+ };
+ },
+ 34194: (e, t, n) => {
+ 'use strict';
+ var r = n(95981);
+ e.exports = function (e, t) {
+ var n = [][e];
+ return (
+ !!n &&
+ r(function () {
+ n.call(
+ null,
+ t ||
+ function () {
+ return 1;
+ },
+ 1
+ );
+ })
+ );
+ };
+ },
+ 46499: (e, t, n) => {
+ var r = n(24883),
+ o = n(89678),
+ s = n(37026),
+ i = n(10623),
+ a = TypeError,
+ l = function (e) {
+ return function (t, n, l, c) {
+ r(n);
+ var u = o(t),
+ p = s(u),
+ h = i(u),
+ f = e ? h - 1 : 0,
+ d = e ? -1 : 1;
+ if (l < 2)
+ for (;;) {
+ if (f in p) {
+ (c = p[f]), (f += d);
+ break;
+ }
+ if (((f += d), e ? f < 0 : h <= f)) throw a('Reduce of empty array with no initial value');
+ }
+ for (; e ? f >= 0 : h > f; f += d) f in p && (c = n(c, p[f], f, u));
+ return c;
+ };
+ };
+ e.exports = { left: l(!1), right: l(!0) };
+ },
+ 89779: (e, t, n) => {
+ 'use strict';
+ var r = n(55746),
+ o = n(1052),
+ s = TypeError,
+ i = Object.getOwnPropertyDescriptor,
+ a =
+ r &&
+ !(function () {
+ if (void 0 !== this) return !0;
+ try {
+ Object.defineProperty([], 'length', { writable: !1 }).length = 1;
+ } catch (e) {
+ return e instanceof TypeError;
+ }
+ })();
+ e.exports = a
+ ? function (e, t) {
+ if (o(e) && !i(e, 'length').writable) throw s('Cannot set read only .length');
+ return (e.length = t);
+ }
+ : function (e, t) {
+ return (e.length = t);
+ };
+ },
+ 15790: (e, t, n) => {
+ var r = n(59413),
+ o = n(10623),
+ s = n(55449),
+ i = Array,
+ a = Math.max;
+ e.exports = function (e, t, n) {
+ for (var l = o(e), c = r(t, l), u = r(void 0 === n ? l : n, l), p = i(a(u - c, 0)), h = 0; c < u; c++, h++)
+ s(p, h, e[c]);
+ return (p.length = h), p;
+ };
+ },
+ 93765: (e, t, n) => {
+ var r = n(95329);
+ e.exports = r([].slice);
+ },
+ 61388: (e, t, n) => {
+ var r = n(15790),
+ o = Math.floor,
+ s = function (e, t) {
+ var n = e.length,
+ l = o(n / 2);
+ return n < 8 ? i(e, t) : a(e, s(r(e, 0, l), t), s(r(e, l), t), t);
+ },
+ i = function (e, t) {
+ for (var n, r, o = e.length, s = 1; s < o; ) {
+ for (r = s, n = e[s]; r && t(e[r - 1], n) > 0; ) e[r] = e[--r];
+ r !== s++ && (e[r] = n);
+ }
+ return e;
+ },
+ a = function (e, t, n, r) {
+ for (var o = t.length, s = n.length, i = 0, a = 0; i < o || a < s; )
+ e[i + a] = i < o && a < s ? (r(t[i], n[a]) <= 0 ? t[i++] : n[a++]) : i < o ? t[i++] : n[a++];
+ return e;
+ };
+ e.exports = s;
+ },
+ 5693: (e, t, n) => {
+ var r = n(1052),
+ o = n(24284),
+ s = n(10941),
+ i = n(99813)('species'),
+ a = Array;
+ e.exports = function (e) {
+ var t;
+ return (
+ r(e) &&
+ ((t = e.constructor),
+ ((o(t) && (t === a || r(t.prototype))) || (s(t) && null === (t = t[i]))) && (t = void 0)),
+ void 0 === t ? a : t
+ );
+ };
+ },
+ 64692: (e, t, n) => {
+ var r = n(5693);
+ e.exports = function (e, t) {
+ return new (r(e))(0 === t ? 0 : t);
+ };
+ },
+ 75196: (e, t, n) => {
+ var r = n(96059),
+ o = n(7609);
+ e.exports = function (e, t, n, s) {
+ try {
+ return s ? t(r(n)[0], n[1]) : t(n);
+ } catch (t) {
+ o(e, 'throw', t);
+ }
+ };
+ },
+ 21385: (e, t, n) => {
+ var r = n(99813)('iterator'),
+ o = !1;
+ try {
+ var s = 0,
+ i = {
+ next: function () {
+ return { done: !!s++ };
+ },
+ return: function () {
+ o = !0;
+ },
+ };
+ (i[r] = function () {
+ return this;
+ }),
+ Array.from(i, function () {
+ throw 2;
+ });
+ } catch (e) {}
+ e.exports = function (e, t) {
+ if (!t && !o) return !1;
+ var n = !1;
+ try {
+ var s = {};
+ (s[r] = function () {
+ return {
+ next: function () {
+ return { done: (n = !0) };
+ },
+ };
+ }),
+ e(s);
+ } catch (e) {}
+ return n;
+ };
+ },
+ 82532: (e, t, n) => {
+ var r = n(95329),
+ o = r({}.toString),
+ s = r(''.slice);
+ e.exports = function (e) {
+ return s(o(e), 8, -1);
+ };
+ },
+ 9697: (e, t, n) => {
+ var r = n(22885),
+ o = n(57475),
+ s = n(82532),
+ i = n(99813)('toStringTag'),
+ a = Object,
+ l =
+ 'Arguments' ==
+ s(
+ (function () {
+ return arguments;
+ })()
+ );
+ e.exports = r
+ ? s
+ : function (e) {
+ var t, n, r;
+ return void 0 === e
+ ? 'Undefined'
+ : null === e
+ ? 'Null'
+ : 'string' ==
+ typeof (n = (function (e, t) {
+ try {
+ return e[t];
+ } catch (e) {}
+ })((t = a(e)), i))
+ ? n
+ : l
+ ? s(t)
+ : 'Object' == (r = s(t)) && o(t.callee)
+ ? 'Arguments'
+ : r;
+ };
+ },
+ 85616: (e, t, n) => {
+ 'use strict';
+ var r = n(29290),
+ o = n(29202),
+ s = n(94380),
+ i = n(86843),
+ a = n(5743),
+ l = n(82119),
+ c = n(93091),
+ u = n(75105),
+ p = n(23538),
+ h = n(94431),
+ f = n(55746),
+ d = n(21647).fastKey,
+ m = n(45402),
+ g = m.set,
+ y = m.getterFor;
+ e.exports = {
+ getConstructor: function (e, t, n, u) {
+ var p = e(function (e, o) {
+ a(e, h),
+ g(e, { type: t, index: r(null), first: void 0, last: void 0, size: 0 }),
+ f || (e.size = 0),
+ l(o) || c(o, e[u], { that: e, AS_ENTRIES: n });
+ }),
+ h = p.prototype,
+ m = y(t),
+ v = function (e, t, n) {
+ var r,
+ o,
+ s = m(e),
+ i = b(e, t);
+ return (
+ i
+ ? (i.value = n)
+ : ((s.last = i =
+ {
+ index: (o = d(t, !0)),
+ key: t,
+ value: n,
+ previous: (r = s.last),
+ next: void 0,
+ removed: !1,
+ }),
+ s.first || (s.first = i),
+ r && (r.next = i),
+ f ? s.size++ : e.size++,
+ 'F' !== o && (s.index[o] = i)),
+ e
+ );
+ },
+ b = function (e, t) {
+ var n,
+ r = m(e),
+ o = d(t);
+ if ('F' !== o) return r.index[o];
+ for (n = r.first; n; n = n.next) if (n.key == t) return n;
+ };
+ return (
+ s(h, {
+ clear: function () {
+ for (var e = m(this), t = e.index, n = e.first; n; )
+ (n.removed = !0),
+ n.previous && (n.previous = n.previous.next = void 0),
+ delete t[n.index],
+ (n = n.next);
+ (e.first = e.last = void 0), f ? (e.size = 0) : (this.size = 0);
+ },
+ delete: function (e) {
+ var t = this,
+ n = m(t),
+ r = b(t, e);
+ if (r) {
+ var o = r.next,
+ s = r.previous;
+ delete n.index[r.index],
+ (r.removed = !0),
+ s && (s.next = o),
+ o && (o.previous = s),
+ n.first == r && (n.first = o),
+ n.last == r && (n.last = s),
+ f ? n.size-- : t.size--;
+ }
+ return !!r;
+ },
+ forEach: function (e) {
+ for (
+ var t, n = m(this), r = i(e, arguments.length > 1 ? arguments[1] : void 0);
+ (t = t ? t.next : n.first);
+
+ )
+ for (r(t.value, t.key, this); t && t.removed; ) t = t.previous;
+ },
+ has: function (e) {
+ return !!b(this, e);
+ },
+ }),
+ s(
+ h,
+ n
+ ? {
+ get: function (e) {
+ var t = b(this, e);
+ return t && t.value;
+ },
+ set: function (e, t) {
+ return v(this, 0 === e ? 0 : e, t);
+ },
+ }
+ : {
+ add: function (e) {
+ return v(this, (e = 0 === e ? 0 : e), e);
+ },
+ }
+ ),
+ f &&
+ o(h, 'size', {
+ configurable: !0,
+ get: function () {
+ return m(this).size;
+ },
+ }),
+ p
+ );
+ },
+ setStrong: function (e, t, n) {
+ var r = t + ' Iterator',
+ o = y(t),
+ s = y(r);
+ u(
+ e,
+ t,
+ function (e, t) {
+ g(this, { type: r, target: e, state: o(e), kind: t, last: void 0 });
+ },
+ function () {
+ for (var e = s(this), t = e.kind, n = e.last; n && n.removed; ) n = n.previous;
+ return e.target && (e.last = n = n ? n.next : e.state.first)
+ ? p('keys' == t ? n.key : 'values' == t ? n.value : [n.key, n.value], !1)
+ : ((e.target = void 0), p(void 0, !0));
+ },
+ n ? 'entries' : 'values',
+ !n,
+ !0
+ ),
+ h(t);
+ },
+ };
+ },
+ 8850: (e, t, n) => {
+ 'use strict';
+ var r = n(95329),
+ o = n(94380),
+ s = n(21647).getWeakData,
+ i = n(5743),
+ a = n(96059),
+ l = n(82119),
+ c = n(10941),
+ u = n(93091),
+ p = n(3610),
+ h = n(90953),
+ f = n(45402),
+ d = f.set,
+ m = f.getterFor,
+ g = p.find,
+ y = p.findIndex,
+ v = r([].splice),
+ b = 0,
+ w = function (e) {
+ return e.frozen || (e.frozen = new E());
+ },
+ E = function () {
+ this.entries = [];
+ },
+ x = function (e, t) {
+ return g(e.entries, function (e) {
+ return e[0] === t;
+ });
+ };
+ (E.prototype = {
+ get: function (e) {
+ var t = x(this, e);
+ if (t) return t[1];
+ },
+ has: function (e) {
+ return !!x(this, e);
+ },
+ set: function (e, t) {
+ var n = x(this, e);
+ n ? (n[1] = t) : this.entries.push([e, t]);
+ },
+ delete: function (e) {
+ var t = y(this.entries, function (t) {
+ return t[0] === e;
+ });
+ return ~t && v(this.entries, t, 1), !!~t;
+ },
+ }),
+ (e.exports = {
+ getConstructor: function (e, t, n, r) {
+ var p = e(function (e, o) {
+ i(e, f), d(e, { type: t, id: b++, frozen: void 0 }), l(o) || u(o, e[r], { that: e, AS_ENTRIES: n });
+ }),
+ f = p.prototype,
+ g = m(t),
+ y = function (e, t, n) {
+ var r = g(e),
+ o = s(a(t), !0);
+ return !0 === o ? w(r).set(t, n) : (o[r.id] = n), e;
+ };
+ return (
+ o(f, {
+ delete: function (e) {
+ var t = g(this);
+ if (!c(e)) return !1;
+ var n = s(e);
+ return !0 === n ? w(t).delete(e) : n && h(n, t.id) && delete n[t.id];
+ },
+ has: function (e) {
+ var t = g(this);
+ if (!c(e)) return !1;
+ var n = s(e);
+ return !0 === n ? w(t).has(e) : n && h(n, t.id);
+ },
+ }),
+ o(
+ f,
+ n
+ ? {
+ get: function (e) {
+ var t = g(this);
+ if (c(e)) {
+ var n = s(e);
+ return !0 === n ? w(t).get(e) : n ? n[t.id] : void 0;
+ }
+ },
+ set: function (e, t) {
+ return y(this, e, t);
+ },
+ }
+ : {
+ add: function (e) {
+ return y(this, e, !0);
+ },
+ }
+ ),
+ p
+ );
+ },
+ });
+ },
+ 24683: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(21899),
+ s = n(21647),
+ i = n(95981),
+ a = n(32029),
+ l = n(93091),
+ c = n(5743),
+ u = n(57475),
+ p = n(10941),
+ h = n(90904),
+ f = n(65988).f,
+ d = n(3610).forEach,
+ m = n(55746),
+ g = n(45402),
+ y = g.set,
+ v = g.getterFor;
+ e.exports = function (e, t, n) {
+ var g,
+ b = -1 !== e.indexOf('Map'),
+ w = -1 !== e.indexOf('Weak'),
+ E = b ? 'set' : 'add',
+ x = o[e],
+ S = x && x.prototype,
+ _ = {};
+ if (
+ m &&
+ u(x) &&
+ (w ||
+ (S.forEach &&
+ !i(function () {
+ new x().entries().next();
+ })))
+ ) {
+ var j = (g = t(function (t, n) {
+ y(c(t, j), { type: e, collection: new x() }), null != n && l(n, t[E], { that: t, AS_ENTRIES: b });
+ })).prototype,
+ O = v(e);
+ d(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (e) {
+ var t = 'add' == e || 'set' == e;
+ !(e in S) ||
+ (w && 'clear' == e) ||
+ a(j, e, function (n, r) {
+ var o = O(this).collection;
+ if (!t && w && !p(n)) return 'get' == e && void 0;
+ var s = o[e](0 === n ? 0 : n, r);
+ return t ? this : s;
+ });
+ }),
+ w ||
+ f(j, 'size', {
+ configurable: !0,
+ get: function () {
+ return O(this).collection.size;
+ },
+ });
+ } else (g = n.getConstructor(t, e, b, E)), s.enable();
+ return h(g, e, !1, !0), (_[e] = g), r({ global: !0, forced: !0 }, _), w || n.setStrong(g, e, b), g;
+ };
+ },
+ 23489: (e, t, n) => {
+ var r = n(90953),
+ o = n(31136),
+ s = n(49677),
+ i = n(65988);
+ e.exports = function (e, t, n) {
+ for (var a = o(t), l = i.f, c = s.f, u = 0; u < a.length; u++) {
+ var p = a[u];
+ r(e, p) || (n && r(n, p)) || l(e, p, c(t, p));
+ }
+ };
+ },
+ 67772: (e, t, n) => {
+ var r = n(99813)('match');
+ e.exports = function (e) {
+ var t = /./;
+ try {
+ '/./'[e](t);
+ } catch (n) {
+ try {
+ return (t[r] = !1), '/./'[e](t);
+ } catch (e) {}
+ }
+ return !1;
+ };
+ },
+ 64160: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ function e() {}
+ return (e.prototype.constructor = null), Object.getPrototypeOf(new e()) !== e.prototype;
+ });
+ },
+ 23538: (e) => {
+ e.exports = function (e, t) {
+ return { value: e, done: t };
+ };
+ },
+ 32029: (e, t, n) => {
+ var r = n(55746),
+ o = n(65988),
+ s = n(31887);
+ e.exports = r
+ ? function (e, t, n) {
+ return o.f(e, t, s(1, n));
+ }
+ : function (e, t, n) {
+ return (e[t] = n), e;
+ };
+ },
+ 31887: (e) => {
+ e.exports = function (e, t) {
+ return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t };
+ };
+ },
+ 55449: (e, t, n) => {
+ 'use strict';
+ var r = n(83894),
+ o = n(65988),
+ s = n(31887);
+ e.exports = function (e, t, n) {
+ var i = r(t);
+ i in e ? o.f(e, i, s(0, n)) : (e[i] = n);
+ };
+ },
+ 29202: (e, t, n) => {
+ var r = n(65988);
+ e.exports = function (e, t, n) {
+ return r.f(e, t, n);
+ };
+ },
+ 95929: (e, t, n) => {
+ var r = n(32029);
+ e.exports = function (e, t, n, o) {
+ return o && o.enumerable ? (e[t] = n) : r(e, t, n), e;
+ };
+ },
+ 94380: (e, t, n) => {
+ var r = n(95929);
+ e.exports = function (e, t, n) {
+ for (var o in t) n && n.unsafe && e[o] ? (e[o] = t[o]) : r(e, o, t[o], n);
+ return e;
+ };
+ },
+ 75609: (e, t, n) => {
+ var r = n(21899),
+ o = Object.defineProperty;
+ e.exports = function (e, t) {
+ try {
+ o(r, e, { value: t, configurable: !0, writable: !0 });
+ } catch (n) {
+ r[e] = t;
+ }
+ return t;
+ };
+ },
+ 15863: (e, t, n) => {
+ 'use strict';
+ var r = n(69826),
+ o = TypeError;
+ e.exports = function (e, t) {
+ if (!delete e[t]) throw o('Cannot delete property ' + r(t) + ' of ' + r(e));
+ };
+ },
+ 55746: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ return (
+ 7 !=
+ Object.defineProperty({}, 1, {
+ get: function () {
+ return 7;
+ },
+ })[1]
+ );
+ });
+ },
+ 76616: (e) => {
+ var t = 'object' == typeof document && document.all,
+ n = void 0 === t && void 0 !== t;
+ e.exports = { all: t, IS_HTMLDDA: n };
+ },
+ 61333: (e, t, n) => {
+ var r = n(21899),
+ o = n(10941),
+ s = r.document,
+ i = o(s) && o(s.createElement);
+ e.exports = function (e) {
+ return i ? s.createElement(e) : {};
+ };
+ },
+ 66796: (e) => {
+ var t = TypeError;
+ e.exports = function (e) {
+ if (e > 9007199254740991) throw t('Maximum allowed index exceeded');
+ return e;
+ };
+ },
+ 63281: (e) => {
+ e.exports = {
+ CSSRuleList: 0,
+ CSSStyleDeclaration: 0,
+ CSSValueList: 0,
+ ClientRectList: 0,
+ DOMRectList: 0,
+ DOMStringList: 0,
+ DOMTokenList: 1,
+ DataTransferItemList: 0,
+ FileList: 0,
+ HTMLAllCollection: 0,
+ HTMLCollection: 0,
+ HTMLFormElement: 0,
+ HTMLSelectElement: 0,
+ MediaList: 0,
+ MimeTypeArray: 0,
+ NamedNodeMap: 0,
+ NodeList: 1,
+ PaintRequestList: 0,
+ Plugin: 0,
+ PluginArray: 0,
+ SVGLengthList: 0,
+ SVGNumberList: 0,
+ SVGPathSegList: 0,
+ SVGPointList: 0,
+ SVGStringList: 0,
+ SVGTransformList: 0,
+ SourceBufferList: 0,
+ StyleSheetList: 0,
+ TextTrackCueList: 0,
+ TextTrackList: 0,
+ TouchList: 0,
+ };
+ },
+ 34342: (e, t, n) => {
+ var r = n(2861).match(/firefox\/(\d+)/i);
+ e.exports = !!r && +r[1];
+ },
+ 23321: (e, t, n) => {
+ var r = n(48501),
+ o = n(6049);
+ e.exports = !r && !o && 'object' == typeof window && 'object' == typeof document;
+ },
+ 56491: (e) => {
+ e.exports = 'function' == typeof Bun && Bun && 'string' == typeof Bun.version;
+ },
+ 48501: (e) => {
+ e.exports = 'object' == typeof Deno && Deno && 'object' == typeof Deno.version;
+ },
+ 81046: (e, t, n) => {
+ var r = n(2861);
+ e.exports = /MSIE|Trident/.test(r);
+ },
+ 4470: (e, t, n) => {
+ var r = n(2861);
+ e.exports = /ipad|iphone|ipod/i.test(r) && 'undefined' != typeof Pebble;
+ },
+ 22749: (e, t, n) => {
+ var r = n(2861);
+ e.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(r);
+ },
+ 6049: (e, t, n) => {
+ var r = n(34155),
+ o = n(82532);
+ e.exports = void 0 !== r && 'process' == o(r);
+ },
+ 58045: (e, t, n) => {
+ var r = n(2861);
+ e.exports = /web0s(?!.*chrome)/i.test(r);
+ },
+ 2861: (e) => {
+ e.exports = ('undefined' != typeof navigator && String(navigator.userAgent)) || '';
+ },
+ 53385: (e, t, n) => {
+ var r,
+ o,
+ s = n(21899),
+ i = n(2861),
+ a = s.process,
+ l = s.Deno,
+ c = (a && a.versions) || (l && l.version),
+ u = c && c.v8;
+ u && (o = (r = u.split('.'))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])),
+ !o && i && (!(r = i.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = i.match(/Chrome\/(\d+)/)) && (o = +r[1]),
+ (e.exports = o);
+ },
+ 18938: (e, t, n) => {
+ var r = n(2861).match(/AppleWebKit\/(\d+)\./);
+ e.exports = !!r && +r[1];
+ },
+ 35703: (e, t, n) => {
+ var r = n(54058);
+ e.exports = function (e) {
+ return r[e + 'Prototype'];
+ };
+ },
+ 56759: (e) => {
+ e.exports = [
+ 'constructor',
+ 'hasOwnProperty',
+ 'isPrototypeOf',
+ 'propertyIsEnumerable',
+ 'toLocaleString',
+ 'toString',
+ 'valueOf',
+ ];
+ },
+ 53995: (e, t, n) => {
+ var r = n(95329),
+ o = Error,
+ s = r(''.replace),
+ i = String(o('zxcasd').stack),
+ a = /\n\s*at [^:]*:[^\n]*/,
+ l = a.test(i);
+ e.exports = function (e, t) {
+ if (l && 'string' == typeof e && !o.prepareStackTrace) for (; t--; ) e = s(e, a, '');
+ return e;
+ };
+ },
+ 79585: (e, t, n) => {
+ var r = n(32029),
+ o = n(53995),
+ s = n(18780),
+ i = Error.captureStackTrace;
+ e.exports = function (e, t, n, a) {
+ s && (i ? i(e, t) : r(e, 'stack', o(n, a)));
+ };
+ },
+ 18780: (e, t, n) => {
+ var r = n(95981),
+ o = n(31887);
+ e.exports = !r(function () {
+ var e = Error('a');
+ return !('stack' in e) || (Object.defineProperty(e, 'stack', o(1, 7)), 7 !== e.stack);
+ });
+ },
+ 76887: (e, t, n) => {
+ 'use strict';
+ var r = n(21899),
+ o = n(79730),
+ s = n(97484),
+ i = n(57475),
+ a = n(49677).f,
+ l = n(37252),
+ c = n(54058),
+ u = n(86843),
+ p = n(32029),
+ h = n(90953),
+ f = function (e) {
+ var t = function (n, r, s) {
+ if (this instanceof t) {
+ switch (arguments.length) {
+ case 0:
+ return new e();
+ case 1:
+ return new e(n);
+ case 2:
+ return new e(n, r);
+ }
+ return new e(n, r, s);
+ }
+ return o(e, this, arguments);
+ };
+ return (t.prototype = e.prototype), t;
+ };
+ e.exports = function (e, t) {
+ var n,
+ o,
+ d,
+ m,
+ g,
+ y,
+ v,
+ b,
+ w,
+ E = e.target,
+ x = e.global,
+ S = e.stat,
+ _ = e.proto,
+ j = x ? r : S ? r[E] : (r[E] || {}).prototype,
+ O = x ? c : c[E] || p(c, E, {})[E],
+ k = O.prototype;
+ for (m in t)
+ (o = !(n = l(x ? m : E + (S ? '.' : '#') + m, e.forced)) && j && h(j, m)),
+ (y = O[m]),
+ o && (v = e.dontCallGetSet ? (w = a(j, m)) && w.value : j[m]),
+ (g = o && v ? v : t[m]),
+ (o && typeof y == typeof g) ||
+ ((b = e.bind && o ? u(g, r) : e.wrap && o ? f(g) : _ && i(g) ? s(g) : g),
+ (e.sham || (g && g.sham) || (y && y.sham)) && p(b, 'sham', !0),
+ p(O, m, b),
+ _ &&
+ (h(c, (d = E + 'Prototype')) || p(c, d, {}),
+ p(c[d], m, g),
+ e.real && k && (n || !k[m]) && p(k, m, g)));
+ };
+ },
+ 95981: (e) => {
+ e.exports = function (e) {
+ try {
+ return !!e();
+ } catch (e) {
+ return !0;
+ }
+ };
+ },
+ 45602: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ return Object.isExtensible(Object.preventExtensions({}));
+ });
+ },
+ 79730: (e, t, n) => {
+ var r = n(18285),
+ o = Function.prototype,
+ s = o.apply,
+ i = o.call;
+ e.exports =
+ ('object' == typeof Reflect && Reflect.apply) ||
+ (r
+ ? i.bind(s)
+ : function () {
+ return i.apply(s, arguments);
+ });
+ },
+ 86843: (e, t, n) => {
+ var r = n(97484),
+ o = n(24883),
+ s = n(18285),
+ i = r(r.bind);
+ e.exports = function (e, t) {
+ return (
+ o(e),
+ void 0 === t
+ ? e
+ : s
+ ? i(e, t)
+ : function () {
+ return e.apply(t, arguments);
+ }
+ );
+ };
+ },
+ 18285: (e, t, n) => {
+ var r = n(95981);
+ e.exports = !r(function () {
+ var e = function () {}.bind();
+ return 'function' != typeof e || e.hasOwnProperty('prototype');
+ });
+ },
+ 98308: (e, t, n) => {
+ 'use strict';
+ var r = n(95329),
+ o = n(24883),
+ s = n(10941),
+ i = n(90953),
+ a = n(93765),
+ l = n(18285),
+ c = Function,
+ u = r([].concat),
+ p = r([].join),
+ h = {};
+ e.exports = l
+ ? c.bind
+ : function (e) {
+ var t = o(this),
+ n = t.prototype,
+ r = a(arguments, 1),
+ l = function () {
+ var n = u(r, a(arguments));
+ return this instanceof l
+ ? (function (e, t, n) {
+ if (!i(h, t)) {
+ for (var r = [], o = 0; o < t; o++) r[o] = 'a[' + o + ']';
+ h[t] = c('C,a', 'return new C(' + p(r, ',') + ')');
+ }
+ return h[t](e, n);
+ })(t, n.length, n)
+ : t.apply(e, n);
+ };
+ return s(n) && (l.prototype = n), l;
+ };
+ },
+ 78834: (e, t, n) => {
+ var r = n(18285),
+ o = Function.prototype.call;
+ e.exports = r
+ ? o.bind(o)
+ : function () {
+ return o.apply(o, arguments);
+ };
+ },
+ 79417: (e, t, n) => {
+ var r = n(55746),
+ o = n(90953),
+ s = Function.prototype,
+ i = r && Object.getOwnPropertyDescriptor,
+ a = o(s, 'name'),
+ l = a && 'something' === function () {}.name,
+ c = a && (!r || (r && i(s, 'name').configurable));
+ e.exports = { EXISTS: a, PROPER: l, CONFIGURABLE: c };
+ },
+ 45526: (e, t, n) => {
+ var r = n(95329),
+ o = n(24883);
+ e.exports = function (e, t, n) {
+ try {
+ return r(o(Object.getOwnPropertyDescriptor(e, t)[n]));
+ } catch (e) {}
+ };
+ },
+ 97484: (e, t, n) => {
+ var r = n(82532),
+ o = n(95329);
+ e.exports = function (e) {
+ if ('Function' === r(e)) return o(e);
+ };
+ },
+ 95329: (e, t, n) => {
+ var r = n(18285),
+ o = Function.prototype,
+ s = o.call,
+ i = r && o.bind.bind(s, s);
+ e.exports = r
+ ? i
+ : function (e) {
+ return function () {
+ return s.apply(e, arguments);
+ };
+ };
+ },
+ 626: (e, t, n) => {
+ var r = n(54058),
+ o = n(21899),
+ s = n(57475),
+ i = function (e) {
+ return s(e) ? e : void 0;
+ };
+ e.exports = function (e, t) {
+ return arguments.length < 2 ? i(r[e]) || i(o[e]) : (r[e] && r[e][t]) || (o[e] && o[e][t]);
+ };
+ },
+ 22902: (e, t, n) => {
+ var r = n(9697),
+ o = n(14229),
+ s = n(82119),
+ i = n(12077),
+ a = n(99813)('iterator');
+ e.exports = function (e) {
+ if (!s(e)) return o(e, a) || o(e, '@@iterator') || i[r(e)];
+ };
+ },
+ 53476: (e, t, n) => {
+ var r = n(78834),
+ o = n(24883),
+ s = n(96059),
+ i = n(69826),
+ a = n(22902),
+ l = TypeError;
+ e.exports = function (e, t) {
+ var n = arguments.length < 2 ? a(e) : t;
+ if (o(n)) return s(r(n, e));
+ throw l(i(e) + ' is not iterable');
+ };
+ },
+ 33323: (e, t, n) => {
+ var r = n(95329),
+ o = n(1052),
+ s = n(57475),
+ i = n(82532),
+ a = n(85803),
+ l = r([].push);
+ e.exports = function (e) {
+ if (s(e)) return e;
+ if (o(e)) {
+ for (var t = e.length, n = [], r = 0; r < t; r++) {
+ var c = e[r];
+ 'string' == typeof c
+ ? l(n, c)
+ : ('number' != typeof c && 'Number' != i(c) && 'String' != i(c)) || l(n, a(c));
+ }
+ var u = n.length,
+ p = !0;
+ return function (e, t) {
+ if (p) return (p = !1), t;
+ if (o(this)) return t;
+ for (var r = 0; r < u; r++) if (n[r] === e) return t;
+ };
+ }
+ };
+ },
+ 14229: (e, t, n) => {
+ var r = n(24883),
+ o = n(82119);
+ e.exports = function (e, t) {
+ var n = e[t];
+ return o(n) ? void 0 : r(n);
+ };
+ },
+ 21899: function (e, t, n) {
+ var r = function (e) {
+ return e && e.Math == Math && e;
+ };
+ e.exports =
+ r('object' == typeof globalThis && globalThis) ||
+ r('object' == typeof window && window) ||
+ r('object' == typeof self && self) ||
+ r('object' == typeof n.g && n.g) ||
+ (function () {
+ return this;
+ })() ||
+ this ||
+ Function('return this')();
+ },
+ 90953: (e, t, n) => {
+ var r = n(95329),
+ o = n(89678),
+ s = r({}.hasOwnProperty);
+ e.exports =
+ Object.hasOwn ||
+ function (e, t) {
+ return s(o(e), t);
+ };
+ },
+ 27748: (e) => {
+ e.exports = {};
+ },
+ 34845: (e) => {
+ e.exports = function (e, t) {
+ try {
+ 1 == arguments.length ? console.error(e) : console.error(e, t);
+ } catch (e) {}
+ };
+ },
+ 15463: (e, t, n) => {
+ var r = n(626);
+ e.exports = r('document', 'documentElement');
+ },
+ 2840: (e, t, n) => {
+ var r = n(55746),
+ o = n(95981),
+ s = n(61333);
+ e.exports =
+ !r &&
+ !o(function () {
+ return (
+ 7 !=
+ Object.defineProperty(s('div'), 'a', {
+ get: function () {
+ return 7;
+ },
+ }).a
+ );
+ });
+ },
+ 37026: (e, t, n) => {
+ var r = n(95329),
+ o = n(95981),
+ s = n(82532),
+ i = Object,
+ a = r(''.split);
+ e.exports = o(function () {
+ return !i('z').propertyIsEnumerable(0);
+ })
+ ? function (e) {
+ return 'String' == s(e) ? a(e, '') : i(e);
+ }
+ : i;
+ },
+ 81302: (e, t, n) => {
+ var r = n(95329),
+ o = n(57475),
+ s = n(63030),
+ i = r(Function.toString);
+ o(s.inspectSource) ||
+ (s.inspectSource = function (e) {
+ return i(e);
+ }),
+ (e.exports = s.inspectSource);
+ },
+ 53794: (e, t, n) => {
+ var r = n(10941),
+ o = n(32029);
+ e.exports = function (e, t) {
+ r(t) && 'cause' in t && o(e, 'cause', t.cause);
+ };
+ },
+ 21647: (e, t, n) => {
+ var r = n(76887),
+ o = n(95329),
+ s = n(27748),
+ i = n(10941),
+ a = n(90953),
+ l = n(65988).f,
+ c = n(10946),
+ u = n(684),
+ p = n(91584),
+ h = n(99418),
+ f = n(45602),
+ d = !1,
+ m = h('meta'),
+ g = 0,
+ y = function (e) {
+ l(e, m, { value: { objectID: 'O' + g++, weakData: {} } });
+ },
+ v = (e.exports = {
+ enable: function () {
+ (v.enable = function () {}), (d = !0);
+ var e = c.f,
+ t = o([].splice),
+ n = {};
+ (n[m] = 1),
+ e(n).length &&
+ ((c.f = function (n) {
+ for (var r = e(n), o = 0, s = r.length; o < s; o++)
+ if (r[o] === m) {
+ t(r, o, 1);
+ break;
+ }
+ return r;
+ }),
+ r({ target: 'Object', stat: !0, forced: !0 }, { getOwnPropertyNames: u.f }));
+ },
+ fastKey: function (e, t) {
+ if (!i(e)) return 'symbol' == typeof e ? e : ('string' == typeof e ? 'S' : 'P') + e;
+ if (!a(e, m)) {
+ if (!p(e)) return 'F';
+ if (!t) return 'E';
+ y(e);
+ }
+ return e[m].objectID;
+ },
+ getWeakData: function (e, t) {
+ if (!a(e, m)) {
+ if (!p(e)) return !0;
+ if (!t) return !1;
+ y(e);
+ }
+ return e[m].weakData;
+ },
+ onFreeze: function (e) {
+ return f && d && p(e) && !a(e, m) && y(e), e;
+ },
+ });
+ s[m] = !0;
+ },
+ 45402: (e, t, n) => {
+ var r,
+ o,
+ s,
+ i = n(47093),
+ a = n(21899),
+ l = n(10941),
+ c = n(32029),
+ u = n(90953),
+ p = n(63030),
+ h = n(44262),
+ f = n(27748),
+ d = 'Object already initialized',
+ m = a.TypeError,
+ g = a.WeakMap;
+ if (i || p.state) {
+ var y = p.state || (p.state = new g());
+ (y.get = y.get),
+ (y.has = y.has),
+ (y.set = y.set),
+ (r = function (e, t) {
+ if (y.has(e)) throw m(d);
+ return (t.facade = e), y.set(e, t), t;
+ }),
+ (o = function (e) {
+ return y.get(e) || {};
+ }),
+ (s = function (e) {
+ return y.has(e);
+ });
+ } else {
+ var v = h('state');
+ (f[v] = !0),
+ (r = function (e, t) {
+ if (u(e, v)) throw m(d);
+ return (t.facade = e), c(e, v, t), t;
+ }),
+ (o = function (e) {
+ return u(e, v) ? e[v] : {};
+ }),
+ (s = function (e) {
+ return u(e, v);
+ });
+ }
+ e.exports = {
+ set: r,
+ get: o,
+ has: s,
+ enforce: function (e) {
+ return s(e) ? o(e) : r(e, {});
+ },
+ getterFor: function (e) {
+ return function (t) {
+ var n;
+ if (!l(t) || (n = o(t)).type !== e) throw m('Incompatible receiver, ' + e + ' required');
+ return n;
+ };
+ },
+ };
+ },
+ 6782: (e, t, n) => {
+ var r = n(99813),
+ o = n(12077),
+ s = r('iterator'),
+ i = Array.prototype;
+ e.exports = function (e) {
+ return void 0 !== e && (o.Array === e || i[s] === e);
+ };
+ },
+ 1052: (e, t, n) => {
+ var r = n(82532);
+ e.exports =
+ Array.isArray ||
+ function (e) {
+ return 'Array' == r(e);
+ };
+ },
+ 57475: (e, t, n) => {
+ var r = n(76616),
+ o = r.all;
+ e.exports = r.IS_HTMLDDA
+ ? function (e) {
+ return 'function' == typeof e || e === o;
+ }
+ : function (e) {
+ return 'function' == typeof e;
+ };
+ },
+ 24284: (e, t, n) => {
+ var r = n(95329),
+ o = n(95981),
+ s = n(57475),
+ i = n(9697),
+ a = n(626),
+ l = n(81302),
+ c = function () {},
+ u = [],
+ p = a('Reflect', 'construct'),
+ h = /^\s*(?:class|function)\b/,
+ f = r(h.exec),
+ d = !h.exec(c),
+ m = function (e) {
+ if (!s(e)) return !1;
+ try {
+ return p(c, u, e), !0;
+ } catch (e) {
+ return !1;
+ }
+ },
+ g = function (e) {
+ if (!s(e)) return !1;
+ switch (i(e)) {
+ case 'AsyncFunction':
+ case 'GeneratorFunction':
+ case 'AsyncGeneratorFunction':
+ return !1;
+ }
+ try {
+ return d || !!f(h, l(e));
+ } catch (e) {
+ return !0;
+ }
+ };
+ (g.sham = !0),
+ (e.exports =
+ !p ||
+ o(function () {
+ var e;
+ return (
+ m(m.call) ||
+ !m(Object) ||
+ !m(function () {
+ e = !0;
+ }) ||
+ e
+ );
+ })
+ ? g
+ : m);
+ },
+ 37252: (e, t, n) => {
+ var r = n(95981),
+ o = n(57475),
+ s = /#|\.prototype\./,
+ i = function (e, t) {
+ var n = l[a(e)];
+ return n == u || (n != c && (o(t) ? r(t) : !!t));
+ },
+ a = (i.normalize = function (e) {
+ return String(e).replace(s, '.').toLowerCase();
+ }),
+ l = (i.data = {}),
+ c = (i.NATIVE = 'N'),
+ u = (i.POLYFILL = 'P');
+ e.exports = i;
+ },
+ 54639: (e, t, n) => {
+ var r = n(10941),
+ o = Math.floor;
+ e.exports =
+ Number.isInteger ||
+ function (e) {
+ return !r(e) && isFinite(e) && o(e) === e;
+ };
+ },
+ 82119: (e) => {
+ e.exports = function (e) {
+ return null == e;
+ };
+ },
+ 10941: (e, t, n) => {
+ var r = n(57475),
+ o = n(76616),
+ s = o.all;
+ e.exports = o.IS_HTMLDDA
+ ? function (e) {
+ return 'object' == typeof e ? null !== e : r(e) || e === s;
+ }
+ : function (e) {
+ return 'object' == typeof e ? null !== e : r(e);
+ };
+ },
+ 82529: (e) => {
+ e.exports = !0;
+ },
+ 60685: (e, t, n) => {
+ var r = n(10941),
+ o = n(82532),
+ s = n(99813)('match');
+ e.exports = function (e) {
+ var t;
+ return r(e) && (void 0 !== (t = e[s]) ? !!t : 'RegExp' == o(e));
+ };
+ },
+ 56664: (e, t, n) => {
+ var r = n(626),
+ o = n(57475),
+ s = n(7046),
+ i = n(32302),
+ a = Object;
+ e.exports = i
+ ? function (e) {
+ return 'symbol' == typeof e;
+ }
+ : function (e) {
+ var t = r('Symbol');
+ return o(t) && s(t.prototype, a(e));
+ };
+ },
+ 93091: (e, t, n) => {
+ var r = n(86843),
+ o = n(78834),
+ s = n(96059),
+ i = n(69826),
+ a = n(6782),
+ l = n(10623),
+ c = n(7046),
+ u = n(53476),
+ p = n(22902),
+ h = n(7609),
+ f = TypeError,
+ d = function (e, t) {
+ (this.stopped = e), (this.result = t);
+ },
+ m = d.prototype;
+ e.exports = function (e, t, n) {
+ var g,
+ y,
+ v,
+ b,
+ w,
+ E,
+ x,
+ S = n && n.that,
+ _ = !(!n || !n.AS_ENTRIES),
+ j = !(!n || !n.IS_RECORD),
+ O = !(!n || !n.IS_ITERATOR),
+ k = !(!n || !n.INTERRUPTED),
+ A = r(t, S),
+ C = function (e) {
+ return g && h(g, 'normal', e), new d(!0, e);
+ },
+ P = function (e) {
+ return _ ? (s(e), k ? A(e[0], e[1], C) : A(e[0], e[1])) : k ? A(e, C) : A(e);
+ };
+ if (j) g = e.iterator;
+ else if (O) g = e;
+ else {
+ if (!(y = p(e))) throw f(i(e) + ' is not iterable');
+ if (a(y)) {
+ for (v = 0, b = l(e); b > v; v++) if ((w = P(e[v])) && c(m, w)) return w;
+ return new d(!1);
+ }
+ g = u(e, y);
+ }
+ for (E = j ? e.next : g.next; !(x = o(E, g)).done; ) {
+ try {
+ w = P(x.value);
+ } catch (e) {
+ h(g, 'throw', e);
+ }
+ if ('object' == typeof w && w && c(m, w)) return w;
+ }
+ return new d(!1);
+ };
+ },
+ 7609: (e, t, n) => {
+ var r = n(78834),
+ o = n(96059),
+ s = n(14229);
+ e.exports = function (e, t, n) {
+ var i, a;
+ o(e);
+ try {
+ if (!(i = s(e, 'return'))) {
+ if ('throw' === t) throw n;
+ return n;
+ }
+ i = r(i, e);
+ } catch (e) {
+ (a = !0), (i = e);
+ }
+ if ('throw' === t) throw n;
+ if (a) throw i;
+ return o(i), n;
+ };
+ },
+ 53847: (e, t, n) => {
+ 'use strict';
+ var r = n(35143).IteratorPrototype,
+ o = n(29290),
+ s = n(31887),
+ i = n(90904),
+ a = n(12077),
+ l = function () {
+ return this;
+ };
+ e.exports = function (e, t, n, c) {
+ var u = t + ' Iterator';
+ return (e.prototype = o(r, { next: s(+!c, n) })), i(e, u, !1, !0), (a[u] = l), e;
+ };
+ },
+ 75105: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(78834),
+ s = n(82529),
+ i = n(79417),
+ a = n(57475),
+ l = n(53847),
+ c = n(249),
+ u = n(88929),
+ p = n(90904),
+ h = n(32029),
+ f = n(95929),
+ d = n(99813),
+ m = n(12077),
+ g = n(35143),
+ y = i.PROPER,
+ v = i.CONFIGURABLE,
+ b = g.IteratorPrototype,
+ w = g.BUGGY_SAFARI_ITERATORS,
+ E = d('iterator'),
+ x = 'keys',
+ S = 'values',
+ _ = 'entries',
+ j = function () {
+ return this;
+ };
+ e.exports = function (e, t, n, i, d, g, O) {
+ l(n, t, i);
+ var k,
+ A,
+ C,
+ P = function (e) {
+ if (e === d && M) return M;
+ if (!w && e in T) return T[e];
+ switch (e) {
+ case x:
+ case S:
+ case _:
+ return function () {
+ return new n(this, e);
+ };
+ }
+ return function () {
+ return new n(this);
+ };
+ },
+ N = t + ' Iterator',
+ I = !1,
+ T = e.prototype,
+ R = T[E] || T['@@iterator'] || (d && T[d]),
+ M = (!w && R) || P(d),
+ D = ('Array' == t && T.entries) || R;
+ if (
+ (D &&
+ (k = c(D.call(new e()))) !== Object.prototype &&
+ k.next &&
+ (s || c(k) === b || (u ? u(k, b) : a(k[E]) || f(k, E, j)), p(k, N, !0, !0), s && (m[N] = j)),
+ y &&
+ d == S &&
+ R &&
+ R.name !== S &&
+ (!s && v
+ ? h(T, 'name', S)
+ : ((I = !0),
+ (M = function () {
+ return o(R, this);
+ }))),
+ d)
+ )
+ if (((A = { values: P(S), keys: g ? M : P(x), entries: P(_) }), O))
+ for (C in A) (w || I || !(C in T)) && f(T, C, A[C]);
+ else r({ target: t, proto: !0, forced: w || I }, A);
+ return (s && !O) || T[E] === M || f(T, E, M, { name: d }), (m[t] = M), A;
+ };
+ },
+ 35143: (e, t, n) => {
+ 'use strict';
+ var r,
+ o,
+ s,
+ i = n(95981),
+ a = n(57475),
+ l = n(10941),
+ c = n(29290),
+ u = n(249),
+ p = n(95929),
+ h = n(99813),
+ f = n(82529),
+ d = h('iterator'),
+ m = !1;
+ [].keys && ('next' in (s = [].keys()) ? (o = u(u(s))) !== Object.prototype && (r = o) : (m = !0)),
+ !l(r) ||
+ i(function () {
+ var e = {};
+ return r[d].call(e) !== e;
+ })
+ ? (r = {})
+ : f && (r = c(r)),
+ a(r[d]) ||
+ p(r, d, function () {
+ return this;
+ }),
+ (e.exports = { IteratorPrototype: r, BUGGY_SAFARI_ITERATORS: m });
+ },
+ 12077: (e) => {
+ e.exports = {};
+ },
+ 10623: (e, t, n) => {
+ var r = n(43057);
+ e.exports = function (e) {
+ return r(e.length);
+ };
+ },
+ 35331: (e) => {
+ var t = Math.ceil,
+ n = Math.floor;
+ e.exports =
+ Math.trunc ||
+ function (e) {
+ var r = +e;
+ return (r > 0 ? n : t)(r);
+ };
+ },
+ 66132: (e, t, n) => {
+ var r,
+ o,
+ s,
+ i,
+ a,
+ l = n(21899),
+ c = n(86843),
+ u = n(49677).f,
+ p = n(42941).set,
+ h = n(18397),
+ f = n(22749),
+ d = n(4470),
+ m = n(58045),
+ g = n(6049),
+ y = l.MutationObserver || l.WebKitMutationObserver,
+ v = l.document,
+ b = l.process,
+ w = l.Promise,
+ E = u(l, 'queueMicrotask'),
+ x = E && E.value;
+ if (!x) {
+ var S = new h(),
+ _ = function () {
+ var e, t;
+ for (g && (e = b.domain) && e.exit(); (t = S.get()); )
+ try {
+ t();
+ } catch (e) {
+ throw (S.head && r(), e);
+ }
+ e && e.enter();
+ };
+ f || g || m || !y || !v
+ ? !d && w && w.resolve
+ ? (((i = w.resolve(void 0)).constructor = w),
+ (a = c(i.then, i)),
+ (r = function () {
+ a(_);
+ }))
+ : g
+ ? (r = function () {
+ b.nextTick(_);
+ })
+ : ((p = c(p, l)),
+ (r = function () {
+ p(_);
+ }))
+ : ((o = !0),
+ (s = v.createTextNode('')),
+ new y(_).observe(s, { characterData: !0 }),
+ (r = function () {
+ s.data = o = !o;
+ })),
+ (x = function (e) {
+ S.head || r(), S.add(e);
+ });
+ }
+ e.exports = x;
+ },
+ 69520: (e, t, n) => {
+ 'use strict';
+ var r = n(24883),
+ o = TypeError,
+ s = function (e) {
+ var t, n;
+ (this.promise = new e(function (e, r) {
+ if (void 0 !== t || void 0 !== n) throw o('Bad Promise constructor');
+ (t = e), (n = r);
+ })),
+ (this.resolve = r(t)),
+ (this.reject = r(n));
+ };
+ e.exports.f = function (e) {
+ return new s(e);
+ };
+ },
+ 14649: (e, t, n) => {
+ var r = n(85803);
+ e.exports = function (e, t) {
+ return void 0 === e ? (arguments.length < 2 ? '' : t) : r(e);
+ };
+ },
+ 70344: (e, t, n) => {
+ var r = n(60685),
+ o = TypeError;
+ e.exports = function (e) {
+ if (r(e)) throw o("The method doesn't accept regular expressions");
+ return e;
+ };
+ },
+ 24420: (e, t, n) => {
+ 'use strict';
+ var r = n(55746),
+ o = n(95329),
+ s = n(78834),
+ i = n(95981),
+ a = n(14771),
+ l = n(87857),
+ c = n(36760),
+ u = n(89678),
+ p = n(37026),
+ h = Object.assign,
+ f = Object.defineProperty,
+ d = o([].concat);
+ e.exports =
+ !h ||
+ i(function () {
+ if (
+ r &&
+ 1 !==
+ h(
+ { b: 1 },
+ h(
+ f({}, 'a', {
+ enumerable: !0,
+ get: function () {
+ f(this, 'b', { value: 3, enumerable: !1 });
+ },
+ }),
+ { b: 2 }
+ )
+ ).b
+ )
+ return !0;
+ var e = {},
+ t = {},
+ n = Symbol(),
+ o = 'abcdefghijklmnopqrst';
+ return (
+ (e[n] = 7),
+ o.split('').forEach(function (e) {
+ t[e] = e;
+ }),
+ 7 != h({}, e)[n] || a(h({}, t)).join('') != o
+ );
+ })
+ ? function (e, t) {
+ for (var n = u(e), o = arguments.length, i = 1, h = l.f, f = c.f; o > i; )
+ for (var m, g = p(arguments[i++]), y = h ? d(a(g), h(g)) : a(g), v = y.length, b = 0; v > b; )
+ (m = y[b++]), (r && !s(f, g, m)) || (n[m] = g[m]);
+ return n;
+ }
+ : h;
+ },
+ 29290: (e, t, n) => {
+ var r,
+ o = n(96059),
+ s = n(59938),
+ i = n(56759),
+ a = n(27748),
+ l = n(15463),
+ c = n(61333),
+ u = n(44262),
+ p = 'prototype',
+ h = 'script',
+ f = u('IE_PROTO'),
+ d = function () {},
+ m = function (e) {
+ return '<' + h + '>' + e + '' + h + '>';
+ },
+ g = function (e) {
+ e.write(m('')), e.close();
+ var t = e.parentWindow.Object;
+ return (e = null), t;
+ },
+ y = function () {
+ try {
+ r = new ActiveXObject('htmlfile');
+ } catch (e) {}
+ var e, t, n;
+ y =
+ 'undefined' != typeof document
+ ? document.domain && r
+ ? g(r)
+ : ((t = c('iframe')),
+ (n = 'java' + h + ':'),
+ (t.style.display = 'none'),
+ l.appendChild(t),
+ (t.src = String(n)),
+ (e = t.contentWindow.document).open(),
+ e.write(m('document.F=Object')),
+ e.close(),
+ e.F)
+ : g(r);
+ for (var o = i.length; o--; ) delete y[p][i[o]];
+ return y();
+ };
+ (a[f] = !0),
+ (e.exports =
+ Object.create ||
+ function (e, t) {
+ var n;
+ return (
+ null !== e ? ((d[p] = o(e)), (n = new d()), (d[p] = null), (n[f] = e)) : (n = y()),
+ void 0 === t ? n : s.f(n, t)
+ );
+ });
+ },
+ 59938: (e, t, n) => {
+ var r = n(55746),
+ o = n(83937),
+ s = n(65988),
+ i = n(96059),
+ a = n(74529),
+ l = n(14771);
+ t.f =
+ r && !o
+ ? Object.defineProperties
+ : function (e, t) {
+ i(e);
+ for (var n, r = a(t), o = l(t), c = o.length, u = 0; c > u; ) s.f(e, (n = o[u++]), r[n]);
+ return e;
+ };
+ },
+ 65988: (e, t, n) => {
+ var r = n(55746),
+ o = n(2840),
+ s = n(83937),
+ i = n(96059),
+ a = n(83894),
+ l = TypeError,
+ c = Object.defineProperty,
+ u = Object.getOwnPropertyDescriptor,
+ p = 'enumerable',
+ h = 'configurable',
+ f = 'writable';
+ t.f = r
+ ? s
+ ? function (e, t, n) {
+ if (
+ (i(e),
+ (t = a(t)),
+ i(n),
+ 'function' == typeof e && 'prototype' === t && 'value' in n && f in n && !n[f])
+ ) {
+ var r = u(e, t);
+ r &&
+ r[f] &&
+ ((e[t] = n.value),
+ (n = { configurable: h in n ? n[h] : r[h], enumerable: p in n ? n[p] : r[p], writable: !1 }));
+ }
+ return c(e, t, n);
+ }
+ : c
+ : function (e, t, n) {
+ if ((i(e), (t = a(t)), i(n), o))
+ try {
+ return c(e, t, n);
+ } catch (e) {}
+ if ('get' in n || 'set' in n) throw l('Accessors not supported');
+ return 'value' in n && (e[t] = n.value), e;
+ };
+ },
+ 49677: (e, t, n) => {
+ var r = n(55746),
+ o = n(78834),
+ s = n(36760),
+ i = n(31887),
+ a = n(74529),
+ l = n(83894),
+ c = n(90953),
+ u = n(2840),
+ p = Object.getOwnPropertyDescriptor;
+ t.f = r
+ ? p
+ : function (e, t) {
+ if (((e = a(e)), (t = l(t)), u))
+ try {
+ return p(e, t);
+ } catch (e) {}
+ if (c(e, t)) return i(!o(s.f, e, t), e[t]);
+ };
+ },
+ 684: (e, t, n) => {
+ var r = n(82532),
+ o = n(74529),
+ s = n(10946).f,
+ i = n(15790),
+ a =
+ 'object' == typeof window && window && Object.getOwnPropertyNames
+ ? Object.getOwnPropertyNames(window)
+ : [];
+ e.exports.f = function (e) {
+ return a && 'Window' == r(e)
+ ? (function (e) {
+ try {
+ return s(e);
+ } catch (e) {
+ return i(a);
+ }
+ })(e)
+ : s(o(e));
+ };
+ },
+ 10946: (e, t, n) => {
+ var r = n(55629),
+ o = n(56759).concat('length', 'prototype');
+ t.f =
+ Object.getOwnPropertyNames ||
+ function (e) {
+ return r(e, o);
+ };
+ },
+ 87857: (e, t) => {
+ t.f = Object.getOwnPropertySymbols;
+ },
+ 249: (e, t, n) => {
+ var r = n(90953),
+ o = n(57475),
+ s = n(89678),
+ i = n(44262),
+ a = n(64160),
+ l = i('IE_PROTO'),
+ c = Object,
+ u = c.prototype;
+ e.exports = a
+ ? c.getPrototypeOf
+ : function (e) {
+ var t = s(e);
+ if (r(t, l)) return t[l];
+ var n = t.constructor;
+ return o(n) && t instanceof n ? n.prototype : t instanceof c ? u : null;
+ };
+ },
+ 91584: (e, t, n) => {
+ var r = n(95981),
+ o = n(10941),
+ s = n(82532),
+ i = n(97135),
+ a = Object.isExtensible,
+ l = r(function () {
+ a(1);
+ });
+ e.exports =
+ l || i
+ ? function (e) {
+ return !!o(e) && (!i || 'ArrayBuffer' != s(e)) && (!a || a(e));
+ }
+ : a;
+ },
+ 7046: (e, t, n) => {
+ var r = n(95329);
+ e.exports = r({}.isPrototypeOf);
+ },
+ 55629: (e, t, n) => {
+ var r = n(95329),
+ o = n(90953),
+ s = n(74529),
+ i = n(31692).indexOf,
+ a = n(27748),
+ l = r([].push);
+ e.exports = function (e, t) {
+ var n,
+ r = s(e),
+ c = 0,
+ u = [];
+ for (n in r) !o(a, n) && o(r, n) && l(u, n);
+ for (; t.length > c; ) o(r, (n = t[c++])) && (~i(u, n) || l(u, n));
+ return u;
+ };
+ },
+ 14771: (e, t, n) => {
+ var r = n(55629),
+ o = n(56759);
+ e.exports =
+ Object.keys ||
+ function (e) {
+ return r(e, o);
+ };
+ },
+ 36760: (e, t) => {
+ 'use strict';
+ var n = {}.propertyIsEnumerable,
+ r = Object.getOwnPropertyDescriptor,
+ o = r && !n.call({ 1: 2 }, 1);
+ t.f = o
+ ? function (e) {
+ var t = r(this, e);
+ return !!t && t.enumerable;
+ }
+ : n;
+ },
+ 88929: (e, t, n) => {
+ var r = n(45526),
+ o = n(96059),
+ s = n(11851);
+ e.exports =
+ Object.setPrototypeOf ||
+ ('__proto__' in {}
+ ? (function () {
+ var e,
+ t = !1,
+ n = {};
+ try {
+ (e = r(Object.prototype, '__proto__', 'set'))(n, []), (t = n instanceof Array);
+ } catch (e) {}
+ return function (n, r) {
+ return o(n), s(r), t ? e(n, r) : (n.__proto__ = r), n;
+ };
+ })()
+ : void 0);
+ },
+ 88810: (e, t, n) => {
+ var r = n(55746),
+ o = n(95981),
+ s = n(95329),
+ i = n(249),
+ a = n(14771),
+ l = n(74529),
+ c = s(n(36760).f),
+ u = s([].push),
+ p =
+ r &&
+ o(function () {
+ var e = Object.create(null);
+ return (e[2] = 2), !c(e, 2);
+ }),
+ h = function (e) {
+ return function (t) {
+ for (var n, o = l(t), s = a(o), h = p && null === i(o), f = s.length, d = 0, m = []; f > d; )
+ (n = s[d++]), (r && !(h ? n in o : c(o, n))) || u(m, e ? [n, o[n]] : o[n]);
+ return m;
+ };
+ };
+ e.exports = { entries: h(!0), values: h(!1) };
+ },
+ 95623: (e, t, n) => {
+ 'use strict';
+ var r = n(22885),
+ o = n(9697);
+ e.exports = r
+ ? {}.toString
+ : function () {
+ return '[object ' + o(this) + ']';
+ };
+ },
+ 39811: (e, t, n) => {
+ var r = n(78834),
+ o = n(57475),
+ s = n(10941),
+ i = TypeError;
+ e.exports = function (e, t) {
+ var n, a;
+ if ('string' === t && o((n = e.toString)) && !s((a = r(n, e)))) return a;
+ if (o((n = e.valueOf)) && !s((a = r(n, e)))) return a;
+ if ('string' !== t && o((n = e.toString)) && !s((a = r(n, e)))) return a;
+ throw i("Can't convert object to primitive value");
+ };
+ },
+ 31136: (e, t, n) => {
+ var r = n(626),
+ o = n(95329),
+ s = n(10946),
+ i = n(87857),
+ a = n(96059),
+ l = o([].concat);
+ e.exports =
+ r('Reflect', 'ownKeys') ||
+ function (e) {
+ var t = s.f(a(e)),
+ n = i.f;
+ return n ? l(t, n(e)) : t;
+ };
+ },
+ 54058: (e) => {
+ e.exports = {};
+ },
+ 40002: (e) => {
+ e.exports = function (e) {
+ try {
+ return { error: !1, value: e() };
+ } catch (e) {
+ return { error: !0, value: e };
+ }
+ };
+ },
+ 67742: (e, t, n) => {
+ var r = n(21899),
+ o = n(6991),
+ s = n(57475),
+ i = n(37252),
+ a = n(81302),
+ l = n(99813),
+ c = n(23321),
+ u = n(48501),
+ p = n(82529),
+ h = n(53385),
+ f = o && o.prototype,
+ d = l('species'),
+ m = !1,
+ g = s(r.PromiseRejectionEvent),
+ y = i('Promise', function () {
+ var e = a(o),
+ t = e !== String(o);
+ if (!t && 66 === h) return !0;
+ if (p && (!f.catch || !f.finally)) return !0;
+ if (!h || h < 51 || !/native code/.test(e)) {
+ var n = new o(function (e) {
+ e(1);
+ }),
+ r = function (e) {
+ e(
+ function () {},
+ function () {}
+ );
+ };
+ if ((((n.constructor = {})[d] = r), !(m = n.then(function () {}) instanceof r))) return !0;
+ }
+ return !t && (c || u) && !g;
+ });
+ e.exports = { CONSTRUCTOR: y, REJECTION_EVENT: g, SUBCLASSING: m };
+ },
+ 6991: (e, t, n) => {
+ var r = n(21899);
+ e.exports = r.Promise;
+ },
+ 56584: (e, t, n) => {
+ var r = n(96059),
+ o = n(10941),
+ s = n(69520);
+ e.exports = function (e, t) {
+ if ((r(e), o(t) && t.constructor === e)) return t;
+ var n = s.f(e);
+ return (0, n.resolve)(t), n.promise;
+ };
+ },
+ 31542: (e, t, n) => {
+ var r = n(6991),
+ o = n(21385),
+ s = n(67742).CONSTRUCTOR;
+ e.exports =
+ s ||
+ !o(function (e) {
+ r.all(e).then(void 0, function () {});
+ });
+ },
+ 18397: (e) => {
+ var t = function () {
+ (this.head = null), (this.tail = null);
+ };
+ (t.prototype = {
+ add: function (e) {
+ var t = { item: e, next: null },
+ n = this.tail;
+ n ? (n.next = t) : (this.head = t), (this.tail = t);
+ },
+ get: function () {
+ var e = this.head;
+ if (e) return null === (this.head = e.next) && (this.tail = null), e.item;
+ },
+ }),
+ (e.exports = t);
+ },
+ 48219: (e, t, n) => {
+ var r = n(82119),
+ o = TypeError;
+ e.exports = function (e) {
+ if (r(e)) throw o("Can't call method on " + e);
+ return e;
+ };
+ },
+ 37620: (e, t, n) => {
+ 'use strict';
+ var r,
+ o = n(21899),
+ s = n(79730),
+ i = n(57475),
+ a = n(56491),
+ l = n(2861),
+ c = n(93765),
+ u = n(18348),
+ p = o.Function,
+ h =
+ /MSIE .\./.test(l) ||
+ (a &&
+ ((r = o.Bun.version.split('.')).length < 3 || (0 == r[0] && (r[1] < 3 || (3 == r[1] && 0 == r[2])))));
+ e.exports = function (e, t) {
+ var n = t ? 2 : 1;
+ return h
+ ? function (r, o) {
+ var a = u(arguments.length, 1) > n,
+ l = i(r) ? r : p(r),
+ h = a ? c(arguments, n) : [],
+ f = a
+ ? function () {
+ s(l, this, h);
+ }
+ : l;
+ return t ? e(f, o) : e(f);
+ }
+ : e;
+ };
+ },
+ 94431: (e, t, n) => {
+ 'use strict';
+ var r = n(626),
+ o = n(29202),
+ s = n(99813),
+ i = n(55746),
+ a = s('species');
+ e.exports = function (e) {
+ var t = r(e);
+ i &&
+ t &&
+ !t[a] &&
+ o(t, a, {
+ configurable: !0,
+ get: function () {
+ return this;
+ },
+ });
+ };
+ },
+ 90904: (e, t, n) => {
+ var r = n(22885),
+ o = n(65988).f,
+ s = n(32029),
+ i = n(90953),
+ a = n(95623),
+ l = n(99813)('toStringTag');
+ e.exports = function (e, t, n, c) {
+ if (e) {
+ var u = n ? e : e.prototype;
+ i(u, l) || o(u, l, { configurable: !0, value: t }), c && !r && s(u, 'toString', a);
+ }
+ };
+ },
+ 44262: (e, t, n) => {
+ var r = n(68726),
+ o = n(99418),
+ s = r('keys');
+ e.exports = function (e) {
+ return s[e] || (s[e] = o(e));
+ };
+ },
+ 63030: (e, t, n) => {
+ var r = n(21899),
+ o = n(75609),
+ s = '__core-js_shared__',
+ i = r[s] || o(s, {});
+ e.exports = i;
+ },
+ 68726: (e, t, n) => {
+ var r = n(82529),
+ o = n(63030);
+ (e.exports = function (e, t) {
+ return o[e] || (o[e] = void 0 !== t ? t : {});
+ })('versions', []).push({
+ version: '3.31.0',
+ mode: r ? 'pure' : 'global',
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
+ license: 'https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE',
+ source: 'https://github.com/zloirock/core-js',
+ });
+ },
+ 70487: (e, t, n) => {
+ var r = n(96059),
+ o = n(174),
+ s = n(82119),
+ i = n(99813)('species');
+ e.exports = function (e, t) {
+ var n,
+ a = r(e).constructor;
+ return void 0 === a || s((n = r(a)[i])) ? t : o(n);
+ };
+ },
+ 64620: (e, t, n) => {
+ var r = n(95329),
+ o = n(62435),
+ s = n(85803),
+ i = n(48219),
+ a = r(''.charAt),
+ l = r(''.charCodeAt),
+ c = r(''.slice),
+ u = function (e) {
+ return function (t, n) {
+ var r,
+ u,
+ p = s(i(t)),
+ h = o(n),
+ f = p.length;
+ return h < 0 || h >= f
+ ? e
+ ? ''
+ : void 0
+ : (r = l(p, h)) < 55296 || r > 56319 || h + 1 === f || (u = l(p, h + 1)) < 56320 || u > 57343
+ ? e
+ ? a(p, h)
+ : r
+ : e
+ ? c(p, h, h + 2)
+ : u - 56320 + ((r - 55296) << 10) + 65536;
+ };
+ };
+ e.exports = { codeAt: u(!1), charAt: u(!0) };
+ },
+ 73291: (e, t, n) => {
+ var r = n(95329),
+ o = 2147483647,
+ s = /[^\0-\u007E]/,
+ i = /[.\u3002\uFF0E\uFF61]/g,
+ a = 'Overflow: input needs wider integers to process',
+ l = RangeError,
+ c = r(i.exec),
+ u = Math.floor,
+ p = String.fromCharCode,
+ h = r(''.charCodeAt),
+ f = r([].join),
+ d = r([].push),
+ m = r(''.replace),
+ g = r(''.split),
+ y = r(''.toLowerCase),
+ v = function (e) {
+ return e + 22 + 75 * (e < 26);
+ },
+ b = function (e, t, n) {
+ var r = 0;
+ for (e = n ? u(e / 700) : e >> 1, e += u(e / t); e > 455; ) (e = u(e / 35)), (r += 36);
+ return u(r + (36 * e) / (e + 38));
+ },
+ w = function (e) {
+ var t = [];
+ e = (function (e) {
+ for (var t = [], n = 0, r = e.length; n < r; ) {
+ var o = h(e, n++);
+ if (o >= 55296 && o <= 56319 && n < r) {
+ var s = h(e, n++);
+ 56320 == (64512 & s) ? d(t, ((1023 & o) << 10) + (1023 & s) + 65536) : (d(t, o), n--);
+ } else d(t, o);
+ }
+ return t;
+ })(e);
+ var n,
+ r,
+ s = e.length,
+ i = 128,
+ c = 0,
+ m = 72;
+ for (n = 0; n < e.length; n++) (r = e[n]) < 128 && d(t, p(r));
+ var g = t.length,
+ y = g;
+ for (g && d(t, '-'); y < s; ) {
+ var w = o;
+ for (n = 0; n < e.length; n++) (r = e[n]) >= i && r < w && (w = r);
+ var E = y + 1;
+ if (w - i > u((o - c) / E)) throw l(a);
+ for (c += (w - i) * E, i = w, n = 0; n < e.length; n++) {
+ if ((r = e[n]) < i && ++c > o) throw l(a);
+ if (r == i) {
+ for (var x = c, S = 36; ; ) {
+ var _ = S <= m ? 1 : S >= m + 26 ? 26 : S - m;
+ if (x < _) break;
+ var j = x - _,
+ O = 36 - _;
+ d(t, p(v(_ + (j % O)))), (x = u(j / O)), (S += 36);
+ }
+ d(t, p(v(x))), (m = b(c, E, y == g)), (c = 0), y++;
+ }
+ }
+ c++, i++;
+ }
+ return f(t, '');
+ };
+ e.exports = function (e) {
+ var t,
+ n,
+ r = [],
+ o = g(m(y(e), i, '.'), '.');
+ for (t = 0; t < o.length; t++) (n = o[t]), d(r, c(s, n) ? 'xn--' + w(n) : n);
+ return f(r, '.');
+ };
+ },
+ 16178: (e, t, n) => {
+ 'use strict';
+ var r = n(62435),
+ o = n(85803),
+ s = n(48219),
+ i = RangeError;
+ e.exports = function (e) {
+ var t = o(s(this)),
+ n = '',
+ a = r(e);
+ if (a < 0 || a == 1 / 0) throw i('Wrong number of repetitions');
+ for (; a > 0; (a >>>= 1) && (t += t)) 1 & a && (n += t);
+ return n;
+ };
+ },
+ 93093: (e, t, n) => {
+ var r = n(79417).PROPER,
+ o = n(95981),
+ s = n(73483);
+ e.exports = function (e) {
+ return o(function () {
+ return !!s[e]() || '
' !== '
'[e]() || (r && s[e].name !== e);
+ });
+ };
+ },
+ 74853: (e, t, n) => {
+ var r = n(95329),
+ o = n(48219),
+ s = n(85803),
+ i = n(73483),
+ a = r(''.replace),
+ l = RegExp('^[' + i + ']+'),
+ c = RegExp('(^|[^' + i + '])[' + i + ']+$'),
+ u = function (e) {
+ return function (t) {
+ var n = s(o(t));
+ return 1 & e && (n = a(n, l, '')), 2 & e && (n = a(n, c, '$1')), n;
+ };
+ };
+ e.exports = { start: u(1), end: u(2), trim: u(3) };
+ },
+ 63405: (e, t, n) => {
+ var r = n(53385),
+ o = n(95981),
+ s = n(21899).String;
+ e.exports =
+ !!Object.getOwnPropertySymbols &&
+ !o(function () {
+ var e = Symbol();
+ return !s(e) || !(Object(e) instanceof Symbol) || (!Symbol.sham && r && r < 41);
+ });
+ },
+ 29630: (e, t, n) => {
+ var r = n(78834),
+ o = n(626),
+ s = n(99813),
+ i = n(95929);
+ e.exports = function () {
+ var e = o('Symbol'),
+ t = e && e.prototype,
+ n = t && t.valueOf,
+ a = s('toPrimitive');
+ t &&
+ !t[a] &&
+ i(
+ t,
+ a,
+ function (e) {
+ return r(n, this);
+ },
+ { arity: 1 }
+ );
+ };
+ },
+ 32087: (e, t, n) => {
+ var r = n(626),
+ o = n(95329),
+ s = r('Symbol'),
+ i = s.keyFor,
+ a = o(s.prototype.valueOf);
+ e.exports =
+ s.isRegisteredSymbol ||
+ function (e) {
+ try {
+ return void 0 !== i(a(e));
+ } catch (e) {
+ return !1;
+ }
+ };
+ },
+ 96559: (e, t, n) => {
+ for (
+ var r = n(68726),
+ o = n(626),
+ s = n(95329),
+ i = n(56664),
+ a = n(99813),
+ l = o('Symbol'),
+ c = l.isWellKnownSymbol,
+ u = o('Object', 'getOwnPropertyNames'),
+ p = s(l.prototype.valueOf),
+ h = r('wks'),
+ f = 0,
+ d = u(l),
+ m = d.length;
+ f < m;
+ f++
+ )
+ try {
+ var g = d[f];
+ i(l[g]) && a(g);
+ } catch (e) {}
+ e.exports = function (e) {
+ if (c && c(e)) return !0;
+ try {
+ for (var t = p(e), n = 0, r = u(h), o = r.length; n < o; n++) if (h[r[n]] == t) return !0;
+ } catch (e) {}
+ return !1;
+ };
+ },
+ 34680: (e, t, n) => {
+ var r = n(63405);
+ e.exports = r && !!Symbol.for && !!Symbol.keyFor;
+ },
+ 42941: (e, t, n) => {
+ var r,
+ o,
+ s,
+ i,
+ a = n(21899),
+ l = n(79730),
+ c = n(86843),
+ u = n(57475),
+ p = n(90953),
+ h = n(95981),
+ f = n(15463),
+ d = n(93765),
+ m = n(61333),
+ g = n(18348),
+ y = n(22749),
+ v = n(6049),
+ b = a.setImmediate,
+ w = a.clearImmediate,
+ E = a.process,
+ x = a.Dispatch,
+ S = a.Function,
+ _ = a.MessageChannel,
+ j = a.String,
+ O = 0,
+ k = {},
+ A = 'onreadystatechange';
+ h(function () {
+ r = a.location;
+ });
+ var C = function (e) {
+ if (p(k, e)) {
+ var t = k[e];
+ delete k[e], t();
+ }
+ },
+ P = function (e) {
+ return function () {
+ C(e);
+ };
+ },
+ N = function (e) {
+ C(e.data);
+ },
+ I = function (e) {
+ a.postMessage(j(e), r.protocol + '//' + r.host);
+ };
+ (b && w) ||
+ ((b = function (e) {
+ g(arguments.length, 1);
+ var t = u(e) ? e : S(e),
+ n = d(arguments, 1);
+ return (
+ (k[++O] = function () {
+ l(t, void 0, n);
+ }),
+ o(O),
+ O
+ );
+ }),
+ (w = function (e) {
+ delete k[e];
+ }),
+ v
+ ? (o = function (e) {
+ E.nextTick(P(e));
+ })
+ : x && x.now
+ ? (o = function (e) {
+ x.now(P(e));
+ })
+ : _ && !y
+ ? ((i = (s = new _()).port2), (s.port1.onmessage = N), (o = c(i.postMessage, i)))
+ : a.addEventListener && u(a.postMessage) && !a.importScripts && r && 'file:' !== r.protocol && !h(I)
+ ? ((o = I), a.addEventListener('message', N, !1))
+ : (o =
+ A in m('script')
+ ? function (e) {
+ f.appendChild(m('script'))[A] = function () {
+ f.removeChild(this), C(e);
+ };
+ }
+ : function (e) {
+ setTimeout(P(e), 0);
+ })),
+ (e.exports = { set: b, clear: w });
+ },
+ 59413: (e, t, n) => {
+ var r = n(62435),
+ o = Math.max,
+ s = Math.min;
+ e.exports = function (e, t) {
+ var n = r(e);
+ return n < 0 ? o(n + t, 0) : s(n, t);
+ };
+ },
+ 74529: (e, t, n) => {
+ var r = n(37026),
+ o = n(48219);
+ e.exports = function (e) {
+ return r(o(e));
+ };
+ },
+ 62435: (e, t, n) => {
+ var r = n(35331);
+ e.exports = function (e) {
+ var t = +e;
+ return t != t || 0 === t ? 0 : r(t);
+ };
+ },
+ 43057: (e, t, n) => {
+ var r = n(62435),
+ o = Math.min;
+ e.exports = function (e) {
+ return e > 0 ? o(r(e), 9007199254740991) : 0;
+ };
+ },
+ 89678: (e, t, n) => {
+ var r = n(48219),
+ o = Object;
+ e.exports = function (e) {
+ return o(r(e));
+ };
+ },
+ 46935: (e, t, n) => {
+ var r = n(78834),
+ o = n(10941),
+ s = n(56664),
+ i = n(14229),
+ a = n(39811),
+ l = n(99813),
+ c = TypeError,
+ u = l('toPrimitive');
+ e.exports = function (e, t) {
+ if (!o(e) || s(e)) return e;
+ var n,
+ l = i(e, u);
+ if (l) {
+ if ((void 0 === t && (t = 'default'), (n = r(l, e, t)), !o(n) || s(n))) return n;
+ throw c("Can't convert object to primitive value");
+ }
+ return void 0 === t && (t = 'number'), a(e, t);
+ };
+ },
+ 83894: (e, t, n) => {
+ var r = n(46935),
+ o = n(56664);
+ e.exports = function (e) {
+ var t = r(e, 'string');
+ return o(t) ? t : t + '';
+ };
+ },
+ 22885: (e, t, n) => {
+ var r = {};
+ (r[n(99813)('toStringTag')] = 'z'), (e.exports = '[object z]' === String(r));
+ },
+ 85803: (e, t, n) => {
+ var r = n(9697),
+ o = String;
+ e.exports = function (e) {
+ if ('Symbol' === r(e)) throw TypeError('Cannot convert a Symbol value to a string');
+ return o(e);
+ };
+ },
+ 69826: (e) => {
+ var t = String;
+ e.exports = function (e) {
+ try {
+ return t(e);
+ } catch (e) {
+ return 'Object';
+ }
+ };
+ },
+ 99418: (e, t, n) => {
+ var r = n(95329),
+ o = 0,
+ s = Math.random(),
+ i = r((1).toString);
+ e.exports = function (e) {
+ return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + i(++o + s, 36);
+ };
+ },
+ 14766: (e, t, n) => {
+ var r = n(95981),
+ o = n(99813),
+ s = n(55746),
+ i = n(82529),
+ a = o('iterator');
+ e.exports = !r(function () {
+ var e = new URL('b?a=1&b=2&c=3', 'http://a'),
+ t = e.searchParams,
+ n = new URLSearchParams('a=1&a=2'),
+ r = '';
+ return (
+ (e.pathname = 'c%20d'),
+ t.forEach(function (e, n) {
+ t.delete('b'), (r += n + e);
+ }),
+ n.delete('a', 2),
+ (i && (!e.toJSON || !n.has('a', 1) || n.has('a', 2))) ||
+ (!t.size && (i || !s)) ||
+ !t.sort ||
+ 'http://a/c%20d?a=1&c=3' !== e.href ||
+ '3' !== t.get('c') ||
+ 'a=1' !== String(new URLSearchParams('?a=1')) ||
+ !t[a] ||
+ 'a' !== new URL('https://a@b').username ||
+ 'b' !== new URLSearchParams(new URLSearchParams('a=b')).get('a') ||
+ 'xn--e1aybc' !== new URL('http://тест').host ||
+ '#%D0%B1' !== new URL('http://a#б').hash ||
+ 'a1c3' !== r ||
+ 'x' !== new URL('http://x', void 0).host
+ );
+ });
+ },
+ 32302: (e, t, n) => {
+ var r = n(63405);
+ e.exports = r && !Symbol.sham && 'symbol' == typeof Symbol.iterator;
+ },
+ 83937: (e, t, n) => {
+ var r = n(55746),
+ o = n(95981);
+ e.exports =
+ r &&
+ o(function () {
+ return 42 != Object.defineProperty(function () {}, 'prototype', { value: 42, writable: !1 }).prototype;
+ });
+ },
+ 18348: (e) => {
+ var t = TypeError;
+ e.exports = function (e, n) {
+ if (e < n) throw t('Not enough arguments');
+ return e;
+ };
+ },
+ 47093: (e, t, n) => {
+ var r = n(21899),
+ o = n(57475),
+ s = r.WeakMap;
+ e.exports = o(s) && /native code/.test(String(s));
+ },
+ 73464: (e, t, n) => {
+ var r = n(54058),
+ o = n(90953),
+ s = n(11477),
+ i = n(65988).f;
+ e.exports = function (e) {
+ var t = r.Symbol || (r.Symbol = {});
+ o(t, e) || i(t, e, { value: s.f(e) });
+ };
+ },
+ 11477: (e, t, n) => {
+ var r = n(99813);
+ t.f = r;
+ },
+ 99813: (e, t, n) => {
+ var r = n(21899),
+ o = n(68726),
+ s = n(90953),
+ i = n(99418),
+ a = n(63405),
+ l = n(32302),
+ c = r.Symbol,
+ u = o('wks'),
+ p = l ? c.for || c : (c && c.withoutSetter) || i;
+ e.exports = function (e) {
+ return s(u, e) || (u[e] = a && s(c, e) ? c[e] : p('Symbol.' + e)), u[e];
+ };
+ },
+ 73483: (e) => {
+ e.exports = '\t\n\v\f\r \u2028\u2029\ufeff';
+ },
+ 49812: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(7046),
+ s = n(249),
+ i = n(88929),
+ a = n(23489),
+ l = n(29290),
+ c = n(32029),
+ u = n(31887),
+ p = n(53794),
+ h = n(79585),
+ f = n(93091),
+ d = n(14649),
+ m = n(99813)('toStringTag'),
+ g = Error,
+ y = [].push,
+ v = function (e, t) {
+ var n,
+ r = o(b, this);
+ i ? (n = i(g(), r ? s(this) : b)) : ((n = r ? this : l(b)), c(n, m, 'Error')),
+ void 0 !== t && c(n, 'message', d(t)),
+ h(n, v, n.stack, 1),
+ arguments.length > 2 && p(n, arguments[2]);
+ var a = [];
+ return f(e, y, { that: a }), c(n, 'errors', a), n;
+ };
+ i ? i(v, g) : a(v, g, { name: !0 });
+ var b = (v.prototype = l(g.prototype, {
+ constructor: u(1, v),
+ message: u(1, ''),
+ name: u(1, 'AggregateError'),
+ }));
+ r({ global: !0, constructor: !0, arity: 2 }, { AggregateError: v });
+ },
+ 47627: (e, t, n) => {
+ n(49812);
+ },
+ 85906: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(95981),
+ s = n(1052),
+ i = n(10941),
+ a = n(89678),
+ l = n(10623),
+ c = n(66796),
+ u = n(55449),
+ p = n(64692),
+ h = n(50568),
+ f = n(99813),
+ d = n(53385),
+ m = f('isConcatSpreadable'),
+ g =
+ d >= 51 ||
+ !o(function () {
+ var e = [];
+ return (e[m] = !1), e.concat()[0] !== e;
+ }),
+ y = function (e) {
+ if (!i(e)) return !1;
+ var t = e[m];
+ return void 0 !== t ? !!t : s(e);
+ };
+ r(
+ { target: 'Array', proto: !0, arity: 1, forced: !g || !h('concat') },
+ {
+ concat: function (e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i = a(this),
+ h = p(i, 0),
+ f = 0;
+ for (t = -1, r = arguments.length; t < r; t++)
+ if (y((s = -1 === t ? i : arguments[t])))
+ for (o = l(s), c(f + o), n = 0; n < o; n++, f++) n in s && u(h, f, s[n]);
+ else c(f + 1), u(h, f++, s);
+ return (h.length = f), h;
+ },
+ }
+ );
+ },
+ 48851: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(3610).every;
+ r(
+ { target: 'Array', proto: !0, forced: !n(34194)('every') },
+ {
+ every: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 80290: (e, t, n) => {
+ var r = n(76887),
+ o = n(91860),
+ s = n(18479);
+ r({ target: 'Array', proto: !0 }, { fill: o }), s('fill');
+ },
+ 21501: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(3610).filter;
+ r(
+ { target: 'Array', proto: !0, forced: !n(50568)('filter') },
+ {
+ filter: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 44929: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(3610).findIndex,
+ s = n(18479),
+ i = 'findIndex',
+ a = !0;
+ i in [] &&
+ Array(1)[i](function () {
+ a = !1;
+ }),
+ r(
+ { target: 'Array', proto: !0, forced: a },
+ {
+ findIndex: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ ),
+ s(i);
+ },
+ 80833: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(3610).find,
+ s = n(18479),
+ i = 'find',
+ a = !0;
+ i in [] &&
+ Array(1)[i](function () {
+ a = !1;
+ }),
+ r(
+ { target: 'Array', proto: !0, forced: a },
+ {
+ find: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ ),
+ s(i);
+ },
+ 2437: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(56837);
+ r({ target: 'Array', proto: !0, forced: [].forEach != o }, { forEach: o });
+ },
+ 53242: (e, t, n) => {
+ var r = n(76887),
+ o = n(11354);
+ r(
+ {
+ target: 'Array',
+ stat: !0,
+ forced: !n(21385)(function (e) {
+ Array.from(e);
+ }),
+ },
+ { from: o }
+ );
+ },
+ 97690: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(31692).includes,
+ s = n(95981),
+ i = n(18479);
+ r(
+ {
+ target: 'Array',
+ proto: !0,
+ forced: s(function () {
+ return !Array(1).includes();
+ }),
+ },
+ {
+ includes: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ ),
+ i('includes');
+ },
+ 99076: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(97484),
+ s = n(31692).indexOf,
+ i = n(34194),
+ a = o([].indexOf),
+ l = !!a && 1 / a([1], 1, -0) < 0;
+ r(
+ { target: 'Array', proto: !0, forced: l || !i('indexOf') },
+ {
+ indexOf: function (e) {
+ var t = arguments.length > 1 ? arguments[1] : void 0;
+ return l ? a(this, e, t) || 0 : s(this, e, t);
+ },
+ }
+ );
+ },
+ 92737: (e, t, n) => {
+ n(76887)({ target: 'Array', stat: !0 }, { isArray: n(1052) });
+ },
+ 66274: (e, t, n) => {
+ 'use strict';
+ var r = n(74529),
+ o = n(18479),
+ s = n(12077),
+ i = n(45402),
+ a = n(65988).f,
+ l = n(75105),
+ c = n(23538),
+ u = n(82529),
+ p = n(55746),
+ h = 'Array Iterator',
+ f = i.set,
+ d = i.getterFor(h);
+ e.exports = l(
+ Array,
+ 'Array',
+ function (e, t) {
+ f(this, { type: h, target: r(e), index: 0, kind: t });
+ },
+ function () {
+ var e = d(this),
+ t = e.target,
+ n = e.kind,
+ r = e.index++;
+ return !t || r >= t.length
+ ? ((e.target = void 0), c(void 0, !0))
+ : c('keys' == n ? r : 'values' == n ? t[r] : [r, t[r]], !1);
+ },
+ 'values'
+ );
+ var m = (s.Arguments = s.Array);
+ if ((o('keys'), o('values'), o('entries'), !u && p && 'values' !== m.name))
+ try {
+ a(m, 'name', { value: 'values' });
+ } catch (e) {}
+ },
+ 75915: (e, t, n) => {
+ var r = n(76887),
+ o = n(67145);
+ r({ target: 'Array', proto: !0, forced: o !== [].lastIndexOf }, { lastIndexOf: o });
+ },
+ 68787: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(3610).map;
+ r(
+ { target: 'Array', proto: !0, forced: !n(50568)('map') },
+ {
+ map: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 48528: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(89678),
+ s = n(10623),
+ i = n(89779),
+ a = n(66796);
+ r(
+ {
+ target: 'Array',
+ proto: !0,
+ arity: 1,
+ forced:
+ n(95981)(function () {
+ return 4294967297 !== [].push.call({ length: 4294967296 }, 1);
+ }) ||
+ !(function () {
+ try {
+ Object.defineProperty([], 'length', { writable: !1 }).push();
+ } catch (e) {
+ return e instanceof TypeError;
+ }
+ })(),
+ },
+ {
+ push: function (e) {
+ var t = o(this),
+ n = s(t),
+ r = arguments.length;
+ a(n + r);
+ for (var l = 0; l < r; l++) (t[n] = arguments[l]), n++;
+ return i(t, n), n;
+ },
+ }
+ );
+ },
+ 81876: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(46499).left,
+ s = n(34194),
+ i = n(53385);
+ r(
+ { target: 'Array', proto: !0, forced: (!n(6049) && i > 79 && i < 83) || !s('reduce') },
+ {
+ reduce: function (e) {
+ var t = arguments.length;
+ return o(this, e, t, t > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 60186: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(1052),
+ s = n(24284),
+ i = n(10941),
+ a = n(59413),
+ l = n(10623),
+ c = n(74529),
+ u = n(55449),
+ p = n(99813),
+ h = n(50568),
+ f = n(93765),
+ d = h('slice'),
+ m = p('species'),
+ g = Array,
+ y = Math.max;
+ r(
+ { target: 'Array', proto: !0, forced: !d },
+ {
+ slice: function (e, t) {
+ var n,
+ r,
+ p,
+ h = c(this),
+ d = l(h),
+ v = a(e, d),
+ b = a(void 0 === t ? d : t, d);
+ if (
+ o(h) &&
+ ((n = h.constructor),
+ ((s(n) && (n === g || o(n.prototype))) || (i(n) && null === (n = n[m]))) && (n = void 0),
+ n === g || void 0 === n)
+ )
+ return f(h, v, b);
+ for (r = new (void 0 === n ? g : n)(y(b - v, 0)), p = 0; v < b; v++, p++) v in h && u(r, p, h[v]);
+ return (r.length = p), r;
+ },
+ }
+ );
+ },
+ 36026: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(3610).some;
+ r(
+ { target: 'Array', proto: !0, forced: !n(34194)('some') },
+ {
+ some: function (e) {
+ return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 4115: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(95329),
+ s = n(24883),
+ i = n(89678),
+ a = n(10623),
+ l = n(15863),
+ c = n(85803),
+ u = n(95981),
+ p = n(61388),
+ h = n(34194),
+ f = n(34342),
+ d = n(81046),
+ m = n(53385),
+ g = n(18938),
+ y = [],
+ v = o(y.sort),
+ b = o(y.push),
+ w = u(function () {
+ y.sort(void 0);
+ }),
+ E = u(function () {
+ y.sort(null);
+ }),
+ x = h('sort'),
+ S = !u(function () {
+ if (m) return m < 70;
+ if (!(f && f > 3)) {
+ if (d) return !0;
+ if (g) return g < 603;
+ var e,
+ t,
+ n,
+ r,
+ o = '';
+ for (e = 65; e < 76; e++) {
+ switch (((t = String.fromCharCode(e)), e)) {
+ case 66:
+ case 69:
+ case 70:
+ case 72:
+ n = 3;
+ break;
+ case 68:
+ case 71:
+ n = 4;
+ break;
+ default:
+ n = 2;
+ }
+ for (r = 0; r < 47; r++) y.push({ k: t + r, v: n });
+ }
+ for (
+ y.sort(function (e, t) {
+ return t.v - e.v;
+ }),
+ r = 0;
+ r < y.length;
+ r++
+ )
+ (t = y[r].k.charAt(0)), o.charAt(o.length - 1) !== t && (o += t);
+ return 'DGBEFHACIJK' !== o;
+ }
+ });
+ r(
+ { target: 'Array', proto: !0, forced: w || !E || !x || !S },
+ {
+ sort: function (e) {
+ void 0 !== e && s(e);
+ var t = i(this);
+ if (S) return void 0 === e ? v(t) : v(t, e);
+ var n,
+ r,
+ o = [],
+ u = a(t);
+ for (r = 0; r < u; r++) r in t && b(o, t[r]);
+ for (
+ p(
+ o,
+ (function (e) {
+ return function (t, n) {
+ return void 0 === n
+ ? -1
+ : void 0 === t
+ ? 1
+ : void 0 !== e
+ ? +e(t, n) || 0
+ : c(t) > c(n)
+ ? 1
+ : -1;
+ };
+ })(e)
+ ),
+ n = a(o),
+ r = 0;
+ r < n;
+
+ )
+ t[r] = o[r++];
+ for (; r < u; ) l(t, r++);
+ return t;
+ },
+ }
+ );
+ },
+ 98611: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(89678),
+ s = n(59413),
+ i = n(62435),
+ a = n(10623),
+ l = n(89779),
+ c = n(66796),
+ u = n(64692),
+ p = n(55449),
+ h = n(15863),
+ f = n(50568)('splice'),
+ d = Math.max,
+ m = Math.min;
+ r(
+ { target: 'Array', proto: !0, forced: !f },
+ {
+ splice: function (e, t) {
+ var n,
+ r,
+ f,
+ g,
+ y,
+ v,
+ b = o(this),
+ w = a(b),
+ E = s(e, w),
+ x = arguments.length;
+ for (
+ 0 === x ? (n = r = 0) : 1 === x ? ((n = 0), (r = w - E)) : ((n = x - 2), (r = m(d(i(t), 0), w - E))),
+ c(w + n - r),
+ f = u(b, r),
+ g = 0;
+ g < r;
+ g++
+ )
+ (y = E + g) in b && p(f, g, b[y]);
+ if (((f.length = r), n < r)) {
+ for (g = E; g < w - r; g++) (v = g + n), (y = g + r) in b ? (b[v] = b[y]) : h(b, v);
+ for (g = w; g > w - r + n; g--) h(b, g - 1);
+ } else if (n > r)
+ for (g = w - r; g > E; g--) (v = g + n - 1), (y = g + r - 1) in b ? (b[v] = b[y]) : h(b, v);
+ for (g = 0; g < n; g++) b[g + E] = arguments[g + 2];
+ return l(b, w - r + n), f;
+ },
+ }
+ );
+ },
+ 95160: (e, t, n) => {
+ var r = n(76887),
+ o = n(95329),
+ s = Date,
+ i = o(s.prototype.getTime);
+ r(
+ { target: 'Date', stat: !0 },
+ {
+ now: function () {
+ return i(new s());
+ },
+ }
+ );
+ },
+ 18084: () => {},
+ 73381: (e, t, n) => {
+ var r = n(76887),
+ o = n(98308);
+ r({ target: 'Function', proto: !0, forced: Function.bind !== o }, { bind: o });
+ },
+ 32619: (e, t, n) => {
+ var r = n(76887),
+ o = n(626),
+ s = n(79730),
+ i = n(78834),
+ a = n(95329),
+ l = n(95981),
+ c = n(57475),
+ u = n(56664),
+ p = n(93765),
+ h = n(33323),
+ f = n(63405),
+ d = String,
+ m = o('JSON', 'stringify'),
+ g = a(/./.exec),
+ y = a(''.charAt),
+ v = a(''.charCodeAt),
+ b = a(''.replace),
+ w = a((1).toString),
+ E = /[\uD800-\uDFFF]/g,
+ x = /^[\uD800-\uDBFF]$/,
+ S = /^[\uDC00-\uDFFF]$/,
+ _ =
+ !f ||
+ l(function () {
+ var e = o('Symbol')();
+ return '[null]' != m([e]) || '{}' != m({ a: e }) || '{}' != m(Object(e));
+ }),
+ j = l(function () {
+ return '"\\udf06\\ud834"' !== m('\udf06\ud834') || '"\\udead"' !== m('\udead');
+ }),
+ O = function (e, t) {
+ var n = p(arguments),
+ r = h(t);
+ if (c(r) || (void 0 !== e && !u(e)))
+ return (
+ (n[1] = function (e, t) {
+ if ((c(r) && (t = i(r, this, d(e), t)), !u(t))) return t;
+ }),
+ s(m, null, n)
+ );
+ },
+ k = function (e, t, n) {
+ var r = y(n, t - 1),
+ o = y(n, t + 1);
+ return (g(x, e) && !g(S, o)) || (g(S, e) && !g(x, r)) ? '\\u' + w(v(e, 0), 16) : e;
+ };
+ m &&
+ r(
+ { target: 'JSON', stat: !0, arity: 3, forced: _ || j },
+ {
+ stringify: function (e, t, n) {
+ var r = p(arguments),
+ o = s(_ ? O : m, null, r);
+ return j && 'string' == typeof o ? b(o, E, k) : o;
+ },
+ }
+ );
+ },
+ 69120: (e, t, n) => {
+ var r = n(21899);
+ n(90904)(r.JSON, 'JSON', !0);
+ },
+ 23112: (e, t, n) => {
+ 'use strict';
+ n(24683)(
+ 'Map',
+ function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ n(85616)
+ );
+ },
+ 37501: (e, t, n) => {
+ n(23112);
+ },
+ 79413: () => {},
+ 54973: (e, t, n) => {
+ n(76887)({ target: 'Number', stat: !0, nonConfigurable: !0, nonWritable: !0 }, { EPSILON: Math.pow(2, -52) });
+ },
+ 30800: (e, t, n) => {
+ n(76887)({ target: 'Number', stat: !0 }, { isInteger: n(54639) });
+ },
+ 49221: (e, t, n) => {
+ var r = n(76887),
+ o = n(24420);
+ r({ target: 'Object', stat: !0, arity: 2, forced: Object.assign !== o }, { assign: o });
+ },
+ 74979: (e, t, n) => {
+ var r = n(76887),
+ o = n(55746),
+ s = n(59938).f;
+ r({ target: 'Object', stat: !0, forced: Object.defineProperties !== s, sham: !o }, { defineProperties: s });
+ },
+ 86450: (e, t, n) => {
+ var r = n(76887),
+ o = n(55746),
+ s = n(65988).f;
+ r({ target: 'Object', stat: !0, forced: Object.defineProperty !== s, sham: !o }, { defineProperty: s });
+ },
+ 94366: (e, t, n) => {
+ var r = n(76887),
+ o = n(88810).entries;
+ r(
+ { target: 'Object', stat: !0 },
+ {
+ entries: function (e) {
+ return o(e);
+ },
+ }
+ );
+ },
+ 28387: (e, t, n) => {
+ var r = n(76887),
+ o = n(93091),
+ s = n(55449);
+ r(
+ { target: 'Object', stat: !0 },
+ {
+ fromEntries: function (e) {
+ var t = {};
+ return (
+ o(
+ e,
+ function (e, n) {
+ s(t, e, n);
+ },
+ { AS_ENTRIES: !0 }
+ ),
+ t
+ );
+ },
+ }
+ );
+ },
+ 46924: (e, t, n) => {
+ var r = n(76887),
+ o = n(95981),
+ s = n(74529),
+ i = n(49677).f,
+ a = n(55746);
+ r(
+ {
+ target: 'Object',
+ stat: !0,
+ forced:
+ !a ||
+ o(function () {
+ i(1);
+ }),
+ sham: !a,
+ },
+ {
+ getOwnPropertyDescriptor: function (e, t) {
+ return i(s(e), t);
+ },
+ }
+ );
+ },
+ 88482: (e, t, n) => {
+ var r = n(76887),
+ o = n(55746),
+ s = n(31136),
+ i = n(74529),
+ a = n(49677),
+ l = n(55449);
+ r(
+ { target: 'Object', stat: !0, sham: !o },
+ {
+ getOwnPropertyDescriptors: function (e) {
+ for (var t, n, r = i(e), o = a.f, c = s(r), u = {}, p = 0; c.length > p; )
+ void 0 !== (n = o(r, (t = c[p++]))) && l(u, t, n);
+ return u;
+ },
+ }
+ );
+ },
+ 37144: (e, t, n) => {
+ var r = n(76887),
+ o = n(63405),
+ s = n(95981),
+ i = n(87857),
+ a = n(89678);
+ r(
+ {
+ target: 'Object',
+ stat: !0,
+ forced:
+ !o ||
+ s(function () {
+ i.f(1);
+ }),
+ },
+ {
+ getOwnPropertySymbols: function (e) {
+ var t = i.f;
+ return t ? t(a(e)) : [];
+ },
+ }
+ );
+ },
+ 21724: (e, t, n) => {
+ var r = n(76887),
+ o = n(89678),
+ s = n(14771);
+ r(
+ {
+ target: 'Object',
+ stat: !0,
+ forced: n(95981)(function () {
+ s(1);
+ }),
+ },
+ {
+ keys: function (e) {
+ return s(o(e));
+ },
+ }
+ );
+ },
+ 55967: () => {},
+ 26614: (e, t, n) => {
+ var r = n(76887),
+ o = n(88810).values;
+ r(
+ { target: 'Object', stat: !0 },
+ {
+ values: function (e) {
+ return o(e);
+ },
+ }
+ );
+ },
+ 4560: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(69520),
+ a = n(40002),
+ l = n(93091);
+ r(
+ { target: 'Promise', stat: !0, forced: n(31542) },
+ {
+ allSettled: function (e) {
+ var t = this,
+ n = i.f(t),
+ r = n.resolve,
+ c = n.reject,
+ u = a(function () {
+ var n = s(t.resolve),
+ i = [],
+ a = 0,
+ c = 1;
+ l(e, function (e) {
+ var s = a++,
+ l = !1;
+ c++,
+ o(n, t, e).then(
+ function (e) {
+ l || ((l = !0), (i[s] = { status: 'fulfilled', value: e }), --c || r(i));
+ },
+ function (e) {
+ l || ((l = !0), (i[s] = { status: 'rejected', reason: e }), --c || r(i));
+ }
+ );
+ }),
+ --c || r(i);
+ });
+ return u.error && c(u.value), n.promise;
+ },
+ }
+ );
+ },
+ 16890: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(69520),
+ a = n(40002),
+ l = n(93091);
+ r(
+ { target: 'Promise', stat: !0, forced: n(31542) },
+ {
+ all: function (e) {
+ var t = this,
+ n = i.f(t),
+ r = n.resolve,
+ c = n.reject,
+ u = a(function () {
+ var n = s(t.resolve),
+ i = [],
+ a = 0,
+ u = 1;
+ l(e, function (e) {
+ var s = a++,
+ l = !1;
+ u++,
+ o(n, t, e).then(function (e) {
+ l || ((l = !0), (i[s] = e), --u || r(i));
+ }, c);
+ }),
+ --u || r(i);
+ });
+ return u.error && c(u.value), n.promise;
+ },
+ }
+ );
+ },
+ 91302: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(626),
+ a = n(69520),
+ l = n(40002),
+ c = n(93091),
+ u = n(31542),
+ p = 'No one promise resolved';
+ r(
+ { target: 'Promise', stat: !0, forced: u },
+ {
+ any: function (e) {
+ var t = this,
+ n = i('AggregateError'),
+ r = a.f(t),
+ u = r.resolve,
+ h = r.reject,
+ f = l(function () {
+ var r = s(t.resolve),
+ i = [],
+ a = 0,
+ l = 1,
+ f = !1;
+ c(e, function (e) {
+ var s = a++,
+ c = !1;
+ l++,
+ o(r, t, e).then(
+ function (e) {
+ c || f || ((f = !0), u(e));
+ },
+ function (e) {
+ c || f || ((c = !0), (i[s] = e), --l || h(new n(i, p)));
+ }
+ );
+ }),
+ --l || h(new n(i, p));
+ });
+ return f.error && h(f.value), r.promise;
+ },
+ }
+ );
+ },
+ 83376: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(82529),
+ s = n(67742).CONSTRUCTOR,
+ i = n(6991),
+ a = n(626),
+ l = n(57475),
+ c = n(95929),
+ u = i && i.prototype;
+ if (
+ (r(
+ { target: 'Promise', proto: !0, forced: s, real: !0 },
+ {
+ catch: function (e) {
+ return this.then(void 0, e);
+ },
+ }
+ ),
+ !o && l(i))
+ ) {
+ var p = a('Promise').prototype.catch;
+ u.catch !== p && c(u, 'catch', p, { unsafe: !0 });
+ }
+ },
+ 26934: (e, t, n) => {
+ 'use strict';
+ var r,
+ o,
+ s,
+ i = n(76887),
+ a = n(82529),
+ l = n(6049),
+ c = n(21899),
+ u = n(78834),
+ p = n(95929),
+ h = n(88929),
+ f = n(90904),
+ d = n(94431),
+ m = n(24883),
+ g = n(57475),
+ y = n(10941),
+ v = n(5743),
+ b = n(70487),
+ w = n(42941).set,
+ E = n(66132),
+ x = n(34845),
+ S = n(40002),
+ _ = n(18397),
+ j = n(45402),
+ O = n(6991),
+ k = n(67742),
+ A = n(69520),
+ C = 'Promise',
+ P = k.CONSTRUCTOR,
+ N = k.REJECTION_EVENT,
+ I = k.SUBCLASSING,
+ T = j.getterFor(C),
+ R = j.set,
+ M = O && O.prototype,
+ D = O,
+ F = M,
+ L = c.TypeError,
+ B = c.document,
+ $ = c.process,
+ q = A.f,
+ U = q,
+ z = !!(B && B.createEvent && c.dispatchEvent),
+ V = 'unhandledrejection',
+ W = function (e) {
+ var t;
+ return !(!y(e) || !g((t = e.then))) && t;
+ },
+ J = function (e, t) {
+ var n,
+ r,
+ o,
+ s = t.value,
+ i = 1 == t.state,
+ a = i ? e.ok : e.fail,
+ l = e.resolve,
+ c = e.reject,
+ p = e.domain;
+ try {
+ a
+ ? (i || (2 === t.rejection && Y(t), (t.rejection = 1)),
+ !0 === a ? (n = s) : (p && p.enter(), (n = a(s)), p && (p.exit(), (o = !0))),
+ n === e.promise ? c(L('Promise-chain cycle')) : (r = W(n)) ? u(r, n, l, c) : l(n))
+ : c(s);
+ } catch (e) {
+ p && !o && p.exit(), c(e);
+ }
+ },
+ K = function (e, t) {
+ e.notified ||
+ ((e.notified = !0),
+ E(function () {
+ for (var n, r = e.reactions; (n = r.get()); ) J(n, e);
+ (e.notified = !1), t && !e.rejection && G(e);
+ }));
+ },
+ H = function (e, t, n) {
+ var r, o;
+ z
+ ? (((r = B.createEvent('Event')).promise = t),
+ (r.reason = n),
+ r.initEvent(e, !1, !0),
+ c.dispatchEvent(r))
+ : (r = { promise: t, reason: n }),
+ !N && (o = c['on' + e]) ? o(r) : e === V && x('Unhandled promise rejection', n);
+ },
+ G = function (e) {
+ u(w, c, function () {
+ var t,
+ n = e.facade,
+ r = e.value;
+ if (
+ Z(e) &&
+ ((t = S(function () {
+ l ? $.emit('unhandledRejection', r, n) : H(V, n, r);
+ })),
+ (e.rejection = l || Z(e) ? 2 : 1),
+ t.error)
+ )
+ throw t.value;
+ });
+ },
+ Z = function (e) {
+ return 1 !== e.rejection && !e.parent;
+ },
+ Y = function (e) {
+ u(w, c, function () {
+ var t = e.facade;
+ l ? $.emit('rejectionHandled', t) : H('rejectionhandled', t, e.value);
+ });
+ },
+ X = function (e, t, n) {
+ return function (r) {
+ e(t, r, n);
+ };
+ },
+ Q = function (e, t, n) {
+ e.done || ((e.done = !0), n && (e = n), (e.value = t), (e.state = 2), K(e, !0));
+ },
+ ee = function (e, t, n) {
+ if (!e.done) {
+ (e.done = !0), n && (e = n);
+ try {
+ if (e.facade === t) throw L("Promise can't be resolved itself");
+ var r = W(t);
+ r
+ ? E(function () {
+ var n = { done: !1 };
+ try {
+ u(r, t, X(ee, n, e), X(Q, n, e));
+ } catch (t) {
+ Q(n, t, e);
+ }
+ })
+ : ((e.value = t), (e.state = 1), K(e, !1));
+ } catch (t) {
+ Q({ done: !1 }, t, e);
+ }
+ }
+ };
+ if (
+ P &&
+ ((F = (D = function (e) {
+ v(this, F), m(e), u(r, this);
+ var t = T(this);
+ try {
+ e(X(ee, t), X(Q, t));
+ } catch (e) {
+ Q(t, e);
+ }
+ }).prototype),
+ ((r = function (e) {
+ R(this, {
+ type: C,
+ done: !1,
+ notified: !1,
+ parent: !1,
+ reactions: new _(),
+ rejection: !1,
+ state: 0,
+ value: void 0,
+ });
+ }).prototype = p(F, 'then', function (e, t) {
+ var n = T(this),
+ r = q(b(this, D));
+ return (
+ (n.parent = !0),
+ (r.ok = !g(e) || e),
+ (r.fail = g(t) && t),
+ (r.domain = l ? $.domain : void 0),
+ 0 == n.state
+ ? n.reactions.add(r)
+ : E(function () {
+ J(r, n);
+ }),
+ r.promise
+ );
+ })),
+ (o = function () {
+ var e = new r(),
+ t = T(e);
+ (this.promise = e), (this.resolve = X(ee, t)), (this.reject = X(Q, t));
+ }),
+ (A.f = q =
+ function (e) {
+ return e === D || undefined === e ? new o(e) : U(e);
+ }),
+ !a && g(O) && M !== Object.prototype)
+ ) {
+ (s = M.then),
+ I ||
+ p(
+ M,
+ 'then',
+ function (e, t) {
+ var n = this;
+ return new D(function (e, t) {
+ u(s, n, e, t);
+ }).then(e, t);
+ },
+ { unsafe: !0 }
+ );
+ try {
+ delete M.constructor;
+ } catch (e) {}
+ h && h(M, F);
+ }
+ i({ global: !0, constructor: !0, wrap: !0, forced: P }, { Promise: D }), f(D, C, !1, !0), d(C);
+ },
+ 44349: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(82529),
+ s = n(6991),
+ i = n(95981),
+ a = n(626),
+ l = n(57475),
+ c = n(70487),
+ u = n(56584),
+ p = n(95929),
+ h = s && s.prototype;
+ if (
+ (r(
+ {
+ target: 'Promise',
+ proto: !0,
+ real: !0,
+ forced:
+ !!s &&
+ i(function () {
+ h.finally.call({ then: function () {} }, function () {});
+ }),
+ },
+ {
+ finally: function (e) {
+ var t = c(this, a('Promise')),
+ n = l(e);
+ return this.then(
+ n
+ ? function (n) {
+ return u(t, e()).then(function () {
+ return n;
+ });
+ }
+ : e,
+ n
+ ? function (n) {
+ return u(t, e()).then(function () {
+ throw n;
+ });
+ }
+ : e
+ );
+ },
+ }
+ ),
+ !o && l(s))
+ ) {
+ var f = a('Promise').prototype.finally;
+ h.finally !== f && p(h, 'finally', f, { unsafe: !0 });
+ }
+ },
+ 98881: (e, t, n) => {
+ n(26934), n(16890), n(83376), n(55921), n(64069), n(14482);
+ },
+ 55921: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(78834),
+ s = n(24883),
+ i = n(69520),
+ a = n(40002),
+ l = n(93091);
+ r(
+ { target: 'Promise', stat: !0, forced: n(31542) },
+ {
+ race: function (e) {
+ var t = this,
+ n = i.f(t),
+ r = n.reject,
+ c = a(function () {
+ var i = s(t.resolve);
+ l(e, function (e) {
+ o(i, t, e).then(n.resolve, r);
+ });
+ });
+ return c.error && r(c.value), n.promise;
+ },
+ }
+ );
+ },
+ 64069: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(78834),
+ s = n(69520);
+ r(
+ { target: 'Promise', stat: !0, forced: n(67742).CONSTRUCTOR },
+ {
+ reject: function (e) {
+ var t = s.f(this);
+ return o(t.reject, void 0, e), t.promise;
+ },
+ }
+ );
+ },
+ 14482: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(626),
+ s = n(82529),
+ i = n(6991),
+ a = n(67742).CONSTRUCTOR,
+ l = n(56584),
+ c = o('Promise'),
+ u = s && !a;
+ r(
+ { target: 'Promise', stat: !0, forced: s || a },
+ {
+ resolve: function (e) {
+ return l(u && this === c ? i : this, e);
+ },
+ }
+ );
+ },
+ 1502: () => {},
+ 82266: (e, t, n) => {
+ 'use strict';
+ n(24683)(
+ 'Set',
+ function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ n(85616)
+ );
+ },
+ 69008: (e, t, n) => {
+ n(82266);
+ },
+ 11035: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(95329),
+ s = n(70344),
+ i = n(48219),
+ a = n(85803),
+ l = n(67772),
+ c = o(''.indexOf);
+ r(
+ { target: 'String', proto: !0, forced: !l('includes') },
+ {
+ includes: function (e) {
+ return !!~c(a(i(this)), a(s(e)), arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ 77971: (e, t, n) => {
+ 'use strict';
+ var r = n(64620).charAt,
+ o = n(85803),
+ s = n(45402),
+ i = n(75105),
+ a = n(23538),
+ l = 'String Iterator',
+ c = s.set,
+ u = s.getterFor(l);
+ i(
+ String,
+ 'String',
+ function (e) {
+ c(this, { type: l, string: o(e), index: 0 });
+ },
+ function () {
+ var e,
+ t = u(this),
+ n = t.string,
+ o = t.index;
+ return o >= n.length ? a(void 0, !0) : ((e = r(n, o)), (t.index += e.length), a(e, !1));
+ }
+ );
+ },
+ 74679: (e, t, n) => {
+ var r = n(76887),
+ o = n(95329),
+ s = n(74529),
+ i = n(89678),
+ a = n(85803),
+ l = n(10623),
+ c = o([].push),
+ u = o([].join);
+ r(
+ { target: 'String', stat: !0 },
+ {
+ raw: function (e) {
+ var t = s(i(e).raw),
+ n = l(t);
+ if (!n) return '';
+ for (var r = arguments.length, o = [], p = 0; ; ) {
+ if ((c(o, a(t[p++])), p === n)) return u(o, '');
+ p < r && c(o, a(arguments[p]));
+ }
+ },
+ }
+ );
+ },
+ 60986: (e, t, n) => {
+ n(76887)({ target: 'String', proto: !0 }, { repeat: n(16178) });
+ },
+ 94761: (e, t, n) => {
+ 'use strict';
+ var r,
+ o = n(76887),
+ s = n(97484),
+ i = n(49677).f,
+ a = n(43057),
+ l = n(85803),
+ c = n(70344),
+ u = n(48219),
+ p = n(67772),
+ h = n(82529),
+ f = s(''.startsWith),
+ d = s(''.slice),
+ m = Math.min,
+ g = p('startsWith');
+ o(
+ {
+ target: 'String',
+ proto: !0,
+ forced: !!(h || g || ((r = i(String.prototype, 'startsWith')), !r || r.writable)) && !g,
+ },
+ {
+ startsWith: function (e) {
+ var t = l(u(this));
+ c(e);
+ var n = a(m(arguments.length > 1 ? arguments[1] : void 0, t.length)),
+ r = l(e);
+ return f ? f(t, r, n) : d(t, n, n + r.length) === r;
+ },
+ }
+ );
+ },
+ 57398: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(74853).trim;
+ r(
+ { target: 'String', proto: !0, forced: n(93093)('trim') },
+ {
+ trim: function () {
+ return o(this);
+ },
+ }
+ );
+ },
+ 8555: (e, t, n) => {
+ n(73464)('asyncIterator');
+ },
+ 48616: (e, t, n) => {
+ 'use strict';
+ var r = n(76887),
+ o = n(21899),
+ s = n(78834),
+ i = n(95329),
+ a = n(82529),
+ l = n(55746),
+ c = n(63405),
+ u = n(95981),
+ p = n(90953),
+ h = n(7046),
+ f = n(96059),
+ d = n(74529),
+ m = n(83894),
+ g = n(85803),
+ y = n(31887),
+ v = n(29290),
+ b = n(14771),
+ w = n(10946),
+ E = n(684),
+ x = n(87857),
+ S = n(49677),
+ _ = n(65988),
+ j = n(59938),
+ O = n(36760),
+ k = n(95929),
+ A = n(29202),
+ C = n(68726),
+ P = n(44262),
+ N = n(27748),
+ I = n(99418),
+ T = n(99813),
+ R = n(11477),
+ M = n(73464),
+ D = n(29630),
+ F = n(90904),
+ L = n(45402),
+ B = n(3610).forEach,
+ $ = P('hidden'),
+ q = 'Symbol',
+ U = 'prototype',
+ z = L.set,
+ V = L.getterFor(q),
+ W = Object[U],
+ J = o.Symbol,
+ K = J && J[U],
+ H = o.TypeError,
+ G = o.QObject,
+ Z = S.f,
+ Y = _.f,
+ X = E.f,
+ Q = O.f,
+ ee = i([].push),
+ te = C('symbols'),
+ ne = C('op-symbols'),
+ re = C('wks'),
+ oe = !G || !G[U] || !G[U].findChild,
+ se =
+ l &&
+ u(function () {
+ return (
+ 7 !=
+ v(
+ Y({}, 'a', {
+ get: function () {
+ return Y(this, 'a', { value: 7 }).a;
+ },
+ })
+ ).a
+ );
+ })
+ ? function (e, t, n) {
+ var r = Z(W, t);
+ r && delete W[t], Y(e, t, n), r && e !== W && Y(W, t, r);
+ }
+ : Y,
+ ie = function (e, t) {
+ var n = (te[e] = v(K));
+ return z(n, { type: q, tag: e, description: t }), l || (n.description = t), n;
+ },
+ ae = function (e, t, n) {
+ e === W && ae(ne, t, n), f(e);
+ var r = m(t);
+ return (
+ f(n),
+ p(te, r)
+ ? (n.enumerable
+ ? (p(e, $) && e[$][r] && (e[$][r] = !1), (n = v(n, { enumerable: y(0, !1) })))
+ : (p(e, $) || Y(e, $, y(1, {})), (e[$][r] = !0)),
+ se(e, r, n))
+ : Y(e, r, n)
+ );
+ },
+ le = function (e, t) {
+ f(e);
+ var n = d(t),
+ r = b(n).concat(he(n));
+ return (
+ B(r, function (t) {
+ (l && !s(ce, n, t)) || ae(e, t, n[t]);
+ }),
+ e
+ );
+ },
+ ce = function (e) {
+ var t = m(e),
+ n = s(Q, this, t);
+ return (
+ !(this === W && p(te, t) && !p(ne, t)) &&
+ (!(n || !p(this, t) || !p(te, t) || (p(this, $) && this[$][t])) || n)
+ );
+ },
+ ue = function (e, t) {
+ var n = d(e),
+ r = m(t);
+ if (n !== W || !p(te, r) || p(ne, r)) {
+ var o = Z(n, r);
+ return !o || !p(te, r) || (p(n, $) && n[$][r]) || (o.enumerable = !0), o;
+ }
+ },
+ pe = function (e) {
+ var t = X(d(e)),
+ n = [];
+ return (
+ B(t, function (e) {
+ p(te, e) || p(N, e) || ee(n, e);
+ }),
+ n
+ );
+ },
+ he = function (e) {
+ var t = e === W,
+ n = X(t ? ne : d(e)),
+ r = [];
+ return (
+ B(n, function (e) {
+ !p(te, e) || (t && !p(W, e)) || ee(r, te[e]);
+ }),
+ r
+ );
+ };
+ c ||
+ (k(
+ (K = (J = function () {
+ if (h(K, this)) throw H('Symbol is not a constructor');
+ var e = arguments.length && void 0 !== arguments[0] ? g(arguments[0]) : void 0,
+ t = I(e),
+ n = function (e) {
+ this === W && s(n, ne, e), p(this, $) && p(this[$], t) && (this[$][t] = !1), se(this, t, y(1, e));
+ };
+ return l && oe && se(W, t, { configurable: !0, set: n }), ie(t, e);
+ })[U]),
+ 'toString',
+ function () {
+ return V(this).tag;
+ }
+ ),
+ k(J, 'withoutSetter', function (e) {
+ return ie(I(e), e);
+ }),
+ (O.f = ce),
+ (_.f = ae),
+ (j.f = le),
+ (S.f = ue),
+ (w.f = E.f = pe),
+ (x.f = he),
+ (R.f = function (e) {
+ return ie(T(e), e);
+ }),
+ l &&
+ (A(K, 'description', {
+ configurable: !0,
+ get: function () {
+ return V(this).description;
+ },
+ }),
+ a || k(W, 'propertyIsEnumerable', ce, { unsafe: !0 }))),
+ r({ global: !0, constructor: !0, wrap: !0, forced: !c, sham: !c }, { Symbol: J }),
+ B(b(re), function (e) {
+ M(e);
+ }),
+ r(
+ { target: q, stat: !0, forced: !c },
+ {
+ useSetter: function () {
+ oe = !0;
+ },
+ useSimple: function () {
+ oe = !1;
+ },
+ }
+ ),
+ r(
+ { target: 'Object', stat: !0, forced: !c, sham: !l },
+ {
+ create: function (e, t) {
+ return void 0 === t ? v(e) : le(v(e), t);
+ },
+ defineProperty: ae,
+ defineProperties: le,
+ getOwnPropertyDescriptor: ue,
+ }
+ ),
+ r({ target: 'Object', stat: !0, forced: !c }, { getOwnPropertyNames: pe }),
+ D(),
+ F(J, q),
+ (N[$] = !0);
+ },
+ 52615: () => {},
+ 64523: (e, t, n) => {
+ var r = n(76887),
+ o = n(626),
+ s = n(90953),
+ i = n(85803),
+ a = n(68726),
+ l = n(34680),
+ c = a('string-to-symbol-registry'),
+ u = a('symbol-to-string-registry');
+ r(
+ { target: 'Symbol', stat: !0, forced: !l },
+ {
+ for: function (e) {
+ var t = i(e);
+ if (s(c, t)) return c[t];
+ var n = o('Symbol')(t);
+ return (c[t] = n), (u[n] = t), n;
+ },
+ }
+ );
+ },
+ 21732: (e, t, n) => {
+ n(73464)('hasInstance');
+ },
+ 35903: (e, t, n) => {
+ n(73464)('isConcatSpreadable');
+ },
+ 1825: (e, t, n) => {
+ n(73464)('iterator');
+ },
+ 35824: (e, t, n) => {
+ n(48616), n(64523), n(38608), n(32619), n(37144);
+ },
+ 38608: (e, t, n) => {
+ var r = n(76887),
+ o = n(90953),
+ s = n(56664),
+ i = n(69826),
+ a = n(68726),
+ l = n(34680),
+ c = a('symbol-to-string-registry');
+ r(
+ { target: 'Symbol', stat: !0, forced: !l },
+ {
+ keyFor: function (e) {
+ if (!s(e)) throw TypeError(i(e) + ' is not a symbol');
+ if (o(c, e)) return c[e];
+ },
+ }
+ );
+ },
+ 45915: (e, t, n) => {
+ n(73464)('matchAll');
+ },
+ 28394: (e, t, n) => {
+ n(73464)('match');
+ },
+ 61766: (e, t, n) => {
+ n(73464)('replace');
+ },
+ 62737: (e, t, n) => {
+ n(73464)('search');
+ },
+ 89911: (e, t, n) => {
+ n(73464)('species');
+ },
+ 74315: (e, t, n) => {
+ n(73464)('split');
+ },
+ 63131: (e, t, n) => {
+ var r = n(73464),
+ o = n(29630);
+ r('toPrimitive'), o();
+ },
+ 64714: (e, t, n) => {
+ var r = n(626),
+ o = n(73464),
+ s = n(90904);
+ o('toStringTag'), s(r('Symbol'), 'Symbol');
+ },
+ 70659: (e, t, n) => {
+ n(73464)('unscopables');
+ },
+ 94776: (e, t, n) => {
+ 'use strict';
+ var r,
+ o = n(45602),
+ s = n(21899),
+ i = n(95329),
+ a = n(94380),
+ l = n(21647),
+ c = n(24683),
+ u = n(8850),
+ p = n(10941),
+ h = n(45402).enforce,
+ f = n(95981),
+ d = n(47093),
+ m = Object,
+ g = Array.isArray,
+ y = m.isExtensible,
+ v = m.isFrozen,
+ b = m.isSealed,
+ w = m.freeze,
+ E = m.seal,
+ x = {},
+ S = {},
+ _ = !s.ActiveXObject && 'ActiveXObject' in s,
+ j = function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ O = c('WeakMap', j, u),
+ k = O.prototype,
+ A = i(k.set);
+ if (d)
+ if (_) {
+ (r = u.getConstructor(j, 'WeakMap', !0)), l.enable();
+ var C = i(k.delete),
+ P = i(k.has),
+ N = i(k.get);
+ a(k, {
+ delete: function (e) {
+ if (p(e) && !y(e)) {
+ var t = h(this);
+ return t.frozen || (t.frozen = new r()), C(this, e) || t.frozen.delete(e);
+ }
+ return C(this, e);
+ },
+ has: function (e) {
+ if (p(e) && !y(e)) {
+ var t = h(this);
+ return t.frozen || (t.frozen = new r()), P(this, e) || t.frozen.has(e);
+ }
+ return P(this, e);
+ },
+ get: function (e) {
+ if (p(e) && !y(e)) {
+ var t = h(this);
+ return t.frozen || (t.frozen = new r()), P(this, e) ? N(this, e) : t.frozen.get(e);
+ }
+ return N(this, e);
+ },
+ set: function (e, t) {
+ if (p(e) && !y(e)) {
+ var n = h(this);
+ n.frozen || (n.frozen = new r()), P(this, e) ? A(this, e, t) : n.frozen.set(e, t);
+ } else A(this, e, t);
+ return this;
+ },
+ });
+ } else
+ o &&
+ f(function () {
+ var e = w([]);
+ return A(new O(), e, 1), !v(e);
+ }) &&
+ a(k, {
+ set: function (e, t) {
+ var n;
+ return (
+ g(e) && (v(e) ? (n = x) : b(e) && (n = S)), A(this, e, t), n == x && w(e), n == S && E(e), this
+ );
+ },
+ });
+ },
+ 54334: (e, t, n) => {
+ n(94776);
+ },
+ 31115: (e, t, n) => {
+ 'use strict';
+ n(24683)(
+ 'WeakSet',
+ function (e) {
+ return function () {
+ return e(this, arguments.length ? arguments[0] : void 0);
+ };
+ },
+ n(8850)
+ );
+ },
+ 1773: (e, t, n) => {
+ n(31115);
+ },
+ 97522: (e, t, n) => {
+ var r = n(99813),
+ o = n(65988).f,
+ s = r('metadata'),
+ i = Function.prototype;
+ void 0 === i[s] && o(i, s, { value: null });
+ },
+ 28783: (e, t, n) => {
+ n(73464)('asyncDispose');
+ },
+ 43975: (e, t, n) => {
+ n(73464)('dispose');
+ },
+ 97618: (e, t, n) => {
+ n(76887)({ target: 'Symbol', stat: !0 }, { isRegisteredSymbol: n(32087) });
+ },
+ 22731: (e, t, n) => {
+ n(76887)({ target: 'Symbol', stat: !0, name: 'isRegisteredSymbol' }, { isRegistered: n(32087) });
+ },
+ 6989: (e, t, n) => {
+ n(76887)({ target: 'Symbol', stat: !0, forced: !0 }, { isWellKnownSymbol: n(96559) });
+ },
+ 85605: (e, t, n) => {
+ n(76887)({ target: 'Symbol', stat: !0, name: 'isWellKnownSymbol', forced: !0 }, { isWellKnown: n(96559) });
+ },
+ 65799: (e, t, n) => {
+ n(73464)('matcher');
+ },
+ 31943: (e, t, n) => {
+ n(73464)('metadataKey');
+ },
+ 45414: (e, t, n) => {
+ n(73464)('metadata');
+ },
+ 46774: (e, t, n) => {
+ n(73464)('observable');
+ },
+ 80620: (e, t, n) => {
+ n(73464)('patternMatch');
+ },
+ 36172: (e, t, n) => {
+ n(73464)('replaceAll');
+ },
+ 7634: (e, t, n) => {
+ n(66274);
+ var r = n(63281),
+ o = n(21899),
+ s = n(9697),
+ i = n(32029),
+ a = n(12077),
+ l = n(99813)('toStringTag');
+ for (var c in r) {
+ var u = o[c],
+ p = u && u.prototype;
+ p && s(p) !== l && i(p, l, c), (a[c] = a.Array);
+ }
+ },
+ 79229: (e, t, n) => {
+ var r = n(76887),
+ o = n(21899),
+ s = n(37620)(o.setInterval, !0);
+ r({ global: !0, bind: !0, forced: o.setInterval !== s }, { setInterval: s });
+ },
+ 17749: (e, t, n) => {
+ var r = n(76887),
+ o = n(21899),
+ s = n(37620)(o.setTimeout, !0);
+ r({ global: !0, bind: !0, forced: o.setTimeout !== s }, { setTimeout: s });
+ },
+ 71249: (e, t, n) => {
+ n(79229), n(17749);
+ },
+ 62524: (e, t, n) => {
+ 'use strict';
+ n(66274);
+ var r = n(76887),
+ o = n(21899),
+ s = n(78834),
+ i = n(95329),
+ a = n(55746),
+ l = n(14766),
+ c = n(95929),
+ u = n(29202),
+ p = n(94380),
+ h = n(90904),
+ f = n(53847),
+ d = n(45402),
+ m = n(5743),
+ g = n(57475),
+ y = n(90953),
+ v = n(86843),
+ b = n(9697),
+ w = n(96059),
+ E = n(10941),
+ x = n(85803),
+ S = n(29290),
+ _ = n(31887),
+ j = n(53476),
+ O = n(22902),
+ k = n(18348),
+ A = n(99813),
+ C = n(61388),
+ P = A('iterator'),
+ N = 'URLSearchParams',
+ I = N + 'Iterator',
+ T = d.set,
+ R = d.getterFor(N),
+ M = d.getterFor(I),
+ D = Object.getOwnPropertyDescriptor,
+ F = function (e) {
+ if (!a) return o[e];
+ var t = D(o, e);
+ return t && t.value;
+ },
+ L = F('fetch'),
+ B = F('Request'),
+ $ = F('Headers'),
+ q = B && B.prototype,
+ U = $ && $.prototype,
+ z = o.RegExp,
+ V = o.TypeError,
+ W = o.decodeURIComponent,
+ J = o.encodeURIComponent,
+ K = i(''.charAt),
+ H = i([].join),
+ G = i([].push),
+ Z = i(''.replace),
+ Y = i([].shift),
+ X = i([].splice),
+ Q = i(''.split),
+ ee = i(''.slice),
+ te = /\+/g,
+ ne = Array(4),
+ re = function (e) {
+ return ne[e - 1] || (ne[e - 1] = z('((?:%[\\da-f]{2}){' + e + '})', 'gi'));
+ },
+ oe = function (e) {
+ try {
+ return W(e);
+ } catch (t) {
+ return e;
+ }
+ },
+ se = function (e) {
+ var t = Z(e, te, ' '),
+ n = 4;
+ try {
+ return W(t);
+ } catch (e) {
+ for (; n; ) t = Z(t, re(n--), oe);
+ return t;
+ }
+ },
+ ie = /[!'()~]|%20/g,
+ ae = { '!': '%21', "'": '%27', '(': '%28', ')': '%29', '~': '%7E', '%20': '+' },
+ le = function (e) {
+ return ae[e];
+ },
+ ce = function (e) {
+ return Z(J(e), ie, le);
+ },
+ ue = f(
+ function (e, t) {
+ T(this, { type: I, iterator: j(R(e).entries), kind: t });
+ },
+ 'Iterator',
+ function () {
+ var e = M(this),
+ t = e.kind,
+ n = e.iterator.next(),
+ r = n.value;
+ return n.done || (n.value = 'keys' === t ? r.key : 'values' === t ? r.value : [r.key, r.value]), n;
+ },
+ !0
+ ),
+ pe = function (e) {
+ (this.entries = []),
+ (this.url = null),
+ void 0 !== e &&
+ (E(e)
+ ? this.parseObject(e)
+ : this.parseQuery('string' == typeof e ? ('?' === K(e, 0) ? ee(e, 1) : e) : x(e)));
+ };
+ pe.prototype = {
+ type: N,
+ bindURL: function (e) {
+ (this.url = e), this.update();
+ },
+ parseObject: function (e) {
+ var t,
+ n,
+ r,
+ o,
+ i,
+ a,
+ l,
+ c = O(e);
+ if (c)
+ for (n = (t = j(e, c)).next; !(r = s(n, t)).done; ) {
+ if (((i = (o = j(w(r.value))).next), (a = s(i, o)).done || (l = s(i, o)).done || !s(i, o).done))
+ throw V('Expected sequence with length 2');
+ G(this.entries, { key: x(a.value), value: x(l.value) });
+ }
+ else for (var u in e) y(e, u) && G(this.entries, { key: u, value: x(e[u]) });
+ },
+ parseQuery: function (e) {
+ if (e)
+ for (var t, n, r = Q(e, '&'), o = 0; o < r.length; )
+ (t = r[o++]).length && ((n = Q(t, '=')), G(this.entries, { key: se(Y(n)), value: se(H(n, '=')) }));
+ },
+ serialize: function () {
+ for (var e, t = this.entries, n = [], r = 0; r < t.length; )
+ (e = t[r++]), G(n, ce(e.key) + '=' + ce(e.value));
+ return H(n, '&');
+ },
+ update: function () {
+ (this.entries.length = 0), this.parseQuery(this.url.query);
+ },
+ updateURL: function () {
+ this.url && this.url.update();
+ },
+ };
+ var he = function () {
+ m(this, fe);
+ var e = T(this, new pe(arguments.length > 0 ? arguments[0] : void 0));
+ a || (this.size = e.entries.length);
+ },
+ fe = he.prototype;
+ if (
+ (p(
+ fe,
+ {
+ append: function (e, t) {
+ var n = R(this);
+ k(arguments.length, 2), G(n.entries, { key: x(e), value: x(t) }), a || this.length++, n.updateURL();
+ },
+ delete: function (e) {
+ for (
+ var t = R(this),
+ n = k(arguments.length, 1),
+ r = t.entries,
+ o = x(e),
+ s = n < 2 ? void 0 : arguments[1],
+ i = void 0 === s ? s : x(s),
+ l = 0;
+ l < r.length;
+
+ ) {
+ var c = r[l];
+ if (c.key !== o || (void 0 !== i && c.value !== i)) l++;
+ else if ((X(r, l, 1), void 0 !== i)) break;
+ }
+ a || (this.size = r.length), t.updateURL();
+ },
+ get: function (e) {
+ var t = R(this).entries;
+ k(arguments.length, 1);
+ for (var n = x(e), r = 0; r < t.length; r++) if (t[r].key === n) return t[r].value;
+ return null;
+ },
+ getAll: function (e) {
+ var t = R(this).entries;
+ k(arguments.length, 1);
+ for (var n = x(e), r = [], o = 0; o < t.length; o++) t[o].key === n && G(r, t[o].value);
+ return r;
+ },
+ has: function (e) {
+ for (
+ var t = R(this).entries,
+ n = k(arguments.length, 1),
+ r = x(e),
+ o = n < 2 ? void 0 : arguments[1],
+ s = void 0 === o ? o : x(o),
+ i = 0;
+ i < t.length;
+
+ ) {
+ var a = t[i++];
+ if (a.key === r && (void 0 === s || a.value === s)) return !0;
+ }
+ return !1;
+ },
+ set: function (e, t) {
+ var n = R(this);
+ k(arguments.length, 1);
+ for (var r, o = n.entries, s = !1, i = x(e), l = x(t), c = 0; c < o.length; c++)
+ (r = o[c]).key === i && (s ? X(o, c--, 1) : ((s = !0), (r.value = l)));
+ s || G(o, { key: i, value: l }), a || (this.size = o.length), n.updateURL();
+ },
+ sort: function () {
+ var e = R(this);
+ C(e.entries, function (e, t) {
+ return e.key > t.key ? 1 : -1;
+ }),
+ e.updateURL();
+ },
+ forEach: function (e) {
+ for (
+ var t, n = R(this).entries, r = v(e, arguments.length > 1 ? arguments[1] : void 0), o = 0;
+ o < n.length;
+
+ )
+ r((t = n[o++]).value, t.key, this);
+ },
+ keys: function () {
+ return new ue(this, 'keys');
+ },
+ values: function () {
+ return new ue(this, 'values');
+ },
+ entries: function () {
+ return new ue(this, 'entries');
+ },
+ },
+ { enumerable: !0 }
+ ),
+ c(fe, P, fe.entries, { name: 'entries' }),
+ c(
+ fe,
+ 'toString',
+ function () {
+ return R(this).serialize();
+ },
+ { enumerable: !0 }
+ ),
+ a &&
+ u(fe, 'size', {
+ get: function () {
+ return R(this).entries.length;
+ },
+ configurable: !0,
+ enumerable: !0,
+ }),
+ h(he, N),
+ r({ global: !0, constructor: !0, forced: !l }, { URLSearchParams: he }),
+ !l && g($))
+ ) {
+ var de = i(U.has),
+ me = i(U.set),
+ ge = function (e) {
+ if (E(e)) {
+ var t,
+ n = e.body;
+ if (b(n) === N)
+ return (
+ (t = e.headers ? new $(e.headers) : new $()),
+ de(t, 'content-type') || me(t, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8'),
+ S(e, { body: _(0, x(n)), headers: _(0, t) })
+ );
+ }
+ return e;
+ };
+ if (
+ (g(L) &&
+ r(
+ { global: !0, enumerable: !0, dontCallGetSet: !0, forced: !0 },
+ {
+ fetch: function (e) {
+ return L(e, arguments.length > 1 ? ge(arguments[1]) : {});
+ },
+ }
+ ),
+ g(B))
+ ) {
+ var ye = function (e) {
+ return m(this, q), new B(e, arguments.length > 1 ? ge(arguments[1]) : {});
+ };
+ (q.constructor = ye),
+ (ye.prototype = q),
+ r({ global: !0, constructor: !0, dontCallGetSet: !0, forced: !0 }, { Request: ye });
+ }
+ }
+ e.exports = { URLSearchParams: he, getState: R };
+ },
+ 16454: () => {},
+ 73305: () => {},
+ 95304: (e, t, n) => {
+ n(62524);
+ },
+ 62337: () => {},
+ 84630: (e, t, n) => {
+ var r = n(76887),
+ o = n(626),
+ s = n(95981),
+ i = n(18348),
+ a = n(85803),
+ l = n(14766),
+ c = o('URL');
+ r(
+ {
+ target: 'URL',
+ stat: !0,
+ forced: !(
+ l &&
+ s(function () {
+ c.canParse();
+ })
+ ),
+ },
+ {
+ canParse: function (e) {
+ var t = i(arguments.length, 1),
+ n = a(e),
+ r = t < 2 || void 0 === arguments[1] ? void 0 : a(arguments[1]);
+ try {
+ return !!new c(n, r);
+ } catch (e) {
+ return !1;
+ }
+ },
+ }
+ );
+ },
+ 47250: (e, t, n) => {
+ 'use strict';
+ n(77971);
+ var r,
+ o = n(76887),
+ s = n(55746),
+ i = n(14766),
+ a = n(21899),
+ l = n(86843),
+ c = n(95329),
+ u = n(95929),
+ p = n(29202),
+ h = n(5743),
+ f = n(90953),
+ d = n(24420),
+ m = n(11354),
+ g = n(15790),
+ y = n(64620).codeAt,
+ v = n(73291),
+ b = n(85803),
+ w = n(90904),
+ E = n(18348),
+ x = n(62524),
+ S = n(45402),
+ _ = S.set,
+ j = S.getterFor('URL'),
+ O = x.URLSearchParams,
+ k = x.getState,
+ A = a.URL,
+ C = a.TypeError,
+ P = a.parseInt,
+ N = Math.floor,
+ I = Math.pow,
+ T = c(''.charAt),
+ R = c(/./.exec),
+ M = c([].join),
+ D = c((1).toString),
+ F = c([].pop),
+ L = c([].push),
+ B = c(''.replace),
+ $ = c([].shift),
+ q = c(''.split),
+ U = c(''.slice),
+ z = c(''.toLowerCase),
+ V = c([].unshift),
+ W = 'Invalid scheme',
+ J = 'Invalid host',
+ K = 'Invalid port',
+ H = /[a-z]/i,
+ G = /[\d+-.a-z]/i,
+ Z = /\d/,
+ Y = /^0x/i,
+ X = /^[0-7]+$/,
+ Q = /^\d+$/,
+ ee = /^[\da-f]+$/i,
+ te = /[\0\t\n\r #%/:<>?@[\\\]^|]/,
+ ne = /[\0\t\n\r #/:<>?@[\\\]^|]/,
+ re = /^[\u0000-\u0020]+/,
+ oe = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,
+ se = /[\t\n\r]/g,
+ ie = function (e) {
+ var t, n, r, o;
+ if ('number' == typeof e) {
+ for (t = [], n = 0; n < 4; n++) V(t, e % 256), (e = N(e / 256));
+ return M(t, '.');
+ }
+ if ('object' == typeof e) {
+ for (
+ t = '',
+ r = (function (e) {
+ for (var t = null, n = 1, r = null, o = 0, s = 0; s < 8; s++)
+ 0 !== e[s] ? (o > n && ((t = r), (n = o)), (r = null), (o = 0)) : (null === r && (r = s), ++o);
+ return o > n && ((t = r), (n = o)), t;
+ })(e),
+ n = 0;
+ n < 8;
+ n++
+ )
+ (o && 0 === e[n]) ||
+ (o && (o = !1),
+ r === n ? ((t += n ? ':' : '::'), (o = !0)) : ((t += D(e[n], 16)), n < 7 && (t += ':')));
+ return '[' + t + ']';
+ }
+ return e;
+ },
+ ae = {},
+ le = d({}, ae, { ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1 }),
+ ce = d({}, le, { '#': 1, '?': 1, '{': 1, '}': 1 }),
+ ue = d({}, ce, { '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1 }),
+ pe = function (e, t) {
+ var n = y(e, 0);
+ return n > 32 && n < 127 && !f(t, e) ? e : encodeURIComponent(e);
+ },
+ he = { ftp: 21, file: null, http: 80, https: 443, ws: 80, wss: 443 },
+ fe = function (e, t) {
+ var n;
+ return 2 == e.length && R(H, T(e, 0)) && (':' == (n = T(e, 1)) || (!t && '|' == n));
+ },
+ de = function (e) {
+ var t;
+ return (
+ e.length > 1 &&
+ fe(U(e, 0, 2)) &&
+ (2 == e.length || '/' === (t = T(e, 2)) || '\\' === t || '?' === t || '#' === t)
+ );
+ },
+ me = function (e) {
+ return '.' === e || '%2e' === z(e);
+ },
+ ge = {},
+ ye = {},
+ ve = {},
+ be = {},
+ we = {},
+ Ee = {},
+ xe = {},
+ Se = {},
+ _e = {},
+ je = {},
+ Oe = {},
+ ke = {},
+ Ae = {},
+ Ce = {},
+ Pe = {},
+ Ne = {},
+ Ie = {},
+ Te = {},
+ Re = {},
+ Me = {},
+ De = {},
+ Fe = function (e, t, n) {
+ var r,
+ o,
+ s,
+ i = b(e);
+ if (t) {
+ if ((o = this.parse(i))) throw C(o);
+ this.searchParams = null;
+ } else {
+ if ((void 0 !== n && (r = new Fe(n, !0)), (o = this.parse(i, null, r)))) throw C(o);
+ (s = k(new O())).bindURL(this), (this.searchParams = s);
+ }
+ };
+ Fe.prototype = {
+ type: 'URL',
+ parse: function (e, t, n) {
+ var o,
+ s,
+ i,
+ a,
+ l,
+ c = this,
+ u = t || ge,
+ p = 0,
+ h = '',
+ d = !1,
+ y = !1,
+ v = !1;
+ for (
+ e = b(e),
+ t ||
+ ((c.scheme = ''),
+ (c.username = ''),
+ (c.password = ''),
+ (c.host = null),
+ (c.port = null),
+ (c.path = []),
+ (c.query = null),
+ (c.fragment = null),
+ (c.cannotBeABaseURL = !1),
+ (e = B(e, re, '')),
+ (e = B(e, oe, '$1'))),
+ e = B(e, se, ''),
+ o = m(e);
+ p <= o.length;
+
+ ) {
+ switch (((s = o[p]), u)) {
+ case ge:
+ if (!s || !R(H, s)) {
+ if (t) return W;
+ u = ve;
+ continue;
+ }
+ (h += z(s)), (u = ye);
+ break;
+ case ye:
+ if (s && (R(G, s) || '+' == s || '-' == s || '.' == s)) h += z(s);
+ else {
+ if (':' != s) {
+ if (t) return W;
+ (h = ''), (u = ve), (p = 0);
+ continue;
+ }
+ if (
+ t &&
+ (c.isSpecial() != f(he, h) ||
+ ('file' == h && (c.includesCredentials() || null !== c.port)) ||
+ ('file' == c.scheme && !c.host))
+ )
+ return;
+ if (((c.scheme = h), t)) return void (c.isSpecial() && he[c.scheme] == c.port && (c.port = null));
+ (h = ''),
+ 'file' == c.scheme
+ ? (u = Ce)
+ : c.isSpecial() && n && n.scheme == c.scheme
+ ? (u = be)
+ : c.isSpecial()
+ ? (u = Se)
+ : '/' == o[p + 1]
+ ? ((u = we), p++)
+ : ((c.cannotBeABaseURL = !0), L(c.path, ''), (u = Re));
+ }
+ break;
+ case ve:
+ if (!n || (n.cannotBeABaseURL && '#' != s)) return W;
+ if (n.cannotBeABaseURL && '#' == s) {
+ (c.scheme = n.scheme),
+ (c.path = g(n.path)),
+ (c.query = n.query),
+ (c.fragment = ''),
+ (c.cannotBeABaseURL = !0),
+ (u = De);
+ break;
+ }
+ u = 'file' == n.scheme ? Ce : Ee;
+ continue;
+ case be:
+ if ('/' != s || '/' != o[p + 1]) {
+ u = Ee;
+ continue;
+ }
+ (u = _e), p++;
+ break;
+ case we:
+ if ('/' == s) {
+ u = je;
+ break;
+ }
+ u = Te;
+ continue;
+ case Ee:
+ if (((c.scheme = n.scheme), s == r))
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ (c.query = n.query);
+ else if ('/' == s || ('\\' == s && c.isSpecial())) u = xe;
+ else if ('?' == s)
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ (c.query = ''),
+ (u = Me);
+ else {
+ if ('#' != s) {
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ c.path.length--,
+ (u = Te);
+ continue;
+ }
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (c.path = g(n.path)),
+ (c.query = n.query),
+ (c.fragment = ''),
+ (u = De);
+ }
+ break;
+ case xe:
+ if (!c.isSpecial() || ('/' != s && '\\' != s)) {
+ if ('/' != s) {
+ (c.username = n.username),
+ (c.password = n.password),
+ (c.host = n.host),
+ (c.port = n.port),
+ (u = Te);
+ continue;
+ }
+ u = je;
+ } else u = _e;
+ break;
+ case Se:
+ if (((u = _e), '/' != s || '/' != T(h, p + 1))) continue;
+ p++;
+ break;
+ case _e:
+ if ('/' != s && '\\' != s) {
+ u = je;
+ continue;
+ }
+ break;
+ case je:
+ if ('@' == s) {
+ d && (h = '%40' + h), (d = !0), (i = m(h));
+ for (var w = 0; w < i.length; w++) {
+ var E = i[w];
+ if (':' != E || v) {
+ var x = pe(E, ue);
+ v ? (c.password += x) : (c.username += x);
+ } else v = !0;
+ }
+ h = '';
+ } else if (s == r || '/' == s || '?' == s || '#' == s || ('\\' == s && c.isSpecial())) {
+ if (d && '' == h) return 'Invalid authority';
+ (p -= m(h).length + 1), (h = ''), (u = Oe);
+ } else h += s;
+ break;
+ case Oe:
+ case ke:
+ if (t && 'file' == c.scheme) {
+ u = Ne;
+ continue;
+ }
+ if (':' != s || y) {
+ if (s == r || '/' == s || '?' == s || '#' == s || ('\\' == s && c.isSpecial())) {
+ if (c.isSpecial() && '' == h) return J;
+ if (t && '' == h && (c.includesCredentials() || null !== c.port)) return;
+ if ((a = c.parseHost(h))) return a;
+ if (((h = ''), (u = Ie), t)) return;
+ continue;
+ }
+ '[' == s ? (y = !0) : ']' == s && (y = !1), (h += s);
+ } else {
+ if ('' == h) return J;
+ if ((a = c.parseHost(h))) return a;
+ if (((h = ''), (u = Ae), t == ke)) return;
+ }
+ break;
+ case Ae:
+ if (!R(Z, s)) {
+ if (s == r || '/' == s || '?' == s || '#' == s || ('\\' == s && c.isSpecial()) || t) {
+ if ('' != h) {
+ var S = P(h, 10);
+ if (S > 65535) return K;
+ (c.port = c.isSpecial() && S === he[c.scheme] ? null : S), (h = '');
+ }
+ if (t) return;
+ u = Ie;
+ continue;
+ }
+ return K;
+ }
+ h += s;
+ break;
+ case Ce:
+ if (((c.scheme = 'file'), '/' == s || '\\' == s)) u = Pe;
+ else {
+ if (!n || 'file' != n.scheme) {
+ u = Te;
+ continue;
+ }
+ if (s == r) (c.host = n.host), (c.path = g(n.path)), (c.query = n.query);
+ else if ('?' == s) (c.host = n.host), (c.path = g(n.path)), (c.query = ''), (u = Me);
+ else {
+ if ('#' != s) {
+ de(M(g(o, p), '')) || ((c.host = n.host), (c.path = g(n.path)), c.shortenPath()), (u = Te);
+ continue;
+ }
+ (c.host = n.host), (c.path = g(n.path)), (c.query = n.query), (c.fragment = ''), (u = De);
+ }
+ }
+ break;
+ case Pe:
+ if ('/' == s || '\\' == s) {
+ u = Ne;
+ break;
+ }
+ n &&
+ 'file' == n.scheme &&
+ !de(M(g(o, p), '')) &&
+ (fe(n.path[0], !0) ? L(c.path, n.path[0]) : (c.host = n.host)),
+ (u = Te);
+ continue;
+ case Ne:
+ if (s == r || '/' == s || '\\' == s || '?' == s || '#' == s) {
+ if (!t && fe(h)) u = Te;
+ else if ('' == h) {
+ if (((c.host = ''), t)) return;
+ u = Ie;
+ } else {
+ if ((a = c.parseHost(h))) return a;
+ if (('localhost' == c.host && (c.host = ''), t)) return;
+ (h = ''), (u = Ie);
+ }
+ continue;
+ }
+ h += s;
+ break;
+ case Ie:
+ if (c.isSpecial()) {
+ if (((u = Te), '/' != s && '\\' != s)) continue;
+ } else if (t || '?' != s)
+ if (t || '#' != s) {
+ if (s != r && ((u = Te), '/' != s)) continue;
+ } else (c.fragment = ''), (u = De);
+ else (c.query = ''), (u = Me);
+ break;
+ case Te:
+ if (s == r || '/' == s || ('\\' == s && c.isSpecial()) || (!t && ('?' == s || '#' == s))) {
+ if (
+ ('..' === (l = z((l = h))) || '%2e.' === l || '.%2e' === l || '%2e%2e' === l
+ ? (c.shortenPath(), '/' == s || ('\\' == s && c.isSpecial()) || L(c.path, ''))
+ : me(h)
+ ? '/' == s || ('\\' == s && c.isSpecial()) || L(c.path, '')
+ : ('file' == c.scheme &&
+ !c.path.length &&
+ fe(h) &&
+ (c.host && (c.host = ''), (h = T(h, 0) + ':')),
+ L(c.path, h)),
+ (h = ''),
+ 'file' == c.scheme && (s == r || '?' == s || '#' == s))
+ )
+ for (; c.path.length > 1 && '' === c.path[0]; ) $(c.path);
+ '?' == s ? ((c.query = ''), (u = Me)) : '#' == s && ((c.fragment = ''), (u = De));
+ } else h += pe(s, ce);
+ break;
+ case Re:
+ '?' == s
+ ? ((c.query = ''), (u = Me))
+ : '#' == s
+ ? ((c.fragment = ''), (u = De))
+ : s != r && (c.path[0] += pe(s, ae));
+ break;
+ case Me:
+ t || '#' != s
+ ? s != r &&
+ ("'" == s && c.isSpecial() ? (c.query += '%27') : (c.query += '#' == s ? '%23' : pe(s, ae)))
+ : ((c.fragment = ''), (u = De));
+ break;
+ case De:
+ s != r && (c.fragment += pe(s, le));
+ }
+ p++;
+ }
+ },
+ parseHost: function (e) {
+ var t, n, r;
+ if ('[' == T(e, 0)) {
+ if (']' != T(e, e.length - 1)) return J;
+ if (
+ ((t = (function (e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i,
+ a,
+ l = [0, 0, 0, 0, 0, 0, 0, 0],
+ c = 0,
+ u = null,
+ p = 0,
+ h = function () {
+ return T(e, p);
+ };
+ if (':' == h()) {
+ if (':' != T(e, 1)) return;
+ (p += 2), (u = ++c);
+ }
+ for (; h(); ) {
+ if (8 == c) return;
+ if (':' != h()) {
+ for (t = n = 0; n < 4 && R(ee, h()); ) (t = 16 * t + P(h(), 16)), p++, n++;
+ if ('.' == h()) {
+ if (0 == n) return;
+ if (((p -= n), c > 6)) return;
+ for (r = 0; h(); ) {
+ if (((o = null), r > 0)) {
+ if (!('.' == h() && r < 4)) return;
+ p++;
+ }
+ if (!R(Z, h())) return;
+ for (; R(Z, h()); ) {
+ if (((s = P(h(), 10)), null === o)) o = s;
+ else {
+ if (0 == o) return;
+ o = 10 * o + s;
+ }
+ if (o > 255) return;
+ p++;
+ }
+ (l[c] = 256 * l[c] + o), (2 != ++r && 4 != r) || c++;
+ }
+ if (4 != r) return;
+ break;
+ }
+ if (':' == h()) {
+ if ((p++, !h())) return;
+ } else if (h()) return;
+ l[c++] = t;
+ } else {
+ if (null !== u) return;
+ p++, (u = ++c);
+ }
+ }
+ if (null !== u)
+ for (i = c - u, c = 7; 0 != c && i > 0; ) (a = l[c]), (l[c--] = l[u + i - 1]), (l[u + --i] = a);
+ else if (8 != c) return;
+ return l;
+ })(U(e, 1, -1))),
+ !t)
+ )
+ return J;
+ this.host = t;
+ } else if (this.isSpecial()) {
+ if (((e = v(e)), R(te, e))) return J;
+ if (
+ ((t = (function (e) {
+ var t,
+ n,
+ r,
+ o,
+ s,
+ i,
+ a,
+ l = q(e, '.');
+ if ((l.length && '' == l[l.length - 1] && l.length--, (t = l.length) > 4)) return e;
+ for (n = [], r = 0; r < t; r++) {
+ if ('' == (o = l[r])) return e;
+ if (
+ ((s = 10),
+ o.length > 1 && '0' == T(o, 0) && ((s = R(Y, o) ? 16 : 8), (o = U(o, 8 == s ? 1 : 2))),
+ '' === o)
+ )
+ i = 0;
+ else {
+ if (!R(10 == s ? Q : 8 == s ? X : ee, o)) return e;
+ i = P(o, s);
+ }
+ L(n, i);
+ }
+ for (r = 0; r < t; r++)
+ if (((i = n[r]), r == t - 1)) {
+ if (i >= I(256, 5 - t)) return null;
+ } else if (i > 255) return null;
+ for (a = F(n), r = 0; r < n.length; r++) a += n[r] * I(256, 3 - r);
+ return a;
+ })(e)),
+ null === t)
+ )
+ return J;
+ this.host = t;
+ } else {
+ if (R(ne, e)) return J;
+ for (t = '', n = m(e), r = 0; r < n.length; r++) t += pe(n[r], ae);
+ this.host = t;
+ }
+ },
+ cannotHaveUsernamePasswordPort: function () {
+ return !this.host || this.cannotBeABaseURL || 'file' == this.scheme;
+ },
+ includesCredentials: function () {
+ return '' != this.username || '' != this.password;
+ },
+ isSpecial: function () {
+ return f(he, this.scheme);
+ },
+ shortenPath: function () {
+ var e = this.path,
+ t = e.length;
+ !t || ('file' == this.scheme && 1 == t && fe(e[0], !0)) || e.length--;
+ },
+ serialize: function () {
+ var e = this,
+ t = e.scheme,
+ n = e.username,
+ r = e.password,
+ o = e.host,
+ s = e.port,
+ i = e.path,
+ a = e.query,
+ l = e.fragment,
+ c = t + ':';
+ return (
+ null !== o
+ ? ((c += '//'),
+ e.includesCredentials() && (c += n + (r ? ':' + r : '') + '@'),
+ (c += ie(o)),
+ null !== s && (c += ':' + s))
+ : 'file' == t && (c += '//'),
+ (c += e.cannotBeABaseURL ? i[0] : i.length ? '/' + M(i, '/') : ''),
+ null !== a && (c += '?' + a),
+ null !== l && (c += '#' + l),
+ c
+ );
+ },
+ setHref: function (e) {
+ var t = this.parse(e);
+ if (t) throw C(t);
+ this.searchParams.update();
+ },
+ getOrigin: function () {
+ var e = this.scheme,
+ t = this.port;
+ if ('blob' == e)
+ try {
+ return new Le(e.path[0]).origin;
+ } catch (e) {
+ return 'null';
+ }
+ return 'file' != e && this.isSpecial() ? e + '://' + ie(this.host) + (null !== t ? ':' + t : '') : 'null';
+ },
+ getProtocol: function () {
+ return this.scheme + ':';
+ },
+ setProtocol: function (e) {
+ this.parse(b(e) + ':', ge);
+ },
+ getUsername: function () {
+ return this.username;
+ },
+ setUsername: function (e) {
+ var t = m(b(e));
+ if (!this.cannotHaveUsernamePasswordPort()) {
+ this.username = '';
+ for (var n = 0; n < t.length; n++) this.username += pe(t[n], ue);
+ }
+ },
+ getPassword: function () {
+ return this.password;
+ },
+ setPassword: function (e) {
+ var t = m(b(e));
+ if (!this.cannotHaveUsernamePasswordPort()) {
+ this.password = '';
+ for (var n = 0; n < t.length; n++) this.password += pe(t[n], ue);
+ }
+ },
+ getHost: function () {
+ var e = this.host,
+ t = this.port;
+ return null === e ? '' : null === t ? ie(e) : ie(e) + ':' + t;
+ },
+ setHost: function (e) {
+ this.cannotBeABaseURL || this.parse(e, Oe);
+ },
+ getHostname: function () {
+ var e = this.host;
+ return null === e ? '' : ie(e);
+ },
+ setHostname: function (e) {
+ this.cannotBeABaseURL || this.parse(e, ke);
+ },
+ getPort: function () {
+ var e = this.port;
+ return null === e ? '' : b(e);
+ },
+ setPort: function (e) {
+ this.cannotHaveUsernamePasswordPort() || ('' == (e = b(e)) ? (this.port = null) : this.parse(e, Ae));
+ },
+ getPathname: function () {
+ var e = this.path;
+ return this.cannotBeABaseURL ? e[0] : e.length ? '/' + M(e, '/') : '';
+ },
+ setPathname: function (e) {
+ this.cannotBeABaseURL || ((this.path = []), this.parse(e, Ie));
+ },
+ getSearch: function () {
+ var e = this.query;
+ return e ? '?' + e : '';
+ },
+ setSearch: function (e) {
+ '' == (e = b(e))
+ ? (this.query = null)
+ : ('?' == T(e, 0) && (e = U(e, 1)), (this.query = ''), this.parse(e, Me)),
+ this.searchParams.update();
+ },
+ getSearchParams: function () {
+ return this.searchParams.facade;
+ },
+ getHash: function () {
+ var e = this.fragment;
+ return e ? '#' + e : '';
+ },
+ setHash: function (e) {
+ '' != (e = b(e))
+ ? ('#' == T(e, 0) && (e = U(e, 1)), (this.fragment = ''), this.parse(e, De))
+ : (this.fragment = null);
+ },
+ update: function () {
+ this.query = this.searchParams.serialize() || null;
+ },
+ };
+ var Le = function (e) {
+ var t = h(this, Be),
+ n = E(arguments.length, 1) > 1 ? arguments[1] : void 0,
+ r = _(t, new Fe(e, !1, n));
+ s ||
+ ((t.href = r.serialize()),
+ (t.origin = r.getOrigin()),
+ (t.protocol = r.getProtocol()),
+ (t.username = r.getUsername()),
+ (t.password = r.getPassword()),
+ (t.host = r.getHost()),
+ (t.hostname = r.getHostname()),
+ (t.port = r.getPort()),
+ (t.pathname = r.getPathname()),
+ (t.search = r.getSearch()),
+ (t.searchParams = r.getSearchParams()),
+ (t.hash = r.getHash()));
+ },
+ Be = Le.prototype,
+ $e = function (e, t) {
+ return {
+ get: function () {
+ return j(this)[e]();
+ },
+ set:
+ t &&
+ function (e) {
+ return j(this)[t](e);
+ },
+ configurable: !0,
+ enumerable: !0,
+ };
+ };
+ if (
+ (s &&
+ (p(Be, 'href', $e('serialize', 'setHref')),
+ p(Be, 'origin', $e('getOrigin')),
+ p(Be, 'protocol', $e('getProtocol', 'setProtocol')),
+ p(Be, 'username', $e('getUsername', 'setUsername')),
+ p(Be, 'password', $e('getPassword', 'setPassword')),
+ p(Be, 'host', $e('getHost', 'setHost')),
+ p(Be, 'hostname', $e('getHostname', 'setHostname')),
+ p(Be, 'port', $e('getPort', 'setPort')),
+ p(Be, 'pathname', $e('getPathname', 'setPathname')),
+ p(Be, 'search', $e('getSearch', 'setSearch')),
+ p(Be, 'searchParams', $e('getSearchParams')),
+ p(Be, 'hash', $e('getHash', 'setHash'))),
+ u(
+ Be,
+ 'toJSON',
+ function () {
+ return j(this).serialize();
+ },
+ { enumerable: !0 }
+ ),
+ u(
+ Be,
+ 'toString',
+ function () {
+ return j(this).serialize();
+ },
+ { enumerable: !0 }
+ ),
+ A)
+ ) {
+ var qe = A.createObjectURL,
+ Ue = A.revokeObjectURL;
+ qe && u(Le, 'createObjectURL', l(qe, A)), Ue && u(Le, 'revokeObjectURL', l(Ue, A));
+ }
+ w(Le, 'URL'), o({ global: !0, constructor: !0, forced: !i, sham: !s }, { URL: Le });
+ },
+ 33601: (e, t, n) => {
+ n(47250);
+ },
+ 98947: () => {},
+ 24848: (e, t, n) => {
+ var r = n(54493);
+ e.exports = r;
+ },
+ 83363: (e, t, n) => {
+ var r = n(24034);
+ e.exports = r;
+ },
+ 62908: (e, t, n) => {
+ var r = n(12710);
+ e.exports = r;
+ },
+ 49216: (e, t, n) => {
+ var r = n(99324);
+ e.exports = r;
+ },
+ 56668: (e, t, n) => {
+ var r = n(95909);
+ e.exports = r;
+ },
+ 74719: (e, t, n) => {
+ var r = n(14423);
+ e.exports = r;
+ },
+ 57784: (e, t, n) => {
+ var r = n(81103);
+ e.exports = r;
+ },
+ 28196: (e, t, n) => {
+ var r = n(16246);
+ e.exports = r;
+ },
+ 8065: (e, t, n) => {
+ var r = n(56043);
+ e.exports = r;
+ },
+ 57448: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(62908),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.entries;
+ return e === a || (s(a, e) && t === a.entries) || o(l, r(e)) ? i : t;
+ };
+ },
+ 29455: (e, t, n) => {
+ var r = n(13160);
+ e.exports = r;
+ },
+ 69743: (e, t, n) => {
+ var r = n(80446);
+ e.exports = r;
+ },
+ 11955: (e, t, n) => {
+ var r = n(2480);
+ e.exports = r;
+ },
+ 96064: (e, t, n) => {
+ var r = n(7147);
+ e.exports = r;
+ },
+ 61577: (e, t, n) => {
+ var r = n(32236);
+ e.exports = r;
+ },
+ 46279: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(49216),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.forEach;
+ return e === a || (s(a, e) && t === a.forEach) || o(l, r(e)) ? i : t;
+ };
+ },
+ 33778: (e, t, n) => {
+ var r = n(58557);
+ e.exports = r;
+ },
+ 19373: (e, t, n) => {
+ var r = n(34570);
+ e.exports = r;
+ },
+ 73819: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(56668),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.keys;
+ return e === a || (s(a, e) && t === a.keys) || o(l, r(e)) ? i : t;
+ };
+ },
+ 11022: (e, t, n) => {
+ var r = n(57564);
+ e.exports = r;
+ },
+ 61798: (e, t, n) => {
+ var r = n(88287);
+ e.exports = r;
+ },
+ 52759: (e, t, n) => {
+ var r = n(93993);
+ e.exports = r;
+ },
+ 52527: (e, t, n) => {
+ var r = n(68025);
+ e.exports = r;
+ },
+ 36857: (e, t, n) => {
+ var r = n(59257);
+ e.exports = r;
+ },
+ 82073: (e, t, n) => {
+ var r = n(69601);
+ e.exports = r;
+ },
+ 45286: (e, t, n) => {
+ var r = n(28299);
+ e.exports = r;
+ },
+ 62856: (e, t, n) => {
+ var r = n(69355);
+ e.exports = r;
+ },
+ 2348: (e, t, n) => {
+ var r = n(18339);
+ e.exports = r;
+ },
+ 35178: (e, t, n) => {
+ var r = n(71611);
+ e.exports = r;
+ },
+ 76361: (e, t, n) => {
+ var r = n(62774);
+ e.exports = r;
+ },
+ 71815: (e, t, n) => {
+ n(7634);
+ var r = n(9697),
+ o = n(90953),
+ s = n(7046),
+ i = n(74719),
+ a = Array.prototype,
+ l = { DOMTokenList: !0, NodeList: !0 };
+ e.exports = function (e) {
+ var t = e.values;
+ return e === a || (s(a, e) && t === a.values) || o(l, r(e)) ? i : t;
+ };
+ },
+ 8933: (e, t, n) => {
+ var r = n(84426);
+ e.exports = r;
+ },
+ 15868: (e, t, n) => {
+ var r = n(91018);
+ n(7634), (e.exports = r);
+ },
+ 14873: (e, t, n) => {
+ var r = n(97849);
+ e.exports = r;
+ },
+ 38849: (e, t, n) => {
+ var r = n(3820);
+ e.exports = r;
+ },
+ 63383: (e, t, n) => {
+ var r = n(45999);
+ e.exports = r;
+ },
+ 57396: (e, t, n) => {
+ var r = n(7702);
+ e.exports = r;
+ },
+ 41910: (e, t, n) => {
+ var r = n(48171);
+ e.exports = r;
+ },
+ 86209: (e, t, n) => {
+ var r = n(73081);
+ e.exports = r;
+ },
+ 53402: (e, t, n) => {
+ var r = n(7699);
+ n(7634), (e.exports = r);
+ },
+ 79427: (e, t, n) => {
+ var r = n(286);
+ e.exports = r;
+ },
+ 62857: (e, t, n) => {
+ var r = n(92766);
+ e.exports = r;
+ },
+ 9534: (e, t, n) => {
+ var r = n(30498);
+ e.exports = r;
+ },
+ 23059: (e, t, n) => {
+ var r = n(48494);
+ e.exports = r;
+ },
+ 47795: (e, t, n) => {
+ var r = n(98430);
+ e.exports = r;
+ },
+ 27460: (e, t, n) => {
+ var r = n(52956);
+ n(7634), (e.exports = r);
+ },
+ 27989: (e, t, n) => {
+ n(71249);
+ var r = n(54058);
+ e.exports = r.setTimeout;
+ },
+ 5519: (e, t, n) => {
+ var r = n(76998);
+ n(7634), (e.exports = r);
+ },
+ 23452: (e, t, n) => {
+ var r = n(97089);
+ e.exports = r;
+ },
+ 92547: (e, t, n) => {
+ var r = n(57473);
+ n(7634), (e.exports = r);
+ },
+ 46509: (e, t, n) => {
+ var r = n(24227);
+ n(7634), (e.exports = r);
+ },
+ 35774: (e, t, n) => {
+ var r = n(62978);
+ e.exports = r;
+ },
+ 57641: (e, t, n) => {
+ var r = n(71459);
+ e.exports = r;
+ },
+ 72010: (e, t, n) => {
+ var r = n(32304);
+ n(7634), (e.exports = r);
+ },
+ 93726: (e, t, n) => {
+ var r = n(29567);
+ n(7634), (e.exports = r);
+ },
+ 47610: (e, t, n) => {
+ n(95304), n(16454), n(73305), n(62337);
+ var r = n(54058);
+ e.exports = r.URLSearchParams;
+ },
+ 71459: (e, t, n) => {
+ n(47610), n(33601), n(84630), n(98947);
+ var r = n(54058);
+ e.exports = r.URL;
+ },
+ 31905: function () {
+ !(function (e) {
+ !(function (t) {
+ var n = 'URLSearchParams' in e,
+ r = 'Symbol' in e && 'iterator' in Symbol,
+ o =
+ 'FileReader' in e &&
+ 'Blob' in e &&
+ (function () {
+ try {
+ return new Blob(), !0;
+ } catch (e) {
+ return !1;
+ }
+ })(),
+ s = 'FormData' in e,
+ i = 'ArrayBuffer' in e;
+ if (i)
+ var a = [
+ '[object Int8Array]',
+ '[object Uint8Array]',
+ '[object Uint8ClampedArray]',
+ '[object Int16Array]',
+ '[object Uint16Array]',
+ '[object Int32Array]',
+ '[object Uint32Array]',
+ '[object Float32Array]',
+ '[object Float64Array]',
+ ],
+ l =
+ ArrayBuffer.isView ||
+ function (e) {
+ return e && a.indexOf(Object.prototype.toString.call(e)) > -1;
+ };
+ function c(e) {
+ if (('string' != typeof e && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)))
+ throw new TypeError('Invalid character in header field name');
+ return e.toLowerCase();
+ }
+ function u(e) {
+ return 'string' != typeof e && (e = String(e)), e;
+ }
+ function p(e) {
+ var t = {
+ next: function () {
+ var t = e.shift();
+ return { done: void 0 === t, value: t };
+ },
+ };
+ return (
+ r &&
+ (t[Symbol.iterator] = function () {
+ return t;
+ }),
+ t
+ );
+ }
+ function h(e) {
+ (this.map = {}),
+ e instanceof h
+ ? e.forEach(function (e, t) {
+ this.append(t, e);
+ }, this)
+ : Array.isArray(e)
+ ? e.forEach(function (e) {
+ this.append(e[0], e[1]);
+ }, this)
+ : e &&
+ Object.getOwnPropertyNames(e).forEach(function (t) {
+ this.append(t, e[t]);
+ }, this);
+ }
+ function f(e) {
+ if (e.bodyUsed) return Promise.reject(new TypeError('Already read'));
+ e.bodyUsed = !0;
+ }
+ function d(e) {
+ return new Promise(function (t, n) {
+ (e.onload = function () {
+ t(e.result);
+ }),
+ (e.onerror = function () {
+ n(e.error);
+ });
+ });
+ }
+ function m(e) {
+ var t = new FileReader(),
+ n = d(t);
+ return t.readAsArrayBuffer(e), n;
+ }
+ function g(e) {
+ if (e.slice) return e.slice(0);
+ var t = new Uint8Array(e.byteLength);
+ return t.set(new Uint8Array(e)), t.buffer;
+ }
+ function y() {
+ return (
+ (this.bodyUsed = !1),
+ (this._initBody = function (e) {
+ var t;
+ (this._bodyInit = e),
+ e
+ ? 'string' == typeof e
+ ? (this._bodyText = e)
+ : o && Blob.prototype.isPrototypeOf(e)
+ ? (this._bodyBlob = e)
+ : s && FormData.prototype.isPrototypeOf(e)
+ ? (this._bodyFormData = e)
+ : n && URLSearchParams.prototype.isPrototypeOf(e)
+ ? (this._bodyText = e.toString())
+ : i && o && (t = e) && DataView.prototype.isPrototypeOf(t)
+ ? ((this._bodyArrayBuffer = g(e.buffer)),
+ (this._bodyInit = new Blob([this._bodyArrayBuffer])))
+ : i && (ArrayBuffer.prototype.isPrototypeOf(e) || l(e))
+ ? (this._bodyArrayBuffer = g(e))
+ : (this._bodyText = e = Object.prototype.toString.call(e))
+ : (this._bodyText = ''),
+ this.headers.get('content-type') ||
+ ('string' == typeof e
+ ? this.headers.set('content-type', 'text/plain;charset=UTF-8')
+ : this._bodyBlob && this._bodyBlob.type
+ ? this.headers.set('content-type', this._bodyBlob.type)
+ : n &&
+ URLSearchParams.prototype.isPrototypeOf(e) &&
+ this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'));
+ }),
+ o &&
+ ((this.blob = function () {
+ var e = f(this);
+ if (e) return e;
+ if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
+ if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
+ if (this._bodyFormData) throw new Error('could not read FormData body as blob');
+ return Promise.resolve(new Blob([this._bodyText]));
+ }),
+ (this.arrayBuffer = function () {
+ return this._bodyArrayBuffer
+ ? f(this) || Promise.resolve(this._bodyArrayBuffer)
+ : this.blob().then(m);
+ })),
+ (this.text = function () {
+ var e,
+ t,
+ n,
+ r = f(this);
+ if (r) return r;
+ if (this._bodyBlob)
+ return (e = this._bodyBlob), (t = new FileReader()), (n = d(t)), t.readAsText(e), n;
+ if (this._bodyArrayBuffer)
+ return Promise.resolve(
+ (function (e) {
+ for (var t = new Uint8Array(e), n = new Array(t.length), r = 0; r < t.length; r++)
+ n[r] = String.fromCharCode(t[r]);
+ return n.join('');
+ })(this._bodyArrayBuffer)
+ );
+ if (this._bodyFormData) throw new Error('could not read FormData body as text');
+ return Promise.resolve(this._bodyText);
+ }),
+ s &&
+ (this.formData = function () {
+ return this.text().then(w);
+ }),
+ (this.json = function () {
+ return this.text().then(JSON.parse);
+ }),
+ this
+ );
+ }
+ (h.prototype.append = function (e, t) {
+ (e = c(e)), (t = u(t));
+ var n = this.map[e];
+ this.map[e] = n ? n + ', ' + t : t;
+ }),
+ (h.prototype.delete = function (e) {
+ delete this.map[c(e)];
+ }),
+ (h.prototype.get = function (e) {
+ return (e = c(e)), this.has(e) ? this.map[e] : null;
+ }),
+ (h.prototype.has = function (e) {
+ return this.map.hasOwnProperty(c(e));
+ }),
+ (h.prototype.set = function (e, t) {
+ this.map[c(e)] = u(t);
+ }),
+ (h.prototype.forEach = function (e, t) {
+ for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this);
+ }),
+ (h.prototype.keys = function () {
+ var e = [];
+ return (
+ this.forEach(function (t, n) {
+ e.push(n);
+ }),
+ p(e)
+ );
+ }),
+ (h.prototype.values = function () {
+ var e = [];
+ return (
+ this.forEach(function (t) {
+ e.push(t);
+ }),
+ p(e)
+ );
+ }),
+ (h.prototype.entries = function () {
+ var e = [];
+ return (
+ this.forEach(function (t, n) {
+ e.push([n, t]);
+ }),
+ p(e)
+ );
+ }),
+ r && (h.prototype[Symbol.iterator] = h.prototype.entries);
+ var v = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
+ function b(e, t) {
+ var n,
+ r,
+ o = (t = t || {}).body;
+ if (e instanceof b) {
+ if (e.bodyUsed) throw new TypeError('Already read');
+ (this.url = e.url),
+ (this.credentials = e.credentials),
+ t.headers || (this.headers = new h(e.headers)),
+ (this.method = e.method),
+ (this.mode = e.mode),
+ (this.signal = e.signal),
+ o || null == e._bodyInit || ((o = e._bodyInit), (e.bodyUsed = !0));
+ } else this.url = String(e);
+ if (
+ ((this.credentials = t.credentials || this.credentials || 'same-origin'),
+ (!t.headers && this.headers) || (this.headers = new h(t.headers)),
+ (this.method =
+ ((n = t.method || this.method || 'GET'), (r = n.toUpperCase()), v.indexOf(r) > -1 ? r : n)),
+ (this.mode = t.mode || this.mode || null),
+ (this.signal = t.signal || this.signal),
+ (this.referrer = null),
+ ('GET' === this.method || 'HEAD' === this.method) && o)
+ )
+ throw new TypeError('Body not allowed for GET or HEAD requests');
+ this._initBody(o);
+ }
+ function w(e) {
+ var t = new FormData();
+ return (
+ e
+ .trim()
+ .split('&')
+ .forEach(function (e) {
+ if (e) {
+ var n = e.split('='),
+ r = n.shift().replace(/\+/g, ' '),
+ o = n.join('=').replace(/\+/g, ' ');
+ t.append(decodeURIComponent(r), decodeURIComponent(o));
+ }
+ }),
+ t
+ );
+ }
+ function E(e, t) {
+ t || (t = {}),
+ (this.type = 'default'),
+ (this.status = void 0 === t.status ? 200 : t.status),
+ (this.ok = this.status >= 200 && this.status < 300),
+ (this.statusText = 'statusText' in t ? t.statusText : 'OK'),
+ (this.headers = new h(t.headers)),
+ (this.url = t.url || ''),
+ this._initBody(e);
+ }
+ (b.prototype.clone = function () {
+ return new b(this, { body: this._bodyInit });
+ }),
+ y.call(b.prototype),
+ y.call(E.prototype),
+ (E.prototype.clone = function () {
+ return new E(this._bodyInit, {
+ status: this.status,
+ statusText: this.statusText,
+ headers: new h(this.headers),
+ url: this.url,
+ });
+ }),
+ (E.error = function () {
+ var e = new E(null, { status: 0, statusText: '' });
+ return (e.type = 'error'), e;
+ });
+ var x = [301, 302, 303, 307, 308];
+ (E.redirect = function (e, t) {
+ if (-1 === x.indexOf(t)) throw new RangeError('Invalid status code');
+ return new E(null, { status: t, headers: { location: e } });
+ }),
+ (t.DOMException = e.DOMException);
+ try {
+ new t.DOMException();
+ } catch (e) {
+ (t.DOMException = function (e, t) {
+ (this.message = e), (this.name = t);
+ var n = Error(e);
+ this.stack = n.stack;
+ }),
+ (t.DOMException.prototype = Object.create(Error.prototype)),
+ (t.DOMException.prototype.constructor = t.DOMException);
+ }
+ function S(e, n) {
+ return new Promise(function (r, s) {
+ var i = new b(e, n);
+ if (i.signal && i.signal.aborted) return s(new t.DOMException('Aborted', 'AbortError'));
+ var a = new XMLHttpRequest();
+ function l() {
+ a.abort();
+ }
+ (a.onload = function () {
+ var e,
+ t,
+ n = {
+ status: a.status,
+ statusText: a.statusText,
+ headers:
+ ((e = a.getAllResponseHeaders() || ''),
+ (t = new h()),
+ e
+ .replace(/\r?\n[\t ]+/g, ' ')
+ .split(/\r?\n/)
+ .forEach(function (e) {
+ var n = e.split(':'),
+ r = n.shift().trim();
+ if (r) {
+ var o = n.join(':').trim();
+ t.append(r, o);
+ }
+ }),
+ t),
+ };
+ n.url = 'responseURL' in a ? a.responseURL : n.headers.get('X-Request-URL');
+ var o = 'response' in a ? a.response : a.responseText;
+ r(new E(o, n));
+ }),
+ (a.onerror = function () {
+ s(new TypeError('Network request failed'));
+ }),
+ (a.ontimeout = function () {
+ s(new TypeError('Network request failed'));
+ }),
+ (a.onabort = function () {
+ s(new t.DOMException('Aborted', 'AbortError'));
+ }),
+ a.open(i.method, i.url, !0),
+ 'include' === i.credentials
+ ? (a.withCredentials = !0)
+ : 'omit' === i.credentials && (a.withCredentials = !1),
+ 'responseType' in a && o && (a.responseType = 'blob'),
+ i.headers.forEach(function (e, t) {
+ a.setRequestHeader(t, e);
+ }),
+ i.signal &&
+ (i.signal.addEventListener('abort', l),
+ (a.onreadystatechange = function () {
+ 4 === a.readyState && i.signal.removeEventListener('abort', l);
+ })),
+ a.send(void 0 === i._bodyInit ? null : i._bodyInit);
+ });
+ }
+ (S.polyfill = !0),
+ e.fetch || ((e.fetch = S), (e.Headers = h), (e.Request = b), (e.Response = E)),
+ (t.Headers = h),
+ (t.Request = b),
+ (t.Response = E),
+ (t.fetch = S),
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ })({});
+ })('undefined' != typeof self ? self : this);
+ },
+ 8269: function (e, t, n) {
+ var r;
+ (r = void 0 !== n.g ? n.g : this),
+ (e.exports = (function (e) {
+ if (e.CSS && e.CSS.escape) return e.CSS.escape;
+ var t = function (e) {
+ if (0 == arguments.length) throw new TypeError('`CSS.escape` requires an argument.');
+ for (var t, n = String(e), r = n.length, o = -1, s = '', i = n.charCodeAt(0); ++o < r; )
+ 0 != (t = n.charCodeAt(o))
+ ? (s +=
+ (t >= 1 && t <= 31) ||
+ 127 == t ||
+ (0 == o && t >= 48 && t <= 57) ||
+ (1 == o && t >= 48 && t <= 57 && 45 == i)
+ ? '\\' + t.toString(16) + ' '
+ : (0 == o && 1 == r && 45 == t) ||
+ !(
+ t >= 128 ||
+ 45 == t ||
+ 95 == t ||
+ (t >= 48 && t <= 57) ||
+ (t >= 65 && t <= 90) ||
+ (t >= 97 && t <= 122)
+ )
+ ? '\\' + n.charAt(o)
+ : n.charAt(o))
+ : (s += '�');
+ return s;
+ };
+ return e.CSS || (e.CSS = {}), (e.CSS.escape = t), t;
+ })(r));
+ },
+ 27698: (e, t, n) => {
+ 'use strict';
+ var r = n(48764).Buffer;
+ function o(e) {
+ return e instanceof r || e instanceof Date || e instanceof RegExp;
+ }
+ function s(e) {
+ if (e instanceof r) {
+ var t = r.alloc ? r.alloc(e.length) : new r(e.length);
+ return e.copy(t), t;
+ }
+ if (e instanceof Date) return new Date(e.getTime());
+ if (e instanceof RegExp) return new RegExp(e);
+ throw new Error('Unexpected situation');
+ }
+ function i(e) {
+ var t = [];
+ return (
+ e.forEach(function (e, n) {
+ 'object' == typeof e && null !== e
+ ? Array.isArray(e)
+ ? (t[n] = i(e))
+ : o(e)
+ ? (t[n] = s(e))
+ : (t[n] = l({}, e))
+ : (t[n] = e);
+ }),
+ t
+ );
+ }
+ function a(e, t) {
+ return '__proto__' === t ? void 0 : e[t];
+ }
+ var l = (e.exports = function () {
+ if (arguments.length < 1 || 'object' != typeof arguments[0]) return !1;
+ if (arguments.length < 2) return arguments[0];
+ var e,
+ t,
+ n = arguments[0];
+ return (
+ Array.prototype.slice.call(arguments, 1).forEach(function (r) {
+ 'object' != typeof r ||
+ null === r ||
+ Array.isArray(r) ||
+ Object.keys(r).forEach(function (c) {
+ return (
+ (t = a(n, c)),
+ (e = a(r, c)) === n
+ ? void 0
+ : 'object' != typeof e || null === e
+ ? void (n[c] = e)
+ : Array.isArray(e)
+ ? void (n[c] = i(e))
+ : o(e)
+ ? void (n[c] = s(e))
+ : 'object' != typeof t || null === t || Array.isArray(t)
+ ? void (n[c] = l({}, e))
+ : void (n[c] = l(t, e))
+ );
+ });
+ }),
+ n
+ );
+ });
+ },
+ 9996: (e) => {
+ 'use strict';
+ var t = function (e) {
+ return (
+ (function (e) {
+ return !!e && 'object' == typeof e;
+ })(e) &&
+ !(function (e) {
+ var t = Object.prototype.toString.call(e);
+ return (
+ '[object RegExp]' === t ||
+ '[object Date]' === t ||
+ (function (e) {
+ return e.$$typeof === n;
+ })(e)
+ );
+ })(e)
+ );
+ };
+ var n = 'function' == typeof Symbol && Symbol.for ? Symbol.for('react.element') : 60103;
+ function r(e, t) {
+ return !1 !== t.clone && t.isMergeableObject(e) ? l(((n = e), Array.isArray(n) ? [] : {}), e, t) : e;
+ var n;
+ }
+ function o(e, t, n) {
+ return e.concat(t).map(function (e) {
+ return r(e, n);
+ });
+ }
+ function s(e) {
+ return Object.keys(e).concat(
+ (function (e) {
+ return Object.getOwnPropertySymbols
+ ? Object.getOwnPropertySymbols(e).filter(function (t) {
+ return Object.propertyIsEnumerable.call(e, t);
+ })
+ : [];
+ })(e)
+ );
+ }
+ function i(e, t) {
+ try {
+ return t in e;
+ } catch (e) {
+ return !1;
+ }
+ }
+ function a(e, t, n) {
+ var o = {};
+ return (
+ n.isMergeableObject(e) &&
+ s(e).forEach(function (t) {
+ o[t] = r(e[t], n);
+ }),
+ s(t).forEach(function (s) {
+ (function (e, t) {
+ return i(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
+ })(e, s) ||
+ (i(e, s) && n.isMergeableObject(t[s])
+ ? (o[s] = (function (e, t) {
+ if (!t.customMerge) return l;
+ var n = t.customMerge(e);
+ return 'function' == typeof n ? n : l;
+ })(s, n)(e[s], t[s], n))
+ : (o[s] = r(t[s], n)));
+ }),
+ o
+ );
+ }
+ function l(e, n, s) {
+ ((s = s || {}).arrayMerge = s.arrayMerge || o),
+ (s.isMergeableObject = s.isMergeableObject || t),
+ (s.cloneUnlessOtherwiseSpecified = r);
+ var i = Array.isArray(n);
+ return i === Array.isArray(e) ? (i ? s.arrayMerge(e, n, s) : a(e, n, s)) : r(n, s);
+ }
+ l.all = function (e, t) {
+ if (!Array.isArray(e)) throw new Error('first argument should be an array');
+ return e.reduce(function (e, n) {
+ return l(e, n, t);
+ }, {});
+ };
+ var c = l;
+ e.exports = c;
+ },
+ 27856: function (e) {
+ e.exports = (function () {
+ 'use strict';
+ const {
+ entries: e,
+ setPrototypeOf: t,
+ isFrozen: n,
+ getPrototypeOf: r,
+ getOwnPropertyDescriptor: o,
+ } = Object;
+ let { freeze: s, seal: i, create: a } = Object,
+ { apply: l, construct: c } = 'undefined' != typeof Reflect && Reflect;
+ l ||
+ (l = function (e, t, n) {
+ return e.apply(t, n);
+ }),
+ s ||
+ (s = function (e) {
+ return e;
+ }),
+ i ||
+ (i = function (e) {
+ return e;
+ }),
+ c ||
+ (c = function (e, t) {
+ return new e(...t);
+ });
+ const u = E(Array.prototype.forEach),
+ p = E(Array.prototype.pop),
+ h = E(Array.prototype.push),
+ f = E(String.prototype.toLowerCase),
+ d = E(String.prototype.toString),
+ m = E(String.prototype.match),
+ g = E(String.prototype.replace),
+ y = E(String.prototype.indexOf),
+ v = E(String.prototype.trim),
+ b = E(RegExp.prototype.test),
+ w = x(TypeError);
+ function E(e) {
+ return function (t) {
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
+ r[o - 1] = arguments[o];
+ return l(e, t, r);
+ };
+ }
+ function x(e) {
+ return function () {
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
+ return c(e, n);
+ };
+ }
+ function S(e, r, o) {
+ var s;
+ (o = null !== (s = o) && void 0 !== s ? s : f), t && t(e, null);
+ let i = r.length;
+ for (; i--; ) {
+ let t = r[i];
+ if ('string' == typeof t) {
+ const e = o(t);
+ e !== t && (n(r) || (r[i] = e), (t = e));
+ }
+ e[t] = !0;
+ }
+ return e;
+ }
+ function _(t) {
+ const n = a(null);
+ for (const [r, o] of e(t)) n[r] = o;
+ return n;
+ }
+ function j(e, t) {
+ for (; null !== e; ) {
+ const n = o(e, t);
+ if (n) {
+ if (n.get) return E(n.get);
+ if ('function' == typeof n.value) return E(n.value);
+ }
+ e = r(e);
+ }
+ function n(e) {
+ return console.warn('fallback value for', e), null;
+ }
+ return n;
+ }
+ const O = s([
+ 'a',
+ 'abbr',
+ 'acronym',
+ 'address',
+ 'area',
+ 'article',
+ 'aside',
+ 'audio',
+ 'b',
+ 'bdi',
+ 'bdo',
+ 'big',
+ 'blink',
+ 'blockquote',
+ 'body',
+ 'br',
+ 'button',
+ 'canvas',
+ 'caption',
+ 'center',
+ 'cite',
+ 'code',
+ 'col',
+ 'colgroup',
+ 'content',
+ 'data',
+ 'datalist',
+ 'dd',
+ 'decorator',
+ 'del',
+ 'details',
+ 'dfn',
+ 'dialog',
+ 'dir',
+ 'div',
+ 'dl',
+ 'dt',
+ 'element',
+ 'em',
+ 'fieldset',
+ 'figcaption',
+ 'figure',
+ 'font',
+ 'footer',
+ 'form',
+ 'h1',
+ 'h2',
+ 'h3',
+ 'h4',
+ 'h5',
+ 'h6',
+ 'head',
+ 'header',
+ 'hgroup',
+ 'hr',
+ 'html',
+ 'i',
+ 'img',
+ 'input',
+ 'ins',
+ 'kbd',
+ 'label',
+ 'legend',
+ 'li',
+ 'main',
+ 'map',
+ 'mark',
+ 'marquee',
+ 'menu',
+ 'menuitem',
+ 'meter',
+ 'nav',
+ 'nobr',
+ 'ol',
+ 'optgroup',
+ 'option',
+ 'output',
+ 'p',
+ 'picture',
+ 'pre',
+ 'progress',
+ 'q',
+ 'rp',
+ 'rt',
+ 'ruby',
+ 's',
+ 'samp',
+ 'section',
+ 'select',
+ 'shadow',
+ 'small',
+ 'source',
+ 'spacer',
+ 'span',
+ 'strike',
+ 'strong',
+ 'style',
+ 'sub',
+ 'summary',
+ 'sup',
+ 'table',
+ 'tbody',
+ 'td',
+ 'template',
+ 'textarea',
+ 'tfoot',
+ 'th',
+ 'thead',
+ 'time',
+ 'tr',
+ 'track',
+ 'tt',
+ 'u',
+ 'ul',
+ 'var',
+ 'video',
+ 'wbr',
+ ]),
+ k = s([
+ 'svg',
+ 'a',
+ 'altglyph',
+ 'altglyphdef',
+ 'altglyphitem',
+ 'animatecolor',
+ 'animatemotion',
+ 'animatetransform',
+ 'circle',
+ 'clippath',
+ 'defs',
+ 'desc',
+ 'ellipse',
+ 'filter',
+ 'font',
+ 'g',
+ 'glyph',
+ 'glyphref',
+ 'hkern',
+ 'image',
+ 'line',
+ 'lineargradient',
+ 'marker',
+ 'mask',
+ 'metadata',
+ 'mpath',
+ 'path',
+ 'pattern',
+ 'polygon',
+ 'polyline',
+ 'radialgradient',
+ 'rect',
+ 'stop',
+ 'style',
+ 'switch',
+ 'symbol',
+ 'text',
+ 'textpath',
+ 'title',
+ 'tref',
+ 'tspan',
+ 'view',
+ 'vkern',
+ ]),
+ A = s([
+ 'feBlend',
+ 'feColorMatrix',
+ 'feComponentTransfer',
+ 'feComposite',
+ 'feConvolveMatrix',
+ 'feDiffuseLighting',
+ 'feDisplacementMap',
+ 'feDistantLight',
+ 'feDropShadow',
+ 'feFlood',
+ 'feFuncA',
+ 'feFuncB',
+ 'feFuncG',
+ 'feFuncR',
+ 'feGaussianBlur',
+ 'feImage',
+ 'feMerge',
+ 'feMergeNode',
+ 'feMorphology',
+ 'feOffset',
+ 'fePointLight',
+ 'feSpecularLighting',
+ 'feSpotLight',
+ 'feTile',
+ 'feTurbulence',
+ ]),
+ C = s([
+ 'animate',
+ 'color-profile',
+ 'cursor',
+ 'discard',
+ 'font-face',
+ 'font-face-format',
+ 'font-face-name',
+ 'font-face-src',
+ 'font-face-uri',
+ 'foreignobject',
+ 'hatch',
+ 'hatchpath',
+ 'mesh',
+ 'meshgradient',
+ 'meshpatch',
+ 'meshrow',
+ 'missing-glyph',
+ 'script',
+ 'set',
+ 'solidcolor',
+ 'unknown',
+ 'use',
+ ]),
+ P = s([
+ 'math',
+ 'menclose',
+ 'merror',
+ 'mfenced',
+ 'mfrac',
+ 'mglyph',
+ 'mi',
+ 'mlabeledtr',
+ 'mmultiscripts',
+ 'mn',
+ 'mo',
+ 'mover',
+ 'mpadded',
+ 'mphantom',
+ 'mroot',
+ 'mrow',
+ 'ms',
+ 'mspace',
+ 'msqrt',
+ 'mstyle',
+ 'msub',
+ 'msup',
+ 'msubsup',
+ 'mtable',
+ 'mtd',
+ 'mtext',
+ 'mtr',
+ 'munder',
+ 'munderover',
+ 'mprescripts',
+ ]),
+ N = s([
+ 'maction',
+ 'maligngroup',
+ 'malignmark',
+ 'mlongdiv',
+ 'mscarries',
+ 'mscarry',
+ 'msgroup',
+ 'mstack',
+ 'msline',
+ 'msrow',
+ 'semantics',
+ 'annotation',
+ 'annotation-xml',
+ 'mprescripts',
+ 'none',
+ ]),
+ I = s(['#text']),
+ T = s([
+ 'accept',
+ 'action',
+ 'align',
+ 'alt',
+ 'autocapitalize',
+ 'autocomplete',
+ 'autopictureinpicture',
+ 'autoplay',
+ 'background',
+ 'bgcolor',
+ 'border',
+ 'capture',
+ 'cellpadding',
+ 'cellspacing',
+ 'checked',
+ 'cite',
+ 'class',
+ 'clear',
+ 'color',
+ 'cols',
+ 'colspan',
+ 'controls',
+ 'controlslist',
+ 'coords',
+ 'crossorigin',
+ 'datetime',
+ 'decoding',
+ 'default',
+ 'dir',
+ 'disabled',
+ 'disablepictureinpicture',
+ 'disableremoteplayback',
+ 'download',
+ 'draggable',
+ 'enctype',
+ 'enterkeyhint',
+ 'face',
+ 'for',
+ 'headers',
+ 'height',
+ 'hidden',
+ 'high',
+ 'href',
+ 'hreflang',
+ 'id',
+ 'inputmode',
+ 'integrity',
+ 'ismap',
+ 'kind',
+ 'label',
+ 'lang',
+ 'list',
+ 'loading',
+ 'loop',
+ 'low',
+ 'max',
+ 'maxlength',
+ 'media',
+ 'method',
+ 'min',
+ 'minlength',
+ 'multiple',
+ 'muted',
+ 'name',
+ 'nonce',
+ 'noshade',
+ 'novalidate',
+ 'nowrap',
+ 'open',
+ 'optimum',
+ 'pattern',
+ 'placeholder',
+ 'playsinline',
+ 'poster',
+ 'preload',
+ 'pubdate',
+ 'radiogroup',
+ 'readonly',
+ 'rel',
+ 'required',
+ 'rev',
+ 'reversed',
+ 'role',
+ 'rows',
+ 'rowspan',
+ 'spellcheck',
+ 'scope',
+ 'selected',
+ 'shape',
+ 'size',
+ 'sizes',
+ 'span',
+ 'srclang',
+ 'start',
+ 'src',
+ 'srcset',
+ 'step',
+ 'style',
+ 'summary',
+ 'tabindex',
+ 'title',
+ 'translate',
+ 'type',
+ 'usemap',
+ 'valign',
+ 'value',
+ 'width',
+ 'xmlns',
+ 'slot',
+ ]),
+ R = s([
+ 'accent-height',
+ 'accumulate',
+ 'additive',
+ 'alignment-baseline',
+ 'ascent',
+ 'attributename',
+ 'attributetype',
+ 'azimuth',
+ 'basefrequency',
+ 'baseline-shift',
+ 'begin',
+ 'bias',
+ 'by',
+ 'class',
+ 'clip',
+ 'clippathunits',
+ 'clip-path',
+ 'clip-rule',
+ 'color',
+ 'color-interpolation',
+ 'color-interpolation-filters',
+ 'color-profile',
+ 'color-rendering',
+ 'cx',
+ 'cy',
+ 'd',
+ 'dx',
+ 'dy',
+ 'diffuseconstant',
+ 'direction',
+ 'display',
+ 'divisor',
+ 'dur',
+ 'edgemode',
+ 'elevation',
+ 'end',
+ 'fill',
+ 'fill-opacity',
+ 'fill-rule',
+ 'filter',
+ 'filterunits',
+ 'flood-color',
+ 'flood-opacity',
+ 'font-family',
+ 'font-size',
+ 'font-size-adjust',
+ 'font-stretch',
+ 'font-style',
+ 'font-variant',
+ 'font-weight',
+ 'fx',
+ 'fy',
+ 'g1',
+ 'g2',
+ 'glyph-name',
+ 'glyphref',
+ 'gradientunits',
+ 'gradienttransform',
+ 'height',
+ 'href',
+ 'id',
+ 'image-rendering',
+ 'in',
+ 'in2',
+ 'k',
+ 'k1',
+ 'k2',
+ 'k3',
+ 'k4',
+ 'kerning',
+ 'keypoints',
+ 'keysplines',
+ 'keytimes',
+ 'lang',
+ 'lengthadjust',
+ 'letter-spacing',
+ 'kernelmatrix',
+ 'kernelunitlength',
+ 'lighting-color',
+ 'local',
+ 'marker-end',
+ 'marker-mid',
+ 'marker-start',
+ 'markerheight',
+ 'markerunits',
+ 'markerwidth',
+ 'maskcontentunits',
+ 'maskunits',
+ 'max',
+ 'mask',
+ 'media',
+ 'method',
+ 'mode',
+ 'min',
+ 'name',
+ 'numoctaves',
+ 'offset',
+ 'operator',
+ 'opacity',
+ 'order',
+ 'orient',
+ 'orientation',
+ 'origin',
+ 'overflow',
+ 'paint-order',
+ 'path',
+ 'pathlength',
+ 'patterncontentunits',
+ 'patterntransform',
+ 'patternunits',
+ 'points',
+ 'preservealpha',
+ 'preserveaspectratio',
+ 'primitiveunits',
+ 'r',
+ 'rx',
+ 'ry',
+ 'radius',
+ 'refx',
+ 'refy',
+ 'repeatcount',
+ 'repeatdur',
+ 'restart',
+ 'result',
+ 'rotate',
+ 'scale',
+ 'seed',
+ 'shape-rendering',
+ 'specularconstant',
+ 'specularexponent',
+ 'spreadmethod',
+ 'startoffset',
+ 'stddeviation',
+ 'stitchtiles',
+ 'stop-color',
+ 'stop-opacity',
+ 'stroke-dasharray',
+ 'stroke-dashoffset',
+ 'stroke-linecap',
+ 'stroke-linejoin',
+ 'stroke-miterlimit',
+ 'stroke-opacity',
+ 'stroke',
+ 'stroke-width',
+ 'style',
+ 'surfacescale',
+ 'systemlanguage',
+ 'tabindex',
+ 'targetx',
+ 'targety',
+ 'transform',
+ 'transform-origin',
+ 'text-anchor',
+ 'text-decoration',
+ 'text-rendering',
+ 'textlength',
+ 'type',
+ 'u1',
+ 'u2',
+ 'unicode',
+ 'values',
+ 'viewbox',
+ 'visibility',
+ 'version',
+ 'vert-adv-y',
+ 'vert-origin-x',
+ 'vert-origin-y',
+ 'width',
+ 'word-spacing',
+ 'wrap',
+ 'writing-mode',
+ 'xchannelselector',
+ 'ychannelselector',
+ 'x',
+ 'x1',
+ 'x2',
+ 'xmlns',
+ 'y',
+ 'y1',
+ 'y2',
+ 'z',
+ 'zoomandpan',
+ ]),
+ M = s([
+ 'accent',
+ 'accentunder',
+ 'align',
+ 'bevelled',
+ 'close',
+ 'columnsalign',
+ 'columnlines',
+ 'columnspan',
+ 'denomalign',
+ 'depth',
+ 'dir',
+ 'display',
+ 'displaystyle',
+ 'encoding',
+ 'fence',
+ 'frame',
+ 'height',
+ 'href',
+ 'id',
+ 'largeop',
+ 'length',
+ 'linethickness',
+ 'lspace',
+ 'lquote',
+ 'mathbackground',
+ 'mathcolor',
+ 'mathsize',
+ 'mathvariant',
+ 'maxsize',
+ 'minsize',
+ 'movablelimits',
+ 'notation',
+ 'numalign',
+ 'open',
+ 'rowalign',
+ 'rowlines',
+ 'rowspacing',
+ 'rowspan',
+ 'rspace',
+ 'rquote',
+ 'scriptlevel',
+ 'scriptminsize',
+ 'scriptsizemultiplier',
+ 'selection',
+ 'separator',
+ 'separators',
+ 'stretchy',
+ 'subscriptshift',
+ 'supscriptshift',
+ 'symmetric',
+ 'voffset',
+ 'width',
+ 'xmlns',
+ ]),
+ D = s(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']),
+ F = i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),
+ L = i(/<%[\w\W]*|[\w\W]*%>/gm),
+ B = i(/\${[\w\W]*}/gm),
+ $ = i(/^data-[\-\w.\u00B7-\uFFFF]/),
+ q = i(/^aria-[\-\w]+$/),
+ U = i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),
+ z = i(/^(?:\w+script|data):/i),
+ V = i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),
+ W = i(/^html$/i);
+ var J = Object.freeze({
+ __proto__: null,
+ MUSTACHE_EXPR: F,
+ ERB_EXPR: L,
+ TMPLIT_EXPR: B,
+ DATA_ATTR: $,
+ ARIA_ATTR: q,
+ IS_ALLOWED_URI: U,
+ IS_SCRIPT_OR_DATA: z,
+ ATTR_WHITESPACE: V,
+ DOCTYPE_NAME: W,
+ });
+ const K = () => ('undefined' == typeof window ? null : window),
+ H = function (e, t) {
+ if ('object' != typeof e || 'function' != typeof e.createPolicy) return null;
+ let n = null;
+ const r = 'data-tt-policy-suffix';
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
+ const o = 'dompurify' + (n ? '#' + n : '');
+ try {
+ return e.createPolicy(o, { createHTML: (e) => e, createScriptURL: (e) => e });
+ } catch (e) {
+ return console.warn('TrustedTypes policy ' + o + ' could not be created.'), null;
+ }
+ };
+ function G() {
+ let t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : K();
+ const n = (e) => G(e);
+ if (((n.version = '3.0.4'), (n.removed = []), !t || !t.document || 9 !== t.document.nodeType))
+ return (n.isSupported = !1), n;
+ const r = t.document,
+ o = r.currentScript;
+ let { document: i } = t;
+ const {
+ DocumentFragment: a,
+ HTMLTemplateElement: l,
+ Node: c,
+ Element: E,
+ NodeFilter: x,
+ NamedNodeMap: F = t.NamedNodeMap || t.MozNamedAttrMap,
+ HTMLFormElement: L,
+ DOMParser: B,
+ trustedTypes: $,
+ } = t,
+ q = E.prototype,
+ z = j(q, 'cloneNode'),
+ V = j(q, 'nextSibling'),
+ Z = j(q, 'childNodes'),
+ Y = j(q, 'parentNode');
+ if ('function' == typeof l) {
+ const e = i.createElement('template');
+ e.content && e.content.ownerDocument && (i = e.content.ownerDocument);
+ }
+ let X,
+ Q = '';
+ const {
+ implementation: ee,
+ createNodeIterator: te,
+ createDocumentFragment: ne,
+ getElementsByTagName: re,
+ } = i,
+ { importNode: oe } = r;
+ let se = {};
+ n.isSupported =
+ 'function' == typeof e && 'function' == typeof Y && ee && void 0 !== ee.createHTMLDocument;
+ const {
+ MUSTACHE_EXPR: ie,
+ ERB_EXPR: ae,
+ TMPLIT_EXPR: le,
+ DATA_ATTR: ce,
+ ARIA_ATTR: ue,
+ IS_SCRIPT_OR_DATA: pe,
+ ATTR_WHITESPACE: he,
+ } = J;
+ let { IS_ALLOWED_URI: fe } = J,
+ de = null;
+ const me = S({}, [...O, ...k, ...A, ...P, ...I]);
+ let ge = null;
+ const ye = S({}, [...T, ...R, ...M, ...D]);
+ let ve = Object.seal(
+ Object.create(null, {
+ tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null },
+ attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null },
+ allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 },
+ })
+ ),
+ be = null,
+ we = null,
+ Ee = !0,
+ xe = !0,
+ Se = !1,
+ _e = !0,
+ je = !1,
+ Oe = !1,
+ ke = !1,
+ Ae = !1,
+ Ce = !1,
+ Pe = !1,
+ Ne = !1,
+ Ie = !0,
+ Te = !1;
+ const Re = 'user-content-';
+ let Me = !0,
+ De = !1,
+ Fe = {},
+ Le = null;
+ const Be = S({}, [
+ 'annotation-xml',
+ 'audio',
+ 'colgroup',
+ 'desc',
+ 'foreignobject',
+ 'head',
+ 'iframe',
+ 'math',
+ 'mi',
+ 'mn',
+ 'mo',
+ 'ms',
+ 'mtext',
+ 'noembed',
+ 'noframes',
+ 'noscript',
+ 'plaintext',
+ 'script',
+ 'style',
+ 'svg',
+ 'template',
+ 'thead',
+ 'title',
+ 'video',
+ 'xmp',
+ ]);
+ let $e = null;
+ const qe = S({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
+ let Ue = null;
+ const ze = S({}, [
+ 'alt',
+ 'class',
+ 'for',
+ 'id',
+ 'label',
+ 'name',
+ 'pattern',
+ 'placeholder',
+ 'role',
+ 'summary',
+ 'title',
+ 'value',
+ 'style',
+ 'xmlns',
+ ]),
+ Ve = 'http://www.w3.org/1998/Math/MathML',
+ We = 'http://www.w3.org/2000/svg',
+ Je = 'http://www.w3.org/1999/xhtml';
+ let Ke = Je,
+ He = !1,
+ Ge = null;
+ const Ze = S({}, [Ve, We, Je], d);
+ let Ye;
+ const Xe = ['application/xhtml+xml', 'text/html'],
+ Qe = 'text/html';
+ let et,
+ tt = null;
+ const nt = i.createElement('form'),
+ rt = function (e) {
+ return e instanceof RegExp || e instanceof Function;
+ },
+ ot = function (e) {
+ if (!tt || tt !== e) {
+ if (
+ ((e && 'object' == typeof e) || (e = {}),
+ (e = _(e)),
+ (Ye = Ye = -1 === Xe.indexOf(e.PARSER_MEDIA_TYPE) ? Qe : e.PARSER_MEDIA_TYPE),
+ (et = 'application/xhtml+xml' === Ye ? d : f),
+ (de = 'ALLOWED_TAGS' in e ? S({}, e.ALLOWED_TAGS, et) : me),
+ (ge = 'ALLOWED_ATTR' in e ? S({}, e.ALLOWED_ATTR, et) : ye),
+ (Ge = 'ALLOWED_NAMESPACES' in e ? S({}, e.ALLOWED_NAMESPACES, d) : Ze),
+ (Ue = 'ADD_URI_SAFE_ATTR' in e ? S(_(ze), e.ADD_URI_SAFE_ATTR, et) : ze),
+ ($e = 'ADD_DATA_URI_TAGS' in e ? S(_(qe), e.ADD_DATA_URI_TAGS, et) : qe),
+ (Le = 'FORBID_CONTENTS' in e ? S({}, e.FORBID_CONTENTS, et) : Be),
+ (be = 'FORBID_TAGS' in e ? S({}, e.FORBID_TAGS, et) : {}),
+ (we = 'FORBID_ATTR' in e ? S({}, e.FORBID_ATTR, et) : {}),
+ (Fe = 'USE_PROFILES' in e && e.USE_PROFILES),
+ (Ee = !1 !== e.ALLOW_ARIA_ATTR),
+ (xe = !1 !== e.ALLOW_DATA_ATTR),
+ (Se = e.ALLOW_UNKNOWN_PROTOCOLS || !1),
+ (_e = !1 !== e.ALLOW_SELF_CLOSE_IN_ATTR),
+ (je = e.SAFE_FOR_TEMPLATES || !1),
+ (Oe = e.WHOLE_DOCUMENT || !1),
+ (Ce = e.RETURN_DOM || !1),
+ (Pe = e.RETURN_DOM_FRAGMENT || !1),
+ (Ne = e.RETURN_TRUSTED_TYPE || !1),
+ (Ae = e.FORCE_BODY || !1),
+ (Ie = !1 !== e.SANITIZE_DOM),
+ (Te = e.SANITIZE_NAMED_PROPS || !1),
+ (Me = !1 !== e.KEEP_CONTENT),
+ (De = e.IN_PLACE || !1),
+ (fe = e.ALLOWED_URI_REGEXP || U),
+ (Ke = e.NAMESPACE || Je),
+ (ve = e.CUSTOM_ELEMENT_HANDLING || {}),
+ e.CUSTOM_ELEMENT_HANDLING &&
+ rt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) &&
+ (ve.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),
+ e.CUSTOM_ELEMENT_HANDLING &&
+ rt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) &&
+ (ve.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),
+ e.CUSTOM_ELEMENT_HANDLING &&
+ 'boolean' == typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements &&
+ (ve.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),
+ je && (xe = !1),
+ Pe && (Ce = !0),
+ Fe &&
+ ((de = S({}, [...I])),
+ (ge = []),
+ !0 === Fe.html && (S(de, O), S(ge, T)),
+ !0 === Fe.svg && (S(de, k), S(ge, R), S(ge, D)),
+ !0 === Fe.svgFilters && (S(de, A), S(ge, R), S(ge, D)),
+ !0 === Fe.mathMl && (S(de, P), S(ge, M), S(ge, D))),
+ e.ADD_TAGS && (de === me && (de = _(de)), S(de, e.ADD_TAGS, et)),
+ e.ADD_ATTR && (ge === ye && (ge = _(ge)), S(ge, e.ADD_ATTR, et)),
+ e.ADD_URI_SAFE_ATTR && S(Ue, e.ADD_URI_SAFE_ATTR, et),
+ e.FORBID_CONTENTS && (Le === Be && (Le = _(Le)), S(Le, e.FORBID_CONTENTS, et)),
+ Me && (de['#text'] = !0),
+ Oe && S(de, ['html', 'head', 'body']),
+ de.table && (S(de, ['tbody']), delete be.tbody),
+ e.TRUSTED_TYPES_POLICY)
+ ) {
+ if ('function' != typeof e.TRUSTED_TYPES_POLICY.createHTML)
+ throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
+ if ('function' != typeof e.TRUSTED_TYPES_POLICY.createScriptURL)
+ throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
+ (X = e.TRUSTED_TYPES_POLICY), (Q = X.createHTML(''));
+ } else void 0 === X && (X = H($, o)), null !== X && 'string' == typeof Q && (Q = X.createHTML(''));
+ s && s(e), (tt = e);
+ }
+ },
+ st = S({}, ['mi', 'mo', 'mn', 'ms', 'mtext']),
+ it = S({}, ['foreignobject', 'desc', 'title', 'annotation-xml']),
+ at = S({}, ['title', 'style', 'font', 'a', 'script']),
+ lt = S({}, k);
+ S(lt, A), S(lt, C);
+ const ct = S({}, P);
+ S(ct, N);
+ const ut = function (e) {
+ let t = Y(e);
+ (t && t.tagName) || (t = { namespaceURI: Ke, tagName: 'template' });
+ const n = f(e.tagName),
+ r = f(t.tagName);
+ return (
+ !!Ge[e.namespaceURI] &&
+ (e.namespaceURI === We
+ ? t.namespaceURI === Je
+ ? 'svg' === n
+ : t.namespaceURI === Ve
+ ? 'svg' === n && ('annotation-xml' === r || st[r])
+ : Boolean(lt[n])
+ : e.namespaceURI === Ve
+ ? t.namespaceURI === Je
+ ? 'math' === n
+ : t.namespaceURI === We
+ ? 'math' === n && it[r]
+ : Boolean(ct[n])
+ : e.namespaceURI === Je
+ ? !(t.namespaceURI === We && !it[r]) &&
+ !(t.namespaceURI === Ve && !st[r]) &&
+ !ct[n] &&
+ (at[n] || !lt[n])
+ : !('application/xhtml+xml' !== Ye || !Ge[e.namespaceURI]))
+ );
+ },
+ pt = function (e) {
+ h(n.removed, { element: e });
+ try {
+ e.parentNode.removeChild(e);
+ } catch (t) {
+ e.remove();
+ }
+ },
+ ht = function (e, t) {
+ try {
+ h(n.removed, { attribute: t.getAttributeNode(e), from: t });
+ } catch (e) {
+ h(n.removed, { attribute: null, from: t });
+ }
+ if ((t.removeAttribute(e), 'is' === e && !ge[e]))
+ if (Ce || Pe)
+ try {
+ pt(t);
+ } catch (e) {}
+ else
+ try {
+ t.setAttribute(e, '');
+ } catch (e) {}
+ },
+ ft = function (e) {
+ let t, n;
+ if (Ae) e = '' + e;
+ else {
+ const t = m(e, /^[\r\n\t ]+/);
+ n = t && t[0];
+ }
+ 'application/xhtml+xml' === Ye &&
+ Ke === Je &&
+ (e = '' + e + '');
+ const r = X ? X.createHTML(e) : e;
+ if (Ke === Je)
+ try {
+ t = new B().parseFromString(r, Ye);
+ } catch (e) {}
+ if (!t || !t.documentElement) {
+ t = ee.createDocument(Ke, 'template', null);
+ try {
+ t.documentElement.innerHTML = He ? Q : r;
+ } catch (e) {}
+ }
+ const o = t.body || t.documentElement;
+ return (
+ e && n && o.insertBefore(i.createTextNode(n), o.childNodes[0] || null),
+ Ke === Je ? re.call(t, Oe ? 'html' : 'body')[0] : Oe ? t.documentElement : o
+ );
+ },
+ dt = function (e) {
+ return te.call(e.ownerDocument || e, e, x.SHOW_ELEMENT | x.SHOW_COMMENT | x.SHOW_TEXT, null, !1);
+ },
+ mt = function (e) {
+ return (
+ e instanceof L &&
+ ('string' != typeof e.nodeName ||
+ 'string' != typeof e.textContent ||
+ 'function' != typeof e.removeChild ||
+ !(e.attributes instanceof F) ||
+ 'function' != typeof e.removeAttribute ||
+ 'function' != typeof e.setAttribute ||
+ 'string' != typeof e.namespaceURI ||
+ 'function' != typeof e.insertBefore ||
+ 'function' != typeof e.hasChildNodes)
+ );
+ },
+ gt = function (e) {
+ return 'object' == typeof c
+ ? e instanceof c
+ : e && 'object' == typeof e && 'number' == typeof e.nodeType && 'string' == typeof e.nodeName;
+ },
+ yt = function (e, t, r) {
+ se[e] &&
+ u(se[e], (e) => {
+ e.call(n, t, r, tt);
+ });
+ },
+ vt = function (e) {
+ let t;
+ if ((yt('beforeSanitizeElements', e, null), mt(e))) return pt(e), !0;
+ const r = et(e.nodeName);
+ if (
+ (yt('uponSanitizeElement', e, { tagName: r, allowedTags: de }),
+ e.hasChildNodes() &&
+ !gt(e.firstElementChild) &&
+ (!gt(e.content) || !gt(e.content.firstElementChild)) &&
+ b(/<[/\w]/g, e.innerHTML) &&
+ b(/<[/\w]/g, e.textContent))
+ )
+ return pt(e), !0;
+ if (!de[r] || be[r]) {
+ if (!be[r] && wt(r)) {
+ if (ve.tagNameCheck instanceof RegExp && b(ve.tagNameCheck, r)) return !1;
+ if (ve.tagNameCheck instanceof Function && ve.tagNameCheck(r)) return !1;
+ }
+ if (Me && !Le[r]) {
+ const t = Y(e) || e.parentNode,
+ n = Z(e) || e.childNodes;
+ if (n && t) for (let r = n.length - 1; r >= 0; --r) t.insertBefore(z(n[r], !0), V(e));
+ }
+ return pt(e), !0;
+ }
+ return e instanceof E && !ut(e)
+ ? (pt(e), !0)
+ : ('noscript' !== r && 'noembed' !== r && 'noframes' !== r) ||
+ !b(/<\/no(script|embed|frames)/i, e.innerHTML)
+ ? (je &&
+ 3 === e.nodeType &&
+ ((t = e.textContent),
+ (t = g(t, ie, ' ')),
+ (t = g(t, ae, ' ')),
+ (t = g(t, le, ' ')),
+ e.textContent !== t && (h(n.removed, { element: e.cloneNode() }), (e.textContent = t))),
+ yt('afterSanitizeElements', e, null),
+ !1)
+ : (pt(e), !0);
+ },
+ bt = function (e, t, n) {
+ if (Ie && ('id' === t || 'name' === t) && (n in i || n in nt)) return !1;
+ if (xe && !we[t] && b(ce, t));
+ else if (Ee && b(ue, t));
+ else if (!ge[t] || we[t]) {
+ if (
+ !(
+ (wt(e) &&
+ ((ve.tagNameCheck instanceof RegExp && b(ve.tagNameCheck, e)) ||
+ (ve.tagNameCheck instanceof Function && ve.tagNameCheck(e))) &&
+ ((ve.attributeNameCheck instanceof RegExp && b(ve.attributeNameCheck, t)) ||
+ (ve.attributeNameCheck instanceof Function && ve.attributeNameCheck(t)))) ||
+ ('is' === t &&
+ ve.allowCustomizedBuiltInElements &&
+ ((ve.tagNameCheck instanceof RegExp && b(ve.tagNameCheck, n)) ||
+ (ve.tagNameCheck instanceof Function && ve.tagNameCheck(n))))
+ )
+ )
+ return !1;
+ } else if (Ue[t]);
+ else if (b(fe, g(n, he, '')));
+ else if (
+ ('src' !== t && 'xlink:href' !== t && 'href' !== t) ||
+ 'script' === e ||
+ 0 !== y(n, 'data:') ||
+ !$e[e]
+ )
+ if (Se && !b(pe, g(n, he, '')));
+ else if (n) return !1;
+ return !0;
+ },
+ wt = function (e) {
+ return e.indexOf('-') > 0;
+ },
+ Et = function (e) {
+ let t, r, o, s;
+ yt('beforeSanitizeAttributes', e, null);
+ const { attributes: i } = e;
+ if (!i) return;
+ const a = { attrName: '', attrValue: '', keepAttr: !0, allowedAttributes: ge };
+ for (s = i.length; s--; ) {
+ t = i[s];
+ const { name: l, namespaceURI: c } = t;
+ if (
+ ((r = 'value' === l ? t.value : v(t.value)),
+ (o = et(l)),
+ (a.attrName = o),
+ (a.attrValue = r),
+ (a.keepAttr = !0),
+ (a.forceKeepAttr = void 0),
+ yt('uponSanitizeAttribute', e, a),
+ (r = a.attrValue),
+ a.forceKeepAttr)
+ )
+ continue;
+ if ((ht(l, e), !a.keepAttr)) continue;
+ if (!_e && b(/\/>/i, r)) {
+ ht(l, e);
+ continue;
+ }
+ je && ((r = g(r, ie, ' ')), (r = g(r, ae, ' ')), (r = g(r, le, ' ')));
+ const u = et(e.nodeName);
+ if (bt(u, o, r)) {
+ if (
+ (!Te || ('id' !== o && 'name' !== o) || (ht(l, e), (r = Re + r)),
+ X && 'object' == typeof $ && 'function' == typeof $.getAttributeType)
+ )
+ if (c);
+ else
+ switch ($.getAttributeType(u, o)) {
+ case 'TrustedHTML':
+ r = X.createHTML(r);
+ break;
+ case 'TrustedScriptURL':
+ r = X.createScriptURL(r);
+ }
+ try {
+ c ? e.setAttributeNS(c, l, r) : e.setAttribute(l, r), p(n.removed);
+ } catch (e) {}
+ }
+ }
+ yt('afterSanitizeAttributes', e, null);
+ },
+ xt = function e(t) {
+ let n;
+ const r = dt(t);
+ for (yt('beforeSanitizeShadowDOM', t, null); (n = r.nextNode()); )
+ yt('uponSanitizeShadowNode', n, null), vt(n) || (n.content instanceof a && e(n.content), Et(n));
+ yt('afterSanitizeShadowDOM', t, null);
+ };
+ return (
+ (n.sanitize = function (e) {
+ let t,
+ o,
+ s,
+ i,
+ l = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
+ if (((He = !e), He && (e = '\x3c!--\x3e'), 'string' != typeof e && !gt(e))) {
+ if ('function' != typeof e.toString) throw w('toString is not a function');
+ if ('string' != typeof (e = e.toString())) throw w('dirty is not a string, aborting');
+ }
+ if (!n.isSupported) return e;
+ if ((ke || ot(l), (n.removed = []), 'string' == typeof e && (De = !1), De)) {
+ if (e.nodeName) {
+ const t = et(e.nodeName);
+ if (!de[t] || be[t]) throw w('root node is forbidden and cannot be sanitized in-place');
+ }
+ } else if (e instanceof c)
+ (t = ft('\x3c!----\x3e')),
+ (o = t.ownerDocument.importNode(e, !0)),
+ (1 === o.nodeType && 'BODY' === o.nodeName) || 'HTML' === o.nodeName ? (t = o) : t.appendChild(o);
+ else {
+ if (!Ce && !je && !Oe && -1 === e.indexOf('<')) return X && Ne ? X.createHTML(e) : e;
+ if (((t = ft(e)), !t)) return Ce ? null : Ne ? Q : '';
+ }
+ t && Ae && pt(t.firstChild);
+ const u = dt(De ? e : t);
+ for (; (s = u.nextNode()); ) vt(s) || (s.content instanceof a && xt(s.content), Et(s));
+ if (De) return e;
+ if (Ce) {
+ if (Pe) for (i = ne.call(t.ownerDocument); t.firstChild; ) i.appendChild(t.firstChild);
+ else i = t;
+ return (ge.shadowroot || ge.shadowrootmode) && (i = oe.call(r, i, !0)), i;
+ }
+ let p = Oe ? t.outerHTML : t.innerHTML;
+ return (
+ Oe &&
+ de['!doctype'] &&
+ t.ownerDocument &&
+ t.ownerDocument.doctype &&
+ t.ownerDocument.doctype.name &&
+ b(W, t.ownerDocument.doctype.name) &&
+ (p = '\n' + p),
+ je && ((p = g(p, ie, ' ')), (p = g(p, ae, ' ')), (p = g(p, le, ' '))),
+ X && Ne ? X.createHTML(p) : p
+ );
+ }),
+ (n.setConfig = function (e) {
+ ot(e), (ke = !0);
+ }),
+ (n.clearConfig = function () {
+ (tt = null), (ke = !1);
+ }),
+ (n.isValidAttribute = function (e, t, n) {
+ tt || ot({});
+ const r = et(e),
+ o = et(t);
+ return bt(r, o, n);
+ }),
+ (n.addHook = function (e, t) {
+ 'function' == typeof t && ((se[e] = se[e] || []), h(se[e], t));
+ }),
+ (n.removeHook = function (e) {
+ if (se[e]) return p(se[e]);
+ }),
+ (n.removeHooks = function (e) {
+ se[e] && (se[e] = []);
+ }),
+ (n.removeAllHooks = function () {
+ se = {};
+ }),
+ n
+ );
+ }
+ return G();
+ })();
+ },
+ 69450: (e) => {
+ 'use strict';
+ class t {
+ constructor(e, t) {
+ (this.low = e), (this.high = t), (this.length = 1 + t - e);
+ }
+ overlaps(e) {
+ return !(this.high < e.low || this.low > e.high);
+ }
+ touches(e) {
+ return !(this.high + 1 < e.low || this.low - 1 > e.high);
+ }
+ add(e) {
+ return new t(Math.min(this.low, e.low), Math.max(this.high, e.high));
+ }
+ subtract(e) {
+ return e.low <= this.low && e.high >= this.high
+ ? []
+ : e.low > this.low && e.high < this.high
+ ? [new t(this.low, e.low - 1), new t(e.high + 1, this.high)]
+ : e.low <= this.low
+ ? [new t(e.high + 1, this.high)]
+ : [new t(this.low, e.low - 1)];
+ }
+ toString() {
+ return this.low == this.high ? this.low.toString() : this.low + '-' + this.high;
+ }
+ }
+ class n {
+ constructor(e, t) {
+ (this.ranges = []), (this.length = 0), null != e && this.add(e, t);
+ }
+ _update_length() {
+ this.length = this.ranges.reduce((e, t) => e + t.length, 0);
+ }
+ add(e, r) {
+ var o = (e) => {
+ for (var t = 0; t < this.ranges.length && !e.touches(this.ranges[t]); ) t++;
+ for (var n = this.ranges.slice(0, t); t < this.ranges.length && e.touches(this.ranges[t]); )
+ (e = e.add(this.ranges[t])), t++;
+ n.push(e), (this.ranges = n.concat(this.ranges.slice(t))), this._update_length();
+ };
+ return e instanceof n ? e.ranges.forEach(o) : (null == r && (r = e), o(new t(e, r))), this;
+ }
+ subtract(e, r) {
+ var o = (e) => {
+ for (var t = 0; t < this.ranges.length && !e.overlaps(this.ranges[t]); ) t++;
+ for (var n = this.ranges.slice(0, t); t < this.ranges.length && e.overlaps(this.ranges[t]); )
+ (n = n.concat(this.ranges[t].subtract(e))), t++;
+ (this.ranges = n.concat(this.ranges.slice(t))), this._update_length();
+ };
+ return e instanceof n ? e.ranges.forEach(o) : (null == r && (r = e), o(new t(e, r))), this;
+ }
+ intersect(e, r) {
+ var o = [],
+ s = (e) => {
+ for (var n = 0; n < this.ranges.length && !e.overlaps(this.ranges[n]); ) n++;
+ for (; n < this.ranges.length && e.overlaps(this.ranges[n]); ) {
+ var r = Math.max(this.ranges[n].low, e.low),
+ s = Math.min(this.ranges[n].high, e.high);
+ o.push(new t(r, s)), n++;
+ }
+ };
+ return (
+ e instanceof n ? e.ranges.forEach(s) : (null == r && (r = e), s(new t(e, r))),
+ (this.ranges = o),
+ this._update_length(),
+ this
+ );
+ }
+ index(e) {
+ for (var t = 0; t < this.ranges.length && this.ranges[t].length <= e; ) (e -= this.ranges[t].length), t++;
+ return this.ranges[t].low + e;
+ }
+ toString() {
+ return '[ ' + this.ranges.join(', ') + ' ]';
+ }
+ clone() {
+ return new n(this);
+ }
+ numbers() {
+ return this.ranges.reduce((e, t) => {
+ for (var n = t.low; n <= t.high; ) e.push(n), n++;
+ return e;
+ }, []);
+ }
+ subranges() {
+ return this.ranges.map((e) => ({ low: e.low, high: e.high, length: 1 + e.high - e.low }));
+ }
+ }
+ e.exports = n;
+ },
+ 17187: (e) => {
+ 'use strict';
+ var t,
+ n = 'object' == typeof Reflect ? Reflect : null,
+ r =
+ n && 'function' == typeof n.apply
+ ? n.apply
+ : function (e, t, n) {
+ return Function.prototype.apply.call(e, t, n);
+ };
+ t =
+ n && 'function' == typeof n.ownKeys
+ ? n.ownKeys
+ : Object.getOwnPropertySymbols
+ ? function (e) {
+ return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
+ }
+ : function (e) {
+ return Object.getOwnPropertyNames(e);
+ };
+ var o =
+ Number.isNaN ||
+ function (e) {
+ return e != e;
+ };
+ function s() {
+ s.init.call(this);
+ }
+ (e.exports = s),
+ (e.exports.once = function (e, t) {
+ return new Promise(function (n, r) {
+ function o(n) {
+ e.removeListener(t, s), r(n);
+ }
+ function s() {
+ 'function' == typeof e.removeListener && e.removeListener('error', o), n([].slice.call(arguments));
+ }
+ m(e, t, s, { once: !0 }),
+ 'error' !== t &&
+ (function (e, t, n) {
+ 'function' == typeof e.on && m(e, 'error', t, n);
+ })(e, o, { once: !0 });
+ });
+ }),
+ (s.EventEmitter = s),
+ (s.prototype._events = void 0),
+ (s.prototype._eventsCount = 0),
+ (s.prototype._maxListeners = void 0);
+ var i = 10;
+ function a(e) {
+ if ('function' != typeof e)
+ throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
+ }
+ function l(e) {
+ return void 0 === e._maxListeners ? s.defaultMaxListeners : e._maxListeners;
+ }
+ function c(e, t, n, r) {
+ var o, s, i, c;
+ if (
+ (a(n),
+ void 0 === (s = e._events)
+ ? ((s = e._events = Object.create(null)), (e._eventsCount = 0))
+ : (void 0 !== s.newListener && (e.emit('newListener', t, n.listener ? n.listener : n), (s = e._events)),
+ (i = s[t])),
+ void 0 === i)
+ )
+ (i = s[t] = n), ++e._eventsCount;
+ else if (
+ ('function' == typeof i ? (i = s[t] = r ? [n, i] : [i, n]) : r ? i.unshift(n) : i.push(n),
+ (o = l(e)) > 0 && i.length > o && !i.warned)
+ ) {
+ i.warned = !0;
+ var u = new Error(
+ 'Possible EventEmitter memory leak detected. ' +
+ i.length +
+ ' ' +
+ String(t) +
+ ' listeners added. Use emitter.setMaxListeners() to increase limit'
+ );
+ (u.name = 'MaxListenersExceededWarning'),
+ (u.emitter = e),
+ (u.type = t),
+ (u.count = i.length),
+ (c = u),
+ console && console.warn && console.warn(c);
+ }
+ return e;
+ }
+ function u() {
+ if (!this.fired)
+ return (
+ this.target.removeListener(this.type, this.wrapFn),
+ (this.fired = !0),
+ 0 === arguments.length ? this.listener.call(this.target) : this.listener.apply(this.target, arguments)
+ );
+ }
+ function p(e, t, n) {
+ var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n },
+ o = u.bind(r);
+ return (o.listener = n), (r.wrapFn = o), o;
+ }
+ function h(e, t, n) {
+ var r = e._events;
+ if (void 0 === r) return [];
+ var o = r[t];
+ return void 0 === o
+ ? []
+ : 'function' == typeof o
+ ? n
+ ? [o.listener || o]
+ : [o]
+ : n
+ ? (function (e) {
+ for (var t = new Array(e.length), n = 0; n < t.length; ++n) t[n] = e[n].listener || e[n];
+ return t;
+ })(o)
+ : d(o, o.length);
+ }
+ function f(e) {
+ var t = this._events;
+ if (void 0 !== t) {
+ var n = t[e];
+ if ('function' == typeof n) return 1;
+ if (void 0 !== n) return n.length;
+ }
+ return 0;
+ }
+ function d(e, t) {
+ for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r];
+ return n;
+ }
+ function m(e, t, n, r) {
+ if ('function' == typeof e.on) r.once ? e.once(t, n) : e.on(t, n);
+ else {
+ if ('function' != typeof e.addEventListener)
+ throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
+ e.addEventListener(t, function o(s) {
+ r.once && e.removeEventListener(t, o), n(s);
+ });
+ }
+ }
+ Object.defineProperty(s, 'defaultMaxListeners', {
+ enumerable: !0,
+ get: function () {
+ return i;
+ },
+ set: function (e) {
+ if ('number' != typeof e || e < 0 || o(e))
+ throw new RangeError(
+ 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
+ e +
+ '.'
+ );
+ i = e;
+ },
+ }),
+ (s.init = function () {
+ (void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events) ||
+ ((this._events = Object.create(null)), (this._eventsCount = 0)),
+ (this._maxListeners = this._maxListeners || void 0);
+ }),
+ (s.prototype.setMaxListeners = function (e) {
+ if ('number' != typeof e || e < 0 || o(e))
+ throw new RangeError(
+ 'The value of "n" is out of range. It must be a non-negative number. Received ' + e + '.'
+ );
+ return (this._maxListeners = e), this;
+ }),
+ (s.prototype.getMaxListeners = function () {
+ return l(this);
+ }),
+ (s.prototype.emit = function (e) {
+ for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
+ var o = 'error' === e,
+ s = this._events;
+ if (void 0 !== s) o = o && void 0 === s.error;
+ else if (!o) return !1;
+ if (o) {
+ var i;
+ if ((t.length > 0 && (i = t[0]), i instanceof Error)) throw i;
+ var a = new Error('Unhandled error.' + (i ? ' (' + i.message + ')' : ''));
+ throw ((a.context = i), a);
+ }
+ var l = s[e];
+ if (void 0 === l) return !1;
+ if ('function' == typeof l) r(l, this, t);
+ else {
+ var c = l.length,
+ u = d(l, c);
+ for (n = 0; n < c; ++n) r(u[n], this, t);
+ }
+ return !0;
+ }),
+ (s.prototype.addListener = function (e, t) {
+ return c(this, e, t, !1);
+ }),
+ (s.prototype.on = s.prototype.addListener),
+ (s.prototype.prependListener = function (e, t) {
+ return c(this, e, t, !0);
+ }),
+ (s.prototype.once = function (e, t) {
+ return a(t), this.on(e, p(this, e, t)), this;
+ }),
+ (s.prototype.prependOnceListener = function (e, t) {
+ return a(t), this.prependListener(e, p(this, e, t)), this;
+ }),
+ (s.prototype.removeListener = function (e, t) {
+ var n, r, o, s, i;
+ if ((a(t), void 0 === (r = this._events))) return this;
+ if (void 0 === (n = r[e])) return this;
+ if (n === t || n.listener === t)
+ 0 == --this._eventsCount
+ ? (this._events = Object.create(null))
+ : (delete r[e], r.removeListener && this.emit('removeListener', e, n.listener || t));
+ else if ('function' != typeof n) {
+ for (o = -1, s = n.length - 1; s >= 0; s--)
+ if (n[s] === t || n[s].listener === t) {
+ (i = n[s].listener), (o = s);
+ break;
+ }
+ if (o < 0) return this;
+ 0 === o
+ ? n.shift()
+ : (function (e, t) {
+ for (; t + 1 < e.length; t++) e[t] = e[t + 1];
+ e.pop();
+ })(n, o),
+ 1 === n.length && (r[e] = n[0]),
+ void 0 !== r.removeListener && this.emit('removeListener', e, i || t);
+ }
+ return this;
+ }),
+ (s.prototype.off = s.prototype.removeListener),
+ (s.prototype.removeAllListeners = function (e) {
+ var t, n, r;
+ if (void 0 === (n = this._events)) return this;
+ if (void 0 === n.removeListener)
+ return (
+ 0 === arguments.length
+ ? ((this._events = Object.create(null)), (this._eventsCount = 0))
+ : void 0 !== n[e] &&
+ (0 == --this._eventsCount ? (this._events = Object.create(null)) : delete n[e]),
+ this
+ );
+ if (0 === arguments.length) {
+ var o,
+ s = Object.keys(n);
+ for (r = 0; r < s.length; ++r) 'removeListener' !== (o = s[r]) && this.removeAllListeners(o);
+ return (
+ this.removeAllListeners('removeListener'),
+ (this._events = Object.create(null)),
+ (this._eventsCount = 0),
+ this
+ );
+ }
+ if ('function' == typeof (t = n[e])) this.removeListener(e, t);
+ else if (void 0 !== t) for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]);
+ return this;
+ }),
+ (s.prototype.listeners = function (e) {
+ return h(this, e, !0);
+ }),
+ (s.prototype.rawListeners = function (e) {
+ return h(this, e, !1);
+ }),
+ (s.listenerCount = function (e, t) {
+ return 'function' == typeof e.listenerCount ? e.listenerCount(t) : f.call(e, t);
+ }),
+ (s.prototype.listenerCount = f),
+ (s.prototype.eventNames = function () {
+ return this._eventsCount > 0 ? t(this._events) : [];
+ });
+ },
+ 21102: (e, t, n) => {
+ 'use strict';
+ var r = n(46291),
+ o = s(Error);
+ function s(e) {
+ return (t.displayName = e.displayName || e.name), t;
+ function t(t) {
+ return t && (t = r.apply(null, arguments)), new e(t);
+ }
+ }
+ (e.exports = o),
+ (o.eval = s(EvalError)),
+ (o.range = s(RangeError)),
+ (o.reference = s(ReferenceError)),
+ (o.syntax = s(SyntaxError)),
+ (o.type = s(TypeError)),
+ (o.uri = s(URIError)),
+ (o.create = s);
+ },
+ 46291: (e) => {
+ !(function () {
+ var t;
+ function n(e) {
+ for (
+ var t,
+ n,
+ r,
+ o,
+ s = 1,
+ i = [].slice.call(arguments),
+ a = 0,
+ l = e.length,
+ c = '',
+ u = !1,
+ p = !1,
+ h = function () {
+ return i[s++];
+ },
+ f = function () {
+ for (var n = ''; /\d/.test(e[a]); ) (n += e[a++]), (t = e[a]);
+ return n.length > 0 ? parseInt(n) : null;
+ };
+ a < l;
+ ++a
+ )
+ if (((t = e[a]), u))
+ switch (
+ ((u = !1),
+ '.' == t
+ ? ((p = !1), (t = e[++a]))
+ : '0' == t && '.' == e[a + 1]
+ ? ((p = !0), (t = e[(a += 2)]))
+ : (p = !0),
+ (o = f()),
+ t)
+ ) {
+ case 'b':
+ c += parseInt(h(), 10).toString(2);
+ break;
+ case 'c':
+ c +=
+ 'string' == typeof (n = h()) || n instanceof String ? n : String.fromCharCode(parseInt(n, 10));
+ break;
+ case 'd':
+ c += parseInt(h(), 10);
+ break;
+ case 'f':
+ (r = String(parseFloat(h()).toFixed(o || 6))), (c += p ? r : r.replace(/^0/, ''));
+ break;
+ case 'j':
+ c += JSON.stringify(h());
+ break;
+ case 'o':
+ c += '0' + parseInt(h(), 10).toString(8);
+ break;
+ case 's':
+ c += h();
+ break;
+ case 'x':
+ c += '0x' + parseInt(h(), 10).toString(16);
+ break;
+ case 'X':
+ c += '0x' + parseInt(h(), 10).toString(16).toUpperCase();
+ break;
+ default:
+ c += t;
+ }
+ else '%' === t ? (u = !0) : (c += t);
+ return c;
+ }
+ ((t = e.exports = n).format = n),
+ (t.vsprintf = function (e, t) {
+ return n.apply(null, [e].concat(t));
+ }),
+ 'undefined' != typeof console &&
+ 'function' == typeof console.log &&
+ (t.printf = function () {
+ console.log(n.apply(null, arguments));
+ });
+ })();
+ },
+ 17648: (e) => {
+ 'use strict';
+ var t = Array.prototype.slice,
+ n = Object.prototype.toString;
+ e.exports = function (e) {
+ var r = this;
+ if ('function' != typeof r || '[object Function]' !== n.call(r))
+ throw new TypeError('Function.prototype.bind called on incompatible ' + r);
+ for (var o, s = t.call(arguments, 1), i = Math.max(0, r.length - s.length), a = [], l = 0; l < i; l++)
+ a.push('$' + l);
+ if (
+ ((o = Function(
+ 'binder',
+ 'return function (' + a.join(',') + '){ return binder.apply(this,arguments); }'
+ )(function () {
+ if (this instanceof o) {
+ var n = r.apply(this, s.concat(t.call(arguments)));
+ return Object(n) === n ? n : this;
+ }
+ return r.apply(e, s.concat(t.call(arguments)));
+ })),
+ r.prototype)
+ ) {
+ var c = function () {};
+ (c.prototype = r.prototype), (o.prototype = new c()), (c.prototype = null);
+ }
+ return o;
+ };
+ },
+ 58612: (e, t, n) => {
+ 'use strict';
+ var r = n(17648);
+ e.exports = Function.prototype.bind || r;
+ },
+ 40210: (e, t, n) => {
+ 'use strict';
+ var r,
+ o = SyntaxError,
+ s = Function,
+ i = TypeError,
+ a = function (e) {
+ try {
+ return s('"use strict"; return (' + e + ').constructor;')();
+ } catch (e) {}
+ },
+ l = Object.getOwnPropertyDescriptor;
+ if (l)
+ try {
+ l({}, '');
+ } catch (e) {
+ l = null;
+ }
+ var c = function () {
+ throw new i();
+ },
+ u = l
+ ? (function () {
+ try {
+ return c;
+ } catch (e) {
+ try {
+ return l(arguments, 'callee').get;
+ } catch (e) {
+ return c;
+ }
+ }
+ })()
+ : c,
+ p = n(41405)(),
+ h = n(28185)(),
+ f =
+ Object.getPrototypeOf ||
+ (h
+ ? function (e) {
+ return e.__proto__;
+ }
+ : null),
+ d = {},
+ m = 'undefined' != typeof Uint8Array && f ? f(Uint8Array) : r,
+ g = {
+ '%AggregateError%': 'undefined' == typeof AggregateError ? r : AggregateError,
+ '%Array%': Array,
+ '%ArrayBuffer%': 'undefined' == typeof ArrayBuffer ? r : ArrayBuffer,
+ '%ArrayIteratorPrototype%': p && f ? f([][Symbol.iterator]()) : r,
+ '%AsyncFromSyncIteratorPrototype%': r,
+ '%AsyncFunction%': d,
+ '%AsyncGenerator%': d,
+ '%AsyncGeneratorFunction%': d,
+ '%AsyncIteratorPrototype%': d,
+ '%Atomics%': 'undefined' == typeof Atomics ? r : Atomics,
+ '%BigInt%': 'undefined' == typeof BigInt ? r : BigInt,
+ '%BigInt64Array%': 'undefined' == typeof BigInt64Array ? r : BigInt64Array,
+ '%BigUint64Array%': 'undefined' == typeof BigUint64Array ? r : BigUint64Array,
+ '%Boolean%': Boolean,
+ '%DataView%': 'undefined' == typeof DataView ? r : DataView,
+ '%Date%': Date,
+ '%decodeURI%': decodeURI,
+ '%decodeURIComponent%': decodeURIComponent,
+ '%encodeURI%': encodeURI,
+ '%encodeURIComponent%': encodeURIComponent,
+ '%Error%': Error,
+ '%eval%': eval,
+ '%EvalError%': EvalError,
+ '%Float32Array%': 'undefined' == typeof Float32Array ? r : Float32Array,
+ '%Float64Array%': 'undefined' == typeof Float64Array ? r : Float64Array,
+ '%FinalizationRegistry%': 'undefined' == typeof FinalizationRegistry ? r : FinalizationRegistry,
+ '%Function%': s,
+ '%GeneratorFunction%': d,
+ '%Int8Array%': 'undefined' == typeof Int8Array ? r : Int8Array,
+ '%Int16Array%': 'undefined' == typeof Int16Array ? r : Int16Array,
+ '%Int32Array%': 'undefined' == typeof Int32Array ? r : Int32Array,
+ '%isFinite%': isFinite,
+ '%isNaN%': isNaN,
+ '%IteratorPrototype%': p && f ? f(f([][Symbol.iterator]())) : r,
+ '%JSON%': 'object' == typeof JSON ? JSON : r,
+ '%Map%': 'undefined' == typeof Map ? r : Map,
+ '%MapIteratorPrototype%': 'undefined' != typeof Map && p && f ? f(new Map()[Symbol.iterator]()) : r,
+ '%Math%': Math,
+ '%Number%': Number,
+ '%Object%': Object,
+ '%parseFloat%': parseFloat,
+ '%parseInt%': parseInt,
+ '%Promise%': 'undefined' == typeof Promise ? r : Promise,
+ '%Proxy%': 'undefined' == typeof Proxy ? r : Proxy,
+ '%RangeError%': RangeError,
+ '%ReferenceError%': ReferenceError,
+ '%Reflect%': 'undefined' == typeof Reflect ? r : Reflect,
+ '%RegExp%': RegExp,
+ '%Set%': 'undefined' == typeof Set ? r : Set,
+ '%SetIteratorPrototype%': 'undefined' != typeof Set && p && f ? f(new Set()[Symbol.iterator]()) : r,
+ '%SharedArrayBuffer%': 'undefined' == typeof SharedArrayBuffer ? r : SharedArrayBuffer,
+ '%String%': String,
+ '%StringIteratorPrototype%': p && f ? f(''[Symbol.iterator]()) : r,
+ '%Symbol%': p ? Symbol : r,
+ '%SyntaxError%': o,
+ '%ThrowTypeError%': u,
+ '%TypedArray%': m,
+ '%TypeError%': i,
+ '%Uint8Array%': 'undefined' == typeof Uint8Array ? r : Uint8Array,
+ '%Uint8ClampedArray%': 'undefined' == typeof Uint8ClampedArray ? r : Uint8ClampedArray,
+ '%Uint16Array%': 'undefined' == typeof Uint16Array ? r : Uint16Array,
+ '%Uint32Array%': 'undefined' == typeof Uint32Array ? r : Uint32Array,
+ '%URIError%': URIError,
+ '%WeakMap%': 'undefined' == typeof WeakMap ? r : WeakMap,
+ '%WeakRef%': 'undefined' == typeof WeakRef ? r : WeakRef,
+ '%WeakSet%': 'undefined' == typeof WeakSet ? r : WeakSet,
+ };
+ if (f)
+ try {
+ null.error;
+ } catch (e) {
+ var y = f(f(e));
+ g['%Error.prototype%'] = y;
+ }
+ var v = function e(t) {
+ var n;
+ if ('%AsyncFunction%' === t) n = a('async function () {}');
+ else if ('%GeneratorFunction%' === t) n = a('function* () {}');
+ else if ('%AsyncGeneratorFunction%' === t) n = a('async function* () {}');
+ else if ('%AsyncGenerator%' === t) {
+ var r = e('%AsyncGeneratorFunction%');
+ r && (n = r.prototype);
+ } else if ('%AsyncIteratorPrototype%' === t) {
+ var o = e('%AsyncGenerator%');
+ o && f && (n = f(o.prototype));
+ }
+ return (g[t] = n), n;
+ },
+ b = {
+ '%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'],
+ },
+ w = n(58612),
+ E = n(17642),
+ x = w.call(Function.call, Array.prototype.concat),
+ S = w.call(Function.apply, Array.prototype.splice),
+ _ = w.call(Function.call, String.prototype.replace),
+ j = w.call(Function.call, String.prototype.slice),
+ O = w.call(Function.call, RegExp.prototype.exec),
+ k = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
+ A = /\\(\\)?/g,
+ C = function (e, t) {
+ var n,
+ r = e;
+ if ((E(b, r) && (r = '%' + (n = b[r])[0] + '%'), E(g, r))) {
+ var s = g[r];
+ if ((s === d && (s = v(r)), void 0 === s && !t))
+ throw new i('intrinsic ' + e + ' exists, but is not available. Please file an issue!');
+ return { alias: n, name: r, value: s };
+ }
+ throw new o('intrinsic ' + e + ' does not exist!');
+ };
+ e.exports = function (e, t) {
+ if ('string' != typeof e || 0 === e.length) throw new i('intrinsic name must be a non-empty string');
+ if (arguments.length > 1 && 'boolean' != typeof t) throw new i('"allowMissing" argument must be a boolean');
+ if (null === O(/^%?[^%]*%?$/, e))
+ throw new o('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
+ var n = (function (e) {
+ var t = j(e, 0, 1),
+ n = j(e, -1);
+ if ('%' === t && '%' !== n) throw new o('invalid intrinsic syntax, expected closing `%`');
+ if ('%' === n && '%' !== t) throw new o('invalid intrinsic syntax, expected opening `%`');
+ var r = [];
+ return (
+ _(e, k, function (e, t, n, o) {
+ r[r.length] = n ? _(o, A, '$1') : t || e;
+ }),
+ r
+ );
+ })(e),
+ r = n.length > 0 ? n[0] : '',
+ s = C('%' + r + '%', t),
+ a = s.name,
+ c = s.value,
+ u = !1,
+ p = s.alias;
+ p && ((r = p[0]), S(n, x([0, 1], p)));
+ for (var h = 1, f = !0; h < n.length; h += 1) {
+ var d = n[h],
+ m = j(d, 0, 1),
+ y = j(d, -1);
+ if (('"' === m || "'" === m || '`' === m || '"' === y || "'" === y || '`' === y) && m !== y)
+ throw new o('property names with quotes must have matching quotes');
+ if ((('constructor' !== d && f) || (u = !0), E(g, (a = '%' + (r += '.' + d) + '%')))) c = g[a];
+ else if (null != c) {
+ if (!(d in c)) {
+ if (!t) throw new i('base intrinsic for ' + e + ' exists, but the property is not available.');
+ return;
+ }
+ if (l && h + 1 >= n.length) {
+ var v = l(c, d);
+ c = (f = !!v) && 'get' in v && !('originalValue' in v.get) ? v.get : c[d];
+ } else (f = E(c, d)), (c = c[d]);
+ f && !u && (g[a] = c);
+ }
+ }
+ return c;
+ };
+ },
+ 28185: (e) => {
+ 'use strict';
+ var t = { foo: {} },
+ n = Object;
+ e.exports = function () {
+ return { __proto__: t }.foo === t.foo && !({ __proto__: null } instanceof n);
+ };
+ },
+ 41405: (e, t, n) => {
+ 'use strict';
+ var r = 'undefined' != typeof Symbol && Symbol,
+ o = n(55419);
+ e.exports = function () {
+ return (
+ 'function' == typeof r &&
+ 'function' == typeof Symbol &&
+ 'symbol' == typeof r('foo') &&
+ 'symbol' == typeof Symbol('bar') &&
+ o()
+ );
+ };
+ },
+ 55419: (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'),
+ n = 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(n)) 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 r = Object.getOwnPropertySymbols(e);
+ if (1 !== r.length || r[0] !== t) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1;
+ if ('function' == typeof Object.getOwnPropertyDescriptor) {
+ var o = Object.getOwnPropertyDescriptor(e, t);
+ if (42 !== o.value || !0 !== o.enumerable) return !1;
+ }
+ return !0;
+ };
+ },
+ 17642: (e, t, n) => {
+ 'use strict';
+ var r = n(58612);
+ e.exports = r.call(Function.call, Object.prototype.hasOwnProperty);
+ },
+ 47802: (e) => {
+ function t(e) {
+ return (
+ e instanceof Map
+ ? (e.clear =
+ e.delete =
+ e.set =
+ function () {
+ throw new Error('map is read-only');
+ })
+ : e instanceof Set &&
+ (e.add =
+ e.clear =
+ e.delete =
+ function () {
+ throw new Error('set is read-only');
+ }),
+ Object.freeze(e),
+ Object.getOwnPropertyNames(e).forEach(function (n) {
+ var r = e[n];
+ 'object' != typeof r || Object.isFrozen(r) || t(r);
+ }),
+ e
+ );
+ }
+ var n = t,
+ r = t;
+ n.default = r;
+ class o {
+ constructor(e) {
+ void 0 === e.data && (e.data = {}), (this.data = e.data), (this.isMatchIgnored = !1);
+ }
+ ignoreMatch() {
+ this.isMatchIgnored = !0;
+ }
+ }
+ function s(e) {
+ return e
+ .replace(/&/g, '&')
+ .replace(//g, '>')
+ .replace(/"/g, '"')
+ .replace(/'/g, ''');
+ }
+ function i(e, ...t) {
+ const n = Object.create(null);
+ for (const t in e) n[t] = e[t];
+ return (
+ t.forEach(function (e) {
+ for (const t in e) n[t] = e[t];
+ }),
+ n
+ );
+ }
+ const a = (e) => !!e.kind;
+ class l {
+ constructor(e, t) {
+ (this.buffer = ''), (this.classPrefix = t.classPrefix), e.walk(this);
+ }
+ addText(e) {
+ this.buffer += s(e);
+ }
+ openNode(e) {
+ if (!a(e)) return;
+ let t = e.kind;
+ e.sublanguage || (t = `${this.classPrefix}${t}`), this.span(t);
+ }
+ closeNode(e) {
+ a(e) && (this.buffer += '');
+ }
+ value() {
+ return this.buffer;
+ }
+ span(e) {
+ this.buffer += ``;
+ }
+ }
+ class c {
+ constructor() {
+ (this.rootNode = { children: [] }), (this.stack = [this.rootNode]);
+ }
+ get top() {
+ return this.stack[this.stack.length - 1];
+ }
+ get root() {
+ return this.rootNode;
+ }
+ add(e) {
+ this.top.children.push(e);
+ }
+ openNode(e) {
+ const t = { kind: e, children: [] };
+ this.add(t), this.stack.push(t);
+ }
+ closeNode() {
+ if (this.stack.length > 1) return this.stack.pop();
+ }
+ closeAllNodes() {
+ for (; this.closeNode(); );
+ }
+ toJSON() {
+ return JSON.stringify(this.rootNode, null, 4);
+ }
+ walk(e) {
+ return this.constructor._walk(e, this.rootNode);
+ }
+ static _walk(e, t) {
+ return (
+ 'string' == typeof t
+ ? e.addText(t)
+ : t.children && (e.openNode(t), t.children.forEach((t) => this._walk(e, t)), e.closeNode(t)),
+ e
+ );
+ }
+ static _collapse(e) {
+ 'string' != typeof e &&
+ e.children &&
+ (e.children.every((e) => 'string' == typeof e)
+ ? (e.children = [e.children.join('')])
+ : e.children.forEach((e) => {
+ c._collapse(e);
+ }));
+ }
+ }
+ class u extends c {
+ constructor(e) {
+ super(), (this.options = e);
+ }
+ addKeyword(e, t) {
+ '' !== e && (this.openNode(t), this.addText(e), this.closeNode());
+ }
+ addText(e) {
+ '' !== e && this.add(e);
+ }
+ addSublanguage(e, t) {
+ const n = e.root;
+ (n.kind = t), (n.sublanguage = !0), this.add(n);
+ }
+ toHTML() {
+ return new l(this, this.options).value();
+ }
+ finalize() {
+ return !0;
+ }
+ }
+ function p(e) {
+ return e ? ('string' == typeof e ? e : e.source) : null;
+ }
+ const h = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
+ const f = '[a-zA-Z]\\w*',
+ d = '[a-zA-Z_]\\w*',
+ m = '\\b\\d+(\\.\\d+)?',
+ g = '(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)',
+ y = '\\b(0b[01]+)',
+ v = { begin: '\\\\[\\s\\S]', relevance: 0 },
+ b = { className: 'string', begin: "'", end: "'", illegal: '\\n', contains: [v] },
+ w = { className: 'string', begin: '"', end: '"', illegal: '\\n', contains: [v] },
+ E = {
+ begin:
+ /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/,
+ },
+ x = function (e, t, n = {}) {
+ const r = i({ className: 'comment', begin: e, end: t, contains: [] }, n);
+ return (
+ r.contains.push(E),
+ r.contains.push({
+ className: 'doctag',
+ begin: '(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):',
+ relevance: 0,
+ }),
+ r
+ );
+ },
+ S = x('//', '$'),
+ _ = x('/\\*', '\\*/'),
+ j = x('#', '$'),
+ O = { className: 'number', begin: m, relevance: 0 },
+ k = { className: 'number', begin: g, relevance: 0 },
+ A = { className: 'number', begin: y, relevance: 0 },
+ C = {
+ className: 'number',
+ begin:
+ m + '(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?',
+ relevance: 0,
+ },
+ P = {
+ begin: /(?=\/[^/\n]*\/)/,
+ contains: [
+ {
+ className: 'regexp',
+ begin: /\//,
+ end: /\/[gimuy]*/,
+ illegal: /\n/,
+ contains: [v, { begin: /\[/, end: /\]/, relevance: 0, contains: [v] }],
+ },
+ ],
+ },
+ N = { className: 'title', begin: f, relevance: 0 },
+ I = { className: 'title', begin: d, relevance: 0 },
+ T = { begin: '\\.\\s*' + d, relevance: 0 };
+ var R = Object.freeze({
+ __proto__: null,
+ MATCH_NOTHING_RE: /\b\B/,
+ IDENT_RE: f,
+ UNDERSCORE_IDENT_RE: d,
+ NUMBER_RE: m,
+ C_NUMBER_RE: g,
+ BINARY_NUMBER_RE: y,
+ RE_STARTERS_RE:
+ '!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~',
+ SHEBANG: (e = {}) => {
+ const t = /^#![ ]*\//;
+ return (
+ e.binary &&
+ (e.begin = (function (...e) {
+ return e.map((e) => p(e)).join('');
+ })(t, /.*\b/, e.binary, /\b.*/)),
+ i(
+ {
+ className: 'meta',
+ begin: t,
+ end: /$/,
+ relevance: 0,
+ 'on:begin': (e, t) => {
+ 0 !== e.index && t.ignoreMatch();
+ },
+ },
+ e
+ )
+ );
+ },
+ BACKSLASH_ESCAPE: v,
+ APOS_STRING_MODE: b,
+ QUOTE_STRING_MODE: w,
+ PHRASAL_WORDS_MODE: E,
+ COMMENT: x,
+ C_LINE_COMMENT_MODE: S,
+ C_BLOCK_COMMENT_MODE: _,
+ HASH_COMMENT_MODE: j,
+ NUMBER_MODE: O,
+ C_NUMBER_MODE: k,
+ BINARY_NUMBER_MODE: A,
+ CSS_NUMBER_MODE: C,
+ REGEXP_MODE: P,
+ TITLE_MODE: N,
+ UNDERSCORE_TITLE_MODE: I,
+ METHOD_GUARD: T,
+ END_SAME_AS_BEGIN: function (e) {
+ return Object.assign(e, {
+ 'on:begin': (e, t) => {
+ t.data._beginMatch = e[1];
+ },
+ 'on:end': (e, t) => {
+ t.data._beginMatch !== e[1] && t.ignoreMatch();
+ },
+ });
+ },
+ });
+ function M(e, t) {
+ '.' === e.input[e.index - 1] && t.ignoreMatch();
+ }
+ function D(e, t) {
+ t &&
+ e.beginKeywords &&
+ ((e.begin = '\\b(' + e.beginKeywords.split(' ').join('|') + ')(?!\\.)(?=\\b|\\s)'),
+ (e.__beforeBegin = M),
+ (e.keywords = e.keywords || e.beginKeywords),
+ delete e.beginKeywords,
+ void 0 === e.relevance && (e.relevance = 0));
+ }
+ function F(e, t) {
+ Array.isArray(e.illegal) &&
+ (e.illegal = (function (...e) {
+ return '(' + e.map((e) => p(e)).join('|') + ')';
+ })(...e.illegal));
+ }
+ function L(e, t) {
+ if (e.match) {
+ if (e.begin || e.end) throw new Error('begin & end are not supported with match');
+ (e.begin = e.match), delete e.match;
+ }
+ }
+ function B(e, t) {
+ void 0 === e.relevance && (e.relevance = 1);
+ }
+ const $ = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then', 'parent', 'list', 'value'],
+ q = 'keyword';
+ function U(e, t, n = q) {
+ const r = {};
+ return (
+ 'string' == typeof e
+ ? o(n, e.split(' '))
+ : Array.isArray(e)
+ ? o(n, e)
+ : Object.keys(e).forEach(function (n) {
+ Object.assign(r, U(e[n], t, n));
+ }),
+ r
+ );
+ function o(e, n) {
+ t && (n = n.map((e) => e.toLowerCase())),
+ n.forEach(function (t) {
+ const n = t.split('|');
+ r[n[0]] = [e, z(n[0], n[1])];
+ });
+ }
+ }
+ function z(e, t) {
+ return t
+ ? Number(t)
+ : (function (e) {
+ return $.includes(e.toLowerCase());
+ })(e)
+ ? 0
+ : 1;
+ }
+ function V(e, { plugins: t }) {
+ function n(t, n) {
+ return new RegExp(p(t), 'm' + (e.case_insensitive ? 'i' : '') + (n ? 'g' : ''));
+ }
+ class r {
+ constructor() {
+ (this.matchIndexes = {}), (this.regexes = []), (this.matchAt = 1), (this.position = 0);
+ }
+ addRule(e, t) {
+ (t.position = this.position++),
+ (this.matchIndexes[this.matchAt] = t),
+ this.regexes.push([t, e]),
+ (this.matchAt +=
+ (function (e) {
+ return new RegExp(e.toString() + '|').exec('').length - 1;
+ })(e) + 1);
+ }
+ compile() {
+ 0 === this.regexes.length && (this.exec = () => null);
+ const e = this.regexes.map((e) => e[1]);
+ (this.matcherRe = n(
+ (function (e, t = '|') {
+ let n = 0;
+ return e
+ .map((e) => {
+ n += 1;
+ const t = n;
+ let r = p(e),
+ o = '';
+ for (; r.length > 0; ) {
+ const e = h.exec(r);
+ if (!e) {
+ o += r;
+ break;
+ }
+ (o += r.substring(0, e.index)),
+ (r = r.substring(e.index + e[0].length)),
+ '\\' === e[0][0] && e[1]
+ ? (o += '\\' + String(Number(e[1]) + t))
+ : ((o += e[0]), '(' === e[0] && n++);
+ }
+ return o;
+ })
+ .map((e) => `(${e})`)
+ .join(t);
+ })(e),
+ !0
+ )),
+ (this.lastIndex = 0);
+ }
+ exec(e) {
+ this.matcherRe.lastIndex = this.lastIndex;
+ const t = this.matcherRe.exec(e);
+ if (!t) return null;
+ const n = t.findIndex((e, t) => t > 0 && void 0 !== e),
+ r = this.matchIndexes[n];
+ return t.splice(0, n), Object.assign(t, r);
+ }
+ }
+ class o {
+ constructor() {
+ (this.rules = []),
+ (this.multiRegexes = []),
+ (this.count = 0),
+ (this.lastIndex = 0),
+ (this.regexIndex = 0);
+ }
+ getMatcher(e) {
+ if (this.multiRegexes[e]) return this.multiRegexes[e];
+ const t = new r();
+ return (
+ this.rules.slice(e).forEach(([e, n]) => t.addRule(e, n)), t.compile(), (this.multiRegexes[e] = t), t
+ );
+ }
+ resumingScanAtSamePosition() {
+ return 0 !== this.regexIndex;
+ }
+ considerAll() {
+ this.regexIndex = 0;
+ }
+ addRule(e, t) {
+ this.rules.push([e, t]), 'begin' === t.type && this.count++;
+ }
+ exec(e) {
+ const t = this.getMatcher(this.regexIndex);
+ t.lastIndex = this.lastIndex;
+ let n = t.exec(e);
+ if (this.resumingScanAtSamePosition())
+ if (n && n.index === this.lastIndex);
+ else {
+ const t = this.getMatcher(0);
+ (t.lastIndex = this.lastIndex + 1), (n = t.exec(e));
+ }
+ return (
+ n && ((this.regexIndex += n.position + 1), this.regexIndex === this.count && this.considerAll()), n
+ );
+ }
+ }
+ if ((e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes('self')))
+ throw new Error(
+ 'ERR: contains `self` is not supported at the top-level of a language. See documentation.'
+ );
+ return (
+ (e.classNameAliases = i(e.classNameAliases || {})),
+ (function t(r, s) {
+ const a = r;
+ if (r.isCompiled) return a;
+ [L].forEach((e) => e(r, s)),
+ e.compilerExtensions.forEach((e) => e(r, s)),
+ (r.__beforeBegin = null),
+ [D, F, B].forEach((e) => e(r, s)),
+ (r.isCompiled = !0);
+ let l = null;
+ if (
+ ('object' == typeof r.keywords && ((l = r.keywords.$pattern), delete r.keywords.$pattern),
+ r.keywords && (r.keywords = U(r.keywords, e.case_insensitive)),
+ r.lexemes && l)
+ )
+ throw new Error(
+ 'ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) '
+ );
+ return (
+ (l = l || r.lexemes || /\w+/),
+ (a.keywordPatternRe = n(l, !0)),
+ s &&
+ (r.begin || (r.begin = /\B|\b/),
+ (a.beginRe = n(r.begin)),
+ r.endSameAsBegin && (r.end = r.begin),
+ r.end || r.endsWithParent || (r.end = /\B|\b/),
+ r.end && (a.endRe = n(r.end)),
+ (a.terminatorEnd = p(r.end) || ''),
+ r.endsWithParent && s.terminatorEnd && (a.terminatorEnd += (r.end ? '|' : '') + s.terminatorEnd)),
+ r.illegal && (a.illegalRe = n(r.illegal)),
+ r.contains || (r.contains = []),
+ (r.contains = [].concat(
+ ...r.contains.map(function (e) {
+ return (function (e) {
+ e.variants &&
+ !e.cachedVariants &&
+ (e.cachedVariants = e.variants.map(function (t) {
+ return i(e, { variants: null }, t);
+ }));
+ if (e.cachedVariants) return e.cachedVariants;
+ if (W(e)) return i(e, { starts: e.starts ? i(e.starts) : null });
+ if (Object.isFrozen(e)) return i(e);
+ return e;
+ })('self' === e ? r : e);
+ })
+ )),
+ r.contains.forEach(function (e) {
+ t(e, a);
+ }),
+ r.starts && t(r.starts, s),
+ (a.matcher = (function (e) {
+ const t = new o();
+ return (
+ e.contains.forEach((e) => t.addRule(e.begin, { rule: e, type: 'begin' })),
+ e.terminatorEnd && t.addRule(e.terminatorEnd, { type: 'end' }),
+ e.illegal && t.addRule(e.illegal, { type: 'illegal' }),
+ t
+ );
+ })(a)),
+ a
+ );
+ })(e)
+ );
+ }
+ function W(e) {
+ return !!e && (e.endsWithParent || W(e.starts));
+ }
+ function J(e) {
+ const t = {
+ props: ['language', 'code', 'autodetect'],
+ data: function () {
+ return { detectedLanguage: '', unknownLanguage: !1 };
+ },
+ computed: {
+ className() {
+ return this.unknownLanguage ? '' : 'hljs ' + this.detectedLanguage;
+ },
+ highlighted() {
+ if (!this.autoDetect && !e.getLanguage(this.language))
+ return (
+ console.warn(`The language "${this.language}" you specified could not be found.`),
+ (this.unknownLanguage = !0),
+ s(this.code)
+ );
+ let t = {};
+ return (
+ this.autoDetect
+ ? ((t = e.highlightAuto(this.code)), (this.detectedLanguage = t.language))
+ : ((t = e.highlight(this.language, this.code, this.ignoreIllegals)),
+ (this.detectedLanguage = this.language)),
+ t.value
+ );
+ },
+ autoDetect() {
+ return !this.language || ((e = this.autodetect), Boolean(e || '' === e));
+ var e;
+ },
+ ignoreIllegals: () => !0,
+ },
+ render(e) {
+ return e('pre', {}, [e('code', { class: this.className, domProps: { innerHTML: this.highlighted } })]);
+ },
+ };
+ return {
+ Component: t,
+ VuePlugin: {
+ install(e) {
+ e.component('highlightjs', t);
+ },
+ },
+ };
+ }
+ const K = {
+ 'after:highlightElement': ({ el: e, result: t, text: n }) => {
+ const r = G(e);
+ if (!r.length) return;
+ const o = document.createElement('div');
+ (o.innerHTML = t.value),
+ (t.value = (function (e, t, n) {
+ let r = 0,
+ o = '';
+ const i = [];
+ function a() {
+ return e.length && t.length
+ ? e[0].offset !== t[0].offset
+ ? e[0].offset < t[0].offset
+ ? e
+ : t
+ : 'start' === t[0].event
+ ? e
+ : t
+ : e.length
+ ? e
+ : t;
+ }
+ function l(e) {
+ function t(e) {
+ return ' ' + e.nodeName + '="' + s(e.value) + '"';
+ }
+ o += '<' + H(e) + [].map.call(e.attributes, t).join('') + '>';
+ }
+ function c(e) {
+ o += '' + H(e) + '>';
+ }
+ function u(e) {
+ ('start' === e.event ? l : c)(e.node);
+ }
+ for (; e.length || t.length; ) {
+ let t = a();
+ if (((o += s(n.substring(r, t[0].offset))), (r = t[0].offset), t === e)) {
+ i.reverse().forEach(c);
+ do {
+ u(t.splice(0, 1)[0]), (t = a());
+ } while (t === e && t.length && t[0].offset === r);
+ i.reverse().forEach(l);
+ } else 'start' === t[0].event ? i.push(t[0].node) : i.pop(), u(t.splice(0, 1)[0]);
+ }
+ return o + s(n.substr(r));
+ })(r, G(o), n));
+ },
+ };
+ function H(e) {
+ return e.nodeName.toLowerCase();
+ }
+ function G(e) {
+ const t = [];
+ return (
+ (function e(n, r) {
+ for (let o = n.firstChild; o; o = o.nextSibling)
+ 3 === o.nodeType
+ ? (r += o.nodeValue.length)
+ : 1 === o.nodeType &&
+ (t.push({ event: 'start', offset: r, node: o }),
+ (r = e(o, r)),
+ H(o).match(/br|hr|img|input/) || t.push({ event: 'stop', offset: r, node: o }));
+ return r;
+ })(e, 0),
+ t
+ );
+ }
+ const Z = {},
+ Y = (e) => {
+ console.error(e);
+ },
+ X = (e, ...t) => {
+ console.log(`WARN: ${e}`, ...t);
+ },
+ Q = (e, t) => {
+ Z[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), (Z[`${e}/${t}`] = !0));
+ },
+ ee = s,
+ te = i,
+ ne = Symbol('nomatch');
+ var re = (function (e) {
+ const t = Object.create(null),
+ r = Object.create(null),
+ s = [];
+ let i = !0;
+ const a = /(^(<[^>]+>|\t|)+|\n)/gm,
+ l = "Could not find the language '{}', did you forget to load/include a language module?",
+ c = { disableAutodetect: !0, name: 'Plain text', contains: [] };
+ let p = {
+ noHighlightRe: /^(no-?highlight)$/i,
+ languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
+ classPrefix: 'hljs-',
+ tabReplace: null,
+ useBR: !1,
+ languages: null,
+ __emitter: u,
+ };
+ function h(e) {
+ return p.noHighlightRe.test(e);
+ }
+ function f(e, t, n, r) {
+ let o = '',
+ s = '';
+ 'object' == typeof t
+ ? ((o = e), (n = t.ignoreIllegals), (s = t.language), (r = void 0))
+ : (Q('10.7.0', 'highlight(lang, code, ...args) has been deprecated.'),
+ Q(
+ '10.7.0',
+ 'Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277'
+ ),
+ (s = e),
+ (o = t));
+ const i = { code: o, language: s };
+ O('before:highlight', i);
+ const a = i.result ? i.result : d(i.language, i.code, n, r);
+ return (a.code = i.code), O('after:highlight', a), a;
+ }
+ function d(e, n, r, a) {
+ function c(e, t) {
+ const n = E.case_insensitive ? t[0].toLowerCase() : t[0];
+ return Object.prototype.hasOwnProperty.call(e.keywords, n) && e.keywords[n];
+ }
+ function u() {
+ null != j.subLanguage
+ ? (function () {
+ if ('' === A) return;
+ let e = null;
+ if ('string' == typeof j.subLanguage) {
+ if (!t[j.subLanguage]) return void k.addText(A);
+ (e = d(j.subLanguage, A, !0, O[j.subLanguage])), (O[j.subLanguage] = e.top);
+ } else e = m(A, j.subLanguage.length ? j.subLanguage : null);
+ j.relevance > 0 && (C += e.relevance), k.addSublanguage(e.emitter, e.language);
+ })()
+ : (function () {
+ if (!j.keywords) return void k.addText(A);
+ let e = 0;
+ j.keywordPatternRe.lastIndex = 0;
+ let t = j.keywordPatternRe.exec(A),
+ n = '';
+ for (; t; ) {
+ n += A.substring(e, t.index);
+ const r = c(j, t);
+ if (r) {
+ const [e, o] = r;
+ if ((k.addText(n), (n = ''), (C += o), e.startsWith('_'))) n += t[0];
+ else {
+ const n = E.classNameAliases[e] || e;
+ k.addKeyword(t[0], n);
+ }
+ } else n += t[0];
+ (e = j.keywordPatternRe.lastIndex), (t = j.keywordPatternRe.exec(A));
+ }
+ (n += A.substr(e)), k.addText(n);
+ })(),
+ (A = '');
+ }
+ function h(e) {
+ return (
+ e.className && k.openNode(E.classNameAliases[e.className] || e.className),
+ (j = Object.create(e, { parent: { value: j } })),
+ j
+ );
+ }
+ function f(e, t, n) {
+ let r = (function (e, t) {
+ const n = e && e.exec(t);
+ return n && 0 === n.index;
+ })(e.endRe, n);
+ if (r) {
+ if (e['on:end']) {
+ const n = new o(e);
+ e['on:end'](t, n), n.isMatchIgnored && (r = !1);
+ }
+ if (r) {
+ for (; e.endsParent && e.parent; ) e = e.parent;
+ return e;
+ }
+ }
+ if (e.endsWithParent) return f(e.parent, t, n);
+ }
+ function g(e) {
+ return 0 === j.matcher.regexIndex ? ((A += e[0]), 1) : ((I = !0), 0);
+ }
+ function y(e) {
+ const t = e[0],
+ n = e.rule,
+ r = new o(n),
+ s = [n.__beforeBegin, n['on:begin']];
+ for (const n of s) if (n && (n(e, r), r.isMatchIgnored)) return g(t);
+ return (
+ n && n.endSameAsBegin && (n.endRe = new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm')),
+ n.skip ? (A += t) : (n.excludeBegin && (A += t), u(), n.returnBegin || n.excludeBegin || (A = t)),
+ h(n),
+ n.returnBegin ? 0 : t.length
+ );
+ }
+ function v(e) {
+ const t = e[0],
+ r = n.substr(e.index),
+ o = f(j, e, r);
+ if (!o) return ne;
+ const s = j;
+ s.skip ? (A += t) : (s.returnEnd || s.excludeEnd || (A += t), u(), s.excludeEnd && (A = t));
+ do {
+ j.className && k.closeNode(), j.skip || j.subLanguage || (C += j.relevance), (j = j.parent);
+ } while (j !== o.parent);
+ return (
+ o.starts && (o.endSameAsBegin && (o.starts.endRe = o.endRe), h(o.starts)), s.returnEnd ? 0 : t.length
+ );
+ }
+ let b = {};
+ function w(t, o) {
+ const s = o && o[0];
+ if (((A += t), null == s)) return u(), 0;
+ if ('begin' === b.type && 'end' === o.type && b.index === o.index && '' === s) {
+ if (((A += n.slice(o.index, o.index + 1)), !i)) {
+ const t = new Error('0 width match regex');
+ throw ((t.languageName = e), (t.badRule = b.rule), t);
+ }
+ return 1;
+ }
+ if (((b = o), 'begin' === o.type)) return y(o);
+ if ('illegal' === o.type && !r) {
+ const e = new Error('Illegal lexeme "' + s + '" for mode "' + (j.className || '') + '"');
+ throw ((e.mode = j), e);
+ }
+ if ('end' === o.type) {
+ const e = v(o);
+ if (e !== ne) return e;
+ }
+ if ('illegal' === o.type && '' === s) return 1;
+ if (N > 1e5 && N > 3 * o.index) {
+ throw new Error('potential infinite loop, way more iterations than matches');
+ }
+ return (A += s), s.length;
+ }
+ const E = S(e);
+ if (!E) throw (Y(l.replace('{}', e)), new Error('Unknown language: "' + e + '"'));
+ const x = V(E, { plugins: s });
+ let _ = '',
+ j = a || x;
+ const O = {},
+ k = new p.__emitter(p);
+ !(function () {
+ const e = [];
+ for (let t = j; t !== E; t = t.parent) t.className && e.unshift(t.className);
+ e.forEach((e) => k.openNode(e));
+ })();
+ let A = '',
+ C = 0,
+ P = 0,
+ N = 0,
+ I = !1;
+ try {
+ for (j.matcher.considerAll(); ; ) {
+ N++, I ? (I = !1) : j.matcher.considerAll(), (j.matcher.lastIndex = P);
+ const e = j.matcher.exec(n);
+ if (!e) break;
+ const t = w(n.substring(P, e.index), e);
+ P = e.index + t;
+ }
+ return (
+ w(n.substr(P)),
+ k.closeAllNodes(),
+ k.finalize(),
+ (_ = k.toHTML()),
+ { relevance: Math.floor(C), value: _, language: e, illegal: !1, emitter: k, top: j }
+ );
+ } catch (t) {
+ if (t.message && t.message.includes('Illegal'))
+ return {
+ illegal: !0,
+ illegalBy: { msg: t.message, context: n.slice(P - 100, P + 100), mode: t.mode },
+ sofar: _,
+ relevance: 0,
+ value: ee(n),
+ emitter: k,
+ };
+ if (i)
+ return { illegal: !1, relevance: 0, value: ee(n), emitter: k, language: e, top: j, errorRaised: t };
+ throw t;
+ }
+ }
+ function m(e, n) {
+ n = n || p.languages || Object.keys(t);
+ const r = (function (e) {
+ const t = { relevance: 0, emitter: new p.__emitter(p), value: ee(e), illegal: !1, top: c };
+ return t.emitter.addText(e), t;
+ })(e),
+ o = n
+ .filter(S)
+ .filter(j)
+ .map((t) => d(t, e, !1));
+ o.unshift(r);
+ const s = o.sort((e, t) => {
+ if (e.relevance !== t.relevance) return t.relevance - e.relevance;
+ if (e.language && t.language) {
+ if (S(e.language).supersetOf === t.language) return 1;
+ if (S(t.language).supersetOf === e.language) return -1;
+ }
+ return 0;
+ }),
+ [i, a] = s,
+ l = i;
+ return (l.second_best = a), l;
+ }
+ const g = {
+ 'before:highlightElement': ({ el: e }) => {
+ p.useBR && (e.innerHTML = e.innerHTML.replace(/\n/g, '').replace(/
/g, '\n'));
+ },
+ 'after:highlightElement': ({ result: e }) => {
+ p.useBR && (e.value = e.value.replace(/\n/g, '
'));
+ },
+ },
+ y = /^(<[^>]+>|\t)+/gm,
+ v = {
+ 'after:highlightElement': ({ result: e }) => {
+ p.tabReplace && (e.value = e.value.replace(y, (e) => e.replace(/\t/g, p.tabReplace)));
+ },
+ };
+ function b(e) {
+ let t = null;
+ const n = (function (e) {
+ let t = e.className + ' ';
+ t += e.parentNode ? e.parentNode.className : '';
+ const n = p.languageDetectRe.exec(t);
+ if (n) {
+ const t = S(n[1]);
+ return (
+ t || (X(l.replace('{}', n[1])), X('Falling back to no-highlight mode for this block.', e)),
+ t ? n[1] : 'no-highlight'
+ );
+ }
+ return t.split(/\s+/).find((e) => h(e) || S(e));
+ })(e);
+ if (h(n)) return;
+ O('before:highlightElement', { el: e, language: n }), (t = e);
+ const o = t.textContent,
+ s = n ? f(o, { language: n, ignoreIllegals: !0 }) : m(o);
+ O('after:highlightElement', { el: e, result: s, text: o }),
+ (e.innerHTML = s.value),
+ (function (e, t, n) {
+ const o = t ? r[t] : n;
+ e.classList.add('hljs'), o && e.classList.add(o);
+ })(e, n, s.language),
+ (e.result = { language: s.language, re: s.relevance, relavance: s.relevance }),
+ s.second_best &&
+ (e.second_best = {
+ language: s.second_best.language,
+ re: s.second_best.relevance,
+ relavance: s.second_best.relevance,
+ });
+ }
+ const w = () => {
+ if (w.called) return;
+ (w.called = !0), Q('10.6.0', 'initHighlighting() is deprecated. Use highlightAll() instead.');
+ document.querySelectorAll('pre code').forEach(b);
+ };
+ let E = !1;
+ function x() {
+ if ('loading' === document.readyState) return void (E = !0);
+ document.querySelectorAll('pre code').forEach(b);
+ }
+ function S(e) {
+ return (e = (e || '').toLowerCase()), t[e] || t[r[e]];
+ }
+ function _(e, { languageName: t }) {
+ 'string' == typeof e && (e = [e]),
+ e.forEach((e) => {
+ r[e.toLowerCase()] = t;
+ });
+ }
+ function j(e) {
+ const t = S(e);
+ return t && !t.disableAutodetect;
+ }
+ function O(e, t) {
+ const n = e;
+ s.forEach(function (e) {
+ e[n] && e[n](t);
+ });
+ }
+ 'undefined' != typeof window &&
+ window.addEventListener &&
+ window.addEventListener(
+ 'DOMContentLoaded',
+ function () {
+ E && x();
+ },
+ !1
+ ),
+ Object.assign(e, {
+ highlight: f,
+ highlightAuto: m,
+ highlightAll: x,
+ fixMarkup: function (e) {
+ return (
+ Q('10.2.0', 'fixMarkup will be removed entirely in v11.0'),
+ Q('10.2.0', 'Please see https://github.com/highlightjs/highlight.js/issues/2534'),
+ (t = e),
+ p.tabReplace || p.useBR
+ ? t.replace(a, (e) =>
+ '\n' === e ? (p.useBR ? '
' : e) : p.tabReplace ? e.replace(/\t/g, p.tabReplace) : e
+ )
+ : t
+ );
+ var t;
+ },
+ highlightElement: b,
+ highlightBlock: function (e) {
+ return (
+ Q('10.7.0', 'highlightBlock will be removed entirely in v12.0'),
+ Q('10.7.0', 'Please use highlightElement now.'),
+ b(e)
+ );
+ },
+ configure: function (e) {
+ e.useBR &&
+ (Q('10.3.0', "'useBR' will be removed entirely in v11.0"),
+ Q('10.3.0', 'Please see https://github.com/highlightjs/highlight.js/issues/2559')),
+ (p = te(p, e));
+ },
+ initHighlighting: w,
+ initHighlightingOnLoad: function () {
+ Q('10.6.0', 'initHighlightingOnLoad() is deprecated. Use highlightAll() instead.'), (E = !0);
+ },
+ registerLanguage: function (n, r) {
+ let o = null;
+ try {
+ o = r(e);
+ } catch (e) {
+ if ((Y("Language definition for '{}' could not be registered.".replace('{}', n)), !i)) throw e;
+ Y(e), (o = c);
+ }
+ o.name || (o.name = n),
+ (t[n] = o),
+ (o.rawDefinition = r.bind(null, e)),
+ o.aliases && _(o.aliases, { languageName: n });
+ },
+ unregisterLanguage: function (e) {
+ delete t[e];
+ for (const t of Object.keys(r)) r[t] === e && delete r[t];
+ },
+ listLanguages: function () {
+ return Object.keys(t);
+ },
+ getLanguage: S,
+ registerAliases: _,
+ requireLanguage: function (e) {
+ Q('10.4.0', 'requireLanguage will be removed entirely in v11.'),
+ Q('10.4.0', 'Please see https://github.com/highlightjs/highlight.js/pull/2844');
+ const t = S(e);
+ if (t) return t;
+ throw new Error("The '{}' language is required, but not loaded.".replace('{}', e));
+ },
+ autoDetection: j,
+ inherit: te,
+ addPlugin: function (e) {
+ !(function (e) {
+ e['before:highlightBlock'] &&
+ !e['before:highlightElement'] &&
+ (e['before:highlightElement'] = (t) => {
+ e['before:highlightBlock'](Object.assign({ block: t.el }, t));
+ }),
+ e['after:highlightBlock'] &&
+ !e['after:highlightElement'] &&
+ (e['after:highlightElement'] = (t) => {
+ e['after:highlightBlock'](Object.assign({ block: t.el }, t));
+ });
+ })(e),
+ s.push(e);
+ },
+ vuePlugin: J(e).VuePlugin,
+ }),
+ (e.debugMode = function () {
+ i = !1;
+ }),
+ (e.safeMode = function () {
+ i = !0;
+ }),
+ (e.versionString = '10.7.3');
+ for (const e in R) 'object' == typeof R[e] && n(R[e]);
+ return Object.assign(e, R), e.addPlugin(g), e.addPlugin(K), e.addPlugin(v), e;
+ })({});
+ e.exports = re;
+ },
+ 61519: (e) => {
+ function t(...e) {
+ return e
+ .map((e) => {
+ return (t = e) ? ('string' == typeof t ? t : t.source) : null;
+ var t;
+ })
+ .join('');
+ }
+ e.exports = function (e) {
+ const n = {},
+ r = { begin: /\$\{/, end: /\}/, contains: ['self', { begin: /:-/, contains: [n] }] };
+ Object.assign(n, {
+ className: 'variable',
+ variants: [{ begin: t(/\$[\w\d#@][\w\d_]*/, '(?![\\w\\d])(?![$])') }, r],
+ });
+ const o = { className: 'subst', begin: /\$\(/, end: /\)/, contains: [e.BACKSLASH_ESCAPE] },
+ s = {
+ begin: /<<-?\s*(?=\w+)/,
+ starts: { contains: [e.END_SAME_AS_BEGIN({ begin: /(\w+)/, end: /(\w+)/, className: 'string' })] },
+ },
+ i = { className: 'string', begin: /"/, end: /"/, contains: [e.BACKSLASH_ESCAPE, n, o] };
+ o.contains.push(i);
+ const a = {
+ begin: /\$\(\(/,
+ end: /\)\)/,
+ contains: [{ begin: /\d+#[0-9a-f]+/, className: 'number' }, e.NUMBER_MODE, n],
+ },
+ l = e.SHEBANG({
+ binary: `(${['fish', 'bash', 'zsh', 'sh', 'csh', 'ksh', 'tcsh', 'dash', 'scsh'].join('|')})`,
+ relevance: 10,
+ }),
+ c = {
+ className: 'function',
+ begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
+ returnBegin: !0,
+ contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
+ relevance: 0,
+ };
+ return {
+ name: 'Bash',
+ aliases: ['sh', 'zsh'],
+ keywords: {
+ $pattern: /\b[a-z._-]+\b/,
+ keyword: 'if then else elif fi for while in do done case esac function',
+ literal: 'true false',
+ built_in:
+ 'break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp',
+ },
+ contains: [
+ l,
+ e.SHEBANG(),
+ c,
+ a,
+ e.HASH_COMMENT_MODE,
+ s,
+ i,
+ { className: '', begin: /\\"/ },
+ { className: 'string', begin: /'/, end: /'/ },
+ n,
+ ],
+ };
+ };
+ },
+ 30786: (e) => {
+ function t(...e) {
+ return e
+ .map((e) => {
+ return (t = e) ? ('string' == typeof t ? t : t.source) : null;
+ var t;
+ })
+ .join('');
+ }
+ e.exports = function (e) {
+ const n = 'HTTP/(2|1\\.[01])',
+ r = {
+ className: 'attribute',
+ begin: t('^', /[A-Za-z][A-Za-z0-9-]*/, '(?=\\:\\s)'),
+ starts: {
+ contains: [
+ { className: 'punctuation', begin: /: /, relevance: 0, starts: { end: '$', relevance: 0 } },
+ ],
+ },
+ },
+ o = [r, { begin: '\\n\\n', starts: { subLanguage: [], endsWithParent: !0 } }];
+ return {
+ name: 'HTTP',
+ aliases: ['https'],
+ illegal: /\S/,
+ contains: [
+ {
+ begin: '^(?=' + n + ' \\d{3})',
+ end: /$/,
+ contains: [
+ { className: 'meta', begin: n },
+ { className: 'number', begin: '\\b\\d{3}\\b' },
+ ],
+ starts: { end: /\b\B/, illegal: /\S/, contains: o },
+ },
+ {
+ begin: '(?=^[A-Z]+ (.*?) ' + n + '$)',
+ end: /$/,
+ contains: [
+ { className: 'string', begin: ' ', end: ' ', excludeBegin: !0, excludeEnd: !0 },
+ { className: 'meta', begin: n },
+ { className: 'keyword', begin: '[A-Z]+' },
+ ],
+ starts: { end: /\b\B/, illegal: /\S/, contains: o },
+ },
+ e.inherit(r, { relevance: 0 }),
+ ],
+ };
+ };
+ },
+ 96344: (e) => {
+ const t = '[A-Za-z$_][0-9A-Za-z$_]*',
+ n = [
+ 'as',
+ 'in',
+ 'of',
+ 'if',
+ 'for',
+ 'while',
+ 'finally',
+ 'var',
+ 'new',
+ 'function',
+ 'do',
+ 'return',
+ 'void',
+ 'else',
+ 'break',
+ 'catch',
+ 'instanceof',
+ 'with',
+ 'throw',
+ 'case',
+ 'default',
+ 'try',
+ 'switch',
+ 'continue',
+ 'typeof',
+ 'delete',
+ 'let',
+ 'yield',
+ 'const',
+ 'class',
+ 'debugger',
+ 'async',
+ 'await',
+ 'static',
+ 'import',
+ 'from',
+ 'export',
+ 'extends',
+ ],
+ r = ['true', 'false', 'null', 'undefined', 'NaN', 'Infinity'],
+ o = [].concat(
+ [
+ 'setInterval',
+ 'setTimeout',
+ 'clearInterval',
+ 'clearTimeout',
+ 'require',
+ 'exports',
+ 'eval',
+ 'isFinite',
+ 'isNaN',
+ 'parseFloat',
+ 'parseInt',
+ 'decodeURI',
+ 'decodeURIComponent',
+ 'encodeURI',
+ 'encodeURIComponent',
+ 'escape',
+ 'unescape',
+ ],
+ ['arguments', 'this', 'super', 'console', 'window', 'document', 'localStorage', 'module', 'global'],
+ [
+ 'Intl',
+ 'DataView',
+ 'Number',
+ 'Math',
+ 'Date',
+ 'String',
+ 'RegExp',
+ 'Object',
+ 'Function',
+ 'Boolean',
+ 'Error',
+ 'Symbol',
+ 'Set',
+ 'Map',
+ 'WeakSet',
+ 'WeakMap',
+ 'Proxy',
+ 'Reflect',
+ 'JSON',
+ 'Promise',
+ 'Float64Array',
+ 'Int16Array',
+ 'Int32Array',
+ 'Int8Array',
+ 'Uint16Array',
+ 'Uint32Array',
+ 'Float32Array',
+ 'Array',
+ 'Uint8Array',
+ 'Uint8ClampedArray',
+ 'ArrayBuffer',
+ 'BigInt64Array',
+ 'BigUint64Array',
+ 'BigInt',
+ ],
+ ['EvalError', 'InternalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError']
+ );
+ function s(e) {
+ return i('(?=', e, ')');
+ }
+ function i(...e) {
+ return e
+ .map((e) => {
+ return (t = e) ? ('string' == typeof t ? t : t.source) : null;
+ var t;
+ })
+ .join('');
+ }
+ e.exports = function (e) {
+ const a = t,
+ l = '<>',
+ c = '>',
+ u = {
+ begin: /<[A-Za-z0-9\\._:-]+/,
+ end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
+ isTrulyOpeningTag: (e, t) => {
+ const n = e[0].length + e.index,
+ r = e.input[n];
+ '<' !== r
+ ? '>' === r &&
+ (((e, { after: t }) => {
+ const n = '' + e[0].slice(1);
+ return -1 !== e.input.indexOf(n, t);
+ })(e, { after: n }) ||
+ t.ignoreMatch())
+ : t.ignoreMatch();
+ },
+ },
+ p = { $pattern: t, keyword: n, literal: r, built_in: o },
+ h = '[0-9](_?[0-9])*',
+ f = `\\.(${h})`,
+ d = '0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*',
+ m = {
+ className: 'number',
+ variants: [
+ { begin: `(\\b(${d})((${f})|\\.)?|(${f}))[eE][+-]?(${h})\\b` },
+ { begin: `\\b(${d})\\b((${f})\\b|\\.)?|(${f})\\b` },
+ { begin: '\\b(0|[1-9](_?[0-9])*)n\\b' },
+ { begin: '\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b' },
+ { begin: '\\b0[bB][0-1](_?[0-1])*n?\\b' },
+ { begin: '\\b0[oO][0-7](_?[0-7])*n?\\b' },
+ { begin: '\\b0[0-7]+n?\\b' },
+ ],
+ relevance: 0,
+ },
+ g = { className: 'subst', begin: '\\$\\{', end: '\\}', keywords: p, contains: [] },
+ y = {
+ begin: 'html`',
+ end: '',
+ starts: { end: '`', returnEnd: !1, contains: [e.BACKSLASH_ESCAPE, g], subLanguage: 'xml' },
+ },
+ v = {
+ begin: 'css`',
+ end: '',
+ starts: { end: '`', returnEnd: !1, contains: [e.BACKSLASH_ESCAPE, g], subLanguage: 'css' },
+ },
+ b = { className: 'string', begin: '`', end: '`', contains: [e.BACKSLASH_ESCAPE, g] },
+ w = {
+ className: 'comment',
+ variants: [
+ e.COMMENT(/\/\*\*(?!\/)/, '\\*/', {
+ relevance: 0,
+ contains: [
+ {
+ className: 'doctag',
+ begin: '@[A-Za-z]+',
+ contains: [
+ { className: 'type', begin: '\\{', end: '\\}', relevance: 0 },
+ { className: 'variable', begin: a + '(?=\\s*(-)|$)', endsParent: !0, relevance: 0 },
+ { begin: /(?=[^\n])\s/, relevance: 0 },
+ ],
+ },
+ ],
+ }),
+ e.C_BLOCK_COMMENT_MODE,
+ e.C_LINE_COMMENT_MODE,
+ ],
+ },
+ E = [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, y, v, b, m, e.REGEXP_MODE];
+ g.contains = E.concat({ begin: /\{/, end: /\}/, keywords: p, contains: ['self'].concat(E) });
+ const x = [].concat(w, g.contains),
+ S = x.concat([{ begin: /\(/, end: /\)/, keywords: p, contains: ['self'].concat(x) }]),
+ _ = {
+ className: 'params',
+ begin: /\(/,
+ end: /\)/,
+ excludeBegin: !0,
+ excludeEnd: !0,
+ keywords: p,
+ contains: S,
+ };
+ return {
+ name: 'Javascript',
+ aliases: ['js', 'jsx', 'mjs', 'cjs'],
+ keywords: p,
+ exports: { PARAMS_CONTAINS: S },
+ illegal: /#(?![$_A-z])/,
+ contains: [
+ e.SHEBANG({ label: 'shebang', binary: 'node', relevance: 5 }),
+ { label: 'use_strict', className: 'meta', relevance: 10, begin: /^\s*['"]use (strict|asm)['"]/ },
+ e.APOS_STRING_MODE,
+ e.QUOTE_STRING_MODE,
+ y,
+ v,
+ b,
+ w,
+ m,
+ {
+ begin: i(/[{,\n]\s*/, s(i(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/, a + '\\s*:'))),
+ relevance: 0,
+ contains: [{ className: 'attr', begin: a + s('\\s*:'), relevance: 0 }],
+ },
+ {
+ begin: '(' + e.RE_STARTERS_RE + '|\\b(case|return|throw)\\b)\\s*',
+ keywords: 'return throw case',
+ contains: [
+ w,
+ e.REGEXP_MODE,
+ {
+ className: 'function',
+ begin:
+ '(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|' + e.UNDERSCORE_IDENT_RE + ')\\s*=>',
+ returnBegin: !0,
+ end: '\\s*=>',
+ contains: [
+ {
+ className: 'params',
+ variants: [
+ { begin: e.UNDERSCORE_IDENT_RE, relevance: 0 },
+ { className: null, begin: /\(\s*\)/, skip: !0 },
+ { begin: /\(/, end: /\)/, excludeBegin: !0, excludeEnd: !0, keywords: p, contains: S },
+ ],
+ },
+ ],
+ },
+ { begin: /,/, relevance: 0 },
+ { className: '', begin: /\s/, end: /\s*/, skip: !0 },
+ {
+ variants: [
+ { begin: l, end: c },
+ { begin: u.begin, 'on:begin': u.isTrulyOpeningTag, end: u.end },
+ ],
+ subLanguage: 'xml',
+ contains: [{ begin: u.begin, end: u.end, skip: !0, contains: ['self'] }],
+ },
+ ],
+ relevance: 0,
+ },
+ {
+ className: 'function',
+ beginKeywords: 'function',
+ end: /[{;]/,
+ excludeEnd: !0,
+ keywords: p,
+ contains: ['self', e.inherit(e.TITLE_MODE, { begin: a }), _],
+ illegal: /%/,
+ },
+ { beginKeywords: 'while if switch catch for' },
+ {
+ className: 'function',
+ begin: e.UNDERSCORE_IDENT_RE + '\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{',
+ returnBegin: !0,
+ contains: [_, e.inherit(e.TITLE_MODE, { begin: a })],
+ },
+ { variants: [{ begin: '\\.' + a }, { begin: '\\$' + a }], relevance: 0 },
+ {
+ className: 'class',
+ beginKeywords: 'class',
+ end: /[{;=]/,
+ excludeEnd: !0,
+ illegal: /[:"[\]]/,
+ contains: [{ beginKeywords: 'extends' }, e.UNDERSCORE_TITLE_MODE],
+ },
+ {
+ begin: /\b(?=constructor)/,
+ end: /[{;]/,
+ excludeEnd: !0,
+ contains: [e.inherit(e.TITLE_MODE, { begin: a }), 'self', _],
+ },
+ {
+ begin: '(get|set)\\s+(?=' + a + '\\()',
+ end: /\{/,
+ keywords: 'get set',
+ contains: [e.inherit(e.TITLE_MODE, { begin: a }), { begin: /\(\)/ }, _],
+ },
+ { begin: /\$[(.]/ },
+ ],
+ };
+ };
+ },
+ 82026: (e) => {
+ e.exports = function (e) {
+ const t = { literal: 'true false null' },
+ n = [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE],
+ r = [e.QUOTE_STRING_MODE, e.C_NUMBER_MODE],
+ o = { end: ',', endsWithParent: !0, excludeEnd: !0, contains: r, keywords: t },
+ s = {
+ begin: /\{/,
+ end: /\}/,
+ contains: [
+ { className: 'attr', begin: /"/, end: /"/, contains: [e.BACKSLASH_ESCAPE], illegal: '\\n' },
+ e.inherit(o, { begin: /:/ }),
+ ].concat(n),
+ illegal: '\\S',
+ },
+ i = { begin: '\\[', end: '\\]', contains: [e.inherit(o)], illegal: '\\S' };
+ return (
+ r.push(s, i),
+ n.forEach(function (e) {
+ r.push(e);
+ }),
+ { name: 'JSON', contains: r, keywords: t, illegal: '\\S' }
+ );
+ };
+ },
+ 66336: (e) => {
+ e.exports = function (e) {
+ const t = {
+ $pattern: /-?[A-z\.\-]+\b/,
+ keyword:
+ 'if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter',
+ built_in:
+ 'ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write',
+ },
+ n = { begin: '`[\\s\\S]', relevance: 0 },
+ r = {
+ className: 'variable',
+ variants: [
+ { begin: /\$\B/ },
+ { className: 'keyword', begin: /\$this/ },
+ { begin: /\$[\w\d][\w\d_:]*/ },
+ ],
+ },
+ o = {
+ className: 'string',
+ variants: [
+ { begin: /"/, end: /"/ },
+ { begin: /@"/, end: /^"@/ },
+ ],
+ contains: [n, r, { className: 'variable', begin: /\$[A-z]/, end: /[^A-z]/ }],
+ },
+ s = {
+ className: 'string',
+ variants: [
+ { begin: /'/, end: /'/ },
+ { begin: /@'/, end: /^'@/ },
+ ],
+ },
+ i = e.inherit(e.COMMENT(null, null), {
+ variants: [
+ { begin: /#/, end: /$/ },
+ { begin: /<#/, end: /#>/ },
+ ],
+ contains: [
+ {
+ className: 'doctag',
+ variants: [
+ {
+ begin:
+ /\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/,
+ },
+ {
+ begin:
+ /\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/,
+ },
+ ],
+ },
+ ],
+ }),
+ a = {
+ className: 'built_in',
+ variants: [
+ {
+ begin: '('.concat(
+ 'Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where',
+ ')+(-)[\\w\\d]+'
+ ),
+ },
+ ],
+ },
+ l = {
+ className: 'class',
+ beginKeywords: 'class enum',
+ end: /\s*[{]/,
+ excludeEnd: !0,
+ relevance: 0,
+ contains: [e.TITLE_MODE],
+ },
+ c = {
+ className: 'function',
+ begin: /function\s+/,
+ end: /\s*\{|$/,
+ excludeEnd: !0,
+ returnBegin: !0,
+ relevance: 0,
+ contains: [
+ { begin: 'function', relevance: 0, className: 'keyword' },
+ { className: 'title', begin: /\w[\w\d]*((-)[\w\d]+)*/, relevance: 0 },
+ { begin: /\(/, end: /\)/, className: 'params', relevance: 0, contains: [r] },
+ ],
+ },
+ u = {
+ begin: /using\s/,
+ end: /$/,
+ returnBegin: !0,
+ contains: [o, s, { className: 'keyword', begin: /(using|assembly|command|module|namespace|type)/ }],
+ },
+ p = {
+ variants: [
+ {
+ className: 'operator',
+ begin: '('.concat(
+ '-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor',
+ ')\\b'
+ ),
+ },
+ { className: 'literal', begin: /(-)[\w\d]+/, relevance: 0 },
+ ],
+ },
+ h = {
+ className: 'function',
+ begin: /\[.*\]\s*[\w]+[ ]??\(/,
+ end: /$/,
+ returnBegin: !0,
+ relevance: 0,
+ contains: [
+ {
+ className: 'keyword',
+ begin: '('.concat(t.keyword.toString().replace(/\s/g, '|'), ')\\b'),
+ endsParent: !0,
+ relevance: 0,
+ },
+ e.inherit(e.TITLE_MODE, { endsParent: !0 }),
+ ],
+ },
+ f = [
+ h,
+ i,
+ n,
+ e.NUMBER_MODE,
+ o,
+ s,
+ a,
+ r,
+ { className: 'literal', begin: /\$(null|true|false)\b/ },
+ { className: 'selector-tag', begin: /@\B/, relevance: 0 },
+ ],
+ d = {
+ begin: /\[/,
+ end: /\]/,
+ excludeBegin: !0,
+ excludeEnd: !0,
+ relevance: 0,
+ contains: [].concat(
+ 'self',
+ f,
+ {
+ begin:
+ '(' +
+ [
+ 'string',
+ 'char',
+ 'byte',
+ 'int',
+ 'long',
+ 'bool',
+ 'decimal',
+ 'single',
+ 'double',
+ 'DateTime',
+ 'xml',
+ 'array',
+ 'hashtable',
+ 'void',
+ ].join('|') +
+ ')',
+ className: 'built_in',
+ relevance: 0,
+ },
+ { className: 'type', begin: /[\.\w\d]+/, relevance: 0 }
+ ),
+ };
+ return (
+ h.contains.unshift(d),
+ {
+ name: 'PowerShell',
+ aliases: ['ps', 'ps1'],
+ case_insensitive: !0,
+ keywords: t,
+ contains: f.concat(l, c, u, p, d),
+ }
+ );
+ };
+ },
+ 42157: (e) => {
+ function t(e) {
+ return e ? ('string' == typeof e ? e : e.source) : null;
+ }
+ function n(e) {
+ return r('(?=', e, ')');
+ }
+ function r(...e) {
+ return e.map((e) => t(e)).join('');
+ }
+ function o(...e) {
+ return '(' + e.map((e) => t(e)).join('|') + ')';
+ }
+ e.exports = function (e) {
+ const t = r(/[A-Z_]/, r('(', /[A-Z0-9_.-]*:/, ')?'), /[A-Z0-9_.-]*/),
+ s = { className: 'symbol', begin: /&[a-z]+;|[0-9]+;|[a-f0-9]+;/ },
+ i = {
+ begin: /\s/,
+ contains: [{ className: 'meta-keyword', begin: /#?[a-z_][a-z1-9_-]+/, illegal: /\n/ }],
+ },
+ a = e.inherit(i, { begin: /\(/, end: /\)/ }),
+ l = e.inherit(e.APOS_STRING_MODE, { className: 'meta-string' }),
+ c = e.inherit(e.QUOTE_STRING_MODE, { className: 'meta-string' }),
+ u = {
+ endsWithParent: !0,
+ illegal: /,
+ relevance: 0,
+ contains: [
+ { className: 'attr', begin: /[A-Za-z0-9._:-]+/, relevance: 0 },
+ {
+ begin: /=\s*/,
+ relevance: 0,
+ contains: [
+ {
+ className: 'string',
+ endsParent: !0,
+ variants: [
+ { begin: /"/, end: /"/, contains: [s] },
+ { begin: /'/, end: /'/, contains: [s] },
+ { begin: /[^\s"'=<>`]+/ },
+ ],
+ },
+ ],
+ },
+ ],
+ };
+ return {
+ name: 'HTML, XML',
+ aliases: ['html', 'xhtml', 'rss', 'atom', 'xjb', 'xsd', 'xsl', 'plist', 'wsf', 'svg'],
+ case_insensitive: !0,
+ contains: [
+ {
+ className: 'meta',
+ begin: //,
+ relevance: 10,
+ contains: [
+ i,
+ c,
+ l,
+ a,
+ {
+ begin: /\[/,
+ end: /\]/,
+ contains: [{ className: 'meta', begin: //, contains: [i, a, c, l] }],
+ },
+ ],
+ },
+ e.COMMENT(//, { relevance: 10 }),
+ { begin: //, relevance: 10 },
+ s,
+ { className: 'meta', begin: /<\?xml/, end: /\?>/, relevance: 10 },
+ {
+ className: 'tag',
+ begin: /