rapidoc 9.3.6 → 9.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +9 -1
- package/dist/index.html +1 -1
- package/dist/index.html.gz +0 -0
- package/dist/rapidoc-min.js +390 -376
- package/dist/rapidoc-min.js.LICENSE.txt +1 -8
- package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
- package/dist/rapidoc-min.js.gz +0 -0
- package/dist/rapidoc-min.js.map +1 -1
- package/dist/rapidoc-min.js.map.gz +0 -0
- package/dist/rapidoc.js +436 -242
- package/dist/report.html +2 -2
- package/index.html +5 -4
- package/package.json +2 -2
- package/src/components/api-request.js +115 -77
- package/src/components/api-response.js +6 -7
- package/src/components/schema-table.js +6 -5
- package/src/components/schema-tree.js +9 -7
- package/src/json-schema-viewer.js +6 -2
- package/src/rapidoc-mini.js +20 -4
- package/src/rapidoc.js +33 -18
- package/src/styles/border-styles.js +2 -2
- package/src/styles/endpoint-styles.js +13 -10
- package/src/styles/flex-styles.js +1 -1
- package/src/styles/font-styles.js +13 -13
- package/src/styles/input-styles.js +2 -2
- package/src/styles/nav-styles.js +1 -1
- package/src/styles/schema-styles.js +12 -9
- package/src/templates/advance-search-template.js +2 -1
- package/src/templates/endpoint-template.js +29 -26
- package/src/templates/expanded-endpoint-template.js +4 -2
- package/src/templates/json-schema-viewer-template.js +3 -3
- package/src/templates/main-body-template.js +2 -2
- package/src/templates/navbar-template.js +6 -6
- package/src/templates/security-scheme-template.js +9 -7
- package/src/utils/common-utils.js +5 -9
- package/src/utils/schema-utils.js +65 -16
- package/src/utils/spec-parser.js +77 -7
- package/src/utils/theme.js +4 -6
package/dist/rapidoc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @preserve
|
|
4
|
-
* RapiDoc 9.3.
|
|
4
|
+
* RapiDoc 9.3.7 - WebComponent to View OpenAPI docs
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Repo : https://github.com/rapi-doc/RapiDoc
|
|
7
7
|
* Author : Mrinmoy Majumdar
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
/******/ (() => { // webpackBootstrap
|
|
10
10
|
/******/ var __webpack_modules__ = ({
|
|
11
11
|
|
|
12
|
-
/***/
|
|
12
|
+
/***/ 557:
|
|
13
13
|
/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => {
|
|
14
14
|
|
|
15
15
|
"use strict";
|
|
@@ -2969,14 +2969,14 @@ var prism_csharp = __webpack_require__(651);
|
|
|
2969
2969
|
;// CONCATENATED MODULE: ./src/styles/font-styles.js
|
|
2970
2970
|
|
|
2971
2971
|
/* harmony default export */ const font_styles = (i`
|
|
2972
|
-
.hover-bg:hover{
|
|
2972
|
+
.hover-bg:hover {
|
|
2973
2973
|
background: var(--bg3);
|
|
2974
2974
|
}
|
|
2975
2975
|
::selection {
|
|
2976
2976
|
background: var(--selection-bg);
|
|
2977
2977
|
color: var(--selection-fg);
|
|
2978
2978
|
}
|
|
2979
|
-
.regular-font{
|
|
2979
|
+
.regular-font {
|
|
2980
2980
|
font-family:var(--font-regular);
|
|
2981
2981
|
}
|
|
2982
2982
|
.mono-font {
|
|
@@ -2986,7 +2986,7 @@ var prism_csharp = __webpack_require__(651);
|
|
|
2986
2986
|
font-size: calc(var(--font-size-small) + 18px);
|
|
2987
2987
|
font-weight: normal
|
|
2988
2988
|
}
|
|
2989
|
-
.sub-title{ font-size: 20px;}
|
|
2989
|
+
.sub-title{ font-size: 20px; }
|
|
2990
2990
|
.req-res-title {
|
|
2991
2991
|
font-family: var(--font-regular);
|
|
2992
2992
|
font-size: calc(var(--font-size-small) + 4px);
|
|
@@ -3001,11 +3001,11 @@ var prism_csharp = __webpack_require__(651);
|
|
|
3001
3001
|
.regular-font-size { font-size: var(--font-size-regular); }
|
|
3002
3002
|
.small-font-size { font-size: var(--font-size-small); }
|
|
3003
3003
|
.upper { text-transform: uppercase; }
|
|
3004
|
-
.primary-text{ color: var(--primary-color); }
|
|
3004
|
+
.primary-text { color: var(--primary-color); }
|
|
3005
3005
|
.bold-text { font-weight:bold; }
|
|
3006
3006
|
.gray-text { color: var(--light-fg); }
|
|
3007
|
-
.red-text {color: var(--red)}
|
|
3008
|
-
.blue-text {color: var(--blue)}
|
|
3007
|
+
.red-text { color: var(--red) }
|
|
3008
|
+
.blue-text { color: var(--blue) }
|
|
3009
3009
|
.multiline {
|
|
3010
3010
|
overflow: scroll;
|
|
3011
3011
|
max-height: var(--resp-area-height, 400px);
|
|
@@ -3021,14 +3021,14 @@ var prism_csharp = __webpack_require__(651);
|
|
|
3021
3021
|
color: var(--yellow);
|
|
3022
3022
|
}
|
|
3023
3023
|
|
|
3024
|
-
h1{ font-family:var(--font-regular); font-size:28px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3025
|
-
h2{ font-family:var(--font-regular); font-size:24px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3026
|
-
h3{ font-family:var(--font-regular); font-size:18px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3027
|
-
h4{ font-family:var(--font-regular); font-size:16px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3028
|
-
h5{ font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3029
|
-
h6{ font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3024
|
+
h1 { font-family:var(--font-regular); font-size:28px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3025
|
+
h2 { font-family:var(--font-regular); font-size:24px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3026
|
+
h3 { font-family:var(--font-regular); font-size:18px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3027
|
+
h4 { font-family:var(--font-regular); font-size:16px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3028
|
+
h5 { font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3029
|
+
h6 { font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }
|
|
3030
3030
|
|
|
3031
|
-
h1,h2,h3,h4,h5,h5{
|
|
3031
|
+
h1,h2,h3,h4,h5,h5 {
|
|
3032
3032
|
margin-block-end: 0.2em;
|
|
3033
3033
|
}
|
|
3034
3034
|
p { margin-block-start: 0.5em; }
|
|
@@ -3274,14 +3274,14 @@ var prism_csharp = __webpack_require__(651);
|
|
|
3274
3274
|
.m-btn.nav:hover {
|
|
3275
3275
|
background-color: var(--nav-accent-color);
|
|
3276
3276
|
}
|
|
3277
|
-
.m-btn:disabled{
|
|
3277
|
+
.m-btn:disabled {
|
|
3278
3278
|
background-color: var(--bg3);
|
|
3279
3279
|
color: var(--fg3);
|
|
3280
3280
|
border-color: var(--fg3);
|
|
3281
3281
|
cursor: not-allowed;
|
|
3282
3282
|
opacity: 0.4;
|
|
3283
3283
|
}
|
|
3284
|
-
.toolbar-btn{
|
|
3284
|
+
.toolbar-btn {
|
|
3285
3285
|
cursor: pointer;
|
|
3286
3286
|
padding: 4px;
|
|
3287
3287
|
margin:0 2px;
|
|
@@ -3440,7 +3440,7 @@ input[type="checkbox"]:checked:after {
|
|
|
3440
3440
|
;// CONCATENATED MODULE: ./src/styles/flex-styles.js
|
|
3441
3441
|
|
|
3442
3442
|
/* harmony default export */ const flex_styles = (i`
|
|
3443
|
-
.row, .col{
|
|
3443
|
+
.row, .col {
|
|
3444
3444
|
display:flex;
|
|
3445
3445
|
}
|
|
3446
3446
|
.row {
|
|
@@ -3513,8 +3513,11 @@ input[type="checkbox"]:checked:after {
|
|
|
3513
3513
|
;// CONCATENATED MODULE: ./src/styles/endpoint-styles.js
|
|
3514
3514
|
|
|
3515
3515
|
/* harmony default export */ const endpoint_styles = (i`
|
|
3516
|
+
:host {
|
|
3517
|
+
container-type: inline-size;
|
|
3518
|
+
}
|
|
3516
3519
|
.only-large-screen { display:none; }
|
|
3517
|
-
.endpoint-head .path{
|
|
3520
|
+
.endpoint-head .path {
|
|
3518
3521
|
display: flex;
|
|
3519
3522
|
font-family:var(--font-mono);
|
|
3520
3523
|
font-size: var(--font-size-small);
|
|
@@ -3533,7 +3536,7 @@ input[type="checkbox"]:checked:after {
|
|
|
3533
3536
|
display:none;
|
|
3534
3537
|
}
|
|
3535
3538
|
|
|
3536
|
-
.m-endpoint.expanded{margin-bottom:16px; }
|
|
3539
|
+
.m-endpoint.expanded { margin-bottom:16px; }
|
|
3537
3540
|
.m-endpoint > .endpoint-head{
|
|
3538
3541
|
border-width:1px 1px 1px 5px;
|
|
3539
3542
|
border-style:solid;
|
|
@@ -3545,7 +3548,7 @@ input[type="checkbox"]:checked:after {
|
|
|
3545
3548
|
cursor: pointer;
|
|
3546
3549
|
}
|
|
3547
3550
|
.m-endpoint > .endpoint-head.put:hover,
|
|
3548
|
-
.m-endpoint > .endpoint-head.put.expanded{
|
|
3551
|
+
.m-endpoint > .endpoint-head.put.expanded {
|
|
3549
3552
|
border-color:var(--orange);
|
|
3550
3553
|
background-color:var(--light-orange);
|
|
3551
3554
|
}
|
|
@@ -3590,20 +3593,20 @@ input[type="checkbox"]:checked:after {
|
|
|
3590
3593
|
}
|
|
3591
3594
|
.m-endpoint .endpoint-body.delete{ border-color:var(--red); }
|
|
3592
3595
|
.m-endpoint .endpoint-body.put{ border-color:var(--orange); }
|
|
3593
|
-
.m-endpoint .endpoint-body.post{border-color:var(--green);}
|
|
3594
|
-
.m-endpoint .endpoint-body.get{ border-color:var(--blue); }
|
|
3596
|
+
.m-endpoint .endpoint-body.post { border-color:var(--green); }
|
|
3597
|
+
.m-endpoint .endpoint-body.get { border-color:var(--blue); }
|
|
3595
3598
|
.m-endpoint .endpoint-body.head,
|
|
3596
3599
|
.m-endpoint .endpoint-body.patch,
|
|
3597
3600
|
.m-endpoint .endpoint-body.options {
|
|
3598
3601
|
border-color:var(--yellow);
|
|
3599
3602
|
}
|
|
3600
3603
|
|
|
3601
|
-
.m-endpoint .endpoint-body.deprecated{
|
|
3604
|
+
.m-endpoint .endpoint-body.deprecated {
|
|
3602
3605
|
border-color:var(--border-color);
|
|
3603
3606
|
filter:opacity(0.6);
|
|
3604
3607
|
}
|
|
3605
3608
|
|
|
3606
|
-
.endpoint-head .deprecated{
|
|
3609
|
+
.endpoint-head .deprecated {
|
|
3607
3610
|
color: var(--light-fg);
|
|
3608
3611
|
filter:opacity(0.6);
|
|
3609
3612
|
}
|
|
@@ -3611,13 +3614,13 @@ input[type="checkbox"]:checked:after {
|
|
|
3611
3614
|
.summary{
|
|
3612
3615
|
padding:8px 8px;
|
|
3613
3616
|
}
|
|
3614
|
-
.summary .title{
|
|
3617
|
+
.summary .title {
|
|
3615
3618
|
font-size:calc(var(--font-size-regular) + 2px);
|
|
3616
3619
|
margin-bottom: 6px;
|
|
3617
3620
|
word-break: break-all;
|
|
3618
3621
|
}
|
|
3619
3622
|
|
|
3620
|
-
.endpoint-head .method{
|
|
3623
|
+
.endpoint-head .method {
|
|
3621
3624
|
padding:2px 5px;
|
|
3622
3625
|
vertical-align: middle;
|
|
3623
3626
|
font-size:var(--font-size-small);
|
|
@@ -3681,7 +3684,7 @@ api-response.view-mode {
|
|
|
3681
3684
|
border-color:var(--red);
|
|
3682
3685
|
}
|
|
3683
3686
|
|
|
3684
|
-
@
|
|
3687
|
+
@container (min-width: 1024px) {
|
|
3685
3688
|
.only-large-screen { display:block; }
|
|
3686
3689
|
.endpoint-head .path{
|
|
3687
3690
|
font-size: var(--font-size-regular);
|
|
@@ -3892,7 +3895,7 @@ pre[class*="language-"] {
|
|
|
3892
3895
|
flex-wrap:nowrap;
|
|
3893
3896
|
word-break:break-word;
|
|
3894
3897
|
}
|
|
3895
|
-
::slotted([slot=nav-logo]){
|
|
3898
|
+
::slotted([slot=nav-logo]) {
|
|
3896
3899
|
padding:16px 16px 0 16px;
|
|
3897
3900
|
}
|
|
3898
3901
|
.nav-scroll {
|
|
@@ -4137,16 +4140,12 @@ async function wait(ms) {
|
|
|
4137
4140
|
setTimeout(resolve, ms);
|
|
4138
4141
|
});
|
|
4139
4142
|
}
|
|
4140
|
-
function
|
|
4143
|
+
function getMatchedComponents(searchVal, component) {
|
|
4141
4144
|
return component.name.toLowerCase().includes(searchVal.toLowerCase());
|
|
4142
4145
|
}
|
|
4143
|
-
function
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
return stringToSearch.includes(searchVal.toLowerCase());
|
|
4147
|
-
}
|
|
4148
|
-
const regex = new RegExp(searchVal, 'i');
|
|
4149
|
-
return regex.test(`${path.method} ${path.path}`);
|
|
4146
|
+
function getMatchedPaths(searchVal, path, tagName = '') {
|
|
4147
|
+
const stringToSearch = `${path.method} ${path.path} ${path.summary || ''} ${path.description || ''} ${path.operationId || ''} ${tagName}`.toLowerCase();
|
|
4148
|
+
return stringToSearch.includes(searchVal.toLowerCase());
|
|
4150
4149
|
}
|
|
4151
4150
|
function schemaKeys(schemaProps, result = new Set()) {
|
|
4152
4151
|
if (!schemaProps) {
|
|
@@ -4176,7 +4175,7 @@ function advancedSearch(searchVal, allSpecTags, searchOptions = []) {
|
|
|
4176
4175
|
stringToSearch = path.path;
|
|
4177
4176
|
}
|
|
4178
4177
|
if (searchOptions.includes('search-api-descr')) {
|
|
4179
|
-
stringToSearch = `${stringToSearch} ${path.summary || path.description || ''}`;
|
|
4178
|
+
stringToSearch = `${stringToSearch} ${(path.summary || '') + (path.description || '')}`;
|
|
4180
4179
|
}
|
|
4181
4180
|
if (searchOptions.includes('search-api-params')) {
|
|
4182
4181
|
var _path$parameters;
|
|
@@ -4256,39 +4255,33 @@ function viewResource(url) {
|
|
|
4256
4255
|
}
|
|
4257
4256
|
}
|
|
4258
4257
|
;// CONCATENATED MODULE: ./node_modules/@apitools/openapi-parser/dist/openapi-parser.mjs
|
|
4259
|
-
function openapi_parser_e(e){return e&&e.t&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function openapi_parser_t(e){if(e.t)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(t,n);return new r}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"t",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var openapi_parser_n=function(e){return e&&e.Math==Math&&e},openapi_parser_r=openapi_parser_n("object"==typeof globalThis&&globalThis)||openapi_parser_n("object"==typeof window&&window)||openapi_parser_n("object"==typeof self&&self)||openapi_parser_n("object"==typeof openapi_parser_r&&openapi_parser_r)||function(){return this}()||globalThis||Function("return this")(),openapi_parser_i=function(e){try{return!!e()}catch(e){return!0}},openapi_parser_s=!openapi_parser_i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),openapi_parser_o=openapi_parser_s,openapi_parser_c=Function.prototype,openapi_parser_a=openapi_parser_c.apply,openapi_parser_u=openapi_parser_c.call,openapi_parser_f="object"==typeof Reflect&&Reflect.apply||(openapi_parser_o?openapi_parser_u.bind(openapi_parser_a):function(){return openapi_parser_u.apply(openapi_parser_a,arguments)}),openapi_parser_l=openapi_parser_s,openapi_parser_h=Function.prototype,openapi_parser_p=openapi_parser_h.call,openapi_parser_m=openapi_parser_l&&openapi_parser_h.bind.bind(openapi_parser_p,openapi_parser_p),openapi_parser_d=openapi_parser_l?openapi_parser_m:function(e){return function(){return openapi_parser_p.apply(e,arguments)}},openapi_parser_v=openapi_parser_d,openapi_parser_y=openapi_parser_v({}.toString),openapi_parser_b=openapi_parser_v("".slice),openapi_parser_j=function(e){return openapi_parser_b(openapi_parser_y(e),8,-1)},openapi_parser_g=openapi_parser_j,openapi_parser_w=openapi_parser_d,openapi_parser_O=function(e){if("Function"===openapi_parser_g(e))return openapi_parser_w(e)},openapi_parser_E="object"==typeof document&&document.all,openapi_parser_x={all:openapi_parser_E,IS_HTMLDDA:void 0===openapi_parser_E&&void 0!==openapi_parser_E},openapi_parser_S=openapi_parser_x.all,openapi_parser_P=openapi_parser_x.IS_HTMLDDA?function(e){return"function"==typeof e||e===openapi_parser_S}:function(e){return"function"==typeof e},openapi_parser_$={},A=!openapi_parser_i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),openapi_parser_T=openapi_parser_s,openapi_parser_R=Function.prototype.call,openapi_parser_I=openapi_parser_T?openapi_parser_R.bind(openapi_parser_R):function(){return openapi_parser_R.apply(openapi_parser_R,arguments)},openapi_parser_k={},openapi_parser_F={}.propertyIsEnumerable,openapi_parser_M=Object.getOwnPropertyDescriptor,openapi_parser_N=openapi_parser_M&&!openapi_parser_F.call({1:2},1);openapi_parser_k.f=openapi_parser_N?function(e){var t=openapi_parser_M(this,e);return!!t&&t.enumerable}:openapi_parser_F;var C,openapi_parser_D,openapi_parser_q=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},openapi_parser_=openapi_parser_i,openapi_parser_B=openapi_parser_j,L=Object,openapi_parser_U=openapi_parser_d("".split),J=openapi_parser_((function(){return!L("z").propertyIsEnumerable(0)}))?function(e){return"String"==openapi_parser_B(e)?openapi_parser_U(e,""):L(e)}:L,openapi_parser_V=function(e){return null==e},openapi_parser_G=openapi_parser_V,openapi_parser_z=TypeError,H=function(e){if(openapi_parser_G(e))throw openapi_parser_z("Can't call method on "+e);return e},W=J,X=H,openapi_parser_Y=function(e){return W(X(e))},openapi_parser_K=openapi_parser_P,openapi_parser_Q=openapi_parser_x.all,openapi_parser_Z=openapi_parser_x.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:openapi_parser_K(e)||e===openapi_parser_Q}:function(e){return"object"==typeof e?null!==e:openapi_parser_K(e)},ee={},te=ee,ne=openapi_parser_r,re=openapi_parser_P,ie=function(e){return re(e)?e:void 0},se=function(e,t){return arguments.length<2?ie(te[e])||ie(ne[e]):te[e]&&te[e][t]||ne[e]&&ne[e][t]},oe=openapi_parser_d({}.isPrototypeOf),ce=openapi_parser_r,ae="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=ce.process,fe=ce.Deno,le=ue&&ue.versions||fe&&fe.version,he=le&&le.v8;he&&(openapi_parser_D=(C=he.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!openapi_parser_D&&ae&&(!(C=ae.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=ae.match(/Chrome\/(\d+)/))&&(openapi_parser_D=+C[1]);var pe=openapi_parser_D,me=pe,de=openapi_parser_i,ve=openapi_parser_r.String,ye=!!Object.getOwnPropertySymbols&&!de((function(){var e=Symbol();return!ve(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&me&&me<41})),be=ye&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,je=se,ge=openapi_parser_P,we=oe,openapi_parser_Oe=Object,Ee=be?function(e){return"symbol"==typeof e}:function(e){var t=je("Symbol");return ge(t)&&we(t.prototype,openapi_parser_Oe(e))},xe=String,openapi_parser_Se=function(e){try{return xe(e)}catch(e){return"Object"}},Pe=openapi_parser_P,$e=openapi_parser_Se,Ae=TypeError,Te=function(e){if(Pe(e))return e;throw Ae($e(e)+" is not a function")},openapi_parser_Re=Te,Ie=openapi_parser_V,openapi_parser_ke=openapi_parser_I,Fe=openapi_parser_P,Me=openapi_parser_Z,Ne=TypeError,Ce={exports:{}},De=openapi_parser_r,qe=Object.defineProperty,_e=function(e,t){try{qe(De,e,{value:t,configurable:!0,writable:!0})}catch(n){De[e]=t}return t},Be=openapi_parser_r["u"]||_e("__core-js_shared__",{}),Le=Be;(Ce.exports=function(e,t){return Le[e]||(Le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:"pure",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"});var Ue=Ce.exports,Je=H,Ve=Object,Ge=function(e){return Ve(Je(e))},ze=Ge,He=openapi_parser_d({}.hasOwnProperty),We=Object.hasOwn||function(e,t){return He(ze(e),t)},Xe=openapi_parser_d,Ye=0,Ke=Math.random(),Qe=Xe(1..toString),Ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qe(++Ye+Ke,36)},openapi_parser_et=Ue,tt=We,nt=Ze,rt=ye,it=be,openapi_parser_st=openapi_parser_r.Symbol,ot=openapi_parser_et("wks"),ct=it?openapi_parser_st.for||openapi_parser_st:openapi_parser_st&&openapi_parser_st.withoutSetter||nt,at=function(e){return tt(ot,e)||(ot[e]=rt&&tt(openapi_parser_st,e)?openapi_parser_st[e]:ct("Symbol."+e)),ot[e]},ut=openapi_parser_I,ft=openapi_parser_Z,openapi_parser_lt=Ee,ht=function(e,t){var n=e[t];return Ie(n)?void 0:openapi_parser_Re(n)},pt=function(e,t){var n,r;if("string"===t&&Fe(n=e.toString)&&!Me(r=openapi_parser_ke(n,e)))return r;if(Fe(n=e.valueOf)&&!Me(r=openapi_parser_ke(n,e)))return r;if("string"!==t&&Fe(n=e.toString)&&!Me(r=openapi_parser_ke(n,e)))return r;throw Ne("Can't convert object to primitive value")},mt=TypeError,dt=at("toPrimitive"),vt=function(e,t){if(!ft(e)||openapi_parser_lt(e))return e;var n,r=ht(e,dt);if(r){if(void 0===t&&(t="default"),n=ut(r,e,t),!ft(n)||openapi_parser_lt(n))return n;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),pt(e,t)},yt=Ee,bt=function(e){var t=vt(e,"string");return yt(t)?t:t+""},jt=openapi_parser_Z,gt=openapi_parser_r.document,wt=jt(gt)&&jt(gt.createElement),Ot=function(e){return wt?gt.createElement(e):{}},Et=Ot,xt=!A&&!openapi_parser_i((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),St=A,Pt=openapi_parser_I,$t=openapi_parser_k,At=openapi_parser_q,Tt=openapi_parser_Y,Rt=bt,It=We,kt=xt,Ft=Object.getOwnPropertyDescriptor;openapi_parser_$.f=St?Ft:function(e,t){if(e=Tt(e),t=Rt(t),kt)try{return Ft(e,t)}catch(e){}if(It(e,t))return At(!Pt($t.f,e,t),e[t])};var Mt=openapi_parser_i,Nt=openapi_parser_P,Ct=/#|\.prototype\./,Dt=function(e,t){var n=_t[qt(e)];return n==Lt||n!=Bt&&(Nt(t)?Mt(t):!!t)},qt=Dt.normalize=function(e){return String(e).replace(Ct,".").toLowerCase()},_t=Dt.data={},Bt=Dt.NATIVE="N",Lt=Dt.POLYFILL="P",Ut=Dt,Jt=Te,Vt=openapi_parser_s,Gt=openapi_parser_O(openapi_parser_O.bind),zt=function(e,t){return Jt(e),void 0===t?e:Vt?Gt(e,t):function(){return e.apply(t,arguments)}},Ht={},Wt=A&&openapi_parser_i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Xt=openapi_parser_Z,Yt=String,Kt=TypeError,Qt=function(e){if(Xt(e))return e;throw Kt(Yt(e)+" is not an object")},Zt=A,en=xt,tn=Wt,nn=Qt,rn=bt,sn=TypeError,on=Object.defineProperty,cn=Object.getOwnPropertyDescriptor;Ht.f=Zt?tn?function(e,t,n){if(nn(e),t=rn(t),nn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=cn(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return on(e,t,n)}:on:function(e,t,n){if(nn(e),t=rn(t),nn(n),en)try{return on(e,t,n)}catch(e){}if("get"in n||"set"in n)throw sn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var an=Ht,un=openapi_parser_q,fn=A?function(e,t,n){return an.f(e,t,un(1,n))}:function(e,t,n){return e[t]=n,e},ln=openapi_parser_r,hn=openapi_parser_f,pn=openapi_parser_O,mn=openapi_parser_P,dn=openapi_parser_$.f,vn=Ut,yn=ee,bn=zt,jn=fn,gn=We,wn=function(e){var t=function(n,r,i){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,i)}return hn(e,this,arguments)};return t.prototype=e.prototype,t},On=function(e,t){var n,r,i,s,o,c,a,u,f,l=e.target,h=e.global,p=e.stat,m=e.proto,d=h?ln:p?ln[l]:(ln[l]||{}).prototype,v=h?yn:yn[l]||jn(yn,l,{})[l],y=v.prototype;for(s in t)r=!(n=vn(h?s:l+(p?".":"#")+s,e.forced))&&d&&gn(d,s),c=v[s],r&&(a=e.dontCallGetSet?(f=dn(d,s))&&f.value:d[s]),o=r&&a?a:t[s],r&&typeof c==typeof o||(u=e.bind&&r?bn(o,ln):e.wrap&&r?wn(o):m&&mn(o)?pn(o):o,(e.sham||o&&o.sham||c&&c.sham)&&jn(u,"sham",!0),jn(v,s,u),m&&(gn(yn,i=l+"Prototype")||jn(yn,i,{}),jn(yn[i],s,o),e.real&&y&&(n||!y[s])&&jn(y,s,o)))},En=Math.ceil,xn=Math.floor,Sn=Math.trunc||function(e){var t=+e;return(t>0?xn:En)(t)},Pn=function(e){var t=+e;return t!=t||0===t?0:Sn(t)},$n=Pn,An=Math.max,Tn=Math.min,Rn=function(e,t){var n=$n(e);return n<0?An(n+t,0):Tn(n,t)},In=Pn,kn=Math.min,Fn=function(e){return e>0?kn(In(e),9007199254740991):0},Mn=function(e){return Fn(e.length)},Nn=openapi_parser_Y,Cn=Rn,Dn=Mn,qn=function(e){return function(t,n,r){var i,s=Nn(t),o=Dn(s),c=Cn(r,o);if(e&&n!=n){for(;o>c;)if((i=s[c++])!=i)return!0}else for(;o>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}},_n={includes:qn(!0),indexOf:qn(!1)},Bn={},Ln=We,Un=openapi_parser_Y,Jn=_n.indexOf,Vn=Bn,Gn=openapi_parser_d([].push),zn=function(e,t){var n,r=Un(e),i=0,s=[];for(n in r)!Ln(Vn,n)&&Ln(r,n)&&Gn(s,n);for(;t.length>i;)Ln(r,n=t[i++])&&(~Jn(s,n)||Gn(s,n));return s},Hn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wn=zn,Xn=Hn,Yn=Object.keys||function(e){return Wn(e,Xn)},Kn=Ge,Qn=Yn;On({target:"Object",stat:!0,forced:openapi_parser_i((function(){Qn(1)}))},{keys:function(e){return Qn(Kn(e))}});const Zn=openapi_parser_e(ee.Object.keys);var er={};er[at("toStringTag")]="z";var tr="[object z]"===String(er),nr=tr,rr=openapi_parser_P,ir=openapi_parser_j,sr=at("toStringTag"),or=Object,cr="Arguments"==ir(function(){return arguments}()),ar=nr?ir: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=or(e),sr))?n:cr?ir(t):"Object"==(r=ir(t))&&rr(t.callee)?"Arguments":r},ur=ar,fr=String,lr=function(e){if("Symbol"===ur(e))throw TypeError("Cannot convert a Symbol value to a string");return fr(e)},hr={},pr=A,mr=Wt,dr=Ht,vr=Qt,yr=openapi_parser_Y,br=Yn;hr.f=pr&&!mr?Object.defineProperties:function(e,t){vr(e);for(var n,r=yr(t),i=br(t),s=i.length,o=0;s>o;)dr.f(e,n=i[o++],r[n]);return e};var jr,gr=se("document","documentElement"),wr=Ze,Or=Ue("keys"),Er=function(e){return Or[e]||(Or[e]=wr(e))},xr=Qt,Sr=hr,Pr=Hn,$r=Bn,Ar=gr,Tr=Ot,Rr=Er("IE_PROTO"),Ir=function(){},kr=function(e){return"<script>"+e+"<\/script>"},Fr=function(e){e.write(kr("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mr=function(){try{jr=new ActiveXObject("htmlfile")}catch(e){}var e,t;Mr="undefined"!=typeof document?document.domain&&jr?Fr(jr):((t=Tr("iframe")).style.display="none",Ar.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(kr("document.F=Object")),e.close(),e.F):Fr(jr);for(var n=Pr.length;n--;)delete Mr.prototype[Pr[n]];return Mr()};$r[Rr]=!0;var Nr=Object.create||function(e,t){var n;return null!==e?(Ir.prototype=xr(e),n=new Ir,Ir.prototype=null,n[Rr]=e):n=Mr(),void 0===t?n:Sr.f(n,t)},Cr={},Dr=zn,qr=Hn.concat("length","prototype");Cr.f=Object.getOwnPropertyNames||function(e){return Dr(e,qr)};var _r={},Br=bt,Lr=Ht,Ur=openapi_parser_q,Jr=function(e,t,n){var r=Br(t);r in e?Lr.f(e,r,Ur(0,n)):e[r]=n},Vr=Rn,Gr=Mn,zr=Jr,Hr=Array,Wr=Math.max,Xr=openapi_parser_j,Yr=openapi_parser_Y,Kr=Cr.f,Qr=function(e,t,n){for(var r=Gr(e),i=Vr(t,r),s=Vr(void 0===n?r:n,r),o=Hr(Wr(s-i,0)),c=0;i<s;i++,c++)zr(o,c,e[i]);return o.length=c,o},Zr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];_r.f=function(e){return Zr&&"Window"==Xr(e)?function(e){try{return Kr(e)}catch(e){return Qr(Zr)}}(e):Kr(Yr(e))};var ei={};ei.f=Object.getOwnPropertySymbols;var ti=fn,ni=function(e,t,n,r){return r&&r.enumerable?e[t]=n:ti(e,t,n),e},ri=Ht,ii={},openapi_parser_si=at;ii.f=openapi_parser_si;var oi,ci,ai,ui=ee,fi=We,li=ii,hi=Ht.f,pi=function(e){var t=ui.Symbol||(ui.Symbol={});fi(t,e)||hi(t,e,{value:li.f(e)})},mi=openapi_parser_I,di=se,vi=at,yi=ni,bi=function(){var e=di("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=vi("toPrimitive");t&&!t[r]&&yi(t,r,(function(e){return mi(n,this)}),{arity:1})},ji=ar,gi=tr?{}.toString:function(){return"[object "+ji(this)+"]"},wi=tr,Oi=Ht.f,Ei=fn,xi=We,Si=gi,Pi=at("toStringTag"),$i=function(e,t,n,r){if(e){var i=n?e:e.prototype;xi(i,Pi)||Oi(i,Pi,{configurable:!0,value:t}),r&&!wi&&Ei(i,"toString",Si)}},Ai=openapi_parser_P,Ti=openapi_parser_r.WeakMap,Ri=Ai(Ti)&&/native code/.test(String(Ti)),Ii=openapi_parser_r,ki=openapi_parser_Z,Fi=fn,Mi=We,Ni=Be,Ci=Er,Di=Bn,qi=Ii.TypeError,_i=Ii.WeakMap;if(Ri||Ni.state){var Bi=Ni.state||(Ni.state=new _i);Bi.get=Bi.get,Bi.has=Bi.has,Bi.set=Bi.set,oi=function(e,t){if(Bi.has(e))throw qi("Object already initialized");return t.facade=e,Bi.set(e,t),t},ci=function(e){return Bi.get(e)||{}},ai=function(e){return Bi.has(e)}}else{var Li=Ci("state");Di[Li]=!0,oi=function(e,t){if(Mi(e,Li))throw qi("Object already initialized");return t.facade=e,Fi(e,Li,t),t},ci=function(e){return Mi(e,Li)?e[Li]:{}},ai=function(e){return Mi(e,Li)}}var Ui={set:oi,get:ci,has:ai,enforce:function(e){return ai(e)?ci(e):oi(e,{})},getterFor:function(e){return function(t){var n;if(!ki(t)||(n=ci(t)).type!==e)throw qi("Incompatible receiver, "+e+" required");return n}}},Ji=openapi_parser_j,Vi=Array.isArray||function(e){return"Array"==Ji(e)},Gi=openapi_parser_P,zi=Be,Hi=openapi_parser_d(Function.toString);Gi(zi.inspectSource)||(zi.inspectSource=function(e){return Hi(e)});var Wi=zi.inspectSource,Xi=openapi_parser_d,Yi=openapi_parser_i,Ki=openapi_parser_P,Qi=ar,Zi=Wi,es=function(){},ts=[],ns=se("Reflect","construct"),rs=/^\s*(?:class|function)\b/,is=Xi(rs.exec),ss=!rs.exec(es),os=function(e){if(!Ki(e))return!1;try{return ns(es,ts,e),!0}catch(e){return!1}},cs=function(e){if(!Ki(e))return!1;switch(Qi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ss||!!is(rs,Zi(e))}catch(e){return!0}};cs.sham=!0;var as=!ns||Yi((function(){var e;return os(os.call)||!os(Object)||!os((function(){e=!0}))||e}))?cs:os,us=Vi,fs=as,ls=openapi_parser_Z,hs=at("species"),ps=Array,ms=function(e){var t;return us(e)&&(t=e.constructor,(fs(t)&&(t===ps||us(t.prototype))||ls(t)&&null===(t=t[hs]))&&(t=void 0)),void 0===t?ps:t},ds=function(e,t){return new(ms(e))(0===t?0:t)},vs=zt,ys=J,bs=Ge,js=Mn,gs=ds,ws=openapi_parser_d([].push),Os=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,s=6==e,o=7==e,c=5==e||s;return function(a,u,f,l){for(var h,p,m=bs(a),d=ys(m),v=vs(u,f),y=js(d),b=0,j=l||gs,g=t?j(a,y):n||o?j(a,0):void 0;y>b;b++)if((c||b in d)&&(p=v(h=d[b],b,m),e))if(t)g[b]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return b;case 2:ws(g,h)}else switch(e){case 4:return!1;case 7:ws(g,h)}return s?-1:r||i?i:g}},Es={forEach:Os(0),map:Os(1),filter:Os(2),some:Os(3),every:Os(4),find:Os(5),findIndex:Os(6),filterReject:Os(7)},xs=On,Ss=openapi_parser_r,Ps=openapi_parser_I,$s=openapi_parser_d,As=A,Ts=ye,Rs=openapi_parser_i,Is=We,ks=oe,Fs=Qt,Ms=openapi_parser_Y,Ns=bt,Cs=lr,Ds=openapi_parser_q,qs=Nr,_s=Yn,Bs=Cr,Ls=_r,Us=ei,Js=openapi_parser_$,Vs=Ht,Gs=hr,zs=openapi_parser_k,Hs=ni,Ws=function(e,t,n){return ri.f(e,t,n)},Xs=Ue,Ys=Bn,Ks=Ze,Qs=at,Zs=ii,eo=pi,to=bi,no=$i,ro=Ui,io=Es.forEach,so=Er("hidden"),oo=ro.set,co=ro.getterFor("Symbol"),ao=Object.prototype,uo=Ss.Symbol,fo=uo&&uo.prototype,lo=Ss.TypeError,ho=Ss.QObject,po=Js.f,mo=Vs.f,vo=Ls.f,yo=zs.f,bo=$s([].push),jo=Xs("symbols"),go=Xs("op-symbols"),wo=Xs("wks"),Oo=!ho||!ho.prototype||!ho.prototype.findChild,Eo=As&&Rs((function(){return 7!=qs(mo({},"a",{get:function(){return mo(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=po(ao,t);r&&delete ao[t],mo(e,t,n),r&&e!==ao&&mo(ao,t,r)}:mo,xo=function(e,t){var n=jo[e]=qs(fo);return oo(n,{type:"Symbol",tag:e,description:t}),As||(n.description=t),n},So=function(e,t,n){e===ao&&So(go,t,n),Fs(e);var r=Ns(t);return Fs(n),Is(jo,r)?(n.enumerable?(Is(e,so)&&e[so][r]&&(e[so][r]=!1),n=qs(n,{enumerable:Ds(0,!1)})):(Is(e,so)||mo(e,so,Ds(1,{})),e[so][r]=!0),Eo(e,r,n)):mo(e,r,n)},Po=function(e,t){Fs(e);var n=Ms(t),r=_s(n).concat(Ro(n));return io(r,(function(t){As&&!Ps($o,n,t)||So(e,t,n[t])})),e},$o=function(e){var t=Ns(e),n=Ps(yo,this,t);return!(this===ao&&Is(jo,t)&&!Is(go,t))&&(!(n||!Is(this,t)||!Is(jo,t)||Is(this,so)&&this[so][t])||n)},Ao=function(e,t){var n=Ms(e),r=Ns(t);if(n!==ao||!Is(jo,r)||Is(go,r)){var i=po(n,r);return!i||!Is(jo,r)||Is(n,so)&&n[so][r]||(i.enumerable=!0),i}},To=function(e){var t=vo(Ms(e)),n=[];return io(t,(function(e){Is(jo,e)||Is(Ys,e)||bo(n,e)})),n},Ro=function(e){var t=e===ao,n=vo(t?go:Ms(e)),r=[];return io(n,(function(e){!Is(jo,e)||t&&!Is(ao,e)||bo(r,jo[e])})),r};Ts||(Hs(fo=(uo=function(){if(ks(fo,this))throw lo("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Cs(arguments[0]):void 0,t=Ks(e),n=function(e){this===ao&&Ps(n,go,e),Is(this,so)&&Is(this[so],t)&&(this[so][t]=!1),Eo(this,t,Ds(1,e))};return As&&Oo&&Eo(ao,t,{configurable:!0,set:n}),xo(t,e)}).prototype,"toString",(function(){return co(this).tag})),Hs(uo,"withoutSetter",(function(e){return xo(Ks(e),e)})),zs.f=$o,Vs.f=So,Gs.f=Po,Js.f=Ao,Bs.f=Ls.f=To,Us.f=Ro,Zs.f=function(e){return xo(Qs(e),e)},As&&Ws(fo,"description",{configurable:!0,get:function(){return co(this).description}})),xs({global:!0,constructor:!0,wrap:!0,forced:!Ts,sham:!Ts},{Symbol:uo}),io(_s(wo),(function(e){eo(e)})),xs({target:"Symbol",stat:!0,forced:!Ts},{useSetter:function(){Oo=!0},useSimple:function(){Oo=!1}}),xs({target:"Object",stat:!0,forced:!Ts,sham:!As},{create:function(e,t){return void 0===t?qs(e):Po(qs(e),t)},defineProperty:So,defineProperties:Po,getOwnPropertyDescriptor:Ao}),xs({target:"Object",stat:!0,forced:!Ts},{getOwnPropertyNames:To}),to(),no(uo,"Symbol"),Ys[so]=!0;var Io=ye&&!!Symbol.for&&!!Symbol.keyFor,ko=On,Fo=se,Mo=We,No=lr,Co=Ue,Do=Io,qo=Co("string-to-symbol-registry"),_o=Co("symbol-to-string-registry");ko({target:"Symbol",stat:!0,forced:!Do},{for:function(e){var t=No(e);if(Mo(qo,t))return qo[t];var n=Fo("Symbol")(t);return qo[t]=n,_o[n]=t,n}});var Bo=On,Lo=We,Uo=Ee,Jo=openapi_parser_Se,Vo=Io,Go=Ue("symbol-to-string-registry");Bo({target:"Symbol",stat:!0,forced:!Vo},{keyFor:function(e){if(!Uo(e))throw TypeError(Jo(e)+" is not a symbol");if(Lo(Go,e))return Go[e]}});var zo=openapi_parser_d([].slice),Ho=Vi,Wo=openapi_parser_P,Xo=openapi_parser_j,Yo=lr,Ko=openapi_parser_d([].push),Qo=On,Zo=se,ec=openapi_parser_f,tc=openapi_parser_I,nc=openapi_parser_d,rc=openapi_parser_i,ic=openapi_parser_P,sc=Ee,oc=zo,cc=function(e){if(Wo(e))return e;if(Ho(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?Ko(n,i):"number"!=typeof i&&"Number"!=Xo(i)&&"String"!=Xo(i)||Ko(n,Yo(i))}var s=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(Ho(this))return t;for(var r=0;r<s;r++)if(n[r]===e)return t}}},ac=ye,uc=String,fc=Zo("JSON","stringify"),lc=nc(/./.exec),hc=nc("".charAt),pc=nc("".charCodeAt),mc=nc("".replace),dc=nc(1..toString),vc=/[\uD800-\uDFFF]/g,yc=/^[\uD800-\uDBFF]$/,bc=/^[\uDC00-\uDFFF]$/,jc=!ac||rc((function(){var e=Zo("Symbol")();return"[null]"!=fc([e])||"{}"!=fc({a:e})||"{}"!=fc(Object(e))})),gc=rc((function(){return'"\\udf06\\ud834"'!==fc("\udf06\ud834")||'"\\udead"'!==fc("\udead")})),wc=function(e,t){var n=oc(arguments),r=cc(t);if(ic(r)||void 0!==e&&!sc(e))return n[1]=function(e,t){if(ic(r)&&(t=tc(r,this,uc(e),t)),!sc(t))return t},ec(fc,null,n)},Oc=function(e,t,n){var r=hc(n,t-1),i=hc(n,t+1);return lc(yc,e)&&!lc(bc,i)||lc(bc,e)&&!lc(yc,r)?"\\u"+dc(pc(e,0),16):e};fc&&Qo({target:"JSON",stat:!0,arity:3,forced:jc||gc},{stringify:function(e,t,n){var r=oc(arguments),i=ec(jc?wc:fc,null,r);return gc&&"string"==typeof i?mc(i,vc,Oc):i}});var Ec=ei,xc=Ge;On({target:"Object",stat:!0,forced:!ye||openapi_parser_i((function(){Ec.f(1)}))},{getOwnPropertySymbols:function(e){var t=Ec.f;return t?t(xc(e)):[]}});const Sc=openapi_parser_e(ee.Object.getOwnPropertySymbols);var Pc=openapi_parser_i,$c=pe,Ac=at("species"),Tc=function(e){return $c>=51||!Pc((function(){var t=[];return(t.constructor={})[Ac]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Rc=Es.filter;On({target:"Array",proto:!0,forced:!Tc("filter")},{filter:function(e){return Rc(this,e,arguments.length>1?arguments[1]:void 0)}});var Ic=ee,kc=function(e){return Ic[e+"Prototype"]},Fc=kc("Array").filter,Mc=oe,Nc=Fc,Cc=Array.prototype;const Dc=openapi_parser_e((function(e){var t=e.filter;return e===Cc||Mc(Cc,e)&&t===Cc.filter?Nc:t}));var qc={exports:{}},_c=On,Bc=openapi_parser_i,Lc=openapi_parser_Y,Uc=openapi_parser_$.f,Jc=A;_c({target:"Object",stat:!0,forced:!Jc||Bc((function(){Uc(1)})),sham:!Jc},{getOwnPropertyDescriptor:function(e,t){return Uc(Lc(e),t)}});var Vc=ee.Object,Gc=qc.exports=function(e,t){return Vc.getOwnPropertyDescriptor(e,t)};Vc.getOwnPropertyDescriptor.sham&&(Gc.sham=!0);const zc=openapi_parser_e(qc.exports);var Hc=A,Wc=Vi,Xc=TypeError,Yc=Object.getOwnPropertyDescriptor,Kc=Hc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),Qc=TypeError,Zc=function(e){if(e>9007199254740991)throw Qc("Maximum allowed index exceeded");return e},ea=Ge,ta=Mn,na=Kc?function(e,t){if(Wc(e)&&!Yc(e,"length").writable)throw Xc("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},ra=Zc;On({target:"Array",proto:!0,arity:1,forced:openapi_parser_i((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=ea(this),n=ta(t),r=arguments.length;ra(n+r);for(var i=0;i<r;i++)t[n]=arguments[i],n++;return na(t,n),n}});var ia=kc("Array").push,sa=oe,oa=ia,ca=Array.prototype;const aa=openapi_parser_e((function(e){var t=e.push;return e===ca||sa(ca,e)&&t===ca.push?oa:t}));var ua,fa,la,ha={},pa=A,ma=We,da=Function.prototype,va=pa&&Object.getOwnPropertyDescriptor,ya=ma(da,"name"),ba={EXISTS:ya,PROPER:ya&&"something"===function(){}.name,CONFIGURABLE:ya&&(!pa||pa&&va(da,"name").configurable)},ja=!openapi_parser_i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ga=We,wa=openapi_parser_P,Oa=Ge,Ea=ja,xa=Er("IE_PROTO"),Sa=Object,Pa=Sa.prototype,$a=Ea?Sa.getPrototypeOf:function(e){var t=Oa(e);if(ga(t,xa))return t[xa];var n=t.constructor;return wa(n)&&t instanceof n?n.prototype:t instanceof Sa?Pa:null},Aa=openapi_parser_i,Ta=openapi_parser_P,Ra=openapi_parser_Z,Ia=Nr,ka=$a,Fa=ni,Ma=at("iterator"),Na=!1;[].keys&&("next"in(la=[].keys())?(fa=ka(ka(la)))!==Object.prototype&&(ua=fa):Na=!0);var Ca=!Ra(ua)||Aa((function(){var e={};return ua[Ma].call(e)!==e}));Ta((ua=Ca?{}:Ia(ua))[Ma])||Fa(ua,Ma,(function(){return this}));var Da={IteratorPrototype:ua,BUGGY_SAFARI_ITERATORS:Na},qa=Da.IteratorPrototype,_a=Nr,Ba=openapi_parser_q,La=$i,Ua=ha,Ja=function(){return this},Va=On,Ga=openapi_parser_I,za=ba,Ha=function(e,t,n,r){var i=t+" Iterator";return e.prototype=_a(qa,{next:Ba(+!r,n)}),La(e,i,!1,!0),Ua[i]=Ja,e},Wa=$a,Xa=$i,Ya=ni,Ka=ha,Qa=Da,Za=za.PROPER,eu=Qa.BUGGY_SAFARI_ITERATORS,tu=at("iterator"),nu=function(){return this},ru=function(e,t,n,r,i,s,o){Ha(n,t,r);var c,a,u,f=function(e){if(e===i&&d)return d;if(!eu&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",h=!1,p=e.prototype,m=p[tu]||p["@@iterator"]||i&&p[i],d=!eu&&m||f(i),v="Array"==t&&p.entries||m;if(v&&(c=Wa(v.call(new e)))!==Object.prototype&&c.next&&(Xa(c,l,!0,!0),Ka[l]=nu),Za&&"values"==i&&m&&"values"!==m.name&&(h=!0,d=function(){return Ga(m,this)}),i)if(a={values:f("values"),keys:s?d:f("keys"),entries:f("entries")},o)for(u in a)(eu||h||!(u in p))&&Ya(p,u,a[u]);else Va({target:t,proto:!0,forced:eu||h},a);return o&&p[tu]!==d&&Ya(p,tu,d,{name:i}),Ka[t]=d,a},iu=function(e,t){return{value:e,done:t}},su=openapi_parser_Y,ou=ha,cu=Ui;Ht.f;var au=ru,uu=iu,fu=cu.set,lu=cu.getterFor("Array Iterator");au(Array,"Array",(function(e,t){fu(this,{type:"Array Iterator",target:su(e),index:0,kind:t})}),(function(){var e=lu(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,uu(void 0,!0)):uu("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),ou.Arguments=ou.Array;var hu={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},pu=openapi_parser_r,mu=ar,du=fn,vu=ha,yu=at("toStringTag");for(var bu in hu){var ju=pu[bu],gu=ju&&ju.prototype;gu&&mu(gu)!==yu&&du(gu,yu,bu),vu[bu]=vu.Array}var wu=openapi_parser_i,Ou=function(e,t){var n=[][e];return!!n&&wu((function(){n.call(null,t||function(){return 1},1)}))},Eu=Es.forEach,xu=Ou("forEach")?[].forEach:function(e){return Eu(this,e,arguments.length>1?arguments[1]:void 0)};On({target:"Array",proto:!0,forced:[].forEach!=xu},{forEach:xu});var Su=kc("Array").forEach,Pu=ar,$u=We,Au=oe,Tu=Su,Ru=Array.prototype,Iu={DOMTokenList:!0,NodeList:!0};const ku=openapi_parser_e((function(e){var t=e.forEach;return e===Ru||Au(Ru,e)&&t===Ru.forEach||$u(Iu,Pu(e))?Tu:t}));var Fu=se,Mu=Cr,Nu=ei,Cu=Qt,Du=openapi_parser_d([].concat),qu=Fu("Reflect","ownKeys")||function(e){var t=Mu.f(Cu(e)),n=Nu.f;return n?Du(t,n(e)):t},_u=qu,Bu=openapi_parser_Y,Lu=openapi_parser_$,Uu=Jr;On({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Bu(e),i=Lu.f,s=_u(r),o={},c=0;s.length>c;)void 0!==(n=i(r,t=s[c++]))&&Uu(o,t,n);return o}});const Ju=openapi_parser_e(ee.Object.getOwnPropertyDescriptors);var Vu={exports:{}},Gu=On,zu=A,Hu=hr.f;Gu({target:"Object",stat:!0,forced:Object.defineProperties!==Hu,sham:!zu},{defineProperties:Hu});var Wu=ee.Object,Xu=Vu.exports=function(e,t){return Wu.defineProperties(e,t)};Wu.defineProperties.sham&&(Xu.sham=!0);const Yu=openapi_parser_e(Vu.exports);var Ku={exports:{}},Qu=On,Zu=A,ef=Ht.f;Qu({target:"Object",stat:!0,forced:Object.defineProperty!==ef,sham:!Zu},{defineProperty:ef});var tf=ee.Object,nf=Ku.exports=function(e,t,n){return tf.defineProperty(e,t,n)};tf.defineProperty.sham&&(nf.sham=!0);const rf=openapi_parser_e(Ku.exports);var sf=On,of=openapi_parser_i,cf=Vi,af=openapi_parser_Z,uf=Ge,ff=Mn,lf=Zc,hf=Jr,pf=ds,mf=Tc,df=pe,vf=at("isConcatSpreadable"),yf=df>=51||!of((function(){var e=[];return e[vf]=!1,e.concat()[0]!==e})),bf=function(e){if(!af(e))return!1;var t=e[vf];return void 0!==t?!!t:cf(e)};sf({target:"Array",proto:!0,arity:1,forced:!yf||!mf("concat")},{concat:function(e){var t,n,r,i,s,o=uf(this),c=pf(o,0),a=0;for(t=-1,r=arguments.length;t<r;t++)if(bf(s=-1===t?o:arguments[t]))for(i=ff(s),lf(a+i),n=0;n<i;n++,a++)n in s&&hf(c,a,s[n]);else lf(a+1),hf(c,a++,s);return c.length=a,c}}),pi("asyncIterator"),pi("hasInstance"),pi("isConcatSpreadable"),pi("iterator"),pi("match"),pi("matchAll"),pi("replace"),pi("search"),pi("species"),pi("split");var jf=bi;pi("toPrimitive"),jf();var gf=se,wf=$i;pi("toStringTag"),wf(gf("Symbol"),"Symbol"),pi("unscopables"),$i(openapi_parser_r.JSON,"JSON",!0);var Of=ee.Symbol,Ef=at,xf=Ht.f,Sf=Ef("metadata"),Pf=Function.prototype;void 0===Pf[Sf]&&xf(Pf,Sf,{value:null}),pi("dispose"),pi("metadata");var $f=Of;pi("asyncDispose");var Af=openapi_parser_d,Tf=se("Symbol"),Rf=Tf.keyFor,If=Af(Tf.prototype.valueOf),kf=Tf.isRegisteredSymbol||function(e){try{return void 0!==Rf(If(e))}catch(e){return!1}};On({target:"Symbol",stat:!0},{isRegisteredSymbol:kf});for(var Ff=Ue,Mf=se,Nf=openapi_parser_d,Cf=Ee,Df=at,qf=Mf("Symbol"),_f=qf.isWellKnownSymbol,Bf=Mf("Object","getOwnPropertyNames"),Lf=Nf(qf.prototype.valueOf),Uf=Ff("wks"),Jf=0,Vf=Bf(qf),Gf=Vf.length;Jf<Gf;Jf++)try{var zf=Vf[Jf];Cf(qf[zf])&&Df(zf)}catch(e){}var Hf=function(e){if(_f&&_f(e))return!0;try{for(var t=Lf(e),n=0,r=Bf(Uf),i=r.length;n<i;n++)if(Uf[r[n]]==t)return!0}catch(e){}return!1};On({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Hf}),pi("matcher"),pi("observable"),On({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:kf}),On({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Hf}),pi("metadataKey"),pi("patternMatch"),pi("replaceAll");const Wf=openapi_parser_e($f);var Xf=openapi_parser_d,Yf=Pn,Kf=lr,Qf=H,Zf=Xf("".charAt),el=Xf("".charCodeAt),tl=Xf("".slice),nl=function(e){return function(t,n){var r,i,s=Kf(Qf(t)),o=Yf(n),c=s.length;return o<0||o>=c?e?"":void 0:(r=el(s,o))<55296||r>56319||o+1===c||(i=el(s,o+1))<56320||i>57343?e?Zf(s,o):r:e?tl(s,o,o+2):i-56320+(r-55296<<10)+65536}},rl={codeAt:nl(!1),charAt:nl(!0)}.charAt,il=lr,sl=Ui,ol=ru,cl=iu,al=sl.set,ul=sl.getterFor("String Iterator");ol(String,"String",(function(e){al(this,{type:"String Iterator",string:il(e),index:0})}),(function(){var e,t=ul(this),n=t.string,r=t.index;return r>=n.length?cl(void 0,!0):(e=rl(n,r),t.index+=e.length,cl(e,!1))}));const fl=openapi_parser_e(ii.f("iterator"));function ll(e){return ll="function"==typeof Wf&&"symbol"==typeof fl?function(e){return typeof e}:function(e){return e&&"function"==typeof Wf&&e.constructor===Wf&&e!==Wf.prototype?"symbol":typeof e},ll(e)}const hl=openapi_parser_e(ii.f("toPrimitive"));function pl(e){var t=function(e,t){if("object"!==ll(e)||null===e)return e;var n=e[hl];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ll(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ll(t)?t:String(t)}function ml(e,t,n){return(t=pl(t))in e?rf(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dl(e,t){var n=Zn(e);if(Sc){var r=Sc(e);t&&(r=Dc(r).call(r,(function(t){return zc(e,t).enumerable}))),aa(n).apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?ku(n=dl(Object(i),!0)).call(n,(function(t){ml(e,t,i[t])})):Ju?Yu(e,Ju(i)):ku(r=dl(Object(i))).call(r,(function(t){rf(e,t,zc(i,t))}))}return e}var yl={},bl={exports:{}};!function(e,t){!function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,s="object"==typeof global&&global;s.global!==s&&s.window!==s&&s.self!==s||(n=s);var o,c,a=2147483647,u=36,f=/^xn--/,l=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,d=String.fromCharCode;function v(e){throw RangeError(p[e])}function y(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function b(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+y((e=e.replace(h,".")).split("."),t).join(".")}function j(e){for(var t,n,r=[],i=0,s=e.length;i<s;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<s?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function g(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 w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,n){var r=0;for(e=n?m(e/700):e>>1,e+=m(e/t);e>455;r+=u)e=m(e/35);return m(r+36*e/(e+38))}function E(e){var t,n,r,i,s,o,c,f,l,h,p,d=[],y=e.length,b=0,j=128,w=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&v("not-basic"),d.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(s=b,o=1,c=u;i>=y&&v("invalid-input"),((f=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:u)>=u||f>m((a-b)/o))&&v("overflow"),b+=f*o,!(f<(l=c<=w?1:c>=w+26?26:c-w));c+=u)o>m(a/(h=u-l))&&v("overflow"),o*=h;w=O(b-s,t=d.length+1,0==s),m(b/t)>a-j&&v("overflow"),j+=m(b/t),b%=t,d.splice(b++,0,j)}return g(d)}function x(e){var t,n,r,i,s,o,c,f,l,h,p,y,b,g,E,x=[];for(y=(e=j(e)).length,t=128,n=0,s=72,o=0;o<y;++o)(p=e[o])<128&&x.push(d(p));for(r=i=x.length,i&&x.push("-");r<y;){for(c=a,o=0;o<y;++o)(p=e[o])>=t&&p<c&&(c=p);for(c-t>m((a-n)/(b=r+1))&&v("overflow"),n+=(c-t)*b,t=c,o=0;o<y;++o)if((p=e[o])<t&&++n>a&&v("overflow"),p==t){for(f=n,l=u;!(f<(h=l<=s?1:l>=s+26?26:l-s));l+=u)E=f-h,g=u-h,x.push(d(w(h+E%g,0))),f=m(E/g);x.push(d(w(f,0))),s=O(n,b,r==i),n=0,++r}++n,++t}return x.join("")}if(o={version:"1.3.2",ucs2:{decode:j,encode:g},decode:E,encode:x,toASCII:function(e){return b(e,(function(e){return l.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return b(e,(function(e){return f.test(e)?E(e.slice(4).toLowerCase()):e}))}},r&&i)if(e.exports==r)i.exports=o;else for(c in o)o.hasOwnProperty(c)&&(r[c]=o[c]);else n.punycode=o}(this)}(bl,bl.exports);var jl=bl.exports,gl={};function wl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ol=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};gl.decode=gl.parse=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(t);var o=1e3;r&&"number"==typeof r.maxKeys&&(o=r.maxKeys);var c=e.length;o>0&&c>o&&(c=o);for(var a=0;a<c;++a){var u,f,l,h,p=e[a].replace(s,"%20"),m=p.indexOf(n);m>=0?(u=p.substr(0,m),f=p.substr(m+1)):(u=p,f=""),l=decodeURIComponent(u),h=decodeURIComponent(f),wl(i,l)?Array.isArray(i[l])?i[l].push(h):i[l]=[i[l],h]:i[l]=h}return i},gl.encode=gl.stringify=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var i=encodeURIComponent(Ol(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return i+encodeURIComponent(Ol(e))})).join(t):i+encodeURIComponent(Ol(e[r]))})).join(t):r?encodeURIComponent(Ol(r))+n+encodeURIComponent(Ol(e)):""};var El=jl,xl={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 Sl(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}yl.parse=_l,yl.resolve=function(e,t){return _l(e,!1,!0).resolve(t)},yl.resolveObject=function(e,t){return e?_l(e,!1,!0).resolveObject(t):t},yl.format=function(e){xl.isString(e)&&(e=_l(e));return e instanceof Sl?e.format():Sl.prototype.format.call(e)},yl.Url=Sl;var Pl=/^([a-z0-9.+-]+:)/i,$l=/:[0-9]*$/,Al=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Tl=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Rl=["'"].concat(Tl),Il=["%","/","?",";","#"].concat(Rl),kl=["/","?","#"],Fl=/^[+a-z0-9A-Z_-]{0,63}$/,Ml=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Nl={javascript:!0,"javascript:":!0},Cl={javascript:!0,"javascript:":!0},Dl={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ql=gl;function _l(e,t,n){if(e&&xl.isObject(e)&&e instanceof Sl)return e;var r=new Sl;return r.parse(e,t,n),r}Sl.prototype.parse=function(e,t,n){if(!xl.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",s=e.split(i);s[0]=s[0].replace(/\\/g,"/");var o=e=s.join(i);if(o=o.trim(),!n&&1===e.split("#").length){var c=Al.exec(o);if(c)return this.path=o,this.href=o,this.pathname=c[1],c[2]?(this.search=c[2],this.query=t?ql.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var a=Pl.exec(o);if(a){var u=(a=a[0]).toLowerCase();this.protocol=u,o=o.substr(a.length)}if(n||a||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===o.substr(0,2);!f||a&&Cl[a]||(o=o.substr(2),this.slashes=!0)}if(!Cl[a]&&(f||a&&!Dl[a])){for(var l,h,p=-1,m=0;m<kl.length;m++){-1!==(d=o.indexOf(kl[m]))&&(-1===p||d<p)&&(p=d)}-1!==(h=-1===p?o.lastIndexOf("@"):o.lastIndexOf("@",p))&&(l=o.slice(0,h),o=o.slice(h+1),this.auth=decodeURIComponent(l)),p=-1;for(m=0;m<Il.length;m++){var d;-1!==(d=o.indexOf(Il[m]))&&(-1===p||d<p)&&(p=d)}-1===p&&(p=o.length),this.host=o.slice(0,p),o=o.slice(p),this.parseHost(),this.hostname=this.hostname||"";var v="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!v)for(var y=this.hostname.split(/\./),b=(m=0,y.length);m<b;m++){var j=y[m];if(j&&!j.match(Fl)){for(var g="",w=0,O=j.length;w<O;w++)j.charCodeAt(w)>127?g+="x":g+=j[w];if(!g.match(Fl)){var E=y.slice(0,m),x=y.slice(m+1),S=j.match(Ml);S&&(E.push(S[1]),x.unshift(S[2])),x.length&&(o="/"+x.join(".")+o),this.hostname=E.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=El.toASCII(this.hostname));var P=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+P,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!Nl[u])for(m=0,b=Rl.length;m<b;m++){var A=Rl[m];if(-1!==o.indexOf(A)){var T=encodeURIComponent(A);T===A&&(T=escape(A)),o=o.split(A).join(T)}}var R=o.indexOf("#");-1!==R&&(this.hash=o.substr(R),o=o.slice(0,R));var I=o.indexOf("?");if(-1!==I?(this.search=o.substr(I),this.query=o.substr(I+1),t&&(this.query=ql.parse(this.query)),o=o.slice(0,I)):t&&(this.search="",this.query={}),o&&(this.pathname=o),Dl[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){P=this.pathname||"";var k=this.search||"";this.path=P+k}return this.href=this.format(),this},Sl.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&xl.isObject(this.query)&&Object.keys(this.query).length&&(s=ql.stringify(this.query));var o=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||Dl[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),t+i+n+(o=o.replace("#","%23"))+r},Sl.prototype.resolve=function(e){return this.resolveObject(_l(e,!1,!0)).format()},Sl.prototype.resolveObject=function(e){if(xl.isString(e)){var t=new Sl;t.parse(e,!1,!0),e=t}for(var n=new Sl,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var o=Object.keys(e),c=0;c<o.length;c++){var a=o[c];"protocol"!==a&&(n[a]=e[a])}return Dl[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Dl[e.protocol]){for(var u=Object.keys(e),f=0;f<u.length;f++){var l=u[f];n[l]=e[l]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||Cl[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",m=n.search||"";n.path=p+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var d=n.pathname&&"/"===n.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=v||d||n.host&&e.pathname,b=y,j=n.pathname&&n.pathname.split("/")||[],g=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!Dl[n.protocol]);if(g&&(n.hostname="",n.port=null,n.host&&(""===j[0]?j[0]=n.host:j.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),y=y&&(""===h[0]||""===j[0])),v)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,j=h;else if(h.length)j||(j=[]),j.pop(),j=j.concat(h),n.search=e.search,n.query=e.query;else if(!xl.isNullOrUndefined(e.search)){if(g)n.hostname=n.host=j.shift(),(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift());return n.search=e.search,n.query=e.query,xl.isNull(n.pathname)&&xl.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!j.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=j.slice(-1)[0],O=(n.host||e.host||j.length>1)&&("."===w||".."===w)||""===w,E=0,x=j.length;x>=0;x--)"."===(w=j[x])?j.splice(x,1):".."===w?(j.splice(x,1),E++):E&&(j.splice(x,1),E--);if(!y&&!b)for(;E--;E)j.unshift("..");!y||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),O&&"/"!==j.join("/").substr(-1)&&j.push("");var S,P=""===j[0]||j[0]&&"/"===j[0].charAt(0);g&&(n.hostname=n.host=P?"":j.length?j.shift():"",(S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=S.shift(),n.host=n.hostname=S.shift()));return(y=y||n.host&&j.length)&&!P&&j.unshift(""),j.length?n.pathname=j.join("/"):(n.pathname=null,n.path=null),xl.isNull(n.pathname)&&xl.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Sl.prototype.parseHost=function(){var e=this.host,t=$l.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},function(){!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,o="ArrayBuffer"in e;if(o)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(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 f(e){return"string"!=typeof e&&(e=String(e)),e}function l(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 p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(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:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=v(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"))},i&&(this.blob=function(){var e=p(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?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(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(g)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=u(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[u(e)]},h.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},h.prototype.set=function(e,t){this.map[u(e)]=f(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)})),l(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),l(e)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function j(e,t){var n=(t=t||{}).body;if(e instanceof j){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,n||null==e._bodyInit||(n=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=function(e){var t=e.toUpperCase();return b.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(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)}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})},y.call(j.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];w.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new w(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 E(e,n){return new Promise((function(r,s){var o=new j(e,n);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function a(){c.abort()}c.onload=function(){var e,t,n={status:c.status,statusText:c.statusText,headers:(e=c.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 i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var i="response"in c?c.response:c.responseText;r(new w(i,n))},c.onerror=function(){s(new TypeError("Network request failed"))},c.ontimeout=function(){s(new TypeError("Network request failed"))},c.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},c.open(o.method,o.url,!0),"include"===o.credentials?c.withCredentials=!0:"omit"===o.credentials&&(c.withCredentials=!1),"responseType"in c&&i&&(c.responseType="blob"),o.headers.forEach((function(e,t){c.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),c.onreadystatechange=function(){4===c.readyState&&o.signal.removeEventListener("abort",a)}),c.send(void 0===o._bodyInit?null:o._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=h,e.Request=j,e.Response=w),t.Headers=h,t.Request=j,t.Response=w,t.fetch=E,Object.defineProperty(t,"t",{value:!0})}({})}("undefined"!=typeof self?self:this)}();var Bl="undefined"!=typeof Symbol&&Symbol,Ll=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 i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},Ul="Function.prototype.bind called on incompatible ",Jl=Array.prototype.slice,Vl=Object.prototype.toString,Gl=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Vl.call(t))throw new TypeError(Ul+t);for(var n,r=Jl.call(arguments,1),i=function(){if(this instanceof n){var i=t.apply(this,r.concat(Jl.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(Jl.call(arguments)))},s=Math.max(0,t.length-r.length),o=[],c=0;c<s;c++)o.push("$"+c);if(n=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var a=function(){};a.prototype=t.prototype,n.prototype=new a,a.prototype=null}return n},zl=Function.prototype.bind||Gl,Hl=zl.call(Function.call,Object.prototype.hasOwnProperty),Wl=SyntaxError,Xl=Function,Yl=TypeError,Kl=function(e){try{return Xl('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ql=Object.getOwnPropertyDescriptor;if(Ql)try{Ql({},"")}catch(e){Ql=null}var Zl=function(){throw new Yl},eh=Ql?function(){try{return Zl}catch(e){try{return Ql(arguments,"callee").get}catch(e){return Zl}}}():Zl,th="function"==typeof Bl&&"function"==typeof Symbol&&"symbol"==typeof Bl("foo")&&"symbol"==typeof Symbol("bar")&&Ll(),nh=Object.getPrototypeOf||function(e){return e.__proto__},rh={},ih="undefined"==typeof Uint8Array?undefined:nh(Uint8Array),sh={"%AggregateError%":"undefined"==typeof AggregateError?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":th?nh([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":rh,"%AsyncGenerator%":rh,"%AsyncGeneratorFunction%":rh,"%AsyncIteratorPrototype%":rh,"%Atomics%":"undefined"==typeof Atomics?undefined:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?undefined:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined:FinalizationRegistry,"%Function%":Xl,"%GeneratorFunction%":rh,"%Int8Array%":"undefined"==typeof Int8Array?undefined:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":th?nh(nh([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":"undefined"==typeof Map?undefined:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&th?nh((new Map)[Symbol.iterator]()):undefined,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&th?nh((new Set)[Symbol.iterator]()):undefined,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":th?nh(""[Symbol.iterator]()):undefined,"%Symbol%":th?Symbol:undefined,"%SyntaxError%":Wl,"%ThrowTypeError%":eh,"%TypedArray%":ih,"%TypeError%":Yl,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined:WeakSet},oh=function e(t){var n;if("%AsyncFunction%"===t)n=Kl("async function () {}");else if("%GeneratorFunction%"===t)n=Kl("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Kl("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=nh(i.prototype))}return sh[t]=n,n},ch={"%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"]},ah=zl,uh=Hl,fh=ah.call(Function.call,Array.prototype.concat),lh=ah.call(Function.apply,Array.prototype.splice),hh=ah.call(Function.call,String.prototype.replace),ph=ah.call(Function.call,String.prototype.slice),mh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dh=/\\(\\)?/g,vh=function(e){var t=ph(e,0,1),n=ph(e,-1);if("%"===t&&"%"!==n)throw new Wl("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new Wl("invalid intrinsic syntax, expected opening `%`");var r=[];return hh(e,mh,(function(e,t,n,i){r[r.length]=n?hh(i,dh,"$1"):t||e})),r},yh=function(e,t){var n,r=e;if(uh(ch,r)&&(r="%"+(n=ch[r])[0]+"%"),uh(sh,r)){var i=sh[r];if(i===rh&&(i=oh(r)),void 0===i&&!t)throw new Yl("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new Wl("intrinsic "+e+" does not exist!")},bh=function(e,t){if("string"!=typeof e||0===e.length)throw new Yl("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Yl('"allowMissing" argument must be a boolean');var n=vh(e),r=n.length>0?n[0]:"",i=yh("%"+r+"%",t),s=i.name,o=i.value,c=!1,a=i.alias;a&&(r=a[0],lh(n,fh([0,1],a)));for(var u=1,f=!0;u<n.length;u+=1){var l=n[u],h=ph(l,0,1),p=ph(l,-1);if(('"'===h||"'"===h||"`"===h||'"'===p||"'"===p||"`"===p)&&h!==p)throw new Wl("property names with quotes must have matching quotes");if("constructor"!==l&&f||(c=!0),uh(sh,s="%"+(r+="."+l)+"%"))o=sh[s];else if(null!=o){if(!(l in o)){if(!t)throw new Yl("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ql&&u+1>=n.length){var m=Ql(o,l);o=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:o[l]}else f=uh(o,l),o=o[l];f&&!c&&(sh[s]=o)}}return o},jh={exports:{}};!function(e){var t=zl,n=bh,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(i,r),o=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),a=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var n=s(t,i,arguments);if(o&&c){var r=o(n,"length");r.configurable&&c(n,"length",{value:1+a(0,e.length-(arguments.length-1))})}return n};var u=function(){return s(t,r,arguments)};c?c(e.exports,"apply",{value:u}):e.exports.apply=u}(jh);var gh=bh,wh=jh.exports,Oh=wh(gh("String.prototype.indexOf"));const Eh=openapi_parser_t(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xh="function"==typeof Map&&Map.prototype,Sh=Object.getOwnPropertyDescriptor&&xh?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ph=xh&&Sh&&"function"==typeof Sh.get?Sh.get:null,$h=xh&&Map.prototype.forEach,Ah="function"==typeof Set&&Set.prototype,Th=Object.getOwnPropertyDescriptor&&Ah?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Rh=Ah&&Th&&"function"==typeof Th.get?Th.get:null,Ih=Ah&&Set.prototype.forEach,kh="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Fh="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Mh="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Nh=Boolean.prototype.valueOf,Ch=Object.prototype.toString,Dh=Function.prototype.toString,qh=String.prototype.match,_h=String.prototype.slice,Bh=String.prototype.replace,Lh=String.prototype.toUpperCase,Uh=String.prototype.toLowerCase,Jh=RegExp.prototype.test,Vh=Array.prototype.concat,Gh=Array.prototype.join,zh=Array.prototype.slice,Hh=Math.floor,Wh="function"==typeof BigInt?BigInt.prototype.valueOf:null,Xh=Object.getOwnPropertySymbols,Yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Kh="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Qh="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Kh||"symbol")?Symbol.toStringTag:null,Zh=Object.prototype.propertyIsEnumerable,ep=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function tp(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Jh.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-Hh(-e):Hh(e);if(r!==e){var i=String(r),s=_h.call(t,i.length+1);return Bh.call(i,n,"$&_")+"."+Bh.call(Bh.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Bh.call(t,n,"$&_")}var np=Eh.custom,rp=np&&cp(np)?np:null;function ip(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function sp(e){return Bh.call(String(e),/"/g,""")}function op(e){return!("[object Array]"!==fp(e)||Qh&&"object"==typeof e&&Qh in e)}function cp(e){if(Kh)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Yh)return!1;try{return Yh.call(e),!0}catch(e){}return!1}var ap=Object.prototype.hasOwnProperty||function(e){return e in this};function up(e,t){return ap.call(e,t)}function fp(e){return Ch.call(e)}function lp(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function hp(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return hp(_h.call(e,0,t.maxStringLength),t)+r}return ip(Bh.call(Bh.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,pp),"single",t)}function pp(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Lh.call(t.toString(16))}function mp(e){return"Object("+e+")"}function dp(e){return e+" { ? }"}function vp(e,t,n,r){return e+" ("+t+") {"+(r?yp(n,r):Gh.call(n,", "))+"}"}function yp(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+Gh.call(e,","+n)+"\n"+t.prev}function bp(e,t){var n=op(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=up(e,i)?t(e[i],e):""}var s,o="function"==typeof Xh?Xh(e):[];if(Kh){s={};for(var c=0;c<o.length;c++)s["$"+o[c]]=o[c]}for(var a in e)up(e,a)&&(n&&String(Number(a))===a&&a<e.length||Kh&&s["$"+a]instanceof Symbol||(Jh.call(/[^\w$]/,a)?r.push(t(a,e)+": "+t(e[a],e)):r.push(a+": "+t(e[a],e))));if("function"==typeof Xh)for(var u=0;u<o.length;u++)Zh.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var jp=bh,gp=function(e,t){var n=gh(e,!!t);return"function"==typeof n&&Oh(e,".prototype.")>-1?wh(n):n},wp=function e(t,n,r,i){var s=n||{};if(up(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(up(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=!up(s,"customInspect")||s.customInspect;if("boolean"!=typeof o&&"symbol"!==o)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(up(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(up(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return hp(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var a=String(t);return c?tp(t,a):a}if("bigint"==typeof t){var u=String(t)+"n";return c?tp(t,u):u}var f=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=f&&f>0&&"object"==typeof t)return op(t)?"[Array]":"[Object]";var l=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Gh.call(Array(e.indent+1)," ")}return{base:n,prev:Gh.call(Array(t+1),n)}}(s,r);if(void 0===i)i=[];else if(lp(i,t)>=0)return"[Circular]";function h(t,n,o){if(n&&(i=zh.call(i)).push(n),o){var c={depth:s.depth};return up(s,"quoteStyle")&&(c.quoteStyle=s.quoteStyle),e(t,c,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var p=function(e){if(e.name)return e.name;var t=qh.call(Dh.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=bp(t,h);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+Gh.call(m,", ")+" }":"")}if(cp(t)){var d=Kh?Bh.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Yh.call(t);return"object"!=typeof t||Kh?d:mp(d)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var v="<"+Uh.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)v+=" "+y[b].name+"="+ip(sp(y[b].value),"double",s);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+Uh.call(String(t.nodeName))+">"}if(op(t)){if(0===t.length)return"[]";var j=bp(t,h);return l&&!function(e){for(var t=0;t<e.length;t++)if(lp(e[t],"\n")>=0)return!1;return!0}(j)?"["+yp(j,l)+"]":"[ "+Gh.call(j,", ")+" ]"}if(function(e){return!("[object Error]"!==fp(e)||Qh&&"object"==typeof e&&Qh in e)}(t)){var g=bp(t,h);return"cause"in t&&!Zh.call(t,"cause")?"{ ["+String(t)+"] "+Gh.call(Vh.call("[cause]: "+h(t.cause),g),", ")+" }":0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Gh.call(g,", ")+" }"}if("object"==typeof t&&o){if(rp&&"function"==typeof t[rp])return t[rp]();if("symbol"!==o&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!Ph||!e||"object"!=typeof e)return!1;try{Ph.call(e);try{Rh.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var w=[];return $h.call(t,(function(e,n){w.push(h(n,t,!0)+" => "+h(e,t))})),vp("Map",Ph.call(t),w,l)}if(function(e){if(!Rh||!e||"object"!=typeof e)return!1;try{Rh.call(e);try{Ph.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var O=[];return Ih.call(t,(function(e){O.push(h(e,t))})),vp("Set",Rh.call(t),O,l)}if(function(e){if(!kh||!e||"object"!=typeof e)return!1;try{kh.call(e,kh);try{Fh.call(e,Fh)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return dp("WeakMap");if(function(e){if(!Fh||!e||"object"!=typeof e)return!1;try{Fh.call(e,Fh);try{kh.call(e,kh)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return dp("WeakSet");if(function(e){if(!Mh||!e||"object"!=typeof e)return!1;try{return Mh.call(e),!0}catch(e){}return!1}(t))return dp("WeakRef");if(function(e){return!("[object Number]"!==fp(e)||Qh&&"object"==typeof e&&Qh in e)}(t))return mp(h(Number(t)));if(function(e){if(!e||"object"!=typeof e||!Wh)return!1;try{return Wh.call(e),!0}catch(e){}return!1}(t))return mp(h(Wh.call(t)));if(function(e){return!("[object Boolean]"!==fp(e)||Qh&&"object"==typeof e&&Qh in e)}(t))return mp(Nh.call(t));if(function(e){return!("[object String]"!==fp(e)||Qh&&"object"==typeof e&&Qh in e)}(t))return mp(h(String(t)));if(!function(e){return!("[object Date]"!==fp(e)||Qh&&"object"==typeof e&&Qh in e)}(t)&&!function(e){return!("[object RegExp]"!==fp(e)||Qh&&"object"==typeof e&&Qh in e)}(t)){var E=bp(t,h),x=ep?ep(t)===Object.prototype:t instanceof Object||t.constructor===Object,S=t instanceof Object?"":"null prototype",P=!x&&Qh&&Object(t)===t&&Qh in t?_h.call(fp(t),8,-1):S?"Object":"",$=(x||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(P||S?"["+Gh.call(Vh.call([],P||[],S||[]),": ")+"] ":"");return 0===E.length?$+"{}":l?$+"{"+yp(E,l)+"}":$+"{ "+Gh.call(E,", ")+" }"}return String(t)},Op=jp("%TypeError%"),Ep=jp("%WeakMap%",!0),xp=jp("%Map%",!0),Sp=gp("WeakMap.prototype.get",!0),Pp=gp("WeakMap.prototype.set",!0),$p=gp("WeakMap.prototype.has",!0),Ap=gp("Map.prototype.get",!0),Tp=gp("Map.prototype.set",!0),Rp=gp("Map.prototype.has",!0),Ip=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},kp=String.prototype.replace,Fp=/%20/g,Mp="RFC3986",Np={default:Mp,formatters:{RFC1738:function(e){return kp.call(e,Fp,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Mp},Cp=Np,Dp=Object.prototype.hasOwnProperty,qp=Array.isArray,_p=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Bp=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},Lp={arrayToObject:Bp,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],s=i.obj[i.prop],o=Object.keys(s),c=0;c<o.length;++c){var a=o[c],u=s[a];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:a}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(qp(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",c=0;c<s.length;++c){var a=s.charCodeAt(c);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||i===Cp.RFC1738&&(40===a||41===a)?o+=s.charAt(c):a<128?o+=_p[a]:a<2048?o+=_p[192|a>>6]+_p[128|63&a]:a<55296||a>=57344?o+=_p[224|a>>12]+_p[128|a>>6&63]+_p[128|63&a]:(c+=1,a=65536+((1023&a)<<10|1023&s.charCodeAt(c)),o+=_p[240|a>>18]+_p[128|a>>12&63]+_p[128|a>>6&63]+_p[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(qp(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(qp(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!Dp.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return qp(t)&&!qp(n)&&(i=Bp(t,r)),qp(t)&&qp(n)?(n.forEach((function(n,i){if(Dp.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return Dp.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),i)}},Up=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new Op("Side channel does not contain "+wp(e))},get:function(r){if(Ep&&r&&("object"==typeof r||"function"==typeof r)){if(e)return Sp(e,r)}else if(xp){if(t)return Ap(t,r)}else if(n)return function(e,t){var n=Ip(e,t);return n&&n.value}(n,r)},has:function(r){if(Ep&&r&&("object"==typeof r||"function"==typeof r)){if(e)return $p(e,r)}else if(xp){if(t)return Rp(t,r)}else if(n)return function(e,t){return!!Ip(e,t)}(n,r);return!1},set:function(r,i){Ep&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new Ep),Pp(e,r,i)):xp?(t||(t=new xp),Tp(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=Ip(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r},Jp=Lp,Vp=Np,Gp=Object.prototype.hasOwnProperty,zp={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Hp=Array.isArray,Wp=String.prototype.split,Xp=Array.prototype.push,Yp=function(e,t){Xp.apply(e,Hp(t)?t:[t])},Kp=Date.prototype.toISOString,Qp=Vp.default,Zp={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Jp.encode,encodeValuesOnly:!1,format:Qp,formatter:Vp.formatters[Qp],indices:!1,serializeDate:function(e){return Kp.call(e)},skipNulls:!1,strictNullHandling:!1},em={},tm=function e(t,n,r,i,s,o,c,a,u,f,l,h,p,m,d){for(var v,y=t,b=d,j=0,g=!1;void 0!==(b=b.get(em))&&!g;){var w=b.get(t);if(j+=1,void 0!==w){if(w===j)throw new RangeError("Cyclic object value");g=!0}void 0===b.get(em)&&(j=0)}if("function"==typeof c?y=c(n,y):y instanceof Date?y=f(y):"comma"===r&&Hp(y)&&(y=Jp.maybeMap(y,(function(e){return e instanceof Date?f(e):e}))),null===y){if(i)return o&&!p?o(n,Zp.encoder,m,"key",l):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||Jp.isBuffer(y)){if(o){var O=p?n:o(n,Zp.encoder,m,"key",l);if("comma"===r&&p){for(var E=Wp.call(String(y),","),x="",S=0;S<E.length;++S)x+=(0===S?"":",")+h(o(E[S],Zp.encoder,m,"value",l));return[h(O)+"="+x]}return[h(O)+"="+h(o(y,Zp.encoder,m,"value",l))]}return[h(n)+"="+h(String(y))]}var P,$=[];if(void 0===y)return $;if("comma"===r&&Hp(y))P=[{value:y.length>0?y.join(",")||null:void 0}];else if(Hp(c))P=c;else{var A=Object.keys(y);P=a?A.sort(a):A}for(var T=0;T<P.length;++T){var R=P[T],I="object"==typeof R&&void 0!==R.value?R.value:y[R];if(!s||null!==I){var k=Hp(y)?"function"==typeof r?r(n,R):n:n+(u?"."+R:"["+R+"]");d.set(t,j);var F=Up();F.set(em,d),Yp($,e(I,k,r,i,s,o,c,a,u,f,l,h,p,m,F))}}return $},nm=Lp,rm=Object.prototype.hasOwnProperty,im=Array.isArray,sm={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:nm.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},om=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},cm=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},am=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,o=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=o?i.slice(0,o.index):i,a=[];if(c){if(!n.plainObjects&&rm.call(Object.prototype,c)&&!n.allowPrototypes)return;a.push(c)}for(var u=0;n.depth>0&&null!==(o=s.exec(i))&&u<n.depth;){if(u+=1,!n.plainObjects&&rm.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;a.push(o[1])}return o&&a.push("["+i.slice(o.index)+"]"),function(e,t,n,r){for(var i=r?t:cm(t,n),s=e.length-1;s>=0;--s){var o,c=e[s];if("[]"===c&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(a,10);n.parseArrays||""!==a?!isNaN(u)&&c!==a&&String(u)===a&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=i:"__proto__"!==a&&(o[a]=i):o={0:i}}i=o}return i}(a,t,n,r)}},um=function(e,t){var n,r=e,i=function(e){if(!e)return Zp;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Zp.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Vp.default;if(void 0!==e.format){if(!Gp.call(Vp.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Vp.formatters[n],i=Zp.filter;return("function"==typeof e.filter||Hp(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Zp.addQueryPrefix,allowDots:void 0===e.allowDots?Zp.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Zp.charsetSentinel,delimiter:void 0===e.delimiter?Zp.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Zp.encode,encoder:"function"==typeof e.encoder?e.encoder:Zp.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Zp.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Zp.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Zp.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Zp.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):Hp(i.filter)&&(n=i.filter);var s,o=[];if("object"!=typeof r||null===r)return"";s=t&&t.arrayFormat in zp?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var c=zp[s];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var a=Up(),u=0;u<n.length;++u){var f=n[u];i.skipNulls&&null===r[f]||Yp(o,tm(r[f],f,c,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,a))}var l=o.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),l.length>0?h+l:""},fm=function(e,t){var n=function(e){if(!e)return sm;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?sm.charset:e.charset;return{allowDots:void 0===e.allowDots?sm.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:sm.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:sm.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:sm.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:sm.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:sm.comma,decoder:"function"==typeof e.decoder?e.decoder:sm.decoder,delimiter:"string"==typeof e.delimiter||nm.isRegExp(e.delimiter)?e.delimiter:sm.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:sm.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:sm.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:sm.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:sm.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:sm.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,s),c=-1,a=t.charset;if(t.charsetSentinel)for(n=0;n<o.length;++n)0===o[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===o[n]?a="utf-8":"utf8=%26%2310003%3B"===o[n]&&(a="iso-8859-1"),c=n,n=o.length);for(n=0;n<o.length;++n)if(n!==c){var u,f,l=o[n],h=l.indexOf("]="),p=-1===h?l.indexOf("="):h+1;-1===p?(u=t.decoder(l,sm.decoder,a,"key"),f=t.strictNullHandling?null:""):(u=t.decoder(l.slice(0,p),sm.decoder,a,"key"),f=nm.maybeMap(cm(l.slice(p+1),t),(function(e){return t.decoder(e,sm.decoder,a,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===a&&(f=om(f)),l.indexOf("[]=")>-1&&(f=im(f)?[f]:f),rm.call(r,u)?r[u]=nm.combine(r[u],f):r[u]=f}return r}(e,n):e,i=n.plainObjects?Object.create(null):{},s=Object.keys(r),o=0;o<s.length;++o){var c=s[o],a=am(c,r[c],n,"string"==typeof e);i=nm.merge(i,a,n)}return!0===n.allowSparse?i:nm.compact(i)};const lm=openapi_parser_e({formats:Np,parse:fm,stringify:um});
|
|
4260
|
-
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function hm(e){return null==e}var pm=function(e,t){var n,r,i,s;if(t)for(n=0,r=(s=Object.keys(t)).length;n<r;n+=1)e[i=s[n]]=t[i];return e},mm={isNothing:hm,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:hm(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:pm};function dm(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function vm(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dm(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}vm.prototype=Object.create(Error.prototype),vm.prototype.constructor=vm,vm.prototype.toString=function(e){return this.name+": "+dm(this,e)};var ym=vm;function bm(e,t,n,r,i){var s="",o="",c=Math.floor(i/2)-1;return r-t>c&&(t=r-c+(s=" ... ").length),n-r>c&&(n=r+c-(o=" ...").length),{str:s+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+s.length}}function jm(e,t){return mm.repeat(" ",t-e.length)+e}var gm=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],s=[],o=-1;n=r.exec(e.buffer);)s.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var c,a,u="",f=Math.min(e.line+t.linesAfter,s.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)a=bm(e.buffer,i[o-c],s[o-c],e.position-(i[o]-i[o-c]),l),u=mm.repeat(" ",t.indent)+jm((e.line-c+1).toString(),f)+" | "+a.str+"\n"+u;for(a=bm(e.buffer,i[o],s[o],e.position,l),u+=mm.repeat(" ",t.indent)+jm((e.line+1).toString(),f)+" | "+a.str+"\n",u+=mm.repeat("-",t.indent+f+3+a.pos)+"^\n",c=1;c<=t.linesAfter&&!(o+c>=s.length);c++)a=bm(e.buffer,i[o+c],s[o+c],e.position-(i[o]-i[o+c]),l),u+=mm.repeat(" ",t.indent)+jm((e.line+c+1).toString(),f)+" | "+a.str+"\n";return u.replace(/\n$/,"")},wm=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Om=["scalar","sequence","mapping"];var Em=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===wm.indexOf(t))throw new ym('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===Om.indexOf(this.kind))throw new ym('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function xm(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function Sm(e){return this.extend(e)}Sm.prototype.extend=function(e){var t=[],n=[];if(e instanceof Em)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new ym("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof Em))throw new ym("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new ym("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new ym("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof Em))throw new ym("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(Sm.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=xm(r,"implicit"),r.compiledExplicit=xm(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var Pm=Sm,$m=new Em("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Am=new Em("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),Tm=new Em("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Rm=new Pm({explicit:[$m,Am,Tm]});var Im=new Em("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"},empty:function(){return""}},defaultStyle:"lowercase"});var km=new Em("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 Fm(e){return 48<=e&&e<=55}function Mm(e){return 48<=e&&e<=57}var Nm=new Em("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}if("o"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!Fm(e.charCodeAt(i)))return!1;s=!0}return s&&"_"!==t}}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(!Mm(e.charCodeAt(i)))return!1;s=!0}return!(!s||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!mm.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?"0o"+e.toString(8):"-0o"+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"]}}),Cm=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Dm=/^[-+]?[0-9]+e/;var qm=new Em("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Cm.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||mm.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(mm.isNegativeZero(e))return"-0.0";return n=e.toString(10),Dm.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),_m=Rm.extend({implicit:[Im,km,Nm,qm]}),Bm=_m,Lm=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Um=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]))?))?$");var Jm=new Em("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==Lm.exec(e)||null!==Um.exec(e))},construct:function(e){var t,n,r,i,s,o,c,a,u=0,f=null;if(null===(t=Lm.exec(e))&&(t=Um.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(s=+t[4],o=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),a=new Date(Date.UTC(n,r,i,s,o,c,u)),f&&a.setTime(a.getTime()-f),a},instanceOf:Date,represent:function(e){return e.toISOString()}});var Vm=new Em("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Gm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var zm=new Em("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,s=Gm;for(n=0;n<i;n++)if(!((t=s.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=Gm,o=0,c=[];for(t=0;t<i;t++)t%4==0&&t&&(c.push(o>>16&255),c.push(o>>8&255),c.push(255&o)),o=o<<6|s.indexOf(r.charAt(t));return 0===(n=i%4*6)?(c.push(o>>16&255),c.push(o>>8&255),c.push(255&o)):18===n?(c.push(o>>10&255),c.push(o>>2&255)):12===n&&c.push(o>>4&255),new Uint8Array(c)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,s=e.length,o=Gm;for(t=0;t<s;t++)t%3==0&&t&&(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]),i=(i<<8)+e[t];return 0===(n=s%3)?(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]):2===n?(r+=o[i>>10&63],r+=o[i>>4&63],r+=o[i<<2&63],r+=o[64]):1===n&&(r+=o[i>>2&63],r+=o[i<<4&63],r+=o[64],r+=o[64]),r}}),Hm=Object.prototype.hasOwnProperty,Wm=Object.prototype.toString;var Xm=new Em("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,s,o=[],c=e;for(t=0,n=c.length;t<n;t+=1){if(r=c[t],s=!1,"[object Object]"!==Wm.call(r))return!1;for(i in r)if(Hm.call(r,i)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==o.indexOf(i))return!1;o.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),Ym=Object.prototype.toString;var Km=new Em("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],"[object Object]"!==Ym.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;s[t]=[i[0],r[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}}),Qm=Object.prototype.hasOwnProperty;var Zm=new Em("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(Qm.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),ed=Bm.extend({implicit:[Jm,Vm],explicit:[zm,Xm,Km,Zm]}),td=Object.prototype.hasOwnProperty,nd=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rd=/[\x85\u2028\u2029]/,id=/[,\[\]\{\}]/,sd=/^(?:!|!!|![a-z\-]+!)$/i,od=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function cd(e){return Object.prototype.toString.call(e)}function ad(e){return 10===e||13===e}function ud(e){return 9===e||32===e}function fd(e){return 9===e||32===e||10===e||13===e}function ld(e){return 44===e||91===e||93===e||123===e||125===e}function hd(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function pd(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 md(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var dd=new Array(256),vd=new Array(256),yd=0;yd<256;yd++)dd[yd]=pd(yd)?1:0,vd[yd]=pd(yd);function bd(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ed,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function jd(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=gm(n),new ym(t,n)}function gd(e,t){throw jd(e,t)}function wd(e,t){e.onWarning&&e.onWarning.call(null,jd(e,t))}var Od={YAML:function(e,t,n){var r,i,s;null!==e.version&&gd(e,"duplication of %YAML directive"),1!==n.length&&gd(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&gd(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),s=parseInt(r[2],10),1!==i&&gd(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,1!==s&&2!==s&&wd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&gd(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],sd.test(r)||gd(e,"ill-formed tag handle (first argument) of the TAG directive"),td.call(e.tagMap,r)&&gd(e,'there is a previously declared suffix for "'+r+'" tag handle'),od.test(i)||gd(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){gd(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function Ed(e,t,n,r){var i,s,o,c;if(t<n){if(c=e.input.slice(t,n),r)for(i=0,s=c.length;i<s;i+=1)9===(o=c.charCodeAt(i))||32<=o&&o<=1114111||gd(e,"expected valid JSON character");else nd.test(c)&&gd(e,"the stream contains non-printable characters");e.result+=c}}function xd(e,t,n,r){var i,s,o,c;for(mm.isObject(n)||gd(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,c=(i=Object.keys(n)).length;o<c;o+=1)s=i[o],td.call(t,s)||(t[s]=n[s],r[s]=!0)}function Sd(e,t,n,r,i,s,o,c,a){var u,f;if(Array.isArray(i))for(u=0,f=(i=Array.prototype.slice.call(i)).length;u<f;u+=1)Array.isArray(i[u])&&gd(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===cd(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===cd(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)xd(e,t,s[u],n);else xd(e,t,s,n);else e.json||td.call(n,i)||!td.call(t,i)||(e.line=o||e.line,e.lineStart=c||e.lineStart,e.position=a||e.position,gd(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete n[i];return t}function Pd(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):gd(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function $d(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;ud(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),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(!ad(i))break;for(Pd(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&&wd(e,"deficient indentation"),r}function Ad(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))&&!fd(t)))}function Td(e,t){1===t?e.result+=" ":t>1&&(e.result+=mm.repeat("\n",t-1))}function Rd(e,t){var n,r,i=e.tag,s=e.anchor,o=[],c=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,gd(e,"tab characters must not be used in indentation")),45===r)&&fd(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,$d(e,!0,-1)&&e.lineIndent<=t)o.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,Fd(e,t,3,!1,!0),o.push(e.result),$d(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)gd(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!c&&(e.tag=i,e.anchor=s,e.kind="sequence",e.result=o,!0)}function Id(e){var t,n,r,i,s=!1,o=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&gd(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(o=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,s){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)):gd(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!fd(i);)33===i&&(o?gd(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),sd.test(n)||gd(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),id.test(r)&&gd(e,"tag suffix cannot contain flow indicator characters")}r&&!od.test(r)&&gd(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){gd(e,"tag name is malformed: "+r)}return s?e.tag=r:td.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:gd(e,'undeclared tag handle "'+n+'"'),!0}function kd(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&gd(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!fd(n)&&!ld(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&gd(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Fd(e,t,n,r,i){var s,o,c,a,u,f,l,h,p,m=1,d=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=c=4===n||3===n,r&&$d(e,!0,-1)&&(d=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;Id(e)||kd(e);)$d(e,!0,-1)?(d=!0,c=s,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):c=!1;if(c&&(c=d||i),1!==m&&4!==n||(h=1===n||2===n?t:t+1,p=e.position-e.lineStart,1===m?c&&(Rd(e,p)||function(e,t,n){var r,i,s,o,c,a,u,f=e.tag,l=e.anchor,h={},p=Object.create(null),m=null,d=null,v=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),u=e.input.charCodeAt(e.position);0!==u;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,gd(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,63!==u&&58!==u||!fd(r)){if(o=e.line,c=e.lineStart,a=e.position,!Fd(e,n,2,!1,!0))break;if(e.line===s){for(u=e.input.charCodeAt(e.position);ud(u);)u=e.input.charCodeAt(++e.position);if(58===u)fd(u=e.input.charCodeAt(++e.position))||gd(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Sd(e,h,p,m,d,null,o,c,a),m=d=v=null),b=!0,y=!1,i=!1,m=e.tag,d=e.result;else{if(!b)return e.tag=f,e.anchor=l,!0;gd(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=f,e.anchor=l,!0;gd(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(y&&(Sd(e,h,p,m,d,null,o,c,a),m=d=v=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):gd(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=r;if((e.line===s||e.lineIndent>t)&&(y&&(o=e.line,c=e.lineStart,a=e.position),Fd(e,t,4,!0,i)&&(y?d=e.result:v=e.result),y||(Sd(e,h,p,m,d,v,o,c,a),m=d=v=null),$d(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&0!==u)gd(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Sd(e,h,p,m,d,null,o,c,a),b&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),b}(e,p,h))||function(e,t){var n,r,i,s,o,c,a,u,f,l,h,p,m=!0,d=e.tag,v=e.anchor,y=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))o=93,u=!1,s=[];else{if(123!==p)return!1;o=125,u=!0,s={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),p=e.input.charCodeAt(++e.position);0!==p;){if($d(e,!0,t),(p=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=d,e.anchor=v,e.kind=u?"mapping":"sequence",e.result=s,!0;m?44===p&&gd(e,"expected the node content, but found ','"):gd(e,"missed comma between flow collection entries"),h=null,c=a=!1,63===p&&fd(e.input.charCodeAt(e.position+1))&&(c=a=!0,e.position++,$d(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,Fd(e,t,1,!1,!0),l=e.tag,f=e.result,$d(e,!0,t),p=e.input.charCodeAt(e.position),!a&&e.line!==n||58!==p||(c=!0,p=e.input.charCodeAt(++e.position),$d(e,!0,t),Fd(e,t,1,!1,!0),h=e.result),u?Sd(e,s,y,l,f,h,n,r,i):c?s.push(Sd(e,null,y,l,f,h,n,r,i)):s.push(f),$d(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(m=!0,p=e.input.charCodeAt(++e.position)):m=!1}gd(e,"unexpected end of the stream within a flow collection")}(e,h)?v=!0:(o&&function(e,t){var n,r,i,s,o,c=1,a=!1,u=!1,f=t,l=0,h=!1;if(124===(s=e.input.charCodeAt(e.position)))r=!1;else{if(62!==s)return!1;r=!0}for(e.kind="scalar",e.result="";0!==s;)if(43===(s=e.input.charCodeAt(++e.position))||45===s)1===c?c=43===s?3:2:gd(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(o=s)&&o<=57?o-48:-1)>=0))break;0===i?gd(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?gd(e,"repeat of an indentation width identifier"):(f=t+i-1,u=!0)}if(ud(s)){do{s=e.input.charCodeAt(++e.position)}while(ud(s));if(35===s)do{s=e.input.charCodeAt(++e.position)}while(!ad(s)&&0!==s)}for(;0!==s;){for(Pd(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!u||e.lineIndent<f)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>f&&(f=e.lineIndent),ad(s))l++;else{if(e.lineIndent<f){3===c?e.result+=mm.repeat("\n",a?1+l:l):1===c&&a&&(e.result+="\n");break}for(r?ud(s)?(h=!0,e.result+=mm.repeat("\n",a?1+l:l)):h?(h=!1,e.result+=mm.repeat("\n",l+1)):0===l?a&&(e.result+=" "):e.result+=mm.repeat("\n",l):e.result+=mm.repeat("\n",a?1+l:l),a=!0,u=!0,l=0,n=e.position;!ad(s)&&0!==s;)s=e.input.charCodeAt(++e.position);Ed(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(Ed(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else ad(n)?(Ed(e,r,i,!0),Td(e,$d(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Ad(e)?gd(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);gd(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var n,r,i,s,o,c,a;if(34!==(c=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(c=e.input.charCodeAt(e.position));){if(34===c)return Ed(e,n,e.position,!0),e.position++,!0;if(92===c){if(Ed(e,n,e.position,!0),ad(c=e.input.charCodeAt(++e.position)))$d(e,!1,t);else if(c<256&&dd[c])e.result+=vd[c],e.position++;else if((o=120===(a=c)?2:117===a?4:85===a?8:0)>0){for(i=o,s=0;i>0;i--)(o=hd(c=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+o:gd(e,"expected hexadecimal character");e.result+=md(s),e.position++}else gd(e,"unknown escape sequence");n=r=e.position}else ad(c)?(Ed(e,n,r,!0),Td(e,$d(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Ad(e)?gd(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}gd(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?v=!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&&!fd(r)&&!ld(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&gd(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),td.call(e.anchorMap,n)||gd(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],$d(e,!0,-1),!0}(e)?function(e,t,n){var r,i,s,o,c,a,u,f,l=e.kind,h=e.result;if(fd(f=e.input.charCodeAt(e.position))||ld(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if((63===f||45===f)&&(fd(r=e.input.charCodeAt(e.position+1))||n&&ld(r)))return!1;for(e.kind="scalar",e.result="",i=s=e.position,o=!1;0!==f;){if(58===f){if(fd(r=e.input.charCodeAt(e.position+1))||n&&ld(r))break}else if(35===f){if(fd(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ad(e)||n&&ld(f))break;if(ad(f)){if(c=e.line,a=e.lineStart,u=e.lineIndent,$d(e,!1,-1),e.lineIndent>=t){o=!0,f=e.input.charCodeAt(e.position);continue}e.position=s,e.line=c,e.lineStart=a,e.lineIndent=u;break}}o&&(Ed(e,i,s,!1),Td(e,e.line-c),i=s=e.position,o=!1),ud(f)||(s=e.position+1),f=e.input.charCodeAt(++e.position)}return Ed(e,i,s,!1),!!e.result||(e.kind=l,e.result=h,!1)}(e,h,1===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||gd(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(v=c&&Rd(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&gd(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),a=0,u=e.implicitTypes.length;a<u;a+=1)if((l=e.implicitTypes[a]).resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(td.call(e.typeMap[e.kind||"fallback"],e.tag))l=e.typeMap[e.kind||"fallback"][e.tag];else for(l=null,a=0,u=(f=e.typeMap.multi[e.kind||"fallback"]).length;a<u;a+=1)if(e.tag.slice(0,f[a].tag.length)===f[a].tag){l=f[a];break}l||gd(e,"unknown tag !<"+e.tag+">"),null!==e.result&&l.kind!==e.kind&&gd(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result,e.tag)?(e.result=l.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):gd(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function Md(e){var t,n,r,i,s=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&($d(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!fd(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&gd(e,"directive name must not be less than one character in length");0!==i;){for(;ud(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!ad(i));break}if(ad(i))break;for(t=e.position;0!==i&&!fd(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&Pd(e),td.call(Od,n)?Od[n](e,n,r):wd(e,'unknown document directive "'+n+'"')}$d(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,$d(e,!0,-1)):o&&gd(e,"directives end mark is expected"),Fd(e,e.lineIndent-1,4,!1,!0),$d(e,!0,-1),e.checkLineBreaks&&rd.test(e.input.slice(s,e.position))&&wd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ad(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,$d(e,!0,-1)):e.position<e.length-1&&gd(e,"end of the stream or a document separator is expected")}function Nd(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 bd(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,gd(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;)Md(n);return n.documents}var Cd=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=Nd(e,n);if("function"!=typeof t)return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])},Dd={loadAll:Cd,load:function(e,t){var n=Nd(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new ym("expected a single document in the stream, but found more")}}},qd=Object.prototype.toString,_d=Object.prototype.hasOwnProperty,Bd={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"},Ld=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ud=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Jd(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new ym("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+mm.repeat("0",r-t.length)+t}function Vd(e){this.schema=e.schema||ed,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=mm.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,s,o,c,a;if(null===t)return{};for(n={},i=0,s=(r=Object.keys(t)).length;i<s;i+=1)o=r[i],c=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(a=e.compiledTypeMap.fallback[o])&&_d.call(a.styleAliases,c)&&(c=a.styleAliases[c]),n[o]=c;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.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Gd(e,t){for(var n,r=mm.repeat(" ",t),i=0,s=-1,o="",c=e.length;i<c;)-1===(s=e.indexOf("\n",i))?(n=e.slice(i),i=c):(n=e.slice(i,s+1),i=s+1),n.length&&"\n"!==n&&(o+=r),o+=n;return o}function zd(e,t){return"\n"+mm.repeat(" ",e.indent*t)}function Hd(e){return 32===e||9===e}function Wd(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 Xd(e){return Wd(e)&&65279!==e&&13!==e&&10!==e}function Yd(e,t,n){var r=Xd(e),i=r&&!Hd(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||Xd(t)&&!Hd(t)&&35===e||58===t&&i}function Kd(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Qd(e){return/^\n* /.test(e)}function Zd(e,t,n,r,i,s,o,c){var a,u,f=0,l=null,h=!1,p=!1,m=-1!==r,d=-1,v=Wd(u=Kd(e,0))&&65279!==u&&!Hd(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!Hd(e)&&58!==e}(Kd(e,e.length-1));if(t||o)for(a=0;a<e.length;f>=65536?a+=2:a++){if(!Wd(f=Kd(e,a)))return 5;v=v&&Yd(f,l,c),l=f}else{for(a=0;a<e.length;f>=65536?a+=2:a++){if(10===(f=Kd(e,a)))h=!0,m&&(p=p||a-d-1>r&&" "!==e[d+1],d=a);else if(!Wd(f))return 5;v=v&&Yd(f,l,c),l=f}p=p||m&&a-d-1>r&&" "!==e[d+1]}return h||p?n>9&&Qd(e)?5:o?2===s?5:2:p?4:3:!v||o||i(e)?2===s?5:2:1}function ev(e,t,n,r,i){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Ld.indexOf(t)||Ud.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),c=r||e.flowLevel>-1&&n>=e.flowLevel;switch(Zd(t,c,e.indent,o,(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)}),e.quotingType,e.forceQuotes&&!r,i)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+tv(t,e.indent)+nv(Gd(t,s));case 4:return">"+tv(t,e.indent)+nv(Gd(function(e,t){var n,r,i=/(\n+)([^\n]*)/g,s=(c=e.indexOf("\n"),c=-1!==c?c:e.length,i.lastIndex=c,rv(e.slice(0,c),t)),o="\n"===e[0]||" "===e[0];var c;for(;r=i.exec(e);){var a=r[1],u=r[2];n=" "===u[0],s+=a+(o||n||""===u?"":"\n")+rv(u,t),o=n}return s}(t,o),s));case 5:return'"'+function(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)r=Kd(e,i),!(t=Bd[r])&&Wd(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||Jd(r);return n}(t)+'"';default:throw new ym("impossible error: invalid scalar style")}}()}function tv(e,t){var n=Qd(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function nv(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function rv(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,s=0,o=0,c=0,a="";n=i.exec(e);)(c=n.index)-s>t&&(r=o>s?o:c,a+="\n"+e.slice(s,r),s=r+1),o=c;return a+="\n",e.length-s>t&&o>s?a+=e.slice(s,o)+"\n"+e.slice(o+1):a+=e.slice(s),a.slice(1)}function iv(e,t,n,r){var i,s,o,c="",a=e.tag;for(i=0,s=n.length;i<s;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(ov(e,t+1,o,!0,!0,!1,!0)||void 0===o&&ov(e,t+1,null,!0,!0,!1,!0))&&(r&&""===c||(c+=zd(e,t)),e.dump&&10===e.dump.charCodeAt(0)?c+="-":c+="- ",c+=e.dump);e.tag=a,e.dump=c||"[]"}function sv(e,t,n){var r,i,s,o,c,a;for(s=0,o=(i=n?e.explicitTypes:e.implicitTypes).length;s<o;s+=1)if(((c=i[s]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(a=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===qd.call(c.represent))r=c.represent(t,a);else{if(!_d.call(c.represent,a))throw new ym("!<"+c.tag+'> tag resolver accepts not "'+a+'" style');r=c.represent[a](t,a)}e.dump=r}return!0}return!1}function ov(e,t,n,r,i,s,o){e.tag=null,e.dump=n,sv(e,n,!1)||sv(e,n,!0);var c,a=qd.call(e.dump),u=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var f,l,h="[object Object]"===a||"[object Array]"===a;if(h&&(l=-1!==(f=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&t>0)&&(i=!1),l&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(h&&l&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),"[object Object]"===a)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,s,o,c,a,u,f="",l=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 ym("sortKeys must be a boolean or a function");for(i=0,s=h.length;i<s;i+=1)u="",r&&""===f||(u+=zd(e,t)),c=n[o=h[i]],e.replacer&&(c=e.replacer.call(n,o,c)),ov(e,t+1,o,!0,!0,!0)&&((a=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,a&&(u+=zd(e,t)),ov(e,t+1,c,!0,a)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",f+=u+=e.dump));e.tag=l,e.dump=f||"{}"}(e,t,e.dump,i),l&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,s,o,c,a="",u=e.tag,f=Object.keys(n);for(r=0,i=f.length;r<i;r+=1)c="",""!==a&&(c+=", "),e.condenseFlow&&(c+='"'),o=n[s=f[r]],e.replacer&&(o=e.replacer.call(n,s,o)),ov(e,t,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ov(e,t,o,!1,!1)&&(a+=c+=e.dump));e.tag=u,e.dump="{"+a+"}"}(e,t,e.dump),l&&(e.dump="&ref_"+f+" "+e.dump));else if("[object Array]"===a)r&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?iv(e,t-1,e.dump,i):iv(e,t,e.dump,i),l&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,s,o="",c=e.tag;for(r=0,i=n.length;r<i;r+=1)s=n[r],e.replacer&&(s=e.replacer.call(n,String(r),s)),(ov(e,t,s,!1,!1)||void 0===s&&ov(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=c,e.dump="["+o+"]"}(e,t,e.dump),l&&(e.dump="&ref_"+f+" "+e.dump));else{if("[object String]"!==a){if("[object Undefined]"===a)return!1;if(e.skipInvalid)return!1;throw new ym("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&ev(e,e.dump,t,s,u)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function cv(e,t){var n,r,i=[],s=[];for(av(e,i,s),n=0,r=s.length;n<r;n+=1)t.duplicates.push(i[s[n]]);t.usedDuplicates=new Array(r)}function av(e,t,n){var r,i,s;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)av(e[i],t,n);else for(i=0,s=(r=Object.keys(e)).length;i<s;i+=1)av(e[r[i]],t,n)}function uv(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var fv=Em,lv=Pm,hv=Rm,pv=_m,mv=Bm,dv=ed,vv=Dd.load,yv=Dd.loadAll,bv={dump:function(e,t){var n=new Vd(t=t||{});n.noRefs||cv(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),ov(n,0,r,!0,!0)?n.dump+"\n":""}}.dump,jv=ym,gv={binary:zm,float:qm,map:Tm,null:Im,pairs:Km,set:Zm,timestamp:Jm,bool:km,int:Nm,merge:Vm,omap:Xm,seq:Am,str:$m},wv=uv("safeLoad","load"),Ov=uv("safeLoadAll","loadAll"),Ev=uv("safeDump","dump"),xv={Type:fv,Schema:lv,FAILSAFE_SCHEMA:hv,JSON_SCHEMA:pv,CORE_SCHEMA:mv,DEFAULT_SCHEMA:dv,load:vv,loadAll:yv,dump:bv,YAMLException:jv,types:gv,safeLoad:wv,safeLoadAll:Ov,safeDump:Ev};const Sv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:Pv,Blob:$v,File:Av}=Sv,Tv=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Rv=e=>/^[a-z0-9\-._~]+$/i.test(e);function Iv(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(Rv(e))return e;if(Tv(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 kv(e){const{value:t}=e;return Array.isArray(t)?function(e){let{key:t,value:n,style:r,explode:i,escape:s}=e;const o=e=>Iv(e,{escape:s});if("simple"===r)return n.map((e=>o(e))).join(",");if("label"===r)return`.${n.map((e=>o(e))).join(".")}`;if("matrix"===r)return n.map((e=>o(e))).reduce(((e,n)=>!e||i?`${e||""};${t}=${n}`:`${e},${n}`),"");if("form"===r){const e=i?`&${t}=`:",";return n.map((e=>o(e))).join(e)}if("spaceDelimited"===r){const e=i?`${t}=`:"";return n.map((e=>o(e))).join(` ${e}`)}if("pipeDelimited"===r){const e=i?`${t}=`:"";return n.map((e=>o(e))).join(`|${e}`)}return}(e):"object"==typeof t?function(e){let{key:t,value:n,style:r,explode:i,escape:s}=e;const o=e=>Iv(e,{escape:s}),c=Object.keys(n);if("simple"===r)return c.reduce(((e,t)=>{const r=o(n[t]);return`${e?`${e},`:""}${t}${i?"=":","}${r}`}),"");if("label"===r)return c.reduce(((e,t)=>{const r=o(n[t]);return`${e?`${e}.`:"."}${t}${i?"=":"."}${r}`}),"");if("matrix"===r&&i)return c.reduce(((e,t)=>`${e?`${e};`:";"}${t}=${o(n[t])}`),"");if("matrix"===r)return c.reduce(((e,r)=>{const i=o(n[r]);return`${e?`${e},`:`;${t}=`}${r},${i}`}),"");if("form"===r)return c.reduce(((e,t)=>{const r=o(n[t]);return`${e?`${e}${i?"&":","}`:""}${t}${i?"=":","}${r}`}),"");return}(e):function(e){let{key:t,value:n,style:r,escape:i}=e;const s=e=>Iv(e,{escape:i});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);return}(e)}const Fv=(e,t)=>{t.body=e},Mv={serializeRes:qv,mergeInQueryOrForm:Xv};async function Nv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof e&&(t=e,e=t.url),t.headers=t.headers||{},Mv.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 Pv&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{r=await(t.userFetch||fetch)(t.url,t),r=await Mv.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 Cv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function Dv(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):xv.load(e)}function qv(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:Bv(e.headers)},i=r.headers["content-type"],s=n||Cv(i),o=s?e.text:e.blob||e.buffer;return o.call(e).then((e=>{if(r.text=e,r.data=e,s)try{const t=Dv(e,i);r.body=t,r.obj=t}catch(e){r.parseError=e}return r}))}function _v(e){return e.includes(", ")?e.split(", "):e}function Bv(){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]=_v(r),e}),{})}function Lv(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):void 0!==Av&&e instanceof Av||(void 0!==$v&&e instanceof $v||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function Uv(e,t){return Array.isArray(e)&&e.some((e=>Lv(e,t)))}const Jv={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Vv={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Gv(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{collectionFormat:r,allowEmptyValue:i,serializationOption:s,encoding:o}=t,c="object"!=typeof t||Array.isArray(t)?t:t.value,a=n?e=>e.toString():e=>encodeURIComponent(e),u=a(e);if(void 0===c&&i)return[[u,""]];if(Lv(c)||Uv(c))return[[u,c]];if(s)return zv(e,c,n,s);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:r,allowReserved:i}=o;return zv(e,c,n,{style:t,explode:r,allowReserved:i})}if(o.contentType){if("application/json"===o.contentType){return[[u,a("string"==typeof c?c:JSON.stringify(c))]]}return[[u,a(c.toString())]]}return"object"!=typeof c?[[u,a(c)]]:Array.isArray(c)&&c.every((e=>"object"!=typeof e))?[[u,c.map(a).join(",")]]:[[u,a(JSON.stringify(c))]]}return"object"!=typeof c?[[u,a(c)]]:Array.isArray(c)?"multi"===r?[[u,c.map(a)]]:[[u,c.map(a).join(Vv[r||"csv"])]]:[[u,""]]}function zv(e,t,n,r){const i=r.style||"form",s=void 0===r.explode?"form"===i:r.explode,o=!n&&(r&&r.allowReserved?"unsafe":"reserved"),c=e=>Iv(e,{escape:o}),a=n?e=>e:e=>Iv(e,{escape:o});return"object"!=typeof t?[[a(e),c(t)]]:Array.isArray(t)?s?[[a(e),t.map(c)]]:[[a(e),t.map(c).join(Jv[i])]]:"deepObject"===i?Object.keys(t).map((n=>[a(`${e}[${n}]`),c(t[n])])):s?Object.keys(t).map((e=>[a(e),c(t[e])])):[[a(e),Object.keys(t).map((e=>[`${a(e)},${c(t[e])}`])).join(",")]]}function Hv(e){return Object.entries(e).reduce(((e,t)=>{let[n,r]=t;for(const[t,i]of Gv(n,r,!0))if(Array.isArray(i))for(const n of i)if(ArrayBuffer.isView(n)){const r=new $v([n]);e.append(t,r)}else e.append(t,n);else if(ArrayBuffer.isView(i)){const n=new $v([i]);e.append(t,n)}else e.append(t,i);return e}),new Pv)}function Wv(e){const t=Object.keys(e).reduce(((t,n)=>{for(const[r,i]of Gv(n,e[n]))t[r]=i;return t}),{});return lm.stringify(t,{encode:!1,indices:!1})||""}function Xv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{url:t="",query:n,form:r}=e,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}`:""};if(r){const t=Object.keys(r).some((e=>{const{value:t}=r[e];return Lv(t)||Uv(t)})),n=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(n)){const t=Hv(e.form);Fv(t,e)}else e.body=Wv(r);delete e.form}if(n){const[r,s]=t.split("?");let o="";if(s){const e=lm.parse(s);Object.keys(n).forEach((t=>delete e[t])),o=lm.stringify(e,{encode:!0})}const c=i(o,Wv(n));e.url=r+c,delete e.query}return e}function Yv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:n,responseInterceptor:r}=t,i=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:"application/json, application/yaml"},credentials:i}).then((e=>e.body))}const Kv=e=>{const{baseDoc:t,url:n}=e;return t||n||""},Qv=e=>{const{fetch:t,http:n}=e;return t||n||Nv};
|
|
4258
|
+
const openapi_parser_e=Object.freeze({url:"/"}),{fetch:openapi_parser_t,Response:openapi_parser_r,Headers:openapi_parser_n,Request:openapi_parser_s,FormData:openapi_parser_i,File:openapi_parser_o,Blob:openapi_parser_c}=globalThis;function openapi_parser_a(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function openapi_parser_u(e,t){return Array.isArray(e)&&e.some((e=>openapi_parser_a(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=openapi_parser_t),void 0===globalThis.Headers&&(globalThis.Headers=openapi_parser_n),void 0===globalThis.Request&&(globalThis.Request=openapi_parser_s),void 0===globalThis.Response&&(globalThis.Response=openapi_parser_r),void 0===globalThis.FormData&&(globalThis.FormData=openapi_parser_i),void 0===globalThis.File&&(globalThis.File=openapi_parser_o),void 0===globalThis.Blob&&(globalThis.Blob=openapi_parser_c);class openapi_parser_l extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function openapi_parser_h(e,t="reserved"){return[...e].map((e=>{if((e=>/^[a-z0-9\-._~]+$/i.test(e))(e))return e;if((e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1)(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function openapi_parser_f(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:n,escape:s}){if("simple"===r)return t.map((e=>openapi_parser_p(e,s))).join(",");if("label"===r)return`.${t.map((e=>openapi_parser_p(e,s))).join(".")}`;if("matrix"===r)return t.map((e=>openapi_parser_p(e,s))).reduce(((t,r)=>!t||n?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=n?`&${e}=`:",";return t.map((e=>openapi_parser_p(e,s))).join(r)}if("spaceDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>openapi_parser_p(e,s))).join(` ${r}`)}if("pipeDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>openapi_parser_p(e,s))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:n,escape:s}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=openapi_parser_p(t[r],s);return`${e?`${e},`:""}${r}${n?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=openapi_parser_p(t[r],s);return`${e?`${e}.`:"."}${r}${n?"=":"."}${i}`}),"");if("matrix"===r&&n)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${openapi_parser_p(t[r],s)}`),"");if("matrix"===r)return i.reduce(((r,n)=>{const i=openapi_parser_p(t[n],s);return`${r?`${r},`:`;${e}=`}${n},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=openapi_parser_p(t[r],s);return`${e?`${e}${n?"&":","}`:""}${r}${n?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:n}){if("simple"===r)return openapi_parser_p(t,n);if("label"===r)return`.${openapi_parser_p(t,n)}`;if("matrix"===r)return`;${e}=${openapi_parser_p(t,n)}`;if("form"===r)return openapi_parser_p(t,n);if("deepObject"===r)return openapi_parser_p(t,n);return}(e)}function openapi_parser_p(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&e.length>0?openapi_parser_h(e,t):e}const openapi_parser_d={form:",",spaceDelimited:"%20",pipeDelimited:"|"},openapi_parser_m={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function openapi_parser_v(e,t,r=!1){const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=t,c="object"!=typeof t||Array.isArray(t)?t:t.value,h=r?e=>e.toString():e=>encodeURIComponent(e),f=h(e);if(void 0===c&&s)return[[f,""]];if(openapi_parser_a(c)||openapi_parser_u(c))return[[f,c]];if(i)return openapi_parser_y(e,c,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:n,allowReserved:s}=o;return openapi_parser_y(e,c,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=h("string"==typeof c?c:JSON.stringify(c));return[[f,new openapi_parser_l(e,"blob",{type:o.contentType})]]}const e=h(String(c));return[[f,new openapi_parser_l(e,"blob",{type:o.contentType})]]}return"object"!=typeof c?[[f,h(c)]]:Array.isArray(c)&&c.every((e=>"object"!=typeof e))?[[f,c.map(h).join(",")]]:[[f,h(JSON.stringify(c))]]}return"object"!=typeof c?[[f,h(c)]]:Array.isArray(c)?"multi"===n?[[f,c.map(h)]]:[[f,c.map(h).join(openapi_parser_m[n||"csv"])]]:[[f,""]]}function openapi_parser_y(e,t,r,n){const s=n.style||"form",i=void 0===n.explode?"form"===s:n.explode,o=!r&&(n&&n.allowReserved?"unsafe":"reserved"),c=e=>openapi_parser_p(e,o),a=r?e=>e:e=>c(e);return"object"!=typeof t?[[a(e),c(t)]]:Array.isArray(t)?i?[[a(e),t.map(c)]]:[[a(e),t.map(c).join(openapi_parser_d[s])]]:"deepObject"===s?Object.keys(t).map((r=>[a(`${e}[${r}]`),c(t[r])])):i?Object.keys(t).map((e=>[a(e),c(t[e])])):[[a(e),Object.keys(t).map((e=>[`${a(e)},${c(t[e])}`])).join(",")]]}function openapi_parser_b(e){return((e,{encode:t=!0}={})=>{const r=(e,t,n)=>(null==n?e.append(t,""):Array.isArray(n)?n.reduce(((n,s)=>r(e,t,s)),e):n instanceof Date?e.append(t,n.toISOString()):"object"==typeof n?Object.entries(n).reduce(((n,[s,i])=>r(e,`${t}[${s}]`,i)),e):e.append(t,n),e),n=Object.entries(e).reduce(((e,[t,n])=>r(e,t,n)),new URLSearchParams),s=String(n);return t?s:decodeURIComponent(s)})(Object.keys(e).reduce(((t,r)=>{for(const[n,s]of openapi_parser_v(r,e[r]))t[n]=s instanceof openapi_parser_l?s.valueOf():s;return t}),{}),{encode:!1})}function openapi_parser_g(e={}){const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return openapi_parser_a(t)||openapi_parser_u(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(s=e.form,Object.entries(s).reduce(((e,[t,r])=>{for(const[n,s]of openapi_parser_v(t,r,!0))if(Array.isArray(s))for(const t of s)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(n,r)}else e.append(n,t);else if(ArrayBuffer.isView(s)){const t=new Blob([s]);e.append(n,t)}else e.append(n,s);return e}),new FormData));e.formdata=t,e.body=t}else e.body=openapi_parser_b(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=new URLSearchParams(s);Object.keys(r).forEach((t=>e.delete(t))),i=String(e)}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,openapi_parser_b(r));e.url=n+o,delete e.query}return e}
|
|
4259
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function openapi_parser_w(e){return null==e}var openapi_parser_x=function(e,t){var r,n,s,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[s=i[r]]=t[s];return e},openapi_parser_j={isNothing:openapi_parser_w,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:openapi_parser_w(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:openapi_parser_x};function openapi_parser_E(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function openapi_parser_$(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=openapi_parser_E(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}openapi_parser_$.prototype=Object.create(Error.prototype),openapi_parser_$.prototype.constructor=openapi_parser_$,openapi_parser_$.prototype.toString=function(e){return this.name+": "+openapi_parser_E(this,e)};var openapi_parser_O=openapi_parser_$;function openapi_parser_S(e,t,r,n,s){var i="",o="",c=Math.floor(s/2)-1;return n-t>c&&(t=n-c+(i=" ... ").length),r-n>c&&(r=n+c-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function A(e,t){return openapi_parser_j.repeat(" ",t-e.length)+e}var openapi_parser_P=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,s=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var c,a,u="",l=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+l+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)a=openapi_parser_S(e.buffer,s[o-c],i[o-c],e.position-(s[o]-s[o-c]),h),u=openapi_parser_j.repeat(" ",t.indent)+A((e.line-c+1).toString(),l)+" | "+a.str+"\n"+u;for(a=openapi_parser_S(e.buffer,s[o],i[o],e.position,h),u+=openapi_parser_j.repeat(" ",t.indent)+A((e.line+1).toString(),l)+" | "+a.str+"\n",u+=openapi_parser_j.repeat("-",t.indent+l+3+a.pos)+"^\n",c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)a=openapi_parser_S(e.buffer,s[o+c],i[o+c],e.position-(s[o]-s[o+c]),h),u+=openapi_parser_j.repeat(" ",t.indent)+A((e.line+c+1).toString(),l)+" | "+a.str+"\n";return u.replace(/\n$/,"")},openapi_parser_T=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],openapi_parser_k=["scalar","sequence","mapping"];var openapi_parser_F=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===openapi_parser_T.indexOf(t))throw new openapi_parser_O('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===openapi_parser_k.indexOf(this.kind))throw new openapi_parser_O('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function openapi_parser_I(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function openapi_parser_R(e){return this.extend(e)}openapi_parser_R.prototype.extend=function(e){var t=[],r=[];if(e instanceof openapi_parser_F)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new openapi_parser_O("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof openapi_parser_F))throw new openapi_parser_O("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new openapi_parser_O("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new openapi_parser_O("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof openapi_parser_F))throw new openapi_parser_O("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(openapi_parser_R.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=openapi_parser_I(n,"implicit"),n.compiledExplicit=openapi_parser_I(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var openapi_parser_D=openapi_parser_R,openapi_parser_=new openapi_parser_F("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),C=new openapi_parser_F("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),openapi_parser_M=new openapi_parser_F("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),openapi_parser_N=new openapi_parser_D({explicit:[openapi_parser_,C,openapi_parser_M]});var openapi_parser_q=new openapi_parser_F("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"},empty:function(){return""}},defaultStyle:"lowercase"});var openapi_parser_B=new openapi_parser_F("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 L(e){return 48<=e&&e<=55}function openapi_parser_U(e){return 48<=e&&e<=57}var J=new openapi_parser_F("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,s=0,i=!1;if(!n)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===n)return!0;if("b"===(t=e[++s])){for(s++;s<n;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!(48<=(r=e.charCodeAt(s))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!L(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!openapi_parser_U(e.charCodeAt(s)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!openapi_parser_j.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?"0o"+e.toString(8):"-0o"+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"]}}),openapi_parser_V=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var openapi_parser_G=/^[-+]?[0-9]+e/;var H=new openapi_parser_F("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!openapi_parser_V.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||openapi_parser_j.isNegativeZero(e))},represent:function(e,t){var r;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(openapi_parser_j.isNegativeZero(e))return"-0.0";return r=e.toString(10),openapi_parser_G.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),openapi_parser_z=openapi_parser_N.extend({implicit:[openapi_parser_q,openapi_parser_B,J,H]}),X=openapi_parser_z,W=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),openapi_parser_Y=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]))?))?$");var openapi_parser_Z=new openapi_parser_F("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==W.exec(e)||null!==openapi_parser_Y.exec(e))},construct:function(e){var t,r,n,s,i,o,c,a,u=0,l=null;if(null===(t=W.exec(e))&&(t=openapi_parser_Y.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(i=+t[4],o=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),a=new Date(Date.UTC(r,n,s,i,o,c,u)),l&&a.setTime(a.getTime()-l),a},instanceOf:Date,represent:function(e){return e.toISOString()}});var openapi_parser_K=new openapi_parser_F("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),openapi_parser_Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var ee=new openapi_parser_F("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=openapi_parser_Q;for(r=0;r<s;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,i=openapi_parser_Q,o=0,c=[];for(t=0;t<s;t++)t%4==0&&t&&(c.push(o>>16&255),c.push(o>>8&255),c.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=s%4*6)?(c.push(o>>16&255),c.push(o>>8&255),c.push(255&o)):18===r?(c.push(o>>10&255),c.push(o>>2&255)):12===r&&c.push(o>>4&255),new Uint8Array(c)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,i=e.length,o=openapi_parser_Q;for(t=0;t<i;t++)t%3==0&&t&&(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]),s=(s<<8)+e[t];return 0===(r=i%3)?(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]):2===r?(n+=o[s>>10&63],n+=o[s>>4&63],n+=o[s<<2&63],n+=o[64]):1===r&&(n+=o[s>>2&63],n+=o[s<<4&63],n+=o[64],n+=o[64]),n}}),te=Object.prototype.hasOwnProperty,re=Object.prototype.toString;var ne=new openapi_parser_F("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=[],c=e;for(t=0,r=c.length;t<r;t+=1){if(n=c[t],i=!1,"[object Object]"!==re.call(n))return!1;for(s in n)if(te.call(n,s)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(s))return!1;o.push(s)}return!0},construct:function(e){return null!==e?e:[]}}),se=Object.prototype.toString;var ie=new openapi_parser_F("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==se.call(n))return!1;if(1!==(s=Object.keys(n)).length)return!1;i[t]=[s[0],n[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],s=Object.keys(n),i[t]=[s[0],n[s[0]]];return i}}),oe=Object.prototype.hasOwnProperty;var ce=new openapi_parser_F("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(oe.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),ae=X.extend({implicit:[openapi_parser_Z,openapi_parser_K],explicit:[ee,ne,ie,ce]}),ue=Object.prototype.hasOwnProperty,le=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,he=/[\x85\u2028\u2029]/,fe=/[,\[\]\{\}]/,pe=/^(?:!|!!|![a-z\-]+!)$/i,de=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function me(e){return Object.prototype.toString.call(e)}function ve(e){return 10===e||13===e}function ye(e){return 9===e||32===e}function be(e){return 9===e||32===e||10===e||13===e}function ge(e){return 44===e||91===e||93===e||123===e||125===e}function we(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function xe(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 je(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Ee=new Array(256),$e=new Array(256),openapi_parser_Oe=0;openapi_parser_Oe<256;openapi_parser_Oe++)Ee[openapi_parser_Oe]=xe(openapi_parser_Oe)?1:0,$e[openapi_parser_Oe]=xe(openapi_parser_Oe);function openapi_parser_Se(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ae,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ae(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=openapi_parser_P(r),new openapi_parser_O(t,r)}function Pe(e,t){throw Ae(e,t)}function Te(e,t){e.onWarning&&e.onWarning.call(null,Ae(e,t))}var openapi_parser_ke={YAML:function(e,t,r){var n,s,i;null!==e.version&&Pe(e,"duplication of %YAML directive"),1!==r.length&&Pe(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Pe(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&Pe(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Te(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Pe(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],pe.test(n)||Pe(e,"ill-formed tag handle (first argument) of the TAG directive"),ue.call(e.tagMap,n)&&Pe(e,'there is a previously declared suffix for "'+n+'" tag handle'),de.test(s)||Pe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Pe(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Fe(e,t,r,n){var s,i,o,c;if(t<r){if(c=e.input.slice(t,r),n)for(s=0,i=c.length;s<i;s+=1)9===(o=c.charCodeAt(s))||32<=o&&o<=1114111||Pe(e,"expected valid JSON character");else le.test(c)&&Pe(e,"the stream contains non-printable characters");e.result+=c}}function Ie(e,t,r,n){var s,i,o,c;for(openapi_parser_j.isObject(r)||Pe(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,c=(s=Object.keys(r)).length;o<c;o+=1)i=s[o],ue.call(t,i)||(t[i]=r[i],n[i]=!0)}function openapi_parser_Re(e,t,r,n,s,i,o,c,a){var u,l;if(Array.isArray(s))for(u=0,l=(s=Array.prototype.slice.call(s)).length;u<l;u+=1)Array.isArray(s[u])&&Pe(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===me(s[u])&&(s[u]="[object Object]");if("object"==typeof s&&"[object Object]"===me(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(u=0,l=i.length;u<l;u+=1)Ie(e,t,i[u],r);else Ie(e,t,i,r);else e.json||ue.call(r,s)||!ue.call(t,s)||(e.line=o||e.line,e.lineStart=c||e.lineStart,e.position=a||e.position,Pe(e,"duplicated mapping key")),"__proto__"===s?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete r[s];return t}function De(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Pe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _e(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;ye(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!ve(s))break;for(De(e),s=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&Te(e,"deficient indentation"),n}function Ce(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!be(t)))}function Me(e,t){1===t?e.result+=" ":t>1&&(e.result+=openapi_parser_j.repeat("\n",t-1))}function Ne(e,t){var r,n,s=e.tag,i=e.anchor,o=[],c=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Pe(e,"tab characters must not be used in indentation")),45===n)&&be(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,_e(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Le(e,t,3,!1,!0),o.push(e.result),_e(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Pe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!c&&(e.tag=s,e.anchor=i,e.kind="sequence",e.result=o,!0)}function qe(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Pe(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(o=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Pe(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!be(s);)33===s&&(o?Pe(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),pe.test(r)||Pe(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),fe.test(n)&&Pe(e,"tag suffix cannot contain flow indicator characters")}n&&!de.test(n)&&Pe(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Pe(e,"tag name is malformed: "+n)}return i?e.tag=n:ue.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Pe(e,'undeclared tag handle "'+r+'"'),!0}function Be(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Pe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!be(r)&&!ge(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Pe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Le(e,t,r,n,s){var i,o,c,a,u,l,h,f,p,d=1,m=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=c=4===r||3===r,n&&_e(e,!0,-1)&&(m=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;qe(e)||Be(e);)_e(e,!0,-1)?(m=!0,c=i,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):c=!1;if(c&&(c=m||s),1!==d&&4!==r||(f=1===r||2===r?t:t+1,p=e.position-e.lineStart,1===d?c&&(Ne(e,p)||function(e,t,r){var n,s,i,o,c,a,u,l=e.tag,h=e.anchor,f={},p=Object.create(null),d=null,m=null,v=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),u=e.input.charCodeAt(e.position);0!==u;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Pe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==u&&58!==u||!be(n)){if(o=e.line,c=e.lineStart,a=e.position,!Le(e,r,2,!1,!0))break;if(e.line===i){for(u=e.input.charCodeAt(e.position);ye(u);)u=e.input.charCodeAt(++e.position);if(58===u)be(u=e.input.charCodeAt(++e.position))||Pe(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(openapi_parser_Re(e,f,p,d,m,null,o,c,a),d=m=v=null),b=!0,y=!1,s=!1,d=e.tag,m=e.result;else{if(!b)return e.tag=l,e.anchor=h,!0;Pe(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=l,e.anchor=h,!0;Pe(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(y&&(openapi_parser_Re(e,f,p,d,m,null,o,c,a),d=m=v=null),b=!0,y=!0,s=!0):y?(y=!1,s=!0):Pe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=n;if((e.line===i||e.lineIndent>t)&&(y&&(o=e.line,c=e.lineStart,a=e.position),Le(e,t,4,!0,s)&&(y?m=e.result:v=e.result),y||(openapi_parser_Re(e,f,p,d,m,v,o,c,a),d=m=v=null),_e(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==u)Pe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&openapi_parser_Re(e,f,p,d,m,null,o,c,a),b&&(e.tag=l,e.anchor=h,e.kind="mapping",e.result=f),b}(e,p,f))||function(e,t){var r,n,s,i,o,c,a,u,l,h,f,p,d=!0,m=e.tag,v=e.anchor,y=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))o=93,u=!1,i=[];else{if(123!==p)return!1;o=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),p=e.input.charCodeAt(++e.position);0!==p;){if(_e(e,!0,t),(p=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=v,e.kind=u?"mapping":"sequence",e.result=i,!0;d?44===p&&Pe(e,"expected the node content, but found ','"):Pe(e,"missed comma between flow collection entries"),f=null,c=a=!1,63===p&&be(e.input.charCodeAt(e.position+1))&&(c=a=!0,e.position++,_e(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,Le(e,t,1,!1,!0),h=e.tag,l=e.result,_e(e,!0,t),p=e.input.charCodeAt(e.position),!a&&e.line!==r||58!==p||(c=!0,p=e.input.charCodeAt(++e.position),_e(e,!0,t),Le(e,t,1,!1,!0),f=e.result),u?openapi_parser_Re(e,i,y,h,l,f,r,n,s):c?i.push(openapi_parser_Re(e,null,y,h,l,f,r,n,s)):i.push(l),_e(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}Pe(e,"unexpected end of the stream within a flow collection")}(e,f)?v=!0:(o&&function(e,t){var r,n,s,i,o,c=1,a=!1,u=!1,l=t,h=0,f=!1;if(124===(i=e.input.charCodeAt(e.position)))n=!1;else{if(62!==i)return!1;n=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===c?c=43===i?3:2:Pe(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?Pe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?Pe(e,"repeat of an indentation width identifier"):(l=t+s-1,u=!0)}if(ye(i)){do{i=e.input.charCodeAt(++e.position)}while(ye(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ve(i)&&0!==i)}for(;0!==i;){for(De(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!u||e.lineIndent<l)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>l&&(l=e.lineIndent),ve(i))h++;else{if(e.lineIndent<l){3===c?e.result+=openapi_parser_j.repeat("\n",a?1+h:h):1===c&&a&&(e.result+="\n");break}for(n?ye(i)?(f=!0,e.result+=openapi_parser_j.repeat("\n",a?1+h:h)):f?(f=!1,e.result+=openapi_parser_j.repeat("\n",h+1)):0===h?a&&(e.result+=" "):e.result+=openapi_parser_j.repeat("\n",h):e.result+=openapi_parser_j.repeat("\n",a?1+h:h),a=!0,u=!0,h=0,r=e.position;!ve(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Fe(e,r,e.position,!1)}}return!0}(e,f)||function(e,t){var r,n,s;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Fe(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else ve(r)?(Fe(e,n,s,!0),Me(e,_e(e,!1,t)),n=s=e.position):e.position===e.lineStart&&Ce(e)?Pe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Pe(e,"unexpected end of the stream within a single quoted scalar")}(e,f)||function(e,t){var r,n,s,i,o,c,a;if(34!==(c=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(c=e.input.charCodeAt(e.position));){if(34===c)return Fe(e,r,e.position,!0),e.position++,!0;if(92===c){if(Fe(e,r,e.position,!0),ve(c=e.input.charCodeAt(++e.position)))_e(e,!1,t);else if(c<256&&Ee[c])e.result+=$e[c],e.position++;else if((o=120===(a=c)?2:117===a?4:85===a?8:0)>0){for(s=o,i=0;s>0;s--)(o=we(c=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Pe(e,"expected hexadecimal character");e.result+=je(i),e.position++}else Pe(e,"unknown escape sequence");r=n=e.position}else ve(c)?(Fe(e,r,n,!0),Me(e,_e(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ce(e)?Pe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Pe(e,"unexpected end of the stream within a double quoted scalar")}(e,f)?v=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!be(n)&&!ge(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Pe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ue.call(e.anchorMap,r)||Pe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],_e(e,!0,-1),!0}(e)?function(e,t,r){var n,s,i,o,c,a,u,l,h=e.kind,f=e.result;if(be(l=e.input.charCodeAt(e.position))||ge(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)&&(be(n=e.input.charCodeAt(e.position+1))||r&&ge(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==l;){if(58===l){if(be(n=e.input.charCodeAt(e.position+1))||r&&ge(n))break}else if(35===l){if(be(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ce(e)||r&&ge(l))break;if(ve(l)){if(c=e.line,a=e.lineStart,u=e.lineIndent,_e(e,!1,-1),e.lineIndent>=t){o=!0,l=e.input.charCodeAt(e.position);continue}e.position=i,e.line=c,e.lineStart=a,e.lineIndent=u;break}}o&&(Fe(e,s,i,!1),Me(e,e.line-c),s=i=e.position,o=!1),ye(l)||(i=e.position+1),l=e.input.charCodeAt(++e.position)}return Fe(e,s,i,!1),!!e.result||(e.kind=h,e.result=f,!1)}(e,f,1===r)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||Pe(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===d&&(v=c&&Ne(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Pe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),a=0,u=e.implicitTypes.length;a<u;a+=1)if((h=e.implicitTypes[a]).resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ue.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,a=0,u=(l=e.typeMap.multi[e.kind||"fallback"]).length;a<u;a+=1)if(e.tag.slice(0,l[a].tag.length)===l[a].tag){h=l[a];break}h||Pe(e,"unknown tag !<"+e.tag+">"),null!==e.result&&h.kind!==e.kind&&Pe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Pe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function Ue(e){var t,r,n,s,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(_e(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(o=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!be(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Pe(e,"directive name must not be less than one character in length");0!==s;){for(;ye(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!ve(s));break}if(ve(s))break;for(t=e.position;0!==s&&!be(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&De(e),ue.call(openapi_parser_ke,r)?openapi_parser_ke[r](e,r,n):Te(e,'unknown document directive "'+r+'"')}_e(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,_e(e,!0,-1)):o&&Pe(e,"directives end mark is expected"),Le(e,e.lineIndent-1,4,!1,!0),_e(e,!0,-1),e.checkLineBreaks&&he.test(e.input.slice(i,e.position))&&Te(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ce(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,_e(e,!0,-1)):e.position<e.length-1&&Pe(e,"end of the stream or a document separator is expected")}function Je(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 r=new openapi_parser_Se(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Pe(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ue(r);return r.documents}var Ve=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=Je(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},Ge={loadAll:Ve,load:function(e,t){var r=Je(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new openapi_parser_O("expected a single document in the stream, but found more")}}},He=Object.prototype.toString,ze=Object.prototype.hasOwnProperty,Xe={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"},We=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ye=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ze(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new openapi_parser_O("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+openapi_parser_j.repeat("0",n-t.length)+t}function Ke(e){this.schema=e.schema||ae,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=openapi_parser_j.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,c,a;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],c=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(a=e.compiledTypeMap.fallback[o])&&ze.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[o]=c;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(e,t){for(var r,n=openapi_parser_j.repeat(" ",t),s=0,i=-1,o="",c=e.length;s<c;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=c):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function openapi_parser_et(e,t){return"\n"+openapi_parser_j.repeat(" ",e.indent*t)}function tt(e){return 32===e||9===e}function rt(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 nt(e){return rt(e)&&65279!==e&&13!==e&&10!==e}function openapi_parser_st(e,t,r){var n=nt(e),s=n&&!tt(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!s)||nt(t)&&!tt(t)&&35===e||58===t&&s}function it(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function ot(e){return/^\n* /.test(e)}function ct(e,t,r,n,s,i,o,c){var a,u,l=0,h=null,f=!1,p=!1,d=-1!==n,m=-1,v=rt(u=it(e,0))&&65279!==u&&!tt(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!tt(e)&&58!==e}(it(e,e.length-1));if(t||o)for(a=0;a<e.length;l>=65536?a+=2:a++){if(!rt(l=it(e,a)))return 5;v=v&&openapi_parser_st(l,h,c),h=l}else{for(a=0;a<e.length;l>=65536?a+=2:a++){if(10===(l=it(e,a)))f=!0,d&&(p=p||a-m-1>n&&" "!==e[m+1],m=a);else if(!rt(l))return 5;v=v&&openapi_parser_st(l,h,c),h=l}p=p||d&&a-m-1>n&&" "!==e[m+1]}return f||p?r>9&&ot(e)?5:o?2===i?5:2:p?4:3:!v||o||s(e)?2===i?5:2:1}function at(e,t,r,n,s){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==We.indexOf(t)||Ye.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=n||e.flowLevel>-1&&r>=e.flowLevel;switch(ct(t,c,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,s)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+ut(t,e.indent)+openapi_parser_lt(Qe(t,i));case 4:return">"+ut(t,e.indent)+openapi_parser_lt(Qe(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(c=e.indexOf("\n"),c=-1!==c?c:e.length,s.lastIndex=c,ht(e.slice(0,c),t)),o="\n"===e[0]||" "===e[0];var c;for(;n=s.exec(e);){var a=n[1],u=n[2];r=" "===u[0],i+=a+(o||r||""===u?"":"\n")+ht(u,t),o=r}return i}(t,o),i));case 5:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=it(e,s),!(t=Xe[n])&&rt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Ze(n);return r}(t)+'"';default:throw new openapi_parser_O("impossible error: invalid scalar style")}}()}function ut(e,t){var r=ot(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function openapi_parser_lt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ht(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,i=0,o=0,c=0,a="";r=s.exec(e);)(c=r.index)-i>t&&(n=o>i?o:c,a+="\n"+e.slice(i,n),i=n+1),o=c;return a+="\n",e.length-i>t&&o>i?a+=e.slice(i,o)+"\n"+e.slice(o+1):a+=e.slice(i),a.slice(1)}function ft(e,t,r,n){var s,i,o,c="",a=e.tag;for(s=0,i=r.length;s<i;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(dt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&dt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===c||(c+=openapi_parser_et(e,t)),e.dump&&10===e.dump.charCodeAt(0)?c+="-":c+="- ",c+=e.dump);e.tag=a,e.dump=c||"[]"}function pt(e,t,r){var n,s,i,o,c,a;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((c=s[i]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(a=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===He.call(c.represent))n=c.represent(t,a);else{if(!ze.call(c.represent,a))throw new openapi_parser_O("!<"+c.tag+'> tag resolver accepts not "'+a+'" style');n=c.represent[a](t,a)}e.dump=n}return!0}return!1}function dt(e,t,r,n,s,i,o){e.tag=null,e.dump=r,pt(e,r,!1)||pt(e,r,!0);var c,a=He.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var l,h,f="[object Object]"===a||"[object Array]"===a;if(f&&(h=-1!==(l=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(s=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===a)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,c,a,u,l="",h=e.tag,f=Object.keys(r);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new openapi_parser_O("sortKeys must be a boolean or a function");for(s=0,i=f.length;s<i;s+=1)u="",n&&""===l||(u+=openapi_parser_et(e,t)),c=r[o=f[s]],e.replacer&&(c=e.replacer.call(r,o,c)),dt(e,t+1,o,!0,!0,!0)&&((a=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,a&&(u+=openapi_parser_et(e,t)),dt(e,t+1,c,!0,a)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",l+=u+=e.dump));e.tag=h,e.dump=l||"{}"}(e,t,e.dump,s),h&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,s,i,o,c,a="",u=e.tag,l=Object.keys(r);for(n=0,s=l.length;n<s;n+=1)c="",""!==a&&(c+=", "),e.condenseFlow&&(c+='"'),o=r[i=l[n]],e.replacer&&(o=e.replacer.call(r,i,o)),dt(e,t,i,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),dt(e,t,o,!1,!1)&&(a+=c+=e.dump));e.tag=u,e.dump="{"+a+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===a)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?ft(e,t-1,e.dump,s):ft(e,t,e.dump,s),h&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,s,i,o="",c=e.tag;for(n=0,s=r.length;n<s;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(dt(e,t,i,!1,!1)||void 0===i&&dt(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=c,e.dump="["+o+"]"}(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else{if("[object String]"!==a){if("[object Undefined]"===a)return!1;if(e.skipInvalid)return!1;throw new openapi_parser_O("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&at(e,e.dump,t,i,u)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function mt(e,t){var r,n,s=[],i=[];for(vt(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function vt(e,t,r){var n,s,i;if(null!==e&&"object"==typeof e)if(-1!==(s=t.indexOf(e)))-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,i=e.length;s<i;s+=1)vt(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)vt(e[n[s]],t,r)}function yt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var bt=openapi_parser_F,gt=openapi_parser_D,wt=openapi_parser_N,xt=openapi_parser_z,jt=X,Et=ae,$t=Ge.load,Ot=Ge.loadAll,St={dump:function(e,t){var r=new Ke(t=t||{});r.noRefs||mt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),dt(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,At=openapi_parser_O,Pt={binary:ee,float:H,map:openapi_parser_M,null:openapi_parser_q,pairs:ie,set:ce,timestamp:openapi_parser_Z,bool:openapi_parser_B,int:J,merge:openapi_parser_K,omap:ne,seq:C,str:openapi_parser_},Tt=yt("safeLoad","load"),kt=yt("safeLoadAll","loadAll"),Ft=yt("safeDump","dump"),It={Type:bt,Schema:gt,FAILSAFE_SCHEMA:wt,JSON_SCHEMA:xt,CORE_SCHEMA:jt,DEFAULT_SCHEMA:Et,load:$t,loadAll:Ot,dump:St,YAMLException:At,types:Pt,safeLoad:Tt,safeLoadAll:kt,safeDump:Ft};function Rt(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Dt(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Rt(e.headers)},s=n.headers["content-type"],i=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(s);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(n.text=e,n.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):It.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}async function _t(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=openapi_parser_g(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Dt(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}function Ct(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:"application/json, application/yaml"},credentials:s}).then((e=>e.body))}const Mt=e=>{var t,r;const{baseDoc:n,url:s}=e,i=null!==(t=null!=n?n:s)&&void 0!==t?t:"";return"string"==typeof(null===(r=globalThis.document)||void 0===r?void 0:r.baseURI)?String(new URL(i,globalThis.document.baseURI)):i},Nt=e=>{const{fetch:t,http:r}=e;return t||r||_t};
|
|
4261
4260
|
/*!
|
|
4262
4261
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
4263
4262
|
* (c) 2017-2022 Joachim Wester
|
|
4264
4263
|
* MIT licensed
|
|
4265
4264
|
*/
|
|
4266
|
-
var
|
|
4265
|
+
var qt,Bt=(qt=function(e,t){return qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},qt(e,t)},function(e,t){function r(){this.constructor=e}qt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Lt=Object.prototype.hasOwnProperty;function Ut(e,t){return Lt.call(e,t)}function Jt(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var s in e)Ut(e,s)&&n.push(s);return n}function Vt(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Gt(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Ht(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function zt(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Xt(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Xt(e[t]))return!0}else if("object"==typeof e)for(var n=Jt(e),s=n.length,i=0;i<s;i++)if(Xt(e[n[i]]))return!0;return!1}function Wt(e,t){var r=[e];for(var n in t){var s="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==s&&r.push(n+": "+s)}return r.join("\n")}var Yt=function(e){function t(t,r,n,s,i){var o=this.constructor,c=e.call(this,Wt(t,{name:r,index:n,operation:s,tree:i}))||this;return c.name=r,c.index=n,c.operation=s,c.tree=i,Object.setPrototypeOf(c,o.prototype),c.message=Wt(t,{name:r,index:n,operation:s,tree:i}),c}return Bt(t,e),t}(Error),Zt=Yt,Kt=Vt,Qt={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=tr(r,this.path);n&&(n=Vt(n));var s=rr(r,{op:"remove",path:this.from}).removed;return rr(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=tr(r,this.from);return rr(r,{op:"add",path:this.path,value:Vt(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:or(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},er={add:function(e,t,r){return Gt(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:Qt.move,copy:Qt.copy,test:Qt.test,_get:Qt._get};function tr(e,t){if(""==t)return e;var r={op:"_get",path:t};return rr(e,r),r.value}function rr(e,t,r,n,s,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===s&&(s=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):sr(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=tr(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=or(e,t.value),!1===o.test)throw new Zt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Zt("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Vt(e));var c=(t.path||"").split("/"),a=e,u=1,l=c.length,h=void 0,f=void 0,p=void 0;for(p="function"==typeof r?r:sr;;){if((f=c[u])&&-1!=f.indexOf("~")&&(f=zt(f)),s&&("__proto__"==f||"prototype"==f&&u>0&&"constructor"==c[u-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(r&&void 0===h&&(void 0===a[f]?h=c.slice(0,u).join("/"):u==l-1&&(h=t.path),void 0!==h&&p(t,0,e,h)),u++,Array.isArray(a)){if("-"===f)f=a.length;else{if(r&&!Gt(f))throw new Zt("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",i,t,e);Gt(f)&&(f=~~f)}if(u>=l){if(r&&"add"===t.op&&f>a.length)throw new Zt("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=er[t.op].call(t,a,f,e)).test)throw new Zt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(u>=l){if(!1===(o=Qt[t.op].call(t,a,f,e)).test)throw new Zt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(a=a[f],r&&u<l&&(!a||"object"!=typeof a))throw new Zt("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function nr(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new Zt("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Vt(e));for(var i=new Array(t.length),o=0,c=t.length;o<c;o++)i[o]=rr(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function sr(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Zt("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Qt[e.op])throw new Zt("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Zt("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Zt('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Zt("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Zt("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Xt(e.value))throw new Zt("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var s=e.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new Zt("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new Zt("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=ir([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Zt("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function ir(e,t,r){try{if(!Array.isArray(e))throw new Zt("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)nr(Vt(t),Vt(e),r||!0);else{r=r||sr;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Zt)return e;throw e}}function or(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,s,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!or(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var c=Object.keys(e);if((n=c.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(c[r]))return!1;for(r=n;0!=r--;)if(!or(e[s=c[r]],t[s]))return!1;return!0}return e!=e&&t!=t}const cr=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:Zt,_areEquals:or,applyOperation:rr,applyPatch:nr,applyReducer:function(e,t,r){var n=rr(e,t);if(!1===n.test)throw new Zt("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument},deepClone:Kt,getValueByPointer:tr,validate:ir,validator:sr},Symbol.toStringTag,{value:"Module"}));
|
|
4267
4266
|
/*!
|
|
4268
4267
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
4269
4268
|
* (c) 2017-2021 Joachim Wester
|
|
4270
4269
|
* MIT license
|
|
4271
|
-
*/var Oy=new WeakMap,Ey=function(e){this.observers=new Map,this.obj=e},xy=function(e,t){this.callback=e,this.observer=t};function Sy(e,t){void 0===t&&(t=!1);var n=Oy.get(e.object);Py(n.value,e.object,e.patches,"",t),e.patches.length&&yy(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function Py(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var s=ry(t),o=ry(e),c=!1,a=o.length-1;a>=0;a--){var u=e[l=o[a]];if(!ny(t,l)||void 0===t[l]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+oy(l),value:iy(u)}),n.push({op:"remove",path:r+"/"+oy(l)}),c=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var f=t[l];"object"==typeof u&&null!=u&&"object"==typeof f&&null!=f&&Array.isArray(u)===Array.isArray(f)?Py(u,f,n,r+"/"+oy(l),i):u!==f&&(i&&n.push({op:"test",path:r+"/"+oy(l),value:iy(u)}),n.push({op:"replace",path:r+"/"+oy(l),value:iy(f)}))}}if(c||s.length!=o.length)for(a=0;a<s.length;a++){var l;ny(e,l=s[a])||void 0===t[l]||n.push({op:"add",path:r+"/"+oy(l),value:iy(t[l])})}}}const $y=Object.freeze(Object.defineProperty({__proto__:null,compare:function(e,t,n){void 0===n&&(n=!1);var r=[];return Py(e,t,r,"",n),r},generate:Sy,observe:function(e,t){var n,r=function(e){return Oy.get(e)}(e);if(r){var i=function(e,t){return e.observers.get(t)}(r,t);n=i&&i.observer}else r=new Ey(e),Oy.set(e,r);if(n)return n;if(n={},r.value=iy(e),t){n.callback=t,n.next=null;var s=function(){Sy(n)},o=function(){clearTimeout(n.next),n.next=setTimeout(s)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return n.patches=[],n.object=e,n.unobserve=function(){Sy(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},r.observers.set(t,new xy(t,n)),n},unobserve:function(e,t){t.unobserve()}},Symbol.toStringTag,{value:"Module"}));Object.assign({},wy,$y,{JsonPatchError:fy,deepClone:iy,escapePathComponent:oy,unescapePathComponent:cy});var Ay=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===Ty}(e)}(e)};var Ty="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ry(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ny((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Iy(e,t,n){return e.concat(t).map((function(e){return Ry(e,n)}))}function ky(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 Fy(e,t){try{return t in e}catch(e){return!1}}function My(e,t,n){var r={};return n.isMergeableObject(e)&&ky(e).forEach((function(t){r[t]=Ry(e[t],n)})),ky(t).forEach((function(i){(function(e,t){return Fy(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(Fy(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return Ny;var n=t.customMerge(e);return"function"==typeof n?n:Ny}(i,n)(e[i],t[i],n):r[i]=Ry(t[i],n))})),r}function Ny(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Iy,n.isMergeableObject=n.isMergeableObject||Ay,n.cloneUnlessOtherwiseSpecified=Ry;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):My(e,t,n):Ry(t,n)}Ny.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ny(e,n,t)}),{})};const Cy=openapi_parser_e(Ny),Dy={add:function(e,t){return{op:"add",path:e,value:t}},replace:_y,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=vl(vl({},t),{},{path:t.path&&qy(t.path)})).op){const n=Qy(e,t.path);Object.assign(n,t.value),yy(e,[_y(t.path,n)])}else if("mergeDeep"===t.op){const n=Qy(e,t.path),r=Cy(n,t.value);e=yy(e,[_y(t.path,r)]).newDocument}else if("add"===t.op&&""===t.path&&zy(t.value)){const n=Object.keys(t.value).reduce(((e,n)=>(e.push({op:"add",path:`/${qy(n)}`,value:t.value[n]}),e)),[]);yy(e,n)}else if("replace"===t.op&&""===t.path){let{value:r}=t;n.allowMetaPatches&&t.meta&&Yy(t)&&(Array.isArray(t.value)||zy(t.value))&&(r=vl(vl({},r),t.meta)),e=r}else if(yy(e,[t]),n.allowMetaPatches&&t.meta&&Yy(t)&&(Array.isArray(t.value)||zy(t.value))){const n=vl(vl({},Qy(e,t.path)),t.meta);yy(e,[_y(t.path,n)])}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:Vy,fullyNormalizeArray:function(e){return Gy(Vy(Jy(e)))},normalizeArray:Jy,isPromise:function(e){return zy(e)&&Hy(e.then)},forEachNew:function(e,t){try{return By(e,Uy,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return By(e,Ly,t)}catch(e){return e}},isJsonPatch:Wy,isContextPatch:function(e){return Ky(e)&&"context"===e.type},isPatch:Ky,isMutation:Xy,isAdditiveMutation:Yy,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Hy,isObject:zy,isError:function(e){return e instanceof Error}};function qy(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function _y(e,t,n){return{op:"replace",path:e,value:t,meta:n}}function By(e,t,n){return Gy(Vy(e.filter(Yy).map((e=>t(e.value,n,e.path)))||[]))}function Ly(e,t,n){return n=n||[],Array.isArray(e)?e.map(((e,r)=>Ly(e,t,n.concat(r)))):zy(e)?Object.keys(e).map((r=>Ly(e[r],t,n.concat(r)))):t(e,n[n.length-1],n)}function Uy(e,t,n){let r=[];if((n=n||[]).length>0){const i=t(e,n[n.length-1],n);i&&(r=r.concat(i))}if(Array.isArray(e)){const i=e.map(((e,r)=>Uy(e,t,n.concat(r))));i&&(r=r.concat(i))}else if(zy(e)){const i=Object.keys(e).map((r=>Uy(e[r],t,n.concat(r))));i&&(r=r.concat(i))}return r=Vy(r),r}function Jy(e){return Array.isArray(e)?e:[e]}function Vy(e){return[].concat(...e.map((e=>Array.isArray(e)?Vy(e):e)))}function Gy(e){return e.filter((e=>void 0!==e))}function zy(e){return e&&"object"==typeof e}function Hy(e){return e&&"function"==typeof e}function Wy(e){if(Ky(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Xy(e){return Wy(e)||Ky(e)&&"mutation"===e.type}function Yy(e){return Xy(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Ky(e){return e&&"object"==typeof e}function Qy(e,t){try{return dy(e,t)}catch(e){return console.error(e),{}}}function Zy(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 eb={exports:{}},tb=eb.exports=function(e){return new nb(e)};function nb(e){this.value=e}function rb(e,t,n){var r=[],i=[],s=!0;return function e(o){var c=n?ib(o):o,a={},u=!0,f={node:c,node_:o,path:[].concat(r),parent:i[i.length-1],parents:i,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(u=!1)},delete:function(e){delete f.parent.node[f.key],e&&(u=!1)},remove:function(e){cb(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(u=!1)},keys:null,before:function(e){a.before=e},after:function(e){a.after=e},pre:function(e){a.pre=e},post:function(e){a.post=e},stop:function(){s=!1},block:function(){u=!1}};if(!s)return f;function l(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=sb(f.node)),f.isLeaf=0==f.keys.length;for(var e=0;e<i.length;e++)if(i[e].node_===o){f.circular=i[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}l();var h=t.call(f,f.node);return void 0!==h&&f.update&&f.update(h),a.before&&a.before.call(f,f.node),u?("object"!=typeof f.node||null===f.node||f.circular||(i.push(f),l(),ab(f.keys,(function(t,i){r.push(t),a.pre&&a.pre.call(f,f.node[t],t);var s=e(f.node[t]);n&&ub.call(f.node,t)&&(f.node[t]=s.node),s.isLast=i==f.keys.length-1,s.isFirst=0==i,a.post&&a.post.call(f,s),r.pop()})),i.pop()),a.after&&a.after.call(f,f.node),f):f}(e).node}function ib(e){if("object"==typeof e&&null!==e){var t;if(cb(e))t=[];else if("[object Date]"===ob(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===ob(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===ob(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===ob(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===ob(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===ob(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return ab(sb(e),(function(n){t[n]=e[n]})),t}return e}nb.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!ub.call(t,r)){t=void 0;break}t=t[r]}return t},nb.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!ub.call(t,r))return!1;t=t[r]}return!0},nb.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var i=e[r];ub.call(n,i)||(n[i]={}),n=n[i]}return n[e[r]]=t,t},nb.prototype.map=function(e){return rb(this.value,e,!0)},nb.prototype.forEach=function(e){return this.value=rb(this.value,e,!1),this.value},nb.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},nb.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},nb.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},nb.prototype.clone=function(){var e=[],t=[];return function n(r){for(var i=0;i<e.length;i++)if(e[i]===r)return t[i];if("object"==typeof r&&null!==r){var s=ib(r);return e.push(r),t.push(s),ab(sb(r),(function(e){s[e]=n(r[e])})),e.pop(),t.pop(),s}return r}(this.value)};var sb=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function ob(e){return Object.prototype.toString.call(e)}var cb=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ab=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};ab(sb(nb.prototype),(function(e){tb[e]=function(t){var n=[].slice.call(arguments,1),r=new nb(t);return r[e].apply(r,n)}}));var ub=Object.hasOwnProperty||function(e,t){return t in e};const fb=openapi_parser_e(eb.exports),lb=["properties"],hb=["properties"],pb=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],mb=["schema/example","items/example"];function db(e){const t=e[e.length-1],n=e[e.length-2],r=e.join("/");return lb.indexOf(t)>-1&&-1===hb.indexOf(n)||pb.indexOf(r)>-1||mb.some((e=>r.indexOf(e)>-1))}function vb(e,t){const[n,r]=e.split("#"),i=yl.resolve(n||"",t||"");return r?`${i}#${r}`:i}const yb=/^([a-z]+:\/\/|\/\/)/i,bb=Zy("JSONRefError",(function(e,t,n){this.originalError=n,Object.assign(this,t||{})})),jb={},gb=new WeakMap,wb=[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]],Ob={key:"$ref",plugin:(e,t,n,r)=>{const i=r.getInstance(),s=n.slice(0,-1);if(db(s)||(e=>wb.some((t=>t(e))))(s))return;const{baseDoc:o}=r.getContext(n);if("string"!=typeof e)return new bb("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:n});const c=Pb(e),a=c[0],u=c[1]||"";let f,l,h;try{f=o||a?xb(a,o):null}catch(t){return Sb(t,{pointer:u,$ref:e,basePath:f,fullPath:n})}if(function(e,t,n,r){let i=gb.get(r);i||(i={},gb.set(r,i));const s=function(e){if(0===e.length)return"";return`/${e.map(kb).join("/")}`}(n),o=`${t||"<specmap-base>"}#${e}`,c=s.replace(/allOf\/\d+\/?/g,""),a=r.contextTree.get([]).baseDoc;if(t===a&&Fb(c,e))return!0;let u="";const f=n.some((e=>(u=`${u}/${kb(e)}`,i[u]&&i[u].some((e=>Fb(e,o)||Fb(o,e))))));if(f)return!0;return void(i[c]=(i[c]||[]).concat(o))}(u,f,s,r)&&!i.useCircularStructures){const t=vb(e,f);return e===t?null:Dy.replace(n,t)}if(null==f?(h=Rb(u),l=r.get(h),void 0===l&&(l=new bb(`Could not resolve reference: ${e}`,{pointer:u,$ref:e,baseDoc:o,fullPath:n}))):(l=$b(f,u),l=null!=l.l?l.l:l.catch((t=>{throw Sb(t,{pointer:u,$ref:e,baseDoc:o,fullPath:n})}))),l instanceof Error)return[Dy.remove(n),l];const p=vb(e,f),m=Dy.replace(s,l,{$$ref:p});if(f&&f!==o)return[m,Dy.context(s,{baseDoc:f})];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 Dy.isObject(e)&&(n.indexOf(e)>=0||Object.keys(e).some((t=>r(e[t]))))}}(r.state,m)||i.useCircularStructures)return m}catch(e){return null}}},Eb=Object.assign(Ob,{docCache:jb,absoluteify:xb,clearCache:function(e){void 0!==e?delete jb[e]:Object.keys(jb).forEach((e=>{delete jb[e]}))},JSONRefError:bb,wrapError:Sb,getDoc:Ab,split:Pb,extractFromDoc:$b,fetchJSON:function(e){return fetch(e,{headers:{Accept:"application/json, application/yaml"},loadSpec:!0}).then((e=>e.text())).then((e=>xv.load(e)))},extract:Tb,jsonPointerToArray:Rb,unescapeJsonPointerToken:Ib});function xb(e,t){if(!yb.test(e)){if(!t)throw new bb(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return yl.resolve(t,e)}return e}function Sb(e,t){let n;return n=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new bb(`Could not resolve reference: ${n}`,t,e)}function Pb(e){return(e+"").split("#")}function $b(e,t){const n=jb[e];if(n&&!Dy.isPromise(n))try{const e=Tb(t,n);return Object.assign(Promise.resolve(e),{l:e})}catch(e){return Promise.reject(e)}return Ab(e).then((e=>Tb(t,e)))}function Ab(e){const t=jb[e];return t?Dy.isPromise(t)?t:Promise.resolve(t):(jb[e]=Eb.fetchJSON(e).then((t=>(jb[e]=t,t))),jb[e])}function Tb(e,t){const n=Rb(e);if(n.length<1)return t;const r=Dy.getIn(t,n);if(void 0===r)throw new bb(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return r}function Rb(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(Ib)}function Ib(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function kb(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function Fb(e,t){if(!(n=t)||"/"===n||"#"===n)return!0;var n;const r=e.charAt(t.length),i=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==i}const Mb={key:"allOf",plugin:(e,t,n,r,i)=>{if(i.meta&&i.meta.$$ref)return;const s=n.slice(0,-1);if(db(s))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=n,e}let o=!1,c=i.value;if(s.forEach((e=>{c&&(c=c[e])})),c=vl({},c),0===Object.keys(c).length)return;delete c.allOf;const a=[];return a.push(r.replace(s,{})),e.forEach(((e,t)=>{if(!r.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=n,a.push(e)}a.push(r.mergeDeep(s,e));const i=function(e,t){let{specmap:n,getBaseUrlForNodePath:r=(e=>n.getContext([...t,...e]).baseDoc),targetKeys:i=["$ref","$$ref"]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=[];return fb(e).forEach((function(){if(i.includes(this.key)&&"string"==typeof this.node){const e=this.path,i=t.concat(this.path),o=vb(this.node,r(e));s.push(n.replace(i,o))}})),s}(e,n.slice(0,-1),{getBaseUrlForNodePath:e=>r.getContext([...n,t,...e]).baseDoc,specmap:r});a.push(...i)})),c.example&&a.push(r.remove([].concat(s,"example"))),a.push(r.mergeDeep(s,c)),c.$$ref||a.push(r.remove([].concat(s,"$$ref"))),a}},Nb={key:"parameters",plugin:(e,t,n,r)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),i=n.slice(0,-1),s=vl({},Dy.getIn(r.spec,i));for(let i=0;i<e.length;i+=1){const o=e[i];try{t[i].default=r.parameterMacro(s,o)}catch(e){const t=new Error(e);return t.fullPath=n,t}}return Dy.replace(n,t)}return Dy.replace(n,e)}},Cb={key:"properties",plugin:(e,t,n,r)=>{const i=vl({},e);for(const t in e)try{i[t].default=r.modelPropertyMacro(i[t])}catch(e){const t=new Error(e);return t.fullPath=n,t}return Dy.replace(n,i)}};class Db{constructor(e){this.root=qb(e||{})}set(e,t){const n=this.getParent(e,!0);if(!n)return void _b(this.root,t,null);const r=e[e.length-1],{children:i}=n;i[r]?_b(i[r],t,n):i[r]=qb(t,n)}get(e){if((e=e||[]).length<1)return this.root.value;let t,n,r=this.root;for(let i=0;i<e.length&&(n=e[i],t=r.children,t[n]);i+=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]=qb(null,e)),r[n]}),this.root)}}function qb(e,t){return _b({children:{}},e,t)}function _b(e,t,n){return e.value=t||{},e.protoValue=n?vl(vl({},n.protoValue),e.value):e.value,Object.keys(e.children).forEach((t=>{const n=e.children[t];e.children[t]=_b(n,n.value,e)})),e}const Bb=()=>{};class Lb{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 Db,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Dy,{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(Dy.isFunction),this.patches.push(Dy.add([],this.spec)),this.patches.push(Dy.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,i=null;return e[this.pluginProp]?(i=e,r=e[this.pluginProp]):Dy.isFunction(e)?r=e:Dy.isObject(e)&&(r=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,n)=>e===t[n]));return function*(r,i){const s={};for(const e of r.filter(Dy.isAdditiveMutation))yield*o(e.value,e.path,e);function*o(r,c,a){if(Dy.isObject(r)){const u=c.length-1,f=c[u],l=c.indexOf("properties"),h="properties"===f&&u===l,p=i.allowMetaPatches&&s[r.$$ref];for(const u of Object.keys(r)){const f=r[u],l=c.concat(u),m=Dy.isObject(f),d=r.$$ref;if(p||m&&(i.allowMetaPatches&&d&&(s[d]=!0),yield*o(f,l,a)),!h&&u===e.key){const r=t(n,c);n&&!r||(yield e.plugin(f,u,l,i,a))}}}else e.key===c[c.length-1]&&(yield e.plugin(r,e.key,c,i))}}}(e)),Object.assign(r.bind(i),{pluginName:e.name||t,isGenerator:Dy.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){Dy.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Dy.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Dy.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Dy.isContextPatch(e))return void this.setContext(e.path,e.value);Dy.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=vl({},e.value));const t=Dy.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=vl(vl({},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 Dy.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(Bb,Bb)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const r=e.getCurrentMutations(),i=e.mutations.length-1;try{if(t.isGenerator)for(const i of t(r,e.getLib()))n(i);else{n(t(r,e.getLib()))}}catch(e){console.error(e),n([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:i})}return e.dispatch()}();function n(n){n&&(n=Dy.fullyNormalizeArray(n),e.updatePatches(n,t))}}}const Ub={refs:Eb,allOf:Mb,parameters:Nb,properties:Cb},Jb=e=>e.replace(/\W/gi,"_");function Vb(e,t){let{v2OperationIdCompatibilityMode:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${Jb(e)}`}function Gb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{v2OperationIdCompatibilityMode:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||"object"!=typeof e)return null;const i=(e.operationId||"").replace(/\s/g,"");return i.length?Jb(e.operationId):Vb(t,n,{v2OperationIdCompatibilityMode:r})}function zb(e){const{spec:t}=e,{paths:n}=t,r={};if(!n||t.$$normalized)return e;for(const e in n){const i=n[e];if(null==i||!["object","function"].includes(typeof i))continue;const s=i.parameters;for(const n in i){const o=i[n];if(null==o||!["object","function"].includes(typeof o))continue;const c=Gb(o,e,n);if(c){r[c]?r[c].push(o):r[c]=[o];const e=r[c];if(e.length>1)e.forEach(((e,t)=>{e.h=e.h||e.operationId,e.operationId=`${c}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.h=t.h||o.operationId,t.operationId=c}}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(o[e]){if("parameters"===e)for(const n of t[e]){o[e].some((e=>e.name&&e.name===n.name||e.$ref&&e.$ref===n.$ref||e.$$ref&&e.$$ref===n.$$ref||e===n))||o[e].push(n)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}async function Hb(e){const{spec:t,mode:n,allowMetaPatches:r=!0,pathDiscriminator:i,modelPropertyMacro:s,parameterMacro:o,requestInterceptor:c,responseInterceptor:a,skipNormalization:u,useCircularStructures:f}=e,l=Kv(e),h=Qv(e);return function(e){l&&(Ub.refs.docCache[l]=e);Ub.refs.fetchJSON=Yv(h,{requestInterceptor:c,responseInterceptor:a});const t=[Ub.refs];"function"==typeof o&&t.push(Ub.parameters);"function"==typeof s&&t.push(Ub.properties);"strict"!==n&&t.push(Ub.allOf);return(p={spec:e,context:{baseDoc:l},plugins:t,allowMetaPatches:r,pathDiscriminator:i,parameterMacro:o,modelPropertyMacro:s,useCircularStructures:f},new Lb(p).dispatch()).then(u?async e=>e:zb);var p}(t)}const Wb={name:"generic",match:()=>!0,normalize(e){let{spec:t}=e;const{spec:n}=zb({spec:t});return n},resolve:async e=>Hb(e)};const Xb=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Yb=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Kb=e=>Xb(e)||Yb(e),Qb={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}=zb({spec:t});return n},resolve:async e=>async function(e){return Hb(e)}(e)};const Zb={name:"openapi-3-0",match(e){let{spec:t}=e;return Xb(t)},normalize(e){let{spec:t}=e;const{spec:n}=zb({spec:t});return n},resolve:async e=>async function(e){return Hb(e)}(e)},ej=e=>async t=>(async e=>{const{spec:t,requestInterceptor:n,responseInterceptor:r}=e,i=Kv(e),s=Qv(e),o=t||await Yv(s,{requestInterceptor:n,responseInterceptor:r})(i),c=vl(vl({},e),{},{spec:o});return e.strategies.find((e=>e.match(c))).resolve(c)})(vl(vl({},e),t)),tj=ej({strategies:[Zb,Qb,Wb]});var nj=Array.isArray,rj="object"==typeof global&&global&&global.Object===Object&&global,ij=rj,sj="object"==typeof self&&self&&self.Object===Object&&self,oj=ij||sj||Function("return this")(),cj=oj.Symbol,aj=cj,uj=Object.prototype,fj=uj.hasOwnProperty,lj=uj.toString,hj=aj?aj.toStringTag:void 0;var pj=function(e){var t=fj.call(e,hj),n=e[hj];try{e[hj]=void 0;var r=!0}catch(e){}var i=lj.call(e);return r&&(t?e[hj]=n:delete e[hj]),i},mj=Object.prototype.toString;var dj=pj,vj=function(e){return mj.call(e)},yj=cj?cj.toStringTag:void 0;var bj=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yj&&yj in Object(e)?dj(e):vj(e)};var jj=function(e){return null!=e&&"object"==typeof e},gj=bj,wj=jj;var Oj=function(e){return"symbol"==typeof e||wj(e)&&"[object Symbol]"==gj(e)},Ej=nj,xj=Oj,Sj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pj=/^\w*$/;var $j=function(e,t){if(Ej(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!xj(e))||(Pj.test(e)||!Sj.test(e)||null!=t&&e in Object(t))};var Aj=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Tj=bj,Rj=Aj;var Ij=function(e){if(!Rj(e))return!1;var t=Tj(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},kj=oj["u"],Fj=function(){var e=/[^.]+$/.exec(kj&&kj.keys&&kj.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Mj=function(e){return!!Fj&&Fj in e},Nj=Function.prototype.toString;var Cj=function(e){if(null!=e){try{return Nj.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Dj=Ij,qj=Mj,_j=Aj,Bj=Cj,Lj=/^\[object .+?Constructor\]$/,Uj=Function.prototype,Jj=Object.prototype,Vj=Uj.toString,Gj=Jj.hasOwnProperty,zj=RegExp("^"+Vj.call(Gj).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Hj=function(e){return!(!_j(e)||qj(e))&&(Dj(e)?zj:Lj).test(Bj(e))},Wj=function(e,t){return null==e?void 0:e[t]};var Xj=function(e,t){var n=Wj(e,t);return Hj(n)?n:void 0},Yj=Xj(Object,"create"),Kj=Yj;var Qj=function(){this.p=Kj?Kj(null):{},this.size=0};var Zj=function(e){var t=this.has(e)&&delete this.p[e];return this.size-=t?1:0,t},eg=Yj,tg=Object.prototype.hasOwnProperty;var ng=function(e){var t=this.p;if(eg){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return tg.call(t,e)?t[e]:void 0},rg=Yj,ig=Object.prototype.hasOwnProperty;var sg=function(e){var t=this.p;return rg?void 0!==t[e]:ig.call(t,e)},og=Yj;var cg=function(e,t){var n=this.p;return this.size+=this.has(e)?0:1,n[e]=og&&void 0===t?"__lodash_hash_undefined__":t,this},ag=Qj,ug=Zj,fg=ng,lg=sg,hg=cg;function pg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pg.prototype.clear=ag,pg.prototype.delete=ug,pg.prototype.get=fg,pg.prototype.has=lg,pg.prototype.set=hg;var mg=pg;var dg=function(){this.p=[],this.size=0};var vg=function(e,t){return e===t||e!=e&&t!=t},yg=vg;var bg=function(e,t){for(var n=e.length;n--;)if(yg(e[n][0],t))return n;return-1},jg=bg,gg=Array.prototype.splice;var wg=function(e){var t=this.p,n=jg(t,e);return!(n<0)&&(n==t.length-1?t.pop():gg.call(t,n,1),--this.size,!0)},Og=bg;var Eg=function(e){var t=this.p,n=Og(t,e);return n<0?void 0:t[n][1]},xg=bg;var Sg=bg;var Pg=function(e,t){var n=this.p,r=Sg(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$g=dg,Ag=wg,Tg=Eg,Rg=function(e){return xg(this.p,e)>-1},Ig=Pg;function kg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kg.prototype.clear=$g,kg.prototype.delete=Ag,kg.prototype.get=Tg,kg.prototype.has=Rg,kg.prototype.set=Ig;var Fg=kg,Mg=Xj(oj,"Map"),Ng=mg,Cg=Fg,Dg=Mg;var qg=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},_g=qg;var Bg=function(e,t){var n=e.p;return _g(t)?n["string"==typeof t?"string":"hash"]:n.map},Lg=Bg;var Ug=Bg;var Jg=Bg;var Vg=Bg;var Gg=function(e,t){var n=Vg(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},zg=function(){this.size=0,this.p={hash:new Ng,map:new(Dg||Cg),string:new Ng}},Hg=function(e){var t=Lg(this,e).delete(e);return this.size-=t?1:0,t},Wg=function(e){return Ug(this,e).get(e)},Xg=function(e){return Jg(this,e).has(e)},Yg=Gg;function Kg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kg.prototype.clear=zg,Kg.prototype.delete=Hg,Kg.prototype.get=Wg,Kg.prototype.has=Xg,Kg.prototype.set=Yg;var Qg=Kg,Zg=Qg;function ew(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(ew.Cache||Zg),n}ew.Cache=Zg;var tw=ew;var nw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rw=/\\(\\)?/g,iw=function(e){var t=tw(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nw,(function(e,n,r,i){t.push(r?i.replace(rw,"$1"):n||e)})),t})),sw=iw;var ow=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},cw=ow,aw=nj,uw=Oj,fw=cj?cj.prototype:void 0,lw=fw?fw.toString:void 0;var hw=function e(t){if("string"==typeof t)return t;if(aw(t))return cw(t,e)+"";if(uw(t))return lw?lw.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},pw=hw;var mw=nj,dw=$j,vw=sw,yw=function(e){return null==e?"":pw(e)};var bw=Oj;var jw=function(e,t){return mw(e)?e:dw(e,t)?[e]:vw(yw(e))},gw=function(e){if("string"==typeof e||bw(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ww=function(e,t){for(var n=0,r=(t=jw(t,e)).length;null!=e&&n<r;)e=e[gw(t[n++])];return n&&n==r?e:void 0},Ow=ww;var Ew=function(e,t,n){var r=null==e?void 0:Ow(e,t);return void 0===r?n:r};const xw=openapi_parser_e(Ew),Sw=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{returnEntireTree:r,baseDoc:i,requestInterceptor:s,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:u,strategies:f}=n,l={spec:e,pathDiscriminator:t,baseDoc:i,requestInterceptor:s,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:u,strategies:f},h=f.find((e=>e.match(l))),p=h.normalize(l),m=await tj(vl(vl({},l),{},{spec:p,allowMetaPatches:!0,skipNormalization:!0}));return!r&&Array.isArray(t)&&t.length&&(m.spec=xw(m.spec,t)||null),m};const Pw=function(){return!1};const $w=function(){return!0};function Aw(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Tw(e){return function t(n){return 0===arguments.length||Aw(n)?t:e.apply(this,arguments)}}function Rw(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Aw(n)?t:Tw((function(t){return e(n,t)}));default:return Aw(n)&&Aw(r)?t:Aw(n)?Tw((function(t){return e(t,r)})):Aw(r)?Tw((function(t){return e(n,t)})):e(n,r)}}}function Iw(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,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,s){return t.apply(this,arguments)};case 6:return function(e,n,r,i,s,o){return t.apply(this,arguments)};case 7:return function(e,n,r,i,s,o,c){return t.apply(this,arguments)};case 8:return function(e,n,r,i,s,o,c,a){return t.apply(this,arguments)};case 9:return function(e,n,r,i,s,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,n,r,i,s,o,c,a,u,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function kw(e,t,n){return function(){for(var r=[],i=0,s=e,o=0;o<t.length||i<arguments.length;){var c;o<t.length&&(!Aw(t[o])||i>=arguments.length)?c=t[o]:(c=arguments[i],i+=1),r[o]=c,Aw(c)||(s-=1),o+=1}return s<=0?n.apply(this,r):Iw(s,kw(e,r,n))}}const Fw=Rw((function(e,t){return 1===e?Tw(t):Iw(e,kw(e,[],t))}));function Mw(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Aw(n)?t:Rw((function(t,r){return e(n,t,r)}));case 2:return Aw(n)&&Aw(r)?t:Aw(n)?Rw((function(t,n){return e(t,r,n)})):Aw(r)?Rw((function(t,r){return e(n,t,r)})):Tw((function(t){return e(n,r,t)}));default:return Aw(n)&&Aw(r)&&Aw(i)?t:Aw(n)&&Aw(r)?Rw((function(t,n){return e(t,n,i)})):Aw(n)&&Aw(i)?Rw((function(t,n){return e(t,r,n)})):Aw(r)&&Aw(i)?Rw((function(t,r){return e(n,t,r)})):Aw(n)?Tw((function(t){return e(t,r,i)})):Aw(r)?Tw((function(t){return e(n,t,i)})):Aw(i)?Tw((function(t){return e(n,r,t)})):e(n,r,i)}}}const Nw=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Cw(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function Dw(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!Nw(r)){for(var i=0;i<e.length;){if("function"==typeof r[e[i]])return r[e[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(Cw(r)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(r)}}return n.apply(this,arguments)}}function qw(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const _w=function(){return this.xf["@@transducer/init"]()},Bw=function(e){return this.xf["@@transducer/result"](e)};var Lw=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=_w,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=qw(this.xf["@@transducer/step"](e,!1))),e},e}();function Uw(e){return function(t){return new Lw(e,t)}}const Jw=Rw(Dw(["all"],Uw,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0})));function Vw(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Gw(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function zw(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Hw="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Ww=Object.prototype.toString,Xw=function(){return"[object Arguments]"===Ww.call(arguments)?function(e){return"[object Arguments]"===Ww.call(e)}:function(e){return zw("callee",e)}}(),Yw=!{toString:null}.propertyIsEnumerable("toString"),Kw=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Qw=function(){return arguments.propertyIsEnumerable("length")}(),Zw=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},eO="function"!=typeof Object.keys||Qw?Tw((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=Qw&&Xw(e);for(t in e)!zw(t,e)||i&&"length"===t||(r[r.length]=t);if(Yw)for(n=Kw.length-1;n>=0;)zw(t=Kw[n],e)&&!Zw(r,t)&&(r[r.length]=t),n-=1;return r})):Tw((function(e){return Object(e)!==e?[]:Object.keys(e)}));const tO=Tw((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function nO(e,t,n,r){var i=Vw(e);function s(e,t){return rO(e,t,n.slice(),r.slice())}return!Gw((function(e,t){return!Gw(s,t,e)}),Vw(t),i)}function rO(e,t,n,r){if(Hw(e,t))return!0;var i=tO(e);if(i!==tO(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"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Hw(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Hw(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 s=n.length-1;s>=0;){if(n[s]===e)return r[s]===t;s-=1}switch(i){case"Map":return e.size===t.size&&nO(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&nO(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 o=eO(e);if(o.length!==eO(t).length)return!1;var c=n.concat([e]),a=r.concat([t]);for(s=o.length-1;s>=0;){var u=o[s];if(!zw(u,t)||!rO(t[u],e[u],c,a))return!1;s-=1}return!0}const iO=Rw((function(e,t){return rO(e,t,[],[])}));function sO(e,t){return function(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(i=e[n])&&i!=i)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(iO(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function oO(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function cO(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 aO=function(e){return(e<10?"0":"")+e},uO="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+aO(e.getUTCMonth()+1)+"-"+aO(e.getUTCDate())+"T"+aO(e.getUTCHours())+":"+aO(e.getUTCMinutes())+":"+aO(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function fO(e){return function(){return!e.apply(this,arguments)}}function lO(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}function hO(e){return"[object Object]"===Object.prototype.toString.call(e)}var pO=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_w,e.prototype["@@transducer/result"]=Bw,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function mO(e){return function(t){return new pO(e,t)}}var dO=Rw(Dw(["fantasy-land/filter","filter"],mO,(function(e,t){return hO(t)?lO((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},eO(t)):function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}(e,t)}))),vO=Rw((function(e,t){return dO(fO(e),t)}));function yO(e,t){var n=function(n){var r=t.concat([e]);return sO(n,r)?"<Circular>":yO(n,r)},r=function(e,t){return oO((function(t){return cO(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+oO(n,e).join(", ")+"))";case"[object Array]":return"["+oO(n,e).concat(r(e,vO((function(e){return/^\d+$/.test(e)}),eO(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):cO(uO(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())+")":cO(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+r(e,eO(e)).join(", ")+"}"}}const bO=Tw((function(e){return yO(e,[])}));var jO=Rw((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 i=n(typeof e,typeof t);if(void 0!==i)return i===typeof e?e:t;var s=bO(e),o=n(s,bO(t));return void 0!==o&&o===s?e:t})),gO=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_w,e.prototype["@@transducer/result"]=Bw,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const wO=Rw(Dw(["fantasy-land/map","map"],(function(e){return function(t){return new gO(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Fw(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return lO((function(n,r){return n[r]=e(t[r]),n}),{},eO(t));default:return oO(e,t)}}))),OO=Number.isInteger||function(e){return e<<0===e};function EO(e){return"[object String]"===Object.prototype.toString.call(e)}const xO=Rw((function(e,t){var n=e<0?t.length+e:e;return EO(t)?t.charAt(n):t[n]}));var SO=Rw((function(e,t){if(null!=t)return OO(e)?xO(e,t):t[e]})),PO=Rw((function(e,t){return wO(SO(e),t)})),$O=Tw((function(e){return!!Nw(e)||!!e&&("object"==typeof e&&(!EO(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),AO="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function TO(e,t,n){return function(r,i,s){if($O(s))return e(r,i,s);if(null==s)return i;if("function"==typeof s["fantasy-land/reduce"])return t(r,i,s,"fantasy-land/reduce");if(null!=s[AO])return n(r,i,s[AO]());if("function"==typeof s.next)return n(r,i,s);if("function"==typeof s.reduce)return t(r,i,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function RO(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}var IO=Rw((function(e,t){return Iw(e.length,(function(){return e.apply(t,arguments)}))}));function kO(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 FO(e,t,n,r){return e["@@transducer/result"](n[r](IO(e["@@transducer/step"],e),t))}var MO=TO(RO,FO,kO),NO=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 CO(e){return new NO(e)}const DO=Mw((function(e,t,n){return MO("function"==typeof e?CO(e):e,t,n)}));const qO=Tw((function(e){return Fw(DO(jO,0,PO("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 _O=Tw((function(e){return function(){return e}}));var BO=Rw((function(e,t){return e&&t}));const LO=Tw((function(e){return Fw(DO(jO,0,PO("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 UO(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function JO(e,t,n,r){return n[r](e,t)}var VO=TO(lO,JO,UO),GO=Rw((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))}:VO((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,s=[];for(n=0;n<r;)s[s.length]=e[n],n+=1;for(n=0;n<i;)s[s.length]=t[n],n+=1;return s}(e,wO(n,t))}),[],e)}));const zO=Rw((function(e,t){return e.apply(this,t)}));const HO=Tw((function(e){for(var t=eO(e),n=t.length,r=[],i=0;i<n;)r[i]=e[t[i]],i+=1;return r}));var WO=Tw((function(e){return null==e})),XO=Mw((function e(t,n,r){if(0===t.length)return n;var i=t[0];if(t.length>1){var s=!WO(r)&&zw(i,r)&&"object"==typeof r[i]?r[i]:OO(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,s)}return function(e,t,n){if(OO(e)&&Nw(n)){var r=[].concat(n);return r[e]=t,r}var i={};for(var s in n)i[s]=n[s];return i[e]=t,i}(i,n,r)}));const YO=XO;function KO(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var QO=Rw((function(e,t){var n=Fw(e,t);return Fw(e,(function(){return lO(GO,wO(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ZO=Tw((function(e){return QO(e.length,e)}));const eE=Rw((function(e,t){return KO(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ZO(BO)(e,t)}));function tE(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 nE(e,t,n){if(n||(n=new rE),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var i=n.get(e);if(i)return i;for(var s in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=t?nE(e[s],!0,n):e[s]);return r};switch(tO(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r([]);case"Date":return new Date(e.valueOf());case"RegExp":return tE(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 rE=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}();const iE=Tw((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));const sE=ZO(Tw((function(e){return!e})));function oE(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function cE(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return Nw(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var aE=Mw(cE("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const uE=Tw(cE("tail",aE(1,1/0)));function fE(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Iw(arguments[0].length,DO(oE,arguments[0],uE(arguments)))}const lE=xO(0);function hE(e){return e}const pE=Tw(hE);const mE=Tw((function(e){return Fw(e.length,e)}));var dE=Rw((function(e,t){return Fw(DO(jO,0,PO("length",t)),(function(){var n=arguments,r=this;return e.apply(r,oO((function(e){return e.apply(r,n)}),t))}))}));const vE=dE;var yE=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"]=_w,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(zw(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,nE(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}();function bE(e,t,n){return function(r){return new yE(e,t,n,r)}}var jE=kw(4,[],Dw([],bE,(function(e,t,n,r){var i=CO((function(r,i){var s=n(i),o=e(zw(s,r)?r[s]:nE(t,!1),i);return o&&o["@@transducer/reduced"]?qw(r):(r[s]=o,r)}));return MO(i,{},r)})));const gE=Rw((function(e,t){return null==t||t!=t?e:t}));var wE=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!OE(e,!0,this)},e.prototype.has=function(e){return OE(e,!1,this)},e}();function OE(e,t,n){var r,i=typeof e;switch(i){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):i in n._items?e in n._items[i]||(t&&(n._items[i][e]=!0),!1):(t&&(n._items[i]={},n._items[i][e]=!0),!1);case"boolean":if(i in n._items){var s=e?1:0;return!!n._items[i][s]||(t&&(n._items[i][s]=!0),!1)}return t&&(n._items[i]=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):i in n._items?!!sO(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1);case"undefined":return!!n._items[i]||(t&&(n._items[i]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(i=Object.prototype.toString.call(e))in n._items?!!sO(e,n._items[i])||(t&&n._items[i].push(e),!1):(t&&(n._items[i]=[e]),!1)}}var EE=Rw((function(e,t){for(var n=[],r=0,i=e.length,s=t.length,o=new wE,c=0;c<s;c+=1)o.add(t[c]);for(;r<i;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}));const xE=EE;var SE=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=_w,e.prototype["@@transducer/result"]=Bw,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?qw(n):n},e}();function PE(e){return function(t){return new SE(e,t)}}var $E=Rw(Dw(["take"],PE,(function(e,t){return aE(0,e<0?1/0:e,t)})));function AE(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return aE(0,n+1,t)}var TE=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=_w,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=MO(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 RE(e){return function(t){return new TE(e,t)}}const IE=Rw(Dw([],RE,AE));const kE=xO(-1);var FE=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_w,e.prototype["@@transducer/result"]=Bw,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 ME(e){return function(t){return new FE(e,t)}}const NE=Rw(Dw(["dropWhile"],ME,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return aE(n,1/0,t)})));var CE=Rw((function(e,t){return e||t}));const DE=Rw((function(e,t){return KO(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ZO(CE)(e,t)}));var qE=Tw((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():Nw(e)?[]:EO(e)?"":hO(e)?{}:Xw(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 _E=Tw((function(e){return Fw(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 BE=Rw(cE("groupBy",jE((function(e,t){return e.push(t),e}),[])));var LE=Rw((function(e,t){if(0===e.length||WO(t))return!1;for(var n=t,r=0;r<e.length;){if(WO(n)||!zw(e[r],n))return!1;n=n[e[r]],r+=1}return!0})),UE=Rw((function(e,t){return LE([e],t)}));const JE=UE;var VE=Rw((function(e,t){return!WO(t)&&e in t}));const GE=VE;var zE=function(e,t){switch(arguments.length){case 0:return zE;case 1:return function t(n){return 0===arguments.length?t:Hw(e,n)};default:return Hw(e,t)}};const HE=zE;const WE=Mw((function(e,t,n){return Fw(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const XE=Rw(sO);const YE=aE(0,-1);var KE=Rw((function(e,t){return Fw(e+1,(function(){var n=arguments[e];if(null!=n&&KO(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(bO(n)+' does not have a method named "'+t+'"')}))}));const QE=KE;const ZE=Tw((function(e){return null!=e&&iO(e,qE(e))}));const ex=QE(1,"join");function tx(e){return"[object Number]"===Object.prototype.toString.call(e)}const nx=Rw((function(e,t){return function(n){return function(r){return wO((function(e){return t(e,r)}),n(e(r)))}}}));var rx=Rw((function(e,t){return e.map((function(e){for(var n,r=t,i=0;i<e.length;){if(null==r)return;n=e[i],r=OO(n)?xO(n,r):r[n],i+=1}return r}))})),ix=Rw((function(e,t){return rx([e],t)[0]}));const sx=Rw((function(e,t){return lO((function(n,r){return n[r]=e(t[r],r,t),n}),{},eO(t))}));var ox=Mw((function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})zw(r,t)&&(i[r]=zw(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)zw(r,n)&&!zw(r,i)&&(i[r]=n[r]);return i})),cx=Mw((function e(t,n,r){return ox((function(n,r,i){return hO(r)&&hO(i)?e(t,r,i):t(n,r,i)}),n,r)}));const ax=Rw((function(e,t){return cx((function(e,t,n){return n}),e,t)}));const ux=Rw((function(e,t){return Jw(fO(e),t)}));var fx=function(e){return{value:e,map:function(t){return fx(t(e))}}},lx=Mw((function(e,t,n){return e((function(e){return fx(t(e))}))(n).value}));const hx=lx;const px=Mw((function(e,t,n){return gE(e,ix(t,n))}));const mx=Mw((function(e,t,n){return e(ix(t,n))}));const dx=Rw((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 vx=Mw((function(e,t,n){return iO(e,SO(t,n))}));const yx=Mw((function(e,t,n){return gE(e,SO(t,n))}));const bx=Mw((function(e,t,n){return e(SO(t,n))}));var jx=Rw((function(e,t){if(!tx(e)||!tx(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 gx=jx;const wx=Tw(qw);var Ox=Mw((function(e,t,n){return n.replace(e,t)}));const Ex=Ox;var xx=Rw((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Sx=xx;const Px=QE(1,"split");const $x=Rw((function(e,t){return iO($E(e.length,t),e)}));var Ax=Rw((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 "+bO(e));var n;return tE(e).test(t)}));const Tx=Ax;var Rx=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=_w,e.prototype["@@transducer/result"]=Bw,e.prototype["@@transducer/step"]=function(e,t){return Gw(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Ix(e){return function(t){return new Rx(e,t)}}const kx=Rw(Dw([],Ix,(function(e,t){for(var n,r=0,i=t.length,s=[];r<i;)Gw(e,n=t[r],s)||(s[s.length]=n),r+=1;return s})));const Fx=Mw((function(e,t,n){return e(n)?t(n):n}));const Mx=_O(void 0);const Nx=iO(Mx());const Cx=sE(Nx);const Dx=iO(null);const qx=sE(Dx);const _x=sE(WO);const Bx=Fw(1,fE(tO,HE("GeneratorFunction")));const Lx=Fw(1,fE(tO,HE("AsyncFunction")));const Ux=LO([fE(tO,HE("Function")),Bx,Lx]);const Jx=Fw(1,Ux(Array.isArray)?Array.isArray:fE(tO,HE("Array")));const Vx=eE(Jx,ZE);const Gx=sE(ZE);const zx=eE(Jx,Gx);const Hx=Fw(1,fE(tO,HE("String")));const Wx=iO("");function Xx(e){return Xx="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},Xx(e)}const Yx=function(e){return"object"===Xx(e)};var Kx=sE(Fw(1,eE(qx,DE(Yx,Ux))));const Qx=qO([Hx,Kx,Gx]);const Zx=sE(Ux);const eS=Fw(1,eE(qx,Yx));var tS=fE(tO,HE("Object")),nS=fE(bO,iO(bO(Object))),rS=mx(eE(Ux,nS),["constructor"]);const iS=Fw(1,(function(e){if(!eS(e)||!tS(e))return!1;var t=Object.getPrototypeOf(e);return!!Dx(t)||rS(t)}));var sS=eE(Fw(1,fE(tO,HE("Number"))),isFinite);var oS=Fw(1,sS);var cS=eE(Ux(Number.isFinite)?Fw(1,IO(Number.isFinite,Number)):oS,vE(iO,[Math.floor,pE]));var aS=Fw(1,cS);const uS=Ux(Number.isInteger)?Fw(1,IO(Number.isInteger,Number)):aS;const fS=Fw(1,fE(tO,HE("RegExp")));const lS=_O(Mx());const hS=Fw(1,IO(Promise.all,Promise));function pS(e){return function(e){if(Array.isArray(e))return mS(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 mS(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 mS(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 mS(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 dS=fE(Sx(iE((function(e,t){return e.length>t.length}))),lE,SO("length")),vS=mE((function(e,t,n){var r=n.apply(void 0,pS(e));return _x(r)?wx(r):t}));const yS=WE(zx,(function(e){var t=dS(e);return Fw(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return DO(vS(n),void 0,e)}))}),Mx);const bS=_E(XE);var jS=Fw(3,(function(e,t,n){var r=ix(e,n),i=ix(YE(e),n);if(!Zx(r)&&!Vx(e)){var s=IO(r,i);return zO(s,t)}}));const gS=jS;const wS=Fx(Hx,Ex(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var OS=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const ES=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),OS(n,"str"),OS(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(fS(e)?e:wS(e),"g");return Ex(r,t,n)};var xS=Fw(3,ES),SS=QE(2,"replaceAll");const PS=Ux(String.prototype.replaceAll)?SS:xS;const $S=mE((function(e,t){return fE(Px(""),IE(bS(e)),ex(""))(t)}));const AS=mE((function(e,t){return fE(Px(""),NE(bS(e)),ex(""))(t)}));var TS=function(e){return null===e},RS=bj,IS=nj,kS=jj;var FS=function(e){return"string"==typeof e||!IS(e)&&kS(e)&&"[object String]"==RS(e)},MS=bj,NS=jj;var CS=function(e){return"number"==typeof e||NS(e)&&"[object Number]"==MS(e)},DS=bj,qS=jj;var _S=function(e){return!0===e||!1===e||qS(e)&&"[object Boolean]"==DS(e)};var BS=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}},LS=Fg;var US=function(e){var t=this.p,n=t.delete(e);return this.size=t.size,n};var JS=Fg,VS=Mg,GS=Qg;var zS=function(e,t){var n=this.p;if(n instanceof JS){var r=n.p;if(!VS||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.p=new GS(r)}return n.set(e,t),this.size=n.size,this},HS=Fg,WS=function(){this.p=new LS,this.size=0},XS=US,YS=function(e){return this.p.get(e)},KS=function(e){return this.p.has(e)},QS=zS;function ZS(e){var t=this.p=new HS(e);this.size=t.size}ZS.prototype.clear=WS,ZS.prototype.delete=XS,ZS.prototype.get=YS,ZS.prototype.has=KS,ZS.prototype.set=QS;var eP=ZS;var tP=Qg,nP=function(e){return this.p.set(e,"__lodash_hash_undefined__"),this},rP=function(e){return this.p.has(e)};function iP(e){var t=-1,n=null==e?0:e.length;for(this.p=new tP;++t<n;)this.add(e[t])}iP.prototype.add=iP.prototype.push=nP,iP.prototype.has=rP;var sP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var oP=iP,cP=sP,aP=function(e,t){return e.has(t)};var uP=function(e,t,n,r,i,s){var o=1&n,c=e.length,a=t.length;if(c!=a&&!(o&&a>c))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var l=-1,h=!0,p=2&n?new oP:void 0;for(s.set(e,t),s.set(t,e);++l<c;){var m=e[l],d=t[l];if(r)var v=o?r(d,m,l,t,e,s):r(m,d,l,e,t,s);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!cP(t,(function(e,t){if(!aP(p,t)&&(m===e||i(m,e,n,r,s)))return p.push(t)}))){h=!1;break}}else if(m!==d&&!i(m,d,n,r,s)){h=!1;break}}return s.delete(e),s.delete(t),h};var fP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var lP=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},hP=oj.Uint8Array,pP=vg,mP=uP,dP=fP,vP=lP,yP=cj?cj.prototype:void 0,bP=yP?yP.valueOf:void 0;var jP=function(e,t,n,r,i,s,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new hP(e),new hP(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return pP(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=dP;case"[object Set]":var a=1&r;if(c||(c=vP),e.size!=t.size&&!a)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var f=mP(c(e),c(t),r,i,s,o);return o.delete(e),f;case"[object Symbol]":if(bP)return bP.call(e)==bP.call(t)}return!1};var gP=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},wP=gP,OP=nj;var EP=function(e,t,n){var r=t(e);return OP(e)?r:wP(r,n(e))};var xP=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s};var SP=xP,PP=function(){return[]},$P=Object.prototype.propertyIsEnumerable,AP=Object.getOwnPropertySymbols,TP=AP?function(e){return null==e?[]:(e=Object(e),SP(AP(e),(function(t){return $P.call(e,t)})))}:PP,RP=TP;var IP=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},kP=bj,FP=jj;var MP=function(e){return FP(e)&&"[object Arguments]"==kP(e)},NP=jj,CP=Object.prototype,DP=CP.hasOwnProperty,qP=CP.propertyIsEnumerable,_P=MP(function(){return arguments}())?MP:function(e){return NP(e)&&DP.call(e,"callee")&&!qP.call(e,"callee")},BP={exports:{}};var LP=function(){return!1};!function(e,t){var n=oj,r=LP,i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,o=s&&s.exports===i?n.Buffer:void 0,c=(o?o.isBuffer:void 0)||r;e.exports=c}(BP,BP.exports);var UP=BP.exports,JP=/^(?:0|[1-9]\d*)$/;var VP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&JP.test(e))&&e>-1&&e%1==0&&e<t};var GP=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},zP=bj,HP=GP,WP=jj,XP={};XP["[object Float32Array]"]=XP["[object Float64Array]"]=XP["[object Int8Array]"]=XP["[object Int16Array]"]=XP["[object Int32Array]"]=XP["[object Uint8Array]"]=XP["[object Uint8ClampedArray]"]=XP["[object Uint16Array]"]=XP["[object Uint32Array]"]=!0,XP["[object Arguments]"]=XP["[object Array]"]=XP["[object ArrayBuffer]"]=XP["[object Boolean]"]=XP["[object DataView]"]=XP["[object Date]"]=XP["[object Error]"]=XP["[object Function]"]=XP["[object Map]"]=XP["[object Number]"]=XP["[object Object]"]=XP["[object RegExp]"]=XP["[object Set]"]=XP["[object String]"]=XP["[object WeakMap]"]=!1;var YP=function(e){return WP(e)&&HP(e.length)&&!!XP[zP(e)]};var KP=function(e){return function(t){return e(t)}},QP={exports:{}};!function(e,t){var n=rj,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,s=i&&i.exports===r&&n.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o}(QP,QP.exports);var ZP=QP.exports,e$=YP,t$=KP,n$=ZP&&ZP.isTypedArray,r$=n$?t$(n$):e$,i$=IP,s$=_P,o$=nj,c$=UP,a$=VP,u$=r$,f$=Object.prototype.hasOwnProperty;var l$=function(e,t){var n=o$(e),r=!n&&s$(e),i=!n&&!r&&c$(e),s=!n&&!r&&!i&&u$(e),o=n||r||i||s,c=o?i$(e.length,String):[],a=c.length;for(var u in e)!t&&!f$.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||a$(u,a))||c.push(u);return c},h$=Object.prototype;var p$=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||h$)};var m$=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),d$=p$,v$=m$,y$=Object.prototype.hasOwnProperty;var b$=Ij,j$=GP;var g$=l$,w$=function(e){if(!d$(e))return v$(e);var t=[];for(var n in Object(e))y$.call(e,n)&&"constructor"!=n&&t.push(n);return t},O$=function(e){return null!=e&&j$(e.length)&&!b$(e)};var E$=EP,x$=RP,S$=function(e){return O$(e)?g$(e):w$(e)};var P$=function(e){return E$(e,S$,x$)},$$=Object.prototype.hasOwnProperty;var A$=function(e,t,n,r,i,s){var o=1&n,c=P$(e),a=c.length;if(a!=P$(t).length&&!o)return!1;for(var u=a;u--;){var f=c[u];if(!(o?f in t:$$.call(t,f)))return!1}var l=s.get(e),h=s.get(t);if(l&&h)return l==t&&h==e;var p=!0;s.set(e,t),s.set(t,e);for(var m=o;++u<a;){var d=e[f=c[u]],v=t[f];if(r)var y=o?r(v,d,f,t,e,s):r(d,v,f,e,t,s);if(!(void 0===y?d===v||i(d,v,n,r,s):y)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var b=e.constructor,j=t.constructor;b==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof j&&j instanceof j||(p=!1)}return s.delete(e),s.delete(t),p},T$=Xj(oj,"DataView"),R$=Mg,I$=Xj(oj,"Promise"),k$=Xj(oj,"Set"),F$=Xj(oj,"WeakMap"),M$=bj,N$=Cj,C$=N$(T$),D$=N$(R$),q$=N$(I$),_$=N$(k$),B$=N$(F$),L$=M$;(T$&&"[object DataView]"!=L$(new T$(new ArrayBuffer(1)))||R$&&"[object Map]"!=L$(new R$)||I$&&"[object Promise]"!=L$(I$.resolve())||k$&&"[object Set]"!=L$(new k$)||F$&&"[object WeakMap]"!=L$(new F$))&&(L$=function(e){var t=M$(e),n="[object Object]"==t?e.constructor:void 0,r=n?N$(n):"";if(r)switch(r){case C$:return"[object DataView]";case D$:return"[object Map]";case q$:return"[object Promise]";case _$:return"[object Set]";case B$:return"[object WeakMap]"}return t});var U$=eP,J$=uP,V$=jP,G$=A$,z$=L$,H$=nj,W$=UP,X$=r$,Y$="[object Object]",K$=Object.prototype.hasOwnProperty;var Q$=function(e,t,n,r,i,s){var o=H$(e),c=H$(t),a=o?"[object Array]":z$(e),u=c?"[object Array]":z$(t),f=(a="[object Arguments]"==a?Y$:a)==Y$,l=(u="[object Arguments]"==u?Y$:u)==Y$,h=a==u;if(h&&W$(e)){if(!W$(t))return!1;o=!0,f=!1}if(h&&!f)return s||(s=new U$),o||X$(e)?J$(e,t,n,r,i,s):V$(e,t,a,n,r,i,s);if(!(1&n)){var p=f&&K$.call(e,"__wrapped__"),m=l&&K$.call(t,"__wrapped__");if(p||m){var d=p?e.value():e,v=m?t.value():t;return s||(s=new U$),i(d,v,n,r,s)}}return!!h&&(s||(s=new U$),G$(e,t,n,r,i,s))},Z$=jj;var eA=function e(t,n,r,i,s){return t===n||(null==t||null==n||!Z$(t)&&!Z$(n)?t!=t&&n!=n:Q$(t,n,r,i,e,s))},tA=eA;var nA=function(e,t){return tA(e,t)};var rA=class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}};var iA=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};const sA=iA;function oA(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}let cA=class e{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(t,n){return t=oA(t),new e(this.elements.filter(t,n))}reject(t,n){return t=oA(t),new e(this.elements.filter(sA(t),n))}find(e,t){return e=oA(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}};"undefined"!=typeof Symbol&&(cA.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()});var aA=cA;const uA=nA,fA=rA,lA=aA;var hA=class e{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof e?this.content.toValue():this.content instanceof fA?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new lA;const r=(e,t)=>(e.push(t),e),i=(e,n)=>{n.element===t&&e.push(n);const s=n.findRecursive(t);return s&&s.reduce(r,e),n.content instanceof fA&&(n.content.key&&i(e,n.content.key),n.content.value&&i(e,n.content.value)),e};return this.content&&(this.content.element&&i(n,this.content),Array.isArray(this.content)&&this.content.reduce(i,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],i=n.indexOf(r);if(-1===i)return!1;n=n.splice(0,i)}return!0}))),n}set(e){return this.content=e,this}equals(e){return uA(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(t){if(t instanceof e)this._content=t;else if(t instanceof lA)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof fA)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new lA;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new lA(this.content);if(this.content instanceof fA){const e=new lA([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof e?new lA([this.content]):new lA}get recursiveChildren(){const e=new lA;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}};const pA=hA;var mA=class extends pA{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}};const dA=hA;const vA=hA;const yA=hA;const bA=iA,jA=hA,gA=aA;let wA=class extends jA{constructor(e,t,n){super(e||[],t,n),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const i=e.bind(t)(r);i&&n.push(i)})),n}filter(e,t){return new gA(this.content.filter(e,t))}reject(e,t){return this.filter(bA(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,i=void 0===n.results?[]:n.results;return this.forEach(((t,n,s)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:i,recursive:r}),e(t,n,s)&&i.push(t)})),i}find(e){return new gA(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}};wA.empty=function(){return new this},wA["fantasy-land/empty"]=wA.empty,"undefined"!=typeof Symbol&&(wA.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()});var OA=wA;const EA=rA,xA=hA;var SA=class extends xA{constructor(e,t,n,r){super(new EA,n,r),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}};const PA=iA,$A=aA;var AA=class e extends $A{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(t,n){return new e(this.elements.filter((e=>t.bind(n)(e.value,e.key,e))))}reject(e,t){return this.filter(PA(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}};const TA=iA,RA=Aj,IA=OA,kA=SA,FA=AA;var MA=class extends IA{constructor(e,t,n){super(e||[],t,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(RA(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new kA(n,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,i,s)=>{const o=e.bind(t)(r,i,s);o&&n.push(o)})),n}filter(e,t){return new FA(this.content).filter(e,t)}reject(e,t){return this.filter(TA(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}};const NA=hA;const CA=hA;const DA=hA,qA=mA,_A=class extends dA{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},BA=class extends vA{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}},LA=class extends yA{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}},UA=OA,JA=SA,VA=MA,GA=class extends NA{constructor(e,t,n){super(e||[],t,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}},zA=class extends CA{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}},HA=aA,WA=AA,XA=rA;function YA(e){if(e instanceof DA)return e;if("string"==typeof e)return new _A(e);if("number"==typeof e)return new BA(e);if("boolean"==typeof e)return new LA(e);if(null===e)return new qA;if(Array.isArray(e))return new UA(e.map(YA));if("object"==typeof e){return new VA(e)}return e}DA.prototype.ObjectElement=VA,DA.prototype.RefElement=zA,DA.prototype.MemberElement=JA,DA.prototype.refract=YA,HA.prototype.refract=YA;var KA={Element:DA,NullElement:qA,StringElement:_A,NumberElement:BA,BooleanElement:LA,ArrayElement:UA,MemberElement:JA,ObjectElement:VA,LinkElement:GA,RefElement:zA,refract:YA,ArraySlice:HA,ObjectSlice:WA,KeyValuePair:XA};const QA=TS,ZA=FS,eT=CS,tT=_S,nT=Aj,rT=BS,iT=KA;let sT=class{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=iT.Element,this.KeyValuePair=iT.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",iT.NullElement).register("string",iT.StringElement).register("number",iT.NumberElement).register("boolean",iT.BooleanElement).register("array",iT.ArrayElement).register("object",iT.ObjectElement).register("member",iT.MemberElement).register("ref",iT.RefElement).register("link",iT.LinkElement),this.detect(QA,iT.NullElement,!1).detect(ZA,iT.StringElement,!1).detect(eT,iT.NumberElement,!1).detect(tT,iT.BooleanElement,!1).detect(Array.isArray,iT.ArrayElement,!1).detect(nT,iT.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(e)){t=new i(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new rT(this)}};rT.prototype.Namespace=sT;const oT=KA;var cT=sT,aT=oT.ArraySlice,uT=oT.Element,fT=oT.StringElement,lT=oT.NumberElement,hT=oT.BooleanElement,pT=oT.NullElement,mT=oT.ArrayElement,dT=oT.ObjectElement,vT=oT.MemberElement,yT=oT.RefElement,bT=oT.LinkElement,jT=oT.refract;const gT=class extends fT{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 wT=class extends fT{constructor(e,t,n){super(e,t,n),this.element="comment"}};const OT=class extends mT{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(Nx(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}};const ET=class extends mT{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 mT([e.start.row,e.start.column,e.start.char]),n=new mT([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}};class xT extends cT{constructor(){super(),this.register("annotation",gT),this.register("comment",wT),this.register("parseResult",OT),this.register("sourceMap",ET)}}const ST=new xT,PT=e=>{const t=new xT;return iS(e)&&t.use(e),t};var $T,AT={exports:{}};$T=AT,function(){var e,t,n,r,i,s="properties",o="deepProperties",c="propertyDescriptors",a="staticProperties",u="staticDeepProperties",f="staticPropertyDescriptors",l="configuration",h="deepConfiguration",p="deepProps",m="deepStatics",d="deepConf",v="initializers",y="methods",b="composers",j="compose";function g(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var O=w.bind(0,(function(e,t){if(t)for(var n=g(t),r=0;r<n.length;r+=1)Object.defineProperty(e,n[r],Object.getOwnPropertyDescriptor(t,n[r]));return e}));function E(e){return"function"==typeof e}function x(e){return e&&"object"==typeof e||E(e)}function S(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=w.bind(0,(function t(n,r){if(r===e)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!S(r))return r;for(var i,s,o=g(r),c=0;c<o.length;)i=o[c++],(s=Object.getOwnPropertyDescriptor(r,i)).hasOwnProperty("value")?s.value!==e&&(n[i]=t(S(n[i])||Array.isArray(r[i])?n[i]:{},r[i])):Object.defineProperty(n,i,s);return n}));function $(){return(t=Array.prototype.concat.apply([],arguments).filter((function(e,t,n){return E(e)&&n.indexOf(e)===t}))).length?t:e}function A(r){return t=function t(n){var r,i,a=t[j]||{},u={__proto__:a[y]},f=a[v],l=Array.prototype.slice.apply(arguments),h=a[o];if(h&&P(u,h),(h=a[s])&&O(u,h),(h=a[c])&&Object.defineProperties(u,h),!f||!f.length)return u;for(n===e&&(n={}),a=0;a<f.length;)E(r=f[a++])&&(u=(i=r.call(u,n,{instance:u,stamp:t,args:l}))===e?u:i);return u},(n=r[u])&&P(t,n),(n=r[a])&&O(t,n),(n=r[f])&&Object.defineProperties(t,n),n=E(t[j])?t[j]:R,O(t[j]=function(){return n.apply(this,arguments)},r),t}function T(e,n){function r(t,r){x(n[t])&&(x(e[t])||(e[t]={}),(r||O)(e[t],n[t]))}function i(r){(t=$(e[r],n[r]))&&(e[r]=t)}return n&&x(n=n[j]||n)&&(r(y),r(s),r(o,P),r(c),r(a),r(u,P),r(f),r(l),r(h,P),i(v),i(b)),e}function R(){return A(Array.prototype.concat.apply([this],arguments).reduce(T,{}))}function I(e){return E(e)&&E(e[j])}var k={};function F(i,s){return function(){return(r={})[i]=s.apply(e,Array.prototype.concat.apply([{}],arguments)),((t=this)&&t[j]||n).call(t,r)}}k[y]=F(y,O),k[s]=k.props=F(s,O),k[v]=k.init=F(v,$),k[b]=F(b,$),k[o]=k[p]=F(o,P),k[a]=k.statics=F(a,O),k[u]=k[m]=F(u,P),k[l]=k.conf=F(l,O),k[h]=k[d]=F(h,P),k[c]=F(c,O),k[f]=F(f,O),n=k[j]=O((function(){for(var g,w,E=0,S=[],A=arguments,T=this;E<A.length;)x(g=A[E++])&&S.push(I(g)?g:((r={})[y]=(w=g)[y]||e,n=w.props,r[s]=x((t=w[s])||n)?O({},n,t):e,r[v]=$(w.init,w[v]),r[b]=$(w[b]),n=w[p],r[o]=x((t=w[o])||n)?P({},n,t):e,r[c]=w[c],n=w.statics,r[a]=x((t=w[a])||n)?O({},n,t):e,n=w[m],r[u]=x((t=w[u])||n)?P({},n,t):e,t=w[f],r[f]=x((n=w.name&&{name:{value:w.name}})||t)?O({},t,n):e,n=w.conf,r[l]=x((t=w[l])||n)?O({},n,t):e,n=w[d],r[h]=x((t=w[h])||n)?P({},n,t):e,r));if(g=R.apply(T||i,S),T&&S.unshift(T),Array.isArray(A=g[j][b]))for(E=0;E<A.length;)g=I(T=A[E++]({stamp:g,composables:S}))?T:g;return g}),k),k.create=function(){return this.apply(e,arguments)},(r={})[a]=k,i=R(r),n[j]=n.bind(),n.version="4.3.2",$T.exports=n}();const TT=openapi_parser_e(AT.exports);var RT=On,IT=_n.indexOf,kT=Ou,FT=openapi_parser_O([].indexOf),MT=!!FT&&1/FT([1],1,-0)<0;RT({target:"Array",proto:!0,forced:MT||!kT("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return MT?FT(this,e,t)||0:IT(this,e,t)}});var NT=kc("Array").indexOf,CT=oe,DT=NT,qT=Array.prototype;const _T=openapi_parser_e((function(e){var t=e.indexOf;return e===qT||CT(qT,e)&&t===qT.indexOf?DT:t}));function BT(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Zn(e);for(r=0;r<s.length;r++)n=s[r],_T(t).call(t,n)>=0||(i[n]=e[n]);return i}(e,t);if(Sc){var s=Sc(e);for(r=0;r<s.length;r++)n=s[r],_T(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const LT=(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},UT={},JT=e=>null==e?void 0:e.type,VT=e=>"string"==typeof JT(e),GT=(e,{visitFnGetter:t=LT,nodeTypeGetter:n=JT}={})=>{const r=new Array(e.length);return{enter(i,...s){for(let o=0;o<e.length;o+=1)if(null==r[o]){const c=t(e[o],n(i),!1);if("function"==typeof c){const t=c.call(e[o],i,...s);if(!1===t)r[o]=i;else if(t===UT)r[o]=UT;else if(void 0!==t)return t}}},leave(i,...s){for(let o=0;o<e.length;o+=1)if(null==r[o]){const c=t(e[o],n(i),!0);if("function"==typeof c){const t=c.call(e[o],i,...s);if(t===UT)r[o]=UT;else if(void 0!==t&&!1!==t)return t}}else r[o]===i&&(r[o]=null)}}},zT=(e,t,{keyMap:n=null,state:r={},breakSymbol:i=UT,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=LT,nodeTypeGetter:a=JT,nodePredicate:u=VT,detectCycles:f=!0}={})=>{const l=n||{};let h,p,m=Array.isArray(e),d=[e],v=-1,y=[];const b=[],j=[];let g=e;do{v+=1;const e=v===d.length;let n,w;const O=e&&0!==y.length;if(e){if(n=0===j.length?void 0:b.pop(),w=p,p=j.pop(),O){w=m?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let e=0;for(let t=0;t<y.length;t+=1){let n=y[t][0];const r=y[t][1];m&&(n-=e),m&&r===s?(w.splice(n,1),e+=1):w[n]=r}}v=h.index,d=h.keys,y=h.edits,m=h.inArray,h=h.prev}else{if(n=p?m?v:d[v]:void 0,w=p?p[n]:g,w===s||void 0===w)continue;p&&b.push(n)}if(j.includes(w))continue;let E;if(!Array.isArray(w)){if(!u(w))throw new Error(`Invalid AST Node: ${JSON.stringify(w)}`);if(f&&j.includes(w)){b.pop();continue}const s=c(t,a(w),e);if(s){for(const[e,n]of Object.entries(r))t[e]=n;if(E=s.call(t,w,n,p,b,j),E===i)break;if(E===o){if(!e){b.pop();continue}}else if(void 0!==E&&(y.push([n,E]),!e)){if(!u(E)){b.pop();continue}w=E}}}void 0===E&&O&&y.push([n,w]),e||(h={inArray:m,index:v,keys:d,edits:y,prev:h},m=Array.isArray(w),d=m?w:l[a(w)]||[],v=-1,y=[],p&&j.push(p),p=w)}while(void 0!==h);return 0!==y.length&&([,g]=y[y.length-1]),g};zT[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:i=UT,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=LT,nodeTypeGetter:a=JT,nodePredicate:u=VT,detectCycles:f=!0}={})=>{const l=n||{};let h,p,m=Array.isArray(e),d=[e],v=-1,y=[];const b=[],j=[];let g=e;do{v+=1;const e=v===d.length;let n,w;const O=e&&0!==y.length;if(e){if(n=0===j.length?void 0:b.pop(),w=p,p=j.pop(),O){w=m?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let e=0;for(let t=0;t<y.length;t+=1){let n=y[t][0];const r=y[t][1];m&&(n-=e),m&&r===s?(w.splice(n,1),e+=1):w[n]=r}}v=h.index,d=h.keys,y=h.edits,m=h.inArray,h=h.prev}else{if(n=p?m?v:d[v]:void 0,w=p?p[n]:g,w===s||void 0===w)continue;p&&b.push(n)}let E;if(!Array.isArray(w)){if(!u(w))throw new Error(`Invalid AST Node: ${JSON.stringify(w)}`);if(f&&j.includes(w)){b.pop();continue}const s=c(t,a(w),e);if(s){for(const[e,n]of Object.entries(r))t[e]=n;if(E=await s.call(t,w,n,p,b,j),E===i)break;if(E===o){if(!e){b.pop();continue}}else if(void 0!==E&&(y.push([n,E]),!e)){if(!u(E)){b.pop();continue}w=E}}}void 0===E&&O&&y.push([n,w]),e||(h={inArray:m,index:v,keys:d,edits:y,prev:h},m=Array.isArray(w),d=m?w:l[a(w)]||[],v=-1,y=[],p&&j.push(p),p=w)}while(void 0!==h);return 0!==y.length&&([,g]=y[y.length-1]),g};const HT=(e,t)=>"function"==typeof(null==t?void 0:t[e]),WT=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),XT=(e,t)=>{var n;return(null==t||null===(n=t.primitive)||void 0===n?void 0:n.call(t))===e},YT=(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},KT=(e,t)=>(null==t?void 0:t.element)===e,QT=e=>e({hasMethod:HT,hasBasicElementProps:WT,primitiveEq:XT,isElementType:KT,hasClass:YT}),ZT=QT((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof uT||e(n)&&t(void 0,n))),eR=QT((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof fT||e(n)&&t("string",n))),tR=QT((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof lT||e(n)&&t("number",n))),nR=QT((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof pT||e(n)&&t("null",n))),rR=QT((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof hT||e(n)&&t("boolean",n))),iR=QT((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof dT||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),sR=QT((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof mT&&!(r instanceof dT)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),oR=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof vT||e(r)&&t("member",r)&&n(void 0,r))),cR=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof bT||e(r)&&t("link",r)&&n(void 0,r))),aR=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof yT||e(r)&&t("ref",r)&&n(void 0,r))),uR=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof gT||e(r)&&t("annotation",r)&&n("array",r))),fR=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wT||e(r)&&t("comment",r)&&n("string",r))),lR=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof OT||e(r)&&t("parseResult",r)&&n("array",r))),hR=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ET||e(r)&&t("sourceMap",r)&&n("array",r))),pR=e=>KT("object",e)||KT("array",e)||KT("boolean",e)||KT("number",e)||KT("string",e)||KT("null",e)||KT("member",e),mR=e=>{var t,n;return hR(null==e||null===(t=e.meta)||void 0===t||null===(n=t.get)||void 0===n?void 0:n.call(t,"sourceMap"))},dR=(e,t)=>0===e.length||Jw(bS(t.classes.toValue()),e),vR=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:mR,includesClasses:dR,includesSymbols:(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!sR(n)&&Jw(bS(n.toValue()),e)},isAnnotationElement:uR,isArrayElement:sR,isBooleanElement:rR,isCommentElement:fR,isElement:ZT,isLinkElement:cR,isMemberElement:oR,isNullElement:nR,isNumberElement:tR,isObjectElement:iR,isParseResultElement:lR,isPrimitiveElement:pR,isRefElement:aR,isSourceMapElement:hR,isStringElement:eR},Symbol.toStringTag,{value:"Module"})),yR=["keyMap"],bR=["keyMap"];function jR(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 gR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jR(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const wR=e=>iR(e)?"ObjectElement":sR(e)?"ArrayElement":oR(e)?"MemberElement":eR(e)?"StringElement":rR(e)?"BooleanElement":tR(e)?"NumberElement":nR(e)?"NullElement":cR(e)?"LinkElement":aR(e)?"RefElement":void 0,OR=fE(wR,Hx),ER={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},xR=TT({props:{result:[],predicate:Pw,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}}}),SR=(e,t,n={})=>{let{keyMap:r=ER}=n,i=BT(n,yR);return zT(e,t,gR({keyMap:r,nodeTypeGetter:wR,nodePredicate:OR},i))};SR[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{let{keyMap:r=ER}=n,i=BT(n,bR);return zT[Symbol.for("nodejs.util.promisify.custom")](e,t,gR({keyMap:r,nodeTypeGetter:wR,nodePredicate:OR},i))};const PR=["keyMap"],$R=["keyMap"];function AR(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 TR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AR(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const RR=e=>"string"==typeof(null==e?void 0:e.type)?e.type:wR(e),IR=TR({EphemeralObject:["content"],EphemeralArray:["content"]},ER),kR=(e,t,n={})=>{let{keyMap:r=IR}=n,i=BT(n,PR);return SR(e,t,TR({keyMap:r,nodeTypeGetter:RR,nodePredicate:$w,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},i))};kR[Symbol.for("nodejs.util.promisify.custom")]=async(e,t={})=>{let{keyMap:n=IR}=t,r=BT(t,$R);return SR[Symbol.for("nodejs.util.promisify.custom")](e,visitor,TR({keyMap:n,nodeTypeGetter:RR,nodePredicate:$w,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},r))};const FR=class{constructor(e){ml(this,"type","EphemeralArray"),ml(this,"content",[]),ml(this,"reference",void 0),this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const MR=class{constructor(e){ml(this,"type","EphemeralObject"),ml(this,"content",[]),ml(this,"reference",void 0),this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},NR=TT.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 MR(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 FR(t.content);return e.set(t,n),n}},this.EphemeralArray={leave:e=>e.toArray()}})),CR=e=>kR(e,NR());function DR(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 qR=()=>{const e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DR(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},vR);return{predicates:e,namespace:ST}},_R=(e,t,n={})=>{if(0===t.length)return e;const r=yx(qR,"toolboxCreator",n),i=yx({},"visitorOptions",n),s=yx(wR,"nodeTypeGetter",i),o=r(),c=t.map((e=>e(o))),a=GT(c.map(yx({},"visitor")),{nodeTypeGetter:s});c.forEach(gS(["pre"],[]));const u=SR(e,a,i);return c.forEach(gS(["post"],[])),u};const BR=class extends Array{constructor(...e){super(...e),ml(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};function LR(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 UR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LR(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const JR=e=>(t,n={})=>((e,{Type:t,plugins:n=[]})=>{const r=new t(e);return _R(r,n,{toolboxCreator:qR,visitorOptions:{nodeTypeGetter:wR}})})(t,UR(UR({},n),{},{Type:e}));dT.refract=JR(dT),mT.refract=JR(mT),fT.refract=JR(fT),hT.refract=JR(hT),pT.refract=JR(pT),lT.refract=JR(lT),bT.refract=JR(bT),yT.refract=JR(yT),gT.refract=JR(gT),wT.refract=JR(wT),OT.refract=JR(OT),ET.refract=JR(ET);const VR=(e,t)=>{const n=xR({predicate:e});return SR(t,n),new aT(n.result)},GR=(e,t)=>{const n=xR({predicate:e,returnOnTrue:UT});return SR(t,n),px(void 0,[0],n.result)},zR=(e,t=new WeakMap)=>(oR(e)?(t.set(e.key,e),zR(e.key,t),t.set(e.value,e),zR(e.value,t)):e.children.forEach((n=>{t.set(n,e),zR(n,t)})),t),HR=TT.init((function({element:e}){let t;this.transclude=function(n,r){var i;if(n===e)return r;if(n===r)return e;t=null!==(i=t)&&void 0!==i?i:zR(e);const s=t.get(n);return Nx(s)?void 0:(iR(s)?((e,t,n)=>{const r=n.get(e);iR(r)&&(r.content=r.map(((i,s,o)=>o===e?(n.delete(e),n.set(t,r),t):o)))})(n,r,t):sR(s)?((e,t,n)=>{const r=n.get(e);sR(r)&&(r.content=r.map((i=>i===e?(n.delete(e),n.set(t,r),t):i)))})(n,r,t):oR(s)&&((e,t,n)=>{const r=n.get(e);oR(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)}})),WR=HR,XR=(e,t)=>{const n=gE(e,t);return sx((e=>{if(iS(e)&&JE("$ref",e)&&bx(Hx,"$ref",e)){const t=ix(["$ref"],e),r=AS("#/",t);return ix(r.split("/"),n)}return iS(e)?XR(e,n):e}),e)};function YR(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 KR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YR(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const QR=e=>{const t=e.meta.clone(),n=e.attributes.clone();return new e.constructor(void 0,t,n)},ZR=e=>new vT(e.key,e.value,e.meta.clone(),e.attributes.clone()),eI=(e,t)=>t.clone&&t.isMergeableElement(e)?rI(QR(e),e,t):e,tI=(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>eI(e,n))),nI=(e,t,n)=>{const r=iR(e)?QR(e):QR(t);return iR(e)&&e.forEach(((e,t,i)=>{const s=ZR(i);s.value=eI(e,n),r.content.push(s)})),t.forEach(((t,i,s)=>{const o=i.toValue();let c;if(iR(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);c=ZR(s),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return rI;const n=t.customMerge(e,t);return"function"==typeof n?n:rI})(i,n)(r,t)}else c=ZR(s),c.value=eI(t,n);r.remove(o),r.content.push(c)})),r};function rI(e,t,n){var r,i,s;const o={clone:!0,isMergeableElement:e=>iR(e)||sR(e),arrayElementMerge:tI,objectElementMerge:nI,customMerge:void 0},c=KR(KR({},o),n);c.isMergeableElement=null!==(r=c.isMergeableElement)&&void 0!==r?r:o.isMergeableElement,c.arrayElementMerge=null!==(i=c.arrayElementMerge)&&void 0!==i?i:o.arrayElementMerge,c.objectElementMerge=null!==(s=c.objectElementMerge)&&void 0!==s?s:o.objectElementMerge;const a=sR(t);return a===sR(e)?a&&"function"==typeof c.arrayElementMerge?c.arrayElementMerge(e,t,c):c.objectElementMerge(e,t,c):eI(t,c)}rI.all=(e,t)=>{if(!Array.isArray(e))throw new Error("first argument should be an array");return 0===e.length?new dT:e.reduce(((e,n)=>rI(e,n,t)),QR(e[0]))};const iI=(e,t=ST)=>{if(Hx(e))try{return t.fromRefract(JSON.parse(e))}catch{}return iS(e)&&JE("element",e)?t.fromRefract(e):t.toElement(e)},sI=CR;class oI 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}}class cI extends Error{constructor(e){super(`Invalid $ref pointer "${e}". Pointers must begin with "/"`),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}}const aI=fE(Ex(/~/g,"~0"),Ex(/\//g,"~1"),encodeURIComponent),uI=fE(Ex(/~1/g,"/"),Ex(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}})),fI=(e,t)=>{const n=(e=>{if(Wx(e))return[];if(!$x("/",e))throw new cI(e);const t=fE(Px("/"),wO(uI))(e);return uE(t)})(e);return n.reduce(((e,t)=>{if(iR(e)){if(!e.hasKey(t))throw new oI(`Evaluation failed on token: "${t}"`);return e.get(t)}if(sR(e)){if(!(t in e.content)||!uS(Number(t)))throw new oI(`Evaluation failed on token: "${t}"`);return e.get(Number(t))}throw new oI(`Evaluation failed on token: "${t}"`)}),t)},lI=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return AS("#",t)};class hI extends BR{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 kE(this.filterByFormat(e))}}const pI=new hI("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");const mI=class extends dT{constructor(e,t,n){super(e,t,n),this.element="callback"}};const dI=class extends dT{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 vI=class extends dT{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 yI=class extends dT{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 bI=class extends dT{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 jI=class extends dT{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 gI=class extends dT{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)}};let wI=class extends dT{constructor(e,t,n){super(e,t,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new hT(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new hT(!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(wI.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const OI=wI;const EI=class extends dT{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 xI=class extends dT{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 SI=class extends dT{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 eR(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):eR(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 PI=class extends dT{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 $I=class extends dT{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 AI=class extends dT{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 TI=class extends fT{constructor(e,t,n){super(e,t,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const RI=class extends dT{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 II=class extends dT{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 hT(!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)}};let kI=class extends dT{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 hT(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new hT(!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(kI.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const FI=kI;const MI=class extends dT{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 NI=class extends dT{constructor(e,t,n){super(e,t,n),this.element="paths"}};const CI=class extends dT{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 DI=class extends dT{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 hT(!1)}set required(e){this.set("required",e)}};const qI=class extends dT{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 _I=class extends dT{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 BI=class extends dT{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 LI=class extends dT{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 UI=class extends dT{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 JI=class extends dT{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)}},VI={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",BI),t.register("jSONReference",LI),t.register("media",UI),t.register("linkDescription",JI),t}};function GI(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 zI=e=>{if(ZT(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},HI=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GI(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},ER),WI=TT({props:{element:null},methods:{copyMetaAndAttributes(e,t){mR(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),XI=WI,YI=TT(XI,{methods:{enter(e){return this.element=e.clone(),UT}}});function KI(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 QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KI(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ZI=TT(XI,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return dx(this.passingOptionsNames,this)},retrieveFixedFields(e){return fE(ix(["visitors",...e,"fixedFields"]),eO)(this.specObj)},retrieveVisitor(e){return mx(Ux,["visitors",...e],this.specObj)?ix(["visitors",...e],this.specObj):ix(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)(QI(QI({},n),t))},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),i=Object.getPrototypeOf(r);return Nx(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===i?t.clone():(SR(t,r,QI({keyMap:HI,nodeTypeGetter:zI},n)),r.element)}}}),ek=TT(ZI,{props:{specPath:lS,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,i)=>{if(eR(r)&&n.includes(r.toValue())&&!this.ignoredFields.includes(r.toValue())){const n=this.toRefractedElement([...t,"fixedFields",r.toValue()],e),s=new vT(r.clone(),n);this.copyMetaAndAttributes(i,s),s.classes.push("fixed-field"),this.element.content.push(s)}else this.ignoredFields.includes(r.toValue())||this.element.content.push(i.clone())})),this.copyMetaAndAttributes(e,this.element),UT}}}),tk=TT(ek,YI,{props:{specPath:_O(["document","objects","JSONSchema"])},init(){this.element=new BI}}),nk=YI,rk=YI,ik=YI,sk=YI,ok=YI,ck=YI,ak=YI,uk=YI,fk=YI,lk=YI,hk=TT({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),pk=hk,mk=e=>iR(e)&&e.hasKey("$ref"),dk=TT(ZI,pk,YI,{methods:{ObjectElement(e){const t=mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),UT},ArrayElement(e){return this.element=new mT,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}}),vk=YI,yk=YI,bk=YI,jk=YI,gk=YI,wk=TT(YI,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),UT}}}),Ok=TT(ZI,{props:{fieldPatternPredicate:Pw,specPath:lS,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),i=this.toRefractedElement(r,e),s=new vT(t.clone(),i);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),UT}}}),Ek=TT(Ok,{props:{fieldPatternPredicate:Qx}}),xk=TT(Ek,pk,YI,{props:{specPath:e=>mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new dT,this.element.classes.push("json-schema-properties")}}),Sk=TT(Ek,pk,YI,{props:{specPath:e=>mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new dT,this.element.classes.push("json-schema-patternProperties")}}),Pk=TT(Ek,pk,YI,{props:{specPath:e=>mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new dT,this.element.classes.push("json-schema-dependencies")}}),$k=TT(YI,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),UT}}}),Ak=TT(YI,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),UT},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),UT}}}),Tk=TT(ZI,pk,YI,{init(){this.element=new mT,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}}),Rk=TT(ZI,pk,YI,{init(){this.element=new mT,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}}),Ik=TT(ZI,pk,YI,{init(){this.element=new mT,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}}),kk=TT(Ek,pk,YI,{props:{specPath:e=>mk(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new dT,this.element.classes.push("json-schema-definitions")}}),Fk=YI,Mk=YI,Nk=YI,Ck=YI,Dk=YI,qk=TT(ZI,pk,YI,{init(){this.element=new mT,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),UT}}}),_k=YI,Bk=TT(ek,YI,{props:{specPath:_O(["document","objects","JSONReference"])},init(){this.element=new LI},methods:{ObjectElement(e){const t=ek.compose.methods.ObjectElement.call(this,e);return eR(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Lk=TT(YI,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),UT}}}),Uk=TT(ZI,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>WE(e,_O(t),Mx))),n=yS(t)(e);return this.element=this.toRefractedElement(n,e),UT}}}),Jk=TT(Uk,{props:{alternator:[{predicate:mk,specPath:["document","objects","JSONReference"]},{predicate:$w,specPath:["document","objects","JSONSchema"]}]}}),Vk={visitors:{value:YI,JSONSchemaOrJSONReferenceVisitor:Jk,document:{objects:{JSONSchema:{$visitor:tk,fixedFields:{id:nk,$schema:rk,multipleOf:ik,maximum:sk,exclusiveMaximum:ok,minimum:ck,exclusiveMinimum:ak,maxLength:uk,minLength:fk,pattern:lk,additionalItems:Jk,items:dk,maxItems:vk,minItems:yk,uniqueItems:bk,maxProperties:jk,minProperties:gk,required:wk,properties:xk,additionalProperties:Jk,patternProperties:Sk,dependencies:Pk,enum:$k,type:Ak,allOf:Tk,anyOf:Rk,oneOf:Ik,not:Jk,definitions:kk,title:Fk,description:Mk,default:Nk,format:Ck,base:Dk,links:qk,media:{$ref:"#/visitors/document/objects/Media"},readOnly:_k}},JSONReference:{$visitor:Bk,fixedFields:{$ref:Lk}},Media:{$visitor:TT(ek,YI,{props:{specPath:_O(["document","objects","Media"])},init(){this.element=new UI}}),fixedFields:{binaryEncoding:YI,type:YI}},LinkDescription:{$visitor:TT(ek,YI,{props:{specPath:_O(["document","objects","LinkDescription"])},init(){this.element=new JI}}),fixedFields:{href:YI,rel:YI,title:YI,targetSchema:Jk,mediaType:YI,method:YI,encType:YI,schema:Jk}}}}}},Gk=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof BI||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),zk=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof LI||e(r)&&t("JSONReference",r)&&n("object",r))),Hk=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof UI||e(r)&&t("media",r)&&n("object",r))),Wk=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof JI||e(r)&&t("linkDescription",r)&&n("object",r))),Xk=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:zk,isJSONSchemaElement:Gk,isLinkDescriptionElement:Wk,isMediaElement:Hk},Symbol.toStringTag,{value:"Module"}));function Yk(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 Kk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yk(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Qk=()=>{const e=PT(VI);return{predicates:Kk(Kk({},Xk),{},{isStringElement:eR}),namespace:e}};function Zk(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 eF=e=>(t,n={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Vk}={})=>{const i=jT(e),s=XR(r),o=gS(t,[],s);return SR(i,o,{state:{specObj:s}}),_R(o.element,n,{toolboxCreator:Qk,visitorOptions:{keyMap:HI,nodeTypeGetter:zI}})})(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zk(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({specPath:e},n));BI.refract=eF(["visitors","document","objects","JSONSchema","$visitor"]),LI.refract=eF(["visitors","document","objects","JSONReference","$visitor"]),UI.refract=eF(["visitors","document","objects","Media","$visitor"]),JI.refract=eF(["visitors","document","objects","LinkDescription","$visitor"]);const tF=class extends BI{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)}};const nF=class extends dT{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}};const rF=class extends dT{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 iF=class extends dT{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 sF=class extends dT{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 oF=class extends dT{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 cF=class extends dT{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)}},aF={namespace:e=>{const{base:t}=e;return t.register("callback",mI),t.register("components",dI),t.register("contact",vI),t.register("discriminator",yI),t.register("encoding",bI),t.register("example",jI),t.register("externalDocumentation",gI),t.register("header",OI),t.register("info",EI),t.register("license",xI),t.register("link",SI),t.register("mediaType",PI),t.register("oAuthFlow",$I),t.register("oAuthFlows",AI),t.register("openapi",TI),t.register("openApi3_0",RI),t.register("operation",II),t.register("parameter",FI),t.register("pathItem",MI),t.register("paths",NI),t.register("reference",CI),t.register("requestBody",DI),t.register("response",qI),t.register("responses",_I),t.register("schema",tF),t.register("securityRequirement",nF),t.register("securityScheme",rF),t.register("server",iF),t.register("serverVariable",sF),t.register("tag",oF),t.register("xml",cF),t}};class uF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(uF.primaryClass)}}ml(uF,"primaryClass","servers");const fF=uF;class lF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(lF.primaryClass)}}ml(lF,"primaryClass","security");const hF=lF;class pF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(pF.primaryClass)}}ml(pF,"primaryClass","tags");const mF=pF;class dF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(dF.primaryClass)}}ml(dF,"primaryClass","server-variables");const vF=dF;class yF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(yF.primaryClass)}}ml(yF,"primaryClass","components-schemas");const bF=yF;class jF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(jF.primaryClass)}}ml(jF,"primaryClass","components-responses");const gF=jF;class wF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(wF.primaryClass),this.classes.push("parameters")}}ml(wF,"primaryClass","components-parameters");const OF=wF;class EF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(EF.primaryClass),this.classes.push("examples")}}ml(EF,"primaryClass","components-examples");const xF=EF;class SF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(SF.primaryClass)}}ml(SF,"primaryClass","components-request-bodies");const PF=SF;class $F extends dT{constructor(e,t,n){super(e,t,n),this.classes.push($F.primaryClass)}}ml($F,"primaryClass","components-headers");const AF=$F;class TF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(TF.primaryClass)}}ml(TF,"primaryClass","components-security-schemes");const RF=TF;class IF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(IF.primaryClass)}}ml(IF,"primaryClass","components-links");const kF=IF;class FF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(FF.primaryClass)}}ml(FF,"primaryClass","components-callbacks");const MF=FF;class NF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(NF.primaryClass),this.classes.push("servers")}}ml(NF,"primaryClass","path-item-servers");const CF=NF;class DF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(DF.primaryClass),this.classes.push("parameters")}}ml(DF,"primaryClass","path-item-parameters");const qF=DF;class _F extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(_F.primaryClass),this.classes.push("parameters")}}ml(_F,"primaryClass","operation-parameters");const BF=_F;class LF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(LF.primaryClass),this.classes.push("examples")}}ml(LF,"primaryClass","parameter-examples");const UF=LF;class JF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(JF.primaryClass),this.classes.push("content")}}ml(JF,"primaryClass","parameter-content");const VF=JF;class GF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(GF.primaryClass)}}ml(GF,"primaryClass","operation-tags");const zF=GF;class HF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(HF.primaryClass)}}ml(HF,"primaryClass","operation-callbacks");const WF=HF;class XF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(XF.primaryClass),this.classes.push("security")}}ml(XF,"primaryClass","operation-security");const YF=XF;class KF extends mT{constructor(e,t,n){super(e,t,n),this.classes.push(KF.primaryClass),this.classes.push("servers")}}ml(KF,"primaryClass","operation-servers");const QF=KF;class ZF extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(ZF.primaryClass),this.classes.push("content")}}ml(ZF,"primaryClass","request-body-content");const eM=ZF;class tM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(tM.primaryClass),this.classes.push("examples")}}ml(tM,"primaryClass","media-type-examples");const nM=tM;class rM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(rM.primaryClass)}}ml(rM,"primaryClass","media-type-encoding");const iM=rM;class sM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(sM.primaryClass)}}ml(sM,"primaryClass","encoding-headers");const oM=sM;class cM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(cM.primaryClass)}}ml(cM,"primaryClass","response-headers");const aM=cM;class uM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(uM.primaryClass),this.classes.push("content")}}ml(uM,"primaryClass","response-content");const fM=uM;class lM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(lM.primaryClass)}}ml(lM,"primaryClass","response-links");const hM=lM;class pM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(pM.primaryClass)}}ml(pM,"primaryClass","discriminator-mapping");const mM=pM;class dM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(dM.primaryClass)}}ml(dM,"primaryClass","oauth-flow-scopes");const vM=dM;class yM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(yM.primaryClass)}}ml(yM,"primaryClass","link-parameters");const bM=yM;class jM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(jM.primaryClass),this.classes.push("examples")}}ml(jM,"primaryClass","header-examples");const gM=jM;class wM extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(wM.primaryClass),this.classes.push("content")}}ml(wM,"primaryClass","header-content");const OM=wM;function EM(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 xM=e=>{if(ZT(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},SM=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EM(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(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"]},ER),PM=TT({props:{element:null},methods:{copyMetaAndAttributes(e,t){mR(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),$M=PM;function AM(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 TM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AM(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const RM=TT($M,{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 dx(this.passingOptionsNames,this)},retrieveFixedFields(e){return fE(ix(["visitors",...e,"fixedFields"]),eO)(this.specObj)},retrieveVisitor(e){return mx(Ux,["visitors",...e],this.specObj)?ix(["visitors",...e],this.specObj):ix(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)(TM(TM({},n),t))},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),i=Object.getPrototypeOf(r);return Nx(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===i?t.clone():(SR(t,r,TM({keyMap:SM,nodeTypeGetter:xM},n)),r.element)}}}),IM=RM,kM=e=>iR(e)&&e.hasKey("$ref"),FM=iR,MM=iR,NM=e=>eR(e.key)&&$x("x-",e.key.toValue()),CM=Object.freeze(Object.defineProperty({__proto__:null,isOpenApi3_0LikeElement:e=>iR(e)&&e.hasKey("openapi")&&e.hasKey("info"),isOpenApiExtension:NM,isParameterLikeElement:e=>iR(e)&&e.hasKey("name")&&e.hasKey("in"),isReferenceLikeElement:kM,isRequestBodyLikeElement:e=>iR(e)&&e.hasKey("content"),isResponseLikeElement:e=>iR(e)&&e.hasKey("description"),isServerLikeElement:FM,isTagLikeElement:MM},Symbol.toStringTag,{value:"Module"})),DM=TT(IM,{props:{specPath:lS,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:NM},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,i)=>{if(eR(r)&&n.includes(r.toValue())&&!this.ignoredFields.includes(r.toValue())){const n=this.toRefractedElement([...t,"fixedFields",r.toValue()],e),s=new vT(r.clone(),n);this.copyMetaAndAttributes(i,s),s.classes.push("fixed-field"),this.element.content.push(s)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(i)){const e=this.toRefractedElement(["document","extension"],i);this.element.content.push(e)}else this.ignoredFields.includes(r.toValue())||this.element.content.push(i.clone())})),this.copyMetaAndAttributes(e,this.element),UT}}}),qM=DM,_M=TT($M,{methods:{enter(e){return this.element=e.clone(),UT}}}),BM=_M,LM=TT(qM,BM,{props:{specPath:_O(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new RI},methods:{ObjectElement(e){return this.unrefractedElement=e,qM.compose.methods.ObjectElement.call(this,e)}}}),UM=LM,JM=TT(IM,BM,{methods:{StringElement(e){const t=new TI(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,UT}}}),VM=JM,GM=TT(IM,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),UT}}}),zM=GM,HM=TT(qM,BM,{props:{specPath:_O(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new EI}}),WM=HM,XM=BM,YM=XM,KM=BM,QM=KM,ZM=BM,eN=ZM,tN=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),UT}}}),nN=tN,rN=TT(qM,BM,{props:{specPath:_O(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new vI}}),iN=rN,sN=BM,oN=sN,cN=BM,aN=cN,uN=BM,fN=uN,lN=TT(qM,BM,{props:{specPath:_O(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new xI}}),hN=lN,pN=BM,mN=pN,dN=BM,vN=dN,yN=TT(qM,BM,{props:{specPath:_O(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new SI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return(eR(this.element.operationId)||eR(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),bN=yN,jN=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),UT}}}),gN=jN,wN=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),UT}}}),ON=wN,EN=TT(IM,{props:{fieldPatternPredicate:Pw,specPath:lS,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:NM},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),i=this.toRefractedElement(r,e),s=new vT(t.clone(),i);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),UT}}}),xN=EN,SN=TT(xN,{props:{fieldPatternPredicate:Qx}}),PN=SN,$N=TT(PN,BM,{props:{specPath:_O(["value"])},init(){this.element=new bM}}),AN=$N,TN=BM,RN=TN,IN=BM,kN=IN,FN=TT(qM,BM,{props:{specPath:_O(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new iF}}),MN=FN,NN=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),UT}}}),CN=NN,DN=BM,qN=DN,_N=TT(IM,BM,{init(){this.element=new fF},methods:{ArrayElement(e){return e.forEach((e=>{const t=FM(e)?["document","objects","Server"]:["value"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}}),BN=_N,LN=TT(qM,BM,{props:{specPath:_O(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new sF}}),UN=LN,JN=BM,VN=JN,GN=BM,zN=GN,HN=BM,WN=HN,XN=TT(PN,BM,{props:{specPath:_O(["document","objects","ServerVariable"])},init(){this.element=new vF}}),YN=XN,KN=TT(qM,BM,{props:{specPath:_O(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new PI}}),QN=KN,ZN=TT(IM,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>WE(e,_O(t),Mx))),n=yS(t)(e);return this.element=this.toRefractedElement(n,e),UT}}}),eC=ZN,tC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof mI||e(r)&&t("callback",r)&&n("object",r))),nC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof dI||e(r)&&t("components",r)&&n("object",r))),rC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof vI||e(r)&&t("contact",r)&&n("object",r))),iC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof jI||e(r)&&t("example",r)&&n("object",r))),sC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof gI||e(r)&&t("externalDocumentation",r)&&n("object",r))),oC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof OI||e(r)&&t("header",r)&&n("object",r))),cC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof EI||e(r)&&t("info",r)&&n("object",r))),aC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xI||e(r)&&t("license",r)&&n("object",r))),uC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof SI||e(r)&&t("link",r)&&n("object",r))),fC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof TI||e(r)&&t("openapi",r)&&n("string",r))),lC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof RI||e(i)&&t("openApi3_0",i)&&n("object",i)&&r("api",i))),hC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof II||e(r)&&t("operation",r)&&n("object",r))),pC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof FI||e(r)&&t("parameter",r)&&n("object",r))),mC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof MI||e(r)&&t("pathItem",r)&&n("object",r))),dC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof NI||e(r)&&t("paths",r)&&n("object",r))),vC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof CI||e(r)&&t("reference",r)&&n("object",r))),yC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof DI||e(r)&&t("requestBody",r)&&n("object",r))),bC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qI||e(r)&&t("response",r)&&n("object",r))),jC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _I||e(r)&&t("responses",r)&&n("object",r))),gC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tF||e(r)&&t("schema",r)&&n("object",r))),wC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof nF||e(r)&&t("securityRequirement",r)&&n("object",r))),OC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof iF||e(r)&&t("server",r)&&n("object",r))),EC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sF||e(r)&&t("serverVariable",r)&&n("object",r))),xC=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof PI||e(r)&&t("mediaType",r)&&n("object",r))),SC=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:e=>rR(e)&&e.classes.includes("boolean-json-schema"),isCallbackElement:tC,isComponentsElement:nC,isContactElement:rC,isExampleElement:iC,isExternalDocumentationElement:sC,isHeaderElement:oC,isInfoElement:cC,isLicenseElement:aC,isLinkElement:uC,isLinkElementExternal:e=>{if(!uC(e))return!1;if(!eR(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isMediaTypeElement:xC,isOpenApi3_0Element:lC,isOpenapiElement:fC,isOperationElement:hC,isParameterElement:pC,isPathItemElement:mC,isPathItemElementExternal:e=>{if(!mC(e))return!1;if(!eR(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isPathsElement:dC,isReferenceElement:vC,isReferenceElementExternal:e=>{if(!vC(e))return!1;if(!eR(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isRequestBodyElement:yC,isResponseElement:bC,isResponsesElement:jC,isSchemaElement:gC,isSecurityRequirementElement:wC,isServerElement:OC,isServerVariableElement:EC},Symbol.toStringTag,{value:"Module"})),PC=TT(eC,BM,{props:{alternator:[{predicate:kM,specPath:["document","objects","Reference"]},{predicate:$w,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=eC.compose.methods.enter.call(this,e);return vC(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),$C=PC,AC=BM,TC=AC,RC=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new dT,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}}),IC=RC,kC=TT(IC,{init(){this.element=new nM}}),FC=kC,MC=TT(PN,BM,{props:{specPath:_O(["document","objects","Encoding"])},init(){this.element=new iM}}),NC=MC,CC=TT(PN,BM,{props:{specPath:_O(["value"])},init(){this.element=new nF}}),DC=CC,qC=TT(IM,BM,{init(){this.element=new hF},methods:{ArrayElement(e){return e.forEach((e=>{if(iR(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),UT}}}),_C=qC,BC=TT(qM,BM,{props:{specPath:_O(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new dI}}),LC=BC,UC=TT(qM,BM,{props:{specPath:_O(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new oF}}),JC=UC,VC=BM,GC=VC,zC=BM,HC=zC,WC=TT(qM,BM,{props:{specPath:_O(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new CI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return eR(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),XC=WC,YC=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),UT}}}),KC=YC,QC=TT(qM,BM,{props:{specPath:_O(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new FI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return iR(this.element.contentProp)&&this.element.contentProp.filter(xC).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),ZC=QC,eD=BM,tD=eD,nD=BM,rD=nD,iD=BM,sD=iD,oD=BM,cD=oD,aD=BM,uD=aD,fD=BM,lD=fD,hD=BM,pD=hD,mD=BM,dD=mD,vD=BM,yD=vD,bD=TT(eC,BM,{props:{alternator:[{predicate:kM,specPath:["document","objects","Reference"]},{predicate:$w,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=eC.compose.methods.enter.call(this,e);return vC(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),jD=bD,gD=TT(qM,BM,{props:{specPath:_O(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new OI}}),wD=gD,OD=BM,ED=OD,xD=BM,SD=xD,PD=BM,$D=PD,AD=BM,TD=AD,RD=BM,ID=RD,kD=BM,FD=kD,MD=BM,ND=TT(eC,BM,{props:{alternator:[{predicate:kM,specPath:["document","objects","Reference"]},{predicate:$w,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=eC.compose.methods.enter.call(this,e);return vC(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),CD=BM,DD=TT(IC,{init(){this.element=new gM}}),qD=TT(PN,BM,{props:{specPath:_O(["document","objects","MediaType"])},init(){this.element=new dT,this.element.classes.push("content")}}),_D=TT(qD,{init(){this.element=new OM}}),BD=TT(qM,BM,{props:{specPath:_O(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new tF}}),{items:LD}=Vk.visitors.document.objects.JSONSchema.fixedFields,UD=TT(LD,{methods:{ObjectElement(e){const t=LD.compose.methods.ObjectElement.call(this,e);return vC(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),UT}}}),{properties:JD}=Vk.visitors.document.objects.JSONSchema.fixedFields,VD=TT(JD,{methods:{ObjectElement(e){const t=JD.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:GD}=Vk.visitors.document.objects.JSONSchema.fixedFields,zD=TT(GD,{methods:{ArrayElement(e){return this.element=e.clone(),UT}}}),HD=BM,WD=BM,XD=BM,YD=BM,{JSONSchemaOrJSONReferenceVisitor:KD}=Vk.visitors,QD=TT(KD,{methods:{ObjectElement(e){const t=KD.compose.methods.enter.call(this,e);return vC(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ZD=Object.fromEntries(Object.entries(Vk.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Vk.visitors.JSONSchemaOrJSONReferenceVisitor?[e,QD]:[e,t]))),eq=TT(qM,BM,{props:{specPath:_O(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new yI}}),tq=BM,nq=TT(PN,BM,{props:{specPath:_O(["value"])},init(){this.element=new mM}}),rq=TT(qM,BM,{props:{specPath:_O(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new cF}}),iq=BM,sq=BM,oq=BM,cq=BM,aq=BM,uq=BM,fq=TT(IC,{init(){this.element=new UF}}),lq=TT(qD,{init(){this.element=new VF}}),hq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new bF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),pq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new gF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bC).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}}),mq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new OF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}}),dq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new xF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}}),vq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new PF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}}),yq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new AF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(oC).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),bq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new RF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}}),jq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new kF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),gq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new MF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),wq=TT(qM,BM,{props:{specPath:_O(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new jI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return eR(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Oq=BM,Eq=BM,xq=BM,Sq=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),UT}}}),Pq=TT(qM,BM,{props:{specPath:_O(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new gI}}),$q=BM,Aq=BM,Tq=TT(qM,BM,{props:{specPath:_O(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new bI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return iR(this.element.headers)&&this.element.headers.filter(oC).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Rq=BM,Iq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new oM},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!oC(e))return;const n=t.toValue();e.setMetaProperty("headerName",n)})),t}}}),kq=BM,Fq=BM,Mq=BM,Nq=TT(xN,BM,{props:{fieldPatternPredicate:Tx(/^\/(?<path>.*)$/),specPath:_O(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new NI},methods:{ObjectElement(e){const t=xN.compose.methods.ObjectElement.call(this,e);return this.element.filter(mC).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),Cq=TT(qM,BM,{props:{specPath:_O(["document","objects","RequestBody"])},init(){this.element=new DI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return iR(this.element.contentProp)&&this.element.contentProp.filter(xC).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Dq=BM,qq=TT(qD,{init(){this.element=new eM}}),_q=BM,Bq=TT(xN,BM,{props:{fieldPatternPredicate:Tx(/{(?<expression>.*)}/),specPath:_O(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new mI},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(mC).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),Lq=TT(qM,BM,{props:{specPath:_O(["document","objects","Response"])},init(){this.element=new qI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return iR(this.element.contentProp)&&this.element.contentProp.filter(xC).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),iR(this.element.headers)&&this.element.headers.filter(oC).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Uq=BM,Jq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new aM},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!oC(e))return;const n=t.toValue();e.setMetaProperty("header-name",n)})),t}}}),Vq=TT(qD,{init(){this.element=new fM}}),Gq=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new hM},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),zq=TT(qM,xN,{props:{specPathFixedFields:lS,specPathPatternedFields:lS},methods:{ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...xE(e.keys(),t)],qM.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,xN.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return UT}}}),Hq=TT(zq,BM,{props:{specPathFixedFields:_O(["document","objects","Responses"]),specPathPatternedFields:e=>kM(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Tx(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${gx(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new _I},methods:{ObjectElement(e){const t=zq.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bC).forEach(((e,t)=>{const n=t.clone();this.fieldPatternPredicate(n.toValue())&&e.setMetaProperty("http-status-code",n)})),t}}}),Wq=TT(eC,BM,{props:{alternator:[{predicate:kM,specPath:["document","objects","Reference"]},{predicate:$w,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=eC.compose.methods.enter.call(this,e);return vC(this.element)?this.element.setMetaProperty("referenced-element","response"):bC(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),Xq=TT(qM,BM,{props:{specPath:_O(["document","objects","Operation"])},init(){this.element=new II}}),Yq=TT(BM,{init(){this.element=new zF},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),UT}}}),Kq=BM,Qq=BM,Zq=BM,e_=TT(IM,BM,{init(){this.element=new mT,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=kM(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);vC(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}}),t_=TT(e_,{init(){this.element=new BF}}),n_=TT(eC,{props:{alternator:[{predicate:kM,specPath:["document","objects","Reference"]},{predicate:$w,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=eC.compose.methods.enter.call(this,e);return vC(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}}),r_=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new WF},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(vC).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),i_=BM,s_=TT(IM,BM,{init(){this.element=new YF},methods:{ArrayElement(e){return e.forEach((e=>{const t=iR(e)?["document","objects","SecurityRequirement"]:["value"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}}),o_=TT(BN,{init(){this.element=new QF}}),c_=TT(qM,BM,{props:{specPath:_O(["document","objects","PathItem"])},init(){this.element=new MI},methods:{ObjectElement(e){const t=qM.compose.methods.ObjectElement.call(this,e);return this.element.filter(hC).forEach(((e,t)=>{const n=t.clone();n.content=n.toValue().toUpperCase(),e.setMetaProperty("http-method",n)})),eR(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),a_=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),UT}}}),u_=BM,f_=BM,l_=TT(BN,{init(){this.element=new CF}}),h_=TT(e_,{init(){this.element=new qF}}),p_=TT(qM,BM,{props:{specPath:_O(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new rF}}),m_=BM,d_=BM,v_=BM,y_=BM,b_=BM,j_=BM,g_=BM,w_=TT(qM,BM,{props:{specPath:_O(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new AI}}),O_=TT(qM,BM,{props:{specPath:_O(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new $I}}),E_=BM,x_=BM,S_=BM,P_=TT(PN,BM,{props:{specPath:_O(["value"])},init(){this.element=new vM}}),$_=TT(IM,BM,{init(){this.element=new mF},methods:{ArrayElement(e){return e.forEach((e=>{const t=MM(e)?["document","objects","Tag"]:["value"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),UT}}});function A_(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 T_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A_(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const R_={$visitor:XC,fixedFields:{$ref:KC}},I_={$visitor:BD,fixedFields:T_(T_({},ZD),{},{items:UD,properties:VD,type:zD,nullable:HD,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:WD,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:XD,deprecated:YD})},k_={visitors:{value:BM,document:{objects:{OpenApi:{$visitor:UM,fixedFields:{openapi:VM,info:{$ref:"#/visitors/document/objects/Info"},servers:BN,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:_C,tags:$_,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:WM,fixedFields:{title:YM,description:QM,termsOfService:eN,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:nN}},Contact:{$visitor:iN,fixedFields:{name:oN,url:aN,email:fN}},License:{$visitor:hN,fixedFields:{name:mN,url:vN}},Server:{$visitor:MN,fixedFields:{url:CN,description:qN,variables:YN}},ServerVariable:{$visitor:UN,fixedFields:{enum:VN,default:zN,description:WN}},Components:{$visitor:LC,fixedFields:{schemas:hq,responses:pq,parameters:mq,examples:dq,requestBodies:vq,headers:yq,securitySchemes:bq,links:jq,callbacks:gq}},Paths:{$visitor:Nq},PathItem:{$visitor:c_,fixedFields:{$ref:a_,summary:u_,description:f_,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:l_,parameters:h_}},Operation:{$visitor:Xq,fixedFields:{tags:Yq,summary:Kq,description:Qq,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Zq,parameters:t_,requestBody:n_,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:r_,deprecated:i_,security:s_,servers:o_}},ExternalDocumentation:{$visitor:Pq,fixedFields:{description:$q,url:Aq}},Parameter:{$visitor:ZC,fixedFields:{name:tD,in:rD,description:sD,required:cD,deprecated:uD,allowEmptyValue:lD,style:pD,explode:dD,allowReserved:yD,schema:jD,example:uq,examples:fq,content:lq}},RequestBody:{$visitor:Cq,fixedFields:{description:Dq,content:qq,required:_q}},MediaType:{$visitor:QN,fixedFields:{schema:$C,example:TC,examples:FC,encoding:NC}},Encoding:{$visitor:Tq,fixedFields:{contentType:Rq,headers:Iq,style:kq,explode:Fq,allowReserved:Mq}},Responses:{$visitor:Hq,fixedFields:{default:Wq}},Response:{$visitor:Lq,fixedFields:{description:Uq,headers:Jq,content:Vq,links:Gq}},Callback:{$visitor:Bq},Example:{$visitor:wq,fixedFields:{summary:Oq,description:Eq,value:xq,externalValue:Sq}},Link:{$visitor:bN,fixedFields:{operationRef:gN,operationId:ON,parameters:AN,requestBody:RN,description:kN,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:wD,fixedFields:{description:ED,required:SD,deprecated:$D,allowEmptyValue:TD,style:ID,explode:FD,allowReserved:MD,schema:ND,example:CD,examples:DD,content:_D}},Tag:{$visitor:JC,fixedFields:{name:GC,description:HC,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:R_,Reference:R_,JSONSchema:I_,Schema:I_,LinkDescription:Vk.visitors.document.objects.LinkDescription,Media:Vk.visitors.document.objects.Media,Discriminator:{$visitor:eq,fixedFields:{propertyName:tq,mapping:nq}},XML:{$visitor:rq,fixedFields:{name:iq,namespace:sq,prefix:oq,attribute:cq,wrapped:aq}},SecurityScheme:{$visitor:p_,fixedFields:{type:m_,description:d_,name:v_,in:y_,scheme:b_,bearerFormat:j_,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:g_}},OAuthFlows:{$visitor:w_,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:O_,fixedFields:{authorizationUrl:E_,tokenUrl:x_,refreshUrl:S_,scopes:P_}},SecurityRequirement:{$visitor:DC}},extension:{$visitor:zM}}}};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 M_(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){ml(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}const N_=()=>{const e=PT(aF);return{predicates:M_(M_(M_({},CM),SC),{},{isStringElement:eR}),namespace:e}};function C_(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 D_=e=>(t,n={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:n=[]}={})=>{const r=jT(e),i=XR(k_),s=gS(t,[],i);return SR(r,s,{state:{specObj:i}}),_R(s.element,n,{toolboxCreator:N_,visitorOptions:{keyMap:SM,nodeTypeGetter:xM}})})(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C_(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({specPath:e},n));mI.refract=D_(["visitors","document","objects","Callback","$visitor"]),dI.refract=D_(["visitors","document","objects","Components","$visitor"]),vI.refract=D_(["visitors","document","objects","Contact","$visitor"]),jI.refract=D_(["visitors","document","objects","Example","$visitor"]),yI.refract=D_(["visitors","document","objects","Discriminator","$visitor"]),bI.refract=D_(["visitors","document","objects","Encoding","$visitor"]),gI.refract=D_(["visitors","document","objects","ExternalDocumentation","$visitor"]),OI.refract=D_(["visitors","document","objects","Header","$visitor"]),EI.refract=D_(["visitors","document","objects","Info","$visitor"]),xI.refract=D_(["visitors","document","objects","License","$visitor"]),SI.refract=D_(["visitors","document","objects","Link","$visitor"]),PI.refract=D_(["visitors","document","objects","MediaType","$visitor"]),$I.refract=D_(["visitors","document","objects","OAuthFlow","$visitor"]),AI.refract=D_(["visitors","document","objects","OAuthFlows","$visitor"]),TI.refract=D_(["visitors","document","objects","OpenApi","fixedFields","openapi"]),RI.refract=D_(["visitors","document","objects","OpenApi","$visitor"]),II.refract=D_(["visitors","document","objects","Operation","$visitor"]),FI.refract=D_(["visitors","document","objects","Parameter","$visitor"]),MI.refract=D_(["visitors","document","objects","PathItem","$visitor"]),NI.refract=D_(["visitors","document","objects","Paths","$visitor"]),CI.refract=D_(["visitors","document","objects","Reference","$visitor"]),DI.refract=D_(["visitors","document","objects","RequestBody","$visitor"]),qI.refract=D_(["visitors","document","objects","Response","$visitor"]),_I.refract=D_(["visitors","document","objects","Responses","$visitor"]),tF.refract=D_(["visitors","document","objects","Schema","$visitor"]),nF.refract=D_(["visitors","document","objects","SecurityRequirement","$visitor"]),rF.refract=D_(["visitors","document","objects","SecurityScheme","$visitor"]),iF.refract=D_(["visitors","document","objects","Server","$visitor"]),sF.refract=D_(["visitors","document","objects","ServerVariable","$visitor"]),oF.refract=D_(["visitors","document","objects","Tag","$visitor"]),cF.refract=D_(["visitors","document","objects","XML","$visitor"]);const q_=class extends mI{};const __=class extends dI{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const B_=class extends vI{};const L_=class extends yI{};const U_=class extends bI{};const J_=class extends jI{};const V_=class extends gI{};const G_=class extends OI{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const z_=class extends EI{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 H_ extends fT{constructor(e,t,n){super(e,t,n),this.element="jsonSchemaDialect"}}ml(H_,"default",new H_("https://spec.openapis.org/oas/3.1/dialect/base"));const W_=H_;const X_=class extends xI{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Y_=class extends SI{};const K_=class extends PI{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Q_=class extends $I{};const Z_=class extends AI{};const eB=class extends TI{};const tB=class extends dT{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 nB=class extends II{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const rB=class extends FI{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const iB=class extends MI{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 sB=class extends NI{};let oB=class extends CI{};Object.defineProperty(oB.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(oB.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const cB=oB;const aB=class extends DI{};const uB=class extends qI{};const fB=class extends _I{};const lB=class extends dT{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 hB=class extends nF{};const pB=class extends rF{};const mB=class extends iF{};const dB=class extends sF{};const vB=class extends oF{};const yB=class extends cF{},bB={namespace:e=>{const{base:t}=e;return t.register("callback",q_),t.register("components",__),t.register("contact",B_),t.register("discriminator",L_),t.register("encoding",U_),t.register("example",J_),t.register("externalDocumentation",V_),t.register("header",G_),t.register("info",z_),t.register("jsonSchemaDialect",W_),t.register("license",X_),t.register("link",Y_),t.register("mediaType",K_),t.register("oAuthFlow",Q_),t.register("oAuthFlows",Z_),t.register("openapi",eB),t.register("openApi3_1",tB),t.register("operation",nB),t.register("parameter",rB),t.register("pathItem",iB),t.register("paths",sB),t.register("reference",cB),t.register("requestBody",aB),t.register("response",uB),t.register("responses",fB),t.register("schema",lB),t.register("securityRequirement",hB),t.register("securityScheme",pB),t.register("server",mB),t.register("serverVariable",dB),t.register("tag",vB),t.register("xml",yB),t}};class jB extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(jB.primaryClass)}}ml(jB,"primaryClass","components-path-items");const gB=jB;class wB extends dT{constructor(e,t,n){super(e,t,n),this.classes.push(wB.primaryClass)}}ml(wB,"primaryClass","webhooks");const OB=wB;function EB(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 xB=e=>{if(ZT(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},SB=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EB(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EB(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"]},ER),PB=()=>({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)&&(sI(t.name)===sI(n.name)&&sI(t.in)===sI(n.in))))))),n=[];return{visitor:{PathItemElement:{enter(t,r,i,s,o){if(o.some(e.isComponentsElement))return;const{parameters:c}=t;e.isArrayElement(c)?n.push([...c.content]):n.push([])},leave(){n.pop()}},OperationElement:{leave(e){const r=kE(n);if(!Array.isArray(r)||0===r.length)return;const i=px([],["parameters","content"],e),s=kx(t,[...i,...r]);e.parameters=new BF(s)}}}}},$B=()=>({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,i,s,o){if(o.some(e.isComponentsElement))return;var c;void 0===n.security&&void 0!==t&&(n.security=new YF(null===(c=t)||void 0===c?void 0:c.content))}}}}},AB=()=>({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,i,s,o,c){if(c.some(e.isComponentsElement))return;void 0===r.servers&&void 0!==t&&(r.servers=new CF(t));const{servers:a}=r;void 0!==a&&e.isArrayElement(a)?n.push([...a.content]):n.push(void 0)},leave(){n.pop()}},OperationElement:{enter(t){const r=kE(n);void 0!==r&&(e.isArrayElement(t.servers)||(t.servers=new QF(r)))}}}}},TB=e=>e.replace(/\s/g,""),RB=e=>e.replace(/\W/gi,"_"),IB=(e,t,n)=>{const r=TB(e);return r.length>0?RB(r):((e,t)=>`${RB(TB(t.toLowerCase()))}${RB(TB(e))}`)(t,n)},kB=({operationIdNormalizer:e=IB}={})=>({predicates:t,namespace:n})=>{const r=[],i=[],s=[];return{visitor:{OpenApi3_1Element:{leave(){const e=BE((e=>sI(e.operationId)),i);Object.entries(e).forEach((([e,t])=>{t.length<=1||t.forEach(((t,r)=>{const i=`${e}${r+1}`;t.operationId=new n.elements.String(i)}))})),s.forEach((e=>{var t;if(void 0===e.operationId)return;const n=String(sI(e.operationId)),r=i.find((e=>sI(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))})),i.length=0,s.length=0}},PathItemElement:{enter(e){const t=gE("path",sI(e.meta.get("path")));r.push(t)},leave(){r.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const s=String(sI(t.operationId)),o=kE(r),c=gE("method",sI(t.meta.get("http-method"))),a=e(s,o,c);s!==a&&(t.operationId=new n.elements.String(a),t.set("__originalOperationId",s),t.meta.set("originalOperationId",s),i.push(t))}},LinkElement:{leave(e){t.isLinkElement(e)&&void 0!==e.operationId&&s.push(e)}}}}},FB=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,n,r,i,s){var o,c;if(!s.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(c=t.schema)||void 0===c?void 0:c.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()))}}}}}),MB=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,n,r,i,s){var o,c;if(!s.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(c=t.schema)||void 0===c?void 0:c.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()))}}}}}),NB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof q_||e(r)&&t("callback",r)&&n("object",r))),CB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof __||e(r)&&t("components",r)&&n("object",r))),DB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof B_||e(r)&&t("contact",r)&&n("object",r))),qB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof J_||e(r)&&t("example",r)&&n("object",r))),_B=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof V_||e(r)&&t("externalDocumentation",r)&&n("object",r))),BB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof G_||e(r)&&t("header",r)&&n("object",r))),LB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof z_||e(r)&&t("info",r)&&n("object",r))),UB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof W_||e(r)&&t("jsonSchemaDialect",r)&&n("string",r))),JB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof X_||e(r)&&t("license",r)&&n("object",r))),VB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Y_||e(r)&&t("link",r)&&n("object",r))),GB=e=>{if(!VB(e))return!1;if(!eR(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},zB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof eB||e(r)&&t("openapi",r)&&n("string",r))),HB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof tB||e(i)&&t("openApi3_1",i)&&n("object",i)&&r("api",i))),WB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof nB||e(r)&&t("operation",r)&&n("object",r))),XB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rB||e(r)&&t("parameter",r)&&n("object",r))),YB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof iB||e(r)&&t("pathItem",r)&&n("object",r))),KB=e=>{if(!YB(e))return!1;if(!eR(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},QB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sB||e(r)&&t("paths",r)&&n("object",r))),ZB=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof cB||e(r)&&t("reference",r)&&n("object",r))),eL=e=>{if(!ZB(e))return!1;if(!eR(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},tL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof aB||e(r)&&t("requestBody",r)&&n("object",r))),nL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof uB||e(r)&&t("response",r)&&n("object",r))),rL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fB||e(r)&&t("responses",r)&&n("object",r))),iL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lB||e(r)&&t("schema",r)&&n("object",r))),sL=e=>rR(e)&&e.classes.includes("boolean-json-schema"),oL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof hB||e(r)&&t("securityRequirement",r)&&n("object",r))),cL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof mB||e(r)&&t("server",r)&&n("object",r))),aL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof dB||e(r)&&t("serverVariable",r)&&n("object",r))),uL=QT((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof K_||e(r)&&t("mediaType",r)&&n("object",r))),fL=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:sL,isCallbackElement:NB,isComponentsElement:CB,isContactElement:DB,isExampleElement:qB,isExternalDocumentationElement:_B,isHeaderElement:BB,isInfoElement:LB,isJsonSchemaDialectElement:UB,isLicenseElement:JB,isLinkElement:VB,isLinkElementExternal:GB,isMediaTypeElement:uL,isOpenApi3_1Element:HB,isOpenapiElement:zB,isOperationElement:WB,isParameterElement:XB,isPathItemElement:YB,isPathItemElementExternal:KB,isPathsElement:QB,isReferenceElement:ZB,isReferenceElementExternal:eL,isRequestBodyElement:tL,isResponseElement:nL,isResponsesElement:rL,isSchemaElement:iL,isSecurityRequirementElement:oL,isServerElement:cL,isServerVariableElement:aL},Symbol.toStringTag,{value:"Module"}));function lL(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 hL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lL(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pL=()=>{const e=PT(bB);return{predicates:hL(hL({},fL),{},{isStringElement:eR,isArrayElement:sR,isObjectElement:iR,includesClasses:dR}),namespace:e}},mL=TT(qM,BM,{props:{specPath:_O(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new tB,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,qM.compose.methods.ObjectElement.call(this,e)}}}),dL=mL,{visitors:{document:{objects:{Info:{$visitor:vL}}}}}=k_,yL=TT(vL,{init(){this.element=new z_}}),bL=BM,{visitors:{document:{objects:{Contact:{$visitor:jL}}}}}=k_,gL=TT(jL,{init(){this.element=new B_}}),{visitors:{document:{objects:{License:{$visitor:wL}}}}}=k_,OL=TT(wL,{init(){this.element=new X_}}),EL=BM,{visitors:{document:{objects:{Link:{$visitor:xL}}}}}=k_,SL=TT(xL,{init(){this.element=new Y_}}),PL=TT(IM,BM,{methods:{StringElement(e){const t=new W_(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,UT}}}),{visitors:{document:{objects:{Server:{$visitor:$L}}}}}=k_,AL=TT($L,{init(){this.element=new mB}}),{visitors:{document:{objects:{ServerVariable:{$visitor:TL}}}}}=k_,RL=TT(TL,{init(){this.element=new dB}}),{visitors:{document:{objects:{MediaType:{$visitor:IL}}}}}=k_,kL=TT(IL,{init(){this.element=new K_}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:FL}}}}}=k_,ML=TT(FL,{init(){this.element=new hB}}),{visitors:{document:{objects:{Components:{$visitor:NL}}}}}=k_,CL=TT(NL,{init(){this.element=new __}}),{visitors:{document:{objects:{Tag:{$visitor:DL}}}}}=k_,qL=TT(DL,{init(){this.element=new vB}}),{visitors:{document:{objects:{Reference:{$visitor:_L}}}}}=k_,BL=TT(_L,{init(){this.element=new cB}}),LL=BM,UL=BM,{visitors:{document:{objects:{Parameter:{$visitor:JL}}}}}=k_,VL=TT(JL,{init(){this.element=new rB}}),{visitors:{document:{objects:{Header:{$visitor:GL}}}}}=k_,zL=TT(GL,{init(){this.element=new G_}}),HL=TT({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),WL=HL,XL=TT(qM,WL,BM,{props:{specPath:_O(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&UB(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&eR(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():W_.default.toValue(),e},t=t=>{if(Dx(this.parent)&&!eR(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(iL(this.parent)&&!eR(t.get("$schema"))){var n,r;const e=gE(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 mT,r=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();Qx(r)&&n.push(r),this.element.setMetaProperty("inherited$id",n)};this.ObjectElement=function(e){this.element=new lB,t(e),n(e),this.parent=this.element;const r=qM.compose.methods.ObjectElement.call(this,e);return eR(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"),UT}}}),YL=BM,KL=TT(BM,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),UT}}}),QL=BM,ZL=BM,eU=BM,tU=BM,nU=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),UT}}}),rU=TT(PN,WL,BM,{props:{specPath:_O(["document","objects","Schema"])},init(){this.element=new dT,this.element.classes.push("json-schema-$defs")}}),iU=BM,sU=TT(IM,WL,BM,{init(){this.element=new mT,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(iR(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),UT}}}),oU=TT(IM,WL,BM,{init(){this.element=new mT,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(iR(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),UT}}}),cU=TT(IM,WL,BM,{init(){this.element=new mT,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(iR(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),UT}}}),aU=TT(PN,WL,BM,{props:{specPath:_O(["document","objects","Schema"])},init(){this.element=new dT,this.element.classes.push("json-schema-dependentSchemas")}}),uU=TT(IM,WL,BM,{init(){this.element=new mT,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(iR(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),UT}}}),fU=TT(PN,WL,BM,{props:{specPath:_O(["document","objects","Schema"])},init(){this.element=new dT,this.element.classes.push("json-schema-properties")}}),lU=TT(PN,WL,BM,{props:{specPath:_O(["document","objects","Schema"])},init(){this.element=new dT,this.element.classes.push("json-schema-patternProperties")}}),hU=TT(BM,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),UT},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),UT}}}),pU=TT(BM,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),UT}}}),mU=BM,dU=BM,vU=BM,yU=BM,bU=BM,jU=BM,gU=BM,wU=BM,OU=BM,EU=BM,xU=BM,SU=BM,PU=BM,$U=BM,AU=BM,TU=BM,RU=TT(BM,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),UT}}}),IU=TT(BM,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),UT}}}),kU=BM,FU=BM,MU=BM,NU=BM,CU=BM,DU=BM,qU=TT(BM,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),UT}}}),_U=BM,BU=BM,LU=BM,UU=BM,{visitors:{document:{objects:{Discriminator:{$visitor:JU}}}}}=k_,VU=TT(JU,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new L_}}),{visitors:{document:{objects:{XML:{$visitor:GU}}}}}=k_,zU=TT(GU,{init(){this.element=new yB}}),HU=TT(PN,BM,{props:{specPath:_O(["document","objects","Schema"])},init(){this.element=new bF}}),WU=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new gB},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(ZB).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:XU}}}}}=k_,YU=TT(XU,{init(){this.element=new J_}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:KU}}}}}=k_,QU=TT(KU,{init(){this.element=new V_}}),{visitors:{document:{objects:{Encoding:{$visitor:ZU}}}}}=k_,eJ=TT(ZU,{init(){this.element=new U_}}),{visitors:{document:{objects:{Paths:{$visitor:tJ}}}}}=k_,nJ=TT(tJ,{init(){this.element=new sB}}),{visitors:{document:{objects:{RequestBody:{$visitor:rJ}}}}}=k_,iJ=TT(rJ,{init(){this.element=new aB}}),{visitors:{document:{objects:{Callback:{$visitor:sJ}}}}}=k_,oJ=TT(sJ,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new q_},methods:{ObjectElement(e){const t=sJ.compose.methods.ObjectElement.call(this,e);return this.element.filter(ZB).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:cJ}}}}}=k_,aJ=TT(cJ,{init(){this.element=new uB}}),{visitors:{document:{objects:{Responses:{$visitor:uJ}}}}}=k_,fJ=TT(uJ,{init(){this.element=new fB}}),{visitors:{document:{objects:{Operation:{$visitor:lJ}}}}}=k_,hJ=TT(lJ,{init(){this.element=new nB}}),{visitors:{document:{objects:{PathItem:{$visitor:pJ}}}}}=k_,mJ=TT(pJ,{init(){this.element=new iB}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:dJ}}}}}=k_,vJ=TT(dJ,{init(){this.element=new pB}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:yJ}}}}}=k_,bJ=TT(yJ,{init(){this.element=new Z_}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:jJ}}}}}=k_,gJ=TT(jJ,{init(){this.element=new Q_}}),wJ=TT(PN,BM,{props:{specPath:e=>kM(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new OB},methods:{ObjectElement(e){const t=PN.compose.methods.ObjectElement.call(this,e);return this.element.filter(ZB).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(YB).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),OJ={visitors:{value:k_.visitors.value,document:{objects:{OpenApi:{$visitor:dL,fixedFields:{openapi:k_.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:PL,servers:k_.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:wJ,components:{$ref:"#/visitors/document/objects/Components"},security:k_.visitors.document.objects.OpenApi.fixedFields.security,tags:k_.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:yL,fixedFields:{title:k_.visitors.document.objects.Info.fixedFields.title,description:k_.visitors.document.objects.Info.fixedFields.description,summary:bL,termsOfService:k_.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:k_.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:gL,fixedFields:{name:k_.visitors.document.objects.Contact.fixedFields.name,url:k_.visitors.document.objects.Contact.fixedFields.url,email:k_.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:OL,fixedFields:{name:k_.visitors.document.objects.License.fixedFields.name,identifier:EL,url:k_.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:AL,fixedFields:{url:k_.visitors.document.objects.Server.fixedFields.url,description:k_.visitors.document.objects.Server.fixedFields.description,variables:k_.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:RL,fixedFields:{enum:k_.visitors.document.objects.ServerVariable.fixedFields.enum,default:k_.visitors.document.objects.ServerVariable.fixedFields.default,description:k_.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:CL,fixedFields:{schemas:HU,responses:k_.visitors.document.objects.Components.fixedFields.responses,parameters:k_.visitors.document.objects.Components.fixedFields.parameters,examples:k_.visitors.document.objects.Components.fixedFields.examples,requestBodies:k_.visitors.document.objects.Components.fixedFields.requestBodies,headers:k_.visitors.document.objects.Components.fixedFields.headers,securitySchemes:k_.visitors.document.objects.Components.fixedFields.securitySchemes,links:k_.visitors.document.objects.Components.fixedFields.links,callbacks:k_.visitors.document.objects.Components.fixedFields.callbacks,pathItems:WU}},Paths:{$visitor:nJ},PathItem:{$visitor:mJ,fixedFields:{$ref:k_.visitors.document.objects.PathItem.fixedFields.$ref,summary:k_.visitors.document.objects.PathItem.fixedFields.summary,description:k_.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:k_.visitors.document.objects.PathItem.fixedFields.servers,parameters:k_.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:hJ,fixedFields:{tags:k_.visitors.document.objects.Operation.fixedFields.tags,summary:k_.visitors.document.objects.Operation.fixedFields.summary,description:k_.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:k_.visitors.document.objects.Operation.fixedFields.operationId,parameters:k_.visitors.document.objects.Operation.fixedFields.parameters,requestBody:k_.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:k_.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:k_.visitors.document.objects.Operation.fixedFields.deprecated,security:k_.visitors.document.objects.Operation.fixedFields.security,servers:k_.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:QU,fixedFields:{description:k_.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:k_.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:VL,fixedFields:{name:k_.visitors.document.objects.Parameter.fixedFields.name,in:k_.visitors.document.objects.Parameter.fixedFields.in,description:k_.visitors.document.objects.Parameter.fixedFields.description,required:k_.visitors.document.objects.Parameter.fixedFields.required,deprecated:k_.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:k_.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:k_.visitors.document.objects.Parameter.fixedFields.style,explode:k_.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:k_.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:k_.visitors.document.objects.Parameter.fixedFields.example,examples:k_.visitors.document.objects.Parameter.fixedFields.examples,content:k_.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:iJ,fixedFields:{description:k_.visitors.document.objects.RequestBody.fixedFields.description,content:k_.visitors.document.objects.RequestBody.fixedFields.content,required:k_.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:kL,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:k_.visitors.document.objects.MediaType.fixedFields.example,examples:k_.visitors.document.objects.MediaType.fixedFields.examples,encoding:k_.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:eJ,fixedFields:{contentType:k_.visitors.document.objects.Encoding.fixedFields.contentType,headers:k_.visitors.document.objects.Encoding.fixedFields.headers,style:k_.visitors.document.objects.Encoding.fixedFields.style,explode:k_.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:k_.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:fJ,fixedFields:{default:k_.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:aJ,fixedFields:{description:k_.visitors.document.objects.Response.fixedFields.description,headers:k_.visitors.document.objects.Response.fixedFields.headers,content:k_.visitors.document.objects.Response.fixedFields.content,links:k_.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:oJ},Example:{$visitor:YU,fixedFields:{summary:k_.visitors.document.objects.Example.fixedFields.summary,description:k_.visitors.document.objects.Example.fixedFields.description,value:k_.visitors.document.objects.Example.fixedFields.value,externalValue:k_.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:SL,fixedFields:{operationRef:k_.visitors.document.objects.Link.fixedFields.operationRef,operationId:k_.visitors.document.objects.Link.fixedFields.operationId,parameters:k_.visitors.document.objects.Link.fixedFields.parameters,requestBody:k_.visitors.document.objects.Link.fixedFields.requestBody,description:k_.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:zL,fixedFields:{description:k_.visitors.document.objects.Header.fixedFields.description,required:k_.visitors.document.objects.Header.fixedFields.required,deprecated:k_.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:k_.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:k_.visitors.document.objects.Header.fixedFields.style,explode:k_.visitors.document.objects.Header.fixedFields.explode,allowReserved:k_.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:k_.visitors.document.objects.Header.fixedFields.example,examples:k_.visitors.document.objects.Header.fixedFields.examples,content:k_.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:qL,fixedFields:{name:k_.visitors.document.objects.Tag.fixedFields.name,description:k_.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:BL,fixedFields:{$ref:k_.visitors.document.objects.Reference.fixedFields.$ref,summary:LL,description:UL}},Schema:{$visitor:XL,fixedFields:{$schema:YL,$vocabulary:KL,$id:QL,$anchor:ZL,$dynamicAnchor:eU,$dynamicRef:tU,$ref:nU,$defs:rU,$comment:iU,allOf:sU,anyOf:oU,oneOf:cU,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:aU,prefixItems:uU,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:fU,patternProperties:lU,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:hU,enum:pU,const:mU,multipleOf:dU,maximum:vU,exclusiveMaximum:yU,minimum:bU,exclusiveMinimum:jU,maxLength:gU,minLength:wU,pattern:OU,maxItems:EU,minItems:xU,uniqueItems:SU,maxContains:PU,minContains:$U,maxProperties:AU,minProperties:TU,required:RU,dependentRequired:IU,title:kU,description:FU,default:MU,deprecated:NU,readOnly:CU,writeOnly:DU,examples:qU,format:_U,contentEncoding:BU,contentMediaType:LU,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:UU}},Discriminator:{$visitor:VU,fixedFields:{propertyName:k_.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:k_.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:zU,fixedFields:{name:k_.visitors.document.objects.XML.fixedFields.name,namespace:k_.visitors.document.objects.XML.fixedFields.namespace,prefix:k_.visitors.document.objects.XML.fixedFields.prefix,attribute:k_.visitors.document.objects.XML.fixedFields.attribute,wrapped:k_.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:vJ,fixedFields:{type:k_.visitors.document.objects.SecurityScheme.fixedFields.type,description:k_.visitors.document.objects.SecurityScheme.fixedFields.description,name:k_.visitors.document.objects.SecurityScheme.fixedFields.name,in:k_.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:k_.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:k_.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:k_.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:bJ,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:gJ,fixedFields:{authorizationUrl:k_.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:k_.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:k_.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:k_.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:ML}},extension:{$visitor:k_.visitors.document.extension.$visitor}}}};function EJ(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 xJ=e=>(t,n={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:n=[]}={})=>{const r=jT(e),i=XR(OJ),s=gS(t,[],i);return SR(r,s,{state:{specObj:i}}),_R(s.element,n,{toolboxCreator:pL,visitorOptions:{keyMap:SB,nodeTypeGetter:xB}})})(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EJ(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({specPath:e},n));q_.refract=xJ(["visitors","document","objects","Callback","$visitor"]),__.refract=xJ(["visitors","document","objects","Components","$visitor"]),B_.refract=xJ(["visitors","document","objects","Contact","$visitor"]),J_.refract=xJ(["visitors","document","objects","Example","$visitor"]),L_.refract=xJ(["visitors","document","objects","Discriminator","$visitor"]),U_.refract=xJ(["visitors","document","objects","Encoding","$visitor"]),V_.refract=xJ(["visitors","document","objects","ExternalDocumentation","$visitor"]),G_.refract=xJ(["visitors","document","objects","Header","$visitor"]),z_.refract=xJ(["visitors","document","objects","Info","$visitor"]),W_.refract=xJ(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),X_.refract=xJ(["visitors","document","objects","License","$visitor"]),Y_.refract=xJ(["visitors","document","objects","Link","$visitor"]),K_.refract=xJ(["visitors","document","objects","MediaType","$visitor"]),Q_.refract=xJ(["visitors","document","objects","OAuthFlow","$visitor"]),Z_.refract=xJ(["visitors","document","objects","OAuthFlows","$visitor"]),eB.refract=xJ(["visitors","document","objects","OpenApi","fixedFields","openapi"]),tB.refract=xJ(["visitors","document","objects","OpenApi","$visitor"]),nB.refract=xJ(["visitors","document","objects","Operation","$visitor"]),rB.refract=xJ(["visitors","document","objects","Parameter","$visitor"]),iB.refract=xJ(["visitors","document","objects","PathItem","$visitor"]),sB.refract=xJ(["visitors","document","objects","Paths","$visitor"]),cB.refract=xJ(["visitors","document","objects","Reference","$visitor"]),aB.refract=xJ(["visitors","document","objects","RequestBody","$visitor"]),uB.refract=xJ(["visitors","document","objects","Response","$visitor"]),fB.refract=xJ(["visitors","document","objects","Responses","$visitor"]),lB.refract=xJ(["visitors","document","objects","Schema","$visitor"]),hB.refract=xJ(["visitors","document","objects","SecurityRequirement","$visitor"]),pB.refract=xJ(["visitors","document","objects","SecurityScheme","$visitor"]),mB.refract=xJ(["visitors","document","objects","Server","$visitor"]),dB.refract=xJ(["visitors","document","objects","ServerVariable","$visitor"]),vB.refract=xJ(["visitors","document","objects","Tag","$visitor"]),yB.refract=xJ(["visitors","document","objects","XML","$visitor"]);var SJ,PJ,$J={exports:{}},AJ=$J.exports={};function TJ(){throw new Error("setTimeout has not been defined")}function RJ(){throw new Error("clearTimeout has not been defined")}function IJ(e){if(SJ===setTimeout)return setTimeout(e,0);if((SJ===TJ||!SJ)&&setTimeout)return SJ=setTimeout,setTimeout(e,0);try{return SJ(e,0)}catch(t){try{return SJ.call(null,e,0)}catch(t){return SJ.call(this,e,0)}}}!function(){try{SJ="function"==typeof setTimeout?setTimeout:TJ}catch(e){SJ=TJ}try{PJ="function"==typeof clearTimeout?clearTimeout:RJ}catch(e){PJ=RJ}}();var kJ,FJ=[],MJ=!1,NJ=-1;function CJ(){MJ&&kJ&&(MJ=!1,kJ.length?FJ=kJ.concat(FJ):NJ=-1,FJ.length&&DJ())}function DJ(){if(!MJ){var e=IJ(CJ);MJ=!0;for(var t=FJ.length;t;){for(kJ=FJ,FJ=[];++NJ<t;)kJ&&kJ[NJ].run();NJ=-1,t=FJ.length}kJ=null,MJ=!1,function(e){if(PJ===clearTimeout)return clearTimeout(e);if((PJ===RJ||!PJ)&&clearTimeout)return PJ=clearTimeout,clearTimeout(e);try{PJ(e)}catch(t){try{return PJ.call(null,e)}catch(t){return PJ.call(this,e)}}}(e)}}function qJ(e,t){this.fun=e,this.array=t}function _J(){}AJ.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];FJ.push(new qJ(e,t)),1!==FJ.length||MJ||IJ(DJ)},qJ.prototype.run=function(){this.fun.apply(null,this.array)},AJ.title="browser",AJ.browser=!0,AJ.env={},AJ.argv=[],AJ.version="",AJ.versions={},AJ.on=_J,AJ.addListener=_J,AJ.once=_J,AJ.off=_J,AJ.removeListener=_J,AJ.removeAllListeners=_J,AJ.emit=_J,AJ.prependListener=_J,AJ.prependOnceListener=_J,AJ.listeners=function(e){return[]},AJ.binding=function(e){throw new Error("process.binding is not supported")},AJ.cwd=function(){return"/"},AJ.chdir=function(e){throw new Error("process.chdir is not supported")},AJ.umask=function(){return 0};const BJ=openapi_parser_e($J.exports),LJ=()=>mx(Tx(/^win/),["platform"],BJ),UJ=e=>{try{const t=new URL(e);return $S(":",t.protocol)}catch{return}};fE(UJ,Cx);const JJ=e=>{if(BJ.browser)return!1;const t=UJ(e);return Nx(t)||"file"===t||/^[a-zA-Z]$/.test(t)},VJ=e=>{const t=UJ(e);return"http"===t||"https"===t},GJ=(e,t)=>{const n=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],r=yx(!1,"keepFileProtocol",t),i=yx(LJ,"isWindows",t);let s=decodeURI(e);for(let e=0;e<n.length;e+=2)s=s.replace(n[e],n[e+1]);let o="file://"===s.substr(0,7).toLowerCase();return o&&(s="/"===s[7]?s.substr(8):s.substr(7),i()&&"/"===s[1]&&(s=`${s[0]}:${s.substr(1)}`),r?s=`file:///${s}`:(o=!1,s=i()?s:`/${s}`)),i()&&!o&&(s=PS("/","\\",s),":\\"===s.substr(1,2)&&(s=s[0].toUpperCase()+s.substr(1))),s},zJ=e=>{const t=e.indexOf("#");return-1!==t?e.substr(t):"#"},HJ=e=>{const t=e.indexOf("#");let n=e;return t>=0&&(n=e.substr(0,t)),n},WJ=()=>{if(BJ.browser)return HJ(globalThis.location.href);const e=BJ.cwd(),t=kE(e);return["/","\\"].includes(t)?e:e+(LJ()?"\\":"/")},XJ=(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()},YJ=e=>JJ(e)?(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let n=e;LJ()&&(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})(GJ(e)):encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),KJ=e=>JJ(e)?GJ(e):decodeURI(e),QJ=TT({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 Hx(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(tO(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}}),ZJ=QJ,eV={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},tV=nx(ix(["resolve","baseURI"]),YO(["resolve","baseURI"])),nV=e=>Wx(e)?WJ():e;class rV 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,iS(t)&&GE("cause",t)&&!GE("cause",this)){const{cause:e}=t;this.cause=e,GE("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const iV=rV;const sV=class extends iV{constructor(e="Not Implemented",t){super(e,t)}};const oV=class extends iV{};const cV=class extends oV{};const aV=class extends iV{};const uV=class extends iV{constructor(e,t){super(e,{cause:t.cause}),ml(this,"plugin",void 0),this.plugin=t.plugin}};const fV=class extends iV{};const lV=class extends oV{};const hV=class extends iV{};const pV=class extends aV{};const mV=class extends hV{},dV=async(e,t,n)=>{const r=await Promise.all(n.map(gS([e],[t])));return n.filter(((e,t)=>r[t]))},vV=async(e,t,n)=>{let r;for(const i of n)try{const n=await i[e].call(i,...t);return{plugin:i,result:n}}catch(e){r=new uV("Error while running plugin",{cause:e,plugin:i})}return Promise.reject(r)};function yV(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 bV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yV(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jV=async(e,t)=>{const n=ZJ({uri:YJ(HJ(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 dV("canRead",e,n);if(ZE(r))throw new cV(e.uri);try{const{result:t}=await vV("read",[e],r);return t}catch(t){throw new oV(`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 dV("canParse",e,n);if(ZE(r))throw new cV(e.uri);try{const{plugin:t,result:n}=await vV("parse",[e],r);return!t.allowEmpty&&n.isEmpty?Promise.reject(new aV(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new aV(`Error while parsing file "${e.uri}"`,{cause:t})}})(ZJ(bV(bV({},n),{},{data:r})),t)},gV=TT({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 sV},async parse(){throw new sV}}}),wV=gV,OV=TT({props:{name:null},methods:{canRead:()=>!1,async read(){throw new sV}}}),EV=TT(OV,{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=>VJ(e.uri),async read(){throw new sV},getHttpClient(){throw new sV}}}),xV=TT({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new sV}}}),SV=TT({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new sV}}}),PV=TT({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=[]}}),$V=TT({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=Hx(e)?e:e.uri;return Cx(this.find(vx(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),AV=async(e,t={})=>(async(e,t)=>{let n=e,r=!1;if(!lR(e)){const t=new e.constructor(e.content,e.meta.clone(),e.attributes);t.classes.push("result"),n=new OT([t]),r=!0}const i=ZJ({uri:t.resolve.baseURI,parseResult:n,mediaType:t.parse.mediaType}),s=await dV("canDereference",i,t.dereference.strategies);if(ZE(s))throw new pV(i.uri);try{const{result:e}=await vV("dereference",[i,t],s);return r?e.get(0):e}catch(e){throw new hV(`Error while dereferencing file "${i.uri}"`,{cause:e})}})(e,((e,t)=>{const n=ax(e,t);return hx(tV,nV,n)})(eV,t)),TV=TT(wV,{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 OT;if(0!==n.length){const e=new fT(n);e.classes.push("result"),r.push(e)}return r}catch(t){throw new aV(`Error parsing "${e.uri}"`,{cause:t})}}}});class RV 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}}class IV 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}}class kV extends fV{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}const FV=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),MV=e=>{const t=zJ(e);return AS("#",t)},NV=(e,t)=>{const n=(e=>{if(!FV(e))throw new kV(e);return e})(e),r=GR((e=>{var t;return iL(e)&&(null===(t=e.$anchor)||void 0===t?void 0:t.toValue())===n}),t);if(Nx(r))throw new IV(`Evaluation failed on token: "${n}"`);return r},CV=(e,t)=>{if(void 0===t.$ref)return;const n=zJ(t.$ref.toValue()),r=t.meta.get("inherited$id").toValue();return`${DO(((e,t)=>XJ(e,YJ(HJ(t)))),e,[...r,t.$ref.toValue()])}${"#"===n?"":n}`},DV=e=>{if(DV.cache.has(e))return DV.cache.get(e);const t=lB.refract(e);return DV.cache.set(e,t),t};DV.cache=new WeakMap;const qV=e=>pR(e)?DV(e):e,_V=(e,t)=>{const{cache:n}=_V,r=HJ(e),i=e=>iL(e)&&void 0!==e.$id;if(!n.has(t)){const e=VR(i,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 DO(((e,t)=>XJ(e,YJ(HJ(t)))),e,[...n,t.$id.toValue()])})(r,e)===r));if(Nx(s))throw new RV(`Evaluation failed on URI: "${e}"`);let o,c;return FV(MV(e))?(o=NV,c=MV(e)):(o=fI,c=lI(e)),o(c,s)};function BV(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 LV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BV(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}_V.cache=new WeakMap;const UV=SR[Symbol.for("nodejs.util.promisify.custom")],JV=TT({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:i}){this.indirections=n,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=r,this.options=i},methods:{toBaseURI(e){return XJ(this.reference.uri,YJ(HJ(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new lV(`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(vx(t,"uri"));const r=await jV(KJ(t),LV(LV({},this.options),{},{parse:LV(LV({},this.options.parse),{},{mediaType:"text/plain"})})),i=PV({uri:t,value:r,depth:this.reference.depth+1});return n.add(i),i},ReferenceElement(e){var t;if(!this.options.resolve.external&&eL(e))return!1;const n=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),r=this.toBaseURI(n);JE(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(n)),this.crawledElements.push(e)},PathItemElement(e){var t;if(!eR(e.$ref))return;if(!this.options.resolve.external&&KB(e))return;const n=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),r=this.toBaseURI(n);JE(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(n)),this.crawledElements.push(e)},LinkElement(e){if((eR(e.operationRef)||eR(e.operationId))&&(this.options.resolve.external||!GB(e))){if(eR(e.operationRef)&&eR(e.operationId))throw new Error("LinkElement operationRef and operationId are mutually exclusive.");if(GB(e)){var t;const n=null===(t=e.operationRef)||void 0===t?void 0:t.toValue(),r=this.toBaseURI(n);JE(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(n))}}},ExampleElement(e){var t;if(!eR(e.externalValue))return;if(!this.options.resolve.external&&eR(e.externalValue))return;if(e.hasKey("value")&&eR(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);JE(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(n))},SchemaElement(e){if(this.visited.has(e))return!1;if(!eR(e.$ref))return void this.visited.add(e);const t=this.reference.uri,n=CV(t,e),r=HJ(n),i=ZJ({uri:r}),s=ux((e=>e.canRead(i)),this.options.resolve.resolvers),o=!s,c=!s&&this.reference.uri!==r;if(this.options.resolve.external||!c){if(!JE(r,this.crawlingMap))try{this.crawlingMap[r]=s||o?this.reference:this.toReference(KJ(n))}catch(e){if(!(o&&e instanceof RV))throw e;this.crawlingMap[r]=this.toReference(KJ(n))}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=lI(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let i=fI(r,n.value.result);if(pR(i)){const t=e.meta.get("referenced-element").toValue();if(kM(i))i=cB.refract(i),i.setMetaProperty("referenced-element",t);else{i=this.namespace.getElementClass(t).refract(i)}}if(this.indirections.includes(i))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=JV({reference:n,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await UV(i,s,{keyMap:SB,nodeTypeGetter:xB}),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=lI(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let i=fI(r,n.value.result);if(pR(i)&&(i=iB.refract(i)),this.indirections.includes(i))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=JV({reference:n,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await UV(i,s,{keyMap:SB,nodeTypeGetter:xB}),await s.crawl(),this.indirections.pop()},async crawlSchemaElement(e){const t=this.reference.uri,n=CV(t,e),r=HJ(n),i=ZJ({uri:r}),s=ux((e=>e.canRead(i)),this.options.resolve.resolvers),o=!s;let c,a;this.indirections.push(e);try{if(s||o){c=this.reference;a=_V(n,qV(c.value.result))}else{c=await this.toReference(KJ(n));const e=lI(n);a=qV(fI(e,c.value.result))}}catch(e){if(!(o&&e instanceof RV))throw e;if(FV(MV(n))){c=await this.toReference(KJ(n));const e=MV(n);a=NV(e,qV(c.value.result))}else{c=await this.toReference(KJ(n));const e=lI(n);a=qV(fI(e,c.value.result))}}if(this.visited.add(e),this.indirections.includes(a))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const u=JV({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await UV(a,u,{keyMap:SB,nodeTypeGetter:xB}),await u.crawl(),this.indirections.pop()},async crawl(){await fE(HO,hS)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)ZB(e)?await this.crawlReferenceElement(e):iL(e)?await this.crawlSchemaElement(e):YB(e)&&await this.crawlPathItemElement(e)}}}),VV=JV,GV=SR[Symbol.for("nodejs.util.promisify.custom")],zV=TT(xV,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?pI.includes(e.mediaType):HB(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const n=PT(bB),r=PV({uri:e.uri,value:e.parseResult}),i=VV({reference:r,namespace:n,options:t}),s=$V();return s.add(r),await GV(s.rootRef.value,i,{keyMap:SB,nodeTypeGetter:xB}),await i.crawl(),s}}}),HV=zV,WV=e=>{if(!iR(e))return e;if(e.hasKey("$$normalized"))return e;const t=[kB({operationIdNormalizer:(e,t,n)=>Gb({operationId:e},t,n,{v2OperationIdCompatibilityMode:!1})}),PB(),$B(),AB(),FB(),MB()],n=_R(e,t,{toolboxCreator:pL,visitorOptions:{keyMap:SB,nodeTypeGetter:xB}});return n.set("$$normalized",!0),n},XV=e=>t=>{if(t?.$$normalized)return t;if(XV.cache.has(t))return t;const n=tB.refract(t),r=e(n),i=sI(r);return XV.cache.set(t,i),i};XV.cache=new WeakMap;const YV=EV.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Nv,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,i=setTimeout((()=>{n.abort()}),this.timeout),s=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",c=this.redirects>0?this.redirects:void 0;try{return(await t(vl({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,vl(vl({},n),{},{headers:new Headers(n.headers)})),n.headers.delete("Content-Type")}return n},credentials:s,redirects:o,follow:c},this.swaggerHTTPClientConfig))).text.arrayBuffer()}catch(t){throw new oV(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(i)}}}}),KV=wV.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 aV("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new OT,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 aV(`Error parsing "${e.uri}"`,{cause:t})}}}}),QV=wV.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 xv.load(e.toString(),{schema:pv}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new aV("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new OT,n=e.toString();try{const e=xv.load(n,{schema:pv});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 aV(`Error parsing "${e.uri}"`,{cause:t})}}}}),ZV=wV.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new hI(...pI.filterByFormat("generic"),...pI.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>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 aV("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new OT,n=e.toString();if(this.allowEmpty&&""===n.trim())return t;try{const e=JSON.parse(n),r=tB.refract(e,this.refractorOpts);return r.classes.push("result"),t.push(r),t}catch(t){throw new aV(`Error parsing "${e.uri}"`,{cause:t})}}}}),eG=wV.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new hI(...pI.filterByFormat("generic"),...pI.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>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 xv.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new aV("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new OT,n=e.toString();try{const e=xv.load(n,{schema:pv});if(this.allowEmpty&&void 0===e)return t;const r=tB.refract(e,this.refractorOpts);return r.classes.push("result"),t.push(r),t}catch(t){throw new aV(`Error parsing "${e.uri}"`,{cause:t})}}}});function tG(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 nG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tG(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rG=SR[Symbol.for("nodejs.util.promisify.custom")],iG=TT({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:n,options:r,ancestors:i=[]}){this.indirections=e,this.namespace=n,this.reference=t,this.options=r,this.ancestors=[...i]},methods:{toBaseURI(e){return XJ(this.reference.uri,YJ(HJ(e)))},toAncestorLineage(e){const t=new WeakSet(e.filter(ZT));return[[...this.ancestors,t],t]},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new lV(`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(vx(t,"uri"));const r=await jV(KJ(t),nG(nG({},this.options),{},{parse:nG(nG({},this.options.parse),{},{mediaType:"text/plain"})})),i=PV({uri:t,value:r,depth:this.reference.depth+1});return n.add(i),i},async ReferenceElement(e,t,n,r,i){var s,o,c,a,u;const[f,l]=this.toAncestorLineage([...i,n]);if(f.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&eL(e))return!1;const h=await this.toReference(null===(s=e.$ref)||void 0===s?void 0:s.toValue()),p=h.uri,m=XJ(p,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const d=lI(m);let v=fI(d,h.value.result);if(pR(v)){const t=e.meta.get("referenced-element").toValue();if(kM(v))v=cB.refract(v),v.setMetaProperty("referenced-element",t);else{v=this.namespace.getElementClass(t).refract(v)}}if(this.indirections.includes(v))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);l.add(e);const y=iG({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:f});v=await rG(v,y,{keyMap:SB,nodeTypeGetter:xB}),l.delete(e),this.indirections.pop(),v=v.clone(),v.setMetaProperty("ref-fields",{$ref:null===(c=e.$ref)||void 0===c?void 0:c.toValue(),description:null===(a=e.description)||void 0===a?void 0:a.toValue(),summary:null===(u=e.summary)||void 0===u?void 0:u.toValue()}),v.setMetaProperty("ref-origin",h.uri);const b=mx(Cx,["description"],e),j=mx(Cx,["summary"],e);return b&&GE("description",v)&&(v.description=e.description),j&&GE("summary",v)&&(v.summary=e.summary),this.indirections.pop(),v},async PathItemElement(e,t,n,r,i){var s,o,c;const[a,u]=this.toAncestorLineage([...i,n]);if(!eR(e.$ref))return;if(a.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&KB(e))return;const f=await this.toReference(null===(s=e.$ref)||void 0===s?void 0:s.toValue()),l=f.uri,h=XJ(l,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const p=lI(h);let m=fI(p,f.value.result);if(pR(m)&&(m=iB.refract(m)),this.indirections.includes(m))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);u.add(e);const d=iG({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:a});m=await rG(m,d,{keyMap:SB,nodeTypeGetter:xB}),u.delete(e),this.indirections.pop();const v=new iB([...m.content],m.meta.clone(),m.attributes.clone());return e.forEach(((e,t,n)=>{v.remove(t.toValue()),v.content.push(n)})),v.remove("$ref"),v.setMetaProperty("ref-fields",{$ref:null===(c=e.$ref)||void 0===c?void 0:c.toValue()}),v.setMetaProperty("ref-origin",f.uri),v},async LinkElement(e){if(!eR(e.operationRef)&&!eR(e.operationId))return;if(!this.options.resolve.external&&GB(e))return;if(eR(e.operationRef)&&eR(e.operationId))throw new Error("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(eR(e.operationRef)){var n,r,i;const s=lI(null===(n=e.operationRef)||void 0===n?void 0:n.toValue()),o=await this.toReference(null===(r=e.operationRef)||void 0===r?void 0:r.toValue());t=fI(s,o.value.result),pR(t)&&(t=nB.refract(t)),t=new nB([...t.content],t.meta.clone(),t.attributes.clone()),t.setMetaProperty("ref-origin",o.uri),null===(i=e.operationRef)||void 0===i||i.meta.set("operation",t)}else if(eR(e.operationId)){var s,o;const n=null===(s=e.operationId)||void 0===s?void 0:s.toValue();if(t=GR((e=>WB(e)&&e.operationId.equals(n)),this.reference.value.result),Nx(t))throw new Error(`OperationElement(operationId=${n}) not found.`);null===(o=e.operationId)||void 0===o||o.meta.set("operation",t)}},async ExampleElement(e){var t;if(!eR(e.externalValue))return;if(!this.options.resolve.external&&eR(e.externalValue))return;if(e.hasKey("value")&&eR(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,i){var s;const[o,c]=this.toAncestorLineage([...i,n]);if(!eR(e.$ref))return;if(o.some((t=>t.has(e))))return!1;let{reference:a}=this,{uri:u}=a;const f=CV(u,e),l=HJ(f),h=ZJ({uri:l}),p=ux((e=>e.canRead(h)),this.options.resolve.resolvers),m=!p,d=m&&u!==l;if(!this.options.resolve.external&&d)return;let v;this.indirections.push(e);try{if(p||m){v=_V(f,qV(a.value.result))}else{a=await this.toReference(KJ(f));const e=lI(f);v=qV(fI(e,a.value.result))}}catch(e){if(!(m&&e instanceof RV))throw e;if(FV(MV(f))){a=await this.toReference(KJ(f)),u=a.uri;const e=MV(f);v=NV(e,qV(a.value.result))}else{a=await this.toReference(KJ(f)),u=a.uri;const e=lI(f);v=qV(fI(e,a.value.result))}}if(this.indirections.includes(v))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);c.add(e);const y=iG({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:o});if(v=await rG(v,y,{keyMap:SB,nodeTypeGetter:xB}),c.delete(e),this.indirections.pop(),sL(v)){var b;const t=v.clone();return t.setMetaProperty("ref-fields",{$ref:null===(b=e.$ref)||void 0===b?void 0:b.toValue()}),t.setMetaProperty("ref-origin",a.uri),t}const j=new lB([...v.content],v.meta.clone(),v.attributes.clone());return e.forEach(((e,t,n)=>{j.remove(t.toValue()),j.content.push(n)})),j.remove("$ref"),j.setMetaProperty("ref-fields",{$ref:null===(s=e.$ref)||void 0===s?void 0:s.toValue()}),j.setMetaProperty("ref-origin",a.uri),j}}}),sG=iG,oG=SR[Symbol.for("nodejs.util.promisify.custom")],cG=TT(SV,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?pI.includes(e.mediaType):HB(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const n=PT(bB),r=gE($V(),t.dereference.refSet);let i;r.has(e.uri)?i=r.find(vx(e.uri,"uri")):(i=PV({uri:e.uri,value:e.parseResult}),r.add(i));const s=sG({reference:i,namespace:n,options:t}),o=await oG(r.rootRef.value,s,{keyMap:SB,nodeTypeGetter:xB});return null===t.dereference.refSet&&r.clean(),o}}}),aG=cG,uG=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,n,r)=>{if(oR(n)){const t=String(n.key.toValue());e.push(t)}else if(sR(t[r-2])){const i=t[r-2].content.indexOf(n);e.push(i)}return e}),[])},fG=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},lG=Zy("SchemaRefError",(function(e,t,n){this.originalError=n,Object.assign(this,t||{})})),{wrapError:hG}=Eb,pG=SR[Symbol.for("nodejs.util.promisify.custom")],mG=sG.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,i){try{const[t,r]=this.toAncestorLineage([...i,n]);if(dR(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&eL(e))return!1;const s=await this.toReference(e.$ref.toValue()),o=s.uri,c=XJ(o,e.$ref.toValue());this.indirections.push(e);const a=lI(c);let u=fI(a,s.value.result);if(pR(u)){const t=e.meta.get("referenced-element").toValue();if(kM(u))u=cB.refract(u),u.setMetaProperty("referenced-element",t);else{const e=this.namespace.getElementClass(t);u=e.refract(u)}}if(this.indirections.includes(u))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`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(u)))){if(VJ(o)||JJ(o)){const t=new cB({$ref:c},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}r.add(e);const f=mG({reference:s,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...uG([...i,n,e]),"$ref"]});u=await pG(u,f,{keyMap:SB,nodeTypeGetter:xB}),r.delete(e),this.indirections.pop(),u=u.clone(),u.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue(),description:e.description?.toValue(),summary:e.summary?.toValue()}),u.setMetaProperty("ref-origin",s.uri);const l=void 0!==e.description,h=void 0!==e.summary;if(l&&"description"in u&&(u.description=e.description),h&&"summary"in u&&(u.summary=e.summary),this.allowMetaPatches&&iR(u)){const e=u;if(void 0===e.get("$$ref")){const t=XJ(o,c);e.set("$$ref",t)}}return u}catch(t){const r=fG(t),s=hG(r,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:lI(e.$ref.toValue()),fullPath:this.basePath??[...uG([...i,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(s)}},async PathItemElement(e,t,n,r,i){try{const[t,r]=this.toAncestorLineage([...i,n]);if(!eR(e.$ref))return;if(dR(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&KB(e))return;const s=await this.toReference(e.$ref.toValue()),o=s.uri,c=XJ(o,e.$ref.toValue());this.indirections.push(e);const a=lI(c);let u=fI(a,s.value.result);if(pR(u)&&(u=iB.refract(u)),this.indirections.includes(u))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`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(u)))){if(VJ(o)||JJ(o)){const t=new iB({$ref:c},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}r.add(e);const f=mG({reference:s,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...uG([...i,n,e]),"$ref"]});u=await pG(u,f,{keyMap:SB,nodeTypeGetter:xB}),r.delete(e),this.indirections.pop();const l=new iB([...u.content],u.meta.clone(),u.attributes.clone());if(e.forEach(((e,t,n)=>{l.remove(t.toValue()),l.content.push(n)})),l.remove("$ref"),l.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),l.setMetaProperty("ref-origin",s.uri),this.allowMetaPatches&&void 0===l.get("$$ref")){const e=XJ(o,c);l.set("$$ref",e)}return l}catch(t){const r=fG(t),s=hG(r,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:lI(e.$ref.toValue()),fullPath:this.basePath??[...uG([...i,n,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(s)}},async SchemaElement(e,t,n,r,i){try{const[t,r]=this.toAncestorLineage([...i,n]);if(!eR(e.$ref))return;if(dR(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;let{reference:s}=this,{uri:o}=s;const c=CV(o,e),a=HJ(c),u=ZJ({uri:a}),f=!this.options.resolve.resolvers.some((e=>e.canRead(u))),l=!f,h=l&&o!==a;if(!this.options.resolve.external&&h)return;let p;this.indirections.push(e);try{if(f||l){p=_V(c,qV(s.value.result))}else{s=await this.toReference(KJ(c)),o=s.uri;const e=lI(c);p=qV(fI(e,s.value.result))}}catch(e){if(!(l&&e instanceof RV))throw e;if(FV(MV(c))){s=await this.toReference(KJ(c)),o=s.uri;const e=MV(c);p=NV(e,qV(s.value.result))}else{s=await this.toReference(KJ(c)),o=s.uri;const e=lI(c);p=qV(fI(e,s.value.result))}}if(this.indirections.includes(p))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new mV(`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(p)))){if(VJ(o)||JJ(o)){const t=XJ(o,c),n=new lB({$ref:t},e.meta.clone(),e.attributes.clone());return n.get("$ref").classes.push("cycle"),n}return!1}}r.add(e);const m=mG({reference:s,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...uG([...i,n,e]),"$ref"]});if(p=await pG(p,m,{keyMap:SB,nodeTypeGetter:xB}),r.delete(e),this.indirections.pop(),sL(p)){const t=p.clone();return t.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),t.setMetaProperty("ref-origin",o),t}const d=new lB([...p.content],p.meta.clone(),p.attributes.clone());if(e.forEach(((e,t,n)=>{d.remove(t.toValue()),d.content.push(n)})),d.remove("$ref"),d.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),d.setMetaProperty("ref-origin",o),this.allowMetaPatches&&void 0===d.get("$$ref")){const e=XJ(o,c);d.set("$$ref",e)}return d}catch(t){const r=fG(t),s=new lG(`Could not resolve reference: ${r.message}`,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),fullPath:this.basePath??[...uG([...i,n,e]),"$ref"]},r);return void this.options.dereference.dereferenceOpts?.errors?.push?.(s)}},async LinkElement(){},async ExampleElement(e,t,n,r,i){try{return await sG.compose.methods.ExampleElement.call(this,e,t,n,r,i)}catch(t){const r=fG(t),s=hG(r,{baseDoc:this.reference.uri,externalValue:e.externalValue?.toValue(),fullPath:this.basePath??[...uG([...i,n,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}}}),dG=aG.compose.bind(),vG=dG({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,i){const s=null===this.macroOperation?null:sI(this.macroOperation),o=sI(e);try{const t=this.parameterMacro(s,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=uG([...i,n]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),yG=dG({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,i){void 0!==e.properties&&iR(e.properties)&&e.properties.forEach((t=>{if(iR(t))try{const e=this.modelPropertyMacro(sI(t));t.set("default",e)}catch(t){const r=new Error(t,{cause:t});r.fullPath=[...uG([...i,n,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(r)}}))}}}}),bG=dG({init(e){let{options:t}=e;this.options=t},props:{options:null,SchemaElement:{leave(e,t,n,r,i){if(void 0===e.allOf)return;if(!sR(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...uG([...i,n,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new lB(e.content.filter((e=>"allOf"!==e.key.toValue())),e.meta.clone(),e.attributes.clone());if(!e.allOf.content.every(iL)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...uG([...i,n,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const s=rI.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}}}}),jG=SR[Symbol.for("nodejs.util.promisify.custom")],gG=aG.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:i=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=i,this.ancestors=[...s]},methods:{async dereference(e,t){const n=[],r=PT(bB),i=t.dereference.refSet??$V();let s;i.has(e.uri)?s=i.find((t=>t.uri===e.uri)):(s=PV({uri:e.uri,value:e.parseResult}),i.add(s));const o=mG({reference:s,namespace:r,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(n.push(o),"function"==typeof this.parameterMacro){const e=vG({parameterMacro:this.parameterMacro,options:t});n.push(e)}if("function"==typeof this.modelPropertyMacro){const e=yG({modelPropertyMacro:this.modelPropertyMacro,options:t});n.push(e)}if("strict"!==this.mode){const e=bG({options:t});n.push(e)}const c=GT(n,{nodeTypeGetter:xB}),a=await jG(i.rootRef.value,c,{keyMap:SB,nodeTypeGetter:xB});return null===t.dereference.refSet&&i.clean(),a}}}),wG=async e=>{const{spec:t,timeout:n,redirects:r,requestInterceptor:i,responseInterceptor:s,pathDiscriminator:o=[],allowMetaPatches:c=!1,useCircularStructures:a=!1,skipNormalization:u=!1,parameterMacro:f=null,modelPropertyMacro:l=null,mode:h="non-strict"}=e;try{const{cache:m}=wG,d=VJ(WJ())?WJ():"https://smartbear.com/",v=Kv(e),y=XJ(d,v);let b;m.has(t)?b=m.get(t):(b=tB.refract(t),b.classes.push("result"),m.set(t,b));const j=new OT([b]),g=0===(p=o).length?"":`/${p.map(aI).join("/")}`,w=""===g?"":`#${g}`,O=fI(g,b),E=PV({uri:y,value:j}),x=$V({refs:[E]});""!==g&&(x.rootRef=null);const S=[new WeakSet([O])],P=[],$=((e,t,n)=>WR({element:n}).transclude(e,t))(O,await AV(O,{resolve:{baseURI:`${y}${w}`,resolvers:[YV({timeout:n||1e4,redirects:r||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:s}},strategies:[HV()]},parse:{mediaType:pI.latest(),parsers:[ZV({allowEmpty:!1,sourceMap:!1}),eG({allowEmpty:!1,sourceMap:!1}),KV({allowEmpty:!1,sourceMap:!1}),QV({allowEmpty:!1,sourceMap:!1}),TV({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[gG({allowMetaPatches:c,useCircularStructures:a,parameterMacro:f,modelPropertyMacro:l,mode:h,ancestors:S})],refSet:x,dereferenceOpts:{errors:P}}}),b),A=u?$:WV($);return{spec:sI(A),errors:P}}catch(e){if(e instanceof cI||e instanceof oI)return{spec:null,errors:[]};throw e}var p};wG.cache=new WeakMap;const OG={name:"openapi-3-1-apidom",match(e){let{spec:t}=e;return Yb(t)},normalize(e){let{spec:t}=e;return XV(WV)(t)},resolve:async e=>wG(e)};function EG(e,t,n){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:r}=e;for(const i in r)for(const s in r[i]){if("PARAMETERS"===s.toUpperCase())continue;const o=r[i][s];if(!o||"object"!=typeof o)continue;const c={spec:e,pathName:i,method:s.toUpperCase(),operation:o},a=t(c);if(n&&a)return c}}function xG(e,t){return`${t.toLowerCase()}-${e}`}function SG(e,t){return e&&e.paths?function(e,t){return EG(e,t,!0)||null}(e,(e=>{let{pathName:n,method:r,operation:i}=e;if(!i||"object"!=typeof i)return!1;const s=i.operationId;return[Gb(i,n,r),xG(n,r),s].some((e=>e&&e===t))})):null}const PG=()=>null,$G={mapTagOperations:function(e){let{spec:t,cb:n=PG,defaultTag:r="default",v2OperationIdCompatibilityMode:i}=e;const s={},o={};return EG(t,(e=>{let{pathName:c,method:a,operation:u}=e;var f;(u.tags?(f=u.tags,Array.isArray(f)?f:[f]):[r]).forEach((e=>{if("string"!=typeof e)return;o[e]=o[e]||{};const r=o[e],f=Gb(u,c,a,{v2OperationIdCompatibilityMode:i}),l=n({spec:t,pathName:c,method:a,operation:u,operationId:f});if(s[f])s[f]+=1,r[`${f}${s[f]}`]=l;else if(void 0!==r[f]){const e=s[f]||1;s[f]=e+1,r[`${f}${s[f]}`]=l;const t=r[f];delete r[f],r[`${f}${e}`]=t}else r[f]=l}))})),o},makeExecute:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{pathName:n,method:r,operationId:i}=t;return function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:o,responseInterceptor:c,userFetch:a}=e;return e.execute(vl({spec:e.spec,requestInterceptor:o,responseInterceptor:c,userFetch:a,pathName:n,method:r,parameters:t,operationId:i},s))}}}};var AG={
|
|
4270
|
+
*/var ar=new WeakMap,ur=function(e){this.observers=new Map,this.obj=e},lr=function(e,t){this.callback=e,this.observer=t};function hr(e,t){void 0===t&&(t=!1);var r=ar.get(e.object);fr(r.value,e.object,e.patches,"",t),e.patches.length&&nr(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function fr(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Jt(t),o=Jt(e),c=!1,a=o.length-1;a>=0;a--){var u=e[h=o[a]];if(!Ut(t,h)||void 0===t[h]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+Ht(h),value:Vt(u)}),r.push({op:"remove",path:n+"/"+Ht(h)}),c=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var l=t[h];"object"==typeof u&&null!=u&&"object"==typeof l&&null!=l&&Array.isArray(u)===Array.isArray(l)?fr(u,l,r,n+"/"+Ht(h),s):u!==l&&(s&&r.push({op:"test",path:n+"/"+Ht(h),value:Vt(u)}),r.push({op:"replace",path:n+"/"+Ht(h),value:Vt(l)}))}}if(c||i.length!=o.length)for(a=0;a<i.length;a++){var h;Ut(e,h=i[a])||void 0===t[h]||r.push({op:"add",path:n+"/"+Ht(h),value:Vt(t[h])})}}}const pr=Object.freeze(Object.defineProperty({__proto__:null,compare:function(e,t,r){void 0===r&&(r=!1);var n=[];return fr(e,t,n,"",r),n},generate:hr,observe:function(e,t){var r,n=function(e){return ar.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new ur(e),ar.set(e,n);if(r)return r;if(r={},n.value=Vt(e),t){r.callback=t,r.next=null;var i=function(){hr(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){hr(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},n.observers.set(t,new lr(t,r)),r},unobserve:function(e,t){t.unobserve()}},Symbol.toStringTag,{value:"Module"}));function dr(e){return e&&e.t&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Object.assign({},cr,pr,{JsonPatchError:Yt,deepClone:Vt,escapePathComponent:Ht,unescapePathComponent:zt});var mr=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===vr}(e)}(e)};var vr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function yr(e,t){return!1!==t.clone&&t.isMergeableObject(e)?jr((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function br(e,t,r){return e.concat(t).map((function(e){return yr(e,r)}))}function gr(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 wr(e,t){try{return t in e}catch(e){return!1}}function xr(e,t,r){var n={};return r.isMergeableObject(e)&&gr(e).forEach((function(t){n[t]=yr(e[t],r)})),gr(t).forEach((function(s){(function(e,t){return wr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(wr(e,s)&&r.isMergeableObject(t[s])?n[s]=function(e,t){if(!t.customMerge)return jr;var r=t.customMerge(e);return"function"==typeof r?r:jr}(s,r)(e[s],t[s],r):n[s]=yr(t[s],r))})),n}function jr(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||br,r.isMergeableObject=r.isMergeableObject||mr,r.cloneUnlessOtherwiseSpecified=yr;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):xr(e,t,r):yr(t,r)}jr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return jr(e,r,t)}),{})};const Er=dr(jr),$r={add:function(e,t){return{op:"add",path:e,value:t}},replace:Sr,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,r){if(r=r||{},"merge"===(t={...t,path:t.path&&Or(t.path)}).op){const r=qr(e,t.path);Object.assign(r,t.value),nr(e,[Sr(t.path,r)])}else if("mergeDeep"===t.op){const r=qr(e,t.path),n=Er(r,t.value);e=nr(e,[Sr(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&Rr(t.value)){const r=Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${Or(r)}`,value:t.value[r]}),e)),[]);nr(e,r)}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Mr(t)&&(Array.isArray(t.value)||Rr(t.value))&&(n={...n,...t.meta}),e=n}else if(nr(e,[t]),r.allowMetaPatches&&t.meta&&Mr(t)&&(Array.isArray(t.value)||Rr(t.value))){const r={...qr(e,t.path),...t.meta};nr(e,[Sr(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Fr,fullyNormalizeArray:function(e){return Ir(Fr(kr(e)))},normalizeArray:kr,isPromise:function(e){return Rr(e)&&Dr(e.then)},forEachNew:function(e,t){try{return Ar(e,Tr,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Ar(e,Pr,t)}catch(e){return e}},isJsonPatch:_r,isContextPatch:function(e){return Nr(e)&&"context"===e.type},isPatch:Nr,isMutation:Cr,isAdditiveMutation:Mr,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Dr,isObject:Rr,isError:function(e){return e instanceof Error}};function Or(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Sr(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Ar(e,t,r){return Ir(Fr(e.filter(Mr).map((e=>t(e.value,r,e.path)))||[]))}function Pr(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>Pr(e,t,r.concat(n)))):Rr(e)?Object.keys(e).map((n=>Pr(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function Tr(e,t,r){let n=[];if((r=r||[]).length>0){const s=t(e,r[r.length-1],r);s&&(n=n.concat(s))}if(Array.isArray(e)){const s=e.map(((e,n)=>Tr(e,t,r.concat(n))));s&&(n=n.concat(s))}else if(Rr(e)){const s=Object.keys(e).map((n=>Tr(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=Fr(n),n}function kr(e){return Array.isArray(e)?e:[e]}function Fr(e){return[].concat(...e.map((e=>Array.isArray(e)?Fr(e):e)))}function Ir(e){return e.filter((e=>void 0!==e))}function Rr(e){return e&&"object"==typeof e}function Dr(e){return e&&"function"==typeof e}function _r(e){if(Nr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Cr(e){return _r(e)||Nr(e)&&"mutation"===e.type}function Mr(e){return Cr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Nr(e){return e&&"object"==typeof e}function qr(e,t){try{return tr(e,t)}catch(e){return console.error(e),{}}}var Br=function(e){return e&&e.Math===Math&&e},Lr=Br("object"==typeof globalThis&&globalThis)||Br("object"==typeof window&&window)||Br("object"==typeof self&&self)||Br("object"==typeof global&&global)||Br(!1)||function(){return this}()||Function("return this")(),Ur=function(e){try{return!!e()}catch(e){return!0}},Jr=!Ur((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Vr=Jr,Gr=Function.prototype,Hr=Gr.apply,zr=Gr.call,Xr="object"==typeof Reflect&&Reflect.apply||(Vr?zr.bind(Hr):function(){return zr.apply(Hr,arguments)}),Wr=Jr,Yr=Function.prototype,Zr=Yr.call,Kr=Wr&&Yr.bind.bind(Zr,Zr),Qr=Wr?Kr:function(e){return function(){return Zr.apply(e,arguments)}},en=Qr,tn=en({}.toString),rn=en("".slice),nn=function(e){return rn(tn(e),8,-1)},sn=nn,on=Qr,cn=function(e){if("Function"===sn(e))return on(e)},an="object"==typeof document&&document.all,un=void 0===an&&void 0!==an?function(e){return"function"==typeof e||e===an}:function(e){return"function"==typeof e},ln={},hn=!Ur((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),fn=Jr,pn=Function.prototype.call,dn=fn?pn.bind(pn):function(){return pn.apply(pn,arguments)},mn={},vn={}.propertyIsEnumerable,yn=Object.getOwnPropertyDescriptor,bn=yn&&!vn.call({1:2},1);mn.f=bn?function(e){var t=yn(this,e);return!!t&&t.enumerable}:vn;var gn,wn,xn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},jn=Ur,En=nn,$n=Object,On=Qr("".split),Sn=jn((function(){return!$n("z").propertyIsEnumerable(0)}))?function(e){return"String"===En(e)?On(e,""):$n(e)}:$n,An=function(e){return null==e},Pn=An,Tn=TypeError,kn=function(e){if(Pn(e))throw new Tn("Can't call method on "+e);return e},Fn=Sn,In=kn,Rn=function(e){return Fn(In(e))},Dn=un,_n=function(e){return"object"==typeof e?null!==e:Dn(e)},Cn={},Mn=Cn,Nn=Lr,qn=un,Bn=function(e){return qn(e)?e:void 0},Ln=function(e,t){return arguments.length<2?Bn(Mn[e])||Bn(Nn[e]):Mn[e]&&Mn[e][t]||Nn[e]&&Nn[e][t]},Un=Qr({}.isPrototypeOf),Jn=Lr.navigator,Vn=Jn&&Jn.userAgent,Gn=Lr,Hn=Vn?String(Vn):"",zn=Gn.process,Xn=Gn.Deno,Wn=zn&&zn.versions||Xn&&Xn.version,Yn=Wn&&Wn.v8;Yn&&(wn=(gn=Yn.split("."))[0]>0&&gn[0]<4?1:+(gn[0]+gn[1])),!wn&&Hn&&(!(gn=Hn.match(/Edge\/(\d+)/))||gn[1]>=74)&&(gn=Hn.match(/Chrome\/(\d+)/))&&(wn=+gn[1]);var Zn=wn,Kn=Ur,Qn=Lr.String,es=!!Object.getOwnPropertySymbols&&!Kn((function(){var e=Symbol("symbol detection");return!Qn(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Zn&&Zn<41})),ts=es&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rs=Ln,ns=un,ss=Un,is=Object,os=ts?function(e){return"symbol"==typeof e}:function(e){var t=rs("Symbol");return ns(t)&&ss(t.prototype,is(e))},cs=String,as=function(e){try{return cs(e)}catch(e){return"Object"}},us=un,ls=as,hs=TypeError,fs=function(e){if(us(e))return e;throw new hs(ls(e)+" is not a function")},ps=fs,ds=An,ms=function(e,t){var r=e[t];return ds(r)?void 0:ps(r)},vs=dn,ys=un,bs=_n,gs=TypeError,ws={exports:{}},xs=Lr,js=Object.defineProperty,Es=Lr,$s=function(e,t){try{js(xs,e,{value:t,configurable:!0,writable:!0})}catch(r){xs[e]=t}return t},Os=ws.exports=Es["o"]||$s("__core-js_shared__",{});(Os.versions||(Os.versions=[])).push({version:"3.38.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ss=ws.exports,As=Ss,Ps=function(e,t){return As[e]||(As[e]=t||{})},Ts=kn,ks=Object,Fs=function(e){return ks(Ts(e))},Is=Fs,Rs=Qr({}.hasOwnProperty),Ds=Object.hasOwn||function(e,t){return Rs(Is(e),t)},_s=Qr,Cs=0,Ms=Math.random(),Ns=_s(1..toString),qs=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ns(++Cs+Ms,36)},Bs=Ps,Ls=Ds,Us=qs,Js=es,Vs=ts,Gs=Lr.Symbol,Hs=Bs("wks"),zs=Vs?Gs.for||Gs:Gs&&Gs.withoutSetter||Us,Xs=function(e){return Ls(Hs,e)||(Hs[e]=Js&&Ls(Gs,e)?Gs[e]:zs("Symbol."+e)),Hs[e]},Ws=dn,Ys=_n,Zs=os,Ks=ms,Qs=function(e,t){var r,n;if("string"===t&&ys(r=e.toString)&&!bs(n=vs(r,e)))return n;if(ys(r=e.valueOf)&&!bs(n=vs(r,e)))return n;if("string"!==t&&ys(r=e.toString)&&!bs(n=vs(r,e)))return n;throw new gs("Can't convert object to primitive value")},ei=TypeError,ti=Xs("toPrimitive"),ri=function(e,t){if(!Ys(e)||Zs(e))return e;var r,n=Ks(e,ti);if(n){if(void 0===t&&(t="default"),r=Ws(n,e,t),!Ys(r)||Zs(r))return r;throw new ei("Can't convert object to primitive value")}return void 0===t&&(t="number"),Qs(e,t)},ni=os,openapi_parser_si=function(e){var t=ri(e,"string");return ni(t)?t:t+""},ii=_n,oi=Lr.document,ci=ii(oi)&&ii(oi.createElement),ai=function(e){return ci?oi.createElement(e):{}},ui=ai,li=!hn&&!Ur((function(){return 7!==Object.defineProperty(ui("div"),"a",{get:function(){return 7}}).a})),hi=hn,fi=dn,pi=mn,di=xn,mi=Rn,vi=openapi_parser_si,yi=Ds,bi=li,gi=Object.getOwnPropertyDescriptor;ln.f=hi?gi:function(e,t){if(e=mi(e),t=vi(t),bi)try{return gi(e,t)}catch(e){}if(yi(e,t))return di(!fi(pi.f,e,t),e[t])};var wi=Ur,xi=un,ji=/#|\.prototype\./,Ei=function(e,t){var r=Oi[$i(e)];return r===Ai||r!==Si&&(xi(t)?wi(t):!!t)},$i=Ei.normalize=function(e){return String(e).replace(ji,".").toLowerCase()},Oi=Ei.data={},Si=Ei.NATIVE="N",Ai=Ei.POLYFILL="P",Pi=Ei,Ti=fs,ki=Jr,Fi=cn(cn.bind),Ii=function(e,t){return Ti(e),void 0===t?e:ki?Fi(e,t):function(){return e.apply(t,arguments)}},Ri={},Di=hn&&Ur((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),_i=_n,Ci=String,Mi=TypeError,Ni=function(e){if(_i(e))return e;throw new Mi(Ci(e)+" is not an object")},qi=hn,Bi=li,Li=Di,Ui=Ni,Ji=openapi_parser_si,Vi=TypeError,Gi=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor;Ri.f=qi?Li?function(e,t,r){if(Ui(e),t=Ji(t),Ui(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Hi(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Gi(e,t,r)}:Gi:function(e,t,r){if(Ui(e),t=Ji(t),Ui(r),Bi)try{return Gi(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Vi("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var zi=Ri,Xi=xn,Wi=hn?function(e,t,r){return zi.f(e,t,Xi(1,r))}:function(e,t,r){return e[t]=r,e},Yi=Lr,Zi=Xr,Ki=cn,Qi=un,eo=ln.f,to=Pi,ro=Cn,no=Ii,so=Wi,io=Ds,oo=function(e){var t=function(r,n,s){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,s)}return Zi(e,this,arguments)};return t.prototype=e.prototype,t},co=function(e,t){var r,n,s,i,o,c,a,u,l,h=e.target,f=e.global,p=e.stat,d=e.proto,m=f?Yi:p?Yi[h]:Yi[h]&&Yi[h].prototype,v=f?ro:ro[h]||so(ro,h,{})[h],y=v.prototype;for(i in t)n=!(r=to(f?i:h+(p?".":"#")+i,e.forced))&&m&&io(m,i),c=v[i],n&&(a=e.dontCallGetSet?(l=eo(m,i))&&l.value:m[i]),o=n&&a?a:t[i],(r||d||typeof c!=typeof o)&&(u=e.bind&&n?no(o,Yi):e.wrap&&n?oo(o):d&&Qi(o)?Ki(o):o,(e.sham||o&&o.sham||c&&c.sham)&&so(u,"sham",!0),so(v,i,u),d&&(io(ro,s=h+"Prototype")||so(ro,s,{}),so(ro[s],i,o),e.real&&y&&(r||!y[i])&&so(y,i,o)))},ao=qs,uo=Ps("keys"),lo=function(e){return uo[e]||(uo[e]=ao(e))},ho=!Ur((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),fo=Ds,po=un,mo=Fs,vo=ho,yo=lo("IE_PROTO"),bo=Object,go=bo.prototype,wo=vo?bo.getPrototypeOf:function(e){var t=mo(e);if(fo(t,yo))return t[yo];var r=t.constructor;return po(r)&&t instanceof r?r.prototype:t instanceof bo?go:null},xo=Qr,jo=fs,Eo=_n,$o=function(e){return Eo(e)||null===e},Oo=String,So=TypeError,Ao=function(e,t,r){try{return xo(jo(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Po=_n,To=kn,ko=function(e){if($o(e))return e;throw new So("Can't set "+Oo(e)+" as a prototype")},Fo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ao(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return To(r),ko(n),Po(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Io={},Ro=Math.ceil,Do=Math.floor,_o=Math.trunc||function(e){var t=+e;return(t>0?Do:Ro)(t)},Co=function(e){var t=+e;return t!=t||0===t?0:_o(t)},Mo=Co,No=Math.max,qo=Math.min,Bo=Co,Lo=Math.min,Uo=function(e){var t=Bo(e);return t>0?Lo(t,9007199254740991):0},Jo=function(e){return Uo(e.length)},Vo=Rn,Go=function(e,t){var r=Mo(e);return r<0?No(r+t,0):qo(r,t)},Ho=Jo,zo=function(e){return function(t,r,n){var s=Vo(t),i=Ho(s);if(0===i)return!e&&-1;var o,c=Go(n,i);if(e&&r!=r){for(;i>c;)if((o=s[c++])!=o)return!0}else for(;i>c;c++)if((e||c in s)&&s[c]===r)return e||c||0;return!e&&-1}},Xo={includes:zo(!0),indexOf:zo(!1)},Wo={},Yo=Ds,Zo=Rn,Ko=Xo.indexOf,Qo=Wo,ec=Qr([].push),tc=function(e,t){var r,n=Zo(e),s=0,i=[];for(r in n)!Yo(Qo,r)&&Yo(n,r)&&ec(i,r);for(;t.length>s;)Yo(n,r=t[s++])&&(~Ko(i,r)||ec(i,r));return i},rc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nc=tc,sc=rc.concat("length","prototype");Io.f=Object.getOwnPropertyNames||function(e){return nc(e,sc)};var ic={};ic.f=Object.getOwnPropertySymbols;var oc=Ln,cc=Io,ac=ic,uc=Ni,lc=Qr([].concat),hc=oc("Reflect","ownKeys")||function(e){var t=cc.f(uc(e)),r=ac.f;return r?lc(t,r(e)):t},fc=Ds,pc=hc,dc=ln,mc=Ri,vc=function(e,t,r){for(var n=pc(t),s=mc.f,i=dc.f,o=0;o<n.length;o++){var c=n[o];fc(e,c)||r&&fc(r,c)||s(e,c,i(t,c))}},yc={},bc=tc,gc=rc,wc=Object.keys||function(e){return bc(e,gc)},xc=hn,jc=Di,Ec=Ri,$c=Ni,Oc=Rn,Sc=wc;yc.f=xc&&!jc?Object.defineProperties:function(e,t){$c(e);for(var r,n=Oc(t),s=Sc(t),i=s.length,o=0;i>o;)Ec.f(e,r=s[o++],n[r]);return e};var Ac,Pc=Ln("document","documentElement"),Tc=Ni,kc=yc,Fc=rc,Ic=Wo,Rc=Pc,Dc=ai,_c=lo("IE_PROTO"),Cc=function(){},Mc=function(e){return"<script>"+e+"<\/script>"},Nc=function(e){e.write(Mc("")),e.close();var t=e.parentWindow.Object;return e=null,t},qc=function(){try{Ac=new ActiveXObject("htmlfile")}catch(e){}var e,t;qc="undefined"!=typeof document?document.domain&&Ac?Nc(Ac):((t=Dc("iframe")).style.display="none",Rc.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Mc("document.F=Object")),e.close(),e.F):Nc(Ac);for(var r=Fc.length;r--;)delete qc.prototype[Fc[r]];return qc()};Ic[_c]=!0;var Bc=Object.create||function(e,t){var r;return null!==e?(Cc.prototype=Tc(e),r=new Cc,Cc.prototype=null,r[_c]=e):r=qc(),void 0===t?r:kc.f(r,t)},Lc=_n,Uc=Wi,Jc=function(e,t){Lc(t)&&"cause"in t&&Uc(e,"cause",t.cause)},Vc=Error,Gc=Qr("".replace),Hc=String(new Vc("zxcasd").stack),zc=/\n\s*at [^:]*:[^\n]*/,Xc=zc.test(Hc),Wc=xn,Yc=!Ur((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Wc(1,7)),7!==e.stack)})),Zc=Wi,Kc=function(e,t){if(Xc&&"string"==typeof e&&!Vc.prepareStackTrace)for(;t--;)e=Gc(e,zc,"");return e},Qc=Yc,ea=Error.captureStackTrace,ta=function(e,t,r,n){Qc&&(ea?ea(e,t):Zc(e,"stack",Kc(r,n)))},ra={},na=ra,sa=Xs("iterator"),ia=Array.prototype,oa={};oa[Xs("toStringTag")]="z";var ca="[object z]"===String(oa),aa=ca,ua=un,la=nn,ha=Xs("toStringTag"),fa=Object,pa="Arguments"===la(function(){return arguments}()),da=aa?la:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=fa(e),ha))?r:pa?la(t):"Object"===(n=la(t))&&ua(t.callee)?"Arguments":n},ma=da,va=ms,ya=An,ba=ra,ga=Xs("iterator"),wa=function(e){if(!ya(e))return va(e,ga)||va(e,"@@iterator")||ba[ma(e)]},xa=dn,ja=fs,Ea=Ni,$a=as,Oa=wa,Sa=TypeError,Aa=dn,Pa=Ni,Ta=ms,ka=Ii,Fa=dn,Ia=Ni,Ra=as,Da=function(e){return void 0!==e&&(na.Array===e||ia[sa]===e)},_a=Jo,Ca=Un,Ma=function(e,t){var r=arguments.length<2?Oa(e):t;if(ja(r))return Ea(xa(r,e));throw new Sa($a(e)+" is not iterable")},Na=wa,qa=function(e,t,r){var n,s;Pa(e);try{if(!(n=Ta(e,"return"))){if("throw"===t)throw r;return r}n=Aa(n,e)}catch(e){s=!0,n=e}if("throw"===t)throw r;if(s)throw n;return Pa(n),r},Ba=TypeError,La=function(e,t){this.stopped=e,this.result=t},Ua=La.prototype,Ja=da,Va=String,Ga=function(e){if("Symbol"===Ja(e))throw new TypeError("Cannot convert a Symbol value to a string");return Va(e)},Ha=Ga,za=function(e,t){return void 0===e?arguments.length<2?"":t:Ha(e)},Xa=co,Wa=Un,Ya=wo,Za=Fo,Ka=vc,Qa=Bc,eu=Wi,tu=xn,ru=Jc,nu=ta,su=function(e,t,r){var n,s,i,o,c,a,u,l=r&&r.that,h=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),m=ka(t,l),v=function(e){return n&&qa(n,"normal",e),new La(!0,e)},y=function(e){return h?(Ia(e),d?m(e[0],e[1],v):m(e[0],e[1])):d?m(e,v):m(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(s=Na(e)))throw new Ba(Ra(e)+" is not iterable");if(Da(s)){for(i=0,o=_a(e);o>i;i++)if((c=y(e[i]))&&Ca(Ua,c))return c;return new La(!1)}n=Ma(e,s)}for(a=f?e.next:n.next;!(u=Fa(a,n)).done;){try{c=y(u.value)}catch(e){qa(n,"throw",e)}if("object"==typeof c&&c&&Ca(Ua,c))return c}return new La(!1)},iu=za,ou=Xs("toStringTag"),cu=Error,au=[].push,uu=function(e,t){var r,n=Wa(lu,this);Za?r=Za(new cu,n?Ya(this):lu):(r=n?this:Qa(lu),eu(r,ou,"Error")),void 0!==t&&eu(r,"message",iu(t)),nu(r,uu,r.stack,1),arguments.length>2&&ru(r,arguments[2]);var s=[];return su(e,au,{that:s}),eu(r,"errors",s),r};Za?Za(uu,cu):Ka(uu,cu,{name:!0});var lu=uu.prototype=Qa(cu.prototype,{constructor:tu(1,uu),message:tu(1,""),name:tu(1,"AggregateError")});Xa({global:!0,constructor:!0,arity:2},{AggregateError:uu});var hu=Ri.f,fu=un,pu=_n,du=Fo,mu=Ln,vu=Wi,yu=Un,bu=Fo,gu=vc,wu=function(e,t,r){r in e||hu(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},xu=function(e,t,r){var n,s;return du&&fu(n=t.constructor)&&n!==r&&pu(s=n.prototype)&&s!==r.prototype&&du(e,s),e},ju=za,Eu=Jc,$u=ta,Ou=hn,Su=function(e,t,r,n){var s="stackTraceLimit",i=n?2:1,o=e.split("."),c=o[o.length-1],a=mu.apply(null,o);if(a){var u=a.prototype;if(!r)return a;var l=mu("Error"),h=t((function(e,t){var r=ju(n?t:e,void 0),s=n?new a(e):new a;return void 0!==r&&vu(s,"message",r),$u(s,h,s.stack,2),this&&yu(u,this)&&xu(s,this,h),arguments.length>i&&Eu(s,arguments[i]),s}));return h.prototype=u,"Error"!==c?bu?bu(h,l):gu(h,l,{name:!0}):Ou&&s in a&&(wu(h,a,s),wu(h,a,"prepareStackTrace")),gu(h,a),h}},Au=co,Pu=Xr,Tu=Su,ku=Lr.WebAssembly,Fu=7!==new Error("e",{cause:7}).cause,Iu=function(e,t){var r={};r[e]=Tu(e,t,Fu),Au({global:!0,constructor:!0,arity:1,forced:Fu},r)},Ru=function(e,t){if(ku&&ku[e]){var r={};r[e]=Tu("WebAssembly."+e,t,Fu),Au({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:Fu},r)}};Iu("Error",(function(e){return function(t){return Pu(e,this,arguments)}})),Iu("EvalError",(function(e){return function(t){return Pu(e,this,arguments)}})),Iu("RangeError",(function(e){return function(t){return Pu(e,this,arguments)}})),Iu("ReferenceError",(function(e){return function(t){return Pu(e,this,arguments)}})),Iu("SyntaxError",(function(e){return function(t){return Pu(e,this,arguments)}})),Iu("TypeError",(function(e){return function(t){return Pu(e,this,arguments)}})),Iu("URIError",(function(e){return function(t){return Pu(e,this,arguments)}})),Ru("CompileError",(function(e){return function(t){return Pu(e,this,arguments)}})),Ru("LinkError",(function(e){return function(t){return Pu(e,this,arguments)}})),Ru("RuntimeError",(function(e){return function(t){return Pu(e,this,arguments)}}));var Du=co,_u=Xr,Cu=Ur,Mu=Su,Nu=Ln("AggregateError"),qu=!Cu((function(){return 1!==Nu([1]).errors[0]}))&&Cu((function(){return 7!==Nu([1],"AggregateError",{cause:7}).cause}));Du({global:!0,constructor:!0,arity:2,forced:qu},{AggregateError:Mu("AggregateError",(function(e){return function(t,r){return _u(e,this,arguments)}}),qu,!0)});var Bu,Lu,Uu,Ju=un,Vu=Lr.WeakMap,Gu=Ju(Vu)&&/native code/.test(String(Vu)),Hu=Lr,zu=_n,Xu=Wi,Wu=Ds,Yu=Ss,Zu=lo,Ku=Wo,Qu=Hu.TypeError,el=Hu.WeakMap;if(Gu||Yu.state){var tl=Yu.state||(Yu.state=new el);tl.get=tl.get,tl.has=tl.has,tl.set=tl.set,Bu=function(e,t){if(tl.has(e))throw new Qu("Object already initialized");return t.facade=e,tl.set(e,t),t},Lu=function(e){return tl.get(e)||{}},Uu=function(e){return tl.has(e)}}else{var rl=Zu("state");Ku[rl]=!0,Bu=function(e,t){if(Wu(e,rl))throw new Qu("Object already initialized");return t.facade=e,Xu(e,rl,t),t},Lu=function(e){return Wu(e,rl)?e[rl]:{}},Uu=function(e){return Wu(e,rl)}}var nl,sl,il,ol={set:Bu,get:Lu,has:Uu,enforce:function(e){return Uu(e)?Lu(e):Bu(e,{})},getterFor:function(e){return function(t){var r;if(!zu(t)||(r=Lu(t)).type!==e)throw new Qu("Incompatible receiver, "+e+" required");return r}}},cl=hn,al=Ds,ul=Function.prototype,ll=cl&&Object.getOwnPropertyDescriptor,hl=al(ul,"name"),fl={EXISTS:hl,PROPER:hl&&"something"===function(){}.name,CONFIGURABLE:hl&&(!cl||cl&&ll(ul,"name").configurable)},pl=Wi,dl=function(e,t,r,n){return n&&n.enumerable?e[t]=r:pl(e,t,r),e},ml=Ur,vl=un,yl=_n,bl=Bc,gl=wo,wl=dl,xl=Xs("iterator"),jl=!1;[].keys&&("next"in(il=[].keys())?(sl=gl(gl(il)))!==Object.prototype&&(nl=sl):jl=!0);var El=!yl(nl)||ml((function(){var e={};return nl[xl].call(e)!==e}));vl((nl=El?{}:bl(nl))[xl])||wl(nl,xl,(function(){return this}));var $l={IteratorPrototype:nl,BUGGY_SAFARI_ITERATORS:jl},Ol=da,Sl=ca?{}.toString:function(){return"[object "+Ol(this)+"]"},Al=ca,Pl=Ri.f,Tl=Wi,kl=Ds,Fl=Sl,Il=Xs("toStringTag"),Rl=function(e,t,r,n){var s=r?e:e&&e.prototype;s&&(kl(s,Il)||Pl(s,Il,{configurable:!0,value:t}),n&&!Al&&Tl(s,"toString",Fl))},Dl=$l.IteratorPrototype,_l=Bc,Cl=xn,Ml=Rl,Nl=ra,ql=function(){return this},Bl=co,Ll=dn,Ul=fl,Jl=function(e,t,r,n){var s=t+" Iterator";return e.prototype=_l(Dl,{next:Cl(+!n,r)}),Ml(e,s,!1,!0),Nl[s]=ql,e},Vl=wo,Gl=Rl,Hl=dl,zl=ra,Xl=$l,Wl=Ul.PROPER,Yl=Xl.BUGGY_SAFARI_ITERATORS,Zl=Xs("iterator"),Kl=function(){return this},Ql=function(e,t,r,n,s,i,o){Jl(r,t,n);var c,a,u,l=function(e){if(e===s&&m)return m;if(!Yl&&e&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},h=t+" Iterator",f=!1,p=e.prototype,d=p[Zl]||p["@@iterator"]||s&&p[s],m=!Yl&&d||l(s),v="Array"===t&&p.entries||d;if(v&&(c=Vl(v.call(new e)))!==Object.prototype&&c.next&&(Gl(c,h,!0,!0),zl[h]=Kl),Wl&&"values"===s&&d&&"values"!==d.name&&(f=!0,m=function(){return Ll(d,this)}),s)if(a={values:l("values"),keys:i?m:l("keys"),entries:l("entries")},o)for(u in a)(Yl||f||!(u in p))&&Hl(p,u,a[u]);else Bl({target:t,proto:!0,forced:Yl||f},a);return o&&p[Zl]!==m&&Hl(p,Zl,m,{name:s}),zl[t]=m,a},eh=function(e,t){return{value:e,done:t}},th=Rn,rh=ra,nh=ol;Ri.f;var sh=Ql,ih=eh,oh=nh.set,ch=nh.getterFor("Array Iterator");sh(Array,"Array",(function(e,t){oh(this,{type:"Array Iterator",target:th(e),index:0,kind:t})}),(function(){var e=ch(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ih(void 0,!0);switch(e.kind){case"keys":return ih(r,!1);case"values":return ih(t[r],!1)}return ih([r,t[r]],!1)}),"values"),rh.Arguments=rh.Array;var ah=Qr,uh=Co,lh=Ga,hh=kn,fh=ah("".charAt),ph=ah("".charCodeAt),dh=ah("".slice),mh=function(e){return function(t,r){var n,s,i=lh(hh(t)),o=uh(r),c=i.length;return o<0||o>=c?e?"":void 0:(n=ph(i,o))<55296||n>56319||o+1===c||(s=ph(i,o+1))<56320||s>57343?e?fh(i,o):n:e?dh(i,o,o+2):s-56320+(n-55296<<10)+65536}},vh={codeAt:mh(!1),charAt:mh(!0)}.charAt,yh=Ga,bh=ol,gh=Ql,wh=eh,xh=bh.set,jh=bh.getterFor("String Iterator");gh(String,"String",(function(e){xh(this,{type:"String Iterator",string:yh(e),index:0})}),(function(){var e,t=jh(this),r=t.string,n=t.index;return n>=r.length?wh(void 0,!0):(e=vh(r,n),t.index+=e.length,wh(e,!1))}));var Eh=Cn.AggregateError,$h={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},Oh=Lr,Sh=Rl,Ah=ra;for(var Ph in $h)Sh(Oh[Ph],Ph),Ah[Ph]=Ah.Array;const Th=dr(Eh);class kh extends Th{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Fh extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(kh,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Ih extends Fh{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}class Rh extends Fh{}class Dh extends Rh{}var _h=function(){return!1},Ch=function(){return!0};function Mh(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Nh(e){return function t(r){return 0===arguments.length||Mh(r)?t:e.apply(this,arguments)}}function qh(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Mh(r)?t:Nh((function(t){return e(r,t)}));default:return Mh(r)&&Mh(n)?t:Mh(r)?Nh((function(t){return e(t,n)})):Mh(n)?Nh((function(t){return e(r,t)})):e(r,n)}}}function Bh(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,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Lh(e,t,r){return function(){for(var n=[],s=0,i=e,o=0,c=!1;o<t.length||s<arguments.length;){var a;o<t.length&&(!Mh(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,Mh(a)?c=!0:i-=1,o+=1}return!c&&i<=0?r.apply(this,n):Bh(Math.max(0,i),Lh(e,n,r))}}var Uh=qh((function(e,t){return 1===e?Nh(t):Bh(e,Lh(e,[],t))}));function Jh(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Mh(r)?t:qh((function(t,n){return e(r,t,n)}));case 2:return Mh(r)&&Mh(n)?t:Mh(r)?qh((function(t,r){return e(t,n,r)})):Mh(n)?qh((function(t,n){return e(r,t,n)})):Nh((function(t){return e(r,n,t)}));default:return Mh(r)&&Mh(n)&&Mh(s)?t:Mh(r)&&Mh(n)?qh((function(t,r){return e(t,r,s)})):Mh(r)&&Mh(s)?qh((function(t,r){return e(t,n,r)})):Mh(n)&&Mh(s)?qh((function(t,n){return e(r,t,n)})):Mh(r)?Nh((function(t){return e(t,n,s)})):Mh(n)?Nh((function(t){return e(r,t,s)})):Mh(s)?Nh((function(t){return e(r,n,t)})):e(r,n,s)}}}const Vh=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Gh(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function Hh(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!Vh(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(Gh(n)){var i=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(n)}}return r.apply(this,arguments)}}function zh(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Xh=function(){return this.xf["@@transducer/init"]()},Wh=function(e){return this.xf["@@transducer/result"](e)};var Yh=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Xh,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=zh(this.xf["@@transducer/step"](e,!1))),e},e}();function Zh(e){return function(t){return new Yh(e,t)}}var Kh=qh(Hh(["all"],Zh,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function Qh(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ef(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function tf(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const rf="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var nf=Object.prototype.toString,sf=function(){return"[object Arguments]"===nf.call(arguments)?function(e){return"[object Arguments]"===nf.call(e)}:function(e){return tf("callee",e)}}(),of=!{toString:null}.propertyIsEnumerable("toString"),cf=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],af=function(){return arguments.propertyIsEnumerable("length")}(),uf=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},lf="function"!=typeof Object.keys||af?Nh((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=af&&sf(e);for(t in e)!tf(t,e)||s&&"length"===t||(n[n.length]=t);if(of)for(r=cf.length-1;r>=0;)tf(t=cf[r],e)&&!uf(n,t)&&(n[n.length]=t),r-=1;return n})):Nh((function(e){return Object(e)!==e?[]:Object.keys(e)})),hf=Nh((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ff(e,t,r,n){var s=Qh(e);function i(e,t){return pf(e,t,r.slice(),n.slice())}return!ef((function(e,t){return!ef(i,t,e)}),Qh(t),s)}function pf(e,t,r,n){if(rf(e,t))return!0;var s=hf(e);if(s!==hf(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(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!rf(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!rf(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 i=r.length-1;i>=0;){if(r[i]===e)return n[i]===t;i-=1}switch(s){case"Map":return e.size===t.size&&ff(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&ff(e.values(),t.values(),r.concat([e]),n.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 o=lf(e);if(o.length!==lf(t).length)return!1;var c=r.concat([e]),a=n.concat([t]);for(i=o.length-1;i>=0;){var u=o[i];if(!tf(u,t)||!pf(t[u],e[u],c,a))return!1;i-=1}return!0}var df=qh((function(e,t){return pf(e,t,[],[])}));function mf(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(df(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function vf(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function yf(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 bf=function(e){return(e<10?"0":"")+e},gf="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+bf(e.getUTCMonth()+1)+"-"+bf(e.getUTCDate())+"T"+bf(e.getUTCHours())+":"+bf(e.getUTCMinutes())+":"+bf(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function wf(e){return function(){return!e.apply(this,arguments)}}function xf(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function jf(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ef=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Xh,e.prototype["@@transducer/result"]=Wh,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function $f(e){return function(t){return new Ef(e,t)}}var Of=qh(Hh(["fantasy-land/filter","filter"],$f,(function(e,t){return jf(t)?xf((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},lf(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)}))),Sf=qh((function(e,t){return Of(wf(e),t)}));function Af(e,t){var r=function(r){var n=t.concat([e]);return mf(r,n)?"<Circular>":Af(r,n)},n=function(e,t){return vf((function(t){return yf(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+vf(r,e).join(", ")+"))";case"[object Array]":return"["+vf(r,e).concat(n(e,Sf((function(e){return/^\d+$/.test(e)}),lf(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):yf(gf(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":yf(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,lf(e)).join(", ")+"}"}}var Pf=Nh((function(e){return Af(e,[])})),Tf=qh((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Pf(e),o=r(i,Pf(t));return void 0!==o&&o===i?e:t})),kf=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Xh,e.prototype["@@transducer/result"]=Wh,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),Ff=qh(Hh(["fantasy-land/map","map"],(function(e){return function(t){return new kf(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Uh(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return xf((function(r,n){return r[n]=e(t[n]),r}),{},lf(t));default:return vf(e,t)}})));const If=Number.isInteger||function(e){return e<<0===e};function Rf(e){return"[object String]"===Object.prototype.toString.call(e)}function Df(e,t){var r=e<0?t.length+e:e;return Rf(t)?t.charAt(r):t[r]}var _f=qh((function(e,t){if(null!=t)return If(e)?Df(e,t):t[e]})),Cf=qh((function(e,t){return Ff(_f(e),t)})),Mf=Nh((function(e){return!!Vh(e)||!!e&&("object"==typeof e&&(!Rf(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),Nf="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function qf(e,t,r){return function(n,s,i){if(Mf(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Nf])return r(n,s,i[Nf]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Bf(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var Lf=qh((function(e,t){return Bh(e.length,(function(){return e.apply(t,arguments)}))}));function Uf(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function Jf(e,t,r,n){return e["@@transducer/result"](r[n](Lf(e["@@transducer/step"],e),t))}var Vf=qf(Bf,Jf,Uf),Gf=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 Hf(e){return new Gf(e)}var zf=Jh((function(e,t,r){return Vf("function"==typeof e?Hf(e):e,t,r)})),Xf=Nh((function(e){return Uh(zf(Tf,0,Cf("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),Wf=Nh((function(e){return function(){return e}})),Yf=qh((function(e,t){return e&&t})),Zf=Nh((function(e){return Uh(zf(Tf,0,Cf("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function Kf(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Qf(e,t,r,n){return r[n](e,t)}var ep=qf(xf,Qf,Kf),tp=qh((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(r){return e(r)(t(r))}:ep((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,Ff(r,t))}),[],e)})),rp=qh((function(e,t){return e.apply(this,t)})),np=Nh((function(e){return Uh(e.length,e)}));var sp=Nh((function(e){return null==e})),ip=Jh((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!sp(n)&&tf(s,n)&&"object"==typeof n[s]?n[s]:If(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(If(e)&&Vh(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));function op(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var cp=qh((function(e,t){var r=Uh(e,t);return Uh(e,(function(){return xf(tp,Ff(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),ap=Nh((function(e){return cp(e.length,e)})),up=qh((function(e,t){return op(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ap(Yf)(e,t)}));function lp(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 hp(e,t,r){if(r||(r=new fp),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(t){var n=r.get(e);if(n)return n;for(var s in r.set(e,t),e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t};switch(hf(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return lp(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 fp=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],n=0;n<r.length;n+=1){if((i=r[n])[0]===e)return i[1]}else{var s=this.hash(e);if(r=this.map[s])for(n=0;n<r.length;n+=1){var i;if((i=r[n])[0]===e)return i[1]}}},e}(),pp=Nh((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}})),dp=ap(Nh((function(e){return!e})));function mp(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function vp(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return Vh(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var yp=Jh(vp("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)}))),bp=Nh(vp("tail",yp(1,1/0)));function gp(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Bh(arguments[0].length,zf(mp,arguments[0],bp(arguments)))}var wp=Nh((function(e){return Df(0,e)}));function xp(e){return e}var jp=Nh(xp),Ep=qh((function(e,t){return Uh(zf(Tf,0,Cf("length",t)),(function(){var r=arguments,n=this;return e.apply(n,vf((function(e){return e.apply(n,r)}),t))}))})),$p=function(){function e(e,t,r,n){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=Xh,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(tf(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 r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,hp(this.valueAcc)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function Op(e,t,r){return function(n){return new $p(e,t,r,n)}}var Sp=Lh(4,[],Hh([],Op,(function(e,t,r,n){var s=Hf((function(n,s){var i=r(s),o=e(tf(i,n)?n[i]:hp(t),s);return o&&o["@@transducer/reduced"]?zh(n):(n[i]=o,n)}));return Vf(s,{},n)}))),Ap=qh((function(e,t){return null==t||t!=t?e:t})),Pp=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Tp(e,!0,this)},e.prototype.has=function(e){return Tp(e,!1,this)},e}();function Tp(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!mf(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!mf(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}var kp=qh((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Pp,c=0;c<i;c+=1)o.add(t[c]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r})),Fp=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Xh,e.prototype["@@transducer/result"]=Wh,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?zh(r):r},e}();function Ip(e){return function(t){return new Fp(e,t)}}var Rp=qh(Hh(["take"],Ip,(function(e,t){return yp(0,e<0?1/0:e,t)})));function Dp(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return yp(0,r+1,t)}var _p=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Xh,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=Vf(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 Cp(e){return function(t){return new _p(e,t)}}var Mp=qh(Hh([],Cp,Dp)),Np=Nh((function(e){return Df(-1,e)})),qp=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Xh,e.prototype["@@transducer/result"]=Wh,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 Bp(e){return function(t){return new qp(e,t)}}var Lp=qh(Hh(["dropWhile"],Bp,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return yp(r,1/0,t)}))),Up=qh((function(e,t){return e||t})),Jp=qh((function(e,t){return op(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ap(Up)(e,t)}));var Vp=Nh((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():Vh(e)?[]:Rf(e)?"":jf(e)?{}:sf(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})),Gp=Nh((function(e){return Uh(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))})),Hp=qh(vp("groupBy",Sp((function(e,t){return e.push(t),e}),[]))),zp=qh((function(e,t){if(0===e.length||sp(t))return!1;for(var r=t,n=0;n<e.length;){if(sp(r)||!tf(e[n],r))return!1;r=r[e[n]],n+=1}return!0})),Xp=qh((function(e,t){return zp([e],t)})),Wp=function(e,t){switch(arguments.length){case 0:return Wp;case 1:return function t(r){return 0===arguments.length?t:rf(e,r)};default:return rf(e,t)}},Yp=Jh((function(e,t,r){return Uh(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))})),Zp=qh(mf),Kp=yp(0,-1),Qp=qh((function(e,t){return Uh(e+1,(function(){var r=arguments[e];if(null!=r&&op(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Pf(r)+' does not have a method named "'+t+'"')}))})),ed=Nh((function(e){return null!=e&&df(e,Vp(e))})),td=Nh((function(e){return!ed(e)})),rd=Qp(1,"join");function nd(e){return"[object Number]"===Object.prototype.toString.call(e)}var sd=qh((function(e,t){return function(r){return function(n){return Ff((function(e){return t(e,n)}),r(e(n)))}}}));function id(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=If(s)?Df(s,r):r[s]}return r}var od=qh((function(e,t){return xf((function(r,n){return r[n]=e(t[n],n,t),r}),{},lf(t))})),cd=Jh((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})tf(n,t)&&(s[n]=tf(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)tf(n,r)&&!tf(n,s)&&(s[n]=r[n]);return s})),ad=Jh((function e(t,r,n){return cd((function(r,n,s){return jf(n)&&jf(s)?e(t,n,s):t(r,n,s)}),r,n)})),ud=qh((function(e,t){return ad((function(e,t,r){return r}),e,t)})),ld=qh((function(e,t){return Kh(wf(e),t)})),hd=function(e){return{value:e,map:function(t){return hd(t(e))}}},fd=Jh((function(e,t,r){return e((function(e){return hd(t(e))}))(r).value})),pd=qh(id),dd=Jh((function(e,t,r){return Ap(e,id(t,r))})),md=Jh((function(e,t,r){return e(id(t,r))})),vd=qh((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})),yd=Jh((function(e,t,r){return df(e,_f(t,r))})),bd=Jh((function(e,t,r){return Ap(e,_f(t,r))})),gd=Jh((function(e,t,r){return e(_f(t,r))})),wd=qh((function(e,t){if(!nd(e)||!nd(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),n=e<0?t+Math.abs(e):t-e,s=0;s<n;)r[s]=s+e,s+=1;return r})),xd=Nh(zh),jd=Jh((function(e,t,r){return r.replace(e,t)})),Ed=qh((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),$d=Qp(1,"split"),Od=qh((function(e,t){return df(Rp(e.length,t),e)}));var Sd=qh((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Pf(e));var r;return lp(e).test(t)})),Ad=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Xh,e.prototype["@@transducer/result"]=Wh,e.prototype["@@transducer/step"]=function(e,t){return ef(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Pd(e){return function(t){return new Ad(e,t)}}var Td=qh(Hh([],Pd,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)ef(e,r=t[n],i)||(i[i.length]=r),n+=1;return i}))),kd=Jh((function(e,t,r){return e(r)?t(r):r})),Fd=Wf(void 0),Id=df(Fd()),Rd=dp(Id),Dd=df(null),_d=dp(Dd),Cd=dp(sp),Md=Uh(1,gp(hf,Wp("GeneratorFunction"))),Nd=Uh(1,gp(hf,Wp("AsyncFunction"))),qd=Zf([gp(hf,Wp("Function")),Md,Nd]),Bd=Uh(1,qd(Array.isArray)?Array.isArray:gp(hf,Wp("Array"))),Ld=up(Bd,ed),Ud=up(Bd,td),Jd=Uh(1,gp(hf,Wp("String"))),Vd=df("");function Gd(e){return Gd="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},Gd(e)}var Hd=function(e){return"object"===Gd(e)},zd=dp(Uh(1,up(_d,Jp(Hd,qd)))),Xd=Xf([Jd,zd,td]),Wd=dp(qd),Yd=Uh(1,up(_d,Hd)),Zd=gp(hf,Wp("Object")),Kd=gp(Pf,df(Pf(Object))),Qd=md(up(qd,Kd),["constructor"]),em=Uh(1,(function(e){if(!Yd(e)||!Zd(e))return!1;var t=Object.getPrototypeOf(e);return!!Dd(t)||Qd(t)})),tm=up(Uh(1,gp(hf,Wp("Number"))),isFinite),rm=Uh(1,tm),nm=up(qd(Number.isFinite)?Uh(1,Lf(Number.isFinite,Number)):rm,Ep(df,[Math.floor,jp])),sm=Uh(1,nm),im=qd(Number.isInteger)?Uh(1,Lf(Number.isInteger,Number)):sm,om=Uh(1,gp(hf,Wp("RegExp")));function cm(e){return function(e){if(Array.isArray(e))return am(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 am(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?am(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.")}()}function am(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var um,lm,hm=gp(Ed(pp((function(e,t){return e.length>t.length}))),wp,_f("length")),fm=np((function(e,t,r){var n=r.apply(void 0,cm(e));return Cd(n)?xd(n):t})),pm=Yp(Ud,(function(e){var t=hm(e);return Uh(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return zf(fm(r),void 0,e)}))}),Fd),dm=Gp(Zp),mm=Uh(3,(function(e,t,r){var n=pd(e,r),s=pd(Kp(e),r);if(!Wd(n)&&!Ld(e)){var i=Lf(n,s);return rp(i,t)}})),vm=kd(Jd,jd(/[.*+?^${}()|[\]\\-]/g,"\\$&")),ym=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))},bm=Uh(3,(function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),ym(r,"str"),ym(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 n=new RegExp(om(e)?e:vm(e),"g");return jd(n,t,r)})),gm=Qp(2,"replaceAll"),wm=qd(String.prototype.replaceAll)?gm:bm,xm=np((function(e,t){return gp($d(""),Mp(dm(e)),rd(""))(t)})),jm=np((function(e,t){return gp($d(""),Lp(dm(e)),rd(""))(t)})),Em={exports:{}},$m=Em.exports={};function Om(){throw new Error("setTimeout has not been defined")}function Sm(){throw new Error("clearTimeout has not been defined")}function Am(e){if(um===setTimeout)return setTimeout(e,0);if((um===Om||!um)&&setTimeout)return um=setTimeout,setTimeout(e,0);try{return um(e,0)}catch(t){try{return um.call(null,e,0)}catch(t){return um.call(this,e,0)}}}!function(){try{um="function"==typeof setTimeout?setTimeout:Om}catch(e){um=Om}try{lm="function"==typeof clearTimeout?clearTimeout:Sm}catch(e){lm=Sm}}();var Pm,Tm=[],km=!1,Fm=-1;function Im(){km&&Pm&&(km=!1,Pm.length?Tm=Pm.concat(Tm):Fm=-1,Tm.length&&Rm())}function Rm(){if(!km){var e=Am(Im);km=!0;for(var t=Tm.length;t;){for(Pm=Tm,Tm=[];++Fm<t;)Pm&&Pm[Fm].run();Fm=-1,t=Tm.length}Pm=null,km=!1,function(e){if(lm===clearTimeout)return clearTimeout(e);if((lm===Sm||!lm)&&clearTimeout)return lm=clearTimeout,clearTimeout(e);try{lm(e)}catch(t){try{return lm.call(null,e)}catch(t){return lm.call(this,e)}}}(e)}}function Dm(e,t){this.fun=e,this.array=t}function _m(){}$m.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Tm.push(new Dm(e,t)),1!==Tm.length||km||Am(Rm)},Dm.prototype.run=function(){this.fun.apply(null,this.array)},$m.title="browser",$m.browser=!0,$m.env={},$m.argv=[],$m.version="",$m.versions={},$m.on=_m,$m.addListener=_m,$m.once=_m,$m.off=_m,$m.removeListener=_m,$m.removeAllListeners=_m,$m.emit=_m,$m.prependListener=_m,$m.prependOnceListener=_m,$m.listeners=function(e){return[]},$m.binding=function(e){throw new Error("process.binding is not supported")},$m.cwd=function(){return"/"},$m.chdir=function(e){throw new Error("process.chdir is not supported")},$m.umask=function(){return 0};const Cm=dr(Em.exports),Mm=()=>md(Sd(/^win/),["platform"],Cm),Nm=e=>{try{const t=new URL(e);return xm(":",t.protocol)}catch{return}},qm=gp(Nm,Rd),Bm=e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""},Lm=e=>{if(Cm.browser)return!1;const t=Nm(e);return Id(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Um=e=>{const t=Nm(e);return"http"===t||"https"===t},Jm=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=bd(!1,"keepFileProtocol",t),s=bd(Mm,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=wm("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Vm=e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Mm()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r},Gm=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Hm=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},zm=()=>{if(Cm.browser)return Hm(globalThis.location.href);const e=Cm.cwd(),t=Np(e);return["/","\\"].includes(t)?e:e+(Mm()?"\\":"/")},Xm=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()},Wm=e=>{if(Lm(e))return Vm(Jm(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Ym=e=>Lm(e)?Jm(e):decodeURI(e),Zm=Object.freeze(Object.defineProperty({__proto__:null,cwd:zm,fromFileSystemPath:Vm,getExtension:Bm,getHash:Gm,getProtocol:Nm,hasProtocol:qm,isFileSystemPath:Lm,isHttpUrl:Um,isURI:e=>{try{return new URL(e)&&!0}catch{return!1}},resolve:Xm,sanitize:Wm,stripHash:Hm,toFileSystemPath:Jm,unsanitize:Ym},Symbol.toStringTag,{value:"Module"}));let Km=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:n}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n}get extension(){return Jd(this.uri)?Bm(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(hf(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};class Qm{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===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=Jd(e)?e:e.uri;return Rd(this.find((e=>e.uri===t)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}}const ev={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:jp,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},tv=sd(pd(["resolve","baseURI"]),ip(["resolve","baseURI"])),rv=e=>Vd(e)?zm():e,nv=(e,t)=>{const r=ud(e,t);return fd(tv,rv,r)};class sv extends Fh{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}}const iv=async(e,t,r)=>{const n=await Promise.all(r.map(mm([e],t)));return r.filter(((e,t)=>n[t]))},ov=async(e,t,r)=>{let n;for(const s of r)try{const r=await s[e].call(s,...t);return{plugin:s,result:r}}catch(e){n=new sv("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};class cv extends Fh{}class av extends Fh{}class uv extends av{}class lv extends uv{}const hv=async(e,t)=>{const r=new Km({uri:Wm(Hm(e)),mediaType:t.parse.mediaType}),n=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),n=await iv("canRead",[e,t],r);if(ed(n))throw new lv(e.uri);try{const{result:t}=await ov("read",[e],n);return t}catch(t){throw new av(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),n=await iv("canParse",[e,t],r);if(ed(n))throw new lv(e.uri);try{const{plugin:r,result:s}=await ov("parse",[e,t],n);return!r.allowEmpty&&s.isEmpty?Promise.reject(new cv(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(t){throw new cv(`Error while parsing file "${e.uri}"`,{cause:t})}})(new Km({...r,data:n}),t)};var fv=function(e){return null===e},pv="object"==typeof global&&global&&global.Object===Object&&global,dv=pv,mv="object"==typeof self&&self&&self.Object===Object&&self,vv=dv||mv||Function("return this")(),yv=vv.Symbol,bv=yv,gv=Object.prototype,wv=gv.hasOwnProperty,xv=gv.toString,jv=bv?bv.toStringTag:void 0;var Ev=function(e){var t=wv.call(e,jv),r=e[jv];try{e[jv]=void 0;var n=!0}catch(e){}var s=xv.call(e);return n&&(t?e[jv]=r:delete e[jv]),s},$v=Object.prototype.toString;var Ov=Ev,Sv=function(e){return $v.call(e)},Av=yv?yv.toStringTag:void 0;var Pv=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Av&&Av in Object(e)?Ov(e):Sv(e)},Tv=Array.isArray;var kv=function(e){return null!=e&&"object"==typeof e},Fv=Pv,Iv=Tv,Rv=kv;var Dv=function(e){return"string"==typeof e||!Iv(e)&&Rv(e)&&"[object String]"==Fv(e)},_v=Pv,Cv=kv;var Mv=function(e){return"number"==typeof e||Cv(e)&&"[object Number]"==_v(e)},Nv=Pv,qv=kv;var Bv=function(e){return!0===e||!1===e||qv(e)&&"[object Boolean]"==Nv(e)};var Lv=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Uv=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}};var Jv=function(){this.u=[],this.size=0};var Vv=function(e,t){return e===t||e!=e&&t!=t},Gv=Vv;var Hv=function(e,t){for(var r=e.length;r--;)if(Gv(e[r][0],t))return r;return-1},zv=Hv,Xv=Array.prototype.splice;var Wv=function(e){var t=this.u,r=zv(t,e);return!(r<0)&&(r==t.length-1?t.pop():Xv.call(t,r,1),--this.size,!0)},Yv=Hv;var Zv=function(e){var t=this.u,r=Yv(t,e);return r<0?void 0:t[r][1]},Kv=Hv;var Qv=Hv;var ey=function(e,t){var r=this.u,n=Qv(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ty=Jv,ry=Wv,ny=Zv,sy=function(e){return Kv(this.u,e)>-1},iy=ey;function oy(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}oy.prototype.clear=ty,oy.prototype.delete=ry,oy.prototype.get=ny,oy.prototype.has=sy,oy.prototype.set=iy;var cy=oy,ay=cy;var uy=function(){this.u=new ay,this.size=0};var ly=function(e){var t=this.u,r=t.delete(e);return this.size=t.size,r};var hy=function(e){return this.u.get(e)};var fy=function(e){return this.u.has(e)},py=Pv,dy=Lv;var my=function(e){if(!dy(e))return!1;var t=py(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},vy=vv["o"],yy=function(){var e=/[^.]+$/.exec(vy&&vy.keys&&vy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var by=function(e){return!!yy&&yy in e},gy=Function.prototype.toString;var wy=function(e){if(null!=e){try{return gy.call(e)}catch(e){}try{return e+""}catch(e){}}return""},xy=my,jy=by,Ey=Lv,$y=wy,Oy=/^\[object .+?Constructor\]$/,Sy=Function.prototype,Ay=Object.prototype,Py=Sy.toString,Ty=Ay.hasOwnProperty,ky=RegExp("^"+Py.call(Ty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Fy=function(e){return!(!Ey(e)||jy(e))&&(xy(e)?ky:Oy).test($y(e))},Iy=function(e,t){return null==e?void 0:e[t]};var Ry=function(e,t){var r=Iy(e,t);return Fy(r)?r:void 0},Dy=Ry(vv,"Map"),_y=Ry(Object,"create"),Cy=_y;var My=function(){this.u=Cy?Cy(null):{},this.size=0};var Ny=function(e){var t=this.has(e)&&delete this.u[e];return this.size-=t?1:0,t},qy=_y,By=Object.prototype.hasOwnProperty;var Ly=function(e){var t=this.u;if(qy){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return By.call(t,e)?t[e]:void 0},Uy=_y,Jy=Object.prototype.hasOwnProperty;var Vy=function(e){var t=this.u;return Uy?void 0!==t[e]:Jy.call(t,e)},Gy=_y;var Hy=function(e,t){var r=this.u;return this.size+=this.has(e)?0:1,r[e]=Gy&&void 0===t?"__lodash_hash_undefined__":t,this},zy=My,Xy=Ny,Wy=Ly,Yy=Vy,Zy=Hy;function Ky(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ky.prototype.clear=zy,Ky.prototype.delete=Xy,Ky.prototype.get=Wy,Ky.prototype.has=Yy,Ky.prototype.set=Zy;var Qy=Ky,eb=cy,tb=Dy;var rb=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},nb=rb;var sb=function(e,t){var r=e.u;return nb(t)?r["string"==typeof t?"string":"hash"]:r.map},ib=sb;var ob=sb;var cb=sb;var ab=sb;var ub=function(e,t){var r=ab(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},lb=function(){this.size=0,this.u={hash:new Qy,map:new(tb||eb),string:new Qy}},hb=function(e){var t=ib(this,e).delete(e);return this.size-=t?1:0,t},fb=function(e){return ob(this,e).get(e)},pb=function(e){return cb(this,e).has(e)},db=ub;function mb(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mb.prototype.clear=lb,mb.prototype.delete=hb,mb.prototype.get=fb,mb.prototype.has=pb,mb.prototype.set=db;var vb=mb,yb=cy,bb=Dy,gb=vb;var wb=function(e,t){var r=this.u;if(r instanceof yb){var n=r.u;if(!bb||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.u=new gb(n)}return r.set(e,t),this.size=r.size,this},xb=cy,jb=uy,Eb=ly,$b=hy,Ob=fy,Sb=wb;function Ab(e){var t=this.u=new xb(e);this.size=t.size}Ab.prototype.clear=jb,Ab.prototype.delete=Eb,Ab.prototype.get=$b,Ab.prototype.has=Ob,Ab.prototype.set=Sb;var Pb=Ab;var Tb=vb,kb=function(e){return this.u.set(e,"__lodash_hash_undefined__"),this},Fb=function(e){return this.u.has(e)};function Ib(e){var t=-1,r=null==e?0:e.length;for(this.u=new Tb;++t<r;)this.add(e[t])}Ib.prototype.add=Ib.prototype.push=kb,Ib.prototype.has=Fb;var Rb=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Db=Ib,_b=Rb,Cb=function(e,t){return e.has(t)};var Mb=function(e,t,r,n,s,i){var o=1&r,c=e.length,a=t.length;if(c!=a&&!(o&&a>c))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var h=-1,f=!0,p=2&r?new Db:void 0;for(i.set(e,t),i.set(t,e);++h<c;){var d=e[h],m=t[h];if(n)var v=o?n(m,d,h,t,e,i):n(d,m,h,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!_b(t,(function(e,t){if(!Cb(p,t)&&(d===e||s(d,e,r,n,i)))return p.push(t)}))){f=!1;break}}else if(d!==m&&!s(d,m,r,n,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Nb=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var qb=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Bb=vv.Uint8Array,Lb=Vv,Ub=Mb,Jb=Nb,Vb=qb,Gb=yv?yv.prototype:void 0,Hb=Gb?Gb.valueOf:void 0;var zb=function(e,t,r,n,s,i,o){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Bb(e),new Bb(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Lb(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=Jb;case"[object Set]":var a=1&n;if(c||(c=Vb),e.size!=t.size&&!a)return!1;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var l=Ub(c(e),c(t),n,s,i,o);return o.delete(e),l;case"[object Symbol]":if(Hb)return Hb.call(e)==Hb.call(t)}return!1};var Xb=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e},Wb=Xb,Yb=Tv;var Zb=function(e,t,r){var n=t(e);return Yb(e)?n:Wb(n,r(e))};var Kb=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i};var Qb=Kb,eg=function(){return[]},tg=Object.prototype.propertyIsEnumerable,rg=Object.getOwnPropertySymbols,ng=rg?function(e){return null==e?[]:(e=Object(e),Qb(rg(e),(function(t){return tg.call(e,t)})))}:eg;var sg=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},ig=Pv,og=kv;var cg=function(e){return og(e)&&"[object Arguments]"==ig(e)},ag=kv,ug=Object.prototype,lg=ug.hasOwnProperty,hg=ug.propertyIsEnumerable,fg=cg(function(){return arguments}())?cg:function(e){return ag(e)&&lg.call(e,"callee")&&!hg.call(e,"callee")},pg={exports:{}};var dg=function(){return!1};!function(e,t){var r=vv,n=dg,s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s?r.Buffer:void 0,c=(o?o.isBuffer:void 0)||n;e.exports=c}(pg,pg.exports);var mg=pg.exports,vg=/^(?:0|[1-9]\d*)$/;var yg=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&vg.test(e))&&e>-1&&e%1==0&&e<t};var bg=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},gg=Pv,wg=bg,xg=kv,jg={};jg["[object Float32Array]"]=jg["[object Float64Array]"]=jg["[object Int8Array]"]=jg["[object Int16Array]"]=jg["[object Int32Array]"]=jg["[object Uint8Array]"]=jg["[object Uint8ClampedArray]"]=jg["[object Uint16Array]"]=jg["[object Uint32Array]"]=!0,jg["[object Arguments]"]=jg["[object Array]"]=jg["[object ArrayBuffer]"]=jg["[object Boolean]"]=jg["[object DataView]"]=jg["[object Date]"]=jg["[object Error]"]=jg["[object Function]"]=jg["[object Map]"]=jg["[object Number]"]=jg["[object Object]"]=jg["[object RegExp]"]=jg["[object Set]"]=jg["[object String]"]=jg["[object WeakMap]"]=!1;var Eg=function(e){return xg(e)&&wg(e.length)&&!!jg[gg(e)]};var $g=function(e){return function(t){return e(t)}},Og={exports:{}};!function(e,t){var r=pv,n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,i=s&&s.exports===n&&r.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(Og,Og.exports);var Sg=Og.exports,Ag=Eg,Pg=$g,Tg=Sg&&Sg.isTypedArray,kg=Tg?Pg(Tg):Ag,Fg=sg,Ig=fg,Rg=Tv,Dg=mg,_g=yg,Cg=kg,Mg=Object.prototype.hasOwnProperty;var Ng=function(e,t){var r=Rg(e),n=!r&&Ig(e),s=!r&&!n&&Dg(e),i=!r&&!n&&!s&&Cg(e),o=r||n||s||i,c=o?Fg(e.length,String):[],a=c.length;for(var u in e)!t&&!Mg.call(e,u)||o&&("length"==u||s&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||_g(u,a))||c.push(u);return c},qg=Object.prototype;var Bg=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qg)};var Lg=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Ug=Bg,Jg=Lg,Vg=Object.prototype.hasOwnProperty;var Gg=my,Hg=bg;var zg=Ng,Xg=function(e){if(!Ug(e))return Jg(e);var t=[];for(var r in Object(e))Vg.call(e,r)&&"constructor"!=r&&t.push(r);return t},Wg=function(e){return null!=e&&Hg(e.length)&&!Gg(e)};var Yg=Zb,Zg=ng,Kg=function(e){return Wg(e)?zg(e):Xg(e)};var Qg=function(e){return Yg(e,Kg,Zg)},ew=Object.prototype.hasOwnProperty;var tw=function(e,t,r,n,s,i){var o=1&r,c=Qg(e),a=c.length;if(a!=Qg(t).length&&!o)return!1;for(var u=a;u--;){var l=c[u];if(!(o?l in t:ew.call(t,l)))return!1}var h=i.get(e),f=i.get(t);if(h&&f)return h==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var d=o;++u<a;){var m=e[l=c[u]],v=t[l];if(n)var y=o?n(v,m,l,t,e,i):n(m,v,l,e,t,i);if(!(void 0===y?m===v||s(m,v,r,n,i):y)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var b=e.constructor,g=t.constructor;b==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(p=!1)}return i.delete(e),i.delete(t),p},rw=Ry(vv,"DataView"),nw=Dy,sw=Ry(vv,"Promise"),iw=Ry(vv,"Set"),ow=Ry(vv,"WeakMap"),cw=Pv,aw=wy,uw=aw(rw),lw=aw(nw),hw=aw(sw),fw=aw(iw),pw=aw(ow),dw=cw;(rw&&"[object DataView]"!=dw(new rw(new ArrayBuffer(1)))||nw&&"[object Map]"!=dw(new nw)||sw&&"[object Promise]"!=dw(sw.resolve())||iw&&"[object Set]"!=dw(new iw)||ow&&"[object WeakMap]"!=dw(new ow))&&(dw=function(e){var t=cw(e),r="[object Object]"==t?e.constructor:void 0,n=r?aw(r):"";if(n)switch(n){case uw:return"[object DataView]";case lw:return"[object Map]";case hw:return"[object Promise]";case fw:return"[object Set]";case pw:return"[object WeakMap]"}return t});var mw=Pb,vw=Mb,yw=zb,bw=tw,gw=dw,ww=Tv,xw=mg,jw=kg,Ew="[object Object]",$w=Object.prototype.hasOwnProperty;var Ow=function(e,t,r,n,s,i){var o=ww(e),c=ww(t),a=o?"[object Array]":gw(e),u=c?"[object Array]":gw(t),l=(a="[object Arguments]"==a?Ew:a)==Ew,h=(u="[object Arguments]"==u?Ew:u)==Ew,f=a==u;if(f&&xw(e)){if(!xw(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new mw),o||jw(e)?vw(e,t,r,n,s,i):yw(e,t,a,r,n,s,i);if(!(1&r)){var p=l&&$w.call(e,"__wrapped__"),d=h&&$w.call(t,"__wrapped__");if(p||d){var m=p?e.value():e,v=d?t.value():t;return i||(i=new mw),s(m,v,r,n,i)}}return!!f&&(i||(i=new mw),bw(e,t,r,n,s,i))},Sw=kv;var Aw=function e(t,r,n,s,i){return t===r||(null==t||null==r||!Sw(t)&&!Sw(r)?t!=t&&r!=r:Ow(t,r,n,s,e,i))},Pw=Aw;var Tw=function(e,t){return Pw(e,t)};var kw=class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}};var Fw=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};const Iw=Fw;function Rw(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}let Dw=class e{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(t,r){return t=Rw(t),new e(this.elements.filter(t,r))}reject(t,r){return t=Rw(t),new e(this.elements.filter(Iw(t),r))}find(e,t){return e=Rw(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}};"undefined"!=typeof Symbol&&(Dw.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()});var _w=Dw;const Cw=Tw,Mw=kw,Nw=_w;var qw=class e{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof e?this.content.toValue():this.content instanceof Mw?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new Nw;const n=(e,t)=>(e.push(t),e),s=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof Mw&&(r.content.key&&s(e,r.content.key),r.content.value&&s(e,r.content.value)),e};return this.content&&(this.content.element&&s(r,this.content),Array.isArray(this.content)&&this.content.reduce(s,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return Cw(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(t){if(t instanceof e)this._content=t;else if(t instanceof Nw)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof Mw)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new Nw;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new Nw(this.content);if(this.content instanceof Mw){const e=new Nw([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof e?new Nw([this.content]):new Nw}get recursiveChildren(){const e=new Nw;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}};const Bw=qw;var Lw=class extends Bw{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}};const Uw=qw;const Jw=qw;const Vw=qw;const Gw=Fw,Hw=qw,zw=_w;let Xw=class extends Hw{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new zw(this.content.filter(e,t))}reject(e,t){return this.filter(Gw(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new zw(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}};Xw.empty=function(){return new this},Xw["fantasy-land/empty"]=Xw.empty,"undefined"!=typeof Symbol&&(Xw.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()});var Ww=Xw;const Yw=kw,Zw=qw;var Kw=class extends Zw{constructor(e,t,r,n){super(new Yw,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}};const Qw=Fw,ex=_w;var tx=class e extends ex{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(t,r){return new e(this.elements.filter((e=>t.bind(r)(e.value,e.key,e))))}reject(e,t){return this.filter(Qw(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}};const rx=Fw,nx=Lv,sx=Ww,ix=Kw,ox=tx;var cx=class extends sx{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(nx(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new ix(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new ox(this.content).filter(e,t)}reject(e,t){return this.filter(rx(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}};const ax=qw;const ux=qw;const lx=qw,hx=Lw,fx=class extends Uw{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},px=class extends Jw{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}},dx=class extends Vw{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}},mx=Ww,vx=Kw,yx=cx,bx=class extends ax{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}},gx=class extends ux{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}},wx=_w,xx=tx,jx=kw;function Ex(e){if(e instanceof lx)return e;if("string"==typeof e)return new fx(e);if("number"==typeof e)return new px(e);if("boolean"==typeof e)return new dx(e);if(null===e)return new hx;if(Array.isArray(e))return new mx(e.map(Ex));if("object"==typeof e){return new yx(e)}return e}lx.prototype.ObjectElement=yx,lx.prototype.RefElement=gx,lx.prototype.MemberElement=vx,lx.prototype.refract=Ex,wx.prototype.refract=Ex;var $x={Element:lx,NullElement:hx,StringElement:fx,NumberElement:px,BooleanElement:dx,ArrayElement:mx,MemberElement:vx,ObjectElement:yx,LinkElement:bx,RefElement:gx,refract:Ex,ArraySlice:wx,ObjectSlice:xx,KeyValuePair:jx};const Ox=fv,Sx=Dv,Ax=Mv,Px=Bv,Tx=Lv,kx=Uv,Fx=$x;let Ix=class{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=Fx.Element,this.KeyValuePair=Fx.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",Fx.NullElement).register("string",Fx.StringElement).register("number",Fx.NumberElement).register("boolean",Fx.BooleanElement).register("array",Fx.ArrayElement).register("object",Fx.ObjectElement).register("member",Fx.MemberElement).register("ref",Fx.RefElement).register("link",Fx.LinkElement),this.detect(Ox,Fx.NullElement,!1).detect(Sx,Fx.StringElement,!1).detect(Ax,Fx.NumberElement,!1).detect(Px,Fx.BooleanElement,!1).detect(Array.isArray,Fx.ArrayElement,!1).detect(Tx,Fx.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new kx(this)}};kx.prototype.Namespace=Ix;var Rx=Ix,Dx=kw,_x=$x.ArraySlice,Cx=$x.ObjectSlice,Mx=$x.Element,Nx=$x.StringElement,qx=$x.NumberElement,Bx=$x.BooleanElement,Lx=$x.NullElement,Ux=$x.ArrayElement,Jx=$x.ObjectElement,Vx=$x.MemberElement,Gx=$x.RefElement,Hx=$x.LinkElement,zx=$x.refract;class Xx extends Nx{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class Wx extends Nx{constructor(e,t,r){super(e,t,r),this.element="comment"}}class Yx extends Ux{constructor(e,t,r){super(e,t,r),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(Id(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}class Zx extends Ux{constructor(e,t,r){super(e,t,r),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(void 0===e)return;const t=new Ux([e.start.row,e.start.column,e.start.char]),r=new Ux([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Kx=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Qx=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,ej=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),tj=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Ux)&&t.classes.includes(e),rj=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,nj=e=>e({hasMethod:Kx,hasBasicElementProps:Qx,primitiveEq:ej,isElementType:rj,hasClass:tj}),sj=nj((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Mx||e(r)&&t(void 0,r))),ij=nj((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Nx||e(r)&&t("string",r))),oj=nj((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof qx||e(r)&&t("number",r))),cj=nj((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Lx||e(r)&&t("null",r))),aj=nj((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Bx||e(r)&&t("boolean",r))),uj=nj((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Jx||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),lj=nj((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Ux&&!(n instanceof Jx)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),hj=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vx||e(n)&&t("member",n)&&r(void 0,n))),fj=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hx||e(n)&&t("link",n)&&r(void 0,n))),pj=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gx||e(n)&&t("ref",n)&&r(void 0,n))),dj=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xx||e(n)&&t("annotation",n)&&r("array",n))),mj=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wx||e(n)&&t("comment",n)&&r("string",n))),vj=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yx||e(n)&&t("parseResult",n)&&r("array",n))),yj=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zx||e(n)&&t("sourceMap",n)&&r("array",n))),bj=e=>rj("object",e)||rj("array",e)||rj("boolean",e)||rj("number",e)||rj("string",e)||rj("null",e)||rj("member",e),gj=e=>yj(e.meta.get("sourceMap")),wj=(e,t)=>0===e.length||Kh(dm(t.classes.toValue()),e),xj=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:gj,includesClasses:wj,includesSymbols:(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!lj(r)&&Kh(dm(r.toValue()),e)},isAnnotationElement:dj,isArrayElement:lj,isBooleanElement:aj,isCommentElement:mj,isElement:sj,isLinkElement:fj,isMemberElement:hj,isNullElement:cj,isNumberElement:oj,isObjectElement:uj,isParseResultElement:vj,isPrimitiveElement:bj,isRefElement:pj,isSourceMapElement:yj,isStringElement:ij},Symbol.toStringTag,{value:"Module"}));class jj extends Rx{constructor(){super(),this.register("annotation",Xx),this.register("comment",Wx),this.register("parseResult",Yx),this.register("sourceMap",Zx)}}const Ej=new jj,$j=e=>{const t=new jj;return em(e)&&t.use(e),t},Oj=()=>({predicates:{...xj},namespace:Ej}),Sj=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},Aj={},Pj=e=>null==e?void 0:e.type,Tj=e=>"string"==typeof Pj(e),kj=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Fj=(e,{visitFnGetter:t=Sj,nodeTypeGetter:r=Pj,breakSymbol:n=Aj,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,l,h,f,p,d){let m=u,v=!1;const y={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(m),!1);if("function"==typeof c){const t=c.call(e[u],m,l,h,f,p,y);if("function"==typeof(null==t?void 0:t.then))throw new Ih("Async visitor not supported in sync mode",{visitor:e[u],visitFn:c});if(t===i)a[u]=m;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;m=t,v=!0}}}}return v?m:void 0},leave(s,o,u,l,h,f){let p=s;const d={...f,replaceWith(e,t){f.replaceWith(e,t),p=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(p),!0);if("function"==typeof c){const t=c.call(e[s],p,o,u,l,h,d);if("function"==typeof(null==t?void 0:t.then))throw new Ih("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===p&&(a[s]=c)}}};Fj[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Sj,nodeTypeGetter:r=Pj,breakSymbol:n=Aj,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,l,h,f,p,d){let m=u,v=!1;const y={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],r(m),!1);if("function"==typeof c){const t=await c.call(e[u],m,l,h,f,p,y);if(t===i)a[u]=m;else if(t===n)a[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;m=t,v=!0}}}}return v?m:void 0},async leave(s,o,u,l,h,f){let p=s;const d={...f,replaceWith(e,t){f.replaceWith(e,t),p=e}};for(let s=0;s<e.length;s+=1)if(a[s]===c){const c=t(e[s],r(p),!0);if("function"==typeof c){const t=await c.call(e[s],p,o,u,l,h,d);if(t===n)a[s]=n;else if(void 0!==t&&t!==i)return t}}else a[s]===p&&(a[s]=c)}}};const Ij=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Aj,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=Sj,nodeTypeGetter:a=Pj,nodePredicate:u=Tj,nodeCloneFn:l=kj,detectCycles:h=!0}={})=>{const f=r||{};let p,d,m=Array.isArray(e),v=[e],y=-1,b=[],g=e;const w=[],x=[];do{y+=1;const e=y===v.length;let r;const $=e&&0!==b.length;if(e){if(r=0===x.length?void 0:w.pop(),g=d,d=x.pop(),$)if(m){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}y=p.index,v=p.keys,b=p.edits,m=p.inArray,p=p.prev}else if(d!==i&&void 0!==d){if(r=m?y:v[y],g=d[r],g===i||void 0===g)continue;w.push(r)}let O;if(!Array.isArray(g)){var j;if(!u(g))throw new Ih(`Invalid AST Node: ${String(g)}`,{node:g});if(h&&x.includes(g)){w.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,d,w,x):d&&(d[r]=t),e||(g=t)}};O=i.call(t,g,r,d,w,x,s)}if("function"==typeof(null===(j=O)||void 0===j?void 0:j.then))throw new Ih("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===s)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!u(O)){w.pop();continue}g=O}}var E;if(void 0===O&&$&&b.push([r,g]),!e)p={inArray:m,index:y,keys:v,edits:b,prev:p},m=Array.isArray(g),v=m?g:null!==(E=f[a(g)])&&void 0!==E?E:[],y=-1,b=[],d!==i&&void 0!==d&&x.push(d),d=g}while(void 0!==p);return 0!==b.length?b[b.length-1][1]:e};Ij[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Aj,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=Sj,nodeTypeGetter:a=Pj,nodePredicate:u=Tj,nodeCloneFn:l=kj,detectCycles:h=!0}={})=>{const f=r||{};let p,d,m=Array.isArray(e),v=[e],y=-1,b=[],g=e;const w=[],x=[];do{y+=1;const e=y===v.length;let r;const E=e&&0!==b.length;if(e){if(r=0===x.length?void 0:w.pop(),g=d,d=x.pop(),E)if(m){g=g.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(g.splice(n,1),e+=1):g[n]=r}}else{g=l(g);for(const[e,t]of b)g[e]=t}y=p.index,v=p.keys,b=p.edits,m=p.inArray,p=p.prev}else if(d!==i&&void 0!==d){if(r=m?y:v[y],g=d[r],g===i||void 0===g)continue;w.push(r)}let $;if(!Array.isArray(g)){if(!u(g))throw new Ih(`Invalid AST Node: ${String(g)}`,{node:g});if(h&&x.includes(g)){w.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,g,r,d,w,x):d&&(d[r]=t),e||(g=t)}};$=await i.call(t,g,r,d,w,x,s)}if($===s)break;if($===o){if(!e){w.pop();continue}}else if(void 0!==$&&(b.push([r,$]),!e)){if(!u($)){w.pop();continue}g=$}}var j;if(void 0===$&&E&&b.push([r,g]),!e)p={inArray:m,index:y,keys:v,edits:b,prev:p},m=Array.isArray(g),v=m?g:null!==(j=f[a(g)])&&void 0!==j?j:[],y=-1,b=[],d!==i&&void 0!==d&&x.push(d),d=g}while(void 0!==p);return 0!==b.length?b[b.length-1][1]:e};class Rj extends Ih{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class Dj extends Rj{}class _j extends Rj{}const Cj=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Dx){const{key:t,value:s}=e,i=sj(t)?Cj(t,n):t,o=sj(s)?Cj(s,n):s,c=new Dx(i,o);return r.set(e,c),c}if(e instanceof Cx){const t=e=>Cj(e,n),s=[...e].map(t),i=new Cx(s);return r.set(e,i),i}if(e instanceof _x){const t=e=>Cj(e,n),s=[...e].map(t),i=new _x(s);return r.set(e,i),i}if(sj(e)){const t=qj(e);if(r.set(e,t),e.content)if(sj(e.content))t.content=Cj(e.content,n);else if(e.content instanceof Dx)t.content=Cj(e.content,n);else if(Array.isArray(e.content)){const r=e=>Cj(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Dj("Value provided to cloneDeep function couldn't be cloned",{value:e})};Cj.safe=e=>{try{return Cj(e)}catch{return e}};const Mj=e=>{const{key:t,value:r}=e;return new Dx(t,r)},Nj=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Cj(e.meta)),e.attributes.length>0&&(t._attributes=Cj(e.attributes)),sj(e.content)){const r=e.content;t.content=Nj(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Dx?t.content=Mj(e.content):t.content=e.content;return t},qj=e=>{if(e instanceof Dx)return Mj(e);if(e instanceof Cx)return(e=>{const t=[...e];return new Cx(t)})(e);if(e instanceof _x)return(e=>{const t=[...e];return new _x(t)})(e);if(sj(e))return Nj(e);throw new _j("Value provided to cloneShallow function couldn't be cloned",{value:e})};qj.safe=e=>{try{return qj(e)}catch{return e}};const Bj=e=>uj(e)?"ObjectElement":lj(e)?"ArrayElement":hj(e)?"MemberElement":ij(e)?"StringElement":aj(e)?"BooleanElement":oj(e)?"NumberElement":cj(e)?"NullElement":fj(e)?"LinkElement":pj(e)?"RefElement":void 0,Lj=e=>sj(e)?qj(e):kj(e),Uj=gp(Bj,Jd),Jj={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Vj{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=_h,returnOnTrue:t,returnOnFalse:r}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const Gj=(e,t,{keyMap:r=Jj,...n}={})=>Ij(e,t,{keyMap:r,nodeTypeGetter:Bj,nodePredicate:Uj,nodeCloneFn:Lj,...n});Gj[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Jj,...n}={})=>Ij[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Bj,nodePredicate:Uj,nodeCloneFn:Lj,...n});const Hj={toolboxCreator:Oj,visitorOptions:{nodeTypeGetter:Bj,exposeEdits:!0}},zj=(e,t,r={})=>{if(0===t.length)return e;const n=ud(Hj,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=Fj(c.map(bd({},"visitor")),{...i});c.forEach(mm(["pre"],[]));const u=Gj(e,a,i);return c.forEach(mm(["post"],[])),u};zj[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=ud(Hj,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),c=t.map((e=>e(o))),a=Fj[Symbol.for("nodejs.util.promisify.custom")],u=Gj[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(bd({},"visitor")),{...i});await Promise.allSettled(c.map(mm(["pre"],[])));const h=await u(e,l,i);return await Promise.allSettled(c.map(mm(["post"],[]))),h};var Xj={exports:{}};!function(e){var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,c=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&o(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&o(e,r,t[r]);return e},a=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),u={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(u,{DEFAULT_OPTIONS:()=>h,DEFAULT_UUID_LENGTH:()=>l,default:()=>p});var l=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:l,counter:0},f=class{constructor(e={}){a(this,"counter"),a(this,"debug"),a(this,"dict"),a(this,"version"),a(this,"dictIndex",0),a(this,"dictRange",[]),a(this,"lowerBound",0),a(this,"upperBound",0),a(this,"dictLength",0),a(this,"uuidLength"),a(this,"_digit_first_ascii",48),a(this,"_digit_last_ascii",58),a(this,"_alpha_lower_first_ascii",97),a(this,"_alpha_lower_last_ascii",123),a(this,"_hex_last_ascii",103),a(this,"_alpha_upper_first_ascii",65),a(this,"_alpha_upper_last_ascii",91),a(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),a(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),a(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),a(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),a(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const n=`_${e}_dict_ranges`,s=this._dict_ranges[n];Object.keys(s).forEach((e=>{const n=e;for(this.dictRange=s[n],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-e))}return r})),a(this,"setDictionary",((e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)})),a(this,"seq",(()=>this.sequentialUUID())),a(this,"sequentialUUID",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),a(this,"rnd",((e=this.uuidLength||l)=>this.randomUUID(e))),a(this,"randomUUID",((e=this.uuidLength||l)=>{let t,r,n;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",n=0;n<e;n+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),a(this,"fmt",((e,t)=>this.formattedUUID(e,t))),a(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const n=e.slice(0,2),s=parseInt(e.slice(2),10);return"$s"===n?r[n]().padStart(s,"0"):"$t"===n&&t?r[n](s,t):r[n](s)}))})),a(this,"availableUUIDs",((e=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),a(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),a(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),a(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),a(this,"getVersion",(()=>this.version)),a(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const n=e-9,s=Math.round(Math.random()*(n>15?15:n)),i=this.randomUUID(n);return`${i.substring(0,s)}${r}${i.substring(s)}${s.toString(16)}`})),a(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),n=parseInt(e.slice(2),10);return t[r](n)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,n)=>e.substring(r.length,r.length+n.length))):e;if(8===r.length)return new Date(1e3*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const n=parseInt(r.substring(r.length-1),16);return new Date(1e3*parseInt(r.substring(n,n+8),16))})),a(this,"setCounter",(e=>{this.counter=e})),a(this,"validate",((e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every((e=>r.includes(e)))}));const t=c(c({},h),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.2.0";const{dictionary:r,shuffle:n,length:s,counter:i}=t;return this.uuidLength=s,this.setDictionary(r,n),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};a(f,"default",f);var p=f;return(n=>((n,i,o,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of r(i))s.call(n,a)||a===o||e(n,a,{get:()=>i[a],enumerable:!(c=t(i,a))||c.enumerable});return n})(e({},"__esModule",{value:!0}),n))(u)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)}(Xj);const Wj=dr(Xj.exports);class Yj extends Ih{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class Zj{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new Wj({length:e}),this.identityMap=new WeakMap}identify(e){if(!sj(e))throw new Yj("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&ij(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new Nx(this.generateId());return this.identityMap.set(e,t),t}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new Zj;class Kj extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Dh("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Dh("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Dh("latest method in MediaTypes class is not yet implemented.")}}const Qj=e=>(t,r={})=>((e,{Type:t,plugins:r=[]})=>{const n=new t(e);return sj(e)&&(e.meta.length>0&&(n.meta=Cj(e.meta)),e.attributes.length>0&&(n.attributes=Cj(e.attributes))),zj(n,r,{toolboxCreator:Oj,visitorOptions:{nodeTypeGetter:Bj}})})(t,{...r,Type:e});Jx.refract=Qj(Jx),Ux.refract=Qj(Ux),Nx.refract=Qj(Nx),Bx.refract=Qj(Bx),Lx.refract=Qj(Lx),qx.refract=Qj(qx),Hx.refract=Qj(Hx),Gx.refract=Qj(Gx),Xx.refract=Qj(Xx),Wx.refract=Qj(Wx),Yx.refract=Qj(Yx),Zx.refract=Qj(Zx);const eE=(e,t)=>{const r=new Vj({predicate:e,returnOnTrue:Aj});return Gj(t,r),dd(void 0,[0],r.result)},tE=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Bj(e),rE={EphemeralObject:["content"],EphemeralArray:["content"],...Jj},nE=(e,t,{keyMap:r=rE,...n}={})=>Gj(e,t,{keyMap:r,nodeTypeGetter:tE,nodePredicate:Ch,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});nE[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=rE,...r}={})=>Gj[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:tE,nodePredicate:Ch,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class sE{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class iE{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}const oE=e=>sj(e)?ij(e)||oj(e)||aj(e)||cj(e)?e.toValue():nE(e,new class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new iE(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new sE(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ij(e.href)?e.href.toValue():""}}):e,cE=(e,t=new WeakMap)=>(hj(e)?(t.set(e.key,e),cE(e.key,t),t.set(e.value,e),cE(e.value,t)):e.children.forEach((r=>{t.set(r,e),cE(r,t)})),t);class aE{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:cE(this.element);const n=this.edges.get(e);return Id(n)?void 0:(uj(n)?((e,t,r)=>{const n=r.get(e);uj(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(e,t,this.edges):lj(n)?((e,t,r)=>{const n=r.get(e);lj(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(e,t,this.edges):hj(n)&&((e,t,r)=>{const n=r.get(e);hj(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(e,t,this.edges),this.element)}}const uE=(e,t)=>{const r=Ap(e,t);return od((e=>{if(em(e)&&Xp("$ref",e)&&gd(Jd,"$ref",e)){const t=pd(["$ref"],e),n=jm("#/",t);return pd(n.split("/"),r)}return em(e)?uE(e,r):e}),e)},lE=(e,t=Ej)=>{if(Jd(e))try{return t.fromRefract(JSON.parse(e))}catch{}return em(e)&&Xp("element",e)?t.fromRefract(e):t.toElement(e)},hE=e=>{const t=e.meta.length>0?Cj(e.meta):void 0,r=e.attributes.length>0?Cj(e.attributes):void 0;return new e.constructor(void 0,t,r)},fE=(e,t)=>t.clone&&t.isMergeableElement(e)?dE(hE(e),e,t):e,pE={clone:!0,isMergeableElement:e=>uj(e)||lj(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>fE(e,r))),objectElementMerge:(e,t,r)=>{const n=uj(e)?hE(e):hE(t);return uj(e)&&e.forEach(((e,t,s)=>{const i=qj(s);i.value=fE(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=oE(s);let c;if(uj(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);c=qj(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return dE;const r=t.customMerge(e,t);return"function"==typeof r?r:dE})(s,r)(n,t)}else c=qj(i),c.value=fE(t,r);n.remove(o),n.content.push(c)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function dE(e,t,r){var n,s,i;const o={...pE,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:pE.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:pE.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:pE.objectElementMerge;const c=lj(t);if(!(c===lj(e)))return fE(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Cj(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Cj(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a}dE.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Jx:e.reduce(((e,r)=>dE(e,r,t)),hE(e[0]))};class mE extends Fh{}class vE extends mE{}let yE=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:n=[],mediaTypes:s=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=n,this.mediaTypes=s}};class bE extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(sj(r)&&e(r))return r}}let gE=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:n}){this.uri=e,this.value=n,this.depth=t,this.refSet=r,this.errors=[]}};class wE extends Fh{}class xE extends wE{}class jE extends Fh{}class EE extends jE{}class $E extends wE{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class OE extends mE{}class SE extends av{}class AE extends cv{}const PE=async(e,t={})=>(async(e,t)=>{let r=e,n=!1;if(!vj(e)){const t=qj(e);t.classes.push("result"),r=new Yx([t]),n=!0}const s=new Km({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await iv("canDereference",[s,t],t.dereference.strategies);if(ed(i))throw new vE(s.uri);try{const{result:e}=await ov("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new mE(`Error while dereferencing file "${s.uri}"`,{cause:e})}})(e,nv(ev,t));function TE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FE(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function IE(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function RE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,s,i=[],o=!0,c=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){c=!0,s=e}finally{try{o||null==r.return||r.return()}finally{if(c)throw s}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return TE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var _E=function(e){throw TypeError(e)},CE=function(e,t,r){return t.has(e)||_E("Cannot "+r)},ME=function(e,t,r){return CE(e,t,"read from private field"),t.get(e)},NE=function(e,t,r){return t.has(e)?_E("Cannot add the same private member more than once"):IE(t,WeakSet)?t.add(e):t.set(e,r)},qE=function(e,t,r,n){return CE(e,t,"write to private field"),t.set(e,r),r},BE=function(e){return Object.prototype.toString.call(e)},LE=function(e){return ArrayBuffer.isView(e)&&!IE(e,DataView)},UE=Array.isArray,JE=Object.getOwnPropertyDescriptor,VE=Object.prototype.propertyIsEnumerable,GE=Object.getOwnPropertySymbols,HE=Object.prototype.hasOwnProperty;function zE(e){for(var t=Object.keys(e),r=GE(e),n=0;n<r.length;n++)VE.call(e,r[n])&&t.push(r[n]);return t}function XE(e,t){var r;return!(null===(r=JE(e,t))||void 0===r?void 0:r.writable)}function WE(e,t){if("object"===(void 0===e?"undefined":DE(e))&&null!==e){var r;if(UE(e))r=[];else if("[object Date]"===BE(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===BE(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===BE(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===BE(e)}(e)||function(e){return"[object Number]"===BE(e)}(e)||function(e){return"[object String]"===BE(e)}(e))r=Object(e);else{if(LE(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var n=t.includeSymbols?zE:Object.keys,s=!0,i=!1,o=void 0;try{for(var c,a=n(e)[Symbol.iterator]();!(s=(c=a.next()).done);s=!0){var u=c.value;r[u]=e[u]}}catch(e){i=!0,o=e}finally{try{s||null==a.return||a.return()}finally{if(i)throw o}}return r}return e}var YE,ZE,KE={includeSymbols:!1,immutable:!1};function QE(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:KE,n=[],s=[],i=!0,o=r.includeSymbols?zE:Object.keys,c=!!r.immutable;return function e(a){var u=c?WE(a,r):a,l={},h=!0,f={node:u,node_:a,path:[].concat(n),parent:s[s.length-1],parents:s,key:n[n.length-1],isRoot:0===n.length,level:n.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(h=!1)},delete:function(e){delete f.parent.node[f.key],e&&(h=!1)},remove:function(e){UE(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(h=!1)},keys:null,before:function(e){l.before=e},after:function(e){l.after=e},pre:function(e){l.pre=e},post:function(e){l.post=e},stop:function(){i=!1},block:function(){h=!1}};if(!i)return f;function p(){if("object"===DE(f.node)&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=o(f.node)),f.isLeaf=0===f.keys.length;for(var e=0;e<s.length;e++)if(s[e].node_===a){f.circular=s[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}p();var d=t.call(f,f.node);if(void 0!==d&&f.update&&f.update(d),l.before&&l.before.call(f,f.node),!h)return f;if("object"===DE(f.node)&&null!==f.node&&!f.circular){var m;s.push(f),p();var v=!0,y=!1,b=void 0;try{for(var g,w=Object.entries(null!==(m=f.keys)&&void 0!==m?m:[])[Symbol.iterator]();!(v=(g=w.next()).done);v=!0){var x,j=RE(g.value,2),E=j[0],$=j[1];n.push($),l.pre&&l.pre.call(f,f.node[$],$);var O=e(f.node[$]);c&&HE.call(f.node,$)&&!XE(f.node,$)&&(f.node[$]=O.node),O.isLast=!!(null===(x=f.keys)||void 0===x?void 0:x.length)&&+E==f.keys.length-1,O.isFirst=0==+E,l.post&&l.post.call(f,O),n.pop()}}catch(e){y=!0,b=e}finally{try{v||null==w.return||w.return()}finally{if(y)throw b}}s.pop()}return l.after&&l.after.call(f,f.node),f}(e).node}var e$=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:KE;kE(this,e),NE(this,YE),NE(this,ZE),qE(this,YE,t),qE(this,ZE,r)}return FE(e,[{key:"get",value:function(e){for(var t=ME(this,YE),r=0;t&&r<e.length;r++){var n=e[r];if(!HE.call(t,n)||!ME(this,ZE).includeSymbols&&"symbol"===(void 0===n?"undefined":DE(n)))return;t=t[n]}return t}},{key:"has",value:function(e){for(var t=ME(this,YE),r=0;t&&r<e.length;r++){var n=e[r];if(!HE.call(t,n)||!ME(this,ZE).includeSymbols&&"symbol"===(void 0===n?"undefined":DE(n)))return!1;t=t[n]}return!0}},{key:"set",value:function(e,t){var r=ME(this,YE),n=0;for(n=0;n<e.length-1;n++){var s=e[n];HE.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t}},{key:"map",value:function(e){return QE(ME(this,YE),e,{immutable:!0,includeSymbols:!!ME(this,ZE).includeSymbols})}},{key:"forEach",value:function(e){return qE(this,YE,QE(ME(this,YE),e,ME(this,ZE))),ME(this,YE)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,n=r?ME(this,YE):t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n}},{key:"paths",value:function(){var e=[];return this.forEach((function(){e.push(this.path)})),e}},{key:"nodes",value:function(){var e=[];return this.forEach((function(){e.push(this.node)})),e}},{key:"clone",value:function(){var e=[],t=[],r=ME(this,ZE);return LE(ME(this,YE))?ME(this,YE).slice():function n(s){for(var i=0;i<e.length;i++)if(e[i]===s)return t[i];if("object"===(void 0===s?"undefined":DE(s))&&null!==s){var o=WE(s,r);e.push(s),t.push(o);var c=r.includeSymbols?zE:Object.keys,a=!0,u=!1,l=void 0;try{for(var h,f=c(s)[Symbol.iterator]();!(a=(h=f.next()).done);a=!0){var p=h.value;o[p]=n(s[p])}}catch(e){u=!0,l=e}finally{try{a||null==f.return||f.return()}finally{if(u)throw l}}return e.pop(),t.pop(),o}return s}(ME(this,YE))}}]),e}();YE=new WeakMap,ZE=new WeakMap;var t$=function(e,t){return new e$(e,t)};t$.get=function(e,t,r){return new e$(e,r).get(t)},t$.set=function(e,t,r,n){return new e$(e,n).set(t,r)},t$.has=function(e,t,r){return new e$(e,r).has(t)},t$.map=function(e,t,r){return new e$(e,r).map(t)},t$.forEach=function(e,t,r){return new e$(e,r).forEach(t)},t$.reduce=function(e,t,r,n){return new e$(e,n).reduce(t,r)},t$.paths=function(e,t){return new e$(e,t).paths()},t$.nodes=function(e,t){return new e$(e,t).nodes()},t$.clone=function(e,t){return new e$(e,t).clone()};var r$=t$;const n$=["properties"],s$=["properties"],i$=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],o$=["schema/example","items/example"];function c$(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return n$.indexOf(t)>-1&&-1===s$.indexOf(r)||i$.indexOf(n)>-1||o$.some((e=>n.indexOf(e)>-1))}function a$(e,t){const[r,n]=e.split("#"),s=null!=t?t:"",i=null!=r?r:"";let o;if(Um(s))o=Xm(s,i);else{const e=Xm("https://swagger.io",s),t=Xm(e,i).replace("https://swagger.io","");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const u$=/^([a-z]+:\/\/|\/\/)/i;class l$ extends Ih{}const h$={},f$=new WeakMap,p$=[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]],d$={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(c$(i)||(e=>p$.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new l$("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const c=b$(e),a=c[0],u=c[1]||"";let l,h,f;try{l=o||a?v$(a,o):null}catch(t){return y$(t,{pointer:u,$ref:e,basePath:l,fullPath:r})}if(function(e,t,r,n){let s=f$.get(n);s||(s={},f$.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map($$).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,c=i.replace(/allOf\/\d+\/?/g,""),a=n.contextTree.get([]).baseDoc;if(t===a&&O$(c,e))return!0;let u="";const l=r.some((e=>(u=`${u}/${$$(e)}`,s[u]&&s[u].some((e=>O$(e,o)||O$(o,e))))));if(l)return!0;return void(s[c]=(s[c]||[]).concat(o))}(u,l,i,n)&&!s.useCircularStructures){const t=a$(e,l);return e===t?null:$r.replace(r,t)}if(null==l?(f=j$(u),h=n.get(f),void 0===h&&(h=new l$(`Could not resolve reference: ${e}`,{pointer:u,$ref:e,baseDoc:o,fullPath:r}))):(h=g$(l,u),h=null!=h.l?h.l:h.catch((t=>{throw y$(t,{pointer:u,$ref:e,baseDoc:o,fullPath:r})}))),h instanceof Error)return[$r.remove(r),h];const p=a$(e,l),d=$r.replace(i,h,{$$ref:p});if(l&&l!==o)return[d,$r.context(i,{baseDoc:l})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),n(t.value);function n(e){return $r.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,d)||s.useCircularStructures)return d}catch(e){return null}}},m$=Object.assign(d$,{docCache:h$,absoluteify:v$,clearCache:function(e){void 0!==e?delete h$[e]:Object.keys(h$).forEach((e=>{delete h$[e]}))},JSONRefError:l$,wrapError:y$,getDoc:w$,split:b$,extractFromDoc:g$,fetchJSON:function(e){return fetch(e,{headers:{Accept:"application/json, application/yaml"},loadSpec:!0}).then((e=>e.text())).then((e=>It.load(e)))},extract:x$,jsonPointerToArray:j$,unescapeJsonPointerToken:E$});function v$(e,t){if(!u$.test(e)){if(!t)throw new l$(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Xm(t,e)}return e}function y$(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new l$(`Could not resolve reference: ${r}`,{...t,cause:e})}function b$(e){return(e+"").split("#")}function g$(e,t){const r=h$[e];if(r&&!$r.isPromise(r))try{const e=x$(t,r);return Object.assign(Promise.resolve(e),{l:e})}catch(e){return Promise.reject(e)}return w$(e).then((e=>x$(t,e)))}function w$(e){const t=h$[e];return t?$r.isPromise(t)?t:Promise.resolve(t):(h$[e]=m$.fetchJSON(e).then((t=>(h$[e]=t,t))),h$[e])}function x$(e,t){const r=j$(e);if(r.length<1)return t;const n=$r.getIn(t,r);if(void 0===n)throw new l$(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function j$(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(E$)}function E$(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function $$(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function O$(e,t){if(!(r=t)||"/"===r||"#"===r)return!0;var r;const n=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!n||"/"===n||"#"===n)&&"#"!==s}const S$={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(c$(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,c=s.value;if(i.forEach((e=>{c&&(c=c[e])})),c={...c},0===Object.keys(c).length)return;delete c.allOf;const a=[];return a.push(n.replace(i,{})),e.forEach(((e,t)=>{if(!n.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,a.push(e)}a.push(n.mergeDeep(i,e));const s=function(e,t,{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}={}){const i=[];return r$(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=a$(this.node,n(e));i.push(r.replace(s,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>n.getContext([...r,t,...e]).baseDoc,specmap:n});a.push(...s)})),c.example&&a.push(n.remove([].concat(i,"example"))),a.push(n.mergeDeep(i,c)),c.$$ref||a.push(n.remove([].concat(i,"$$ref"))),a}},A$={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i={...$r.getIn(n.spec,s)};for(let s=0;s<e.length;s+=1){const o=e[s];try{t[s].default=n.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return $r.replace(r,t)}return $r.replace(r,e)}},P$={key:"properties",plugin:(e,t,r,n)=>{const s={...e};for(const t in e)try{s[t].default=n.modelPropertyMacro(s[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return $r.replace(r,s)}};class T${constructor(e){this.root=k$(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void F$(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?F$(s[n],t,r):s[n]=k$(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,n=this.root;for(let s=0;s<e.length&&(r=e[s],t=n.children,t[r]);s+=1)n=t[r];return n&&n.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:n}=e;return!n[r]&&t&&(n[r]=k$(null,e)),n[r]}),this.root)}}function k$(e,t){return F$({children:{}},e,t)}function F$(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=F$(r,r.value,e)})),e}const I$=()=>{};class R${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 T$,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),$r,{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($r.isFunction),this.patches.push($r.add([],this.spec)),this.patches.push($r.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){"verbose"===this.debugLevel&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):$r.isFunction(e)?n=e:$r.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const i={};for(const[e,t]of n.filter($r.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(n,c,a){if($r.isObject(n)){const u=c.length-1,l=c[u],h=c.indexOf("properties"),f="properties"===l&&u===h,p=s.allowMetaPatches&&i[n.$$ref];for(const u of Object.keys(n)){const l=n[u],h=c.concat(u),d=$r.isObject(l),m=n.$$ref;if(p||d&&(s.allowMetaPatches&&m&&(i[m]=!0),yield*o(l,h,a)),!f&&u===e.key){const n=t(r,c);r&&!n||(yield e.plugin(l,u,h,s,a))}}}else e.key===c[c.length-1]&&(yield e.plugin(n,e.key,c,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:$r.isGenerator(n)})}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 r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){$r.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!$r.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),$r.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if($r.isContextPatch(e))return void this.setContext(e.path,e.value);$r.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={...e.value});const t=$r.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 r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).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 $r.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||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(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(I$,I$)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const n=e.getCurrentMutations(),s=e.mutations.length-1;try{if(t.isGenerator)for(const s of t(n,e.getLib()))r(s);else{r(t(n,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:s})}return e.dispatch()}();function r(r){r&&(r=$r.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const D$={refs:m$,allOf:S$,parameters:A$,properties:P$};async function _$(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:c,responseInterceptor:a,skipNormalization:u=!1,useCircularStructures:l,strategies:h}=e,f=Mt(e),p=Nt(e),d=h.find((e=>e.match(t)));return async function(e){f&&(D$.refs.docCache[f]=e);D$.refs.fetchJSON=Ct(p,{requestInterceptor:c,responseInterceptor:a});const t=[D$.refs];"function"==typeof o&&t.push(D$.parameters);"function"==typeof i&&t.push(D$.properties);"strict"!==r&&t.push(D$.allOf);const h=await(m={spec:e,context:{baseDoc:f},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:l},new R$(m).dispatch());var m;u||(h.spec=d.normalize(h.spec));return h}(t)}const C$=e=>e.replace(/\W/gi,"_");function M$(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?C$(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${C$(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function N$(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;for(const e in r){const s=r[e];if(null==s||!["object","function"].includes(typeof s))continue;const i=s.parameters;for(const r in s){const o=s[r];if(null==o||!["object","function"].includes(typeof o))continue;const c=M$(o,e,r);if(c){n[c]?n[c].push(o):n[c]=[o];const e=n[c];if(e.length>1)e.forEach(((e,t)=>{e.h=e.h||e.operationId,e.operationId=`${c}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.h=t.h||o.operationId,t.operationId=c}}if("parameters"!==r){const e=[],r={};for(const n in t)"produces"!==n&&"consumes"!==n&&"security"!==n||(r[n]=t[n],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(o[e]){if("parameters"===e)for(const r of t[e]){o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const q$={name:"generic",match:()=>!0,normalize(e){const{spec:t}=N$({spec:e});return t},resolve:async e=>_$(e)};const B$=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},L$=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},U$=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},J$=e=>L$(e)||U$(e),V$={name:"openapi-2",match:e=>B$(e),normalize(e){const{spec:t}=N$({spec:e});return t},resolve:async e=>async function(e){return _$(e)}(e)};const G$={name:"openapi-3-0",match:e=>L$(e),normalize(e){const{spec:t}=N$({spec:e});return t},resolve:async e=>async function(e){return _$(e)}(e)},H$=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=Mt(e),i=Nt(e),o=t||await Ct(i,{requestInterceptor:r,responseInterceptor:n})(s),c={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(c)})({...e,...t}),z$=H$({strategies:[G$,V$,q$]});class X$ extends Ih{}class W$ extends X${pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}}class Y$ extends X${tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}}class Z$ extends X${pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}}const K$=gp(jd(/~/g,"~0"),jd(/\//g,"~1"),encodeURIComponent),Q$=gp(jd(/~1/g,"/"),jd(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}})),eO=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return jm("#",t)},tO=e=>{try{return 0===e.length?"":`/${e.map(K$).join("/")}`}catch(t){throw new Y$("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}},rO=(e,t)=>{let r;try{r=(e=>{if(Vd(e))return[];if(!Od("/",e))throw new W$(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=gp($d("/"),Ff(Q$))(e);return bp(t)}catch(t){throw new W$(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}})(e)}catch(r){throw new Z$(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Cj(t),cause:r})}return r.reduce(((t,n,s)=>{if(uj(t)){if(!t.hasKey(n))throw new Z$(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Cj(t)});return t.get(n)}if(lj(t)){if(!(n in t.content)||!im(Number(n)))throw new Z$(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Cj(t)});return t.get(Number(n))}throw new Z$(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Cj(t)})}),t)};class nO extends Kj{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 r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Np(this.filterByFormat(e))}}const sO=new nO("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");let iO=class extends Jx{constructor(e,t,r){super(e,t,r),this.element="callback"}},oO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},cO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},aO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},uO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},lO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},hO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},fO=class extends Jx{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Bx(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Bx(!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(fO.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let pO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},dO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},mO=class extends Jx{constructor(e,t,r){super(e,t,r),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 ij(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):ij(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)}},vO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},yO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},bO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},gO=class extends Nx{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class wO extends Jx{constructor(e,t,r){super(e,t,r),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)}}let xO=class extends Jx{constructor(e,t,r){super(e,t,r),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 Bx(!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)}},jO=class extends Jx{constructor(e,t,r){super(e,t,r),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 Bx(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Bx(!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(jO.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let EO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},$O=class extends Jx{constructor(e,t,r){super(e,t,r),this.element="paths"}},OO=class extends Jx{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}},SO=class extends Jx{constructor(e,t,r){super(e,t,r),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 Bx(!1)}set required(e){this.set("required",e)}},AO=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},PO=class extends Jx{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}};class TO extends Jx{constructor(e,t,r){super(e,t,r),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("$schema",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)}}class kO extends Jx{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class FO extends Jx{constructor(e,t,r){super(e,t,r),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)}}class IO extends Jx{constructor(e,t,r){super(e,t,r),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 RO={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",TO),t.register("jSONReference",kO),t.register("media",FO),t.register("linkDescription",IO),t}},DO=e=>{if(sj(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_O={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Jj};let CO=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=dE(t.meta,e.meta),gj(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=dE(t.attributes,e.attributes))}},MO=class extends CO{enter(e){return this.element=Cj(e),Aj}};const NO=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},qO=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:qO(r,[...t,r])},BO=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>qO(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=qO(s);for(let t of e){let e=qO(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(NO(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},LO=e=>e.filter(((t,r)=>e.indexOf(t)==r)),UO=new WeakMap,JO=e=>UO.get(e),VO=(e,t)=>{var r,n;const s=LO([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=LO([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},GO=(e,t)=>{var r,n,s,i;return{property:VO(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:VO(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},HO=new Map,zO=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...qO(e.prototype).map((e=>e.constructor)),...null!==(t=JO(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>HO.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>((e,t)=>{var r,n,s,i,o,c;return{class:LO([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:GO(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:GO(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}})(e,t)))};function XO(...e){var t,r,n;const s=e.map((e=>e.prototype));function i(...t){for(const r of e)NO(this,new r(...t))}i.prototype=BO(s,i),Object.setPrototypeOf(i,BO(e,null,["prototype"]));let o=i;{const s=zO(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(o);t&&(o=t)}WO(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},o),WO(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},o.prototype)}var c,a;return c=o,a=e,UO.set(c,a),o}const WO=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};let YO=class extends CO{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return vd(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=pd(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return md(qd,["visitors",...e],this.specObj)?pd(["visitors",...e],this.specObj):pd(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof MO&&(null==n?void 0:n.constructor)===MO?Cj(t):(Gj(t,n,r),n.element)}},ZO=class extends YO{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(ij(n)&&r.includes(oE(n))&&!this.ignoredFields.includes(oE(n))){const r=this.toRefractedElement([...t,"fixedFields",oE(n)],e),i=new Vx(Cj(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(oE(n))||this.element.content.push(Cj(s))})),this.copyMetaAndAttributes(e,this.element),Aj}};class KO extends(XO(ZO,MO)){constructor(e){super(e),this.element=new TO,this.specPath=Wf(["document","objects","JSONSchema"])}}let QO=class{parent;constructor({parent:e}){this.parent=e}};const eS=e=>uj(e)&&e.hasKey("$ref");let tS=class extends(XO(YO,QO,MO)){ObjectElement(e){const t=eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Aj}ArrayElement(e){return this.element=new Ux,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}};let rS=class extends YO{specPath;ignoredFields;fieldPatternPredicate=_h;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(oE(t))&&this.fieldPatternPredicate(oE(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Vx(Cj(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oE(t))||this.element.content.push(Cj(r))})),this.copyMetaAndAttributes(e,this.element),Aj}},nS=class extends rS{constructor(e){super(e),this.fieldPatternPredicate=Xd}},sS=class extends(XO(nS,QO,MO)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-properties"),this.specPath=e=>eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},iS=class extends(XO(nS,QO,MO)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class oS extends(XO(nS,QO,MO)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let cS=class extends(XO(YO,QO,MO)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}},aS=class extends(XO(YO,QO,MO)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}},uS=class extends(XO(YO,QO,MO)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}};class lS extends(XO(nS,QO,MO)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-definitions"),this.specPath=e=>eS(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let hS=class extends(XO(YO,QO,MO)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Aj}};class fS extends(XO(ZO,MO)){constructor(e){super(e),this.element=new kO,this.specPath=Wf(["document","objects","JSONReference"])}ObjectElement(e){const t=ZO.prototype.ObjectElement.call(this,e);return ij(this.element.$ref)&&this.element.classes.push("reference-element"),t}}let pS=class extends YO{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Yp(e,Wf(t),Fd))),r=pm(t)(e);return this.element=this.toRefractedElement(r,e),Aj}},dS=class extends pS{constructor(e){super(e),this.alternator=[{predicate:eS,specPath:["document","objects","JSONReference"]},{predicate:Ch,specPath:["document","objects","JSONSchema"]}]}};class mS extends(XO(ZO,MO)){constructor(e){super(e),this.element=new FO,this.specPath=Wf(["document","objects","Media"])}}class vS extends(XO(ZO,MO)){constructor(e){super(e),this.element=new IO,this.specPath=Wf(["document","objects","LinkDescription"])}}const yS={visitors:{value:MO,JSONSchemaOrJSONReferenceVisitor:dS,document:{objects:{JSONSchema:{$visitor:KO,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:dS,items:tS,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:class extends MO{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}},properties:sS,additionalProperties:dS,patternProperties:iS,dependencies:oS,enum:class extends MO{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}},type:class extends MO{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}},allOf:cS,anyOf:aS,oneOf:uS,not:dS,definitions:lS,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:hS,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:fS,fixedFields:{$ref:class extends MO{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}}}},Media:{$visitor:mS,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:vS,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:dS,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:dS}}}}}},bS=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof TO||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),gS=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kO||e(n)&&t("JSONReference",n)&&r("object",n))),wS=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof FO||e(n)&&t("media",n)&&r("object",n))),xS=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof IO||e(n)&&t("linkDescription",n)&&r("object",n))),jS=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:gS,isJSONSchemaElement:bS,isLinkDescriptionElement:xS,isMediaElement:wS},Symbol.toStringTag,{value:"Module"})),ES=()=>{const e=$j(RO);return{predicates:{...jS,isStringElement:ij},namespace:e}},$S=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=yS}={})=>{const s=zx(e),i=uE(n),o=new(pd(t,i))({specObj:i});return Gj(s,o),zj(o.element,r,{toolboxCreator:ES,visitorOptions:{keyMap:_O,nodeTypeGetter:DO}})})(t,{specPath:e,...r});TO.refract=$S(["visitors","document","objects","JSONSchema","$visitor"]),kO.refract=$S(["visitors","document","objects","JSONReference","$visitor"]),FO.refract=$S(["visitors","document","objects","Media","$visitor"]),IO.refract=$S(["visitors","document","objects","LinkDescription","$visitor"]);let OS=class extends TO{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Rh("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Rh("idProp setter in Schema class is not not supported.")}get $schema(){throw new Rh("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Rh("$schema setter in Schema class is not not supported.")}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 patternProperties(){throw new Rh("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Rh("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Rh("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Rh("dependencies setter in Schema class is not not supported.")}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 definitions(){throw new Rh("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Rh("definitions setter in Schema class is not not supported.")}get base(){throw new Rh("base getter in Schema class is not not supported.")}set base(e){throw new Rh("base setter in Schema class is not not supported.")}get links(){throw new Rh("links getter in Schema class is not not supported.")}set links(e){throw new Rh("links setter in Schema class is not not supported.")}get media(){throw new Rh("media getter in Schema class is not not supported.")}set media(e){throw new Rh("media setter in Schema class is not not supported.")}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)}},SS=class extends Jx{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}},AS=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},PS=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},TS=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},kS=class extends Jx{constructor(e,t,r){super(e,t,r),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)}},FS=class extends Jx{constructor(e,t,r){super(e,t,r),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 IS={namespace:e=>{const{base:t}=e;return t.register("callback",iO),t.register("components",oO),t.register("contact",cO),t.register("discriminator",aO),t.register("encoding",uO),t.register("example",lO),t.register("externalDocumentation",hO),t.register("header",fO),t.register("info",pO),t.register("license",dO),t.register("link",mO),t.register("mediaType",vO),t.register("oAuthFlow",yO),t.register("oAuthFlows",bO),t.register("openapi",gO),t.register("openApi3_0",wO),t.register("operation",xO),t.register("parameter",jO),t.register("pathItem",EO),t.register("paths",$O),t.register("reference",OO),t.register("requestBody",SO),t.register("response",AO),t.register("responses",PO),t.register("schema",OS),t.register("securityRequirement",SS),t.register("securityScheme",AS),t.register("server",PS),t.register("serverVariable",TS),t.register("tag",kS),t.register("xml",FS),t}};class RS extends Ux{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(RS.primaryClass)}}class DS extends Ux{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(DS.primaryClass)}}class _S extends Ux{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(_S.primaryClass)}}class CS extends Jx{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(CS.primaryClass)}}class MS extends Jx{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(MS.primaryClass)}}class NS extends Jx{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(NS.primaryClass)}}class qS extends Jx{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(qS.primaryClass),this.classes.push("parameters")}}class BS extends Jx{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(BS.primaryClass),this.classes.push("examples")}}class LS extends Jx{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(LS.primaryClass)}}class US extends Jx{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(US.primaryClass)}}class JS extends Jx{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(JS.primaryClass)}}class VS extends Jx{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(VS.primaryClass)}}class GS extends Jx{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(GS.primaryClass)}}class HS extends Ux{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(HS.primaryClass),this.classes.push("servers")}}class zS extends Ux{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(zS.primaryClass),this.classes.push("parameters")}}class XS extends Ux{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(XS.primaryClass),this.classes.push("parameters")}}class WS extends Jx{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(WS.primaryClass),this.classes.push("examples")}}class YS extends Jx{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(YS.primaryClass),this.classes.push("content")}}class ZS extends Ux{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(ZS.primaryClass)}}class KS extends Jx{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(KS.primaryClass)}}class QS extends Ux{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(QS.primaryClass),this.classes.push("security")}}class eA extends Ux{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(eA.primaryClass),this.classes.push("servers")}}class tA extends Jx{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(tA.primaryClass),this.classes.push("content")}}class rA extends Jx{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(rA.primaryClass),this.classes.push("examples")}}class nA extends Jx{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(nA.primaryClass)}}class sA extends Jx{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(sA.primaryClass)}}class iA extends Jx{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(iA.primaryClass)}}class oA extends Jx{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(oA.primaryClass),this.classes.push("content")}}class cA extends Jx{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(cA.primaryClass)}}class aA extends Jx{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(aA.primaryClass)}}class uA extends Jx{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(uA.primaryClass)}}class lA extends Jx{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(lA.primaryClass)}}class hA extends Jx{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(hA.primaryClass),this.classes.push("examples")}}class fA extends Jx{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(fA.primaryClass),this.classes.push("content")}}const pA=e=>{if(sj(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},dA={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"],...Jj};class mA{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=dE(t.meta,e.meta),gj(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=dE(t.attributes,e.attributes))}}class vA extends mA{enter(e){return this.element=Cj(e),Aj}}class yA extends mA{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:n,...s}){super({...s}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return vd(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=pd(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return md(qd,["visitors",...e],this.specObj)?pd(["visitors",...e],this.specObj):pd(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof vA&&(null==n?void 0:n.constructor)===vA?Cj(t):(Gj(t,n,r),n.element)}}const bA=e=>uj(e)&&e.hasKey("$ref"),gA=uj,wA=uj,xA=e=>ij(e.key)&&Od("x-",oE(e.key));class jA extends yA{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=xA;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(ij(n)&&r.includes(oE(n))&&!this.ignoredFields.includes(oE(n))){const r=this.toRefractedElement([...t,"fixedFields",oE(n)],e),i=new Vx(Cj(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(oE(n))||this.element.content.push(Cj(s))})),this.copyMetaAndAttributes(e,this.element),Aj}}class EA extends(XO(jA,vA)){constructor(e){super(e),this.element=new wO,this.specPath=Wf(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return jA.prototype.ObjectElement.call(this,e)}}class $A extends(XO(yA,vA)){StringElement(e){const t=new gO(oE(e));return this.copyMetaAndAttributes(e,t),this.element=t,Aj}}let OA=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new pO,this.specPath=Wf(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};let SA=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new cO,this.specPath=Wf(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},AA=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new dO,this.specPath=Wf(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},PA=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new mO,this.specPath=Wf(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return(ij(this.element.operationId)||ij(this.element.operationRef))&&this.element.classes.push("reference-element"),t}};class TA extends yA{specPath;ignoredFields;fieldPatternPredicate=_h;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=xA;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(oE(t))&&this.fieldPatternPredicate(oE(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Vx(Cj(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oE(t))||this.element.content.push(Cj(r))})),this.copyMetaAndAttributes(e,this.element),Aj}}class kA extends TA{constructor(e){super(e),this.fieldPatternPredicate=Xd}}let FA=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new lA,this.specPath=Wf(["value"])}},IA=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new PS,this.specPath=Wf(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};let RA=class extends(XO(yA,vA)){constructor(e){super(e),this.element=new RS}ArrayElement(e){return e.forEach((e=>{const t=gA(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}},DA=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new TS,this.specPath=Wf(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class _A extends(XO(kA,vA)){constructor(e){super(e),this.element=new CS,this.specPath=Wf(["document","objects","ServerVariable"])}}let CA=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new vO,this.specPath=Wf(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class MA extends yA{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Yp(e,Wf(t),Fd))),r=pm(t)(e);return this.element=this.toRefractedElement(r,e),Aj}}const NA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iO||e(n)&&t("callback",n)&&r("object",n))),qA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oO||e(n)&&t("components",n)&&r("object",n))),BA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cO||e(n)&&t("contact",n)&&r("object",n))),LA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lO||e(n)&&t("example",n)&&r("object",n))),UA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hO||e(n)&&t("externalDocumentation",n)&&r("object",n))),JA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fO||e(n)&&t("header",n)&&r("object",n))),VA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pO||e(n)&&t("info",n)&&r("object",n))),GA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dO||e(n)&&t("license",n)&&r("object",n))),HA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mO||e(n)&&t("link",n)&&r("object",n))),zA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gO||e(n)&&t("openapi",n)&&r("string",n))),XA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof wO||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),WA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xO||e(n)&&t("operation",n)&&r("object",n))),YA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jO||e(n)&&t("parameter",n)&&r("object",n))),ZA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof EO||e(n)&&t("pathItem",n)&&r("object",n))),KA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $O||e(n)&&t("paths",n)&&r("object",n))),QA=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof OO||e(n)&&t("reference",n)&&r("object",n))),eP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof SO||e(n)&&t("requestBody",n)&&r("object",n))),tP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof AO||e(n)&&t("response",n)&&r("object",n))),rP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof PO||e(n)&&t("responses",n)&&r("object",n))),nP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof OS||e(n)&&t("schema",n)&&r("object",n))),sP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof SS||e(n)&&t("securityRequirement",n)&&r("object",n))),iP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof AS||e(n)&&t("securityScheme",n)&&r("object",n))),oP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof PS||e(n)&&t("server",n)&&r("object",n))),cP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof TS||e(n)&&t("serverVariable",n)&&r("object",n))),aP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vO||e(n)&&t("mediaType",n)&&r("object",n))),uP=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof RS||e(s)&&t("array",s)&&r("array",s)&&n("servers",s))),lP=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:e=>aj(e)&&e.classes.includes("boolean-json-schema"),isCallbackElement:NA,isComponentsElement:qA,isContactElement:BA,isExampleElement:LA,isExternalDocumentationElement:UA,isHeaderElement:JA,isInfoElement:VA,isLicenseElement:GA,isLinkElement:HA,isMediaTypeElement:aP,isOpenApi3_0Element:XA,isOpenapiElement:zA,isOperationElement:WA,isParameterElement:YA,isPathItemElement:ZA,isPathsElement:KA,isReferenceElement:QA,isRequestBodyElement:eP,isResponseElement:tP,isResponsesElement:rP,isSchemaElement:nP,isSecurityRequirementElement:sP,isSecuritySchemeElement:iP,isServerElement:oP,isServerVariableElement:cP,isServersElement:uP},Symbol.toStringTag,{value:"Module"}));let hP=class extends(XO(MA,vA)){constructor(e){super(e),this.alternator=[{predicate:bA,specPath:["document","objects","Reference"]},{predicate:Ch,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=MA.prototype.enter.call(this,e);return QA(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}},fP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("examples"),this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}},pP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new nA,this.specPath=Wf(["document","objects","Encoding"])}},dP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new SS,this.specPath=Wf(["value"])}},mP=class extends(XO(yA,vA)){constructor(e){super(e),this.element=new DS}ArrayElement(e){return e.forEach((e=>{if(uj(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Cj(e))})),this.copyMetaAndAttributes(e,this.element),Aj}},vP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new oO,this.specPath=Wf(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},yP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new kS,this.specPath=Wf(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},bP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new OO,this.specPath=Wf(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return ij(this.element.$ref)&&this.element.classes.push("reference-element"),t}},gP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new jO,this.specPath=Wf(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return uj(this.element.contentProp)&&this.element.contentProp.filter(aP).forEach(((e,t)=>{e.setMetaProperty("media-type",oE(t))})),t}},wP=class extends(XO(MA,vA)){constructor(e){super(e),this.alternator=[{predicate:bA,specPath:["document","objects","Reference"]},{predicate:Ch,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=MA.prototype.enter.call(this,e);return QA(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}},xP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new fO,this.specPath=Wf(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},jP=class extends(XO(MA,vA)){constructor(e){super(e),this.alternator=[{predicate:bA,specPath:["document","objects","Reference"]},{predicate:Ch,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=MA.prototype.enter.call(this,e);return QA(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}},EP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("content"),this.specPath=Wf(["document","objects","MediaType"])}},$P=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new OS,this.specPath=Wf(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const{allOf:OP}=yS.visitors.document.objects.JSONSchema.fixedFields;const{anyOf:SP}=yS.visitors.document.objects.JSONSchema.fixedFields;const{oneOf:AP}=yS.visitors.document.objects.JSONSchema.fixedFields;const{items:PP}=yS.visitors.document.objects.JSONSchema.fixedFields;const{properties:TP}=yS.visitors.document.objects.JSONSchema.fixedFields;const{type:kP}=yS.visitors.document.objects.JSONSchema.fixedFields;const{JSONSchemaOrJSONReferenceVisitor:FP}=yS.visitors;class IP extends FP{ObjectElement(e){const t=FP.prototype.enter.call(this,e);return QA(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}let RP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new aO,this.specPath=Wf(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class DP extends(XO(kA,vA)){constructor(e){super(e),this.element=new aA,this.specPath=Wf(["value"])}}let _P=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new FS,this.specPath=Wf(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},CP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new MS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},MP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new NS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(tP).forEach(((e,t)=>{e.setMetaProperty("http-status-code",oE(t))})),t}},NP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new qS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}},qP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new BS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}};class BP extends(XO(kA,vA)){constructor(e){super(e),this.element=new LS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}let LP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new US,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(JA).forEach(((e,t)=>{e.setMetaProperty("header-name",oE(t))})),t}};class UP extends(XO(kA,vA)){constructor(e){super(e),this.element=new JS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}let JP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new VS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}},VP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new GS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}},GP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new lO,this.specPath=Wf(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return ij(this.element.externalValue)&&this.element.classes.push("reference-element"),t}};let HP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new hO,this.specPath=Wf(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},zP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new uO,this.specPath=Wf(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return uj(this.element.headers)&&this.element.headers.filter(JA).forEach(((e,t)=>{e.setMetaProperty("header-name",oE(t))})),t}},XP=class extends(XO(kA,vA)){constructor(e){super(e),this.element=new sA,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!JA(e))return;const r=oE(t);e.setMetaProperty("headerName",r)})),t}},WP=class extends(XO(TA,vA)){constructor(e){super(e),this.element=new $O,this.specPath=Wf(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ch}ObjectElement(e){const t=TA.prototype.ObjectElement.call(this,e);return this.element.filter(ZA).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Cj(t))})),t}},YP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new SO,this.specPath=Wf(["document","objects","RequestBody"])}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return uj(this.element.contentProp)&&this.element.contentProp.filter(aP).forEach(((e,t)=>{e.setMetaProperty("media-type",oE(t))})),t}},ZP=class extends(XO(TA,vA)){constructor(e){super(e),this.element=new iO,this.specPath=Wf(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(ZA).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",oE(t))})),t}},KP=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new AO,this.specPath=Wf(["document","objects","Response"])}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return uj(this.element.contentProp)&&this.element.contentProp.filter(aP).forEach(((e,t)=>{e.setMetaProperty("media-type",oE(t))})),uj(this.element.headers)&&this.element.headers.filter(JA).forEach(((e,t)=>{e.setMetaProperty("header-name",oE(t))})),t}};class QP extends(XO(kA,vA)){constructor(e){super(e),this.element=new iA,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!JA(e))return;const r=oE(t);e.setMetaProperty("header-name",r)})),t}}class eT extends(XO(kA,vA)){constructor(e){super(e),this.element=new cA,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}class tT extends(XO(jA,TA)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...kp(e.keys(),t)],jA.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,TA.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Aj}}let rT=class extends(XO(tT,vA)){constructor(e){super(e),this.element=new PO,this.specPathFixedFields=Wf(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>bA(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${wd(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=tT.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(tP).forEach(((e,t)=>{const r=Cj(t);this.fieldPatternPredicate(oE(r))&&e.setMetaProperty("http-status-code",r)})),t}};class nT extends(XO(MA,vA)){constructor(e){super(e),this.alternator=[{predicate:bA,specPath:["document","objects","Reference"]},{predicate:Ch,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=MA.prototype.enter.call(this,e);return QA(this.element)?this.element.setMetaProperty("referenced-element","response"):tP(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}let sT=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new xO,this.specPath=Wf(["document","objects","Operation"])}},iT=class extends(XO(yA,vA)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=bA(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);QA(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}};class oT extends(XO(kA,vA)){specPath;constructor(e){super(e),this.element=new KS,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}class cT extends(XO(yA,vA)){constructor(e){super(e),this.element=new QS}ArrayElement(e){return e.forEach((e=>{const t=uj(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}}let aT=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new EO,this.specPath=Wf(["document","objects","PathItem"])}ObjectElement(e){const t=jA.prototype.ObjectElement.call(this,e);return this.element.filter(WA).forEach(((e,t)=>{const r=Cj(t);r.content=oE(r).toUpperCase(),e.setMetaProperty("http-method",r)})),ij(this.element.$ref)&&this.element.classes.push("reference-element"),t}};let uT=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new AS,this.specPath=Wf(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},lT=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new bO,this.specPath=Wf(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},hT=class extends(XO(jA,vA)){constructor(e){super(e),this.element=new yO,this.specPath=Wf(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class fT extends(XO(kA,vA)){constructor(e){super(e),this.element=new uA,this.specPath=Wf(["value"])}}class pT extends(XO(yA,vA)){constructor(e){super(e),this.element=new _S}ArrayElement(e){return e.forEach((e=>{const t=wA(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Aj}}const{fixedFields:dT}=yS.visitors.document.objects.JSONSchema,mT={visitors:{value:vA,document:{objects:{OpenApi:{$visitor:EA,fixedFields:{openapi:$A,info:{$ref:"#/visitors/document/objects/Info"},servers:RA,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:mP,tags:pT,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:OA,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}}}},Contact:{$visitor:SA,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:AA,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:IA,fixedFields:{url:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}},description:{$ref:"#/visitors/value"},variables:_A}},ServerVariable:{$visitor:DA,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:vP,fixedFields:{schemas:CP,responses:MP,parameters:NP,examples:qP,requestBodies:BP,headers:LP,securitySchemes:UP,links:JP,callbacks:VP}},Paths:{$visitor:WP},PathItem:{$visitor:aT,fixedFields:{$ref:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},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:class extends RA{constructor(e){super(e),this.element=new HS}},parameters:class extends iT{constructor(e){super(e),this.element=new zS}}}},Operation:{$visitor:sT,fixedFields:{tags:class extends vA{constructor(e){super(e),this.element=new ZS}ArrayElement(e){return this.element=this.element.concat(Cj(e)),Aj}},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:class extends iT{constructor(e){super(e),this.element=new XS}},requestBody:class extends MA{constructor(e){super(e),this.alternator=[{predicate:bA,specPath:["document","objects","Reference"]},{predicate:Ch,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=MA.prototype.enter.call(this,e);return QA(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}},responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:oT,deprecated:{$ref:"#/visitors/value"},security:cT,servers:class extends RA{constructor(e){super(e),this.element=new eA}}}},ExternalDocumentation:{$visitor:HP,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:gP,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:wP,example:{$ref:"#/visitors/value"},examples:class extends fP{constructor(e){super(e),this.element=new WS}},content:class extends EP{constructor(e){super(e),this.element=new YS}}}},RequestBody:{$visitor:YP,fixedFields:{description:{$ref:"#/visitors/value"},content:class extends EP{constructor(e){super(e),this.element=new tA}},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:CA,fixedFields:{schema:hP,example:{$ref:"#/visitors/value"},examples:class extends fP{constructor(e){super(e),this.element=new rA}},encoding:pP}},Encoding:{$visitor:zP,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:XP,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:rT,fixedFields:{default:nT}},Response:{$visitor:KP,fixedFields:{description:{$ref:"#/visitors/value"},headers:QP,content:class extends EP{constructor(e){super(e),this.element=new oA}},links:eT}},Callback:{$visitor:ZP},Example:{$visitor:GP,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}}},Link:{$visitor:PA,fixedFields:{operationRef:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},operationId:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},parameters:FA,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:xP,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:jP,example:{$ref:"#/visitors/value"},examples:class extends fP{constructor(e){super(e),this.element=new hA}},content:class extends EP{constructor(e){super(e),this.element=new fA}}}},Tag:{$visitor:yP,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:bP,fixedFields:{$ref:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:$P,fixedFields:{title:dT.title,multipleOf:dT.multipleOf,maximum:dT.maximum,exclusiveMaximum:dT.exclusiveMaximum,minimum:dT.minimum,exclusiveMinimum:dT.exclusiveMinimum,maxLength:dT.maxLength,minLength:dT.minLength,pattern:dT.pattern,maxItems:dT.maxItems,minItems:dT.minItems,uniqueItems:dT.uniqueItems,maxProperties:dT.maxProperties,minProperties:dT.minProperties,required:dT.required,enum:dT.enum,type:class extends kP{ArrayElement(e){return this.enter(e)}},allOf:class extends OP{ArrayElement(e){const t=OP.prototype.ArrayElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},anyOf:class extends SP{ArrayElement(e){const t=SP.prototype.ArrayElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},oneOf:class extends AP{ArrayElement(e){const t=AP.prototype.ArrayElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},not:IP,items:class extends PP{ObjectElement(e){const t=PP.prototype.ObjectElement.call(this,e);return QA(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},properties:class extends TP{ObjectElement(e){const t=TP.prototype.ObjectElement.call(this,e);return this.element.filter(QA).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},additionalProperties:IP,description:dT.description,format:dT.format,default:dT.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:RP,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:DP}},XML:{$visitor:_P,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:uT,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:lT,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:hT,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:fT}},SecurityRequirement:{$visitor:dP}},extension:{$visitor:class extends yA{MemberElement(e){return this.element=Cj(e),this.element.classes.push("specification-extension"),Aj}}}}}},vT=()=>{const e=$j(IS);return{predicates:{...lP,isElement:sj,isStringElement:ij,isArrayElement:lj,isObjectElement:uj,isMemberElement:hj,includesClasses:wj,hasElementSourceMap:gj},namespace:e}},yT=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=zx(e),s=uE(mT),i=new(pd(t,s))({specObj:s});return Gj(n,i),zj(i.element,r,{toolboxCreator:vT,visitorOptions:{keyMap:dA,nodeTypeGetter:pA}})})(t,{specPath:e,...r});iO.refract=yT(["visitors","document","objects","Callback","$visitor"]),oO.refract=yT(["visitors","document","objects","Components","$visitor"]),cO.refract=yT(["visitors","document","objects","Contact","$visitor"]),lO.refract=yT(["visitors","document","objects","Example","$visitor"]),aO.refract=yT(["visitors","document","objects","Discriminator","$visitor"]),uO.refract=yT(["visitors","document","objects","Encoding","$visitor"]),hO.refract=yT(["visitors","document","objects","ExternalDocumentation","$visitor"]),fO.refract=yT(["visitors","document","objects","Header","$visitor"]),pO.refract=yT(["visitors","document","objects","Info","$visitor"]),dO.refract=yT(["visitors","document","objects","License","$visitor"]),mO.refract=yT(["visitors","document","objects","Link","$visitor"]),vO.refract=yT(["visitors","document","objects","MediaType","$visitor"]),yO.refract=yT(["visitors","document","objects","OAuthFlow","$visitor"]),bO.refract=yT(["visitors","document","objects","OAuthFlows","$visitor"]),gO.refract=yT(["visitors","document","objects","OpenApi","fixedFields","openapi"]),wO.refract=yT(["visitors","document","objects","OpenApi","$visitor"]),xO.refract=yT(["visitors","document","objects","Operation","$visitor"]),jO.refract=yT(["visitors","document","objects","Parameter","$visitor"]),EO.refract=yT(["visitors","document","objects","PathItem","$visitor"]),$O.refract=yT(["visitors","document","objects","Paths","$visitor"]),OO.refract=yT(["visitors","document","objects","Reference","$visitor"]),SO.refract=yT(["visitors","document","objects","RequestBody","$visitor"]),AO.refract=yT(["visitors","document","objects","Response","$visitor"]),PO.refract=yT(["visitors","document","objects","Responses","$visitor"]),OS.refract=yT(["visitors","document","objects","Schema","$visitor"]),SS.refract=yT(["visitors","document","objects","SecurityRequirement","$visitor"]),AS.refract=yT(["visitors","document","objects","SecurityScheme","$visitor"]),PS.refract=yT(["visitors","document","objects","Server","$visitor"]),TS.refract=yT(["visitors","document","objects","ServerVariable","$visitor"]),kS.refract=yT(["visitors","document","objects","Tag","$visitor"]),FS.refract=yT(["visitors","document","objects","XML","$visitor"]);class bT extends iO{}class gT extends oO{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}}class wT extends cO{}class xT extends aO{}class jT extends uO{}class ET extends lO{}class $T extends hO{}class OT extends fO{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class ST extends pO{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 AT extends Nx{static default=new AT("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}class PT extends dO{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}}class TT extends mO{}class kT extends vO{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class FT extends yO{}class IT extends bO{}class RT extends gO{}class DT extends Jx{constructor(e,t,r){super(e,t,r),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)}}class _T extends xO{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}}class CT extends jO{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class MT extends EO{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)}}class NT extends $O{}class qT extends OO{}Object.defineProperty(qT.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(qT.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});class BT extends SO{}let LT=class extends AO{};class UT extends PO{}class JT extends Jx{constructor(e,t,r){super(e,t,r),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)}}class VT extends SS{}class GT extends AS{}class HT extends PS{}class zT extends TS{}class XT extends kS{}class WT extends FS{}const YT={namespace:e=>{const{base:t}=e;return t.register("callback",bT),t.register("components",gT),t.register("contact",wT),t.register("discriminator",xT),t.register("encoding",jT),t.register("example",ET),t.register("externalDocumentation",$T),t.register("header",OT),t.register("info",ST),t.register("jsonSchemaDialect",AT),t.register("license",PT),t.register("link",TT),t.register("mediaType",kT),t.register("oAuthFlow",FT),t.register("oAuthFlows",IT),t.register("openapi",RT),t.register("openApi3_1",DT),t.register("operation",_T),t.register("parameter",CT),t.register("pathItem",MT),t.register("paths",NT),t.register("reference",qT),t.register("requestBody",BT),t.register("response",LT),t.register("responses",UT),t.register("schema",JT),t.register("securityRequirement",VT),t.register("securityScheme",GT),t.register("server",HT),t.register("serverVariable",zT),t.register("tag",XT),t.register("xml",WT),t}};class ZT extends Jx{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(ZT.primaryClass)}}class KT extends Jx{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(KT.primaryClass)}}const QT=e=>{if(sj(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ek={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"],...Jj};class tk{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);uj(e)||(e=new Jx,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);lj(t)||(t=new Ux,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}}const rk=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t,s=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(oE(e.name)===oE(t.name)&&oE(e.in)===oE(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new tk(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,n,s,o){if(o.some(r.isComponentsElement))return;const{parameters:c}=e;r.isArrayElement(c)?i.push([...c.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,c,a){const u=Np(i);if(!Array.isArray(u)||0===u.length)return;const l=n([...a,r,e]);if(o.includes(l))return;const h=dd([],["parameters","content"],e),f=Td(s,[...h,...u]);e.parameters=new XS(f),o.append(l)}}}}},nk=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let s,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new tk(t,e,"security-requirements"),r.isArrayElement(t.security)&&(s=t.security)},leave(){i=void 0,s=void 0}},OperationElement:{leave(e,t,o,c,a){if(a.some(r.isComponentsElement))return;const u=n([...a,o,e]);if(i.includes(u))return;var l;void 0===e.security&&void 0!==s&&(e.security=new QS(null===(l=s)||void 0===l?void 0:l.content),i.append(u))}}}}},sk=e=>e.replace(/\s/g,""),ik=e=>e.replace(/\W/gi,"_"),ok=(e,t,r)=>{const n=sk(e);return n.length>0?ik(n):((e,t)=>`${ik(sk(t.toLowerCase()))}${ik(sk(e))}`)(t,r)},ck=({storageField:e="x-normalized",operationIdNormalizer:t=ok}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:s,namespace:i}=r,o=[],c=[],a=[];let u;return{visitor:{OpenApi3_1Element:{enter(t){u=new tk(t,e,"operation-ids")},leave(){const e=Hp((e=>oE(e.operationId)),c);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,r)=>{const n=`${e}${r+1}`;t.operationId=new i.elements.String(n)})))})),a.forEach((e=>{if(void 0===e.operationId)return;const t=String(oE(e.operationId)),r=c.find((e=>oE(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Cj.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),c.length=0,a.length=0,u=void 0}},PathItemElement:{enter(e){const t=Ap("path",oE(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,n,a,l){if(void 0===e.operationId)return;const h=s([...l,n,e]);if(u.includes(h))return;const f=String(oE(e.operationId)),p=Np(o),d=Ap("method",oE(e.meta.get("http-method"))),m=t(f,p,d);f!==m&&(e.operationId=new i.elements.String(m),e.set("__originalOperationId",f),e.meta.set("originalOperationId",f),c.push(e),u.append(h))}},LinkElement:{leave(e){n.isLinkElement(e)&&void 0!==e.operationId&&a.push(e)}}}}},ak=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let s;return{visitor:{OpenApi3_1Element:{enter(t){s=new tk(t,e,"parameter-examples")},leave(){s=void 0}},ParameterElement:{leave(e,t,i,o,c){var a,u;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(u=e.schema)||void 0===u?void 0:u.examples))return;const l=n([...c,i,e]);if(!s.includes(l)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Cj.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),s.append(l)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),s.append(l)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Cj(e.example)]),s.append(l)),void 0!==e.schema.example&&(e.schema.set("example",Cj(e.example)),s.append(l)))}}}}}},uk=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let s;return{visitor:{OpenApi3_1Element:{enter(t){s=new tk(t,e,"header-examples")},leave(){s=void 0}},HeaderElement:{leave(e,t,i,o,c){var a,u;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(u=e.schema)||void 0===u?void 0:u.examples))return;const l=n([...c,i,e]);if(!s.includes(l)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Cj.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),s.append(l)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),s.append(l)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Cj(e.example)]),s.append(l)),void 0!==e.schema.example&&(e.schema.set("example",Cj(e.example)),s.append(l)))}}}}}},lk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bT||e(n)&&t("callback",n)&&r("object",n))),hk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gT||e(n)&&t("components",n)&&r("object",n))),fk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wT||e(n)&&t("contact",n)&&r("object",n))),pk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ET||e(n)&&t("example",n)&&r("object",n))),dk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $T||e(n)&&t("externalDocumentation",n)&&r("object",n))),mk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof OT||e(n)&&t("header",n)&&r("object",n))),vk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ST||e(n)&&t("info",n)&&r("object",n))),yk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof AT||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),bk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof PT||e(n)&&t("license",n)&&r("object",n))),gk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof TT||e(n)&&t("link",n)&&r("object",n))),wk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof RT||e(n)&&t("openapi",n)&&r("string",n))),xk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof DT||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),jk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _T||e(n)&&t("operation",n)&&r("object",n))),Ek=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof CT||e(n)&&t("parameter",n)&&r("object",n))),$k=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof MT||e(n)&&t("pathItem",n)&&r("object",n))),Ok=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof NT||e(n)&&t("paths",n)&&r("object",n))),Sk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qT||e(n)&&t("reference",n)&&r("object",n))),Ak=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof BT||e(n)&&t("requestBody",n)&&r("object",n))),Pk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof LT||e(n)&&t("response",n)&&r("object",n))),Tk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof UT||e(n)&&t("responses",n)&&r("object",n))),kk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof JT||e(n)&&t("schema",n)&&r("object",n))),Fk=e=>aj(e)&&e.classes.includes("boolean-json-schema"),Ik=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof VT||e(n)&&t("securityRequirement",n)&&r("object",n))),Rk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof GT||e(n)&&t("securityScheme",n)&&r("object",n))),Dk=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof HT||e(n)&&t("server",n)&&r("object",n))),_k=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zT||e(n)&&t("serverVariable",n)&&r("object",n))),Ck=nj((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kT||e(n)&&t("mediaType",n)&&r("object",n))),Mk=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:Fk,isCallbackElement:lk,isComponentsElement:hk,isContactElement:fk,isExampleElement:pk,isExternalDocumentationElement:dk,isHeaderElement:mk,isInfoElement:vk,isJsonSchemaDialectElement:yk,isLicenseElement:bk,isLinkElement:gk,isMediaTypeElement:Ck,isOpenApi3_1Element:xk,isOpenapiElement:wk,isOperationElement:jk,isParameterElement:Ek,isPathItemElement:$k,isPathItemElementExternal:e=>{if(!$k(e))return!1;if(!ij(e.$ref))return!1;const t=oE(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isPathsElement:Ok,isReferenceElement:Sk,isReferenceElementExternal:e=>{if(!Sk(e))return!1;if(!ij(e.$ref))return!1;const t=oE(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},isRequestBodyElement:Ak,isResponseElement:Pk,isResponsesElement:Tk,isSchemaElement:kk,isSecurityRequirementElement:Ik,isSecuritySchemeElement:Rk,isServerElement:Dk,isServerVariableElement:_k},Symbol.toStringTag,{value:"Module"})),Nk=e=>{const t=e.reduce(((t,r,n)=>{if(hj(r)){const e=String(oE(r.key));t.push(e)}else if(lj(e[n-2])){const s=String(e[n-2].content.indexOf(r));t.push(s)}return t}),[]);return tO(t)},qk=()=>{const e=$j(YT);return{predicates:{...Mk,isElement:sj,isStringElement:ij,isArrayElement:lj,isObjectElement:uj,isMemberElement:hj,isServersElement:uP,includesClasses:wj,hasElementSourceMap:gj},ancestorLineageToJSONPointer:Nk,namespace:e}};class Bk extends(XO(jA,vA)){constructor(e){super(e),this.element=new DT,this.specPath=Wf(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,jA.prototype.ObjectElement.call(this,e)}}const{visitors:{document:{objects:{Info:{$visitor:Lk}}}}}=mT;const{visitors:{document:{objects:{Contact:{$visitor:Uk}}}}}=mT;const{visitors:{document:{objects:{License:{$visitor:Jk}}}}}=mT;const{visitors:{document:{objects:{Link:{$visitor:Vk}}}}}=mT;class Gk extends(XO(yA,vA)){StringElement(e){const t=new AT(oE(e));return this.copyMetaAndAttributes(e,t),this.element=t,Aj}}const{visitors:{document:{objects:{Server:{$visitor:Hk}}}}}=mT;const{visitors:{document:{objects:{ServerVariable:{$visitor:zk}}}}}=mT;const{visitors:{document:{objects:{MediaType:{$visitor:Xk}}}}}=mT;const{visitors:{document:{objects:{SecurityRequirement:{$visitor:Wk}}}}}=mT;const{visitors:{document:{objects:{Components:{$visitor:Yk}}}}}=mT;const{visitors:{document:{objects:{Tag:{$visitor:Zk}}}}}=mT;const{visitors:{document:{objects:{Reference:{$visitor:Kk}}}}}=mT;const{visitors:{document:{objects:{Parameter:{$visitor:Qk}}}}}=mT;const{visitors:{document:{objects:{Header:{$visitor:eF}}}}}=mT;class tF{parent;constructor({parent:e}){this.parent=e}}class rF extends(XO(jA,tF,vA)){constructor(e){super(e),this.element=new JT,this.specPath=Wf(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=AT.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=jA.prototype.ObjectElement.call(this,e);return ij(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&yk(this.openApiSemanticElement.jsonSchemaDialect)?oE(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&ij(this.openApiGenericElement.get("jsonSchemaDialect"))?oE(this.openApiGenericElement.get("jsonSchemaDialect")):oE(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(Id(this.parent)&&!ij(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(kk(this.parent)&&!ij(e.get("$schema"))){const e=Ap(oE(this.parent.meta.get("inherited$schema")),oE(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Cj(this.parent.getMetaProperty("inherited$id",[])):new Ux,r=oE(e.get("$id"));Xd(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}class nF extends(XO(kA,tF,vA)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-$defs"),this.specPath=Wf(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}let sF=class extends(XO(yA,tF,vA)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(uj(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Cj(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Aj}};class iF extends(XO(yA,tF,vA)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(uj(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Cj(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Aj}}class oF extends(XO(yA,tF,vA)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(uj(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Cj(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Aj}}class cF extends(XO(kA,tF,vA)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Wf(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}class aF extends(XO(yA,tF,vA)){constructor(e){super(e),this.element=new Ux,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(uj(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Cj(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Aj}}class uF extends(XO(kA,tF,vA)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-properties"),this.specPath=Wf(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}class lF extends(XO(kA,tF,vA)){constructor(e){super(e),this.element=new Jx,this.element.classes.push("json-schema-patternProperties"),this.specPath=Wf(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const{visitors:{document:{objects:{Discriminator:{$visitor:hF}}}}}=mT;const{visitors:{document:{objects:{XML:{$visitor:fF}}}}}=mT;class pF extends(XO(kA,vA)){constructor(e){super(e),this.element=new MS,this.specPath=Wf(["document","objects","Schema"])}}class dF extends(XO(kA,vA)){constructor(e){super(e),this.element=new ZT,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(Sk).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const{visitors:{document:{objects:{Example:{$visitor:mF}}}}}=mT;const{visitors:{document:{objects:{ExternalDocumentation:{$visitor:vF}}}}}=mT;const{visitors:{document:{objects:{Encoding:{$visitor:yF}}}}}=mT;const{visitors:{document:{objects:{Paths:{$visitor:bF}}}}}=mT;const{visitors:{document:{objects:{RequestBody:{$visitor:gF}}}}}=mT;const{visitors:{document:{objects:{Callback:{$visitor:wF}}}}}=mT;const{visitors:{document:{objects:{Response:{$visitor:xF}}}}}=mT;const{visitors:{document:{objects:{Responses:{$visitor:jF}}}}}=mT;const{visitors:{document:{objects:{Operation:{$visitor:EF}}}}}=mT;const{visitors:{document:{objects:{PathItem:{$visitor:$F}}}}}=mT;const{visitors:{document:{objects:{SecurityScheme:{$visitor:OF}}}}}=mT;const{visitors:{document:{objects:{OAuthFlows:{$visitor:SF}}}}}=mT;const{visitors:{document:{objects:{OAuthFlow:{$visitor:AF}}}}}=mT;class PF extends(XO(kA,vA)){constructor(e){super(e),this.element=new KT,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=kA.prototype.ObjectElement.call(this,e);return this.element.filter(Sk).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter($k).forEach(((e,t)=>{e.setMetaProperty("webhook-name",oE(t))})),t}}const TF={visitors:{value:mT.visitors.value,document:{objects:{OpenApi:{$visitor:Bk,fixedFields:{openapi:mT.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Gk,servers:mT.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:PF,components:{$ref:"#/visitors/document/objects/Components"},security:mT.visitors.document.objects.OpenApi.fixedFields.security,tags:mT.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:class extends Lk{constructor(e){super(e),this.element=new ST}},fixedFields:{title:mT.visitors.document.objects.Info.fixedFields.title,description:mT.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:mT.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:mT.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:class extends Uk{constructor(e){super(e),this.element=new wT}},fixedFields:{name:mT.visitors.document.objects.Contact.fixedFields.name,url:mT.visitors.document.objects.Contact.fixedFields.url,email:mT.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:class extends Jk{constructor(e){super(e),this.element=new PT}},fixedFields:{name:mT.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:mT.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:class extends Hk{constructor(e){super(e),this.element=new HT}},fixedFields:{url:mT.visitors.document.objects.Server.fixedFields.url,description:mT.visitors.document.objects.Server.fixedFields.description,variables:mT.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:class extends zk{constructor(e){super(e),this.element=new zT}},fixedFields:{enum:mT.visitors.document.objects.ServerVariable.fixedFields.enum,default:mT.visitors.document.objects.ServerVariable.fixedFields.default,description:mT.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:class extends Yk{constructor(e){super(e),this.element=new gT}},fixedFields:{schemas:pF,responses:mT.visitors.document.objects.Components.fixedFields.responses,parameters:mT.visitors.document.objects.Components.fixedFields.parameters,examples:mT.visitors.document.objects.Components.fixedFields.examples,requestBodies:mT.visitors.document.objects.Components.fixedFields.requestBodies,headers:mT.visitors.document.objects.Components.fixedFields.headers,securitySchemes:mT.visitors.document.objects.Components.fixedFields.securitySchemes,links:mT.visitors.document.objects.Components.fixedFields.links,callbacks:mT.visitors.document.objects.Components.fixedFields.callbacks,pathItems:dF}},Paths:{$visitor:class extends bF{constructor(e){super(e),this.element=new NT}}},PathItem:{$visitor:class extends $F{constructor(e){super(e),this.element=new MT}},fixedFields:{$ref:mT.visitors.document.objects.PathItem.fixedFields.$ref,summary:mT.visitors.document.objects.PathItem.fixedFields.summary,description:mT.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:mT.visitors.document.objects.PathItem.fixedFields.servers,parameters:mT.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:class extends EF{constructor(e){super(e),this.element=new _T}},fixedFields:{tags:mT.visitors.document.objects.Operation.fixedFields.tags,summary:mT.visitors.document.objects.Operation.fixedFields.summary,description:mT.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:mT.visitors.document.objects.Operation.fixedFields.operationId,parameters:mT.visitors.document.objects.Operation.fixedFields.parameters,requestBody:mT.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:mT.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:mT.visitors.document.objects.Operation.fixedFields.deprecated,security:mT.visitors.document.objects.Operation.fixedFields.security,servers:mT.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:class extends vF{constructor(e){super(e),this.element=new $T}},fixedFields:{description:mT.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:mT.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:class extends Qk{constructor(e){super(e),this.element=new CT}},fixedFields:{name:mT.visitors.document.objects.Parameter.fixedFields.name,in:mT.visitors.document.objects.Parameter.fixedFields.in,description:mT.visitors.document.objects.Parameter.fixedFields.description,required:mT.visitors.document.objects.Parameter.fixedFields.required,deprecated:mT.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:mT.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:mT.visitors.document.objects.Parameter.fixedFields.style,explode:mT.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:mT.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mT.visitors.document.objects.Parameter.fixedFields.example,examples:mT.visitors.document.objects.Parameter.fixedFields.examples,content:mT.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:class extends gF{constructor(e){super(e),this.element=new BT}},fixedFields:{description:mT.visitors.document.objects.RequestBody.fixedFields.description,content:mT.visitors.document.objects.RequestBody.fixedFields.content,required:mT.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:class extends Xk{constructor(e){super(e),this.element=new kT}},fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:mT.visitors.document.objects.MediaType.fixedFields.example,examples:mT.visitors.document.objects.MediaType.fixedFields.examples,encoding:mT.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:class extends yF{constructor(e){super(e),this.element=new jT}},fixedFields:{contentType:mT.visitors.document.objects.Encoding.fixedFields.contentType,headers:mT.visitors.document.objects.Encoding.fixedFields.headers,style:mT.visitors.document.objects.Encoding.fixedFields.style,explode:mT.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:mT.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:class extends jF{constructor(e){super(e),this.element=new UT}},fixedFields:{default:mT.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:class extends xF{constructor(e){super(e),this.element=new LT}},fixedFields:{description:mT.visitors.document.objects.Response.fixedFields.description,headers:mT.visitors.document.objects.Response.fixedFields.headers,content:mT.visitors.document.objects.Response.fixedFields.content,links:mT.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:class extends wF{constructor(e){super(e),this.element=new bT,this.specPath=e=>bA(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=wF.prototype.ObjectElement.call(this,e);return this.element.filter(Sk).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}},Example:{$visitor:class extends mF{constructor(e){super(e),this.element=new ET}},fixedFields:{summary:mT.visitors.document.objects.Example.fixedFields.summary,description:mT.visitors.document.objects.Example.fixedFields.description,value:mT.visitors.document.objects.Example.fixedFields.value,externalValue:mT.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:class extends Vk{constructor(e){super(e),this.element=new TT}},fixedFields:{operationRef:mT.visitors.document.objects.Link.fixedFields.operationRef,operationId:mT.visitors.document.objects.Link.fixedFields.operationId,parameters:mT.visitors.document.objects.Link.fixedFields.parameters,requestBody:mT.visitors.document.objects.Link.fixedFields.requestBody,description:mT.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:class extends eF{constructor(e){super(e),this.element=new OT}},fixedFields:{description:mT.visitors.document.objects.Header.fixedFields.description,required:mT.visitors.document.objects.Header.fixedFields.required,deprecated:mT.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:mT.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:mT.visitors.document.objects.Header.fixedFields.style,explode:mT.visitors.document.objects.Header.fixedFields.explode,allowReserved:mT.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mT.visitors.document.objects.Header.fixedFields.example,examples:mT.visitors.document.objects.Header.fixedFields.examples,content:mT.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:class extends Zk{constructor(e){super(e),this.element=new XT}},fixedFields:{name:mT.visitors.document.objects.Tag.fixedFields.name,description:mT.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:class extends Kk{constructor(e){super(e),this.element=new qT}},fixedFields:{$ref:mT.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:rF,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:class extends vA{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}},$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},$defs:nF,$comment:{$ref:"#/visitors/value"},allOf:sF,anyOf:iF,oneOf:oF,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:cF,prefixItems:aF,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:uF,patternProperties:lF,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:class extends vA{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}},enum:class extends vA{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}},const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:class extends vA{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}},title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:class extends vA{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},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:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:class extends hF{constructor(e){super(e),this.element=new xT,this.canSupportSpecificationExtensions=!0}},fixedFields:{propertyName:mT.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:mT.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:class extends fF{constructor(e){super(e),this.element=new WT}},fixedFields:{name:mT.visitors.document.objects.XML.fixedFields.name,namespace:mT.visitors.document.objects.XML.fixedFields.namespace,prefix:mT.visitors.document.objects.XML.fixedFields.prefix,attribute:mT.visitors.document.objects.XML.fixedFields.attribute,wrapped:mT.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:class extends OF{constructor(e){super(e),this.element=new GT}},fixedFields:{type:mT.visitors.document.objects.SecurityScheme.fixedFields.type,description:mT.visitors.document.objects.SecurityScheme.fixedFields.description,name:mT.visitors.document.objects.SecurityScheme.fixedFields.name,in:mT.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:mT.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:mT.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:mT.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:class extends SF{constructor(e){super(e),this.element=new IT}},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:class extends AF{constructor(e){super(e),this.element=new FT}},fixedFields:{authorizationUrl:mT.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:mT.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:mT.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:mT.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:class extends Wk{constructor(e){super(e),this.element=new VT}}}},extension:{$visitor:mT.visitors.document.extension.$visitor}}}},kF=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=zx(e),s=uE(TF),i=new(pd(t,s))({specObj:s});return Gj(n,i),zj(i.element,r,{toolboxCreator:qk,visitorOptions:{keyMap:ek,nodeTypeGetter:QT}})})(t,{specPath:e,...r});bT.refract=kF(["visitors","document","objects","Callback","$visitor"]),gT.refract=kF(["visitors","document","objects","Components","$visitor"]),wT.refract=kF(["visitors","document","objects","Contact","$visitor"]),ET.refract=kF(["visitors","document","objects","Example","$visitor"]),xT.refract=kF(["visitors","document","objects","Discriminator","$visitor"]),jT.refract=kF(["visitors","document","objects","Encoding","$visitor"]),$T.refract=kF(["visitors","document","objects","ExternalDocumentation","$visitor"]),OT.refract=kF(["visitors","document","objects","Header","$visitor"]),ST.refract=kF(["visitors","document","objects","Info","$visitor"]),AT.refract=kF(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),PT.refract=kF(["visitors","document","objects","License","$visitor"]),TT.refract=kF(["visitors","document","objects","Link","$visitor"]),kT.refract=kF(["visitors","document","objects","MediaType","$visitor"]),FT.refract=kF(["visitors","document","objects","OAuthFlow","$visitor"]),IT.refract=kF(["visitors","document","objects","OAuthFlows","$visitor"]),RT.refract=kF(["visitors","document","objects","OpenApi","fixedFields","openapi"]),DT.refract=kF(["visitors","document","objects","OpenApi","$visitor"]),_T.refract=kF(["visitors","document","objects","Operation","$visitor"]),CT.refract=kF(["visitors","document","objects","Parameter","$visitor"]),MT.refract=kF(["visitors","document","objects","PathItem","$visitor"]),NT.refract=kF(["visitors","document","objects","Paths","$visitor"]),qT.refract=kF(["visitors","document","objects","Reference","$visitor"]),BT.refract=kF(["visitors","document","objects","RequestBody","$visitor"]),LT.refract=kF(["visitors","document","objects","Response","$visitor"]),UT.refract=kF(["visitors","document","objects","Responses","$visitor"]),JT.refract=kF(["visitors","document","objects","Schema","$visitor"]),VT.refract=kF(["visitors","document","objects","SecurityRequirement","$visitor"]),GT.refract=kF(["visitors","document","objects","SecurityScheme","$visitor"]),HT.refract=kF(["visitors","document","objects","Server","$visitor"]),zT.refract=kF(["visitors","document","objects","ServerVariable","$visitor"]),XT.refract=kF(["visitors","document","objects","Tag","$visitor"]),WT.refract=kF(["visitors","document","objects","XML","$visitor"]);class FF extends yE{constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),n=new Yx;if(0!==r.length){const e=new Nx(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new AE(`Error parsing "${e.uri}"`,{cause:t})}}}class IF extends class{name;constructor({name:e}){this.name=e}}{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new vE('"openapi-3-1" dereference strategy is not available.');const n=new Qm,s=nv(t,{resolve:{internal:!1},dereference:{refSet:n}});return await r.dereference(e,s),n}}const{AbortController:RF,AbortSignal:DF}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=RF),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=DF);class _F extends class extends class{name;constructor({name:e}){this.name=e}}{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:n=5,withCredentials:s=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=n,this.withCredentials=s}canRead(e){return Um(e.uri)}}{swaggerHTTPClient=_t;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=_t,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:n}=r,s=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",c=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:n,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:c,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new uv(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}class CF extends yE{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new AE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new Yx,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=lE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new AE(`Error parsing "${e.uri}"`,{cause:t})}}}class MF extends yE{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return It.load(e.toString(),{schema:xt}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new AE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Yx,r=e.toString();try{const e=It.load(r,{schema:xt});if(this.allowEmpty&&void 0===e)return t;const n=lE(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new AE(`Error parsing "${e.uri}"`,{cause:t})}}}class NF extends yE{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new nO(...sO.filterByFormat("generic"),...sO.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)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 AE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Yx,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=DT.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new AE(`Error parsing "${e.uri}"`,{cause:t})}}}class qF extends yE{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new nO(...sO.filterByFormat("generic"),...sO.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return It.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new AE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Yx,r=e.toString();try{const e=It.load(r,{schema:xt});if(this.allowEmpty&&void 0===e)return t;const n=DT.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new AE(`Error parsing "${e.uri}"`,{cause:t})}}}const BF=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),LF=e=>{const t=Gm(e);return jm("#",t)},UF=(e,t)=>{const r=(e=>{if(!BF(e))throw new $E(e);return e})(e),n=eE((e=>kk(e)&&oE(e.$anchor)===r),t);if(Id(n))throw new xE(`Evaluation failed on token: "${r}"`);return n},JF=(e,t)=>{if(void 0===t.$ref)return;const r=Gm(oE(t.$ref)),n=oE(t.meta.get("inherited$id"));return`${zf(((e,t)=>Xm(e,Wm(Hm(t)))),e,[...n,oE(t.$ref)])}${"#"===r?"":r}`},VF=e=>{if(VF.cache.has(e))return VF.cache.get(e);const t=JT.refract(e);return VF.cache.set(e,t),t};VF.cache=new WeakMap;const GF=e=>bj(e)?VF(e):e,HF=(e,t)=>{const{cache:r}=HF,n=Hm(e),s=e=>kk(e)&&void 0!==e.$id;if(!r.has(t)){const e=((e,t)=>{const r=new Vj({predicate:e});return Gj(t,r),new _x(r.result)})(s,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>{const t=((e,t)=>{if(void 0===t.$id)return;const r=oE(t.meta.get("inherited$id"));return zf(((e,t)=>Xm(e,Wm(Hm(t)))),e,[...r,oE(t.$id)])})(n,e);return t===n}));if(Id(i))throw new EE(`Evaluation failed on URI: "${e}"`);let o,c;return BF(LF(e))?(o=UF,c=LF(e)):(o=rO,c=eO(e)),o(c,i)};HF.cache=new WeakMap;const zF=Gj[Symbol.for("nodejs.util.promisify.custom")],XF=new Zj,WF=(e,t,r,n)=>{hj(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class YF{indirections;namespace;reference;options;ancestors;refractCache;constructor({reference:e,namespace:t,options:r,indirections:n=[],ancestors:s=new bE,refractCache:i=new Map}){this.indirections=n,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new bE(...s),this.refractCache=i}toBaseURI(e){return Xm(this.reference.uri,Wm(Hm(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new SE(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(yd(t,"uri"));const n=await hv(Ym(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new gE({uri:t,value:Cj(n),depth:this.reference.depth+1});if(r.add(s),this.options.dereference.immutable){const e=new gE({uri:`immutable://${t}`,value:n,depth:this.reference.depth+1});r.add(e)}return s}toAncestorLineage(e){const t=new Set(e.filter(sj));return[new bE(...this.ancestors,t),t]}async ReferenceElement(e,t,r,n,s,i){if(this.indirections.includes(e))return!1;const[o,c]=this.toAncestorLineage([...s,r]),a=this.toBaseURI(oE(e.$ref)),u=Hm(this.reference.uri)===a,l=!u;if(!this.options.resolve.internal&&u)return!1;if(!this.options.resolve.external&&l)return!1;const h=await this.toReference(oE(e.$ref)),f=Xm(a,oE(e.$ref));this.indirections.push(e);const p=eO(f);let d=rO(p,h.value.result);if(d.id=XF.identify(d),bj(d)){const t=oE(e.meta.get("referenced-element")),r=`${t}-${oE(XF.identify(d))}`;if(this.refractCache.has(r))d=this.refractCache.get(r);else if(bA(d))d=qT.refract(d),d.setMetaProperty("referenced-element",t),this.refractCache.set(r,d);else{d=this.namespace.getElementClass(t).refract(d),this.refractCache.set(r,d)}}if(e===d)throw new Fh("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new OE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(d)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Fh("Circular reference detected");if("replace"===this.options.dereference.circular){var m,v;const t=new Gx(d.id,{type:"reference",uri:h.uri,$ref:oE(e.$ref)}),n=(null!==(m=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(n,WF),!r&&n}}const y=Hm(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((l||y||Sk(d)||b)&&!o.includesCycle(d)){c.add(e);const t=new YF({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});d=await zF(d,t,{keyMap:ek,nodeTypeGetter:QT}),c.delete(e)}this.indirections.pop();const g=qj(d);return g.setMetaProperty("id",XF.generateId()),g.setMetaProperty("ref-fields",{$ref:oE(e.$ref),description:oE(e.description),summary:oE(e.summary)}),g.setMetaProperty("ref-origin",h.uri),g.setMetaProperty("ref-referencing-element-id",Cj(XF.identify(e))),uj(d)&&uj(g)&&(e.hasKey("description")&&"description"in d&&(g.remove("description"),g.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in d&&(g.remove("summary"),g.set("summary",e.get("summary")))),i.replaceWith(g,WF),!r&&g}async PathItemElement(e,t,r,n,s,i){if(!ij(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,c]=this.toAncestorLineage([...s,r]),a=this.toBaseURI(oE(e.$ref)),u=Hm(this.reference.uri)===a,l=!u;if(!this.options.resolve.internal&&u)return;if(!this.options.resolve.external&&l)return;const h=await this.toReference(oE(e.$ref)),f=Xm(a,oE(e.$ref));this.indirections.push(e);const p=eO(f);let d=rO(p,h.value.result);if(d.id=XF.identify(d),bj(d)){const e=`path-item-${oE(XF.identify(d))}`;this.refractCache.has(e)?d=this.refractCache.get(e):(d=MT.refract(d),this.refractCache.set(e,d))}if(e===d)throw new Fh("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new OE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(d)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Fh("Circular reference detected");if("replace"===this.options.dereference.circular){var m,v;const t=new Gx(d.id,{type:"path-item",uri:h.uri,$ref:oE(e.$ref)}),n=(null!==(m=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(n,WF),!r&&n}}const y=Hm(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((l||y||$k(d)&&ij(d.$ref)||b)&&!o.includesCycle(d)){c.add(e);const t=new YF({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});d=await zF(d,t,{keyMap:ek,nodeTypeGetter:QT}),c.delete(e)}if(this.indirections.pop(),$k(d)){const t=new MT([...d.content],Cj(d.meta),Cj(d.attributes));t.setMetaProperty("id",XF.generateId()),e.forEach(((e,r,n)=>{t.remove(oE(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oE(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",Cj(XF.identify(e))),d=t}return i.replaceWith(d,WF),r?void 0:d}async LinkElement(e,t,r,n,s,i){if(!ij(e.operationRef)&&!ij(e.operationId))return;if(ij(e.operationRef)&&ij(e.operationId))throw new Fh("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ij(e.operationRef)){var c;const t=eO(oE(e.operationRef)),n=this.toBaseURI(oE(e.operationRef)),s=Hm(this.reference.uri)===n,a=!s;if(!this.options.resolve.internal&&s)return;if(!this.options.resolve.external&&a)return;const u=await this.toReference(oE(e.operationRef));if(o=rO(t,u.value.result),bj(o)){const e=`operation-${oE(XF.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=_T.refract(o),this.refractCache.set(e,o))}o=qj(o),o.setMetaProperty("ref-origin",u.uri);const l=qj(e);return null===(c=l.operationRef)||void 0===c||c.meta.set("operation",o),i.replaceWith(l,WF),r?void 0:l}if(ij(e.operationId)){var a;const t=oE(e.operationId),n=await this.toReference(Ym(this.reference.uri));if(o=eE((e=>jk(e)&&sj(e.operationId)&&e.operationId.equals(t)),n.value.result),Id(o))throw new Fh(`OperationElement(operationId=${t}) not found.`);const s=qj(e);return null===(a=s.operationId)||void 0===a||a.meta.set("operation",o),i.replaceWith(s,WF),r?void 0:s}}async ExampleElement(e,t,r,n,s,i){if(!ij(e.externalValue))return;if(e.hasKey("value")&&ij(e.externalValue))throw new Fh("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(oE(e.externalValue)),c=Hm(this.reference.uri)===o,a=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&a)return;const u=await this.toReference(oE(e.externalValue)),l=qj(u.value.result);l.setMetaProperty("ref-origin",u.uri);const h=qj(e);return h.value=l,i.replaceWith(h,WF),r?void 0:h}async SchemaElement(e,t,r,n,s,i){if(!ij(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,c]=this.toAncestorLineage([...s,r]);let a=await this.toReference(Ym(this.reference.uri)),{uri:u}=a;const l=JF(u,e),h=Hm(l),f=new Km({uri:h}),p=ld((e=>e.canRead(f)),this.options.resolve.resolvers),d=!p;let m,v=Hm(this.reference.uri)===l,y=!v;this.indirections.push(e);try{if(p||d){u=this.toBaseURI(l);const e=l,t=GF(a.value.result);if(m=HF(e,t),m=GF(m),m.id=XF.identify(m),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&y)return}else{if(u=this.toBaseURI(l),v=Hm(this.reference.uri)===u,y=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(Ym(l));const e=eO(l),t=GF(a.value.result);m=rO(e,t),m=GF(m),m.id=XF.identify(m)}}catch(e){if(!(d&&e instanceof EE))throw e;if(BF(LF(l))){if(v=Hm(this.reference.uri)===u,y=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(Ym(l));const e=LF(l),t=GF(a.value.result);m=UF(e,t),m=GF(m),m.id=XF.identify(m)}else{if(u=this.toBaseURI(l),v=Hm(this.reference.uri)===u,y=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(Ym(l));const e=eO(l),t=GF(a.value.result);m=rO(e,t),m=GF(m),m.id=XF.identify(m)}}if(e===m)throw new Fh("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new OE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(a.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Fh("Circular reference detected");if("replace"===this.options.dereference.circular){var b,g;const t=new Gx(m.id,{type:"json-schema",uri:a.uri,$ref:oE(e.$ref)}),n=(null!==(b=null===(g=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===g?void 0:g.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return i.replaceWith(n,WF),!r&&n}}const w=Hm(a.refSet.rootRef.uri)!==a.uri,x=["error","replace"].includes(this.options.dereference.circular);if((y||w||kk(m)&&ij(m.$ref)||x)&&!o.includesCycle(m)){c.add(e);const t=new YF({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await zF(m,t,{keyMap:ek,nodeTypeGetter:QT}),c.delete(e)}if(this.indirections.pop(),Fk(m)){const t=Cj(m);return t.setMetaProperty("id",XF.generateId()),t.setMetaProperty("ref-fields",{$ref:oE(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Cj(XF.identify(e))),i.replaceWith(t,WF),!r&&t}if(kk(m)){const t=new JT([...m.content],Cj(m.meta),Cj(m.attributes));t.setMetaProperty("id",XF.generateId()),e.forEach(((e,r,n)=>{t.remove(oE(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oE(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Cj(XF.identify(e))),m=t}return i.replaceWith(m,WF),r?void 0:m}}const ZF=Gj[Symbol.for("nodejs.util.promisify.custom")];const KF=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(hj(r)){const t=String(oE(r.key));e.push(t)}else if(lj(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])};class QF{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,n,s)=>{void 0!==e.properties&&uj(e.properties)&&e.properties.forEach((t=>{if(uj(t))try{const e=this.modelPropertyMacro(oE(t));t.set("default",e)}catch(t){var n,i;const o=new Error(t,{cause:t});o.fullPath=[...KF([...s,r,e]),"properties"],null===(n=this.options.dereference.dereferenceOpts)||void 0===n||null===(n=n.errors)||void 0===n||null===(i=n.push)||void 0===i||i.call(n,o)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}}class eI{options;SchemaElement={leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!lj(e.allOf)){var i,o;const t=new TypeError("allOf must be an array");return t.fullPath=[...KF([...s,r,e]),"allOf"],void(null===(i=this.options.dereference.dereferenceOpts)||void 0===i||null===(i=i.errors)||void 0===i||null===(o=i.push)||void 0===o||o.call(i,t))}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(kk)){var c,a;const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...KF([...s,r,e]),"allOf"],void(null===(c=this.options.dereference.dereferenceOpts)||void 0===c||null===(c=c.errors)||void 0===c||null===(a=c.push)||void 0===a||a.call(c,t))}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=dE.all([...t.content,e]);if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}}class tI{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,r,n,s)=>{const i=this.#e?oE(this.#e):null,o=oE(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){var c,a;const t=new Error(e,{cause:e});t.fullPath=KF([...s,r]),null===(c=this.options.dereference.dereferenceOpts)||void 0===c||null===(c=c.errors)||void 0===c||null===(a=c.push)||void 0===a||a.call(c,t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}}const rI=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};class nI extends Ih{}const{wrapError:sI}=m$,iI=Gj[Symbol.for("nodejs.util.promisify.custom")],oI=new Zj,cI=(e,t,r,n)=>{hj(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class aI extends YF{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...n}){super(n),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,n,s,i){try{if(this.indirections.includes(e))return!1;const[t,n]=this.toAncestorLineage([...s,r]),u=this.toBaseURI(oE(e.$ref)),l=Hm(this.reference.uri)===u,h=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&h)return!1;const f=await this.toReference(oE(e.$ref)),p=Xm(u,oE(e.$ref));this.indirections.push(e);const d=eO(p);let m=rO(d,f.value.result);if(m.id=oI.identify(m),bj(m)){const t=oE(e.meta.get("referenced-element")),r=`${t}-${oE(oI.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(bA(m))m=qT.refract(m),m.setMetaProperty("referenced-element",t),this.refractCache.set(r,m);else{m=this.namespace.getElementClass(t).refract(m),this.refractCache.set(r,m)}}if(e===m)throw new Fh("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new OE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(m)){if(f.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Fh("Circular reference detected");if("replace"===this.options.dereference.circular){var o,c;const t=new Gx(m.id,{type:"reference",uri:f.uri,$ref:oE(e.$ref),baseURI:p,referencingElement:e}),n=(null!==(o=null===(c=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===c?void 0:c.circularReplacer)&&void 0!==o?o:this.options.dereference.circularReplacer)(t);return i.replaceWith(t,cI),!r&&n}}const v=Hm(f.refSet.rootRef.uri)!==f.uri,y=["error","replace"].includes(this.options.dereference.circular);if((h||v||Sk(m)||y)&&!t.includesCycle(m)){var a;n.add(e);const i=new aI({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:null!==(a=this.basePath)&&void 0!==a?a:[...KF([...s,r,e]),"$ref"]});m=await iI(m,i,{keyMap:ek,nodeTypeGetter:QT}),n.delete(e)}this.indirections.pop();const b=qj(m);if(b.setMetaProperty("ref-fields",{$ref:oE(e.$ref),description:oE(e.description),summary:oE(e.summary)}),b.setMetaProperty("ref-origin",f.uri),b.setMetaProperty("ref-referencing-element-id",Cj(oI.identify(e))),uj(m)&&(e.hasKey("description")&&"description"in m&&(b.remove("description"),b.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in m&&(b.remove("summary"),b.set("summary",e.get("summary")))),this.allowMetaPatches&&uj(b)&&!b.hasKey("$$ref")){const e=Xm(u,p);b.set("$$ref",e)}return i.replaceWith(b,cI),!r&&b}catch(t){var u,l,h;const n=rI(t),i=sI(n,{baseDoc:this.reference.uri,$ref:oE(e.$ref),pointer:eO(oE(e.$ref)),fullPath:null!==(u=this.basePath)&&void 0!==u?u:[...KF([...s,r,e]),"$ref"]});return void(null===(l=this.options.dereference.dereferenceOpts)||void 0===l||null===(l=l.errors)||void 0===l||null===(h=l.push)||void 0===h||h.call(l,i))}}async PathItemElement(e,t,r,n,s,i){try{if(!ij(e.$ref))return;if(this.indirections.includes(e))return!1;if(wj(["cycle"],e.$ref))return!1;const[t,n]=this.toAncestorLineage([...s,r]),u=this.toBaseURI(oE(e.$ref)),l=Hm(this.reference.uri)===u,h=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&h)return;const f=await this.toReference(oE(e.$ref)),p=Xm(u,oE(e.$ref));this.indirections.push(e);const d=eO(p);let m=rO(d,f.value.result);if(m.id=oI.identify(m),bj(m)){const e=`path-item-${oE(oI.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=MT.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Fh("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new OE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(m)){if(f.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Fh("Circular reference detected");if("replace"===this.options.dereference.circular){var o,c;const t=new Gx(m.id,{type:"path-item",uri:f.uri,$ref:oE(e.$ref),baseURI:p,referencingElement:e}),n=(null!==(o=null===(c=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===c?void 0:c.circularReplacer)&&void 0!==o?o:this.options.dereference.circularReplacer)(t);return i.replaceWith(t,cI),!r&&n}}const v=Hm(f.refSet.rootRef.uri)!==f.uri,y=["error","replace"].includes(this.options.dereference.circular);if((h||v||$k(m)&&ij(m.$ref)||y)&&!t.includesCycle(m)){var a;n.add(e);const i=new aI({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:null!==(a=this.basePath)&&void 0!==a?a:[...KF([...s,r,e]),"$ref"]});m=await iI(m,i,{keyMap:ek,nodeTypeGetter:QT}),n.delete(e)}if(this.indirections.pop(),$k(m)){const t=new MT([...m.content],Cj(m.meta),Cj(m.attributes));if(e.forEach(((e,r,n)=>{t.remove(oE(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oE(e.$ref)}),t.setMetaProperty("ref-origin",f.uri),t.setMetaProperty("ref-referencing-element-id",Cj(oI.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Xm(u,p);t.set("$$ref",e)}m=t}return i.replaceWith(m,cI),r?void 0:m}catch(t){var u,l,h;const n=rI(t),i=sI(n,{baseDoc:this.reference.uri,$ref:oE(e.$ref),pointer:eO(oE(e.$ref)),fullPath:null!==(u=this.basePath)&&void 0!==u?u:[...KF([...s,r,e]),"$ref"]});return void(null===(l=this.options.dereference.dereferenceOpts)||void 0===l||null===(l=l.errors)||void 0===l||null===(h=l.push)||void 0===h||h.call(l,i))}}async SchemaElement(e,t,r,n,s,i){try{if(!ij(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,n]=this.toAncestorLineage([...s,r]);let u=await this.toReference(Ym(this.reference.uri)),{uri:l}=u;const h=JF(l,e),f=Hm(h),p=new Km({uri:f}),d=!this.options.resolve.resolvers.some((e=>e.canRead(p))),m=!d;let v,y=Hm(this.reference.uri)===h,b=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(h);const e=h,t=GF(u.value.result);if(v=HF(e,t),v=GF(v),v.id=oI.identify(v),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&b)return}else{if(l=this.toBaseURI(h),y=Hm(this.reference.uri)===l,b=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&b)return;u=await this.toReference(Ym(h));const e=eO(h),t=GF(u.value.result);v=rO(e,t),v=GF(v),v.id=oI.identify(v)}}catch(e){if(!(m&&e instanceof EE))throw e;if(BF(LF(h))){if(y=Hm(this.reference.uri)===l,b=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&b)return;u=await this.toReference(Ym(h));const e=LF(h),t=GF(u.value.result);v=UF(e,t),v=GF(v),v.id=oI.identify(v)}else{if(l=this.toBaseURI(oE(h)),y=Hm(this.reference.uri)===l,b=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&b)return;u=await this.toReference(Ym(h));const e=eO(h),t=GF(u.value.result);v=rO(e,t),v=GF(v),v.id=oI.identify(v)}}if(e===v)throw new Fh("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new OE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(v)){if(u.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Fh("Circular reference detected");if("replace"===this.options.dereference.circular){var o,c;const t=new Gx(v.id,{type:"json-schema",uri:u.uri,$ref:oE(e.$ref),baseURI:Xm(l,h),referencingElement:e}),n=(null!==(o=null===(c=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===c?void 0:c.circularReplacer)&&void 0!==o?o:this.options.dereference.circularReplacer)(t);return i.replaceWith(n,cI),!r&&n}}const g=Hm(u.refSet.rootRef.uri)!==u.uri,w=["error","replace"].includes(this.options.dereference.circular);if((b||g||kk(v)&&ij(v.$ref)||w)&&!t.includesCycle(v)){var a;n.add(e);const i=new aI({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:null!==(a=this.basePath)&&void 0!==a?a:[...KF([...s,r,e]),"$ref"]});v=await iI(v,i,{keyMap:ek,nodeTypeGetter:QT}),n.delete(e)}if(this.indirections.pop(),Fk(v)){const t=Cj(v);return t.setMetaProperty("ref-fields",{$ref:oE(e.$ref)}),t.setMetaProperty("ref-origin",u.uri),t.setMetaProperty("ref-referencing-element-id",Cj(oI.identify(e))),i.replaceWith(t,cI),!r&&t}if(kk(v)){const t=new JT([...v.content],Cj(v.meta),Cj(v.attributes));if(e.forEach(((e,r,n)=>{t.remove(oE(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oE(e.$ref)}),t.setMetaProperty("ref-origin",u.uri),t.setMetaProperty("ref-referencing-element-id",Cj(oI.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Xm(l,h);t.set("$$ref",e)}v=t}return i.replaceWith(v,cI),r?void 0:v}catch(t){var u,l,h;const n=rI(t),i=new nI(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:oE(e.$ref),fullPath:null!==(u=this.basePath)&&void 0!==u?u:[...KF([...s,r,e]),"$ref"],cause:n});return void(null===(l=this.options.dereference.dereferenceOpts)||void 0===l||null===(l=l.errors)||void 0===l||null===(h=l.push)||void 0===h||h.call(l,i))}}async LinkElement(){}async ExampleElement(e,t,r,n,s,i){try{return await super.ExampleElement(e,t,r,n,s,i)}catch(t){var o,c,a;const n=rI(t),i=sI(n,{baseDoc:this.reference.uri,externalValue:oE(e.externalValue),fullPath:null!==(o=this.basePath)&&void 0!==o?o:[...KF([...s,r,e]),"externalValue"]});return void(null===(c=this.options.dereference.dereferenceOpts)||void 0===c||null===(c=c.errors)||void 0===c||null===(a=c.push)||void 0===a||a.call(c,i))}}}const uI=Fj[Symbol.for("nodejs.util.promisify.custom")];class lI{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:n,...s}){const i=[];i.push(new aI({...s,options:n})),"function"==typeof t&&i.push(new QF({modelPropertyMacro:t,options:n})),"strict"!==r&&i.push(new eI({options:n})),"function"==typeof e&&i.push(new tI({parameterMacro:e,options:n}));const o=uI(i,{nodeTypeGetter:QT});Object.assign(this,o)}}const hI=Gj[Symbol.for("nodejs.util.promisify.custom")];class fI extends class extends class{name;constructor({name:e}){this.name=e}}{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?sO.includes(e.mediaType):xk(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const n=$j(YT),s=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Qm,i=new Qm;let o,c=s;s.has(e.uri)?o=s.find(yd(e.uri,"uri")):(o=new gE({uri:e.uri,value:e.parseResult}),s.add(o)),t.dereference.immutable&&(s.refs.map((e=>new gE({...e,value:Cj(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),c=i);const a=new YF({reference:o,namespace:n,options:t}),u=await ZF(c.rootRef.value,a,{keyMap:ek,nodeTypeGetter:QT});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new gE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),i.clean(),u}}{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:n="non-strict",ancestors:s=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=n,this.ancestors=[...s]}async dereference(e,t){var r;const n=$j(YT),s=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Qm,i=new Qm;let o,c=s;s.has(e.uri)?o=s.find((t=>t.uri===e.uri)):(o=new gE({uri:e.uri,value:e.parseResult}),s.add(o)),t.dereference.immutable&&(s.refs.map((e=>new gE({...e,value:Cj(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),c=i);const a=new lI({reference:o,namespace:n,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),u=await hI(c.rootRef.value,a,{keyMap:ek,nodeTypeGetter:QT});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new gE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),i.clean(),u}}const pI=e=>{const t=oE(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Jx({$ref:t},Cj(r.meta),Cj(r.attributes))},dI=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:c=!1,useCircularStructures:a=!1,skipNormalization:u=!1,parameterMacro:l=null,modelPropertyMacro:h=null,mode:f="non-strict",strategies:p}=e;try{const{cache:d}=dI,m=p.find((e=>e.match(t))),v=Um(zm())?zm():"https://swagger.io",y=Mt(e),b=Xm(v,y);let g;d.has(t)?g=d.get(t):(g=DT.refract(t),g.classes.push("result"),d.set(t,g));const w=new Yx([g]),x=tO(o),j=""===x?"":`#${x}`,E=rO(x,g),$=new gE({uri:b,value:w}),O=new Qm({refs:[$]});""!==x&&(O.rootRef=void 0);const S=[new Set([E])],A=[],P=((e,t,r)=>new aE({element:r}).transclude(e,t))(E,await PE(E,{resolve:{baseURI:`${b}${j}`,resolvers:[new _F({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[new IF]},parse:{mediaType:sO.latest(),parsers:[new NF({allowEmpty:!1,sourceMap:!1}),new qF({allowEmpty:!1,sourceMap:!1}),new CF({allowEmpty:!1,sourceMap:!1}),new MF({allowEmpty:!1,sourceMap:!1}),new FF({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new fI({allowMetaPatches:c,useCircularStructures:a,parameterMacro:l,modelPropertyMacro:h,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:A},immutable:!1,circular:a?"ignore":"replace",circularReplacer:a?ev.dereference.circularReplacer:pI}}),g),T=u?P:m.normalize(P);return{spec:oE(T),errors:A}}catch(e){if(e instanceof W$||e instanceof Z$)return{spec:null,errors:[]};throw e}};dI.cache=new WeakMap;const mI=e=>{if(!uj(e))return e;const t=[ck({operationIdNormalizer:(e,t,r)=>M$({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),rk(),nk(),ak(),uk()];return zj(e,t,{toolboxCreator:qk,visitorOptions:{keyMap:ek,nodeTypeGetter:QT}})},vI={name:"openapi-3-1-apidom",match:e=>U$(e),normalize(e){if(!sj(e)&&em(e)&&!e.$$normalized){const r=(t=mI,e=>{const r=DT.refract(e);r.classes.push("result");const n=t(r),s=oE(n);return dI.cache.set(s,n),oE(n)})(e);return r.$$normalized=!0,r}var t;return sj(e)?mI(e):e},resolve:async e=>dI(e)};function yI(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:n}=e;for(const s in n)for(const i in n[s]){if("PARAMETERS"===i.toUpperCase())continue;const o=n[s][i];if(!o||"object"!=typeof o)continue;const c={spec:e,pathName:s,method:i.toUpperCase(),operation:o},a=t(c);if(r&&a)return c}}function bI(e,t){return`${t.toLowerCase()}-${e}`}function gI(e,t){return e&&e.paths?function(e,t){return yI(e,t,!0)||null}(e,(({pathName:e,method:r,operation:n})=>{if(!n||"object"!=typeof n)return!1;const s=n.operationId;return[M$(n,e,r),bI(e,r),s].some((e=>e&&e===t))})):null}const{isHttpUrl:wI}=Zm,xI=()=>null,jI={mapTagOperations:function({spec:e,cb:t=xI,defaultTag:r="default",v2OperationIdCompatibilityMode:n}){const s={},i={};return yI(e,(({pathName:o,method:c,operation:a})=>{var u;(a.tags?(u=a.tags,Array.isArray(u)?u:[u]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const u=i[r],l=M$(a,o,c,{v2OperationIdCompatibilityMode:n}),h=t({spec:e,pathName:o,method:c,operation:a,operationId:l});if(s[l])s[l]+=1,u[`${l}${s[l]}`]=h;else if(void 0!==u[l]){const e=s[l]||1;s[l]=e+1,u[`${l}${s[l]}`]=h;const t=u[l];delete u[l],u[`${l}${e}`]=t}else u[l]=h}))})),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:n})=>(s,i={})=>{const{requestInterceptor:o,responseInterceptor:c,userFetch:a}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:c,userFetch:a,pathName:t,method:r,parameters:s,operationId:n,...i})}}};var EI={
|
|
4272
4271
|
/*!
|
|
4273
4272
|
* cookie
|
|
4274
4273
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4275
4274
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
4276
4275
|
* MIT Licensed
|
|
4277
4276
|
*/
|
|
4278
|
-
parse:function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var n={},r=(t||{}).decode||IG,i=0;for(;i<e.length;){var s=e.indexOf("=",i);if(-1===s)break;var o=e.indexOf(";",i);if(-1===o)o=e.length;else if(o<s){i=e.lastIndexOf(";",s-1)+1;continue}var c=e.slice(i,s).trim();if(void 0===n[c]){var a=e.slice(s+1,o).trim();34===a.charCodeAt(0)&&(a=a.slice(1,-1)),n[c]=FG(a,r)}i=o+1}return n},serialize:function(e,t,n){var r=n||{},i=r.encode||kG;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!RG.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!RG.test(s))throw new TypeError("argument val is invalid");var o=e+"="+s;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c)||!isFinite(c))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(c)}if(r.domain){if(!RG.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!RG.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){var a=r.expires;if(!function(e){return"[object Date]"===TG.call(e)||e instanceof Date}(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+a.toUTCString()}r.httpOnly&&(o+="; HttpOnly");r.secure&&(o+="; Secure");if(r.priority){switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}},TG=Object.prototype.toString,RG=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function IG(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function kG(e){return encodeURIComponent(e)}function FG(e,t){try{return t(e)}catch(t){return e}}
|
|
4279
|
-
/*!
|
|
4280
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
4281
|
-
*
|
|
4282
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
4283
|
-
* Released under the MIT License.
|
|
4284
|
-
*/function MG(e){return"[object Object]"===Object.prototype.toString.call(e)}function NG(e){var t,n;return!1!==MG(e)&&(void 0===(t=e.constructor)||!1!==MG(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const CG={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 DG(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}const qG=["accept","authorization","content-type"];const _G=Object.freeze(Object.defineProperty({__proto__:null,cookie:function(e){let{req:t,parameter:n,value:r}=e;t.headers=t.headers||{};const i=typeof r;if(n.content){const e=Object.keys(n.content)[0];t.headers.Cookie=`${n.name}=${DG(r,e)}`}else if("undefined"!==i){const e="object"===i&&!Array.isArray(r)&&n.explode?"":`${n.name}=`;t.headers.Cookie=e+kv({key:n.name,value:r,escape:!1,style:n.style||"form",explode:void 0!==n.explode&&n.explode})}},header:function(e){let{req:t,parameter:n,value:r}=e;if(t.headers=t.headers||{},!(qG.indexOf(n.name.toLowerCase())>-1))if(n.content){const e=Object.keys(n.content)[0];t.headers[n.name]=DG(r,e)}else void 0!==r&&(t.headers[n.name]=kv({key:n.name,value:r,style:n.style||"simple",explode:void 0!==n.explode&&n.explode,escape:!1}))},path:function(e){let{req:t,value:n,parameter:r}=e;const{name:i,style:s,explode:o,content:c}=r;if(c){const e=Object.keys(c)[0];return void(t.url=t.url.split(`{${i}}`).join(Iv(DG(n,e),{escape:!0})))}const a=kv({key:r.name,value:n,style:s||"simple",explode:o||!1,escape:!0});t.url=t.url.split(`{${i}}`).join(a)},query:function(e){let{req:t,value:n,parameter:r}=e;if(t.query=t.query||{},r.content){const e=DG(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:i,allowReserved:s}=r;t.query[r.name]={value:n,serializationOption:{style:e,explode:i,allowReserved:s}}}else if(r.allowEmptyValue&&void 0!==n){const e=r.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}},Symbol.toStringTag,{value:"Module"})),BG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:LG}=BG;function UG(e,t){const{operation:n,requestBody:r,securities:i,spec:s,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:c}=e;t=function(e){let{request:t,securities:n={},operation:r={},spec:i}=e;const s=vl({},t),{authorized:o={}}=n,c=r.security||i.security||[],a=o&&!!Object.keys(o).length,u=xw(i,["components","securitySchemes"])||{};if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(n).length||!a||!c||Array.isArray(r.security)&&!r.security.length)return t;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],n=u[e];if(!t)return;const r=t.value||t,{type:i}=n;if(t)if("apiKey"===i)"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"===i){if(/^basic$/i.test(n.scheme)){const e=r.username||"",t=r.password||"",n=LG(`${e}:${t}`);s.headers.Authorization=`Basic ${n}`}/^bearer$/i.test(n.scheme)&&(s.headers.Authorization=`Bearer ${r}`)}else if("oauth2"===i||"openIdConnect"===i){const e=t.token||{},r=e[n["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),s.headers.Authorization=`${i} ${r}`}}))})),s}({request:t,securities:i,operation:n,spec:s});const a=n.requestBody||{},u=Object.keys(a.content||{}),f=c&&u.indexOf(c)>-1;if(r||o){if(c&&f)t.headers["Content-Type"]=c;else if(!c){const e=u[0];e&&(t.headers["Content-Type"]=e,c=e)}}else c&&f&&(t.headers["Content-Type"]=c);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&&NG(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(c){if(u.indexOf(c)>-1)if("application/x-www-form-urlencoded"===c||"multipart/form-data"===c)if("object"==typeof r){const e=(a.content[c]||{}).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 JG(e,t){const{spec:n,operation:r,securities:i,requestContentType:s,responseContentType:o,attachContentTypeForEmptyPayload:c}=e;if(t=function(e){let{request:t,securities:n={},operation:r={},spec:i}=e;const s=vl({},t),{authorized:o={},specSecurity:c=[]}=n,a=r.security||c,u=o&&!!Object.keys(o).length,f=i.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(n).length||!u||!a||Array.isArray(r.security)&&!r.security.length)return t;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e];if(!t)return;const{token:n}=t,r=t.value||t,i=f[e],{type:c}=i,a=i["x-tokenName"]||"access_token",u=n&&n[a];let l=n&&n.token_type;if(t)if("apiKey"===c){const e="query"===i.in?"query":"headers";s[e]=s[e]||{},s[e][i.name]=r}else if("basic"===c)if(r.header)s.headers.authorization=r.header;else{const e=r.username||"",t=r.password||"";r.base64=LG(`${e}:${t}`),s.headers.authorization=`Basic ${r.base64}`}else"oauth2"===c&&u&&(l=l&&"bearer"!==l.toLowerCase()?l:"Bearer",s.headers.authorization=`${l} ${u}`)}))})),s}({request:t,securities:i,operation:r,spec:n}),t.body||t.form||c)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!o&&Array.isArray(r.produces)&&r.produces.length>0&&(t.headers.accept=r.produces.join(", ")),t}const VG=["http","fetch","spec","operationId","pathName","method","parameters","securities"],GG=e=>Array.isArray(e)?e:[],zG=Zy("OperationNotFoundError",(function(e,t,n){this.originalError=n,Object.assign(this,t||{})})),HG={buildRequest:WG};function WG(e){const{spec:t,operationId:n,responseContentType:r,scheme:i,requestInterceptor:s,responseInterceptor:o,contextUrl:c,userFetch:a,server:u,serverVariables:f,http:l,signal:h}=e;let{parameters:p,parameterBuilders:m}=e;const d=Kb(t);m||(m=d?_G:CG);let v={url:"",credentials:l&&l.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(v.signal=h),s&&(v.requestInterceptor=s),o&&(v.responseInterceptor=o),a&&(v.userFetch=a);const y=SG(t,n);if(!y)throw new zG(`Operation ${n} not found`);const{operation:b={},method:j,pathName:g}=y;if(v.url+=YG({spec:t,scheme:i,contextUrl:c,server:u,serverVariables:f,pathName:g,method:j}),!n)return delete v.cookies,v;v.url+=g,v.method=`${j}`.toUpperCase(),p=p||{};const w=t.paths[g]||{};r&&(v.headers.accept=r);const O=(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})([].concat(GG(b.parameters)).concat(GG(w.parameters)));O.forEach((e=>{const n=m[e.in];let r;if("body"===e.in&&e.schema&&e.schema.properties&&(r=p),r=e&&e.name&&p[e.name],void 0===r?r=e&&e.name&&p[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).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(d&&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:b,spec:t})}}));const E=vl(vl({},e),{},{operation:b});if(v=d?UG(E,v):JG(E,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?"&":"")+AG.serialize(t,n)}),"");v.headers.Cookie=e}return v.cookies&&delete v.cookies,Xv(v),v}const XG=e=>e?e.replace(/\W/g,""):null;function YG(e){return Kb(e.spec)?function(e){let{spec:t,pathName:n,method:r,server:i,contextUrl:s,serverVariables:o={}}=e;const c=xw(t,["paths",n,(r||"").toLowerCase(),"servers"])||xw(t,["paths",n,"servers"])||xw(t,["servers"]);let a="",u=null;if(i&&c&&c.length){const e=c.map((e=>e.url));e.indexOf(i)>-1&&(a=i,u=c[e.indexOf(i)])}!a&&c&&c.length&&(a=c[0].url,[u]=c);if(a.indexOf("{")>-1){const e=function(e){const t=[],n=/{([^}]+)}/g;let r;for(;r=n.exec(e);)t.push(r[1]);return t}(a);e.forEach((e=>{if(u.variables&&u.variables[e]){const t=u.variables[e],n=o[e]||t.default,r=new RegExp(`{${e}}`,"g");a=a.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?yl.parse(yl.resolve(t,e)):yl.parse(e),r=yl.parse(t),i=XG(n.protocol)||XG(r.protocol)||"",s=n.host||r.host,o=n.pathname||"";let c;c=i&&s?`${i}://${s+o}`:o;return"/"===c[c.length-1]?c.slice(0,-1):c}(a,s)}(e):function(e){let{spec:t,scheme:n,contextUrl:r=""}=e;const i=yl.parse(r),s=Array.isArray(t.schemes)?t.schemes[0]:null,o=n||s||XG(i.protocol)||"http",c=t.host||i.host||"",a=t.basePath||"";let u;u=o&&c?`${o}://${c+a}`:a;return"/"===u[u.length-1]?u.slice(0,-1):u}(e)}function KG(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?t.url=e:t=e,!(this instanceof KG))return new KG(t);Object.assign(this,t);const n=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,KG.makeApisTagOperation(this)),this)));return n.client=this,n}KG.http=Nv,KG.makeHttp=function(e,t,n){return n=n||(e=>e),t=t||(e=>e),r=>("string"==typeof r&&(r={url:r}),Mv.mergeInQueryOrForm(r),r=t(r),n(e(r)))}.bind(null,KG.http),KG.resolveStrategies={"openapi-3-1-apidom":OG,"openapi-3-0":Zb,"openapi-2-0":Qb,generic:Wb},KG.resolve=ej({strategies:[KG.resolveStrategies["openapi-3-1-apidom"],KG.resolveStrategies["openapi-3-0"],KG.resolveStrategies["openapi-2-0"],KG.resolveStrategies.generic]}),KG.resolveSubtree=(e=>async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=vl(vl({},e),r);return Sw(t,n,i)})({strategies:[KG.resolveStrategies["openapi-3-1-apidom"],KG.resolveStrategies["openapi-3-0"],KG.resolveStrategies["openapi-2-0"],KG.resolveStrategies.generic]}),KG.execute=function(e){let{http:t,fetch:n,spec:r,operationId:i,pathName:s,method:o,parameters:c,securities:a}=e,u=BT(e,VG);const f=t||n||Nv;s&&o&&!i&&(i=xG(s,o));const l=HG.buildRequest(vl({spec:r,operationId:i,parameters:c,securities:a,http:f},u));return l.body&&(NG(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),f(l)},KG.serializeRes=qv,KG.serializeHeaders=Bv,KG.clearCache=function(){Ub.refs.clearCache()},KG.makeApisTagOperation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=$G.makeExecute(e);return{apis:$G.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},KG.buildRequest=WG,KG.helpers={opId:Gb},KG.getBaseUrl=YG,KG.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:YV}},parse:{parsers:{JsonParser:KV,YamlParser:QV,OpenApiJson3_1Parser:ZV,OpenApiYaml3_1Parser:eG}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:gG}}},KG.prototype={http:Nv,execute(e){return this.applyDefaults(),KG.execute(vl({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},e))},resolve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return KG.resolve(vl({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},e)).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},KG.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(t&&t.startsWith("http")){const n=yl.parse(t);e.host||(e.host=n.host),e.schemes||(e.schemes=[n.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};function QG(e){const t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}const ZG={parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],uniqueOnly:function(e,t,n){return n.indexOf(e)===t},createHash:function(e){let t,n=0;if(0===e.length)return n;for(let r=0;r<e.length;r++)t=e.charCodeAt(r),n=(n<<5)-n+t,n|=0;return n},sanitise:QG,sanitiseAll:function(e){return QG(e.split("/").join("_"))},camelize:function(e){return e.toLowerCase().replace(/[-_ \/\.](.)/g,((e,t)=>t.toUpperCase()))},clone:function(e){return JSON.parse(JSON.stringify(e))},circularClone:function e(t,n=null){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);let r;try{r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map((r=>({[r]:e(t[r],n)}))))}};function ez(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}const tz={getDefaultState:ez,walkSchema:function e(t,n,r,i){if(void 0===r.depth&&(r=ez()),null==t)return t;if(r.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t={...t.allOf[0],...t})?.allOf,t?.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t={...t.anyOf[0],...t})?.anyOf,t?.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t={...t.oneOf[0],...t})?.oneOf),i(t,n,r),r.seen.has(t))return t;if("object"==typeof t&&null!==t&&r.seen.set(t,!0),r.top=!1,r.depth++,void 0!==t?.items&&(r.property="items",e(t.items,t,r,i)),t?.additionalItems&&"object"==typeof t.additionalItems&&(r.property="additionalItems",e(t.additionalItems,t,r,i)),t?.additionalProperties&&"object"==typeof t.additionalProperties&&(r.property="additionalProperties",e(t.additionalProperties,t,r,i)),t?.properties)for(const n in t.properties){const s=t.properties[n];r.property=`properties/${n}`,e(s,t,r,i)}if(t?.patternProperties)for(const n in t.patternProperties){const s=t.patternProperties[n];r.property=`patternProperties/${n}`,e(s,t,r,i)}if(t?.allOf)for(const n in t.allOf){const s=t.allOf[n];r.property=`allOf/${n}`,e(s,t,r,i)}if(t?.anyOf)for(const n in t.anyOf){const s=t.anyOf[n];r.property=`anyOf/${n}`,e(s,t,r,i)}if(t?.oneOf)for(const n in t.oneOf){const s=t.oneOf[n];r.property=`oneOf/${n}`,e(s,t,r,i)}return t?.not&&(r.property="not",e(t.not,t,r,i)),r.depth--,t}};function nz(e,t,n){if(t||(t={depth:0}),t.depth||(t={path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1,...t}),"object"!=typeof e)return;const r=t.path;for(const i in e){if(t.key=i,t.path=`${t.path}/${encodeURIComponent(i)}`,t.identityPath=t.seen.get(e[i]),t.identity=void 0!==t.identityPath,e.hasOwnProperty(i)&&n(e,i,t),"object"==typeof e[i]&&!t.identity){t.identityDetection&&!Array.isArray(e[i])&&null!==e[i]&&t.seen.set(e[i],t.path);const r={};r.parent=e,r.path=t.path,r.depth=t.depth?t.depth+1:1,r.pkey=i,r.payload=t.payload,r.seen=t.seen,r.identity=!1,r.identityDetection=t.identityDetection,nz(e[i],r,n)}t.path=r}}let rz;function iz(e,t){for(const n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function sz(e,t){tz.walkSchema(e,{},{},((e,n)=>{!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(const t in e.discriminator.mapping){const n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.nullable&&n.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type)){if(n.patches++,n.warnings.push("(Patchable) schema type must not be an array"),0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(const t of e.type){const n={};if("null"===t)e.nullable=!0;else{n.type=t;for(const t of ZG.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&(n.patches++,n.warnings.push("Lost properties from oneOf")),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),e.allowEmptyValue&&(delete e.allowEmptyValue,n.patches++,n.warnings.push("(Patchable): deleted schema.allowEmptyValue"))}(e,n,t)}))}function oz(e){for(const t in e)for(const n in e[t]){const r=ZG.sanitise(n);n!==r&&(e[t][r]=e[t][n],delete e[t][n])}}function cz(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){const n={};let r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),"string"==typeof e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,e.name&&(delete e.name,t.patches++,t.warnings.push("(Patchable) oauth2 securitySchemes should not have name property"))}}function az(e){return e&&!e["x-s2o-delete"]}function uz(e,t){if(e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type){if(e.items.collectionFormat!==e.collectionFormat)return t.errCount++,void t.errors.push({message:"Nested collectionFormats are not supported",pointer:"/.../responses/header"});delete e.items.collectionFormat}"array"===e.type?("ssv"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:ssv is no longer supported for headers")):"pipes"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:pipes is no longer supported for headers")):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(e["x-collectionFormat"]="tsv",t.patches++,t.warnings.push("collectionFormat:tsv is no longer supported")):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(delete e.collectionFormat,t.patches++,t.warnings.push("(Patchable) collectionFormat is only applicable to header.type array")),delete e.type;for(const t of ZG.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(const t of ZG.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}function fz(e,t,n,r,i,s,o){const c={};let a,u=!0;t&&t.consumes&&"string"==typeof t.consumes&&(t.consumes=[t.consumes],o.patches++,o.warnings.push("(Patchable) operation.consumes must be an array")),Array.isArray(s.consumes)||delete s.consumes;const f=((t?t.consumes:null)||s.consumes||[]).filter(ZG.uniqueOnly);if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(e.type="string",o.patches++,o.warnings.push("(Patchable) parameter.type is mandatory for non-body parameters")),"file"===e.type&&(e["x-s2o-originalType"]=e.type,a=e.type),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(delete e.collectionFormat,o.patches++,o.warnings.push("(Patchable) collectionFormat is only applicable to param.type array")),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":o.warnings.push(`${e.name} collectionFormat:ssv is no longer supported except for in:query parameters`)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":o.warnings.push(`${e.name} collectionFormat:pipes is no longer supported except for in:query parameters`)),"multi"===t&&(e.explode=!0),"tsv"===t&&(o.warnings.push("collectionFormat:tsv is no longer supported"),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)o.warnings.push(`${e.name} parameter has array,items and schema`);else{e.schema&&o.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,nz(e.schema.items,null,((n,r)=>{"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&o.warnings.push(`${e.name} Nested collectionFormats are not supported`),delete n[r])})));for(const t of ZG.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&sz(e.schema,o),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){u=!1,c.content={};let t="application/x-www-form-urlencoded";if(f.length&&f.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),c.content[t]={},e.schema)c.content[t].schema=e.schema;else{c.content[t].schema={},c.content[t].schema.type="object",c.content[t].schema.properties={},c.content[t].schema.properties[e.name]={};const n=c.content[t].schema,r=c.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(const t of ZG.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name),c.required=!0),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==a&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),iz(e,r)}}else e&&"file"===e.type&&(e.required&&(c.required=e.required),c.content={},c.content["application/octet-stream"]={},c.content["application/octet-stream"].schema={},c.content["application/octet-stream"].schema.type="string",c.content["application/octet-stream"].schema.format="binary",iz(e,c));if(e&&"body"===e.in){c.content={},e.name&&(c["x-s2o-name"]=(t&&t.operationId?ZG.sanitiseAll(t.operationId):"")+ZG.camelize(`_${e.name}`)),e.description&&(c.description=e.description),e.required&&(c.required=e.required),f.length||f.push("application/json");for(const t of f)c.content[t]={},c.content[t].schema=ZG.clone(e.schema||{}),sz(c.content[t].schema,o);iz(e,c)}if(Object.keys(c).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&u){t.requestBody["x-s2o-overloaded"]=!0;const e=t.operationId||i;o.warnings.push(`Operation ${e} has multiple requestBodies`)}else t.requestBody||(t=function(e,t){const n={};for(const r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(t,o),n[r]=t),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&c.content["multipart/form-data"]&&c.content["multipart/form-data"].schema&&c.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,c.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(c.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&c.content["application/x-www-form-urlencoded"]&&c.content["application/x-www-form-urlencoded"].schema&&c.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,c.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(c.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,c),t.requestBody["x-s2o-name"]||t.operationId&&(t.requestBody["x-s2o-name"]=ZG.sanitiseAll(t.operationId)));if(e&&!e["x-s2o-delete"]){delete e.type;for(const t of ZG.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(e.required=!0,o.patches++,o.warnings.push(`(Patchable) path parameters must be required:true [${e.name} in ${i}]`))}return t}function lz(e,t,n,r){if(!e)return!1;if(e.description||"object"!=typeof e||Array.isArray(e)||(r.patches++,r.warnings.push("(Patchable) response.description is mandatory")),void 0!==e.schema){sz(e.schema,r),t&&t.produces&&"string"==typeof t.produces&&(t.produces=[t.produces],r.patches++,r.warnings.push("(Patchable) operation.produces must be an array")),n.produces&&!Array.isArray(n.produces)&&delete n.produces;const i=((t?t.produces:null)||n.produces||[]).filter(ZG.uniqueOnly);i.length||i.push("*/*"),e.content={};for(const t of i){if(e.content[t]={},e.content[t].schema=ZG.clone(e.schema),e.examples&&e.examples[t]){const n={};n.value=e.examples[t],e.content[t].examples={},e.content[t].examples.response=n,delete e.examples[t]}"file"===e.content[t].schema.type&&(e.content[t].schema={type:"string",format:"binary"})}delete e.schema}for(const t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(const t in e.headers)"status code"===t.toLowerCase()?(delete e.headers[t],r.patches++,r.warnings.push('(Patchable) "Status Code" is not a valid header')):uz(e.headers[t],r)}function hz(e,t,n,r,i){for(const s in e){const o=e[s];o&&o["x-trace"]&&"object"==typeof o["x-trace"]&&(o.trace=o["x-trace"],delete o["x-trace"]),o&&o["x-summary"]&&"string"==typeof o["x-summary"]&&(o.summary=o["x-summary"],delete o["x-summary"]),o&&o["x-description"]&&"string"==typeof o["x-description"]&&(o.description=o["x-description"],delete o["x-description"]),o&&o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]);for(const e in o)if(ZG.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let c=o[e];if(c&&c.parameters&&Array.isArray(c.parameters)){if(o.parameters)for(const t of o.parameters){c.parameters.find((e=>e.name===t.name&&e.in===t.in))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(c=fz(t,c,o,e,s,i,n))}for(const t of c.parameters)c=fz(t,c,o,e,`${e}: ${s}`,i,n);c.parameters&&(c.parameters=c.parameters.filter(az))}if(c&&c.security&&oz(c.security),"object"==typeof c){if(!c.responses){const e={description:"Default response"};c.responses={default:e}}for(const e in c.responses){lz(c.responses[e],c,i,n)}}if(c&&c["x-servers"]&&Array.isArray(c["x-servers"]))c.servers=c["x-servers"],delete c["x-servers"];else if(c&&c.schemes&&c.schemes.length)for(const e of c.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(c.servers||(c.servers=[]),Array.isArray(i.servers)))for(const e of i.servers){const t=ZG.clone(e);c.servers.push(t)}if(c){if(delete c.consumes,delete c.produces,delete c.schemes,c["x-ms-examples"]){for(const e in c["x-ms-examples"]){const t=c["x-ms-examples"][e],n=ZG.sanitiseAll(e);if(t.parameters)for(const n in t.parameters){const r=t.parameters[n];for(const t of(c.parameters||[]).concat(o.parameters||[]))t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(const r in t.responses){if(t.responses[r].headers)for(const e in t.responses[r].headers){const n=t.responses[r].headers[e];for(const t in c.responses[r].headers)if(t===e){c.responses[r].headers[t].example=n}}if(t.responses[r].body&&(i.components.examples[n]={value:ZG.clone(t.responses[r].body)},c.responses[r]&&c.responses[r].content))for(const t in c.responses[r].content){const i=c.responses[r].content[t];i.examples||(i.examples={}),i.examples[e]={$ref:`#/components/examples/${n}`}}}}delete c["x-ms-examples"]}if(c.parameters&&0===c.parameters.length&&delete c.parameters,c.requestBody){const n=c.operationId?ZG.sanitiseAll(c.operationId):ZG.camelize(ZG.sanitiseAll(e+s)),i=ZG.sanitise(c.requestBody["x-s2o-name"]||n||"");delete c.requestBody["x-s2o-name"];const o=JSON.stringify(c.requestBody),a=ZG.createHash(o);if(!r[a]){const e={};e.name=i,e.body=c.requestBody,e.refs=[],r[a]=e}const u=`#/${t}/${encodeURIComponent(s)}/${e}/requestBody`;r[a].refs.push(u)}}}if(o&&o.parameters){for(const e in o.parameters){fz(o.parameters[e],null,o,null,s,i,n)}Array.isArray(o.parameters)&&(o.parameters=o.parameters.filter(az))}}}function pz(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,((t,n)=>{e.variables||(e.variables={}),e.variables[n]={default:"unknown"}})),e):e}function mz(e,t){void 0!==e.info&&null!==e.info||(e.info={version:"",title:""},t.patches++,t.warnings.push("(Patchable) info object is mandatory")),("object"!=typeof e.info||Array.isArray(e.info))&&(t.errCount++,t.errors.push({message:"info must be an object",pointer:"/info"})),e.info&&(void 0===e.info.title&&(t.patches++,e.info.title="",t.warnings.push({message:"(Patchable) info.title cannot be null",pointer:"/info/title",patchable:!0})),void 0===e.info.version?(t.patches++,e.info.version="",t.warnings.push("(Patchable) info.version cannot be null")):"string"!=typeof e.info.version&&(t.patches++,e.info.version=e.info.version.toString(),t.warnings.push("(Patchable) info.version must be a string")))}function dz(e,t){e.paths||(t.patches++,e.paths={},t.warnings.push("(Patchable) paths object is mandatory"))}function vz(e={}){const t={original:e,openapi:{},patches:0,warnings:[],errCount:0,errors:[]};if(e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=ZG.circularClone(e),mz(t.openapi,t),dz(t.openapi,t),t;if("2.0"!==e.swagger)return t.errCount++,t.errors.push({message:`Unsupported swagger/OpenAPI version: ${e.openapi?e.openapi:e.swagger}`,pointer:"/swagger"}),t;if(t.openapi=ZG.circularClone(e),t.openapi.openapi="3.0.0",delete t.openapi.swagger,nz(t.openapi,{},((e,t,n)=>{null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]})),e.host)(e.schemes||[]).forEach((n=>{const r={},i=(e.basePath||"").replace(/\/$/,"");r.url=`${n?`${n}:`:""}//${e.host}${i}`,pz(r),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(r)}));else if(e.basePath){const n={};n.url=e.basePath,pz(n),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(n)}if(delete t.openapi.host,delete t.openapi.basePath,e["x-ms-parameterized-host"]){const n=e["x-ms-parameterized-host"],r={};r.url=n.hostTemplate+(e.basePath?e.basePath:""),r.variables={};const i=r.url.match(/\{\w+\}/g);for(const e in n.parameters){const t=n.parameters[e];e.startsWith("x-")||(delete t.required,delete t.type,delete t.in,void 0===t.default&&(t.enum?t.default=t.enum[0]:t.default="none"),t.name||(t.name=i[e].replace("{","").replace("}","")),r.variables[t.name]=t,delete t.name)}t.openapi.servers||(t.openapi.servers=[]),!1===n.useSchemePrefix?t.openapi.servers.push(r):e.schemes.forEach((e=>{t.openapi.servers.push({...r,url:`${e}://${r.url}`})})),delete t.openapi["x-ms-parameterized-host"]}return mz(t.openapi,t),dz(t.openapi,t),"string"==typeof t.openapi.consumes&&(t.openapi.consumes=[t.openapi.consumes]),"string"==typeof t.openapi.produces&&(t.openapi.produces=[t.openapi.produces]),t.openapi.components={},t.openapi["x-callbacks"]&&(t.openapi.components.callbacks=t.openapi["x-callbacks"],delete t.openapi["x-callbacks"]),t.openapi.components.examples={},t.openapi.components.headers={},t.openapi["x-links"]&&(t.openapi.components.links=t.openapi["x-links"],delete t.openapi["x-links"]),t.openapi.components.parameters=t.openapi.parameters||{},t.openapi.components.responses=t.openapi.responses||{},t.openapi.components.requestBodies={},t.openapi.components.securitySchemes=t.openapi.securityDefinitions||{},t.openapi.components.schemas=t.openapi.definitions||{},delete t.openapi.definitions,delete t.openapi.responses,delete t.openapi.parameters,delete t.openapi.securityDefinitions,function(e){const t=e.openapi,n={};rz={schemas:{}},t.security&&oz(t.security);for(const n in t.components.securitySchemes){const r=ZG.sanitise(n);if(n!==r){if(t.components.securitySchemes[r])return e.errCount++,e.errors.push({message:`Duplicate sanitised securityScheme name ${r}`,pointer:`/components/securitySchemes/${r}`}),e;t.components.securitySchemes[r]=t.components.securitySchemes[n],delete t.components.securitySchemes[n]}cz(t.components.securitySchemes[r],e)}for(const n in t.components.schemas){const r=ZG.sanitiseAll(n);let i=0;if(n!==r){for(;t.components.schemas[r+i];)i=i?++i:2;t.components.schemas[r+i]=t.components.schemas[n],delete t.components.schemas[n]}rz.schemas[n]=r+i,sz(t.components.schemas[`${r}${i}`],e)}for(const n in t.components.parameters){const r=ZG.sanitise(n);if(n!==r){if(t.components.parameters[r])return e.errCount++,e.errors.push({message:`Duplicate sanitised parameter name ${r}`,pointer:`/components/parameters/${r}`}),e;t.components.parameters[r]=t.components.parameters[n],delete t.components.parameters[n]}fz(t.components.parameters[r],null,null,null,r,t,e)}for(const n in t.components.responses){const r=ZG.sanitise(n);if(n!==r){if(t.components.responses[r])return e.errCount++,e.errors.push({message:`Duplicate sanitised response name ${r}`,pointer:`/components/responses/${r}`}),e;t.components.responses[r]=t.components.responses[n],delete t.components.responses[n]}const i=t.components.responses[r];if(lz(i,null,t,e),i.headers)for(const t in i.headers)"status code"===t.toLowerCase()?(delete i.headers[t],e.patches++,e.warnings.push('(Patchable) "Status Code" is not a valid header')):uz(i.headers[t],e)}for(const e in t.components.requestBodies){const r=t.components.requestBodies[e],i=JSON.stringify(r),s=ZG.createHash(i),o={};o.name=e,o.body=r,o.refs=[],n[s]=o}hz(t.paths,"paths",e,n,t),t["x-ms-paths"]&&hz(t["x-ms-paths"],"x-ms-paths",e,n,t);for(const e in t.components.parameters)t.components.parameters[e]["x-s2o-delete"]&&delete t.components.parameters[e];return delete t.consumes,delete t.produces,delete t.schemes,t.components.requestBodies={},t.components.responses&&0===Object.keys(t.components.responses).length&&delete t.components.responses,t.components.parameters&&0===Object.keys(t.components.parameters).length&&delete t.components.parameters,t.components.examples&&0===Object.keys(t.components.examples).length&&delete t.components.examples,t.components.requestBodies&&0===Object.keys(t.components.requestBodies).length&&delete t.components.requestBodies,t.components.securitySchemes&&0===Object.keys(t.components.securitySchemes).length&&delete t.components.securitySchemes,t.components.headers&&0===Object.keys(t.components.headers).length&&delete t.components.headers,t.components.schemas&&0===Object.keys(t.components.schemas).length&&delete t.components.schemas,t.components&&0===Object.keys(t.components).length&&delete t.components,e}(t)}function yz(e){return e.ok&&e.text&&e.parseError&&"YAMLException"===e.parseError.name&&(!e.headers["content-type"]||e.headers["content-type"].match("text/plain"))&&(e.body=e.text),e}const bz={convertObj:vz,resolve:function(e){return new Promise((async t=>{try{const n=await KG.resolve(e,yz);if(n.errors&&n.errors.length>0)t(n);else{n.spec.openapi&&(n.resolvedSpec=n.spec,t(n));const e=vz(n.spec);e.errors&&e.errors.length>0&&(Array.isArray(n.errors)?n.errors.concat(n.errors):n.errors=e.errors),e.warnings&&e.warnings.length>0&&(n.warnings=e.warnings),n.resolvedSpec=n.spec,n.spec=e.openapi,t(n)}}catch(e){t(e)}}))}};
|
|
4277
|
+
parse:function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||SI,s=0;for(;s<e.length;){var i=e.indexOf("=",s);if(-1===i)break;var o=e.indexOf(";",s);if(-1===o)o=e.length;else if(o<i){s=e.lastIndexOf(";",i-1)+1;continue}var c=e.slice(s,i).trim();if(void 0===r[c]){var a=e.slice(i+1,o).trim();34===a.charCodeAt(0)&&(a=a.slice(1,-1)),r[c]=PI(a,n)}s=o+1}return r},serialize:function(e,t,r){var n=r||{},s=n.encode||AI;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!OI.test(e))throw new TypeError("argument name is invalid");var i=s(t);if(i&&!OI.test(i))throw new TypeError("argument val is invalid");var o=e+"="+i;if(null!=n.maxAge){var c=n.maxAge-0;if(isNaN(c)||!isFinite(c))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(c)}if(n.domain){if(!OI.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!OI.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){var a=n.expires;if(!function(e){return"[object Date]"===$I.call(e)||e instanceof Date}(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+a.toUTCString()}n.httpOnly&&(o+="; HttpOnly");n.secure&&(o+="; Secure");n.partitioned&&(o+="; Partitioned");if(n.priority){switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}},$I=Object.prototype.toString,OI=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function SI(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function AI(e){return encodeURIComponent(e)}function PI(e,t){try{return t(e)}catch(t){return e}}const TI=function(){const e=II,t=FI,r=this,n="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let s,i,o,c,a,u,l,h=0,f=0,p=0,d=0,m=0,v=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(y,b,w,x)=>{const j=`${n}parse(): `;h=0,f=0,p=0,d=0,m=0,s=void 0,i=void 0,o=void 0,c=void 0,v.refresh(),a=void 0,u=void 0,l=void 0,c=t.stringToChars(w),s=y.rules,i=y.udts;const E=b.toLowerCase();let $;for(const e in s)if(s.hasOwnProperty(e)&&E===s[e].lower){$=s[e].index;break}if(void 0===$)throw new Error(`${j}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],u=[],t=0;t<s.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)u[t]=void 0;const c=[];for(t=0;t<s.length;t+=1)c.push(s[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const n in r.callbacks)if(r.callbacks.hasOwnProperty(n)){if(t=c.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=r.callbacks[n]?r.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<s.length?a[t]=o:u[t-s.length]=o}})(),r.trace&&r.trace.init(s,i,c),r.stats&&r.stats.init(s,i),r.ast&&r.ast.init(s,i,c),l=x,o=[{type:e.RNM,index:$}],g(0,0),o=void 0;let O=!1;switch(v.state){case e.ACTIVE:throw new Error(`${j}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=v.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:v.state,stateName:e.idName(v.state),length:c.length,matched:v.phraseLength,maxMatched:m,maxTreeDepth:p,nodeHits:d}};const y=(t,r,s,i)=>{if(r.phraseLength>s){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},b=(t,a)=>{let f,p,d;const m=o[t],y=i[m.index];v.UdtIndex=y.index,h||(d=r.ast&&r.ast.udtDefined(m.index),d&&(p=s.length+m.index,f=r.ast.getLength(),r.ast.down(p,y.name)));const b=c.length-a;u[m.index](v,c,a,l),((t,r,s)=>{if(r.phraseLength>s){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(y,v,b),h||d&&(v.state===e.NOMATCH?r.ast.setLength(f):r.ast.up(p,y.name,a,v.phraseLength))},g=(t,i)=>{const u=`${n}opExecute(): `,w=o[t];switch(d+=1,f>p&&(p=f),f+=1,v.refresh(),r.trace&&r.trace.down(w,i),w.type){case e.ALT:((t,r)=>{const n=o[t];for(let t=0;t<n.children.length&&(g(n.children[t],r),v.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let s,i,c,a;const u=o[t];r.ast&&(i=r.ast.getLength()),s=!0,c=n,a=0;for(let t=0;t<u.children.length;t+=1){if(g(u.children[t],c),v.state===e.NOMATCH){s=!1;break}c+=v.phraseLength,a+=v.phraseLength}s?(v.state=0===a?e.EMPTY:e.MATCH,v.phraseLength=a):(v.state=e.NOMATCH,v.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let s,i,a,u;const l=o[t];if(0===l.max)return v.state=e.EMPTY,void(v.phraseLength=0);for(i=n,a=0,u=0,r.ast&&(s=r.ast.getLength());!(i>=c.length)&&(g(t+1,i),v.state!==e.NOMATCH)&&v.state!==e.EMPTY&&(u+=1,a+=v.phraseLength,i+=v.phraseLength,u!==l.max););v.state===e.EMPTY||u>=l.min?(v.state=0===a?e.EMPTY:e.MATCH,v.phraseLength=a):(v.state=e.NOMATCH,v.phraseLength=0,r.ast&&r.ast.setLength(s))})(t,i);break;case e.RNM:((t,n)=>{let i,u,f;const p=o[t],d=s[p.index],m=a[d.index];if(h||(u=r.ast&&r.ast.ruleDefined(p.index),u&&(i=r.ast.getLength(),r.ast.down(p.index,s[p.index].name))),m){const t=c.length-n;m(v,c,n,l),y(d,v,t,!0),v.state===e.ACTIVE&&(f=o,o=d.opcodes,g(0,n),o=f,m(v,c,n,l),y(d,v,t,!1))}else f=o,o=d.opcodes,g(0,n),o=f;h||u&&(v.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(p.index,d.name,n,v.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const n=o[t];v.state=e.NOMATCH,r<c.length&&n.min<=c[r]&&c[r]<=n.max&&(v.state=e.MATCH,v.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const n=o[t],s=n.string.length;if(v.state=e.NOMATCH,r+s<=c.length){for(let e=0;e<s;e+=1)if(c[r+e]!==n.string[e])return;v.state=e.MATCH,v.phraseLength=s}})(t,i);break;case e.TLS:((t,r)=>{let n;const s=o[t];v.state=e.NOMATCH;const i=s.string.length;if(0!==i){if(r+i<=c.length){for(let e=0;e<i;e+=1)if(n=c[r+e],n>=65&&n<=90&&(n+=32),n!==s.string[e])return;v.state=e.MATCH,v.phraseLength=i}}else v.state=e.EMPTY})(t,i);break;case e.UDT:b(t,i);break;case e.AND:((t,r)=>{switch(h+=1,g(t+1,r),h-=1,v.phraseLength=0,v.state){case e.EMPTY:case e.MATCH:v.state=e.EMPTY;break;case e.NOMATCH:v.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${v.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(h+=1,g(t+1,r),h-=1,v.phraseLength=0,v.state){case e.EMPTY:case e.MATCH:v.state=e.NOMATCH;break;case e.NOMATCH:v.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${v.state}`)}})(t,i);break;default:throw new Error(`${u}unrecognized operator`)}h||i+v.phraseLength>m&&(m=i+v.phraseLength),r.stats&&r.stats.collect(w,v),r.trace&&r.trace.up(w,v.state,i,v.phraseLength),f-=1}},kI=function(){const e=II,t=FI,r=this;let n,s,i,o=0;const c=[],a=[],u=[];function l(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,l)=>{let h;a.length=0,u.length=0,o=0,n=e,s=t,i=l;const f=[];for(h=0;h<n.length;h+=1)f.push(n[h].lower);for(h=0;h<s.length;h+=1)f.push(s[h].lower);for(o=n.length+s.length,h=0;h<o;h+=1)c[h]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(h=f.indexOf(t),h<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);c[h]=r.callbacks[e]}},r.ruleDefined=e=>!!c[e],r.udtDefined=e=>!!c[n.length+e],r.down=(t,r)=>{const n=u.length;return a.push(n),u.push({name:r,thisIndex:n,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:a.length}),n},r.up=(t,r,n,s)=>{const i=u.length,o=a.pop();return u.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:a.length}),u[o].thatIndex=i,u[o].phraseIndex=n,u[o].phraseLength=s,i},r.translate=t=>{let r,n;for(let s=0;s<u.length;s+=1)n=u[s],r=c[n.callbackIndex],r&&(n.state===e.SEM_PRE?r(e.SEM_PRE,i,n.phraseIndex,n.phraseLength,t):r&&r(e.SEM_POST,i,n.phraseIndex,n.phraseLength,t))},r.setLength=e=>{u.length=e,a.length=e>0?u[e-1].stack:0},r.getLength=()=>u.length,r.toXml=()=>{let r="",n=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${u.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=l(n+2),r+=t.charsToString(i),r+="\n",u.forEach((s=>{s.state===e.SEM_PRE?(n+=1,r+=l(n),r+=`<node name="${s.name}" index="${s.phraseIndex}" length="${s.phraseLength}">\n`,r+=l(n+2),r+=t.charsToString(i,s.phraseIndex,s.phraseLength),r+="\n"):(r+=l(n),r+=`</node>\x3c!-- name="${s.name}" --\x3e\n`,n-=1)})),r+="</root>\n",r}},FI={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===r){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},II={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case II.ALT:return"ALT";case II.CAT:return"CAT";case II.REP:return"REP";case II.RNM:return"RNM";case II.TRG:return"TRG";case II.TBS:return"TBS";case II.TLS:return"TLS";case II.UDT:return"UDT";case II.AND:return"AND";case II.NOT:return"NOT";case II.ACTIVE:return"ACTIVE";case II.EMPTY:return"EMPTY";case II.MATCH:return"MATCH";case II.NOMATCH:return"NOMATCH";case II.SEM_PRE:return"SEM_PRE";case II.SEM_POST:return"SEM_POST";case II.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}},RI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-url-template",FI.charsToString(t,r,n)])}return II.SEM_OK},DI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable",FI.charsToString(t,r,n)])}return II.SEM_OK},_I=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable-name",FI.charsToString(t,r,n)])}return II.SEM_OK},CI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["literals",FI.charsToString(t,r,n)])}return II.SEM_OK},MI=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"ALPHA",lower:"alpha",index:4,isBkr:!1},this.rules[5]={name:"DIGIT",lower:"digit",index:5,isBkr:!1},this.rules[6]={name:"HEXDIG",lower:"hexdig",index:6,isBkr:!1},this.rules[7]={name:"pct-encoded",lower:"pct-encoded",index:7,isBkr:!1},this.rules[8]={name:"unreserved",lower:"unreserved",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ucschar",lower:"ucschar",index:10,isBkr:!1},this.rules[11]={name:"iprivate",lower:"iprivate",index:11,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[2].opcodes[2]={type:4,index:8},this.rules[2].opcodes[3]={type:4,index:7},this.rules[2].opcodes[4]={type:4,index:9},this.rules[2].opcodes[5]={type:7,string:[58]},this.rules[2].opcodes[6]={type:7,string:[64]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13,14]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:6,string:[38]},this.rules[3].opcodes[5]={type:5,min:40,max:59},this.rules[3].opcodes[6]={type:6,string:[61]},this.rules[3].opcodes[7]={type:5,min:63,max:91},this.rules[3].opcodes[8]={type:6,string:[93]},this.rules[3].opcodes[9]={type:6,string:[95]},this.rules[3].opcodes[10]={type:5,min:97,max:122},this.rules[3].opcodes[11]={type:6,string:[126]},this.rules[3].opcodes[12]={type:4,index:10},this.rules[3].opcodes[13]={type:4,index:11},this.rules[3].opcodes[14]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:65,max:90},this.rules[4].opcodes[2]={type:5,min:97,max:122},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[6].opcodes[1]={type:4,index:5},this.rules[6].opcodes[2]={type:7,string:[97]},this.rules[6].opcodes[3]={type:7,string:[98]},this.rules[6].opcodes[4]={type:7,string:[99]},this.rules[6].opcodes[5]={type:7,string:[100]},this.rules[6].opcodes[6]={type:7,string:[101]},this.rules[6].opcodes[7]={type:7,string:[102]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2,3]},this.rules[7].opcodes[1]={type:7,string:[37]},this.rules[7].opcodes[2]={type:4,index:6},this.rules[7].opcodes[3]={type:4,index:6},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[8].opcodes[1]={type:4,index:4},this.rules[8].opcodes[2]={type:4,index:5},this.rules[8].opcodes[3]={type:7,string:[45]},this.rules[8].opcodes[4]={type:7,string:[46]},this.rules[8].opcodes[5]={type:7,string:[95]},this.rules[8].opcodes[6]={type:7,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[10].opcodes[1]={type:5,min:160,max:55295},this.rules[10].opcodes[2]={type:5,min:63744,max:64975},this.rules[10].opcodes[3]={type:5,min:65008,max:65519},this.rules[10].opcodes[4]={type:5,min:65536,max:131069},this.rules[10].opcodes[5]={type:5,min:131072,max:196605},this.rules[10].opcodes[6]={type:5,min:196608,max:262141},this.rules[10].opcodes[7]={type:5,min:262144,max:327677},this.rules[10].opcodes[8]={type:5,min:327680,max:393213},this.rules[10].opcodes[9]={type:5,min:393216,max:458749},this.rules[10].opcodes[10]={type:5,min:458752,max:524285},this.rules[10].opcodes[11]={type:5,min:524288,max:589821},this.rules[10].opcodes[12]={type:5,min:589824,max:655357},this.rules[10].opcodes[13]={type:5,min:655360,max:720893},this.rules[10].opcodes[14]={type:5,min:720896,max:786429},this.rules[10].opcodes[15]={type:5,min:786432,max:851965},this.rules[10].opcodes[16]={type:5,min:851968,max:917501},this.rules[10].opcodes[17]={type:5,min:921600,max:983037},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3]},this.rules[11].opcodes[1]={type:5,min:57344,max:63743},this.rules[11].opcodes[2]={type:5,min:983040,max:1048573},this.rules[11].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable )\n",e+='server-variable = "{" server-variable-name "}"\n',e+='server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="literals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "\'", "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; Characters definitions (from RFC 6570)\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+=" ; case-insensitive\n",e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable )\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\nliterals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "\'", "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; Characters definitions (from RFC 6570)\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},NI=e=>{const t=new TI;t.ast=new kI,t.ast.callbacks["server-url-template"]=RI,t.ast.callbacks["server-variable"]=DI,t.ast.callbacks["server-variable-name"]=_I,t.ast.callbacks.literals=CI;return{result:t.parse(MI,"server-url-template",e),ast:t.ast}},qI=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),BI=["literals","server-variable-name"];const LI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["slash",FI.charsToString(t,r,n)]),II.SEM_OK),UI=(e,t,r,n,s)=>{if(e===II.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["path-template",FI.charsToString(t,r,n)])}return II.SEM_OK},JI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["path",FI.charsToString(t,r,n)]),II.SEM_OK),VI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["path-literal",FI.charsToString(t,r,n)]),II.SEM_OK),GI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["query",FI.charsToString(t,r,n)]),II.SEM_OK),HI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["query-marker",FI.charsToString(t,r,n)]),II.SEM_OK),zI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["fragment",FI.charsToString(t,r,n)]),II.SEM_OK),XI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["fragment-marker",FI.charsToString(t,r,n)]),II.SEM_OK),WI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["template-expression",FI.charsToString(t,r,n)]),II.SEM_OK),YI=(e,t,r,n,s)=>(e===II.SEM_PRE&&s.push(["template-expression-param-name",FI.charsToString(t,r,n)]),II.SEM_OK),ZI=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path",lower:"path",index:1,isBkr:!1},this.rules[2]={name:"path-segment",lower:"path-segment",index:2,isBkr:!1},this.rules[3]={name:"query",lower:"query",index:3,isBkr:!1},this.rules[4]={name:"query-literal",lower:"query-literal",index:4,isBkr:!1},this.rules[5]={name:"query-marker",lower:"query-marker",index:5,isBkr:!1},this.rules[6]={name:"fragment",lower:"fragment",index:6,isBkr:!1},this.rules[7]={name:"fragment-literal",lower:"fragment-literal",index:7,isBkr:!1},this.rules[8]={name:"fragment-marker",lower:"fragment-marker",index:8,isBkr:!1},this.rules[9]={name:"slash",lower:"slash",index:9,isBkr:!1},this.rules[10]={name:"path-literal",lower:"path-literal",index:10,isBkr:!1},this.rules[11]={name:"template-expression",lower:"template-expression",index:11,isBkr:!1},this.rules[12]={name:"template-expression-param-name",lower:"template-expression-param-name",index:12,isBkr:!1},this.rules[13]={name:"unreserved",lower:"unreserved",index:13,isBkr:!1},this.rules[14]={name:"pct-encoded",lower:"pct-encoded",index:14,isBkr:!1},this.rules[15]={name:"sub-delims",lower:"sub-delims",index:15,isBkr:!1},this.rules[16]={name:"ALPHA",lower:"alpha",index:16,isBkr:!1},this.rules[17]={name:"DIGIT",lower:"digit",index:17,isBkr:!1},this.rules[18]={name:"HEXDIG",lower:"hexdig",index:18,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:5},this.rules[0].opcodes[5]={type:4,index:3},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:2,children:[8,9]},this.rules[0].opcodes[8]={type:4,index:8},this.rules[0].opcodes[9]={type:4,index:6},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,6]},this.rules[1].opcodes[1]={type:4,index:9},this.rules[1].opcodes[2]={type:3,min:0,max:1/0},this.rules[1].opcodes[3]={type:2,children:[4,5]},this.rules[1].opcodes[4]={type:4,index:2},this.rules[1].opcodes[5]={type:4,index:9},this.rules[1].opcodes[6]={type:3,min:0,max:1},this.rules[1].opcodes[7]={type:4,index:2},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:10},this.rules[2].opcodes[3]={type:4,index:11},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:4},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10]},this.rules[4].opcodes[2]={type:4,index:13},this.rules[4].opcodes[3]={type:4,index:14},this.rules[4].opcodes[4]={type:4,index:15},this.rules[4].opcodes[5]={type:7,string:[58]},this.rules[4].opcodes[6]={type:7,string:[64]},this.rules[4].opcodes[7]={type:7,string:[47]},this.rules[4].opcodes[8]={type:7,string:[63]},this.rules[4].opcodes[9]={type:7,string:[38]},this.rules[4].opcodes[10]={type:7,string:[61]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:7,string:[63]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:0,max:1/0},this.rules[6].opcodes[1]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:3,min:1,max:1/0},this.rules[7].opcodes[1]={type:1,children:[2,3,4,5,6,7,8]},this.rules[7].opcodes[2]={type:4,index:13},this.rules[7].opcodes[3]={type:4,index:14},this.rules[7].opcodes[4]={type:4,index:15},this.rules[7].opcodes[5]={type:7,string:[58]},this.rules[7].opcodes[6]={type:7,string:[64]},this.rules[7].opcodes[7]={type:7,string:[47]},this.rules[7].opcodes[8]={type:7,string:[63]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:7,string:[35]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:7,string:[47]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:3,min:1,max:1/0},this.rules[10].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[10].opcodes[2]={type:4,index:13},this.rules[10].opcodes[3]={type:4,index:14},this.rules[10].opcodes[4]={type:4,index:15},this.rules[10].opcodes[5]={type:7,string:[58]},this.rules[10].opcodes[6]={type:7,string:[64]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2,3]},this.rules[11].opcodes[1]={type:7,string:[123]},this.rules[11].opcodes[2]={type:4,index:12},this.rules[11].opcodes[3]={type:7,string:[125]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:1,max:1/0},this.rules[12].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[12].opcodes[3]={type:4,index:14},this.rules[12].opcodes[4]={type:4,index:15},this.rules[12].opcodes[5]={type:7,string:[58]},this.rules[12].opcodes[6]={type:7,string:[64]},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[13].opcodes[1]={type:4,index:16},this.rules[13].opcodes[2]={type:4,index:17},this.rules[13].opcodes[3]={type:7,string:[45]},this.rules[13].opcodes[4]={type:7,string:[46]},this.rules[13].opcodes[5]={type:7,string:[95]},this.rules[13].opcodes[6]={type:7,string:[126]},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3]},this.rules[14].opcodes[1]={type:7,string:[37]},this.rules[14].opcodes[2]={type:4,index:18},this.rules[14].opcodes[3]={type:4,index:18},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[15].opcodes[1]={type:7,string:[33]},this.rules[15].opcodes[2]={type:7,string:[36]},this.rules[15].opcodes[3]={type:7,string:[38]},this.rules[15].opcodes[4]={type:7,string:[39]},this.rules[15].opcodes[5]={type:7,string:[40]},this.rules[15].opcodes[6]={type:7,string:[41]},this.rules[15].opcodes[7]={type:7,string:[42]},this.rules[15].opcodes[8]={type:7,string:[43]},this.rules[15].opcodes[9]={type:7,string:[44]},this.rules[15].opcodes[10]={type:7,string:[59]},this.rules[15].opcodes[11]={type:7,string:[61]},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2]},this.rules[16].opcodes[1]={type:5,min:65,max:90},this.rules[16].opcodes[2]={type:5,min:97,max:122},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:48,max:57},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[18].opcodes[1]={type:4,index:17},this.rules[18].opcodes[2]={type:7,string:[97]},this.rules[18].opcodes[3]={type:7,string:[98]},this.rules[18].opcodes[4]={type:7,string:[99]},this.rules[18].opcodes[5]={type:7,string:[100]},this.rules[18].opcodes[6]={type:7,string:[101]},this.rules[18].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="path-template = path [ query-marker query ] [ fragment-marker fragment ]\n",e+="path = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+="query = *( query-literal )\n",e+='query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n',e+='query-marker = "?"\n',e+="fragment = *( fragment-literal )\n",e+='fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n',e+='fragment-marker = "#"\n',e+='slash = "/"\n',e+='path-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+='template-expression = "{" template-expression-param-name "}"\n',e+='template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="\n",e+="; Characters definitions (from RFC 3986)\n",e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}},KI=e=>{const t=new TI;t.ast=new kI,t.ast.callbacks["path-template"]=UI,t.ast.callbacks.path=JI,t.ast.callbacks.query=GI,t.ast.callbacks["query-marker"]=HI,t.ast.callbacks.fragment=zI,t.ast.callbacks["fragment-marker"]=XI,t.ast.callbacks.slash=LI,t.ast.callbacks["path-literal"]=VI,t.ast.callbacks["template-expression"]=WI,t.ast.callbacks["template-expression-param-name"]=YI;return{result:t.parse(ZI,"path-template",e),ast:t.ast}},QI=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),eR=["slash","path-literal","query-marker","query-literal","template-expression-param-name"],tR=(e,t,r={})=>{const n={...{encoder:QI},...r},s=KI(e);if(!s.result.success)return e;const i=[];s.ast.translate(i);const o=i.filter((([e])=>eR.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?n.encoder(t[r],r):`{${r}}`:r));return o.join("")},rR={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:n}){if(void 0!==t){const s=e.url.replace(n,""),i=tR(s,{[r.name]:t});e.url=n+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function nR(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}const sR=["accept","authorization","content-type"];const iR=Object.freeze(Object.defineProperty({__proto__:null,cookie:function({req:e,parameter:t,value:r}){e.headers=e.headers||{};const n=typeof r;if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${nR(r,n)}`}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const s="object"===n&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=s+openapi_parser_f({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}},header:function({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(sR.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=nR(r,n)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=openapi_parser_f({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))},path:function({req:e,value:t,parameter:r,baseURL:n}){const{name:s,style:i,explode:o,content:c}=r;if(void 0===t)return;const a=e.url.replace(n,"");let u;if(c){const e=Object.keys(c)[0];u=tR(a,{[s]:t},{encoder:t=>openapi_parser_h(nR(t,e))})}else u=tR(a,{[s]:t},{encoder:e=>openapi_parser_f({key:r.name,value:e,style:i||"simple",explode:o||!1,escape:"reserved"})});e.url=n+u},query:function({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const n=nR(t,Object.keys(r.content)[0]);if(n)e.query[r.name]=n;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:n,explode:s,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:s,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}},Symbol.toStringTag,{value:"Module"})),oR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:cR}=oR;function aR(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:c}=e;t=function({request:e,securities:t={},operation:r={},spec:n}){var s;const i={...e},{authorized:o={}}=t,c=r.security||n.security||[],a=o&&!!Object.keys(o).length,u=(null==n||null===(s=n.components)||void 0===s?void 0:s.securitySchemes)||{};if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!a||!c||Array.isArray(r.security)&&!r.security.length)return e;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=u[e];if(!t)return;const n=t.value||t,{type:s}=r;if(t)if("apiKey"===s)"query"===r.in&&(i.query[r.name]=n),"header"===r.in&&(i.headers[r.name]=n),"cookie"===r.in&&(i.cookies[r.name]=n);else if("http"===s){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=cR(`${e}:${t}`);i.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(i.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===s||"openIdConnect"===s){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let s=e.token_type;s&&"bearer"!==s.toLowerCase()||(s="Bearer"),i.headers.Authorization=`${s} ${n}`}}))})),i}({request:t,securities:s,operation:r,spec:i});const a=r.requestBody||{},u=Object.keys(a.content||{}),l=c&&u.indexOf(c)>-1;if(n||o){if(c&&l)t.headers["Content-Type"]=c;else if(!c){const e=u[0];e&&(t.headers["Content-Type"]=e,c=e)}}else c&&l&&(t.headers["Content-Type"]=c);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&em(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(c){if(u.indexOf(c)>-1)if("application/x-www-form-urlencoded"===c||"multipart/form-data"===c)if("object"==typeof n){var h,f;const e=null!==(h=null===(f=a.content[c])||void 0===f?void 0:f.encoding)&&void 0!==h?h:{};t.form={},Object.keys(n).forEach((r=>{let s;try{s=JSON.parse(n[r])}catch{s=n[r]}t.form[r]={value:s,encoding:e[r]||{}}}))}else if("string"==typeof n){var p,d;const e=null!==(p=null===(d=a.content[c])||void 0===d?void 0:d.encoding)&&void 0!==p?p:{};try{t.form={};const r=JSON.parse(n);Object.entries(r).forEach((([r,n])=>{t.form[r]={value:n,encoding:e[r]||{}}}))}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function uR(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:c}=e;if(t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:i={},specSecurity:o=[]}=t,c=r.security||o,a=i&&!!Object.keys(i).length,u=n.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!a||!c||Array.isArray(r.security)&&!r.security.length)return e;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,n=t.value||t,o=u[e],{type:c}=o,a=o["x-tokenName"]||"access_token",l=r&&r[a];let h=r&&r.token_type;if(t)if("apiKey"===c){const e="query"===o.in?"query":"headers";s[e]=s[e]||{},s[e][o.name]=n}else if("basic"===c)if(n.header)s.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=cR(`${e}:${t}`),s.headers.authorization=`Basic ${n.base64}`}else"oauth2"===c&&l&&(h=h&&"bearer"!==h.toLowerCase()?h:"Bearer",s.headers.authorization=`${h} ${l}`)}))})),s}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||c)i?t.headers["Content-Type"]=i:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=n.parameters&&n.parameters.filter((e=>"body"===e.in)).length>0,r=n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}const lR=e=>Array.isArray(e)?e:[],hR=e=>{try{return new URL(e)}catch{const t=new URL(e,"https://swagger.io"),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class fR extends Ih{}const pR={buildRequest:dR};function dR(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:c,userFetch:a,server:u,serverVariables:l,http:h,signal:f,serverVariableEncoder:p}=e;let{parameters:d,parameterBuilders:m}=e;const v=J$(t);m||(m=v?iR:rR);let y={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(y.signal=f),i&&(y.requestInterceptor=i),o&&(y.responseInterceptor=o),a&&(y.userFetch=a);const b=gI(t,r);if(!b)throw new fR(`Operation ${r} not found`);const{operation:w={},method:x,pathName:j}=b,E=vR({spec:t,scheme:s,contextUrl:c,server:u,serverVariables:l,pathName:j,method:x,serverVariableEncoder:p});if(y.url+=E,!r)return delete y.cookies,y;y.url+=j,y.method=`${x}`.toUpperCase(),d=d||{};const $=t.paths[j]||{};n&&(y.headers.accept=n);const O=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(lR(w.parameters)).concat(lR($.parameters)));O.forEach((e=>{const r=m[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=d),n=e&&e.name&&d[e.name],void 0===n?n=e&&e.name&&d[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).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!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(v&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:y,parameter:e,value:n,operation:w,spec:t,baseURL:E})}}));const S={...e,operation:w};if(y=v?aR(S,y):uR(S,y),y.cookies&&Object.keys(y.cookies).length){const e=Object.keys(y.cookies).reduce(((e,t)=>{const r=y.cookies[t];return e+(e?"&":"")+EI.serialize(t,r)}),"");y.headers.Cookie=e}return y.cookies&&delete y.cookies,openapi_parser_g(y)}const mR=e=>e?e.replace(/\W/g,""):null;function vR(t){return J$(t.spec)?function({spec:t,pathName:r,method:n,server:s,contextUrl:i,serverVariables:o={},serverVariableEncoder:c}){var a,u;let l,h=[],f="";const p=null==t||null===(a=t.paths)||void 0===a||null===(a=a[r])||void 0===a||null===(a=a[(n||"").toLowerCase()])||void 0===a?void 0:a.servers,d=null==t||null===(u=t.paths)||void 0===u||null===(u=u[r])||void 0===u?void 0:u.servers,m=null==t?void 0:t.servers;h=yR(p)?p:yR(d)?d:yR(m)?m:[openapi_parser_e],s&&(l=h.find((e=>e.url===s)),l&&(f=s));f||([l]=h,f=l.url);if(((e,{strict:t=!1}={})=>{try{const r=NI(e);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const s=n.some((([e])=>"server-variable"===e));if(!t&&!s)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||s}catch{return!1}})(f,{strict:!0})){const e=Object.entries({...l.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});f=((e,t,r={})=>{const n={encoder:qI,...r},s=NI(e);if(!s.result.success)return e;const i=[];s.ast.translate(i);const o=i.filter((([e])=>BI.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?n.encoder(t[r],r):`{${r}}`:r));return o.join("")})(f,{...e,...o},{encoder:"function"==typeof c?c:jp})}return function(e="",t=""){const r=hR(e&&t?Xm(t,e):e),n=hR(t),s=mR(r.protocol)||mR(n.protocol),i=r.host||n.host,o=r.pathname;let c;c=s&&i?`${s}://${i+o}`:o;return"/"===c[c.length-1]?c.slice(0,-1):c}(f,i)}(t):function({spec:e,scheme:t,contextUrl:r=""}){const n=hR(r),s=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||s||mR(n.protocol)||"http",o=e.host||n.host||"",c=e.basePath||"";let a;a=i&&o?`${i}://${o+c}`:c;return"/"===a[a.length-1]?a.slice(0,-1):a}(t)}const yR=e=>Array.isArray(e)&&e.length>0;function bR(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof bR))return new bR(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,bR.makeApisTagOperation(this)),this)));return r.client=this,r}bR.http=_t,bR.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),n=openapi_parser_g(n),n=t(n),r(e(n)))}.bind(null,bR.http),bR.resolveStrategies={"openapi-3-1-apidom":vI,"openapi-3-0":G$,"openapi-2-0":V$,generic:q$},bR.resolve=H$({strategies:[bR.resolveStrategies["openapi-3-1-apidom"],bR.resolveStrategies["openapi-3-0"],bR.resolveStrategies["openapi-2-0"],bR.resolveStrategies.generic]}),bR.resolveSubtree=(e=>async(t,r,n={})=>(async(e,t,r={})=>{const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:u,strategies:l}=r,h={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:u,strategies:l},f=l.find((t=>t.match(e))).normalize(e),p=await z$({spec:f,...h,allowMetaPatches:!0,skipNormalization:!U$(e)});return!n&&Array.isArray(t)&&t.length&&(p.spec=t.reduce(((e,t)=>null==e?void 0:e[t]),p.spec)||null),p})(t,r,{...e,...n}))({strategies:[bR.resolveStrategies["openapi-3-1-apidom"],bR.resolveStrategies["openapi-3-0"],bR.resolveStrategies["openapi-2-0"],bR.resolveStrategies.generic]}),bR.execute=function({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:c,...a}){const u=e||t||_t;s&&i&&!n&&(n=bI(s,i));const l=pR.buildRequest({spec:r,operationId:n,parameters:o,securities:c,http:u,...a});return l.body&&(em(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),u(l)},bR.serializeRes=Dt,bR.serializeHeaders=Rt,bR.clearCache=function(){D$.refs.clearCache()},bR.makeApisTagOperation=function(e={}){const t=jI.makeExecute(e);return{apis:jI.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},bR.buildRequest=dR,bR.helpers={opId:M$},bR.getBaseUrl=vR,bR.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:_F}},parse:{parsers:{JsonParser:CF,YamlParser:MF,OpenApiJson3_1Parser:NF,OpenApiYaml3_1Parser:qF}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:fI}}},bR.prototype={http:_t,execute(e){return this.applyDefaults(),bR.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return bR.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},bR.prototype.applyDefaults=function(){const{spec:t}=this,r=this.url;if(B$(t)&&wI(r)){const e=new URL(r);t.host||(t.host=e.host),t.schemes||(t.schemes=[e.protocol.replace(":","")]),t.basePath||(t.basePath="/")}else if(J$(t)){const r=Array.isArray(t.servers)&&0===t.servers.length;t.servers&&!r||(t.servers=[openapi_parser_e])}};function gR(e){const t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}const wR={parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],uniqueOnly:function(e,t,r){return r.indexOf(e)===t},createHash:function(e){let t,r=0;if(0===e.length)return r;for(let n=0;n<e.length;n++)t=e.charCodeAt(n),r=(r<<5)-r+t,r|=0;return r},sanitise:gR,sanitiseAll:function(e){return gR(e.split("/").join("_"))},camelize:function(e){return e.toLowerCase().replace(/[-_ \/\.](.)/g,((e,t)=>t.toUpperCase()))},clone:function(e){return JSON.parse(JSON.stringify(e))},circularClone:function e(t,r=null){if(r||(r=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(r.has(t))return r.get(t);let n;try{n=new t.constructor}catch(e){n=Object.create(Object.getPrototypeOf(t))}return r.set(t,n),Object.assign(n,...Object.keys(t).map((n=>({[n]:e(t[n],r)}))))}};function xR(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}const jR={getDefaultState:xR,walkSchema:function e(t,r,n,s){if(void 0===n.depth&&(n=xR()),null==t)return t;if(n.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t={...t.allOf[0],...t})?.allOf,t?.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t={...t.anyOf[0],...t})?.anyOf,t?.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t={...t.oneOf[0],...t})?.oneOf),s(t,r,n),n.seen.has(t))return t;if("object"==typeof t&&null!==t&&n.seen.set(t,!0),n.top=!1,n.depth++,void 0!==t?.items&&(n.property="items",e(t.items,t,n,s)),t?.additionalItems&&"object"==typeof t.additionalItems&&(n.property="additionalItems",e(t.additionalItems,t,n,s)),t?.additionalProperties&&"object"==typeof t.additionalProperties&&(n.property="additionalProperties",e(t.additionalProperties,t,n,s)),t?.properties)for(const r in t.properties){const i=t.properties[r];n.property=`properties/${r}`,e(i,t,n,s)}if(t?.patternProperties)for(const r in t.patternProperties){const i=t.patternProperties[r];n.property=`patternProperties/${r}`,e(i,t,n,s)}if(t?.allOf)for(const r in t.allOf){const i=t.allOf[r];n.property=`allOf/${r}`,e(i,t,n,s)}if(t?.anyOf)for(const r in t.anyOf){const i=t.anyOf[r];n.property=`anyOf/${r}`,e(i,t,n,s)}if(t?.oneOf)for(const r in t.oneOf){const i=t.oneOf[r];n.property=`oneOf/${r}`,e(i,t,n,s)}return t?.not&&(n.property="not",e(t.not,t,n,s)),n.depth--,t}};function ER(e,t,r){if(t||(t={depth:0}),t.depth||(t={path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1,...t}),"object"!=typeof e)return;const n=t.path;for(const s in e){if(t.key=s,t.path=`${t.path}/${encodeURIComponent(s)}`,t.identityPath=t.seen.get(e[s]),t.identity=void 0!==t.identityPath,e.hasOwnProperty(s)&&r(e,s,t),"object"==typeof e[s]&&!t.identity){t.identityDetection&&!Array.isArray(e[s])&&null!==e[s]&&t.seen.set(e[s],t.path);const n={};n.parent=e,n.path=t.path,n.depth=t.depth?t.depth+1:1,n.pkey=s,n.payload=t.payload,n.seen=t.seen,n.identity=!1,n.identityDetection=t.identityDetection,ER(e[s],n,r)}t.path=n}}let $R;function OR(e,t){for(const r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function SR(e,t){jR.walkSchema(e,{},{},((e,r)=>{!function(e){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(const t in e.discriminator.mapping){const r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type)){if(r.patches++,r.warnings.push("(Patchable) schema type must not be an array"),0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(const t of e.type){const r={};if("null"===t)e.nullable=!0;else{r.type=t;for(const t of wR.arrayProperties)void 0!==e.prop&&(r[t]=e[t],delete e[t])}r.type&&e.oneOf.push(r)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&(r.patches++,r.warnings.push("Lost properties from oneOf")),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"file"===e.type&&(e.type="string",e.format="binary"),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace),e.allowEmptyValue&&(delete e.allowEmptyValue,r.patches++,r.warnings.push("(Patchable): deleted schema.allowEmptyValue"))}(e,r,t)}))}function AR(e){for(const t in e)for(const r in e[t]){const n=wR.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function PR(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){const r={};let n=e.flow;"application"===e.flow&&(n="clientCredentials"),"accessCode"===e.flow&&(n="authorizationCode"),"string"==typeof e.authorizationUrl&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,e.name&&(delete e.name,t.patches++,t.warnings.push("(Patchable) oauth2 securitySchemes should not have name property"))}}function TR(e){return e&&!e["x-s2o-delete"]}function kR(e,t){if(e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type){if(e.items.collectionFormat!==e.collectionFormat)return t.errCount++,void t.errors.push({message:"Nested collectionFormats are not supported",pointer:"/.../responses/header"});delete e.items.collectionFormat}"array"===e.type?("ssv"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:ssv is no longer supported for headers")):"pipes"===e.collectionFormat?(t.patches++,t.warnings.push("collectionFormat:pipes is no longer supported for headers")):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(e["x-collectionFormat"]="tsv",t.patches++,t.warnings.push("collectionFormat:tsv is no longer supported")):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(delete e.collectionFormat,t.patches++,t.warnings.push("(Patchable) collectionFormat is only applicable to header.type array")),delete e.type;for(const t of wR.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(const t of wR.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}function FR(e,t,r,n,s,i,o){const c={};let a,u=!0;t&&t.consumes&&"string"==typeof t.consumes&&(t.consumes=[t.consumes],o.patches++,o.warnings.push("(Patchable) operation.consumes must be an array")),Array.isArray(i.consumes)||delete i.consumes;const l=((t?t.consumes:null)||i.consumes||[]).filter(wR.uniqueOnly);if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"===e.in||e.type||(e.type="string",o.patches++,o.warnings.push("(Patchable) parameter.type is mandatory for non-body parameters")),"file"===e.type&&(e["x-s2o-originalType"]=e.type,a=e.type),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!==e.type&&(delete e.collectionFormat,o.patches++,o.warnings.push("(Patchable) collectionFormat is only applicable to param.type array")),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":o.warnings.push(`${e.name} collectionFormat:ssv is no longer supported except for in:query parameters`)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":o.warnings.push(`${e.name} collectionFormat:pipes is no longer supported except for in:query parameters`)),"multi"===t&&(e.explode=!0),"tsv"===t&&(o.warnings.push("collectionFormat:tsv is no longer supported"),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"body"!==e.type&&"formData"!==e.in)if(e.items&&e.schema)o.warnings.push(`${e.name} parameter has array,items and schema`);else{e.schema&&o.patches++,e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,ER(e.schema.items,null,((r,n)=>{"collectionFormat"===n&&"string"==typeof r[n]&&(t&&r[n]!==t&&o.warnings.push(`${e.name} Nested collectionFormats are not supported`),delete r[n])})));for(const t of wR.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&SR(e.schema,o),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){u=!1,c.content={};let t="application/x-www-form-urlencoded";if(l.length&&l.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),c.content[t]={},e.schema)c.content[t].schema=e.schema;else{c.content[t].schema={},c.content[t].schema.type="object",c.content[t].schema.properties={},c.content[t].schema.properties[e.name]={};const r=c.content[t].schema,n=c.content[t].schema.properties[e.name];e.description&&(n.description=e.description),e.example&&(n.example=e.example),e.type&&(n.type=e.type);for(const t of wR.parameterTypeProperties)void 0!==e[t]&&(n[t]=e[t]);!0===e.required&&(r.required||(r.required=[]),r.required.push(e.name),c.required=!0),void 0!==e.default&&(n.default=e.default),n.properties&&(n.properties=e.properties),e.allOf&&(n.allOf=e.allOf),"array"===e.type&&e.items&&(n.items=e.items,n.items.collectionFormat&&delete n.items.collectionFormat),"file"!==a&&"file"!==e["x-s2o-originalType"]||(n.type="string",n.format="binary"),OR(e,n)}}else e&&"file"===e.type&&(e.required&&(c.required=e.required),c.content={},c.content["application/octet-stream"]={},c.content["application/octet-stream"].schema={},c.content["application/octet-stream"].schema.type="string",c.content["application/octet-stream"].schema.format="binary",OR(e,c));if(e&&"body"===e.in){c.content={},e.name&&(c["x-s2o-name"]=(t&&t.operationId?wR.sanitiseAll(t.operationId):"")+wR.camelize(`_${e.name}`)),e.description&&(c.description=e.description),e.required&&(c.required=e.required),l.length||l.push("application/json");for(const t of l)c.content[t]={},c.content[t].schema=wR.clone(e.schema||{}),SR(c.content[t].schema,o);OR(e,c)}if(Object.keys(c).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&u){t.requestBody["x-s2o-overloaded"]=!0;const e=t.operationId||s;o.warnings.push(`Operation ${e} has multiple requestBodies`)}else t.requestBody||(t=function(e,t){const r={};for(const n of Object.keys(e))r[n]=e[n],"parameters"===n&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}(t,o),r[n]=t),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&c.content["multipart/form-data"]&&c.content["multipart/form-data"].schema&&c.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,c.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(c.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&c.content["application/x-www-form-urlencoded"]&&c.content["application/x-www-form-urlencoded"].schema&&c.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,c.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(c.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,c),t.requestBody["x-s2o-name"]||t.operationId&&(t.requestBody["x-s2o-name"]=wR.sanitiseAll(t.operationId)));if(e&&!e["x-s2o-delete"]){delete e.type;for(const t of wR.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(e.required=!0,o.patches++,o.warnings.push(`(Patchable) path parameters must be required:true [${e.name} in ${s}]`))}return t}function IR(e,t,r,n){if(!e)return!1;if(e.description||"object"!=typeof e||Array.isArray(e)||(n.patches++,n.warnings.push("(Patchable) response.description is mandatory")),void 0!==e.schema){SR(e.schema,n),t&&t.produces&&"string"==typeof t.produces&&(t.produces=[t.produces],n.patches++,n.warnings.push("(Patchable) operation.produces must be an array")),r.produces&&!Array.isArray(r.produces)&&delete r.produces;const s=((t?t.produces:null)||r.produces||[]).filter(wR.uniqueOnly);s.length||s.push("*/*"),e.content={};for(const t of s){if(e.content[t]={},e.content[t].schema=wR.clone(e.schema),e.examples&&e.examples[t]){const r={};r.value=e.examples[t],e.content[t].examples={},e.content[t].examples.response=r,delete e.examples[t]}"file"===e.content[t].schema.type&&(e.content[t].schema={type:"string",format:"binary"})}delete e.schema}for(const t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(const t in e.headers)"status code"===t.toLowerCase()?(delete e.headers[t],n.patches++,n.warnings.push('(Patchable) "Status Code" is not a valid header')):kR(e.headers[t],n)}function RR(e,t,r,n,s){for(const i in e){const o=e[i];o&&o["x-trace"]&&"object"==typeof o["x-trace"]&&(o.trace=o["x-trace"],delete o["x-trace"]),o&&o["x-summary"]&&"string"==typeof o["x-summary"]&&(o.summary=o["x-summary"],delete o["x-summary"]),o&&o["x-description"]&&"string"==typeof o["x-description"]&&(o.description=o["x-description"],delete o["x-description"]),o&&o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]);for(const e in o)if(wR.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let c=o[e];if(c&&c.parameters&&Array.isArray(c.parameters)){if(o.parameters)for(const t of o.parameters){c.parameters.find((e=>e.name===t.name&&e.in===t.in))||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(c=FR(t,c,o,e,i,s,r))}for(const t of c.parameters)c=FR(t,c,o,e,`${e}: ${i}`,s,r);c.parameters&&(c.parameters=c.parameters.filter(TR))}if(c&&c.security&&AR(c.security),"object"==typeof c){if(!c.responses){const e={description:"Default response"};c.responses={default:e}}for(const e in c.responses){IR(c.responses[e],c,s,r)}}if(c&&c["x-servers"]&&Array.isArray(c["x-servers"]))c.servers=c["x-servers"],delete c["x-servers"];else if(c&&c.schemes&&c.schemes.length)for(const e of c.schemes)if((!s.schemes||s.schemes.indexOf(e)<0)&&(c.servers||(c.servers=[]),Array.isArray(s.servers)))for(const e of s.servers){const t=wR.clone(e);c.servers.push(t)}if(c){if(delete c.consumes,delete c.produces,delete c.schemes,c["x-ms-examples"]){for(const e in c["x-ms-examples"]){const t=c["x-ms-examples"][e],r=wR.sanitiseAll(e);if(t.parameters)for(const r in t.parameters){const n=t.parameters[r];for(const t of(c.parameters||[]).concat(o.parameters||[]))t.name!==r||t.example||(t.examples||(t.examples={}),t.examples[e]={value:n})}if(t.responses)for(const n in t.responses){if(t.responses[n].headers)for(const e in t.responses[n].headers){const r=t.responses[n].headers[e];for(const t in c.responses[n].headers)if(t===e){c.responses[n].headers[t].example=r}}if(t.responses[n].body&&(s.components.examples[r]={value:wR.clone(t.responses[n].body)},c.responses[n]&&c.responses[n].content))for(const t in c.responses[n].content){const s=c.responses[n].content[t];s.examples||(s.examples={}),s.examples[e]={$ref:`#/components/examples/${r}`}}}}delete c["x-ms-examples"]}if(c.parameters&&0===c.parameters.length&&delete c.parameters,c.requestBody){const r=c.operationId?wR.sanitiseAll(c.operationId):wR.camelize(wR.sanitiseAll(e+i)),s=wR.sanitise(c.requestBody["x-s2o-name"]||r||"");delete c.requestBody["x-s2o-name"];const o=JSON.stringify(c.requestBody),a=wR.createHash(o);if(!n[a]){const e={};e.name=s,e.body=c.requestBody,e.refs=[],n[a]=e}const u=`#/${t}/${encodeURIComponent(i)}/${e}/requestBody`;n[a].refs.push(u)}}}if(o&&o.parameters){for(const e in o.parameters){FR(o.parameters[e],null,o,null,i,s,r)}Array.isArray(o.parameters)&&(o.parameters=o.parameters.filter(TR))}}}function DR(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,((t,r)=>{e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e):e}function _R(e,t){void 0!==e.info&&null!==e.info||(e.info={version:"",title:""},t.patches++,t.warnings.push("(Patchable) info object is mandatory")),("object"!=typeof e.info||Array.isArray(e.info))&&(t.errCount++,t.errors.push({message:"info must be an object",pointer:"/info"})),e.info&&(void 0===e.info.title&&(t.patches++,e.info.title="",t.warnings.push({message:"(Patchable) info.title cannot be null",pointer:"/info/title",patchable:!0})),void 0===e.info.version?(t.patches++,e.info.version="",t.warnings.push("(Patchable) info.version cannot be null")):"string"!=typeof e.info.version&&(t.patches++,e.info.version=e.info.version.toString(),t.warnings.push("(Patchable) info.version must be a string")))}function CR(e,t){e.paths||(t.patches++,e.paths={},t.warnings.push("(Patchable) paths object is mandatory"))}function MR(e={}){const t={original:e,openapi:{},patches:0,warnings:[],errCount:0,errors:[]};if(e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=wR.circularClone(e),_R(t.openapi,t),CR(t.openapi,t),t;if("2.0"!==e.swagger)return t.errCount++,t.errors.push({message:`Unsupported swagger/OpenAPI version: ${e.openapi?e.openapi:e.swagger}`,pointer:"/swagger"}),t;if(t.openapi=wR.circularClone(e),t.openapi.openapi="3.0.0",delete t.openapi.swagger,ER(t.openapi,{},((e,t,r)=>{null===e[t]&&!t.startsWith("x-")&&"default"!==t&&r.path.indexOf("/example")<0&&delete e[t]})),e.host)(e.schemes||[]).forEach((r=>{const n={},s=(e.basePath||"").replace(/\/$/,"");n.url=`${r?`${r}:`:""}//${e.host}${s}`,DR(n),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(n)}));else if(e.basePath){const r={};r.url=e.basePath,DR(r),t.openapi.servers||(t.openapi.servers=[]),t.openapi.servers.push(r)}if(delete t.openapi.host,delete t.openapi.basePath,e["x-ms-parameterized-host"]){const r=e["x-ms-parameterized-host"],n={};n.url=r.hostTemplate+(e.basePath?e.basePath:""),n.variables={};const s=n.url.match(/\{\w+\}/g);for(const e in r.parameters){const t=r.parameters[e];e.startsWith("x-")||(delete t.required,delete t.type,delete t.in,void 0===t.default&&(t.enum?t.default=t.enum[0]:t.default="none"),t.name||(t.name=s[e].replace("{","").replace("}","")),n.variables[t.name]=t,delete t.name)}t.openapi.servers||(t.openapi.servers=[]),!1===r.useSchemePrefix?t.openapi.servers.push(n):e.schemes.forEach((e=>{t.openapi.servers.push({...n,url:`${e}://${n.url}`})})),delete t.openapi["x-ms-parameterized-host"]}return _R(t.openapi,t),CR(t.openapi,t),"string"==typeof t.openapi.consumes&&(t.openapi.consumes=[t.openapi.consumes]),"string"==typeof t.openapi.produces&&(t.openapi.produces=[t.openapi.produces]),t.openapi.components={},t.openapi["x-callbacks"]&&(t.openapi.components.callbacks=t.openapi["x-callbacks"],delete t.openapi["x-callbacks"]),t.openapi.components.examples={},t.openapi.components.headers={},t.openapi["x-links"]&&(t.openapi.components.links=t.openapi["x-links"],delete t.openapi["x-links"]),t.openapi.components.parameters=t.openapi.parameters||{},t.openapi.components.responses=t.openapi.responses||{},t.openapi.components.requestBodies={},t.openapi.components.securitySchemes=t.openapi.securityDefinitions||{},t.openapi.components.schemas=t.openapi.definitions||{},delete t.openapi.definitions,delete t.openapi.responses,delete t.openapi.parameters,delete t.openapi.securityDefinitions,function(e){const t=e.openapi,r={};$R={schemas:{}},t.security&&AR(t.security);for(const r in t.components.securitySchemes){const n=wR.sanitise(r);if(r!==n){if(t.components.securitySchemes[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised securityScheme name ${n}`,pointer:`/components/securitySchemes/${n}`}),e;t.components.securitySchemes[n]=t.components.securitySchemes[r],delete t.components.securitySchemes[r]}PR(t.components.securitySchemes[n],e)}for(const r in t.components.schemas){const n=wR.sanitiseAll(r);let s=0;if(r!==n){for(;t.components.schemas[n+s];)s=s?++s:2;t.components.schemas[n+s]=t.components.schemas[r],delete t.components.schemas[r]}$R.schemas[r]=n+s,SR(t.components.schemas[`${n}${s}`],e)}for(const r in t.components.parameters){const n=wR.sanitise(r);if(r!==n){if(t.components.parameters[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised parameter name ${n}`,pointer:`/components/parameters/${n}`}),e;t.components.parameters[n]=t.components.parameters[r],delete t.components.parameters[r]}FR(t.components.parameters[n],null,null,null,n,t,e)}for(const r in t.components.responses){const n=wR.sanitise(r);if(r!==n){if(t.components.responses[n])return e.errCount++,e.errors.push({message:`Duplicate sanitised response name ${n}`,pointer:`/components/responses/${n}`}),e;t.components.responses[n]=t.components.responses[r],delete t.components.responses[r]}const s=t.components.responses[n];if(IR(s,null,t,e),s.headers)for(const t in s.headers)"status code"===t.toLowerCase()?(delete s.headers[t],e.patches++,e.warnings.push('(Patchable) "Status Code" is not a valid header')):kR(s.headers[t],e)}for(const e in t.components.requestBodies){const n=t.components.requestBodies[e],s=JSON.stringify(n),i=wR.createHash(s),o={};o.name=e,o.body=n,o.refs=[],r[i]=o}RR(t.paths,"paths",e,r,t),t["x-ms-paths"]&&RR(t["x-ms-paths"],"x-ms-paths",e,r,t);for(const e in t.components.parameters)t.components.parameters[e]["x-s2o-delete"]&&delete t.components.parameters[e];return delete t.consumes,delete t.produces,delete t.schemes,t.components.requestBodies={},t.components.responses&&0===Object.keys(t.components.responses).length&&delete t.components.responses,t.components.parameters&&0===Object.keys(t.components.parameters).length&&delete t.components.parameters,t.components.examples&&0===Object.keys(t.components.examples).length&&delete t.components.examples,t.components.requestBodies&&0===Object.keys(t.components.requestBodies).length&&delete t.components.requestBodies,t.components.securitySchemes&&0===Object.keys(t.components.securitySchemes).length&&delete t.components.securitySchemes,t.components.headers&&0===Object.keys(t.components.headers).length&&delete t.components.headers,t.components.schemas&&0===Object.keys(t.components.schemas).length&&delete t.components.schemas,t.components&&0===Object.keys(t.components).length&&delete t.components,e}(t)}function NR(e){return e.ok&&e.text&&e.parseError&&"YAMLException"===e.parseError.name&&(!e.headers["content-type"]||e.headers["content-type"].match("text/plain"))&&(e.body=e.text),e}const qR={convertObj:MR,resolve:function(e){return new Promise((async t=>{try{const r=await bR.resolve(e,NR);if(r.errors&&r.errors.length>0)t(r);else{r.spec.openapi&&(r.resolvedSpec=r.spec,t(r));const e=MR(r.spec);e.errors&&e.errors.length>0&&(Array.isArray(r.errors)?r.errors.concat(r.errors):r.errors=e.errors),e.warnings&&e.warnings.length>0&&(r.warnings=e.warnings),r.resolvedSpec=r.spec,r.spec=e.openapi,t(r)}}catch(e){t(e)}}))}};
|
|
4285
4278
|
|
|
4286
4279
|
;// CONCATENATED MODULE: ./src/utils/spec-parser.js
|
|
4287
4280
|
/* eslint-disable no-use-before-define */
|
|
4288
4281
|
|
|
4289
4282
|
|
|
4290
4283
|
|
|
4291
|
-
async function ProcessSpec(specUrl, generateMissingTags = false, sortTags = false, sortSchemas = false, sortEndpointsBy = '', attrApiKey = '', attrApiKeyLocation = '', attrApiKeyValue = '', serverUrl = '') {
|
|
4284
|
+
async function ProcessSpec(specUrl, generateMissingTags = false, sortTags = false, sortSchemas = false, sortEndpointsBy = '', attrApiKey = '', attrApiKeyLocation = '', attrApiKeyValue = '', serverUrl = '', matchPaths = '', matchType = '', removeEndpointsWithBadgeLabelAs = '') {
|
|
4292
4285
|
var _jsonParsedSpec$info, _jsonParsedSpec$compo;
|
|
4293
4286
|
let jsonParsedSpec;
|
|
4294
4287
|
try {
|
|
@@ -4296,19 +4289,19 @@ async function ProcessSpec(specUrl, generateMissingTags = false, sortTags = fals
|
|
|
4296
4289
|
this.requestUpdate(); // important to show the initial loader
|
|
4297
4290
|
let specMeta;
|
|
4298
4291
|
if (typeof specUrl === 'string') {
|
|
4299
|
-
specMeta = await
|
|
4292
|
+
specMeta = await qR.resolve({
|
|
4300
4293
|
url: specUrl,
|
|
4301
4294
|
allowMetaPatches: false
|
|
4302
4295
|
}); // Swagger(specUrl);
|
|
4303
4296
|
} else {
|
|
4304
|
-
specMeta = await
|
|
4297
|
+
specMeta = await qR.resolve({
|
|
4305
4298
|
spec: specUrl,
|
|
4306
4299
|
allowMetaPatches: false
|
|
4307
4300
|
}); // Swagger({ spec: specUrl });
|
|
4308
4301
|
}
|
|
4309
4302
|
await sleep(0); // important to show the initial loader (allows for rendering updates)
|
|
4310
4303
|
|
|
4311
|
-
// If
|
|
4304
|
+
// If JSON Schema Viewer
|
|
4312
4305
|
if ((_specMeta$resolvedSpe = specMeta.resolvedSpec) !== null && _specMeta$resolvedSpe !== void 0 && _specMeta$resolvedSpe.jsonSchemaViewer && (_specMeta$resolvedSpe2 = specMeta.resolvedSpec) !== null && _specMeta$resolvedSpe2 !== void 0 && _specMeta$resolvedSpe2.schemaAndExamples) {
|
|
4313
4306
|
this.dispatchEvent(new CustomEvent('before-render', {
|
|
4314
4307
|
detail: {
|
|
@@ -4331,8 +4324,10 @@ async function ProcessSpec(specUrl, generateMissingTags = false, sortTags = fals
|
|
|
4331
4324
|
};
|
|
4332
4325
|
return parsedSpec;
|
|
4333
4326
|
}
|
|
4327
|
+
|
|
4328
|
+
// If RapiDoc or RapiDocMini
|
|
4334
4329
|
if (specMeta.spec && (specMeta.spec.components || specMeta.spec.info || specMeta.spec.servers || specMeta.spec.tags || specMeta.spec.paths)) {
|
|
4335
|
-
jsonParsedSpec = specMeta.spec;
|
|
4330
|
+
jsonParsedSpec = filterPaths(specMeta.spec, matchPaths, matchType, removeEndpointsWithBadgeLabelAs);
|
|
4336
4331
|
this.dispatchEvent(new CustomEvent('before-render', {
|
|
4337
4332
|
detail: {
|
|
4338
4333
|
spec: jsonParsedSpec
|
|
@@ -4423,7 +4418,7 @@ async function ProcessSpec(specUrl, generateMissingTags = false, sortTags = fals
|
|
|
4423
4418
|
|
|
4424
4419
|
// Servers
|
|
4425
4420
|
let servers = [];
|
|
4426
|
-
if (jsonParsedSpec.servers && Array.isArray(jsonParsedSpec.servers)) {
|
|
4421
|
+
if (jsonParsedSpec.servers && Array.isArray(jsonParsedSpec.servers) && jsonParsedSpec.servers.length > 0) {
|
|
4427
4422
|
jsonParsedSpec.servers.forEach(v => {
|
|
4428
4423
|
let computedUrl = v.url.trim();
|
|
4429
4424
|
if (!(computedUrl.startsWith('http') || computedUrl.startsWith('//') || computedUrl.startsWith('{'))) {
|
|
@@ -4464,7 +4459,7 @@ async function ProcessSpec(specUrl, generateMissingTags = false, sortTags = fals
|
|
|
4464
4459
|
computedUrl: 'http://localhost'
|
|
4465
4460
|
}];
|
|
4466
4461
|
}
|
|
4467
|
-
servers = jsonParsedSpec.servers;
|
|
4462
|
+
servers = jsonParsedSpec.servers; // eslint-disable-line prefer-destructuring
|
|
4468
4463
|
const parsedSpec = {
|
|
4469
4464
|
specLoadError: false,
|
|
4470
4465
|
isSpecLoading: false,
|
|
@@ -4478,6 +4473,56 @@ async function ProcessSpec(specUrl, generateMissingTags = false, sortTags = fals
|
|
|
4478
4473
|
};
|
|
4479
4474
|
return parsedSpec;
|
|
4480
4475
|
}
|
|
4476
|
+
function filterPaths(openApiObject, matchPaths = '', matchType = '', removeEndpointsWithBadgeLabelAs = '') {
|
|
4477
|
+
const filteredPaths = {};
|
|
4478
|
+
|
|
4479
|
+
// Convert the removePathsWithBadgeLabeledAs to an array if provided
|
|
4480
|
+
const labelsToRemove = removeEndpointsWithBadgeLabelAs.split(',').map(label => label.trim().toLowerCase()).filter(Boolean);
|
|
4481
|
+
|
|
4482
|
+
// Helper function to check if a path should be included based on matchPaths
|
|
4483
|
+
function pathMatches(pathsKey, httpMethod) {
|
|
4484
|
+
if (!matchPaths) {
|
|
4485
|
+
return true; // If no matchPaths provided, include everything
|
|
4486
|
+
}
|
|
4487
|
+
const fullPath = `${httpMethod} ${pathsKey}`.toLowerCase(); // Construct "method path" string
|
|
4488
|
+
if (matchType === 'regex') {
|
|
4489
|
+
const regex = new RegExp(matchPaths, 'i');
|
|
4490
|
+
return regex.test(matchPaths.toLowerCase());
|
|
4491
|
+
}
|
|
4492
|
+
return fullPath.includes(matchPaths.toLowerCase());
|
|
4493
|
+
}
|
|
4494
|
+
|
|
4495
|
+
// Helper function to check if the badges contain any label that needs to be removed
|
|
4496
|
+
function containsLabelToRemove(badges) {
|
|
4497
|
+
return badges.some(badge => labelsToRemove.includes(badge === null || badge === void 0 ? void 0 : badge.label.toLowerCase()));
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4500
|
+
// Loop through the paths in the openApiObject
|
|
4501
|
+
Object.entries(openApiObject.paths).forEach(([pathsKey, methods]) => {
|
|
4502
|
+
const filteredMethods = {};
|
|
4503
|
+
Object.entries(methods).forEach(([httpMethod, methodDetails]) => {
|
|
4504
|
+
const badges = methodDetails['x-badges'];
|
|
4505
|
+
|
|
4506
|
+
// Filter by matchPaths
|
|
4507
|
+
if (pathMatches(pathsKey, httpMethod)) {
|
|
4508
|
+
if (badges && Array.isArray(badges)) {
|
|
4509
|
+
// Filter out based on removePathsWithBadgeLabeledAs
|
|
4510
|
+
if (!containsLabelToRemove(badges)) {
|
|
4511
|
+
filteredMethods[httpMethod] = methodDetails;
|
|
4512
|
+
}
|
|
4513
|
+
} else {
|
|
4514
|
+
// No badges present, include the method
|
|
4515
|
+
filteredMethods[httpMethod] = methodDetails;
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
});
|
|
4519
|
+
if (Object.keys(filteredMethods).length > 0) {
|
|
4520
|
+
filteredPaths[pathsKey] = filteredMethods;
|
|
4521
|
+
}
|
|
4522
|
+
});
|
|
4523
|
+
openApiObject.paths = filteredPaths;
|
|
4524
|
+
return openApiObject;
|
|
4525
|
+
}
|
|
4481
4526
|
function getHeadersFromMarkdown(markdownContent) {
|
|
4482
4527
|
const tokens = marked.lexer(markdownContent);
|
|
4483
4528
|
const headers = tokens.filter(v => v.type === 'heading' && v.depth <= 2);
|
|
@@ -4560,7 +4605,7 @@ function getComponents(openApiSpec, sortSchemas = false) {
|
|
|
4560
4605
|
}
|
|
4561
4606
|
function groupByTags(openApiSpec, sortEndpointsBy, generateMissingTags = false, sortTags = false) {
|
|
4562
4607
|
const supportedMethods = ['get', 'put', 'post', 'delete', 'patch', 'head', 'options']; // this is also used for ordering endpoints by methods
|
|
4563
|
-
const tags = openApiSpec.tags && Array.isArray(openApiSpec.tags) ? openApiSpec.tags.map(v => ({
|
|
4608
|
+
const tags = openApiSpec.tags && Array.isArray(openApiSpec.tags) && openApiSpec.tags.length > 0 ? openApiSpec.tags.map(v => ({
|
|
4564
4609
|
show: true,
|
|
4565
4610
|
elementId: `tag--${v.name.replace(invalidCharsRegEx, '-')}`,
|
|
4566
4611
|
name: v.name,
|
|
@@ -4598,7 +4643,7 @@ function groupByTags(openApiSpec, sortEndpointsBy, generateMissingTags = false,
|
|
|
4598
4643
|
pathTags.push(pathOrHookNameKey);
|
|
4599
4644
|
} else {
|
|
4600
4645
|
// firstWordEndIndex -= 1;
|
|
4601
|
-
pathTags.push(pathOrHookNameKey.
|
|
4646
|
+
pathTags.push(pathOrHookNameKey.substring(0, firstWordEndIndex));
|
|
4602
4647
|
}
|
|
4603
4648
|
} else {
|
|
4604
4649
|
pathTags.push('General ⦂');
|
|
@@ -4858,7 +4903,7 @@ async function fetchAccessToken(tokenUrl, clientId, clientSecret, redirectUrl, g
|
|
|
4858
4903
|
}
|
|
4859
4904
|
return false;
|
|
4860
4905
|
}
|
|
4861
|
-
} catch
|
|
4906
|
+
} catch {
|
|
4862
4907
|
if (respDisplayEl) {
|
|
4863
4908
|
respDisplayEl.innerHTML = '<span style="color:var(--red)">Failed to get access token</span>';
|
|
4864
4909
|
}
|
|
@@ -4982,6 +5027,7 @@ async function onInvokeOAuthFlow(securitySchemeId, flowType, authUrl, tokenUrl,
|
|
|
4982
5027
|
/* eslint-disable indent */
|
|
4983
5028
|
|
|
4984
5029
|
function oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, authFlow, defaultScopes = [], receiveTokenIn = 'header', receiveTokenInOptions = undefined) {
|
|
5030
|
+
var _this$selectedServer;
|
|
4985
5031
|
let {
|
|
4986
5032
|
authorizationUrl,
|
|
4987
5033
|
tokenUrl,
|
|
@@ -4990,7 +5036,7 @@ function oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, a
|
|
|
4990
5036
|
const pkceOnly = authFlow['x-pkce-only'] || false;
|
|
4991
5037
|
const isUrlAbsolute = url => url.indexOf('://') > 0 || url.indexOf('//') === 0;
|
|
4992
5038
|
// Calculcate base URL
|
|
4993
|
-
const url = new URL(this.selectedServer.computedUrl);
|
|
5039
|
+
const url = new URL((_this$selectedServer = this.selectedServer) === null || _this$selectedServer === void 0 ? void 0 : _this$selectedServer.computedUrl);
|
|
4994
5040
|
const baseUrl = url.origin;
|
|
4995
5041
|
if (refreshUrl && !isUrlAbsolute(refreshUrl)) {
|
|
4996
5042
|
refreshUrl = `${baseUrl}/${refreshUrl.replace(/^\//, '')}`;
|
|
@@ -5036,8 +5082,8 @@ function oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, a
|
|
|
5036
5082
|
` : ''}
|
|
5037
5083
|
${flowName === 'password' ? ke`
|
|
5038
5084
|
<div style="margin:5px 0">
|
|
5039
|
-
<input type="text" value = "" placeholder="username" spellcheck="false" class="oauth2 ${flowName} ${securitySchemeId} api-key-user" part="textbox textbox-username">
|
|
5040
|
-
<input type="password" value = "" placeholder="password" spellcheck="false" class="oauth2 ${flowName} ${securitySchemeId} api-key-password" style = "margin:0 5px;" part="textbox textbox-password">
|
|
5085
|
+
<input type="text" value = "" placeholder="username" spellcheck="false" class="oauth2 ${flowName} ${securitySchemeId} api-key-user" part="textbox textbox-username" id="input-${securitySchemeId}-${flowName}-api-key-user">
|
|
5086
|
+
<input type="password" value = "" placeholder="password" spellcheck="false" class="oauth2 ${flowName} ${securitySchemeId} api-key-password" style = "margin:0 5px;" part="textbox textbox-password" id="input-${securitySchemeId}-${flowName}-api-key-password">
|
|
5041
5087
|
</div>` : ''}
|
|
5042
5088
|
<div>
|
|
5043
5089
|
${flowName === 'authorizationCode' ? ke`
|
|
@@ -5051,6 +5097,7 @@ function oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, a
|
|
|
5051
5097
|
<input type="text" part="textbox textbox-auth-client-id" value = "${clientId || ''}" placeholder="client-id" spellcheck="false" class="oauth2 ${flowName} ${securitySchemeId} oauth-client-id">
|
|
5052
5098
|
${flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'password' ? ke`
|
|
5053
5099
|
<input
|
|
5100
|
+
id="${securitySchemeId}-${flowName}-oauth-client-secret"
|
|
5054
5101
|
type="password" part="textbox textbox-auth-client-secret"
|
|
5055
5102
|
value = "${clientSecret || ''}" placeholder="client-secret" spellcheck="false"
|
|
5056
5103
|
class="oauth2 ${flowName} ${securitySchemeId}
|
|
@@ -5133,7 +5180,7 @@ function securitySchemeTemplate() {
|
|
|
5133
5180
|
</div>
|
|
5134
5181
|
<div style="max-height:28px;">
|
|
5135
5182
|
${v.in !== 'cookie' ? ke`
|
|
5136
|
-
<input type = "text" value = "${v.value}" class="${v.type} ${v.securitySchemeId} api-key-input" placeholder = "api-token" spellcheck = "false">
|
|
5183
|
+
<input type = "text" value = "${v.value}" class="${v.type} ${v.securitySchemeId} api-key-input" placeholder = "api-token" spellcheck = "false" id = "${v.type}-${v.securitySchemeId}-api-key-input">
|
|
5137
5184
|
<button class="m-btn thin-border" style = "margin-left:5px;"
|
|
5138
5185
|
part = "btn btn-outline"
|
|
5139
5186
|
@click="${e => {
|
|
@@ -5147,8 +5194,8 @@ function securitySchemeTemplate() {
|
|
|
5147
5194
|
Send <code>Authorization</code> in <code>header</code> containing the word <code>Basic</code> followed by a space and a base64 encoded string of <code>username:password</code>.
|
|
5148
5195
|
</div>
|
|
5149
5196
|
<div>
|
|
5150
|
-
<input type="text" value = "${v.user}" placeholder="username" spellcheck="false" class="${v.type} ${v.securitySchemeId} api-key-user" style="width:100px">
|
|
5151
|
-
<input type="password" value = "${v.password}" placeholder="password" spellcheck="false" class="${v.type} ${v.securitySchemeId} api-key-password" style = "width:100px; margin:0 5px;">
|
|
5197
|
+
<input type="text" value = "${v.user}" placeholder="username" spellcheck="false" class="${v.type} ${v.securitySchemeId} api-key-user" style="width:100px" id = "input-${v.type}-${v.securitySchemeId}-api-key-user">
|
|
5198
|
+
<input type="password" value = "${v.password}" placeholder="password" spellcheck="false" class="${v.type} ${v.securitySchemeId} api-key-password" style = "width:100px; margin:0 5px;" id = "input-${v.type}-${v.securitySchemeId}-api-key-password">
|
|
5152
5199
|
<button class="m-btn thin-border"
|
|
5153
5200
|
@click="${e => {
|
|
5154
5201
|
onApiKeyChange.call(this, v.securitySchemeId, e);
|
|
@@ -5260,6 +5307,7 @@ function pathSecurityTemplate(pathSecurity) {
|
|
|
5260
5307
|
` : ''}
|
|
5261
5308
|
`)}
|
|
5262
5309
|
</div>
|
|
5310
|
+
</div>
|
|
5263
5311
|
`;
|
|
5264
5312
|
}
|
|
5265
5313
|
return '';
|
|
@@ -5419,6 +5467,19 @@ const guard_Vt={},guard_It=directive_e(class extends directive_i{constructor(){s
|
|
|
5419
5467
|
|
|
5420
5468
|
//# sourceMappingURL=live.js.map
|
|
5421
5469
|
|
|
5470
|
+
;// CONCATENATED MODULE: ./node_modules/lit-html/directives/if-defined.js
|
|
5471
|
+
|
|
5472
|
+
/**
|
|
5473
|
+
* @license
|
|
5474
|
+
* Copyright 2018 Google LLC
|
|
5475
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5476
|
+
*/const if_defined_to=t=>t??D;
|
|
5477
|
+
//# sourceMappingURL=if-defined.js.map
|
|
5478
|
+
|
|
5479
|
+
;// CONCATENATED MODULE: ./node_modules/lit/directives/if-defined.js
|
|
5480
|
+
|
|
5481
|
+
//# sourceMappingURL=if-defined.js.map
|
|
5482
|
+
|
|
5422
5483
|
// EXTERNAL MODULE: ./node_modules/xml-but-prettier/dist/index.js
|
|
5423
5484
|
var dist = __webpack_require__(657);
|
|
5424
5485
|
var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
@@ -5439,10 +5500,10 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
5439
5500
|
.pad-8-16{
|
|
5440
5501
|
padding: 8px 16px;
|
|
5441
5502
|
}
|
|
5442
|
-
.pad-top-8{
|
|
5503
|
+
.pad-top-8 {
|
|
5443
5504
|
padding-top: 8px;
|
|
5444
5505
|
}
|
|
5445
|
-
.mar-top-8{
|
|
5506
|
+
.mar-top-8 {
|
|
5446
5507
|
margin-top: 8px;
|
|
5447
5508
|
}
|
|
5448
5509
|
`);
|
|
@@ -5560,26 +5621,79 @@ function getTypeInfo(schema) {
|
|
|
5560
5621
|
info.html = `${info.type}~|~${info.readOrWriteOnly}~|~${info.constrain}~|~${info.default}~|~${info.allowedValues}~|~${info.pattern}~|~${info.description}~|~${schema.title || ''}~|~${info.deprecated ? 'deprecated' : ''}`;
|
|
5561
5622
|
return info;
|
|
5562
5623
|
}
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
}
|
|
5569
|
-
|
|
5624
|
+
|
|
5625
|
+
/**
|
|
5626
|
+
*
|
|
5627
|
+
* @param {*} ex if the value
|
|
5628
|
+
* - Is an Object with 'value' property like
|
|
5629
|
+
* { 'value': 'example_val1', 'description': 'some description' }
|
|
5630
|
+
* Returns >>>
|
|
5631
|
+
* {
|
|
5632
|
+
* 'Example': { 'value' : 'example_val1', 'description': 'some description' },
|
|
5633
|
+
* }
|
|
5634
|
+
* - Is an object where each key represents a valid example object (i,e has a value property)
|
|
5635
|
+
* {
|
|
5636
|
+
* 'example1': { 'value' : 'example_val1', 'description': 'some description' },
|
|
5637
|
+
* 'example2': { 'value' : 'example_val2', 'description': 'some other description' },
|
|
5638
|
+
* 'invalid': { 'description': 'invalid example object without any value property' }
|
|
5639
|
+
* }
|
|
5640
|
+
* Returns >>>
|
|
5641
|
+
* {
|
|
5642
|
+
* 'example1': { 'value' : 'example_val1', 'description': 'some description' },
|
|
5643
|
+
* 'example2': { 'value' : 'example_val2', 'description': 'some other description' }
|
|
5644
|
+
* }
|
|
5645
|
+
* if none of the keys represents an object with 'value' property then return undefined
|
|
5646
|
+
* - Is an array of premitive values
|
|
5647
|
+
* ['example_val1', 'example_val2']
|
|
5648
|
+
* Returns >>>
|
|
5649
|
+
* {
|
|
5650
|
+
* 'Example1': {value:'value1'}
|
|
5651
|
+
* 'Example2': {value:'value2'}
|
|
5652
|
+
* }
|
|
5653
|
+
* - Is a premitive value
|
|
5654
|
+
* 'example_val1'
|
|
5655
|
+
* Returns >>>
|
|
5656
|
+
* {
|
|
5657
|
+
* 'Example': { 'value': 'example_val1' }
|
|
5658
|
+
* }
|
|
5659
|
+
* - Is undefined
|
|
5660
|
+
* returns undefined
|
|
5661
|
+
* @returns
|
|
5662
|
+
*/
|
|
5663
|
+
|
|
5664
|
+
function standardizeExample(ex) {
|
|
5665
|
+
if (typeof ex === 'object' && !Array.isArray(ex)) {
|
|
5666
|
+
if (ex.value !== undefined) {
|
|
5667
|
+
// Case 1: Single object with 'value' property
|
|
5668
|
+
return {
|
|
5669
|
+
Example: {
|
|
5670
|
+
...ex
|
|
5671
|
+
}
|
|
5672
|
+
};
|
|
5673
|
+
}
|
|
5674
|
+
// Case 2: Object where each key is an object with a 'value' property
|
|
5675
|
+
const filteredEntries = Object.entries(ex).filter(([_, obj]) => obj.value !== undefined); // eslint-disable-line
|
|
5676
|
+
// If no valid entries found, return JSON.stringify of the input
|
|
5677
|
+
if (filteredEntries.length === 0) {
|
|
5678
|
+
return undefined;
|
|
5679
|
+
}
|
|
5680
|
+
return Object.fromEntries(filteredEntries);
|
|
5570
5681
|
}
|
|
5571
|
-
if (
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5682
|
+
if (Array.isArray(ex)) {
|
|
5683
|
+
// Case 3: Array of primitive values
|
|
5684
|
+
return ex.reduce((acc, value, index) => {
|
|
5685
|
+
acc[`Example${index + 1}`] = {
|
|
5686
|
+
value
|
|
5687
|
+
};
|
|
5688
|
+
return acc;
|
|
5689
|
+
}, {});
|
|
5577
5690
|
}
|
|
5578
|
-
|
|
5691
|
+
// Case 4: Single primitive value
|
|
5692
|
+
return ex ? {
|
|
5579
5693
|
Example: {
|
|
5580
|
-
value:
|
|
5694
|
+
value: ex
|
|
5581
5695
|
}
|
|
5582
|
-
} :
|
|
5696
|
+
} : undefined;
|
|
5583
5697
|
}
|
|
5584
5698
|
|
|
5585
5699
|
/**
|
|
@@ -5722,7 +5836,7 @@ function getSampleValueByType(schemaObj) {
|
|
|
5722
5836
|
if (schemaObj.pattern) {
|
|
5723
5837
|
try {
|
|
5724
5838
|
return new (randexp_default())(schemaObj.pattern).gen();
|
|
5725
|
-
} catch
|
|
5839
|
+
} catch {
|
|
5726
5840
|
return schemaObj.pattern;
|
|
5727
5841
|
}
|
|
5728
5842
|
}
|
|
@@ -5752,7 +5866,7 @@ function getSampleValueByType(schemaObj) {
|
|
|
5752
5866
|
case 'ipv6':
|
|
5753
5867
|
return '2001:0db8:5b96:0000:0000:426f:8e17:642a';
|
|
5754
5868
|
case 'uuid':
|
|
5755
|
-
return [u.
|
|
5869
|
+
return [u.substring(0, 8), u.substring(8, 12), `4000-8${u.substring(13, 16)}`, u.substring(16, 28)].join('-');
|
|
5756
5870
|
case 'byte':
|
|
5757
5871
|
return 'ZXhhbXBsZQ==';
|
|
5758
5872
|
// 'example' base64 encoded. See https://spec.openapis.org/oas/v3.0.0#data-types
|
|
@@ -6340,7 +6454,7 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
|
|
|
6340
6454
|
}
|
|
6341
6455
|
|
|
6342
6456
|
/* Create Example object */
|
|
6343
|
-
function generateExample(schema, mimeType, examples =
|
|
6457
|
+
function generateExample(schema, mimeType, examples = {}, example = {}, includeReadOnly = true, includeWriteOnly = true, outputType = 'json', includeGeneratedExample = false) {
|
|
6344
6458
|
const finalExamples = [];
|
|
6345
6459
|
// First check if examples is provided
|
|
6346
6460
|
if (examples) {
|
|
@@ -6359,7 +6473,7 @@ function generateExample(schema, mimeType, examples = '', example = '', includeR
|
|
|
6359
6473
|
const fixedJsonString = examples[eg].value;
|
|
6360
6474
|
egContent = JSON.parse(fixedJsonString);
|
|
6361
6475
|
egFormat = 'json';
|
|
6362
|
-
} catch
|
|
6476
|
+
} catch {
|
|
6363
6477
|
egFormat = 'text';
|
|
6364
6478
|
egContent = examples[eg].value;
|
|
6365
6479
|
}
|
|
@@ -6392,7 +6506,7 @@ function generateExample(schema, mimeType, examples = '', example = '', includeR
|
|
|
6392
6506
|
try {
|
|
6393
6507
|
egContent = JSON.parse(example);
|
|
6394
6508
|
egFormat = 'json';
|
|
6395
|
-
} catch
|
|
6509
|
+
} catch {
|
|
6396
6510
|
egFormat = 'text';
|
|
6397
6511
|
egContent = example;
|
|
6398
6512
|
}
|
|
@@ -6670,6 +6784,9 @@ customElements.define('json-tree', JsonTree);
|
|
|
6670
6784
|
/* harmony default export */ const schema_styles = (i`
|
|
6671
6785
|
|
|
6672
6786
|
*, *:before, *:after { box-sizing: border-box; }
|
|
6787
|
+
:host {
|
|
6788
|
+
container-type: inline-size;
|
|
6789
|
+
}
|
|
6673
6790
|
|
|
6674
6791
|
.tr {
|
|
6675
6792
|
display: flex;
|
|
@@ -6748,13 +6865,13 @@ customElements.define('json-tree', JsonTree);
|
|
|
6748
6865
|
margin-left: 2px;
|
|
6749
6866
|
}
|
|
6750
6867
|
|
|
6751
|
-
.stri, .string, .uri, .url, .byte, .bina, .date, .pass, .ipv4, .ipv4, .uuid, .emai, .host {color:var(--green);}
|
|
6752
|
-
.inte, .numb, .number, .int6, .int3, .floa, .doub, .deci .blue {color:var(--blue);}
|
|
6753
|
-
.null {color:var(--red);}
|
|
6754
|
-
.bool, .boolean{color:var(--orange)}
|
|
6755
|
-
.enum {color:var(--purple)}
|
|
6756
|
-
.cons {color:var(--purple)}
|
|
6757
|
-
.recu {color:var(--brown)}
|
|
6868
|
+
.stri, .string, .uri, .url, .byte, .bina, .date, .pass, .ipv4, .ipv4, .uuid, .emai, .host { color:var(--green); }
|
|
6869
|
+
.inte, .numb, .number, .int6, .int3, .floa, .doub, .deci .blue { color:var(--blue); }
|
|
6870
|
+
.null { color:var(--red); }
|
|
6871
|
+
.bool, .boolean { color:var(--orange) }
|
|
6872
|
+
.enum { color:var(--purple) }
|
|
6873
|
+
.cons { color:var(--purple) }
|
|
6874
|
+
.recu { color:var(--brown) }
|
|
6758
6875
|
.toolbar {
|
|
6759
6876
|
display:flex;
|
|
6760
6877
|
width:100%;
|
|
@@ -6774,11 +6891,11 @@ customElements.define('json-tree', JsonTree);
|
|
|
6774
6891
|
}
|
|
6775
6892
|
.toolbar-item:first-of-type { margin:0 2px 0 0;}
|
|
6776
6893
|
|
|
6777
|
-
@
|
|
6894
|
+
@container (min-width: 500px) {
|
|
6778
6895
|
.key-descr {
|
|
6779
6896
|
display: block;
|
|
6780
6897
|
}
|
|
6781
|
-
.expanded-descr .key-descr{
|
|
6898
|
+
.expanded-descr .key-descr {
|
|
6782
6899
|
display: block;
|
|
6783
6900
|
}
|
|
6784
6901
|
}
|
|
@@ -6913,7 +7030,7 @@ class SchemaTree extends lit_element_h {
|
|
|
6913
7030
|
</div>
|
|
6914
7031
|
`;
|
|
6915
7032
|
}
|
|
6916
|
-
generateTree(data, dataType = 'object', arrayType = '', key = '', description = '', schemaLevel = 0, indentLevel = 0, readOrWrite = '') {
|
|
7033
|
+
generateTree(data, dataType = 'object', arrayType = '', key = '', description = '', schemaLevel = 0, indentLevel = 0, readOrWrite = '', isDeprecated = false) {
|
|
6917
7034
|
var _data$Type;
|
|
6918
7035
|
if (this.schemaHideReadOnly === 'true') {
|
|
6919
7036
|
if (dataType === 'array') {
|
|
@@ -6998,10 +7115,10 @@ class SchemaTree extends lit_element_h {
|
|
|
6998
7115
|
if (typeof data === 'object') {
|
|
6999
7116
|
var _data$Type2;
|
|
7000
7117
|
return ke`
|
|
7001
|
-
<div class="tr ${schemaLevel < this.schemaExpandLevel || (_data$Type2 = data['::type']) !== null && _data$Type2 !== void 0 && _data$Type2.startsWith('xxx-of') ? 'expanded' : 'collapsed'} ${data['::type'] || 'no-type-info'}${data['::nullable'] ? ' nullable' : ''}" title="${data['::deprecated'] ? 'Deprecated' : ''}">
|
|
7002
|
-
<div class="td key ${data['::deprecated'] ? 'deprecated' : ''}" style='min-width:${minFieldColWidth}px'>
|
|
7118
|
+
<div class="tr ${schemaLevel < this.schemaExpandLevel || (_data$Type2 = data['::type']) !== null && _data$Type2 !== void 0 && _data$Type2.startsWith('xxx-of') ? 'expanded' : 'collapsed'} ${data['::type'] || 'no-type-info'}${data['::nullable'] ? ' nullable' : ''}" title="${isDeprecated || data['::deprecated'] ? 'Deprecated' : ''}">
|
|
7119
|
+
<div class="td key ${isDeprecated || data['::deprecated'] ? 'deprecated' : ''}" style='min-width:${minFieldColWidth}px'>
|
|
7003
7120
|
${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' || key.startsWith('::OPTION') ? ke`<span class='key-label xxx-of-key'> ${keyLabel}</span><span class="xxx-of-descr">${keyDescr}</span>` : keyLabel === '::props' || keyLabel === '::ARRAY~OF' ? '' : schemaLevel > 0 ? ke`<span class="key-label" title="${readOrWrite === 'readonly' ? 'Read-Only' : readOrWrite === 'writeonly' ? 'Write-Only' : ''}">
|
|
7004
|
-
${data['::deprecated'] ? '✗' : ''}
|
|
7121
|
+
${isDeprecated || data['::deprecated'] ? '✗' : ''}
|
|
7005
7122
|
${keyLabel.replace(/\*$/, '')}${keyLabel.endsWith('*') ? ke`<span style="color:var(--red)">*</span>` : ''}${readOrWrite === 'readonly' ? ke` 🆁` : readOrWrite === 'writeonly' ? ke` 🆆` : readOrWrite}:
|
|
7006
7123
|
</span>` : ''}
|
|
7007
7124
|
${openBracket}
|
|
@@ -7009,11 +7126,11 @@ class SchemaTree extends lit_element_h {
|
|
|
7009
7126
|
<div class='td key-descr m-markdown-small'>${unsafe_html_ae(marked(description || ''))}</div>
|
|
7010
7127
|
</div>
|
|
7011
7128
|
<div class='inside-bracket ${data['::type'] || 'no-type-info'}' style='padding-left:${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' ? 0 : leftPadding}px;'>
|
|
7012
|
-
${Array.isArray(data) && data[0] ? ke`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}` : ke`
|
|
7129
|
+
${Array.isArray(data) && data[0] ? ke`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'], isDeprecated || data[0]['::deprecated'])}` : ke`
|
|
7013
7130
|
${Object.keys(data).map(dataKey => {
|
|
7014
7131
|
var _data$dataKey;
|
|
7015
7132
|
return ke`
|
|
7016
|
-
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel', '::nullable'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, ((_data$dataKey = data[dataKey]) === null || _data$dataKey === void 0 ? void 0 : _data$dataKey['::description']) || '', newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
|
|
7133
|
+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel', '::nullable'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '', isDeprecated || data[dataKey]['::deprecated'])}` : '' : ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, ((_data$dataKey = data[dataKey]) === null || _data$dataKey === void 0 ? void 0 : _data$dataKey['::description']) || '', newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '', isDeprecated || data[dataKey]['::deprecated'])}`}
|
|
7017
7134
|
`;
|
|
7018
7135
|
})}
|
|
7019
7136
|
`}
|
|
@@ -7052,8 +7169,8 @@ class SchemaTree extends lit_element_h {
|
|
|
7052
7169
|
}
|
|
7053
7170
|
return ke`
|
|
7054
7171
|
<div class = "tr primitive" title="${deprecated ? 'Deprecated' : ''}">
|
|
7055
|
-
<div class="td key ${deprecated}" style='min-width:${minFieldColWidth}px'>
|
|
7056
|
-
${deprecated ? ke`<span style='color:var(--red);'>✗</span>` : ''}
|
|
7172
|
+
<div class="td key ${isDeprecated || deprecated}" style='min-width:${minFieldColWidth}px'>
|
|
7173
|
+
${isDeprecated || deprecated ? ke`<span style='color:var(--red);'>✗</span>` : ''}
|
|
7057
7174
|
${keyLabel.endsWith('*') ? ke`<span class="key-label">${keyLabel.substring(0, keyLabel.length - 1)}</span><span style='color:var(--red);'>*</span>:` : key.startsWith('::OPTION') ? ke`<span class='key-label xxx-of-key'>${keyLabel}</span><span class="xxx-of-descr">${keyDescr}</span>` : ke`<span class="key-label">${keyLabel}:</span>`}
|
|
7058
7175
|
<span class="${dataTypeCss}" title="${finalReadWriteTip}">
|
|
7059
7176
|
${dataType === 'array' ? `[${type}]` : `${type}`}
|
|
@@ -7237,6 +7354,7 @@ customElements.define('tag-input', TagInput);
|
|
|
7237
7354
|
// eslint-disable-line import/extensions
|
|
7238
7355
|
// eslint-disable-line import/extensions
|
|
7239
7356
|
// eslint-disable-line import/extensions
|
|
7357
|
+
// eslint-disable-line import/extensions
|
|
7240
7358
|
|
|
7241
7359
|
|
|
7242
7360
|
|
|
@@ -7404,6 +7522,9 @@ class ApiRequest extends lit_element_h {
|
|
|
7404
7522
|
}
|
|
7405
7523
|
static get styles() {
|
|
7406
7524
|
return [table_styles, input_styles, font_styles, flex_styles, border_styles, tab_styles, prism_styles, i`
|
|
7525
|
+
:host {
|
|
7526
|
+
container-type: inline-size;
|
|
7527
|
+
}
|
|
7407
7528
|
*, *:before, *:after { box-sizing: border-box; }
|
|
7408
7529
|
:where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
|
|
7409
7530
|
:where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
|
|
@@ -7488,13 +7609,13 @@ class ApiRequest extends lit_element_h {
|
|
|
7488
7609
|
opacity: 1;
|
|
7489
7610
|
}
|
|
7490
7611
|
|
|
7491
|
-
@
|
|
7612
|
+
@container (min-width: 768px) {
|
|
7492
7613
|
.textarea {
|
|
7493
7614
|
padding:8px;
|
|
7494
7615
|
}
|
|
7495
7616
|
}
|
|
7496
7617
|
|
|
7497
|
-
@
|
|
7618
|
+
@container (max-width: 470px) {
|
|
7498
7619
|
.hide-in-small-screen {
|
|
7499
7620
|
display:none;
|
|
7500
7621
|
}
|
|
@@ -7645,7 +7766,7 @@ class ApiRequest extends lit_element_h {
|
|
|
7645
7766
|
let paramStyle = 'form';
|
|
7646
7767
|
let paramExplode = true;
|
|
7647
7768
|
let paramAllowReserved = false;
|
|
7648
|
-
if (paramType === 'query') {
|
|
7769
|
+
if (paramType === 'query' || paramType === 'header' || paramType === 'path') {
|
|
7649
7770
|
if (param.style && 'form spaceDelimited pipeDelimited'.includes(param.style)) {
|
|
7650
7771
|
paramStyle = param.style;
|
|
7651
7772
|
} else if (serializeStyle) {
|
|
@@ -7659,9 +7780,9 @@ class ApiRequest extends lit_element_h {
|
|
|
7659
7780
|
}
|
|
7660
7781
|
}
|
|
7661
7782
|
// openapi 3.1.0 spec based examples (which must be Object(string : { value:any, summary?: string, description?: string})
|
|
7662
|
-
const example = normalizeExamples(param.examples ||
|
|
7783
|
+
const example = normalizeExamples(standardizeExample(param.examples) || standardizeExample(param.example) || standardizeExample(mimeTypeElem === null || mimeTypeElem === void 0 ? void 0 : mimeTypeElem.example) || standardizeExample(mimeTypeElem === null || mimeTypeElem === void 0 ? void 0 : mimeTypeElem.examples) || standardizeExample(paramSchema.examples) || standardizeExample(paramSchema.example), paramSchema.type);
|
|
7663
7784
|
if (!example.exampleVal && paramSchema.type === 'object') {
|
|
7664
|
-
example.exampleVal = generateExample(declaredParamSchema, serializeStyle || 'json',
|
|
7785
|
+
example.exampleVal = generateExample(declaredParamSchema, serializeStyle || 'json', {}, {}, this.callback === 'true' || this.webhook === 'true' ? true : false,
|
|
7665
7786
|
// eslint-disable-line no-unneeded-ternary
|
|
7666
7787
|
this.callback === 'true' || this.webhook === 'true' ? false : true,
|
|
7667
7788
|
// eslint-disable-line no-unneeded-ternary
|
|
@@ -7684,6 +7805,7 @@ class ApiRequest extends lit_element_h {
|
|
|
7684
7805
|
<td style="min-width:100px;" colspan="${paramSchema.default || paramSchema.constrain || paramSchema.allowedValues || paramSchema.pattern ? '1' : '2'}">
|
|
7685
7806
|
${paramSchema.type === 'array' ? ke`
|
|
7686
7807
|
<tag-input class="request-param"
|
|
7808
|
+
id = "tag-input-request-param-${param.name}"
|
|
7687
7809
|
style = "width:100%"
|
|
7688
7810
|
data-ptype = "${paramType}"
|
|
7689
7811
|
data-pname = "${param.name}"
|
|
@@ -7710,43 +7832,46 @@ class ApiRequest extends lit_element_h {
|
|
|
7710
7832
|
<button class="tab-btn ${this.activeParameterSchemaTabs[param.name] === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
|
|
7711
7833
|
<button class="tab-btn ${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
|
|
7712
7834
|
</div>
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7835
|
+
|
|
7836
|
+
${ke`<div class="tab-content col" data-tab = 'example' style="display:${this.activeParameterSchemaTabs[param.name] === 'example' ? 'block' : 'none'}; padding-left:5px; width:100%">
|
|
7837
|
+
<textarea
|
|
7838
|
+
id = "textarea-request-param-${param.name}"
|
|
7839
|
+
class = "textarea request-param"
|
|
7840
|
+
part = "textarea textarea-param"
|
|
7841
|
+
data-ptype = "${paramType}-object"
|
|
7842
|
+
data-pname = "${param.name}"
|
|
7843
|
+
data-example = "${example.exampleVal}"
|
|
7844
|
+
data-param-serialize-style = "${paramStyle}"
|
|
7845
|
+
data-param-serialize-explode = "${paramExplode}"
|
|
7846
|
+
data-param-allow-reserved = "${paramAllowReserved}"
|
|
7847
|
+
data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
|
|
7848
|
+
spellcheck = "false"
|
|
7849
|
+
.textContent="${param['x-fill-example'] === 'no' ? '' : live_Ft(this.fillRequestFieldsWithExample === 'true' ? typeof example.exampleVal === 'object' ? JSON.stringify(example.exampleVal, null, 2) : example.exampleVal : '')}"
|
|
7850
|
+
style = "resize:vertical; width:100%; height: ${'read focused'.includes(this.renderStyle) ? '180px' : '120px'};"
|
|
7851
|
+
@input=${e => {
|
|
7728
7852
|
const requestPanelEl = this.getRequestPanel(e);
|
|
7729
7853
|
this.liveCURLSyntaxUpdate(requestPanelEl);
|
|
7730
7854
|
}}
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7855
|
+
></textarea>
|
|
7856
|
+
</div>`}
|
|
7857
|
+
${ke`<div class="tab-content col" data-tab = 'schema' style="display:${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
|
|
7858
|
+
<schema-tree
|
|
7859
|
+
class = 'json'
|
|
7860
|
+
style = 'display: block'
|
|
7861
|
+
.data = '${schemaAsObj}'
|
|
7862
|
+
schema-expand-level = "${this.schemaExpandLevel}"
|
|
7863
|
+
schema-description-expanded = "${this.schemaDescriptionExpanded}"
|
|
7864
|
+
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
|
|
7865
|
+
schema-hide-read-only = "${this.schemaHideReadOnly.includes(this.method)}"
|
|
7866
|
+
schema-hide-write-only = "${this.schemaHideWriteOnly.includes(this.method)}"
|
|
7867
|
+
exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
|
|
7868
|
+
file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
|
|
7869
|
+
anchor:anchor, anchor-param-example:anchor-param-example"
|
|
7870
|
+
> </schema-tree>
|
|
7871
|
+
</div>`}
|
|
7872
|
+
</div>` : ke`
|
|
7749
7873
|
<input type="${paramSchema.format === 'password' ? 'password' : 'text'}" spellcheck="false" style="width:100%"
|
|
7874
|
+
id="input-request-param-${param.name}"
|
|
7750
7875
|
class="request-param"
|
|
7751
7876
|
part="textbox textbox-param"
|
|
7752
7877
|
data-ptype="${paramType}"
|
|
@@ -7891,7 +8016,7 @@ class ApiRequest extends lit_element_h {
|
|
|
7891
8016
|
if (this.selectedRequestBodyType.includes('json') || this.selectedRequestBodyType.includes('xml') || this.selectedRequestBodyType.includes('text') || this.selectedRequestBodyType.includes('jose')) {
|
|
7892
8017
|
// Generate Example
|
|
7893
8018
|
if (reqBody.mimeType === this.selectedRequestBodyType) {
|
|
7894
|
-
reqBodyExamples = generateExample(reqBody.schema, reqBody.mimeType, reqBody.examples, reqBody.example, this.callback === 'true' || this.webhook === 'true' ? true : false,
|
|
8019
|
+
reqBodyExamples = generateExample(reqBody.schema, reqBody.mimeType, standardizeExample(reqBody.examples), standardizeExample(reqBody.example), this.callback === 'true' || this.webhook === 'true' ? true : false,
|
|
7895
8020
|
// eslint-disable-line no-unneeded-ternary
|
|
7896
8021
|
this.callback === 'true' || this.webhook === 'true' ? false : true,
|
|
7897
8022
|
// eslint-disable-line no-unneeded-ternary
|
|
@@ -7963,7 +8088,7 @@ class ApiRequest extends lit_element_h {
|
|
|
7963
8088
|
if (reqBody.mimeType === this.selectedRequestBodyType) {
|
|
7964
8089
|
reqBodyFileInputHtml = ke`
|
|
7965
8090
|
<div class = "small-font-size bold-text row">
|
|
7966
|
-
<input type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${reqBody.mimeType}" spellcheck="false" />
|
|
8091
|
+
<input id="input-request-body-param-file" type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${reqBody.mimeType}" spellcheck="false" />
|
|
7967
8092
|
</div>
|
|
7968
8093
|
`;
|
|
7969
8094
|
}
|
|
@@ -8037,7 +8162,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8037
8162
|
var _formdataPartExample$;
|
|
8038
8163
|
// This template is used when form-data param should be send as a object (application/json, application/xml)
|
|
8039
8164
|
const formdataPartSchema = schemaInObjectNotation(fieldSchema, {});
|
|
8040
|
-
const formdataPartExample = generateExample(fieldSchema, 'json', fieldSchema.examples, fieldSchema.example, this.callback === 'true' || this.webhook === 'true' ? true : false,
|
|
8165
|
+
const formdataPartExample = generateExample(fieldSchema, 'json', standardizeExample(fieldSchema.examples), standardizeExample(fieldSchema.example), this.callback === 'true' || this.webhook === 'true' ? true : false,
|
|
8041
8166
|
// eslint-disable-line no-unneeded-ternary
|
|
8042
8167
|
this.callback === 'true' || this.webhook === 'true' ? false : true,
|
|
8043
8168
|
// eslint-disable-line no-unneeded-ternary
|
|
@@ -8091,7 +8216,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8091
8216
|
${ke`
|
|
8092
8217
|
<div class="tab-content col" data-tab = 'schema' style="display:${this.activeSchemaTab !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
|
|
8093
8218
|
<schema-tree
|
|
8094
|
-
.data =
|
|
8219
|
+
.data = "${formdataPartSchema}"
|
|
8095
8220
|
schema-expand-level = "${this.schemaExpandLevel}"
|
|
8096
8221
|
schema-description-expanded = "${this.schemaDescriptionExpanded}"
|
|
8097
8222
|
allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}",
|
|
@@ -8229,7 +8354,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8229
8354
|
return ke`
|
|
8230
8355
|
<div class="col m-markdown" style="flex:1; display:${display}; position:relative; max-width: 100%;">
|
|
8231
8356
|
<button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${e => {
|
|
8232
|
-
copyToClipboard(this.curlSyntax.replace(/\\$/, ''), e);
|
|
8357
|
+
copyToClipboard(this.curlSyntax.trim().replace(/\\$/, ''), e);
|
|
8233
8358
|
}}' part="btn btn-fill"> Copy </button>
|
|
8234
8359
|
<pre style="white-space:pre"><code>${unsafe_html_ae(prism_default().highlight(this.curlSyntax.trim().replace(/\\$/, ''), (prism_default()).languages.shell, 'shell'))}</code></pre>
|
|
8235
8360
|
</div>
|
|
@@ -8273,7 +8398,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8273
8398
|
</div>
|
|
8274
8399
|
${this.responseIsBlob ? ke`
|
|
8275
8400
|
<div class="tab-content col" style="flex:1; display:${this.activeResponseTab === 'response' ? 'flex' : 'none'};">
|
|
8276
|
-
${this.responseBlobType === 'image' ? ke`<img style="max-height:var(--resp-area-height, 400px); object-fit:contain;" class="mar-top-8" src="${this.responseBlobUrl}"></img>` : ''}
|
|
8401
|
+
${this.responseBlobType === 'image' ? ke`<img style="max-height:var(--resp-area-height, 400px); object-fit:contain;" class="mar-top-8" src="${if_defined_to(this.responseBlobUrl)}"></img>` : ''}
|
|
8277
8402
|
<button class="m-btn thin-border mar-top-8" style="width:135px" @click='${e => {
|
|
8278
8403
|
downloadResource(this.responseBlobUrl, this.respContentDisposition, e);
|
|
8279
8404
|
}}' part="btn btn-outline">
|
|
@@ -8300,19 +8425,8 @@ class ApiRequest extends lit_element_h {
|
|
|
8300
8425
|
}
|
|
8301
8426
|
apiCallTemplate() {
|
|
8302
8427
|
var _this$security, _this$api_keys$;
|
|
8303
|
-
let selectServerDropdownHtml = '';
|
|
8304
|
-
if (this.servers && this.servers.length > 0) {
|
|
8305
|
-
selectServerDropdownHtml = ke`
|
|
8306
|
-
<select style="min-width:100px;" @change='${e => {
|
|
8307
|
-
this.serverUrl = e.target.value;
|
|
8308
|
-
}}'>
|
|
8309
|
-
${this.servers.map(v => ke`<option value = "${v.url}"> ${v.url} - ${v.description} </option>`)}
|
|
8310
|
-
</select>
|
|
8311
|
-
`;
|
|
8312
|
-
}
|
|
8313
8428
|
const selectedServerHtml = ke`
|
|
8314
8429
|
<div style="display:flex; flex-direction:column;">
|
|
8315
|
-
${selectServerDropdownHtml}
|
|
8316
8430
|
${this.serverUrl ? ke`
|
|
8317
8431
|
<div style="display:flex; align-items:baseline;">
|
|
8318
8432
|
<div style="font-weight:bold; padding-right:5px;">API Server</div>
|
|
@@ -8332,7 +8446,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8332
8446
|
${((_this$security = this.security) === null || _this$security === void 0 ? void 0 : _this$security.length) > 0 ? ke`
|
|
8333
8447
|
${this.api_keys.length > 0 ? ke`<div style="color:var(--blue); overflow:hidden;">
|
|
8334
8448
|
${this.api_keys.length === 1 ? `${(_this$api_keys$ = this.api_keys[0]) === null || _this$api_keys$ === void 0 ? void 0 : _this$api_keys$.typeDisplay} in ${this.api_keys[0].in}` : `${this.api_keys.length} API keys applied`}
|
|
8335
|
-
</div>` : ke`<div class="gray-text">Required <span style="color:var(--red)">(None Applied)</span>`}` : ke`<span class="gray-text"> Not Required </span>`}
|
|
8449
|
+
</div>` : ke`<div class="gray-text">Required <span style="color:var(--red)">(None Applied)</span> </div>`}` : ke`<span class="gray-text"> Not Required </span>`}
|
|
8336
8450
|
</div>
|
|
8337
8451
|
</div>
|
|
8338
8452
|
${this.parameters.length > 0 || this.request_body ? ke`
|
|
@@ -8472,7 +8586,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8472
8586
|
}
|
|
8473
8587
|
}
|
|
8474
8588
|
}
|
|
8475
|
-
} catch
|
|
8589
|
+
} catch {
|
|
8476
8590
|
console.error('RapiDoc: unable to parse %s into object', el.value); // eslint-disable-line no-console
|
|
8477
8591
|
}
|
|
8478
8592
|
if (queryParam.toString()) {
|
|
@@ -8507,7 +8621,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8507
8621
|
buildFetchHeaders(requestPanelEl) {
|
|
8508
8622
|
var _this$closest;
|
|
8509
8623
|
const respEl = (_this$closest = this.closest('.expanded-req-resp-container, .req-resp-container')) === null || _this$closest === void 0 ? void 0 : _this$closest.getElementsByTagName('api-response')[0];
|
|
8510
|
-
const headerParamEls = [...requestPanelEl.querySelectorAll("[data-ptype='header']")];
|
|
8624
|
+
const headerParamEls = [...requestPanelEl.querySelectorAll("[data-ptype='header'], [data-ptype='header-object']")];
|
|
8511
8625
|
const requestBodyContainerEl = requestPanelEl.querySelector('.request-body-container');
|
|
8512
8626
|
const acceptHeader = respEl === null || respEl === void 0 ? void 0 : respEl.selectedMimeType;
|
|
8513
8627
|
const reqHeaders = new Headers();
|
|
@@ -8526,7 +8640,35 @@ class ApiRequest extends lit_element_h {
|
|
|
8526
8640
|
// Add Header Params
|
|
8527
8641
|
headerParamEls.map(el => {
|
|
8528
8642
|
if (el.value) {
|
|
8529
|
-
|
|
8643
|
+
if (el.dataset.ptype === 'header-object') {
|
|
8644
|
+
/* CONVERT
|
|
8645
|
+
a header value from below object style
|
|
8646
|
+
{
|
|
8647
|
+
"key1": "val1",
|
|
8648
|
+
"key2": {
|
|
8649
|
+
"key2_1": "val2_1",
|
|
8650
|
+
"key2_2": {
|
|
8651
|
+
"key2_2_1": "val2_2_1"
|
|
8652
|
+
}
|
|
8653
|
+
},
|
|
8654
|
+
"key3": "val3"
|
|
8655
|
+
};
|
|
8656
|
+
TO >>>
|
|
8657
|
+
key1=val1, key2={"key2_1":"val2_1","key2_2":{"key2_2_1":"val2_2_1"}}, key3=val3
|
|
8658
|
+
*/
|
|
8659
|
+
const headerObjVal = JSON.parse(el.value.replace(/\n/g, '').trim());
|
|
8660
|
+
const firstLevelKeySeparator = el.dataset.paramSerializeExplode === 'true' ? '=' : ',';
|
|
8661
|
+
const headerStrVal = Object.keys(headerObjVal).map(key => {
|
|
8662
|
+
const value = headerObjVal[key];
|
|
8663
|
+
if (typeof value === 'object') {
|
|
8664
|
+
return `${key}${firstLevelKeySeparator}${JSON.stringify(value)}`;
|
|
8665
|
+
}
|
|
8666
|
+
return `${key}${firstLevelKeySeparator}${value}`;
|
|
8667
|
+
}).join(',');
|
|
8668
|
+
reqHeaders.append(el.dataset.pname, headerStrVal);
|
|
8669
|
+
} else {
|
|
8670
|
+
reqHeaders.append(el.dataset.pname, el.value);
|
|
8671
|
+
}
|
|
8530
8672
|
}
|
|
8531
8673
|
});
|
|
8532
8674
|
if (requestBodyContainerEl) {
|
|
@@ -8748,7 +8890,18 @@ class ApiRequest extends lit_element_h {
|
|
|
8748
8890
|
}
|
|
8749
8891
|
if (this.responseIsBlob) {
|
|
8750
8892
|
const contentDisposition = fetchResponse.headers.get('content-disposition');
|
|
8751
|
-
|
|
8893
|
+
let filenameFromContentDeposition = 'filename';
|
|
8894
|
+
const filenameStarRegexMatch = contentDisposition.match(/filename\*=\s*UTF-8''([^;]+)/); // Support Headers like >>> Content-Disposition: attachment; filename*=UTF-8''example%20file.pdf
|
|
8895
|
+
if (filenameStarRegexMatch) {
|
|
8896
|
+
filenameFromContentDeposition = decodeURIComponent(filenameStarRegexMatch[1]); // the filename* format in the Content-Disposition header follows RFC 5987, which allows encoding non-ASCII characters using percent encoding. so example%20file.pdf becomes example file.pdf
|
|
8897
|
+
} else {
|
|
8898
|
+
// Fallback to the regular filename format
|
|
8899
|
+
const filenameMatch = contentDisposition.match(/filename="?([^"]+)"?/); // Content-Disposition: attachment; filename=example.pdf
|
|
8900
|
+
if (filenameMatch) {
|
|
8901
|
+
filenameFromContentDeposition = filenameMatch[1];
|
|
8902
|
+
}
|
|
8903
|
+
}
|
|
8904
|
+
this.respContentDisposition = filenameFromContentDeposition;
|
|
8752
8905
|
respBlob = await fetchResponse.blob();
|
|
8753
8906
|
this.responseBlobUrl = URL.createObjectURL(respBlob);
|
|
8754
8907
|
}
|
|
@@ -8830,7 +8983,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8830
8983
|
tempHeaderArray = tempHeaderArray.map(el => el.trim()).filter((string, index) => tempHeaderArray.indexOf(string) === index);
|
|
8831
8984
|
fetchHeaders.set(key, tempHeaderArray.join(', '));
|
|
8832
8985
|
});
|
|
8833
|
-
curlHeaders = Array.from(fetchHeaders).map(([key, value]) => ` -H
|
|
8986
|
+
curlHeaders = Array.from(fetchHeaders).map(([key, value]) => ` -H '${key}: ${value}'`).join('\\\n');
|
|
8834
8987
|
if (curlHeaders) {
|
|
8835
8988
|
curlHeaders = `${curlHeaders} \\\n`;
|
|
8836
8989
|
}
|
|
@@ -8858,7 +9011,7 @@ class ApiRequest extends lit_element_h {
|
|
|
8858
9011
|
if (requestBodyType.includes('json')) {
|
|
8859
9012
|
try {
|
|
8860
9013
|
curlData = ` -d '${JSON.stringify(JSON.parse(exampleTextAreaEl.value))}' \\\n`;
|
|
8861
|
-
} catch
|
|
9014
|
+
} catch {
|
|
8862
9015
|
// Ignore.
|
|
8863
9016
|
}
|
|
8864
9017
|
}
|
|
@@ -9159,11 +9312,11 @@ class SchemaTable extends lit_element_h {
|
|
|
9159
9312
|
${Object.keys(data).map(dataKey => {
|
|
9160
9313
|
var _data$dataKey;
|
|
9161
9314
|
return ke`
|
|
9162
|
-
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel', '::nullable'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, ((_data$dataKey = data[dataKey]) === null || _data$dataKey === void 0 ? void 0 : _data$dataKey['::description']) || '', newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '', isDeprecated || data[dataKey]['::deprecated'])}`}
|
|
9315
|
+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel', '::nullable'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '', isDeprecated || data[dataKey]['::deprecated'])}` : '' : ke`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, ((_data$dataKey = data[dataKey]) === null || _data$dataKey === void 0 ? void 0 : _data$dataKey['::description']) || '', newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '', isDeprecated || data[dataKey]['::deprecated'])}`}
|
|
9163
9316
|
`;
|
|
9164
9317
|
})}
|
|
9165
9318
|
`}
|
|
9166
|
-
|
|
9319
|
+
</div>
|
|
9167
9320
|
`;
|
|
9168
9321
|
}
|
|
9169
9322
|
|
|
@@ -9360,7 +9513,7 @@ class ApiResponse extends lit_element_h {
|
|
|
9360
9513
|
</div>
|
|
9361
9514
|
<div>
|
|
9362
9515
|
${this.responseTemplate()}
|
|
9363
|
-
|
|
9516
|
+
</div>
|
|
9364
9517
|
</div>
|
|
9365
9518
|
`;
|
|
9366
9519
|
}
|
|
@@ -9388,7 +9541,7 @@ class ApiResponse extends lit_element_h {
|
|
|
9388
9541
|
// Generate Schema
|
|
9389
9542
|
const schemaTree = schemaInObjectNotation(mimeRespObj.schema, {});
|
|
9390
9543
|
// Generate Example
|
|
9391
|
-
const respExamples = generateExample(mimeRespObj.schema, mimeResp, mimeRespObj.examples, mimeRespObj.example, this.callback === 'true' || this.webhook === 'true' ? false : true,
|
|
9544
|
+
const respExamples = generateExample(mimeRespObj.schema, mimeResp, standardizeExample(mimeRespObj.examples), standardizeExample(mimeRespObj.example), this.callback === 'true' || this.webhook === 'true' ? false : true,
|
|
9392
9545
|
// eslint-disable-line no-unneeded-ternary
|
|
9393
9546
|
this.callback === 'true' || this.webhook === 'true' ? true : false,
|
|
9394
9547
|
// eslint-disable-line no-unneeded-ternary
|
|
@@ -9431,8 +9584,7 @@ class ApiResponse extends lit_element_h {
|
|
|
9431
9584
|
style='margin: 8px 4px 0 0'
|
|
9432
9585
|
>
|
|
9433
9586
|
${respStatus}
|
|
9434
|
-
</button>`}`)}
|
|
9435
|
-
</div>
|
|
9587
|
+
</button>`}`)}</div>` : ke`<span>${Object.keys(this.responses)[0]}</span>`}
|
|
9436
9588
|
|
|
9437
9589
|
${Object.keys(this.responses).map(status => {
|
|
9438
9590
|
var _this$responses$statu3, _this$headersForEachR;
|
|
@@ -9460,7 +9612,7 @@ class ApiResponse extends lit_element_h {
|
|
|
9460
9612
|
${this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[status][this.selectedMimeType])}
|
|
9461
9613
|
</div>`}
|
|
9462
9614
|
</div>
|
|
9463
|
-
`}
|
|
9615
|
+
`}</div>`;
|
|
9464
9616
|
})}
|
|
9465
9617
|
`;
|
|
9466
9618
|
}
|
|
@@ -9613,7 +9765,7 @@ function expandCollapseTagDescription(e) {
|
|
|
9613
9765
|
}
|
|
9614
9766
|
}
|
|
9615
9767
|
function expandedEndpointBodyTemplate(path, tagName = '', tagDescription = '') {
|
|
9616
|
-
var _path$xBadges, _path$externalDocs, _path$externalDocs2, _path$externalDocs3, _path$externalDocs4, _path$externalDocs5, _path$externalDocs6, _path$servers;
|
|
9768
|
+
var _path$xBadges, _path$externalDocs, _path$externalDocs2, _path$externalDocs3, _path$externalDocs4, _path$externalDocs5, _path$externalDocs6, _path$servers, _this$selectedServer;
|
|
9617
9769
|
const acceptContentTypes = new Set();
|
|
9618
9770
|
for (const respStatus in path.responses) {
|
|
9619
9771
|
for (const acceptContentType in (_path$responses$respS = path.responses[respStatus]) === null || _path$responses$respS === void 0 ? void 0 : _path$responses$respS.content) {
|
|
@@ -9658,7 +9810,7 @@ function expandedEndpointBodyTemplate(path, tagName = '', tagDescription = '') {
|
|
|
9658
9810
|
${ke`
|
|
9659
9811
|
${path.xBadges && ((_path$xBadges = path.xBadges) === null || _path$xBadges === void 0 ? void 0 : _path$xBadges.length) > 0 ? ke`
|
|
9660
9812
|
<div style="display:flex; flex-wrap:wrap; margin-bottom: -24px; font-size: var(--font-size-small);">
|
|
9661
|
-
${path.xBadges.map(v => ke`<span style="margin:1px; margin-right:5px; padding:1px 8px; font-weight:bold; border-radius:12px; background-color: var(--light-${v.color}, var(--input-bg)); color:var(--${v.color}); border:1px solid var(--${v.color})">${v.label}</span>`)}
|
|
9813
|
+
${path.xBadges.map(v => v.color === 'none' ? '' : ke`<span style="margin:1px; margin-right:5px; padding:1px 8px; font-weight:bold; border-radius:12px; background-color: var(--light-${v.color}, var(--input-bg)); color:var(--${v.color}); border:1px solid var(--${v.color})">${v.label}</span>`)}
|
|
9662
9814
|
</div>
|
|
9663
9815
|
` : ''}
|
|
9664
9816
|
<h2 part="section-operation-summary"> ${path.shortSummary || `${path.method.toUpperCase()} ${path.path}`}</h2>
|
|
@@ -9690,7 +9842,7 @@ function expandedEndpointBodyTemplate(path, tagName = '', tagDescription = '') {
|
|
|
9690
9842
|
.request_body = "${path.requestBody}"
|
|
9691
9843
|
.api_keys = "${nonEmptyApiKeys}"
|
|
9692
9844
|
.servers = "${path.servers}"
|
|
9693
|
-
server-url = "${((_path$servers = path.servers) === null || _path$servers === void 0 || (_path$servers = _path$servers[0]) === null || _path$servers === void 0 ? void 0 : _path$servers.url) || this.selectedServer.computedUrl}"
|
|
9845
|
+
server-url = "${((_path$servers = path.servers) === null || _path$servers === void 0 || (_path$servers = _path$servers[0]) === null || _path$servers === void 0 ? void 0 : _path$servers.url) || ((_this$selectedServer = this.selectedServer) === null || _this$selectedServer === void 0 ? void 0 : _this$selectedServer.computedUrl)}"
|
|
9694
9846
|
fill-request-fields-with-example = "${this.fillRequestFieldsWithExample}"
|
|
9695
9847
|
allow-try = "${this.allowTry}"
|
|
9696
9848
|
show-curl-before-try = "${this.showCurlBeforeTry}"
|
|
@@ -10075,12 +10227,12 @@ function navbarTemplate() {
|
|
|
10075
10227
|
>
|
|
10076
10228
|
<div style='margin: 6px 5px 0 -24px; font-size:var(--font-size-regular); cursor:pointer;'>↩</div>
|
|
10077
10229
|
</div>
|
|
10078
|
-
${this.
|
|
10230
|
+
${this.searchVal ? ke`
|
|
10079
10231
|
<button @click = '${this.onClearSearch}' class='m-btn thin-border' style='margin-left:5px; color:var(--nav-text-color); width:75px; padding:6px 8px;' part='btn btn-outline btn-clear-filter'>
|
|
10080
10232
|
CLEAR
|
|
10081
10233
|
</button>` : ''}
|
|
10082
10234
|
`}
|
|
10083
|
-
${this.allowAdvancedSearch === 'false' || this.
|
|
10235
|
+
${this.allowAdvancedSearch === 'false' || this.searchVal ? '' : ke`
|
|
10084
10236
|
<button class='m-btn primary' part='btn btn-fill btn-search' style='margin-left:5px; padding:6px 8px; width:75px' @click='${this.onShowSearchModalClicked}'>
|
|
10085
10237
|
SEARCH
|
|
10086
10238
|
</button>
|
|
@@ -10131,7 +10283,7 @@ function navbarTemplate() {
|
|
|
10131
10283
|
</div>
|
|
10132
10284
|
|
|
10133
10285
|
<!-- TAGS AND PATHS-->
|
|
10134
|
-
${this.resolvedSpec.tags.filter(tag => tag.paths.filter(path =>
|
|
10286
|
+
${this.resolvedSpec.tags.filter(tag => tag.paths.filter(path => getMatchedPaths(this.searchVal, path, tag.name)).length).map(tag => {
|
|
10135
10287
|
var _tag$paths;
|
|
10136
10288
|
return ke`
|
|
10137
10289
|
<div class='nav-bar-tag-and-paths ${this.renderStyle === 'read' ? 'expanded' : tag.expanded ? 'expanded' : 'collapsed'}' >
|
|
@@ -10165,8 +10317,8 @@ function navbarTemplate() {
|
|
|
10165
10317
|
<div class='nav-bar-paths-under-tag' style='max-height:${tag.expanded || this.renderStyle === 'read' ? (((_tag$paths = tag.paths) === null || _tag$paths === void 0 ? void 0 : _tag$paths.length) || 1) * 50 : 0}px;'>
|
|
10166
10318
|
<!-- Paths in each tag (endpoints) -->
|
|
10167
10319
|
${tag.paths.filter(v => {
|
|
10168
|
-
if (this.
|
|
10169
|
-
return
|
|
10320
|
+
if (this.searchVal) {
|
|
10321
|
+
return getMatchedPaths(this.searchVal, v, tag.name);
|
|
10170
10322
|
}
|
|
10171
10323
|
return true;
|
|
10172
10324
|
}).map(p => ke`
|
|
@@ -10380,7 +10532,7 @@ function endpointHeadTemplate(path, pathsExpanded = false) {
|
|
|
10380
10532
|
`;
|
|
10381
10533
|
}
|
|
10382
10534
|
function endpointBodyTemplate(path) {
|
|
10383
|
-
var _path$xBadges, _path$externalDocs, _path$externalDocs2, _path$externalDocs3, _path$externalDocs4, _path$externalDocs5, _path$externalDocs6;
|
|
10535
|
+
var _path$xBadges, _path$externalDocs, _path$externalDocs2, _path$externalDocs3, _path$externalDocs4, _path$externalDocs5, _path$externalDocs6, _this$selectedServer;
|
|
10384
10536
|
const acceptContentTypes = new Set();
|
|
10385
10537
|
for (const respStatus in path.responses) {
|
|
10386
10538
|
for (const acceptContentType in (_path$responses$respS = path.responses[respStatus]) === null || _path$responses$respS === void 0 ? void 0 : _path$responses$respS.content) {
|
|
@@ -10404,10 +10556,10 @@ function endpointBodyTemplate(path) {
|
|
|
10404
10556
|
return ke`
|
|
10405
10557
|
<div part="section-endpoint-body-${path.expanded ? 'expanded' : 'collapsed'}" class='endpoint-body ${path.method} ${path.deprecated ? 'deprecated' : ''}'>
|
|
10406
10558
|
<div class="summary">
|
|
10407
|
-
${path.summary ? ke`<div class="title" part="section-endpoint-body-title">${path.summary}
|
|
10559
|
+
${path.summary ? ke`<div class="title" part="section-endpoint-body-title">${path.summary}</div>` : path.shortSummary !== path.description ? ke`<div class="title" part="section-endpoint-body-title">${path.shortSummary}</div>` : ''}
|
|
10408
10560
|
${path.xBadges && ((_path$xBadges = path.xBadges) === null || _path$xBadges === void 0 ? void 0 : _path$xBadges.length) > 0 ? ke`
|
|
10409
10561
|
<div style="display:flex; flex-wrap:wrap;font-size: var(--font-size-small);">
|
|
10410
|
-
${path.xBadges.map(v => ke`<span part="endpoint-badge" style="margin:1px; margin-right:5px; padding:1px 8px; font-weight:bold; border-radius:12px; background-color: var(--light-${v.color}, var(--input-bg)); color:var(--${v.color}); border:1px solid var(--${v.color})">${v.label}</span>`)}
|
|
10562
|
+
${path.xBadges.map(v => v.color === 'none' ? '' : ke`<span part="endpoint-badge" style="margin:1px; margin-right:5px; padding:1px 8px; font-weight:bold; border-radius:12px; background-color: var(--light-${v.color}, var(--input-bg)); color:var(--${v.color}); border:1px solid var(--${v.color})">${v.label}</span>`)}
|
|
10411
10563
|
</div>
|
|
10412
10564
|
` : ''}
|
|
10413
10565
|
|
|
@@ -10435,7 +10587,7 @@ function endpointBodyTemplate(path) {
|
|
|
10435
10587
|
.request_body = "${path.requestBody}"
|
|
10436
10588
|
.api_keys = "${nonEmptyApiKeys}"
|
|
10437
10589
|
.servers = "${path.servers}"
|
|
10438
|
-
server-url = "${path.servers && path.servers.length > 0 ? path.servers[0].url : this.selectedServer.computedUrl}"
|
|
10590
|
+
server-url = "${path.servers && path.servers.length > 0 ? path.servers[0].url : (_this$selectedServer = this.selectedServer) === null || _this$selectedServer === void 0 ? void 0 : _this$selectedServer.computedUrl}"
|
|
10439
10591
|
active-schema-tab = "${this.defaultSchemaTab}"
|
|
10440
10592
|
fill-request-fields-with-example = "${this.fillRequestFieldsWithExample}"
|
|
10441
10593
|
allow-try = "${this.allowTry}"
|
|
@@ -10478,12 +10630,12 @@ function endpointBodyTemplate(path) {
|
|
|
10478
10630
|
</div>
|
|
10479
10631
|
</div>`;
|
|
10480
10632
|
}
|
|
10481
|
-
function endpointTemplate(
|
|
10633
|
+
function endpointTemplate(isMini = false, pathsExpanded = false) {
|
|
10482
10634
|
if (!this.resolvedSpec) {
|
|
10483
10635
|
return '';
|
|
10484
10636
|
}
|
|
10485
10637
|
return ke`
|
|
10486
|
-
${
|
|
10638
|
+
${isMini ? '' : ke`
|
|
10487
10639
|
<div style="display:flex; justify-content:flex-end;">
|
|
10488
10640
|
<span @click="${e => onExpandCollapseAll(e, 'expand-all')}" style="color:var(--primary-color); cursor:pointer;">
|
|
10489
10641
|
Expand all
|
|
@@ -10493,9 +10645,22 @@ function endpointTemplate(showExpandCollapse = true, showTags = true, pathsExpan
|
|
|
10493
10645
|
Collapse all
|
|
10494
10646
|
</span>
|
|
10495
10647
|
sections
|
|
10496
|
-
</div>`
|
|
10648
|
+
</div>`}
|
|
10497
10649
|
${this.resolvedSpec.tags.map(tag => ke`
|
|
10498
|
-
${
|
|
10650
|
+
${isMini ? ke`
|
|
10651
|
+
<div class='section-tag-body'>
|
|
10652
|
+
${tag.paths.filter(path => {
|
|
10653
|
+
if (this.searchVal) {
|
|
10654
|
+
return getMatchedPaths(this.searchVal, path, tag.name);
|
|
10655
|
+
}
|
|
10656
|
+
return true;
|
|
10657
|
+
}).map(path => ke`
|
|
10658
|
+
<section id='${path.elementId}' class='m-endpoint regular-font ${path.method} ${pathsExpanded || path.expanded ? 'expanded' : 'collapsed'}'>
|
|
10659
|
+
${endpointHeadTemplate.call(this, path, pathsExpanded)}
|
|
10660
|
+
${pathsExpanded || path.expanded ? endpointBodyTemplate.call(this, path) : ''}
|
|
10661
|
+
</section>`)}
|
|
10662
|
+
</div>
|
|
10663
|
+
` : ke`
|
|
10499
10664
|
<div class='regular-font section-gap section-tag ${tag.expanded ? 'expanded' : 'collapsed'}'>
|
|
10500
10665
|
<div class='section-tag-header' @click="${() => {
|
|
10501
10666
|
tag.expanded = !tag.expanded;
|
|
@@ -10509,8 +10674,8 @@ function endpointTemplate(showExpandCollapse = true, showTags = true, pathsExpan
|
|
|
10509
10674
|
${unsafe_html_ae(marked(tag.description || ''))}
|
|
10510
10675
|
</div>
|
|
10511
10676
|
${tag.paths.filter(v => {
|
|
10512
|
-
if (this.
|
|
10513
|
-
return
|
|
10677
|
+
if (this.searchVal) {
|
|
10678
|
+
return getMatchedPaths(this.searchVal, v, tag.name);
|
|
10514
10679
|
}
|
|
10515
10680
|
return true;
|
|
10516
10681
|
}).map(path => ke`
|
|
@@ -10519,18 +10684,6 @@ function endpointTemplate(showExpandCollapse = true, showTags = true, pathsExpan
|
|
|
10519
10684
|
${pathsExpanded || path.expanded ? endpointBodyTemplate.call(this, path) : ''}
|
|
10520
10685
|
</section>`)}
|
|
10521
10686
|
</div>
|
|
10522
|
-
</div>` : ke`
|
|
10523
|
-
<div class='section-tag-body'>
|
|
10524
|
-
${tag.paths.filter(v => {
|
|
10525
|
-
if (this.matchPaths) {
|
|
10526
|
-
return pathIsInSearch(this.matchPaths, v, this.matchType);
|
|
10527
|
-
}
|
|
10528
|
-
return true;
|
|
10529
|
-
}).map(path => ke`
|
|
10530
|
-
<section id='${path.elementId}' class='m-endpoint regular-font ${path.method} ${pathsExpanded || path.expanded ? 'expanded' : 'collapsed'}'>
|
|
10531
|
-
${endpointHeadTemplate.call(this, path, pathsExpanded)}
|
|
10532
|
-
${pathsExpanded || path.expanded ? endpointBodyTemplate.call(this, path) : ''}
|
|
10533
|
-
</section>`)}
|
|
10534
10687
|
</div>
|
|
10535
10688
|
`}
|
|
10536
10689
|
`)}`;
|
|
@@ -10775,6 +10928,7 @@ function searchByPropertiesModalTemplate() {
|
|
|
10775
10928
|
>
|
|
10776
10929
|
<span class="advanced-search-options">
|
|
10777
10930
|
<input
|
|
10931
|
+
id="input-advanced-search-dialog"
|
|
10778
10932
|
style="width:100%; padding-right:20px;"
|
|
10779
10933
|
type="text"
|
|
10780
10934
|
part="textbox textbox-search-dialog"
|
|
@@ -10813,7 +10967,7 @@ function searchByPropertiesModalTemplate() {
|
|
|
10813
10967
|
data-content-id='${path.elementId}'
|
|
10814
10968
|
tabindex = '0'
|
|
10815
10969
|
@click="${e => {
|
|
10816
|
-
this.
|
|
10970
|
+
this.searchVal = ''; // clear quick filter if applied
|
|
10817
10971
|
this.showAdvancedSearchDialog = false; // Hide Search Dialog
|
|
10818
10972
|
this.requestUpdate();
|
|
10819
10973
|
this.scrollToEventTarget(e, true);
|
|
@@ -10905,8 +11059,8 @@ function setTheme(baseTheme, theme = {}) {
|
|
|
10905
11059
|
const fg3 = theme.fg3 ? theme.fg3 : color_utils.color.brightness(fg1, -20); // or #aaa
|
|
10906
11060
|
const lightFg = theme.fg3 ? theme.fg3 : color_utils.color.brightness(fg1, -65); // or #777
|
|
10907
11061
|
const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : '#aaa';
|
|
10908
|
-
const selectionBg =
|
|
10909
|
-
const selectionFg =
|
|
11062
|
+
const selectionBg = fg2;
|
|
11063
|
+
const selectionFg = bg2;
|
|
10910
11064
|
const headerColor = theme.headerColor ? theme.headerColor : color_utils.color.brightness(bg1, 10);
|
|
10911
11065
|
const navBgColor = theme.navBgColor ? theme.navBgColor : color_utils.color.brightness(bg1, 10);
|
|
10912
11066
|
const navTextColor = theme.navTextColor ? theme.navTextColor : color_utils.color.opacity(color_utils.color.invert(navBgColor), '0.50');
|
|
@@ -10992,8 +11146,8 @@ function setTheme(baseTheme, theme = {}) {
|
|
|
10992
11146
|
const fg3 = theme.fg3 ? theme.fg3 : color_utils.color.brightness(fg1, 30); // or #666
|
|
10993
11147
|
const lightFg = theme.fg3 ? theme.fg3 : color_utils.color.brightness(fg1, 70); // or #999
|
|
10994
11148
|
const inlineCodeFg = theme.inlineCodeFg ? theme.inlineCodeFg : 'brown';
|
|
10995
|
-
const selectionBg =
|
|
10996
|
-
const selectionFg =
|
|
11149
|
+
const selectionBg = fg2;
|
|
11150
|
+
const selectionFg = bg2;
|
|
10997
11151
|
const headerColor = theme.headerColor ? theme.headerColor : color_utils.color.brightness(bg1, -180);
|
|
10998
11152
|
|
|
10999
11153
|
/*
|
|
@@ -11175,7 +11329,7 @@ function setTheme(baseTheme, theme = {}) {
|
|
|
11175
11329
|
|
|
11176
11330
|
|
|
11177
11331
|
|
|
11178
|
-
function mainBodyTemplate(isMini = false,
|
|
11332
|
+
function mainBodyTemplate(isMini = false, pathsExpanded = false) {
|
|
11179
11333
|
if (!this.resolvedSpec) {
|
|
11180
11334
|
return '';
|
|
11181
11335
|
}
|
|
@@ -11255,7 +11409,7 @@ function mainBodyTemplate(isMini = false, showExpandCollapse = true, showTags =
|
|
|
11255
11409
|
<div id='operations-top' class='observe-me'>
|
|
11256
11410
|
<slot name='operations-top'></slot>
|
|
11257
11411
|
</div>
|
|
11258
|
-
${this.renderStyle === 'read' ? expandedEndpointTemplate.call(this) : endpointTemplate.call(this,
|
|
11412
|
+
${this.renderStyle === 'read' ? expandedEndpointTemplate.call(this) : endpointTemplate.call(this, isMini, pathsExpanded)}
|
|
11259
11413
|
`}
|
|
11260
11414
|
</div>
|
|
11261
11415
|
`}`}
|
|
@@ -11600,6 +11754,10 @@ class RapiDoc extends lit_element_h {
|
|
|
11600
11754
|
type: String,
|
|
11601
11755
|
attribute: 'match-type'
|
|
11602
11756
|
},
|
|
11757
|
+
removeEndpointsWithBadgeLabelAs: {
|
|
11758
|
+
type: String,
|
|
11759
|
+
attribute: 'remove-endpoints-with-badge-label-as'
|
|
11760
|
+
},
|
|
11603
11761
|
// Internal Properties
|
|
11604
11762
|
loading: {
|
|
11605
11763
|
type: Boolean
|
|
@@ -11614,6 +11772,9 @@ class RapiDoc extends lit_element_h {
|
|
|
11614
11772
|
},
|
|
11615
11773
|
advancedSearchMatches: {
|
|
11616
11774
|
type: Object
|
|
11775
|
+
},
|
|
11776
|
+
searchVal: {
|
|
11777
|
+
type: String
|
|
11617
11778
|
}
|
|
11618
11779
|
};
|
|
11619
11780
|
}
|
|
@@ -11632,6 +11793,7 @@ class RapiDoc extends lit_element_h {
|
|
|
11632
11793
|
color:var(--fg);
|
|
11633
11794
|
background-color:var(--bg);
|
|
11634
11795
|
font-family:var(--font-regular);
|
|
11796
|
+
container-type: inline-size;
|
|
11635
11797
|
}
|
|
11636
11798
|
:where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
|
|
11637
11799
|
:where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
|
|
@@ -11680,11 +11842,11 @@ class RapiDoc extends lit_element_h {
|
|
|
11680
11842
|
cursor: n-resize;
|
|
11681
11843
|
padding: 12px 0;
|
|
11682
11844
|
}
|
|
11683
|
-
.collapsed .section-tag-header:hover{
|
|
11845
|
+
.collapsed .section-tag-header:hover {
|
|
11684
11846
|
cursor: s-resize;
|
|
11685
11847
|
}
|
|
11686
11848
|
|
|
11687
|
-
.section-tag-header:hover{
|
|
11849
|
+
.section-tag-header:hover {
|
|
11688
11850
|
background-image: linear-gradient(to right, rgba(0,0,0,0), var(--border-color), rgba(0,0,0,0));
|
|
11689
11851
|
}
|
|
11690
11852
|
|
|
@@ -11719,7 +11881,7 @@ class RapiDoc extends lit_element_h {
|
|
|
11719
11881
|
margin-left:5px;
|
|
11720
11882
|
}
|
|
11721
11883
|
.only-large-screen-flex,
|
|
11722
|
-
.only-large-screen{
|
|
11884
|
+
.only-large-screen {
|
|
11723
11885
|
display:none;
|
|
11724
11886
|
}
|
|
11725
11887
|
.tag.title {
|
|
@@ -11839,15 +12001,15 @@ class RapiDoc extends lit_element_h {
|
|
|
11839
12001
|
background-color: var(--yellow);
|
|
11840
12002
|
}
|
|
11841
12003
|
|
|
11842
|
-
@
|
|
12004
|
+
@container (min-width: 768px) {
|
|
11843
12005
|
.nav-bar {
|
|
11844
12006
|
width: 260px;
|
|
11845
12007
|
display:flex;
|
|
11846
12008
|
}
|
|
11847
|
-
.only-large-screen{
|
|
12009
|
+
.only-large-screen {
|
|
11848
12010
|
display:block;
|
|
11849
12011
|
}
|
|
11850
|
-
.only-large-screen-flex{
|
|
12012
|
+
.only-large-screen-flex {
|
|
11851
12013
|
display:flex;
|
|
11852
12014
|
}
|
|
11853
12015
|
.section-gap {
|
|
@@ -11865,7 +12027,7 @@ class RapiDoc extends lit_element_h {
|
|
|
11865
12027
|
}
|
|
11866
12028
|
}
|
|
11867
12029
|
|
|
11868
|
-
@
|
|
12030
|
+
@container (min-width: 1024px) {
|
|
11869
12031
|
.nav-bar {
|
|
11870
12032
|
width: ${r(this.fontSize === 'default' ? '300px' : this.fontSize === 'large' ? '315px' : '330px')};
|
|
11871
12033
|
display:flex;
|
|
@@ -12041,11 +12203,17 @@ class RapiDoc extends lit_element_h {
|
|
|
12041
12203
|
if (!this.fetchCredentials || !'omit, same-origin, include,'.includes(`${this.fetchCredentials},`)) {
|
|
12042
12204
|
this.fetchCredentials = '';
|
|
12043
12205
|
}
|
|
12206
|
+
if (!this.scrollBehavior || !'smooth, auto,'.includes(`${this.scrollBehavior},`)) {
|
|
12207
|
+
this.scrollBehavior = 'auto';
|
|
12208
|
+
}
|
|
12044
12209
|
if (!this.matchType || !'includes regex'.includes(this.matchType)) {
|
|
12045
12210
|
this.matchType = 'includes';
|
|
12046
12211
|
}
|
|
12047
|
-
if (!this.
|
|
12048
|
-
this.
|
|
12212
|
+
if (!this.matchPaths) {
|
|
12213
|
+
this.matchPaths = '';
|
|
12214
|
+
}
|
|
12215
|
+
if (!this.removeEndpointsWithBadgeLabelAs) {
|
|
12216
|
+
this.removeEndpointsWithBadgeLabelAs = '';
|
|
12049
12217
|
}
|
|
12050
12218
|
if (!this.showAdvancedSearchDialog) {
|
|
12051
12219
|
this.showAdvancedSearchDialog = false;
|
|
@@ -12110,6 +12278,13 @@ class RapiDoc extends lit_element_h {
|
|
|
12110
12278
|
}, 0);
|
|
12111
12279
|
}
|
|
12112
12280
|
}
|
|
12281
|
+
if (name === 'match-paths' || name === 'match-type' || name === 'remove-endpoints-with-badge-label-as') {
|
|
12282
|
+
if (oldVal !== newVal) {
|
|
12283
|
+
window.setTimeout(async () => {
|
|
12284
|
+
await this.loadSpec(this.specUrl);
|
|
12285
|
+
}, 0);
|
|
12286
|
+
}
|
|
12287
|
+
}
|
|
12113
12288
|
if (name === 'render-style') {
|
|
12114
12289
|
if (newVal === 'read') {
|
|
12115
12290
|
window.setTimeout(() => {
|
|
@@ -12183,7 +12358,7 @@ class RapiDoc extends lit_element_h {
|
|
|
12183
12358
|
const specObj = JSON.parse(reader.result);
|
|
12184
12359
|
this.loadSpec(specObj);
|
|
12185
12360
|
this.shadowRoot.getElementById('spec-url').value = '';
|
|
12186
|
-
} catch
|
|
12361
|
+
} catch {
|
|
12187
12362
|
console.error('RapiDoc: Unable to read or parse json'); // eslint-disable-line no-console
|
|
12188
12363
|
}
|
|
12189
12364
|
};
|
|
@@ -12194,18 +12369,18 @@ class RapiDoc extends lit_element_h {
|
|
|
12194
12369
|
this.shadowRoot.getElementById('spec-file').click();
|
|
12195
12370
|
}
|
|
12196
12371
|
onSearchChange(e) {
|
|
12197
|
-
this.matchPaths = e.target.value;
|
|
12198
|
-
this.
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
if (
|
|
12372
|
+
// this.matchPaths = e.target.value;
|
|
12373
|
+
this.searchVal = e.target.value;
|
|
12374
|
+
this.resolvedSpec.tags.forEach(tag => tag.paths.filter(path => {
|
|
12375
|
+
if (this.searchVal) {
|
|
12376
|
+
if (getMatchedPaths(this.searchVal, path, tag.name)) {
|
|
12202
12377
|
tag.expanded = true;
|
|
12203
12378
|
}
|
|
12204
12379
|
}
|
|
12205
12380
|
}));
|
|
12206
12381
|
this.resolvedSpec.components.forEach(component => component.subComponents.filter(v => {
|
|
12207
12382
|
v.expanded = false;
|
|
12208
|
-
if (
|
|
12383
|
+
if (getMatchedComponents(this.searchVal, v)) {
|
|
12209
12384
|
v.expanded = true;
|
|
12210
12385
|
}
|
|
12211
12386
|
}));
|
|
@@ -12214,7 +12389,7 @@ class RapiDoc extends lit_element_h {
|
|
|
12214
12389
|
onClearSearch() {
|
|
12215
12390
|
const searchEl = this.shadowRoot.getElementById('nav-bar-search');
|
|
12216
12391
|
searchEl.value = '';
|
|
12217
|
-
this.
|
|
12392
|
+
this.searchVal = '';
|
|
12218
12393
|
this.resolvedSpec.components.forEach(component => component.subComponents.filter(v => {
|
|
12219
12394
|
v.expanded = true;
|
|
12220
12395
|
}));
|
|
@@ -12238,7 +12413,7 @@ class RapiDoc extends lit_element_h {
|
|
|
12238
12413
|
if (!specUrl) {
|
|
12239
12414
|
return;
|
|
12240
12415
|
}
|
|
12241
|
-
this.
|
|
12416
|
+
this.searchVal = '';
|
|
12242
12417
|
try {
|
|
12243
12418
|
this.resolvedSpec = {
|
|
12244
12419
|
specLoadError: false,
|
|
@@ -12247,7 +12422,7 @@ class RapiDoc extends lit_element_h {
|
|
|
12247
12422
|
};
|
|
12248
12423
|
this.loading = true;
|
|
12249
12424
|
this.loadFailed = false;
|
|
12250
|
-
const spec = await ProcessSpec.call(this, specUrl, this.generateMissingTags === 'true', this.sortTags === 'true', this.sortSchemas === 'true', this.getAttribute('sort-endpoints-by'), this.getAttribute('api-key-name'), this.getAttribute('api-key-location'), this.getAttribute('api-key-value'), this.getAttribute('server-url'));
|
|
12425
|
+
const spec = await ProcessSpec.call(this, specUrl, this.generateMissingTags === 'true', this.sortTags === 'true', this.sortSchemas === 'true', this.getAttribute('sort-endpoints-by'), this.getAttribute('api-key-name'), this.getAttribute('api-key-location'), this.getAttribute('api-key-value'), this.getAttribute('server-url'), this.matchPaths, this.matchType, this.removeEndpointsWithBadgeLabelAs);
|
|
12251
12426
|
this.loading = false;
|
|
12252
12427
|
this.afterSpecParsedAndValidated(spec);
|
|
12253
12428
|
} catch (err) {
|
|
@@ -12750,6 +12925,10 @@ class RapiDocMini extends lit_element_h {
|
|
|
12750
12925
|
type: String,
|
|
12751
12926
|
attribute: 'match-type'
|
|
12752
12927
|
},
|
|
12928
|
+
removeEndpointsWithBadgeLabelAs: {
|
|
12929
|
+
type: String,
|
|
12930
|
+
attribute: 'remove-endpoints-with-badge-label-as'
|
|
12931
|
+
},
|
|
12753
12932
|
// Internal Properties
|
|
12754
12933
|
loading: {
|
|
12755
12934
|
type: Boolean
|
|
@@ -12771,13 +12950,14 @@ class RapiDocMini extends lit_element_h {
|
|
|
12771
12950
|
color:var(--fg);
|
|
12772
12951
|
background-color:var(--bg);
|
|
12773
12952
|
font-family:var(--font-regular);
|
|
12953
|
+
container-type: inline-size;
|
|
12774
12954
|
}
|
|
12775
12955
|
|
|
12776
|
-
@
|
|
12777
|
-
.only-large-screen{
|
|
12956
|
+
@container (min-width: 768px) {
|
|
12957
|
+
.only-large-screen {
|
|
12778
12958
|
display:block;
|
|
12779
12959
|
}
|
|
12780
|
-
.only-large-screen-flex{
|
|
12960
|
+
.only-large-screen-flex {
|
|
12781
12961
|
display:flex;
|
|
12782
12962
|
}
|
|
12783
12963
|
}`];
|
|
@@ -12863,6 +13043,12 @@ class RapiDocMini extends lit_element_h {
|
|
|
12863
13043
|
if (!this.matchType || !'includes regex'.includes(this.matchType)) {
|
|
12864
13044
|
this.matchType = 'includes';
|
|
12865
13045
|
}
|
|
13046
|
+
if (!this.matchPaths) {
|
|
13047
|
+
this.matchPaths = '';
|
|
13048
|
+
}
|
|
13049
|
+
if (!this.removeEndpointsWithBadgeLabelAs) {
|
|
13050
|
+
this.removeEndpointsWithBadgeLabelAs = '';
|
|
13051
|
+
}
|
|
12866
13052
|
if (!this.allowSchemaDescriptionExpandToggle || !'true, false,'.includes(`${this.allowSchemaDescriptionExpandToggle},`)) {
|
|
12867
13053
|
this.allowSchemaDescriptionExpandToggle = 'true';
|
|
12868
13054
|
}
|
|
@@ -12879,7 +13065,7 @@ class RapiDocMini extends lit_element_h {
|
|
|
12879
13065
|
});
|
|
12880
13066
|
}
|
|
12881
13067
|
render() {
|
|
12882
|
-
return mainBodyTemplate.call(this, true,
|
|
13068
|
+
return mainBodyTemplate.call(this, true, this.pathsExpanded);
|
|
12883
13069
|
}
|
|
12884
13070
|
attributeChangedCallback(name, oldVal, newVal) {
|
|
12885
13071
|
if (name === 'spec-url') {
|
|
@@ -12890,6 +13076,13 @@ class RapiDocMini extends lit_element_h {
|
|
|
12890
13076
|
}, 0);
|
|
12891
13077
|
}
|
|
12892
13078
|
}
|
|
13079
|
+
if (name === 'match-paths' || name === 'match-type' || name === 'remove-endpoints-with-badge-label-as') {
|
|
13080
|
+
if (oldVal !== newVal) {
|
|
13081
|
+
window.setTimeout(async () => {
|
|
13082
|
+
await this.loadSpec(this.specUrl);
|
|
13083
|
+
}, 0);
|
|
13084
|
+
}
|
|
13085
|
+
}
|
|
12893
13086
|
if (name === 'api-key-name' || name === 'api-key-location' || name === 'api-key-value') {
|
|
12894
13087
|
let updateSelectedApiKey = false;
|
|
12895
13088
|
let apiKeyName = '';
|
|
@@ -12960,7 +13153,7 @@ class RapiDocMini extends lit_element_h {
|
|
|
12960
13153
|
this.loading = true;
|
|
12961
13154
|
this.loadFailed = false;
|
|
12962
13155
|
this.requestUpdate();
|
|
12963
|
-
const spec = await ProcessSpec.call(this, specUrl, this.generateMissingTags === 'true', this.sortTags === 'true', this.getAttribute('sort-endpoints-by'), this.getAttribute('api-key-name'), this.getAttribute('api-key-location'), this.getAttribute('api-key-value'), this.getAttribute('server-url'));
|
|
13156
|
+
const spec = await ProcessSpec.call(this, specUrl, this.generateMissingTags === 'true', this.sortTags === 'true', this.sortSchemas === 'true', this.getAttribute('sort-endpoints-by'), this.getAttribute('api-key-name'), this.getAttribute('api-key-location'), this.getAttribute('api-key-value'), this.getAttribute('server-url'), this.matchPaths, this.matchType, this.removeEndpointsWithBadgeLabelAs);
|
|
12964
13157
|
this.loading = false;
|
|
12965
13158
|
this.afterSpecParsedAndValidated(spec);
|
|
12966
13159
|
} catch (err) {
|
|
@@ -13146,7 +13339,7 @@ function jsonSchemaBodyTemplate() {
|
|
|
13146
13339
|
<div style="font-size:var(--font-size-regular);">
|
|
13147
13340
|
${this.resolvedSpec.schemaAndExamples.map(jSchemaBody => {
|
|
13148
13341
|
var _examplesObj$;
|
|
13149
|
-
const examplesObj = generateExample(jSchemaBody.schema, 'json', jSchemaBody.examples, jSchemaBody.example, true, false, 'json', true);
|
|
13342
|
+
const examplesObj = generateExample(jSchemaBody.schema, 'json', standardizeExample(jSchemaBody.examples), standardizeExample(jSchemaBody.example), true, false, 'json', true);
|
|
13150
13343
|
jSchemaBody.selectedExample = (_examplesObj$ = examplesObj[0]) === null || _examplesObj$ === void 0 ? void 0 : _examplesObj$.exampleId;
|
|
13151
13344
|
return ke`
|
|
13152
13345
|
<section id='${jSchemaBody.elementId}' class='json-schema-and-example regular-font' style="display:flex; flex-direction: column; border:1px solid var(--border-color); margin-bottom:32px; border-top: 5px solid var(--border-color)">
|
|
@@ -13190,7 +13383,7 @@ function jsonSchemaBodyTemplate() {
|
|
|
13190
13383
|
|
|
13191
13384
|
// Json Schema Root Template
|
|
13192
13385
|
function jsonSchemaViewerTemplate(isMini = false) {
|
|
13193
|
-
// export default function jsonSchemaViewerTemplate(isMini = false,
|
|
13386
|
+
// export default function jsonSchemaViewerTemplate(isMini = false, pathsExpanded = false) {
|
|
13194
13387
|
if (!this.resolvedSpec) {
|
|
13195
13388
|
return '';
|
|
13196
13389
|
}
|
|
@@ -13412,6 +13605,7 @@ class JsonSchemaViewer extends lit_element_h {
|
|
|
13412
13605
|
color:var(--fg);
|
|
13413
13606
|
background-color:var(--bg);
|
|
13414
13607
|
font-family:var(--font-regular);
|
|
13608
|
+
container-type: inline-size;
|
|
13415
13609
|
}
|
|
13416
13610
|
.body {
|
|
13417
13611
|
display:flex;
|
|
@@ -13477,11 +13671,11 @@ class JsonSchemaViewer extends lit_element_h {
|
|
|
13477
13671
|
height: 36px;
|
|
13478
13672
|
animation: spin 2s linear infinite;
|
|
13479
13673
|
}
|
|
13480
|
-
@
|
|
13674
|
+
@container (min-width: 768px) {
|
|
13481
13675
|
.only-large-screen{
|
|
13482
13676
|
display:block;
|
|
13483
13677
|
}
|
|
13484
|
-
.only-large-screen-flex{
|
|
13678
|
+
.only-large-screen-flex {
|
|
13485
13679
|
display:flex;
|
|
13486
13680
|
}
|
|
13487
13681
|
}`];
|
|
@@ -13610,7 +13804,7 @@ class JsonSchemaViewer extends lit_element_h {
|
|
|
13610
13804
|
this.loading = true;
|
|
13611
13805
|
this.loadFailed = false;
|
|
13612
13806
|
this.requestUpdate();
|
|
13613
|
-
const spec = await ProcessSpec.call(this, specUrl, this.generateMissingTags === 'true', this.sortTags === 'true', this.sortSchemas === 'true', this.getAttribute('sort-endpoints-by'));
|
|
13807
|
+
const spec = await ProcessSpec.call(this, specUrl, this.generateMissingTags === 'true', this.sortTags === 'true', this.sortSchemas === 'true', this.getAttribute('sort-endpoints-by'), this.getAttribute('match-paths'), this.getAttribute('match-type'), this.getAttribute('remove-endpoints-with-badge-label-as'));
|
|
13614
13808
|
this.loading = false;
|
|
13615
13809
|
this.afterSpecParsedAndValidated(spec);
|
|
13616
13810
|
} catch (err) {
|
|
@@ -20415,7 +20609,7 @@ function getType(str) {
|
|
|
20415
20609
|
/******/
|
|
20416
20610
|
/******/ /* webpack/runtime/getFullHash */
|
|
20417
20611
|
/******/ (() => {
|
|
20418
|
-
/******/ __webpack_require__.h = () => ("
|
|
20612
|
+
/******/ __webpack_require__.h = () => ("ab239753a7c115a89c24")
|
|
20419
20613
|
/******/ })();
|
|
20420
20614
|
/******/
|
|
20421
20615
|
/******/ /* webpack/runtime/global */
|
|
@@ -21394,7 +21588,7 @@ function getType(str) {
|
|
|
21394
21588
|
/******/ // module cache are used so entry inlining is disabled
|
|
21395
21589
|
/******/ // startup
|
|
21396
21590
|
/******/ // Load entry module and return exports
|
|
21397
|
-
/******/ var __webpack_exports__ = __webpack_require__(
|
|
21591
|
+
/******/ var __webpack_exports__ = __webpack_require__(557);
|
|
21398
21592
|
/******/
|
|
21399
21593
|
/******/ })()
|
|
21400
21594
|
;
|