swagger-client 3.20.0 → 3.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/swagger-client.browser.js +5168 -6708
- package/dist/swagger-client.browser.min.js +1 -1
- package/dist/swagger-client.browser.min.js.map +1 -1
- package/es/execute/index.js +18 -19
- package/es/execute/oas3/build-request.js +5 -3
- package/es/execute/swagger2/build-request.js +3 -2
- package/es/http/fold-formdata-to-request.node.js +4 -2
- package/es/index.js +8 -7
- package/es/interfaces.js +4 -4
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/index.js +2 -1
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/all-of.js +4 -2
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +26 -18
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/parameters.js +2 -1
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/properties.js +2 -1
- package/es/resolver/apidom/reference/resolve/resolvers/http-swagger-client/index.js +7 -6
- package/es/resolver/index.js +7 -4
- package/es/resolver/strategies/openapi-3-1-apidom/normalize.js +1 -1
- package/es/specmap/index.js +6 -4
- package/es/specmap/lib/all-of.js +3 -2
- package/es/specmap/lib/context-tree.js +4 -2
- package/es/specmap/lib/index.js +11 -5
- package/es/specmap/lib/parameters.js +3 -2
- package/es/specmap/lib/properties.js +3 -2
- package/es/subtree-resolver/index.js +7 -4
- package/lib/execute/index.js +42 -41
- package/lib/execute/oas3/build-request.js +20 -16
- package/lib/execute/oas3/parameter-builders.js +26 -23
- package/lib/execute/oas3/style-serializer.js +27 -23
- package/lib/execute/swagger2/build-request.js +11 -13
- package/lib/execute/swagger2/parameter-builders.js +29 -24
- package/lib/helpers/find-operation.js +1 -1
- package/lib/helpers/get-operation-raw.js +7 -6
- package/lib/helpers/id-from-path-method/index.js +5 -4
- package/lib/helpers/index.js +2 -2
- package/lib/helpers/op-id.js +8 -4
- package/lib/http/fold-formdata-to-request.node.js +4 -6
- package/lib/http/index.js +42 -13
- package/lib/index.js +20 -16
- package/lib/interfaces.js +49 -36
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/errors/index.js +1 -1
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/index.js +12 -12
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/utils/compose.js +1 -1
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/all-of.js +9 -8
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +29 -28
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/parameters.js +8 -7
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/properties.js +8 -7
- package/lib/resolver/apidom/reference/parse/parsers/openapi-yaml-3-1/index.js +1 -2
- package/lib/resolver/apidom/reference/parse/parsers/yaml-1-2/index.js +1 -2
- package/lib/resolver/apidom/reference/resolve/resolvers/http-swagger-client/index.js +12 -14
- package/lib/resolver/index.js +9 -11
- package/lib/resolver/strategies/generic/index.js +5 -4
- package/lib/resolver/strategies/generic/normalize.js +1 -1
- package/lib/resolver/strategies/generic/resolve.js +2 -3
- package/lib/resolver/strategies/openapi-2/index.js +9 -7
- package/lib/resolver/strategies/openapi-2/normalize.js +2 -2
- package/lib/resolver/strategies/openapi-2/resolve.js +1 -1
- package/lib/resolver/strategies/openapi-3-0/index.js +9 -7
- package/lib/resolver/strategies/openapi-3-0/normalize.js +2 -2
- package/lib/resolver/strategies/openapi-3-0/resolve.js +1 -1
- package/lib/resolver/strategies/openapi-3-1-apidom/index.js +10 -9
- package/lib/resolver/strategies/openapi-3-1-apidom/normalize.js +2 -2
- package/lib/resolver/strategies/openapi-3-1-apidom/resolve.js +2 -3
- package/lib/resolver/utils/index.js +4 -1
- package/lib/resolver/utils/options.js +1 -1
- package/lib/specmap/helpers.js +7 -6
- package/lib/specmap/index.js +15 -11
- package/lib/specmap/lib/all-of.js +3 -6
- package/lib/specmap/lib/context-tree.js +4 -6
- package/lib/specmap/lib/create-error.js +4 -1
- package/lib/specmap/lib/index.js +13 -12
- package/lib/specmap/lib/parameters.js +4 -7
- package/lib/specmap/lib/properties.js +4 -7
- package/lib/specmap/lib/refs.js +1 -1
- package/lib/subtree-resolver/index.js +18 -11
- package/package.json +12 -15
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see swagger-client.browser.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={9559:function(){!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,s="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function d(e){var t=new FileReader,r=m(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(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):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=m(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=l(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[l(e)]},h.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},h.prototype.set=function(e,t){this.map[l(e)]=u(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var r,n,s=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=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=(r=t.method||this.method||"GET",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(s)}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(s))}})),t}function j(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},j.error=function(){var e=new j(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];j.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new j(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 r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,r){return new Promise((function(n,i){var o=new b(e,r);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var s=r.join(":").trim();t.append(n,s)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var s="response"in a?a.response:a.responseText;n(new j(s,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&s&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=h,e.Request=b,e.Response=j),t.Headers=h,t.Request=b,t.Response=j,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},1924:(e,t,r)=>{"use strict";var n=r(210),s=r(5559),i=s(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?s(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),s=r(210),i=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),a=s("%Reflect.apply%",!0)||n.call(o,i),c=s("%Object.getOwnPropertyDescriptor%",!0),l=s("%Object.defineProperty%",!0),u=s("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(n,o,arguments);c&&l&&(c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return a(n,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},6489:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||s,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var c=e.indexOf(";",i);if(-1===c)c=e.length;else if(c<a){i=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(i,a).trim();if(void 0===r[l]){var u=e.slice(a+1,c).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=o(u,n)}i=c+1}return r},t.serialize=function(e,t,s){var o=s||{},a=o.encode||i;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!n.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+p.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}function o(e,t){try{return t(e)}catch(t){return e}}},3688:(e,t,r)=>{var n=r(1955);e.exports=n},3838:(e,t,r)=>{var n=r(6279);e.exports=n},5684:(e,t,r)=>{var n=r(9373);e.exports=n},1331:(e,t,r)=>{var n=r(2759);e.exports=n},1254:(e,t,r)=>{var n=r(7396);e.exports=n},3536:(e,t,r)=>{var n=r(1910);e.exports=n},7331:(e,t,r)=>{var n=r(9427);e.exports=n},8522:(e,t,r)=>{var n=r(2857);e.exports=n},3151:(e,t,r)=>{var n=r(9534);e.exports=n},5012:(e,t,r)=>{var n=r(3059);e.exports=n},281:(e,t,r)=>{var n=r(2547);r(3975),e.exports=n},31:(e,t,r)=>{var n=r(6509);e.exports=n},7487:(e,t,r)=>{var n=r(5774);e.exports=n},2383:(e,t,r)=>{r(1501);var n=r(5703);e.exports=n("Array").filter},9324:(e,t,r)=>{r(2437);var n=r(5703);e.exports=n("Array").forEach},8700:(e,t,r)=>{r(9076);var n=r(5703);e.exports=n("Array").indexOf},9896:(e,t,r)=>{r(8528);var n=r(5703);e.exports=n("Array").push},2480:(e,t,r)=>{var n=r(7046),s=r(2383),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||n(i,e)&&t===i.filter?s:t}},4570:(e,t,r)=>{var n=r(7046),s=r(8700),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||n(i,e)&&t===i.indexOf?s:t}},3993:(e,t,r)=>{var n=r(7046),s=r(9896),i=Array.prototype;e.exports=function(e){var t=e.push;return e===i||n(i,e)&&t===i.push?s:t}},7702:(e,t,r)=>{r(4979);var n=r(4058).Object,s=e.exports=function(e,t){return n.defineProperties(e,t)};n.defineProperties.sham&&(s.sham=!0)},8171:(e,t,r)=>{r(6450);var n=r(4058).Object,s=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(s.sham=!0)},286:(e,t,r)=>{r(6924);var n=r(4058).Object,s=e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)};n.getOwnPropertyDescriptor.sham&&(s.sham=!0)},2766:(e,t,r)=>{r(8482);var n=r(4058);e.exports=n.Object.getOwnPropertyDescriptors},498:(e,t,r)=>{r(5824);var n=r(4058);e.exports=n.Object.getOwnPropertySymbols},8494:(e,t,r)=>{r(1724);var n=r(4058);e.exports=n.Object.keys},7473:(e,t,r)=>{r(5906),r(5967),r(5824),r(8555),r(2615),r(1732),r(5903),r(1825),r(8394),r(5915),r(1766),r(2737),r(9911),r(4315),r(3131),r(4714),r(659),r(9120),r(5327),r(1502);var n=r(4058);e.exports=n.Symbol},4227:(e,t,r)=>{r(6274),r(5967),r(7971),r(1825);var n=r(1477);e.exports=n.f("iterator")},2978:(e,t,r)=>{r(8084),r(3131);var n=r(1477);e.exports=n.f("toPrimitive")},1675:(e,t,r)=>{var n=r(3688);e.exports=n},2507:(e,t,r)=>{var n=r(3838);e.exports=n},628:(e,t,r)=>{var n=r(5684);e.exports=n},4501:(e,t,r)=>{var n=r(1331);e.exports=n},8180:(e,t,r)=>{var n=r(1254);e.exports=n},621:(e,t,r)=>{var n=r(3536);e.exports=n},8403:(e,t,r)=>{var n=r(7331);e.exports=n},2108:(e,t,r)=>{var n=r(8522);e.exports=n},4904:(e,t,r)=>{var n=r(3151);e.exports=n},2093:(e,t,r)=>{var n=r(5012);e.exports=n},2201:(e,t,r)=>{var n=r(281);r(8783),r(2731),r(5605),r(5799),r(1943),r(6774),r(5414),r(620),r(6172),e.exports=n},7398:(e,t,r)=>{var n=r(31);e.exports=n},6189:(e,t,r)=>{var n=r(7487);e.exports=n},4883:(e,t,r)=>{var n=r(7475),s=r(9826),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},1851:(e,t,r)=>{var n=r(7475),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},8479:e=>{e.exports=function(){}},6059:(e,t,r)=>{var n=r(941),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},6837:(e,t,r)=>{"use strict";var n=r(3610).forEach,s=r(4194)("forEach");e.exports=s?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},1692:(e,t,r)=>{var n=r(4529),s=r(9413),i=r(623),o=function(e){return function(t,r,o){var a,c=n(t),l=i(c),u=s(o,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},3610:(e,t,r)=>{var n=r(6843),s=r(5329),i=r(7026),o=r(9678),a=r(623),c=r(4692),l=s([].push),u=function(e){var t=1==e,r=2==e,s=3==e,u=4==e,p=6==e,h=7==e,f=5==e||p;return function(m,d,y,g){for(var v,b,O=o(m),j=i(O),w=n(d,y),E=a(j),x=0,S=g||c,P=t?S(m,E):r||h?S(m,0):void 0;E>x;x++)if((f||x in j)&&(b=w(v=j[x],x,O),e))if(t)P[x]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:l(P,v)}else switch(e){case 4:return!1;case 7:l(P,v)}return p?-1:s||u?u:P}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},568:(e,t,r)=>{var n=r(5981),s=r(9813),i=r(3385),o=s("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},4194:(e,t,r)=>{"use strict";var n=r(5981);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},9779:(e,t,r)=>{"use strict";var n=r(5746),s=r(1052),i=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!o(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},5790:(e,t,r)=>{var n=r(9413),s=r(623),i=r(5449),o=Array,a=Math.max;e.exports=function(e,t,r){for(var c=s(e),l=n(t,c),u=n(void 0===r?c:r,c),p=o(a(u-l,0)),h=0;l<u;l++,h++)i(p,h,e[l]);return p.length=h,p}},3765:(e,t,r)=>{var n=r(5329);e.exports=n([].slice)},5693:(e,t,r)=>{var n=r(1052),s=r(4284),i=r(941),o=r(9813)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(s(t)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},4692:(e,t,r)=>{var n=r(5693);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},2532:(e,t,r)=>{var n=r(5329),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},9697:(e,t,r)=>{var n=r(2885),s=r(7475),i=r(2532),o=r(9813)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i: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=a(e),o))?r:c?i(t):"Object"==(n=i(t))&&s(t.callee)?"Arguments":n}},4160:(e,t,r)=>{var n=r(5981);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3538:e=>{e.exports=function(e,t){return{value:e,done:t}}},2029:(e,t,r)=>{var n=r(5746),s=r(5988),i=r(1887);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},1887:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5449:(e,t,r)=>{"use strict";var n=r(3894),s=r(5988),i=r(1887);e.exports=function(e,t,r){var o=n(t);o in e?s.f(e,o,i(0,r)):e[o]=r}},9202:(e,t,r)=>{var n=r(5988);e.exports=function(e,t,r){return n.f(e,t,r)}},5929:(e,t,r)=>{var n=r(2029);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5609:(e,t,r)=>{var n=r(1899),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5746:(e,t,r)=>{var n=r(5981);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6616:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},1333:(e,t,r)=>{var n=r(1899),s=r(941),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},6796:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},3281:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2861:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3385:(e,t,r)=>{var n,s,i=r(1899),o=r(2861),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5703:(e,t,r)=>{var n=r(4058);e.exports=function(e){return n[e+"Prototype"]}},6759:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6887:(e,t,r)=>{"use strict";var n=r(1899),s=r(9730),i=r(7484),o=r(7475),a=r(9677).f,c=r(7252),l=r(4058),u=r(6843),p=r(2029),h=r(953),f=function(e){var t=function(r,n,i){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,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,g,v,b,O,j=e.target,w=e.global,E=e.stat,x=e.proto,S=w?n:E?n[j]:(n[j]||{}).prototype,P=w?l:l[j]||p(l,j,{})[j],A=P.prototype;for(d in t)s=!(r=c(w?d:j+(E?".":"#")+d,e.forced))&&S&&h(S,d),g=P[d],s&&(v=e.dontCallGetSet?(O=a(S,d))&&O.value:S[d]),y=s&&v?v:t[d],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):x&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),x&&(h(l,m=j+"Prototype")||p(l,m,{}),p(l[m],d,y),e.real&&A&&(r||!A[d])&&p(A,d,y)))}},5981:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},9730:(e,t,r)=>{var n=r(8285),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},6843:(e,t,r)=>{var n=r(7484),s=r(4883),i=r(8285),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},8285:(e,t,r)=>{var n=r(5981);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8834:(e,t,r)=>{var n=r(8285),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},9417:(e,t,r)=>{var n=r(5746),s=r(953),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},5526:(e,t,r)=>{var n=r(5329),s=r(4883);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7484:(e,t,r)=>{var n=r(2532),s=r(5329);e.exports=function(e){if("Function"===n(e))return s(e)}},5329:(e,t,r)=>{var n=r(8285),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},626:(e,t,r)=>{var n=r(4058),s=r(1899),i=r(7475),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},3323:(e,t,r)=>{var n=r(5329),s=r(1052),i=r(7475),o=r(2532),a=r(5803),c=n([].push);e.exports=function(e){if(i(e))return e;if(s(e)){for(var t=e.length,r=[],n=0;n<t;n++){var l=e[n];"string"==typeof l?c(r,l):"number"!=typeof l&&"Number"!=o(l)&&"String"!=o(l)||c(r,a(l))}var u=r.length,p=!0;return function(e,t){if(p)return p=!1,t;if(s(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},4229:(e,t,r)=>{var n=r(4883),s=r(2119);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},1899:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},953:(e,t,r)=>{var n=r(5329),s=r(9678),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},7748:e=>{e.exports={}},5463:(e,t,r)=>{var n=r(626);e.exports=n("document","documentElement")},2840:(e,t,r)=>{var n=r(5746),s=r(5981),i=r(1333);e.exports=!n&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:(e,t,r)=>{var n=r(5329),s=r(5981),i=r(2532),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},1302:(e,t,r)=>{var n=r(5329),s=r(7475),i=r(3030),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},5402:(e,t,r)=>{var n,s,i,o=r(7093),a=r(1899),c=r(941),l=r(2029),u=r(953),p=r(3030),h=r(4262),f=r(7748),m="Object already initialized",d=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw d(m);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");f[v]=!0,n=function(e,t){if(u(e,v))throw d(m);return t.facade=e,l(e,v,t),t},s=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},1052:(e,t,r)=>{var n=r(2532);e.exports=Array.isArray||function(e){return"Array"==n(e)}},7475:(e,t,r)=>{var n=r(6616),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},4284:(e,t,r)=>{var n=r(5329),s=r(5981),i=r(7475),o=r(9697),a=r(626),c=r(1302),l=function(){},u=[],p=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=n(h.exec),m=!h.exec(l),d=function(e){if(!i(e))return!1;try{return p(l,u,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(h,c(e))}catch(e){return!0}};y.sham=!0,e.exports=!p||s((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?y:d},7252:(e,t,r)=>{var n=r(5981),s=r(7475),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==u||r!=l&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},2119:e=>{e.exports=function(e){return null==e}},941:(e,t,r)=>{var n=r(7475),s=r(6616),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},2529:e=>{e.exports=!0},6664:(e,t,r)=>{var n=r(626),s=r(7475),i=r(7046),o=r(2302),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},3847:(e,t,r)=>{"use strict";var n=r(5143).IteratorPrototype,s=r(9290),i=r(1887),o=r(904),a=r(2077),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=s(n,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},5105:(e,t,r)=>{"use strict";var n=r(6887),s=r(8834),i=r(2529),o=r(9417),a=r(7475),c=r(3847),l=r(249),u=r(8929),p=r(904),h=r(2029),f=r(5929),m=r(9813),d=r(2077),y=r(5143),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,O=y.BUGGY_SAFARI_ITERATORS,j=m("iterator"),w="keys",E="values",x="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,P){c(r,t,o);var A,$,k,T=function(e){if(e===m&&F)return F;if(!O&&e in I)return I[e];switch(e){case w:case E:case x:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",M=!1,I=e.prototype,R=I[j]||I["@@iterator"]||m&&I[m],F=!O&&R||T(m),D="Array"==t&&I.entries||R;if(D&&(A=l(D.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[j])||f(A,j,S)),p(A,C,!0,!0),i&&(d[C]=S)),g&&m==E&&R&&R.name!==E&&(!i&&v?h(I,"name",E):(M=!0,F=function(){return s(R,this)})),m)if($={values:T(E),keys:y?F:T(w),entries:T(x)},P)for(k in $)(O||M||!(k in I))&&f(I,k,$[k]);else n({target:t,proto:!0,forced:O||M},$);return i&&!P||I[j]===F||f(I,j,F,{name:m}),d[t]=F,$}},5143:(e,t,r)=>{"use strict";var n,s,i,o=r(5981),a=r(7475),c=r(941),l=r(9290),u=r(249),p=r(5929),h=r(9813),f=r(2529),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[m])||p(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2077:e=>{e.exports={}},623:(e,t,r)=>{var n=r(3057);e.exports=function(e){return n(e.length)}},5331:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},9290:(e,t,r)=>{var n,s=r(6059),i=r(9938),o=r(6759),a=r(7748),c=r(5463),l=r(1333),u=r(4262),p="prototype",h="script",f=u("IE_PROTO"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=s(e),r=new m,m[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},9938:(e,t,r)=>{var n=r(5746),s=r(3937),i=r(5988),o=r(6059),a=r(4529),c=r(4771);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),l=s.length,u=0;l>u;)i.f(e,r=s[u++],n[r]);return e}},5988:(e,t,r)=>{var n=r(5746),s=r(2840),i=r(3937),o=r(6059),a=r(3894),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9677:(e,t,r)=>{var n=r(5746),s=r(8834),i=r(6760),o=r(1887),a=r(4529),c=r(3894),l=r(953),u=r(2840),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!s(i.f,e,t),e[t])}},684:(e,t,r)=>{var n=r(2532),s=r(4529),i=r(946).f,o=r(5790),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return o(a)}}(e):i(s(e))}},946:(e,t,r)=>{var n=r(5629),s=r(6759).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7857:(e,t)=>{t.f=Object.getOwnPropertySymbols},249:(e,t,r)=>{var n=r(953),s=r(7475),i=r(9678),o=r(4262),a=r(4160),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},7046:(e,t,r)=>{var n=r(5329);e.exports=n({}.isPrototypeOf)},5629:(e,t,r)=>{var n=r(5329),s=r(953),i=r(4529),o=r(1692).indexOf,a=r(7748),c=n([].push);e.exports=function(e,t){var r,n=i(e),l=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&c(u,r);for(;t.length>l;)s(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},4771:(e,t,r)=>{var n=r(5629),s=r(6759);e.exports=Object.keys||function(e){return n(e,s)}},6760:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},8929:(e,t,r)=>{var n=r(5526),s=r(6059),i=r(1851);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},5623:(e,t,r)=>{"use strict";var n=r(2885),s=r(9697);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9811:(e,t,r)=>{var n=r(8834),s=r(7475),i=r(941),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw o("Can't convert object to primitive value")}},1136:(e,t,r)=>{var n=r(626),s=r(5329),i=r(946),o=r(7857),a=r(6059),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},4058:e=>{e.exports={}},8219:(e,t,r)=>{var n=r(2119),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},904:(e,t,r)=>{var n=r(2885),s=r(5988).f,i=r(2029),o=r(953),a=r(5623),c=r(9813)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;o(u,c)||s(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",a)}}},4262:(e,t,r)=>{var n=r(8726),s=r(9418),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3030:(e,t,r)=>{var n=r(1899),s=r(5609),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8726:(e,t,r)=>{var n=r(2529),s=r(3030);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4620:(e,t,r)=>{var n=r(5329),s=r(2435),i=r(5803),o=r(8219),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,p=i(o(t)),h=s(r),f=p.length;return h<0||h>=f?e?"":void 0:(n=c(p,h))<55296||n>56319||h+1===f||(u=c(p,h+1))<56320||u>57343?e?a(p,h):n:e?l(p,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},3405:(e,t,r)=>{var n=r(3385),s=r(5981),i=r(1899).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9630:(e,t,r)=>{var n=r(8834),s=r(626),i=r(9813),o=r(5929);e.exports=function(){var e=s("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&o(t,a,(function(e){return n(r,this)}),{arity:1})}},4680:(e,t,r)=>{var n=r(3405);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},9413:(e,t,r)=>{var n=r(2435),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4529:(e,t,r)=>{var n=r(7026),s=r(8219);e.exports=function(e){return n(s(e))}},2435:(e,t,r)=>{var n=r(5331);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3057:(e,t,r)=>{var n=r(2435),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},9678:(e,t,r)=>{var n=r(8219),s=Object;e.exports=function(e){return s(n(e))}},6935:(e,t,r)=>{var n=r(8834),s=r(941),i=r(6664),o=r(4229),a=r(9811),c=r(9813),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},3894:(e,t,r)=>{var n=r(6935),s=r(6664);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},2885:(e,t,r)=>{var n={};n[r(9813)("toStringTag")]="z",e.exports="[object z]"===String(n)},5803:(e,t,r)=>{var n=r(9697),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9826:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9418:(e,t,r)=>{var n=r(5329),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},2302:(e,t,r)=>{var n=r(3405);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:(e,t,r)=>{var n=r(5746),s=r(5981);e.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7093:(e,t,r)=>{var n=r(1899),s=r(7475),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},3464:(e,t,r)=>{var n=r(4058),s=r(953),i=r(1477),o=r(5988).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});s(t,e)||o(t,e,{value:i.f(e)})}},1477:(e,t,r)=>{var n=r(9813);t.f=n},9813:(e,t,r)=>{var n=r(1899),s=r(8726),i=r(953),o=r(9418),a=r(3405),c=r(2302),l=n.Symbol,u=s("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},5906:(e,t,r)=>{"use strict";var n=r(6887),s=r(5981),i=r(1052),o=r(941),a=r(9678),c=r(623),l=r(6796),u=r(5449),p=r(4692),h=r(568),f=r(9813),m=r(3385),d=f("isConcatSpreadable"),y=m>=51||!s((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),g=function(e){if(!o(e))return!1;var t=e[d];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!h("concat")},{concat:function(e){var t,r,n,s,i,o=a(this),h=p(o,0),f=0;for(t=-1,n=arguments.length;t<n;t++)if(g(i=-1===t?o:arguments[t]))for(s=c(i),l(f+s),r=0;r<s;r++,f++)r in i&&u(h,f,i[r]);else l(f+1),u(h,f++,i);return h.length=f,h}})},1501:(e,t,r)=>{"use strict";var n=r(6887),s=r(3610).filter;n({target:"Array",proto:!0,forced:!r(568)("filter")},{filter:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},2437:(e,t,r)=>{"use strict";var n=r(6887),s=r(6837);n({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},9076:(e,t,r)=>{"use strict";var n=r(6887),s=r(7484),i=r(1692).indexOf,o=r(4194),a=s([].indexOf),c=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:c||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?a(this,e,t)||0:i(this,e,t)}})},6274:(e,t,r)=>{"use strict";var n=r(4529),s=r(8479),i=r(2077),o=r(5402),a=r(5988).f,c=r(5105),l=r(3538),u=r(2529),p=r(5746),h="Array Iterator",f=o.set,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,l(void 0,!0)):l("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},8528:(e,t,r)=>{"use strict";var n=r(6887),s=r(9678),i=r(623),o=r(9779),a=r(6796);n({target:"Array",proto:!0,arity:1,forced:r(5981)((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=s(this),r=i(t),n=arguments.length;a(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return o(t,r),r}})},8084:()=>{},2619:(e,t,r)=>{var n=r(6887),s=r(626),i=r(9730),o=r(8834),a=r(5329),c=r(5981),l=r(7475),u=r(6664),p=r(3765),h=r(3323),f=r(3405),m=String,d=s("JSON","stringify"),y=a(/./.exec),g=a("".charAt),v=a("".charCodeAt),b=a("".replace),O=a(1..toString),j=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,x=!f||c((function(){var e=s("Symbol")();return"[null]"!=d([e])||"{}"!=d({a:e})||"{}"!=d(Object(e))})),S=c((function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")})),P=function(e,t){var r=p(arguments),n=h(t);if(l(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(l(n)&&(t=o(n,this,m(e),t)),!u(t))return t},i(d,null,r)},A=function(e,t,r){var n=g(r,t-1),s=g(r,t+1);return y(w,e)&&!y(E,s)||y(E,e)&&!y(w,n)?"\\u"+O(v(e,0),16):e};d&&n({target:"JSON",stat:!0,arity:3,forced:x||S},{stringify:function(e,t,r){var n=p(arguments),s=i(x?P:d,null,n);return S&&"string"==typeof s?b(s,j,A):s}})},9120:(e,t,r)=>{var n=r(1899);r(904)(n.JSON,"JSON",!0)},5327:()=>{},4979:(e,t,r)=>{var n=r(6887),s=r(5746),i=r(9938).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!s},{defineProperties:i})},6450:(e,t,r)=>{var n=r(6887),s=r(5746),i=r(5988).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!s},{defineProperty:i})},6924:(e,t,r)=>{var n=r(6887),s=r(5981),i=r(4529),o=r(9677).f,a=r(5746);n({target:"Object",stat:!0,forced:!a||s((function(){o(1)})),sham:!a},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},8482:(e,t,r)=>{var n=r(6887),s=r(5746),i=r(1136),o=r(4529),a=r(9677),c=r(5449);n({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),s=a.f,l=i(n),u={},p=0;l.length>p;)void 0!==(r=s(n,t=l[p++]))&&c(u,t,r);return u}})},7144:(e,t,r)=>{var n=r(6887),s=r(3405),i=r(5981),o=r(7857),a=r(9678);n({target:"Object",stat:!0,forced:!s||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})},1724:(e,t,r)=>{var n=r(6887),s=r(9678),i=r(4771);n({target:"Object",stat:!0,forced:r(5981)((function(){i(1)}))},{keys:function(e){return i(s(e))}})},5967:()=>{},1502:()=>{},7971:(e,t,r)=>{"use strict";var n=r(4620).charAt,s=r(5803),i=r(5402),o=r(5105),a=r(3538),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},8555:(e,t,r)=>{r(3464)("asyncIterator")},8616:(e,t,r)=>{"use strict";var n=r(6887),s=r(1899),i=r(8834),o=r(5329),a=r(2529),c=r(5746),l=r(3405),u=r(5981),p=r(953),h=r(7046),f=r(6059),m=r(4529),d=r(3894),y=r(5803),g=r(1887),v=r(9290),b=r(4771),O=r(946),j=r(684),w=r(7857),E=r(9677),x=r(5988),S=r(9938),P=r(6760),A=r(5929),$=r(9202),k=r(8726),T=r(4262),C=r(7748),M=r(9418),I=r(9813),R=r(1477),F=r(3464),D=r(9630),N=r(904),_=r(5402),q=r(3610).forEach,L=T("hidden"),V="Symbol",B="prototype",U=_.set,z=_.getterFor(V),H=Object[B],J=s.Symbol,G=J&&J[B],W=s.TypeError,K=s.QObject,Y=E.f,X=x.f,Q=j.f,Z=P.f,ee=o([].push),te=k("symbols"),re=k("op-symbols"),ne=k("wks"),se=!K||!K[B]||!K[B].findChild,ie=c&&u((function(){return 7!=v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Y(H,t);n&&delete H[t],X(e,t,r),n&&e!==H&&X(H,t,n)}:X,oe=function(e,t){var r=te[e]=v(G);return U(r,{type:V,tag:e,description:t}),c||(r.description=t),r},ae=function(e,t,r){e===H&&ae(re,t,r),f(e);var n=d(t);return f(r),p(te,n)?(r.enumerable?(p(e,L)&&e[L][n]&&(e[L][n]=!1),r=v(r,{enumerable:g(0,!1)})):(p(e,L)||X(e,L,g(1,{})),e[L][n]=!0),ie(e,n,r)):X(e,n,r)},ce=function(e,t){f(e);var r=m(t),n=b(r).concat(he(r));return q(n,(function(t){c&&!i(le,r,t)||ae(e,t,r[t])})),e},le=function(e){var t=d(e),r=i(Z,this,t);return!(this===H&&p(te,t)&&!p(re,t))&&(!(r||!p(this,t)||!p(te,t)||p(this,L)&&this[L][t])||r)},ue=function(e,t){var r=m(e),n=d(t);if(r!==H||!p(te,n)||p(re,n)){var s=Y(r,n);return!s||!p(te,n)||p(r,L)&&r[L][n]||(s.enumerable=!0),s}},pe=function(e){var t=Q(m(e)),r=[];return q(t,(function(e){p(te,e)||p(C,e)||ee(r,e)})),r},he=function(e){var t=e===H,r=Q(t?re:m(e)),n=[];return q(r,(function(e){!p(te,e)||t&&!p(H,e)||ee(n,te[e])})),n};l||(A(G=(J=function(){if(h(G,this))throw W("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=M(e),r=function(e){this===H&&i(r,re,e),p(this,L)&&p(this[L],t)&&(this[L][t]=!1),ie(this,t,g(1,e))};return c&&se&&ie(H,t,{configurable:!0,set:r}),oe(t,e)})[B],"toString",(function(){return z(this).tag})),A(J,"withoutSetter",(function(e){return oe(M(e),e)})),P.f=le,x.f=ae,S.f=ce,E.f=ue,O.f=j.f=pe,w.f=he,R.f=function(e){return oe(I(e),e)},c&&($(G,"description",{configurable:!0,get:function(){return z(this).description}}),a||A(H,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:J}),q(b(ne),(function(e){F(e)})),n({target:V,stat:!0,forced:!l},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(e,t){return void 0===t?v(e):ce(v(e),t)},defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),D(),N(J,V),C[L]=!0},2615:()=>{},4523:(e,t,r)=>{var n=r(6887),s=r(626),i=r(953),o=r(5803),a=r(8726),c=r(4680),l=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(i(l,t))return l[t];var r=s("Symbol")(t);return l[t]=r,u[r]=t,r}})},1732:(e,t,r)=>{r(3464)("hasInstance")},5903:(e,t,r)=>{r(3464)("isConcatSpreadable")},1825:(e,t,r)=>{r(3464)("iterator")},5824:(e,t,r)=>{r(8616),r(4523),r(8608),r(2619),r(7144)},8608:(e,t,r)=>{var n=r(6887),s=r(953),i=r(6664),o=r(9826),a=r(8726),c=r(4680),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(s(l,e))return l[e]}})},5915:(e,t,r)=>{r(3464)("matchAll")},8394:(e,t,r)=>{r(3464)("match")},1766:(e,t,r)=>{r(3464)("replace")},2737:(e,t,r)=>{r(3464)("search")},9911:(e,t,r)=>{r(3464)("species")},4315:(e,t,r)=>{r(3464)("split")},3131:(e,t,r)=>{var n=r(3464),s=r(9630);n("toPrimitive"),s()},4714:(e,t,r)=>{var n=r(626),s=r(3464),i=r(904);s("toStringTag"),i(n("Symbol"),"Symbol")},659:(e,t,r)=>{r(3464)("unscopables")},8783:(e,t,r)=>{r(3464)("asyncDispose")},3975:(e,t,r)=>{r(3464)("dispose")},2731:(e,t,r)=>{var n=r(6887),s=r(626),i=r(5329),o=s("Symbol"),a=o.keyFor,c=i(o.prototype.valueOf);n({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==a(c(e))}catch(e){return!1}}})},5605:(e,t,r)=>{for(var n=r(6887),s=r(8726),i=r(626),o=r(5329),a=r(6664),c=r(9813),l=i("Symbol"),u=l.isWellKnown,p=i("Object","getOwnPropertyNames"),h=o(l.prototype.valueOf),f=s("wks"),m=0,d=p(l),y=d.length;m<y;m++)try{var g=d[m];a(l[g])&&c(g)}catch(e){}n({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(u&&u(e))return!0;try{for(var t=h(e),r=0,n=p(f),s=n.length;r<s;r++)if(f[n[r]]==t)return!0}catch(e){}return!1}})},5799:(e,t,r)=>{r(3464)("matcher")},1943:(e,t,r)=>{r(3464)("metadataKey")},5414:(e,t,r)=>{r(3464)("metadata")},6774:(e,t,r)=>{r(3464)("observable")},620:(e,t,r)=>{r(3464)("patternMatch")},6172:(e,t,r)=>{r(3464)("replaceAll")},7634:(e,t,r)=>{r(6274);var n=r(3281),s=r(1899),i=r(9697),o=r(2029),a=r(2077),c=r(9813)("toStringTag");for(var l in n){var u=s[l],p=u&&u.prototype;p&&i(p)!==c&&o(p,c,l),a[l]=a.Array}},9216:(e,t,r)=>{var n=r(9324);e.exports=n},1955:(e,t,r)=>{var n=r(2480);e.exports=n},6279:(e,t,r)=>{r(7634);var n=r(9697),s=r(953),i=r(7046),o=r(9216),a=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===a||i(a,e)&&t===a.forEach||s(c,n(e))?o:t}},9373:(e,t,r)=>{var n=r(4570);e.exports=n},2759:(e,t,r)=>{var n=r(3993);e.exports=n},7396:(e,t,r)=>{var n=r(7702);e.exports=n},1910:(e,t,r)=>{var n=r(8171);e.exports=n},9427:(e,t,r)=>{var n=r(286);e.exports=n},2857:(e,t,r)=>{var n=r(2766);e.exports=n},9534:(e,t,r)=>{var n=r(498);e.exports=n},3059:(e,t,r)=>{var n=r(8494);e.exports=n},2547:(e,t,r)=>{var n=r(7473);r(7634),e.exports=n},6509:(e,t,r)=>{var n=r(4227);r(7634),e.exports=n},5774:(e,t,r)=>{var n=r(2978);e.exports=n},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function s(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(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 o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var s={};return r.isMergeableObject(e)&&i(e).forEach((function(t){s[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?s[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):s[i]=n(t[i],r))})),s}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||s,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):n(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},7648:e=>{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var s,i=t.call(arguments,1),o=Math.max(0,n.length-i.length),a=[],c=0;c<o;c++)a.push("$"+c);if(s=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var r=n.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,i.concat(t.call(arguments)))})),n.prototype){var l=function(){};l.prototype=n.prototype,s.prototype=new l,l.prototype=null}return s}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,s=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=r(1405)(),h=r(8185)(),f=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),m={},d="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&f&&(r=f(s.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(8612),j=r(7642),w=O.call(Function.call,Array.prototype.concat),E=O.call(Function.apply,Array.prototype.splice),x=O.call(Function.call,String.prototype.replace),S=O.call(Function.call,String.prototype.slice),P=O.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,k=function(e,t){var r,n=e;if(j(b,n)&&(n="%"+(r=b[n])[0]+"%"),j(y,n)){var i=y[n];if(i===m&&(i=v(n)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,A,(function(e,t,r,s){n[n.length]=r?x(s,$,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=k("%"+n+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(n=p[0],E(r,w([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var m=r[h],d=S(m,0,1),g=S(m,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),j(y,a="%"+(n+="."+m)+"%"))l=y[a];else if(null!=l){if(!(m in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var v=c(l,m);l=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[m]}else f=j(l,m),l=l[m];f&&!u&&(y[a]=l)}}return l}},8185:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},8668:(e,t,r)=>{var n=r(1469);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return n(e)?e:[e]}},6384:(e,t,r)=>{var n=r(7040),s=r(4125),i=r(2117),o=r(7518),a=r(4705);function c(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])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2908:e=>{e.exports=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}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7786:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},4239:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2118:e=>{e.exports=function(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}},939:(e,t,r)=>{var n=r(2492),s=r(7005);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},2492:(e,t,r)=>{var n=r(6384),s=r(7114),i=r(8351),o=r(6096),a=r(8882),c=r(1469),l=r(4144),u=r(6719),p="[object Arguments]",h="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,g){var v=c(e),b=c(t),O=v?h:a(e),j=b?h:a(t),w=(O=O==p?f:O)==f,E=(j=j==p?f:j)==f,x=O==j;if(x&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(x&&!w)return g||(g=new n),v||u(e)?s(e,t,r,d,y,g):i(e,t,O,r,d,y,g);if(!(1&r)){var S=w&&m.call(e,"__wrapped__"),P=E&&m.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new n),y(A,$,r,d,g)}}return!!x&&(g||(g=new n),o(e,t,r,d,y,g))}},4757:(e,t,r)=>{var n=r(2118);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},7114:(e,t,r)=>{var n=r(8668),s=r(2908),i=r(4757);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),f=c.get(t);if(h&&f)return h==t&&f==e;var m=-1,d=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8351:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6096:(e,t,r)=>{var n=r(8234),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:s.call(t,h)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var O=e.constructor,j=t.constructor;O==j||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof j&&j instanceof j||(d=!1)}return a.delete(e),a.delete(t),d}},8234:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},8882:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var s=null==e?void 0:n(e,t);return void 0===s?r:s}},1469:e=>{var t=Array.isArray;e.exports=t},1584:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},4144:e=>{e.exports=function(){return!1}},8446:(e,t,r)=>{var n=r(939);e.exports=function(e,t){return n(e,t)}},5220:e=>{e.exports=function(e){return null===e}},1763:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7037:(e,t,r)=>{var n=r(4239),s=r(1469),i=r(7005);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},6719:e=>{e.exports=function(){return!1}},4885:e=>{e.exports=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)}}},2566:(e,t,r)=>{const n=r(4885);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{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(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(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&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},7645:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},8520:(e,t,r)=>{const n=r(5220),s=r(7037),i=r(1763),o=r(1584),a=r(3218),c=r(9750),l=r(9829);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.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",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(s,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.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 c(this)}}c.prototype.Namespace=u,e.exports=u},7526:(e,t,r)=>{const n=r(4885),s=r(2566);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(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()))}}e.exports=i},9829:(e,t,r)=>{const n=r(3079),s=r(6295),i=r(6036),o=r(1090),a=r(8866),c=r(5804),l=r(5946),u=r(6735),p=r(9964),h=r(8588),f=r(2566),m=r(7526),d=r(7645);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=h,n.prototype.MemberElement=l,n.prototype.refract=y,f.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:f,ObjectSlice:m,KeyValuePair:d}},9964:(e,t,r)=>{const n=r(3079);e.exports=class extends n{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)}}},8588:(e,t,r)=>{const n=r(3079);e.exports=class extends n{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)}}},3500:(e,t,r)=>{const n=r(8520),s=r(9829);t.lS=n,r(7645),t.O4=s.ArraySlice,s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,r(9750),r(3414)},5804:(e,t,r)=>{const n=r(4885),s=r(3079),i=r(2566);class o extends s{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 i(this.content.filter(e,t))}reject(e,t){return this.filter(n(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 i(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)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},8866:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},3079:(e,t,r)=>{const n=r(8446),s=r(7645),i=r(2566);class o{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 o?this.content.toValue():this.content instanceof s?{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 i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,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 n(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(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}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 i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},5946:(e,t,r)=>{const n=r(7645),s=r(3079);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),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)}}},6295:(e,t,r)=>{const n=r(3079);e.exports=class extends n{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")}}},1090:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},6735:(e,t,r)=>{const n=r(4885),s=r(3218),i=r(5804),o=r(5946),a=r(7526);e.exports=class extends i{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(s(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 o(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 a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},6036:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3414:(e,t,r)=>{const n=r(9750);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}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}return e&&e.map?e.map(this.serialise,this):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}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},9750:e=>{e.exports=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]))}))}}},631:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&s&&"function"==typeof s.get?s.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,d=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,O=String.prototype.toUpperCase,j=String.prototype.toLowerCase,w=RegExp.prototype.test,E=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e){var s=String(n),i=v.call(t,s.length+1);return b.call(s,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var F=r(4654),D=F.custom,N=B(D)?D:null;function _(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return b.call(String(e),/"/g,""")}function L(e){return!("[object Array]"!==H(e)||C&&"object"==typeof e&&C in e)}function V(e){return!("[object RegExp]"!==H(e)||C&&"object"==typeof e&&C in e)}function B(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,s){var a=r||{};if(z(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!z(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var O=String(t);return d?R(t,O):O}if("bigint"==typeof t){var w=String(t)+"n";return d?R(t,w):w}var P=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var $=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(a,n);if(void 0===s)s=[];else if(J(s,t)>=0)return"[Circular]";function D(t,r,i){if(r&&(s=S.call(s)).push(r),i){var o={depth:a.depth};return z(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,n+1,s)}return e(t,a,n+1,s)}if("function"==typeof t&&!V(t)){var U=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),W=Z(t,D);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(W.length>0?" { "+x.call(W,", ")+" }":"")}if(B(t)){var ee=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||T?ee:K(ee)}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 te="<"+j.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+_(q(re[ne].value),"double",a);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+j.call(String(t.nodeName))+">"}if(L(t)){if(0===t.length)return"[]";var se=Z(t,D);return $&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,$)+"]":"[ "+x.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)){var ie=Z(t,D);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(ie,", ")+" }":"{ ["+String(t)+"] "+x.call(E.call("[cause]: "+D(t.cause),ie),", ")+" }"}if("object"==typeof t&&c){if(N&&"function"==typeof t[N]&&F)return F(t,{depth:P-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var oe=[];return o&&o.call(t,(function(e,r){oe.push(D(r,t,!0)+" => "+D(e,t))})),X("Map",i.call(t),oe,$)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return u&&u.call(t,(function(e){ae.push(D(e,t))})),X("Set",l.call(t),ae,$)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(D(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return K(D(A.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(m.call(t));if(function(e){return!("[object String]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(D(String(t)));if(!function(e){return!("[object Date]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)&&!V(t)){var ce=Z(t,D),le=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!le&&C&&Object(t)===t&&C in t?v.call(H(t),8,-1):ue?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+x.call(E.call([],pe||[],ue||[]),": ")+"] ":"");return 0===ce.length?he+"{}":$?he+"{"+Q(ce,$)+"}":he+"{ "+x.call(ce,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return U.call(e,t)}function H(e){return d.call(e)}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return _(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+O.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):x.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=L(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=z(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(T){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||T&&i["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof $)for(var l=0;l<o.length;l++)M.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}},4155:e=>{var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=o(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}n.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];c.push(new f(e,t)),1!==c.length||l||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:s}},129:(e,t,r)=>{"use strict";var n=r(8261),s=r(5235),i=r(5798);e.exports={formats:i,parse:s,stringify:n}},5235:(e,t,r)=>{"use strict";var n=r(2769),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,u=[];if(l){if(!r.plainObjects&&s.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var p=0;r.depth>0&&null!==(a=o.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:c(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=s:"__proto__"!==l&&(o[l]=s):o={0:s}}s=o}return s}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;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?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,p),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?m="utf-8":"utf8=%26%2310003%3B"===h[r]&&(m="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var d,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(d=t.decoder(g,o.decoder,m,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(g.slice(0,b),o.decoder,m,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(l,d)?l[d]=n.combine(l[d],y):l[d]=y}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var m=h[f],d=l(m,u[m],r,"string"==typeof e);p=n.merge(p,d,r)}return!0===r.allowSparse?p:n.compact(p)}},8261:(e,t,r)=>{"use strict";var n=r(7478),s=r(2769),i=r(5798),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,h=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},m={},d=function e(t,r,i,o,a,l,p,h,d,y,g,v,b,O,j,w){for(var E,x=t,S=w,P=0,A=!1;void 0!==(S=S.get(m))&&!A;){var $=S.get(t);if(P+=1,void 0!==$){if($===P)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(m)&&(P=0)}if("function"==typeof h?x=h(r,x):x instanceof Date?x=g(x):"comma"===i&&c(x)&&(x=s.maybeMap(x,(function(e){return e instanceof Date?g(e):e}))),null===x){if(a)return p&&!O?p(r,f.encoder,j,"key",v):r;x=""}if("string"==typeof(E=x)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||s.isBuffer(x))return p?[b(O?r:p(r,f.encoder,j,"key",v))+"="+b(p(x,f.encoder,j,"value",v))]:[b(r)+"="+b(String(x))];var k,T=[];if(void 0===x)return T;if("comma"===i&&c(x))O&&p&&(x=s.maybeMap(x,p)),k=[{value:x.length>0?x.join(",")||null:void 0}];else if(c(h))k=h;else{var C=Object.keys(x);k=d?C.sort(d):C}for(var M=o&&c(x)&&1===x.length?r+"[]":r,I=0;I<k.length;++I){var R=k[I],F="object"==typeof R&&void 0!==R.value?R.value:x[R];if(!l||null!==F){var D=c(x)?"function"==typeof i?i(M,R):M:M+(y?"."+R:"["+R+"]");w.set(t,P);var N=n();N.set(m,w),u(T,e(F,D,i,o,a,l,"comma"===i&&O&&c(x)?null:p,h,d,y,g,v,b,O,j,N))}}return T};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;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||f.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 r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=f.filter;return("function"==typeof e.filter||c(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?s=(0,l.filter)("",s):c(l.filter)&&(r=l.filter);var p,h=[];if("object"!=typeof s||null===s)return"";p=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===m&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var g=n(),v=0;v<r.length;++v){var b=r[v];l.skipNulls&&null===s[b]||u(h,d(s[b],b,m,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var O=h.join(l.delimiter),j=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),O.length>0?j+O:""}},2769:(e,t,r)=>{"use strict";var n=r(5798),s=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],u=o[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},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(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},7478:(e,t,r)=>{"use strict";var n=r(210),s=r(1924),i=r(631),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=s("WeakMap.prototype.get",!0),u=s("WeakMap.prototype.set",!0),p=s("WeakMap.prototype.has",!0),h=s("Map.prototype.get",!0),f=s("Map.prototype.set",!0),m=s("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){var r=d(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return m(t,n)}else if(r)return function(e,t){return!!d(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,s)):c?(t||(t=new c),f(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},3992:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",f="deepConfiguration",m="deepProps",d="deepStatics",y="deepConf",g="initializers",v="methods",b="composers",O="compose";function j(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 E=w.bind(0,(function(e,t){if(t)for(var r=j(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function x(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||x(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var A=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!P(n))return n;for(var s,i,o=j(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(P(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function $(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return x(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function n(r,n){S(t[r])&&(S(e[r])||(e[r]={}),(n||E)(e[r],t[r]))}function s(n){(r=$(e[n],t[n]))&&(e[n]=r)}return t&&S(t=t[O]||t)&&(n(v),n(o),n(a,A),n(c),n(l),n(u,A),n(p),n(h),n(f,A),s(g),s(b)),e}function T(){return function(e){return r=function e(r){var n,s,i=e[O]||{},l={__proto__:i[v]},u=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&A(l,h),(h=i[o])&&E(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)x(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&A(r,n),(n=e[l])&&E(r,n),(n=e[p])&&Object.defineProperties(r,n),n=x(r[O])?r[O]:T,E(r[O]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function C(e){return x(e)&&x(e[O])}var M={};function I(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[O]||n).call(r,s)}}M[v]=I(v,E),M[o]=M.props=I(o,E),M[g]=M.init=I(g,$),M[b]=I(b,$),M[a]=M[m]=I(a,A),M[l]=M.statics=I(l,E),M[u]=M[d]=I(u,A),M[h]=M.conf=I(h,E),M[f]=M[y]=I(f,A),M[c]=I(c,E),M[p]=I(p,E),n=M[O]=E((function(){for(var e,j,w=0,x=[],P=arguments,k=this;w<P.length;)S(e=P[w++])&&x.push(C(e)?e:((s={})[v]=(j=e)[v]||t,n=j.props,s[o]=S((r=j[o])||n)?E({},n,r):t,s[g]=$(j.init,j[g]),s[b]=$(j[b]),n=j[m],s[a]=S((r=j[a])||n)?A({},n,r):t,s[c]=j[c],n=j.statics,s[l]=S((r=j[l])||n)?E({},n,r):t,n=j[d],s[u]=S((r=j[u])||n)?A({},n,r):t,r=j[p],s[p]=S((n=j.name&&{name:{value:j.name}})||r)?E({},r,n):t,n=j.conf,s[h]=S((r=j[h])||n)?E({},n,r):t,n=j[y],s[f]=S((r=j[f])||n)?A({},n,r):t,s));if(e=T.apply(k||i,x),k&&x.unshift(k),Array.isArray(P=e[O][b]))for(w=0;w<P.length;)e=C(k=P[w++]({stamp:e,composables:x}))?k:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[l]=M,i=T(s),n[O]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},3692:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)}var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=Object.prototype.hasOwnProperty||function(e,t){return t in e};function o(e){if("object"==typeof e&&null!==e){var i;if(r(e))i=[];else if("[object Date]"===t(e))i=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))i=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))i={message:e.message};else if(function(e){return"[object Boolean]"===t(e)}(e)||function(e){return"[object Number]"===t(e)}(e)||function(e){return"[object String]"===t(e)}(e))i=Object(e);else if(Object.create&&Object.getPrototypeOf)i=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)i={};else{var o=e.constructor&&e.constructor.prototype||e.__proto__||{},a=function(){};a.prototype=o,i=new a}return n(s(e),(function(t){i[t]=e[t]})),i}return e}function a(e,t,a){var c=[],l=[],u=!0;return function e(p){var h=a?o(p):p,f={},m=!0,d={node:h,node_:p,path:[].concat(c),parent:l[l.length-1],parents:l,key:c[c.length-1],isRoot:0===c.length,level:c.length,circular:null,update:function(e,t){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(m=!1)},delete:function(e){delete d.parent.node[d.key],e&&(m=!1)},remove:function(e){r(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(m=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return d;function y(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=s(d.node)),d.isLeaf=0===d.keys.length;for(var e=0;e<l.length;e++)if(l[e].node_===p){d.circular=l[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}y();var g=t.call(d,d.node);return void 0!==g&&d.update&&d.update(g),f.before&&f.before.call(d,d.node),m?("object"!=typeof d.node||null===d.node||d.circular||(l.push(d),y(),n(d.keys,(function(t,r){c.push(t),f.pre&&f.pre.call(d,d.node[t],t);var n=e(d.node[t]);a&&i.call(d.node,t)&&(d.node[t]=n.node),n.isLast=r===d.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(d,n),c.pop()})),l.pop()),f.after&&f.after.call(d,d.node),d):d}(e).node}function c(e){this.value=e}function l(e){return new c(e)}c.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return;t=t[n]}return t},c.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return!1;t=t[n]}return!0},c.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var s=e[n];i.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t},c.prototype.map=function(e){return a(this.value,e,!0)},c.prototype.forEach=function(e){return this.value=a(this.value,e,!1),this.value},c.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},c.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},c.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},c.prototype.clone=function(){var e=[],t=[];return function r(i){for(var a=0;a<e.length;a++)if(e[a]===i)return t[a];if("object"==typeof i&&null!==i){var c=o(i);return e.push(i),t.push(c),n(s(i),(function(e){c[e]=r(i[e])})),e.pop(),t.pop(),c}return i}(this.value)},n(s(c.prototype),(function(e){l[e]=function(t){var r=[].slice.call(arguments,1),n=new c(t);return n[e].apply(n,r)}})),e.exports=l},2511:function(e,t,r){var n;e=r.nmd(e),function(s){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,c=36,l=1,u=26,p=38,h=700,f=72,m=128,d="-",y=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=c-l,j=Math.floor,w=String.fromCharCode;function E(e){throw new RangeError(b[e])}function x(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function S(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+x((e=e.replace(v,".")).split("."),t).join(".")}function P(e){for(var t,r,n=[],s=0,i=e.length;s<i;)(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<i?56320==(64512&(r=e.charCodeAt(s++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),s--):n.push(t);return n}function A(e){return x(e,(function(e){var t="";return e>65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)})).join("")}function $(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function k(e,t,r){var n=0;for(e=r?j(e/h):e>>1,e+=j(e/t);e>O*u>>1;n+=c)e=j(e/O);return j(n+(O+1)*e/(e+p))}function T(e){var t,r,n,s,i,o,p,h,y,g,v,b=[],O=e.length,w=0,x=m,S=f;for((r=e.lastIndexOf(d))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&E("not-basic"),b.push(e.charCodeAt(n));for(s=r>0?r+1:0;s<O;){for(i=w,o=1,p=c;s>=O&&E("invalid-input"),((h=(v=e.charCodeAt(s++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c)>=c||h>j((a-w)/o))&&E("overflow"),w+=h*o,!(h<(y=p<=S?l:p>=S+u?u:p-S));p+=c)o>j(a/(g=c-y))&&E("overflow"),o*=g;S=k(w-i,t=b.length+1,0==i),j(w/t)>a-x&&E("overflow"),x+=j(w/t),w%=t,b.splice(w++,0,x)}return A(b)}function C(e){var t,r,n,s,i,o,p,h,y,g,v,b,O,x,S,A=[];for(b=(e=P(e)).length,t=m,r=0,i=f,o=0;o<b;++o)(v=e[o])<128&&A.push(w(v));for(n=s=A.length,s&&A.push(d);n<b;){for(p=a,o=0;o<b;++o)(v=e[o])>=t&&v<p&&(p=v);for(p-t>j((a-r)/(O=n+1))&&E("overflow"),r+=(p-t)*O,t=p,o=0;o<b;++o)if((v=e[o])<t&&++r>a&&E("overflow"),v==t){for(h=r,y=c;!(h<(g=y<=i?l:y>=i+u?u:y-i));y+=c)S=h-g,x=c-g,A.push(w($(g+S%x,0))),h=j(S/x);A.push(w($(h,0))),i=k(r,O,n==s),r=0,++n}++r,++t}return A.join("")}o={version:"1.4.1",ucs2:{decode:P,encode:A},decode:T,encode:C,toASCII:function(e){return S(e,(function(e){return g.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return S(e,(function(e){return y.test(e)?T(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511);function s(){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}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),u=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(129);function v(e,t,r){if(e&&"object"==typeof e&&e instanceof s)return e;var n=new s;return n.parse(e,t,r),n}s.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),o=-1!==s&&s<e.indexOf("#")?"?":"#",c=e.split(o);c[0]=c[0].replace(/\\/g,"/");var v=e=c.join(o);if(v=v.trim(),!r&&1===e.split("#").length){var b=a.exec(v);if(b)return this.path=v,this.href=v,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var O=i.exec(v);if(O){var j=(O=O[0]).toLowerCase();this.protocol=j,v=v.substr(O.length)}if(r||O||v.match(/^\/\/[^@/]+@[^@/]+/)){var w="//"===v.substr(0,2);!w||O&&d[O]||(v=v.substr(2),this.slashes=!0)}if(!d[O]&&(w||O&&!y[O])){for(var E,x,S=-1,P=0;P<p.length;P++){-1!==(A=v.indexOf(p[P]))&&(-1===S||A<S)&&(S=A)}-1!==(x=-1===S?v.lastIndexOf("@"):v.lastIndexOf("@",S))&&(E=v.slice(0,x),v=v.slice(x+1),this.auth=decodeURIComponent(E)),S=-1;for(P=0;P<u.length;P++){var A;-1!==(A=v.indexOf(u[P]))&&(-1===S||A<S)&&(S=A)}-1===S&&(S=v.length),this.host=v.slice(0,S),v=v.slice(S),this.parseHost(),this.hostname=this.hostname||"";var $="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!$)for(var k=this.hostname.split(/\./),T=(P=0,k.length);P<T;P++){var C=k[P];if(C&&!C.match(h)){for(var M="",I=0,R=C.length;I<R;I++)C.charCodeAt(I)>127?M+="x":M+=C[I];if(!M.match(h)){var F=k.slice(0,P),D=k.slice(P+1),N=C.match(f);N&&(F.push(N[1]),D.unshift(N[2])),D.length&&(v="/"+D.join(".")+v),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=n.toASCII(this.hostname));var _=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+_,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!m[j])for(P=0,T=l.length;P<T;P++){var L=l[P];if(-1!==v.indexOf(L)){var V=encodeURIComponent(L);V===L&&(V=escape(L)),v=v.split(L).join(V)}}var B=v.indexOf("#");-1!==B&&(this.hash=v.substr(B),v=v.slice(0,B));var U=v.indexOf("?");if(-1!==U?(this.search=v.substr(U),this.query=v.substr(U+1),t&&(this.query=g.parse(this.query)),v=v.slice(0,U)):t&&(this.search="",this.query={}),v&&(this.pathname=v),y[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){_=this.pathname||"";var z=this.search||"";this.path=_+z}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,i="";this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),t+s+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(o=o.replace("#","%23"))+n},s.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if("string"==typeof e){var t=new s;t.parse(e,!1,!0),e=t}for(var r=new s,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),c=0;c<a.length;c++){var l=a[c];"protocol"!==l&&(r[l]=e[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var h=u[p];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||d[e.protocol])r.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),r.pathname=f.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",g=r.search||"";r.path=m+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),O=b||v||r.host&&e.pathname,j=O,w=r.pathname&&r.pathname.split("/")||[],E=(f=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),O=O&&(""===f[0]||""===w[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=f;else if(f.length)w||(w=[]),w.pop(),w=w.concat(f),r.search=e.search,r.query=e.query;else if(null!=e.search){if(E)r.host=w.shift(),r.hostname=r.host,($=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=$.shift(),r.hostname=$.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=w.slice(-1)[0],S=(r.host||e.host||w.length>1)&&("."===x||".."===x)||""===x,P=0,A=w.length;A>=0;A--)"."===(x=w[A])?w.splice(A,1):".."===x?(w.splice(A,1),P++):P&&(w.splice(A,1),P--);if(!O&&!j)for(;P--;P)w.unshift("..");!O||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var $,k=""===w[0]||w[0]&&"/"===w[0].charAt(0);E&&(r.hostname=k?"":w.length?w.shift():"",r.host=r.hostname,($=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=$.shift(),r.hostname=$.shift(),r.host=r.hostname));return(O=O||r.host&&w.length)&&!k&&w.unshift(""),w.length>0?r.pathname=w.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=v(e)),e instanceof s?e.format():s.prototype.format.call(e)},t.Url=s},4654:()=>{}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d(n,{default:()=>aS});var e={};r.r(e),r.d(e,{JsonPatchError:()=>dn,_areEquals:()=>Sn,applyOperation:()=>On,applyPatch:()=>jn,applyReducer:()=>wn,deepClone:()=>yn,getValueByPointer:()=>bn,validate:()=>xn,validator:()=>En});var t={};r.r(t),r.d(t,{compare:()=>In,generate:()=>Cn,observe:()=>Tn,unobserve:()=>kn});var s={};r.r(s),r.d(s,{hasElementSourceMap:()=>zc,includesClasses:()=>Jc,includesSymbols:()=>Hc,isAnnotationElement:()=>qc,isArrayElement:()=>Fc,isBooleanElement:()=>Ic,isCommentElement:()=>Lc,isElement:()=>kc,isLinkElement:()=>Nc,isMemberElement:()=>Dc,isNullElement:()=>Mc,isNumberElement:()=>Cc,isObjectElement:()=>Rc,isParseResultElement:()=>Vc,isPrimitiveElement:()=>Uc,isRefElement:()=>_c,isSourceMapElement:()=>Bc,isStringElement:()=>Tc});var i={};r.r(i),r.d(i,{isJSONReferenceElement:()=>wh,isJSONSchemaElement:()=>jh,isLinkDescriptionElement:()=>xh,isMediaElement:()=>Eh});var o={};r.r(o),r.d(o,{isOpenApi3_0LikeElement:()=>Zh,isOpenApiExtension:()=>af,isParameterLikeElement:()=>ef,isReferenceLikeElement:()=>tf,isRequestBodyLikeElement:()=>rf,isResponseLikeElement:()=>nf,isServerLikeElement:()=>sf,isTagLikeElement:()=>of});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>jm,isCallbackElement:()=>Qf,isComponentsElement:()=>Zf,isContactElement:()=>em,isExampleElement:()=>tm,isExternalDocumentationElement:()=>rm,isHeaderElement:()=>nm,isInfoElement:()=>sm,isLicenseElement:()=>im,isLinkElement:()=>om,isLinkElementExternal:()=>am,isMediaTypeElement:()=>Sm,isOpenApi3_0Element:()=>lm,isOpenapiElement:()=>cm,isOperationElement:()=>um,isParameterElement:()=>pm,isPathItemElement:()=>hm,isPathItemElementExternal:()=>fm,isPathsElement:()=>mm,isReferenceElement:()=>dm,isReferenceElementExternal:()=>ym,isRequestBodyElement:()=>gm,isResponseElement:()=>vm,isResponsesElement:()=>bm,isSchemaElement:()=>Om,isSecurityRequirementElement:()=>wm,isServerElement:()=>Em,isServerVariableElement:()=>xm});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>vO,isCallbackElement:()=>Wb,isComponentsElement:()=>Kb,isContactElement:()=>Yb,isExampleElement:()=>Xb,isExternalDocumentationElement:()=>Qb,isHeaderElement:()=>Zb,isInfoElement:()=>eO,isJsonSchemaDialectElement:()=>tO,isLicenseElement:()=>rO,isLinkElement:()=>nO,isLinkElementExternal:()=>sO,isMediaTypeElement:()=>wO,isOpenApi3_1Element:()=>oO,isOpenapiElement:()=>iO,isOperationElement:()=>aO,isParameterElement:()=>cO,isPathItemElement:()=>lO,isPathItemElementExternal:()=>uO,isPathsElement:()=>pO,isReferenceElement:()=>hO,isReferenceElementExternal:()=>fO,isRequestBodyElement:()=>mO,isResponseElement:()=>dO,isResponsesElement:()=>yO,isSchemaElement:()=>gO,isSecurityRequirementElement:()=>bO,isServerElement:()=>OO,isServerVariableElement:()=>jO});var l={};r.r(l),r.d(l,{cookie:()=>zx,header:()=>Ux,path:()=>Lx,query:()=>Vx});var u=r(2093),p=r(4904),h=r(1675),f=r(8403),m=r(4501),d=r(2507),y=r(2108),g=r(8180),v=r(621),b=r(2201),O=r(7398);function j(e){return j="function"==typeof b&&"symbol"==typeof O?function(e){return typeof e}:function(e){return e&&"function"==typeof b&&e.constructor===b&&e!==b.prototype?"symbol":typeof e},j(e)}var w=r(6189);function E(e){var t=function(e,t){if("object"!==j(e)||null===e)return e;var r=e[w];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===j(t)?t:String(t)}function x(e,t,r){return(t=E(t))in e?v(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){var r=u(e);if(p){var n=p(e);t&&(n=h(n).call(n,(function(t){return f(e,t).enumerable}))),m(r).apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r,n,s=null!=arguments[t]?arguments[t]:{};t%2?d(r=S(Object(s),!0)).call(r,(function(t){x(e,t,s[t])})):y?g(e,y(s)):d(n=S(Object(s))).call(n,(function(t){v(e,t,f(s,t))}))}return e}var A=r(8575),$=(r(9559),r(129)),k=r.n($);function T(e){return null==e}var C=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},M={isNothing:T,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:T(e)?[]:[e]},repeat:C,isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend: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}};function I(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 R(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=I(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}R.prototype=Object.create(Error.prototype),R.prototype.constructor=R,R.prototype.toString=function(e){return this.name+": "+I(this,e)};var F=R;function D(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function N(e,t){return M.repeat(" ",t-e.length)+e}var _=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 a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=D(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=M.repeat(" ",t.indent)+N((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=D(e.buffer,s[o],i[o],e.position,p),l+=M.repeat(" ",t.indent)+N((e.line+1).toString(),u)+" | "+c.str+"\n",l+=M.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=D(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=M.repeat(" ",t.indent)+N((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},q=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],L=["scalar","sequence","mapping"];var V=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===q.indexOf(t))throw new F('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===L.indexOf(this.kind))throw new F('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function B(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 U(e){return this.extend(e)}U.prototype.extend=function(e){var t=[],r=[];if(e instanceof V)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 F("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 V))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new F("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 F("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 V))throw new F("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(U.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=B(n,"implicit"),n.compiledExplicit=B(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 z=U,H=new V("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),J=new V("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),G=new V("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),W=new z({explicit:[H,J,G]});var K=new V("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 Y=new V("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 X(e){return 48<=e&&e<=55}function Q(e){return 48<=e&&e<=57}var Z=new V("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(!X(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!Q(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&&!M.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"]}}),ee=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var te=/^[-+]?[0-9]+e/;var re=new V("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ee.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||M.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(M.isNegativeZero(e))return"-0.0";return r=e.toString(10),te.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),ne=W.extend({implicit:[K,Y,Z,re]}),se=ne,ie=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),oe=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 ae=new V("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==ie.exec(e)||null!==oe.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=ie.exec(e))&&(t=oe.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],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,n,s,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var ce=new V("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var ue=new V("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=le;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=le,o=0,a=[];for(t=0;t<s;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=s%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,i=e.length,o=le;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}}),pe=Object.prototype.hasOwnProperty,he=Object.prototype.toString;var fe=new V("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(n=a[t],i=!1,"[object Object]"!==he.call(n))return!1;for(s in n)if(pe.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:[]}}),me=Object.prototype.toString;var de=new V("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]"!==me.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}}),ye=Object.prototype.hasOwnProperty;var ge=new V("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(ye.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),ve=se.extend({implicit:[ae,ce],explicit:[ue,fe,de,ge]}),be=Object.prototype.hasOwnProperty,Oe=1,je=2,we=3,Ee=4,xe=1,Se=2,Pe=3,Ae=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$e=/[\x85\u2028\u2029]/,ke=/[,\[\]\{\}]/,Te=/^(?:!|!!|![a-z\-]+!)$/i,Ce=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Me(e){return Object.prototype.toString.call(e)}function Ie(e){return 10===e||13===e}function Re(e){return 9===e||32===e}function Fe(e){return 9===e||32===e||10===e||13===e}function De(e){return 44===e||91===e||93===e||123===e||125===e}function Ne(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function _e(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 qe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Le=new Array(256),Ve=new Array(256),Be=0;Be<256;Be++)Le[Be]=_e(Be)?1:0,Ve[Be]=_e(Be);function Ue(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ve,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 ze(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=_(r),new F(t,r)}function He(e,t){throw ze(e,t)}function Je(e,t){e.onWarning&&e.onWarning.call(null,ze(e,t))}var Ge={YAML:function(e,t,r){var n,s,i;null!==e.version&&He(e,"duplication of %YAML directive"),1!==r.length&&He(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&He(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&He(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Je(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&He(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],Te.test(n)||He(e,"ill-formed tag handle (first argument) of the TAG directive"),be.call(e.tagMap,n)&&He(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ce.test(s)||He(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){He(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function We(e,t,r,n){var s,i,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,i=a.length;s<i;s+=1)9===(o=a.charCodeAt(s))||32<=o&&o<=1114111||He(e,"expected valid JSON character");else Ae.test(a)&&He(e,"the stream contains non-printable characters");e.result+=a}}function Ke(e,t,r,n){var s,i,o,a;for(M.isObject(r)||He(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(s=Object.keys(r)).length;o<a;o+=1)i=s[o],be.call(t,i)||(t[i]=r[i],n[i]=!0)}function Ye(e,t,r,n,s,i,o,a,c){var l,u;if(Array.isArray(s))for(l=0,u=(s=Array.prototype.slice.call(s)).length;l<u;l+=1)Array.isArray(s[l])&&He(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===Me(s[l])&&(s[l]="[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(l=0,u=i.length;l<u;l+=1)Ke(e,t,i[l],r);else Ke(e,t,i,r);else e.json||be.call(r,s)||!be.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,He(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 Xe(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):He(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Qe(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;Re(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(!Ie(s))break;for(Xe(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&&Je(e,"deficient indentation"),n}function Ze(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))&&!Fe(t)))}function et(e,t){1===t?e.result+=" ":t>1&&(e.result+=M.repeat("\n",t-1))}function tt(e,t){var r,n,s=e.tag,i=e.anchor,o=[],a=!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,He(e,"tab characters must not be used in indentation")),45===n)&&Fe(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,st(e,t,we,!1,!0),o.push(e.result),Qe(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)He(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=s,e.anchor=i,e.kind="sequence",e.result=o,!0)}function rt(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&He(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)):He(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!Fe(s);)33===s&&(o?He(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Te.test(r)||He(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),ke.test(n)&&He(e,"tag suffix cannot contain flow indicator characters")}n&&!Ce.test(n)&&He(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){He(e,"tag name is malformed: "+n)}return i?e.tag=n:be.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:He(e,'undeclared tag handle "'+r+'"'),!0}function nt(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&He(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Fe(r)&&!De(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&He(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function st(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,m=1,d=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=Ee===r||we===r,n&&Qe(e,!0,-1)&&(d=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;rt(e)||nt(e);)Qe(e,!0,-1)?(d=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=d||s),1!==m&&Ee!==r||(h=Oe===r||je===r?t:t+1,f=e.position-e.lineStart,1===m?a&&(tt(e,f)||function(e,t,r){var n,s,i,o,a,c,l,u=e.tag,p=e.anchor,h={},f=Object.create(null),m=null,d=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,He(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Fe(n)){if(o=e.line,a=e.lineStart,c=e.position,!st(e,r,je,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);Re(l);)l=e.input.charCodeAt(++e.position);if(58===l)Fe(l=e.input.charCodeAt(++e.position))||He(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Ye(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!1,s=!1,m=e.tag,d=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;He(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;He(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Ye(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):He(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),st(e,t,Ee,!0,s)&&(g?d=e.result:y=e.result),g||(Ye(e,h,f,m,d,y,o,a,c),m=d=y=null),Qe(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)He(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Ye(e,h,f,m,d,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,f,h))||function(e,t){var r,n,s,i,o,a,c,l,u,p,h,f,m=!0,d=e.tag,y=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==f)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(Qe(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=d,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===f&&He(e,"expected the node content, but found ','"):He(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&Fe(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,Qe(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,st(e,t,Oe,!1,!0),p=e.tag,u=e.result,Qe(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),Qe(e,!0,t),st(e,t,Oe,!1,!0),h=e.result),l?Ye(e,i,g,p,u,h,r,n,s):a?i.push(Ye(e,null,g,p,u,h,r,n,s)):i.push(u),Qe(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}He(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,n,s,i,o,a=xe,c=!1,l=!1,u=t,p=0,h=!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)xe===a?a=43===i?Pe:Se:He(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?He(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?He(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(Re(i)){do{i=e.input.charCodeAt(++e.position)}while(Re(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Ie(i)&&0!==i)}for(;0!==i;){for(Xe(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),Ie(i))p++;else{if(e.lineIndent<u){a===Pe?e.result+=M.repeat("\n",c?1+p:p):a===xe&&c&&(e.result+="\n");break}for(n?Re(i)?(h=!0,e.result+=M.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=M.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=M.repeat("\n",p):e.result+=M.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Ie(i)&&0!==i;)i=e.input.charCodeAt(++e.position);We(e,r,e.position,!1)}}return!0}(e,h)||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(We(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else Ie(r)?(We(e,n,s,!0),et(e,Qe(e,!1,t)),n=s=e.position):e.position===e.lineStart&&Ze(e)?He(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);He(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,s,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return We(e,r,e.position,!0),e.position++,!0;if(92===a){if(We(e,r,e.position,!0),Ie(a=e.input.charCodeAt(++e.position)))Qe(e,!1,t);else if(a<256&&Le[a])e.result+=Ve[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(s=o,i=0;s>0;s--)(o=Ne(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:He(e,"expected hexadecimal character");e.result+=qe(i),e.position++}else He(e,"unknown escape sequence");r=n=e.position}else Ie(a)?(We(e,r,n,!0),et(e,Qe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ze(e)?He(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}He(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!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&&!Fe(n)&&!De(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&He(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),be.call(e.anchorMap,r)||He(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Qe(e,!0,-1),!0}(e)?function(e,t,r){var n,s,i,o,a,c,l,u,p=e.kind,h=e.result;if(Fe(u=e.input.charCodeAt(e.position))||De(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Fe(n=e.input.charCodeAt(e.position+1))||r&&De(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(Fe(n=e.input.charCodeAt(e.position+1))||r&&De(n))break}else if(35===u){if(Fe(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ze(e)||r&&De(u))break;if(Ie(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,Qe(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(We(e,s,i,!1),et(e,e.line-a),s=i=e.position,o=!1),Re(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return We(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,Oe===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||He(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&tt(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&He(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(be.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||He(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&He(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):He(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function it(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))&&(Qe(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&&!Fe(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&He(e,"directive name must not be less than one character in length");0!==s;){for(;Re(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!Ie(s));break}if(Ie(s))break;for(t=e.position;0!==s&&!Fe(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&Xe(e),be.call(Ge,r)?Ge[r](e,r,n):Je(e,'unknown document directive "'+r+'"')}Qe(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,Qe(e,!0,-1)):o&&He(e,"directives end mark is expected"),st(e,e.lineIndent-1,Ee,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&$e.test(e.input.slice(i,e.position))&&Je(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ze(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Qe(e,!0,-1)):e.position<e.length-1&&He(e,"end of the stream or a document separator is expected")}function ot(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 Ue(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,He(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;)it(r);return r.documents}var at=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=ot(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},ct={loadAll:at,load:function(e,t){var r=ot(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new F("expected a single document in the stream, but found more")}}},lt=Object.prototype.toString,ut=Object.prototype.hasOwnProperty,pt=65279,ht=9,ft=10,mt=13,dt=32,yt=33,gt=34,vt=35,bt=37,Ot=38,jt=39,wt=42,Et=44,xt=45,St=58,Pt=61,At=62,$t=63,kt=64,Tt=91,Ct=93,Mt=96,It=123,Rt=124,Ft=125,Dt={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"},Nt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],_t=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function qt(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 F("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+M.repeat("0",n-t.length)+t}var Lt=1,Vt=2;function Bt(e){this.schema=e.schema||ve,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=M.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,a,c;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&ut.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;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?Vt:Lt,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 Ut(e,t){for(var r,n=M.repeat(" ",t),s=0,i=-1,o="",a=e.length;s<a;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function zt(e,t){return"\n"+M.repeat(" ",e.indent*t)}function Ht(e){return e===dt||e===ht}function Jt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==pt||65536<=e&&e<=1114111}function Gt(e){return Jt(e)&&e!==pt&&e!==mt&&e!==ft}function Wt(e,t,r){var n=Gt(e),s=n&&!Ht(e);return(r?n:n&&e!==Et&&e!==Tt&&e!==Ct&&e!==It&&e!==Ft)&&e!==vt&&!(t===St&&!s)||Gt(t)&&!Ht(t)&&e===vt||t===St&&s}function Kt(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 Yt(e){return/^\n* /.test(e)}var Xt=1,Qt=2,Zt=3,er=4,tr=5;function rr(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,m=-1!==n,d=-1,y=Jt(l=Kt(e,0))&&l!==pt&&!Ht(l)&&l!==xt&&l!==$t&&l!==St&&l!==Et&&l!==Tt&&l!==Ct&&l!==It&&l!==Ft&&l!==vt&&l!==Ot&&l!==wt&&l!==yt&&l!==Rt&&l!==Pt&&l!==At&&l!==jt&&l!==gt&&l!==bt&&l!==kt&&l!==Mt&&function(e){return!Ht(e)&&e!==St}(Kt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Jt(u=Kt(e,c)))return tr;y=y&&Wt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Kt(e,c))===ft)h=!0,m&&(f=f||c-d-1>n&&" "!==e[d+1],d=c);else if(!Jt(u))return tr;y=y&&Wt(u,p,a),p=u}f=f||m&&c-d-1>n&&" "!==e[d+1]}return h||f?r>9&&Yt(e)?tr:o?i===Vt?tr:Qt:f?er:Zt:!y||o||s(e)?i===Vt?tr:Qt:Xt}function nr(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===Vt?'""':"''";if(!e.noCompatMode&&(-1!==Nt.indexOf(t)||_t.test(t)))return e.quotingType===Vt?'"'+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),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(rr(t,a,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 Xt:return t;case Qt:return"'"+t.replace(/'/g,"''")+"'";case Zt:return"|"+sr(t,e.indent)+ir(Ut(t,i));case er:return">"+sr(t,e.indent)+ir(Ut(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,or(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;n=s.exec(e);){var c=n[1],l=n[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+or(l,t),o=r}return i}(t,o),i));case tr:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Kt(e,s),!(t=Dt[n])&&Jt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||qt(n);return r}(t)+'"';default:throw new F("impossible error: invalid scalar style")}}()}function sr(e,t){var r=Yt(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function ir(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function or(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,i=0,o=0,a=0,c="";r=s.exec(e);)(a=r.index)-i>t&&(n=o>i?o:a,c+="\n"+e.slice(i,n),i=n+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function ar(e,t,r,n){var s,i,o,a="",c=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)),(lr(e,t+1,o,!0,!0,!1,!0)||void 0===o&&lr(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=zt(e,t)),e.dump&&ft===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function cr(e,t,r){var n,s,i,o,a,c;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=s[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===lt.call(a.represent))n=a.represent(t,c);else{if(!ut.call(a.represent,c))throw new F("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function lr(e,t,r,n,s,i,o){e.tag=null,e.dump=r,cr(e,r,!1)||cr(e,r,!0);var a,c=lt.call(e.dump),l=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(s=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new F("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=zt(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),lr(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&ft===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=zt(e,t)),lr(e,t+1,a,!0,c)&&(e.dump&&ft===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o,a,c="",l=e.tag,u=Object.keys(r);for(n=0,s=u.length;n<s;n+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[n]],e.replacer&&(o=e.replacer.call(r,i,o)),lr(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),lr(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?ar(e,t-1,e.dump,s):ar(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o="",a=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)),(lr(e,t,i,!1,!1)||void 0===i&&lr(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new F("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&nr(e,e.dump,t,i,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function ur(e,t){var r,n,s=[],i=[];for(pr(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function pr(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)pr(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)pr(e[n[s]],t,r)}var hr=function(e,t){var r=new Bt(t=t||{});r.noRefs||ur(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),lr(r,0,n,!0,!0)?r.dump+"\n":""};function fr(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 mr=V,dr=z,yr=W,gr=ne,vr=se,br=ve,Or=ct.load,jr=ct.loadAll,wr={dump:hr}.dump,Er=F,xr={binary:ue,float:re,map:G,null:K,pairs:de,set:ge,timestamp:ae,bool:Y,int:Z,merge:ce,omap:fe,seq:J,str:H},Sr=fr("safeLoad","load"),Pr=fr("safeLoadAll","loadAll"),Ar=fr("safeDump","dump");const $r={Type:mr,Schema:dr,FAILSAFE_SCHEMA:yr,JSON_SCHEMA:gr,CORE_SCHEMA:vr,DEFAULT_SCHEMA:br,load:Or,loadAll:jr,dump:wr,YAMLException:Er,types:xr,safeLoad:Sr,safeLoadAll:Pr,safeDump:Ar},kr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:Tr,Blob:Cr,File:Mr}=kr,Ir=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Rr=e=>/^[a-z0-9\-._~]+$/i.test(e);function Fr(e){let{escape:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):[...e].map((e=>{if(Rr(e))return e;if(Ir(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(""):e}function Dr(e){const{value:t}=e;return Array.isArray(t)?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>Fr(e,{escape:i});if("simple"===n)return r.map((e=>o(e))).join(",");if("label"===n)return`.${r.map((e=>o(e))).join(".")}`;if("matrix"===n)return r.map((e=>o(e))).reduce(((e,r)=>!e||s?`${e||""};${t}=${r}`:`${e},${r}`),"");if("form"===n){const e=s?`&${t}=`:",";return r.map((e=>o(e))).join(e)}if("spaceDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(` ${e}`)}if("pipeDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(`|${e}`)}return}(e):"object"==typeof t?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>Fr(e,{escape:i}),a=Object.keys(r);if("simple"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e},`:""}${t}${s?"=":","}${n}`}),"");if("label"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}.`:"."}${t}${s?"=":"."}${n}`}),"");if("matrix"===n&&s)return a.reduce(((e,t)=>`${e?`${e};`:";"}${t}=${o(r[t])}`),"");if("matrix"===n)return a.reduce(((e,n)=>{const s=o(r[n]);return`${e?`${e},`:`;${t}=`}${n},${s}`}),"");if("form"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}${s?"&":","}`:""}${t}${s?"=":","}${n}`}),"");return}(e):function(e){let{key:t,value:r,style:n,escape:s}=e;const i=e=>Fr(e,{escape:s});if("simple"===n)return i(r);if("label"===n)return`.${i(r)}`;if("matrix"===n)return`;${t}=${i(r)}`;if("form"===n)return i(r);if("deepObject"===n)return i(r,{},!0);return}(e)}const Nr=(e,t)=>{t.body=e},_r={serializeRes:Vr,mergeInQueryOrForm:Xr};async function qr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof e&&(t=e,e=t.url),t.headers=t.headers||{},_r.mergeInQueryOrForm(t),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)&&t.body instanceof Tr&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await _r.serializeRes(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}const Lr=function(){return/(json|xml|yaml|text)\b/.test(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function Vr(e,t){let{loadSpec:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Br(e.headers)},s=n.headers["content-type"],i=r||Lr(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):$r.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}function Br(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,t)=>{let[r,n]=t;return e[r]=function(e){return e.includes(", ")?e.split(", "):e}(n),e}),{})}function Ur(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):void 0!==Mr&&e instanceof Mr||(void 0!==Cr&&e instanceof Cr||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function zr(e,t){return Array.isArray(e)&&e.some((e=>Ur(e,t)))}const Hr={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Jr={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class Gr extends Mr{constructor(e){super([e],arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Wr(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&s)return[[l,""]];if(Ur(a)||zr(a))return[[l,a]];if(i)return Kr(e,a,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 Kr(e,a,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new Gr(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new Gr(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===n?[[l,a.map(c)]]:[[l,a.map(c).join(Jr[n||"csv"])]]:[[l,""]]}function Kr(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"),a=e=>Fr(e,{escape:o}),c=r?e=>e:e=>Fr(e,{escape:o});return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(Hr[s])]]:"deepObject"===s?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function Yr(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Wr(r,e[r]))t[n]=s instanceof Gr?s.valueOf():s;return t}),{});return k().stringify(t,{encode:!1,indices:!1})||""}function Xr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return Ur(t)||zr(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)=>{let[r,n]=t;for(const[t,s]of Wr(r,n,!0))if(Array.isArray(s))for(const r of s)if(ArrayBuffer.isView(r)){const n=new Cr([r]);e.append(t,n)}else e.append(t,r);else if(ArrayBuffer.isView(s)){const r=new Cr([s]);e.append(t,r)}else e.append(t,s);return e}),new Tr));Nr(t,e)}else e.body=Yr(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=k().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=k().stringify(e,{encode:!0})}const o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.filter((e=>e)).join("&");return n?`?${n}`:""}(i,Yr(r));e.url=n+o,delete e.query}return e}const Qr="application/json, application/yaml";function Zr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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:Qr},credentials:s}).then((e=>e.body))}const en=e=>{const{baseDoc:t,url:r}=e;return t||r||""},tn=e=>{const{fetch:t,http:r}=e;return t||r||qr};var rn,nn=(rn=function(e,t){return rn=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])},rn(e,t)},function(e,t){function r(){this.constructor=e}rn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sn=Object.prototype.hasOwnProperty;function on(e,t){return sn.call(e,t)}function an(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)on(e,s)&&n.push(s);return n}function cn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function ln(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 un(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function pn(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function hn(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(hn(e[t]))return!0}else if("object"==typeof e)for(var n=an(e),s=n.length,i=0;i<s;i++)if(hn(e[n[i]]))return!0;return!1}function fn(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 mn=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,fn(t,{name:r,index:n,operation:s,tree:i}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=fn(t,{name:r,index:n,operation:s,tree:i}),a}return nn(t,e),t}(Error),dn=mn,yn=cn,gn={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=bn(r,this.path);n&&(n=cn(n));var s=On(r,{op:"remove",path:this.from}).removed;return On(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=bn(r,this.from);return On(r,{op:"add",path:this.path,value:cn(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Sn(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},vn={add:function(e,t,r){return ln(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:gn.move,copy:gn.copy,test:gn.test,_get:gn._get};function bn(e,t){if(""==t)return e;var r={op:"_get",path:t};return On(e,r),r.value}function On(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):En(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=bn(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=Sn(e,t.value),!1===o.test)throw new dn("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 dn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=cn(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,f=void 0;for(f="function"==typeof r?r:En;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=pn(h)),s&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-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===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!ln(h))throw new dn("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);ln(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new dn("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=vn[t.op].call(t,c,h,e)).test)throw new dn("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=gn[t.op].call(t,c,h,e)).test)throw new dn("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new dn("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function jn(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new dn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=cn(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=On(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function wn(e,t,r){var n=On(e,t);if(!1===n.test)throw new dn("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function En(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new dn("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!gn[e.op])throw new dn("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 dn("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new dn('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 dn("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 dn("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)&&hn(e.value))throw new dn("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 dn("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 dn("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=xn([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new dn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function xn(e,t,r){try{if(!Array.isArray(e))throw new dn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)jn(cn(t),cn(e),r||!0);else{r=r||En;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof dn)return e;throw e}}function Sn(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(!Sn(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((n=a.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=n;0!=r--;)if(!Sn(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var Pn=new WeakMap,An=function(e){this.observers=new Map,this.obj=e},$n=function(e,t){this.callback=e,this.observer=t};function kn(e,t){t.unobserve()}function Tn(e,t){var r,n=function(e){return Pn.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new An(e),Pn.set(e,n);if(r)return r;if(r={},n.value=cn(e),t){r.callback=t,r.next=null;var i=function(){Cn(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(){Cn(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 $n(t,r)),r}function Cn(e,t){void 0===t&&(t=!1);var r=Pn.get(e.object);Mn(r.value,e.object,e.patches,"",t),e.patches.length&&jn(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function Mn(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=an(t),o=an(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!on(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+un(p),value:cn(l)}),r.push({op:"remove",path:n+"/"+un(p)}),a=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?Mn(l,u,r,n+"/"+un(p),s):l!==u&&(!0,s&&r.push({op:"test",path:n+"/"+un(p),value:cn(l)}),r.push({op:"replace",path:n+"/"+un(p),value:cn(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;on(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+un(p),value:cn(t[p])})}}}function In(e,t,r){void 0===r&&(r=!1);var n=[];return Mn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:mn,deepClone:cn,escapePathComponent:un,unescapePathComponent:pn});var Rn=r(9996),Fn=r.n(Rn);const Dn={add:function(e,t){return{op:"add",path:e,value:t}},replace:_n,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=P(P({},t),{},{path:t.path&&Nn(t.path)})).op){const r=Xn(e,t.path);Object.assign(r,t.value),jn(e,[_n(t.path,r)])}else if("mergeDeep"===t.op){const r=Xn(e,t.path),n=Fn()(r,t.value);e=jn(e,[_n(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&Hn(t.value)){jn(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${Nn(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Kn(t)&&(Array.isArray(t.value)||Hn(t.value))&&(n=P(P({},n),t.meta)),e=n}else if(jn(e,[t]),r.allowMetaPatches&&t.meta&&Kn(t)&&(Array.isArray(t.value)||Hn(t.value))){const r=P(P({},Xn(e,t.path)),t.meta);jn(e,[_n(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:Un,fullyNormalizeArray:function(e){return zn(Un(Bn(e)))},normalizeArray:Bn,isPromise:function(e){return Hn(e)&&Jn(e.then)},forEachNew:function(e,t){try{return qn(e,Vn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return qn(e,Ln,t)}catch(e){return e}},isJsonPatch:Gn,isContextPatch:function(e){return Yn(e)&&"context"===e.type},isPatch:Yn,isMutation:Wn,isAdditiveMutation:Kn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Jn,isObject:Hn,isError:function(e){return e instanceof Error}};function Nn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function _n(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function qn(e,t,r){return zn(Un(e.filter(Kn).map((e=>t(e.value,r,e.path)))||[]))}function Ln(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>Ln(e,t,r.concat(n)))):Hn(e)?Object.keys(e).map((n=>Ln(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function Vn(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)=>Vn(e,t,r.concat(n))));s&&(n=n.concat(s))}else if(Hn(e)){const s=Object.keys(e).map((n=>Vn(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=Un(n),n}function Bn(e){return Array.isArray(e)?e:[e]}function Un(e){return[].concat(...e.map((e=>Array.isArray(e)?Un(e):e)))}function zn(e){return e.filter((e=>void 0!==e))}function Hn(e){return e&&"object"==typeof e}function Jn(e){return e&&"function"==typeof e}function Gn(e){if(Yn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Wn(e){return Gn(e)||Yn(e)&&"mutation"===e.type}function Kn(e){return Wn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Yn(e){return e&&"object"==typeof e}function Xn(e,t){try{return bn(e,t)}catch(e){return console.error(e),{}}}function Qn(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];[this.message]=r,t&&t.apply(this,r)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var Zn=r(3692),es=r.n(Zn);const ts=["properties"],rs=["properties"],ns=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],ss=["schema/example","items/example"];function is(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return ts.indexOf(t)>-1&&-1===rs.indexOf(r)||ns.indexOf(n)>-1||ss.some((e=>n.indexOf(e)>-1))}function os(e,t){const[r,n]=e.split("#"),s=A.resolve(r||"",t||"");return n?`${s}#${n}`:s}const as=/^([a-z]+:\/\/|\/\/)/i,cs=Qn("JSONRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),ls={},us=new WeakMap,ps=[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]],hs={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(is(i)||(e=>ps.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new cs("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=gs(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?ds(c,o):null}catch(t){return ys(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=us.get(n);s||(s={},us.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(Es).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&Ss(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${Es(e)}`,s[l]&&s[l].some((e=>Ss(e,o)||Ss(o,e))))));if(u)return!0;return void(s[a]=(s[a]||[]).concat(o))}(l,u,i,n)&&!s.useCircularStructures){const t=os(e,u);return e===t?null:Dn.replace(r,t)}if(null==u?(h=js(l),p=n.get(h),void 0===p&&(p=new cs(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=vs(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw ys(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[Dn.remove(r),p];const f=os(e,u),m=Dn.replace(i,p,{$$ref:f});if(u&&u!==o)return[m,Dn.context(i,{baseDoc:u})];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 Dn.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,m)||s.useCircularStructures)return m}catch(e){return null}}},fs=Object.assign(hs,{docCache:ls,absoluteify:ds,clearCache:function(e){void 0!==e?delete ls[e]:Object.keys(ls).forEach((e=>{delete ls[e]}))},JSONRefError:cs,wrapError:ys,getDoc:bs,split:gs,extractFromDoc:vs,fetchJSON:function(e){return fetch(e,{headers:{Accept:Qr},loadSpec:!0}).then((e=>e.text())).then((e=>$r.load(e)))},extract:Os,jsonPointerToArray:js,unescapeJsonPointerToken:ws}),ms=fs;function ds(e,t){if(!as.test(e)){if(!t)throw new cs(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return A.resolve(t,e)}return e}function ys(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new cs(`Could not resolve reference: ${r}`,t,e)}function gs(e){return(e+"").split("#")}function vs(e,t){const r=ls[e];if(r&&!Dn.isPromise(r))try{const e=Os(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return bs(e).then((e=>Os(t,e)))}function bs(e){const t=ls[e];return t?Dn.isPromise(t)?t:Promise.resolve(t):(ls[e]=fs.fetchJSON(e).then((t=>(ls[e]=t,t))),ls[e])}function Os(e,t){const r=js(e);if(r.length<1)return t;const n=Dn.getIn(t,r);if(void 0===n)throw new cs(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function js(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(ws)}function ws(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Es(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const xs=e=>!e||"/"===e||"#"===e;function Ss(e,t){if(xs(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const Ps={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(is(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=s.value;if(i.forEach((e=>{a&&(a=a[e])})),a=P({},a),0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.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,c.push(e)}c.push(n.mergeDeep(i,e));const s=function(e,t){let{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return es()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=os(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});c.push(...s)})),a.example&&c.push(n.remove([].concat(i,"example"))),c.push(n.mergeDeep(i,a)),a.$$ref||c.push(n.remove([].concat(i,"$$ref"))),c}},As={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i=P({},Dn.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 Dn.replace(r,t)}return Dn.replace(r,e)}},$s={key:"properties",plugin:(e,t,r,n)=>{const s=P({},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 Dn.replace(r,s)}};class ks{constructor(e){this.root=Ts(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Cs(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Cs(s[n],t,r):s[n]=Ts(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]=Ts(null,e)),n[r]}),this.root)}}function Ts(e,t){return Cs({children:{}},e,t)}function Cs(e,t,r){return e.value=t||{},e.protoValue=r?P(P({},r.protoValue),e.value):e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=Cs(r,r.value,e)})),e}const Ms=()=>{};class Is{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 ks,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Dn,{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(Dn.isFunction),this.patches.push(Dn.add([],this.spec)),this.patches.push(Dn.context([],this.context)),this.updatePatches(this.patches)}debug(e){if(this.debugLevel===e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(...r)}}verbose(e){if("verbose"===this.debugLevel){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(`[${e}] `,...r)}}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):Dn.isFunction(e)?n=e:Dn.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 of n.filter(Dn.isAdditiveMutation))yield*o(e.value,e.path,e);function*o(n,a,c){if(Dn.isObject(n)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,f=s.allowMetaPatches&&i[n.$$ref];for(const l of Object.keys(n)){const u=n[l],p=a.concat(l),m=Dn.isObject(u),d=n.$$ref;if(f||m&&(s.allowMetaPatches&&d&&(i[d]=!0),yield*o(u,p,c)),!h&&l===e.key){const n=t(r,a);r&&!n||(yield e.plugin(u,l,p,s,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:Dn.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){Dn.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Dn.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Dn.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Dn.isContextPatch(e))return void this.setContext(e.path,e.value);Dn.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=P({},e.value));const t=Dn.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=P(P({},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 Dn.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(Ms,Ms)))).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=Dn.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const Rs={refs:ms,allOf:Ps,parameters:As,properties:$s},Fs=e=>e.replace(/\W/gi,"_");function Ds(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{v2OperationIdCompatibilityMode:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Fs(e.operationId):function(e,t){let{v2OperationIdCompatibilityMode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};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()}${Fs(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function Ns(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 a=Ds(o,e,r);if(a){n[a]?n[a].push(o):n[a]=[o];const e=n[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}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}async function _s(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l,useCircularStructures:u}=e,p=en(e),h=tn(e);return function(e){p&&(Rs.refs.docCache[p]=e);Rs.refs.fetchJSON=Zr(h,{requestInterceptor:a,responseInterceptor:c});const t=[Rs.refs];"function"==typeof o&&t.push(Rs.parameters);"function"==typeof i&&t.push(Rs.properties);"strict"!==r&&t.push(Rs.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Is(f).dispatch()).then(l?async e=>e:Ns);var f}(t)}const qs={name:"generic",match:()=>!0,normalize(e){let{spec:t}=e;const{spec:r}=Ns({spec:t});return r},resolve:async e=>_s(e)};const Ls=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Vs=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Bs=e=>Ls(e)||Vs(e),Us={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:r}=Ns({spec:t});return r},resolve:async e=>async function(e){return _s(e)}(e)};const zs={name:"openapi-3-0",match(e){let{spec:t}=e;return Ls(t)},normalize(e){let{spec:t}=e;const{spec:r}=Ns({spec:t});return r},resolve:async e=>async function(e){return _s(e)}(e)},Hs=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=en(e),i=tn(e),o=t||await Zr(i,{requestInterceptor:r,responseInterceptor:n})(s),a=P(P({},e),{},{spec:o});return e.strategies.find((e=>e.match(a))).resolve(a)})(P(P({},e),t)),Js=Hs({strategies:[zs,Us,qs]});var Gs=r(7361),Ws=r.n(Gs);const Ks=e=>async function(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((e=>e.match(p))).normalize(p),f=await Js(P(P({},p),{},{spec:h,allowMetaPatches:!0,skipNormalization:!0}));return!n&&Array.isArray(t)&&t.length&&(f.spec=Ws()(f.spec,t)||null),f}(t,r,P(P({},e),n))};Ks({strategies:[zs,Us,qs]});var Ys=r(3500);class Xs extends Ys.RP{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)}}const Qs=Xs;class Zs extends Ys.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const ei=Zs;const ti=function(){return!1};const ri=function(){return!0};function ni(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function si(e){return function t(r){return 0===arguments.length||ni(r)?t:e.apply(this,arguments)}}function ii(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return ni(r)?t:si((function(t){return e(r,t)}));default:return ni(r)&&ni(n)?t:ni(r)?si((function(t){return e(t,n)})):ni(n)?si((function(t){return e(r,t)})):e(r,n)}}}const oi=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function ai(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!oi(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(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function ci(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const li=function(){return this.xf["@@transducer/init"]()},ui=function(e){return this.xf["@@transducer/result"](e)};var pi=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=li,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=ci(this.xf["@@transducer/step"](e,!1))),e},e}();function hi(e){return function(t){return new pi(e,t)}}const fi=ii(ai(["all"],hi,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function mi(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,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function di(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!ni(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,ni(a)||(i-=1),o+=1}return i<=0?r.apply(this,n):mi(i,di(e,n,r))}}const yi=ii((function(e,t){return 1===e?si(t):mi(e,di(e,[],t))}));function gi(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function vi(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function bi(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Oi="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var ji=Object.prototype.toString;const wi=function(){return"[object Arguments]"===ji.call(arguments)?function(e){return"[object Arguments]"===ji.call(e)}:function(e){return bi("callee",e)}}();var Ei=!{toString:null}.propertyIsEnumerable("toString"),xi=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Si=function(){return arguments.propertyIsEnumerable("length")}(),Pi=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const Ai="function"!=typeof Object.keys||Si?si((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=Si&&wi(e);for(t in e)!bi(t,e)||s&&"length"===t||(n[n.length]=t);if(Ei)for(r=xi.length-1;r>=0;)bi(t=xi[r],e)&&!Pi(n,t)&&(n[n.length]=t),r-=1;return n})):si((function(e){return Object(e)!==e?[]:Object.keys(e)}));const $i=si((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ki(e,t,r,n){var s=gi(e);function i(e,t){return Ti(e,t,r.slice(),n.slice())}return!vi((function(e,t){return!vi(i,t,e)}),gi(t),s)}function Ti(e,t,r,n){if(Oi(e,t))return!0;var s,i,o=$i(e);if(o!==$i(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Oi(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Oi(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&ki(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&ki(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 c=Ai(e);if(c.length!==Ai(t).length)return!1;var l=r.concat([e]),u=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!bi(p,t)||!Ti(t[p],e[p],l,u))return!1;a-=1}return!0}const Ci=ii((function(e,t){return Ti(e,t,[],[])}));function Mi(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(Ci(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Ii(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function Ri(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 Fi=function(e){return(e<10?"0":"")+e};const Di="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Fi(e.getUTCMonth()+1)+"-"+Fi(e.getUTCDate())+"T"+Fi(e.getUTCHours())+":"+Fi(e.getUTCMinutes())+":"+Fi(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ni(e){return function(){return!e.apply(this,arguments)}}function _i(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function qi(e){return"[object Object]"===Object.prototype.toString.call(e)}var Li=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=li,e.prototype["@@transducer/result"]=ui,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Vi(e){return function(t){return new Li(e,t)}}const Bi=ii(ai(["fantasy-land/filter","filter"],Vi,(function(e,t){return qi(t)?_i((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},Ai(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)})));const Ui=ii((function(e,t){return Bi(Ni(e),t)}));function zi(e,t){var r=function(r){var n=t.concat([e]);return Mi(r,n)?"<Circular>":zi(r,n)},n=function(e,t){return Ii((function(t){return Ri(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ii(r,e).join(", ")+"))";case"[object Array]":return"["+Ii(r,e).concat(n(e,Ui((function(e){return/^\d+$/.test(e)}),Ai(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):Ri(Di(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())+")":Ri(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,Ai(e)).join(", ")+"}"}}const Hi=si((function(e){return zi(e,[])}));const Ji=ii((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=Hi(e),o=r(i,Hi(t));return void 0!==o&&o===i?e:t}));var Gi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=li,e.prototype["@@transducer/result"]=ui,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Wi=ii(ai(["fantasy-land/map","map"],(function(e){return function(t){return new Gi(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return yi(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return _i((function(r,n){return r[n]=e(t[n]),r}),{},Ai(t));default:return Ii(e,t)}}))),Ki=Number.isInteger||function(e){return e<<0===e};function Yi(e){return"[object String]"===Object.prototype.toString.call(e)}const Xi=ii((function(e,t){var r=e<0?t.length+e:e;return Yi(t)?t.charAt(r):t[r]}));const Qi=ii((function(e,t){if(null!=t)return Ki(e)?Xi(e,t):t[e]}));const Zi=ii((function(e,t){return Wi(Qi(e),t)}));function eo(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return ni(r)?t:ii((function(t,n){return e(r,t,n)}));case 2:return ni(r)&&ni(n)?t:ni(r)?ii((function(t,r){return e(t,n,r)})):ni(n)?ii((function(t,n){return e(r,t,n)})):si((function(t){return e(r,n,t)}));default:return ni(r)&&ni(n)&&ni(s)?t:ni(r)&&ni(n)?ii((function(t,r){return e(t,r,s)})):ni(r)&&ni(s)?ii((function(t,r){return e(t,n,r)})):ni(n)&&ni(s)?ii((function(t,n){return e(r,t,n)})):ni(r)?si((function(t){return e(t,n,s)})):ni(n)?si((function(t){return e(r,t,s)})):ni(s)?si((function(t){return e(r,n,t)})):e(r,n,s)}}}const to=si((function(e){return!!oi(e)||!!e&&("object"==typeof e&&(!Yi(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ro="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function no(e,t,r){return function(n,s,i){if(to(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[ro])return r(n,s,i[ro]());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 so(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)}const io=ii((function(e,t){return mi(e.length,(function(){return e.apply(t,arguments)}))}));function oo(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 ao(e,t,r,n){return e["@@transducer/result"](r[n](io(e["@@transducer/step"],e),t))}const co=no(so,ao,oo);var lo=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 uo(e){return new lo(e)}const po=eo((function(e,t,r){return co("function"==typeof e?uo(e):e,t,r)}));const ho=si((function(e){return yi(po(Ji,0,Zi("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const fo=si((function(e){return function(){return e}}));const mo=si((function(e){return yi(po(Ji,0,Zi("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 yo(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function go(e,t,r,n){return r[n](e,t)}const vo=no(_i,go,yo);const bo=ii((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))}:vo((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,Wi(r,t))}),[],e)}));const Oo=ii((function(e,t){return e.apply(this,t)}));var jo=si((function(e){for(var t=Ai(e),r=t.length,n=[],s=0;s<r;)n[s]=e[t[s]],s+=1;return n}));const wo=jo;const Eo=si((function(e){return null==e}));const xo=eo((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Eo(n)&&bi(s,n)&&"object"==typeof n[s]?n[s]:Ki(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ki(e)&&oi(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 So(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Po=ii((function(e,t){return e&&t}));const Ao=ii((function(e,t){var r=yi(e,t);return yi(e,(function(){return _i(bo,Wi(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const $o=si((function(e){return Ao(e.length,e)}));const ko=ii((function(e,t){return So(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:$o(Po)(e,t)}));const To=si((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const Co=$o(si((function(e){return!e})));function Mo(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Io(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return oi(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Ro=eo(Io("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Fo=si(Io("tail",Ro(1,1/0)));function Do(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return mi(arguments[0].length,po(Mo,arguments[0],Fo(arguments)))}var No=ii((function(e,t){return yi(po(Ji,0,Zi("length",t)),(function(){var r=arguments,n=this;return e.apply(n,Ii((function(e){return e.apply(n,r)}),t))}))}));const _o=No;function qo(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 Lo(e,t,r){if(r||(r=new Vo),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?Lo(e[i],!0,r):e[i]);return n};switch($i(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return qo(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 Vo=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let 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(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}(),Bo=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"]=li,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(bi(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,Lo(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function Uo(e,t,r){return function(n){return new Bo(e,t,r,n)}}var zo=di(4,[],ai([],Uo,(function(e,t,r,n){var s=uo((function(n,s){var i=r(s),o=e(bi(i,n)?n[i]:Lo(t,!1),s);return o&&o["@@transducer/reduced"]?ci(n):(n[i]=o,n)}));return co(s,{},n)})));const Ho=zo;const Jo=si((function(e){return yi(e.length,e)}));const Go=ii((function(e,t){return null==t||t!=t?e:t}));function Wo(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?!!Mi(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?!!Mi(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Ko=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Wo(e,!0,this)},e.prototype.has=function(e){return Wo(e,!1,this)},e}();var Yo=ii((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Ko,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));const Xo=Yo;var Qo=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=li,e.prototype["@@transducer/result"]=ui,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?ci(r):r},e}();function Zo(e){return function(t){return new Qo(e,t)}}const ea=ii(ai(["take"],Zo,(function(e,t){return Ro(0,e<0?1/0:e,t)})));function ta(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Ro(0,r+1,t)}var ra=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=li,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=co(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 na(e){return function(t){return new ra(e,t)}}const sa=ii(ai([],na,ta));var ia=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=li,e.prototype["@@transducer/result"]=ui,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 oa(e){return function(t){return new ia(e,t)}}const aa=ii(ai(["dropWhile"],oa,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Ro(r,1/0,t)})));const ca=ii((function(e,t){return e||t}));const la=ii((function(e,t){return So(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:$o(ca)(e,t)}));var ua=si((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():oi(e)?[]:Yi(e)?"":qi(e)?{}:wi(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 pa=ua;const ha=si((function(e){return yi(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const fa=ii(Io("groupBy",Ho((function(e,t){return e.push(t),e}),[])));const ma=ii((function(e,t){if(0===e.length||Eo(t))return!1;for(var r=t,n=0;n<e.length;){if(Eo(r)||!bi(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const da=ii((function(e,t){return ma([e],t)}));const ya=ii((function(e,t){return!Eo(t)&&e in t}));const ga=Xi(0);var va=function(e,t){switch(arguments.length){case 0:return va;case 1:return function t(r){return 0===arguments.length?t:Oi(e,r)};default:return Oi(e,t)}};const ba=va;function Oa(e){return e}const ja=si(Oa);const wa=eo((function(e,t,r){return yi(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Ea=ii(Mi);const xa=Ro(0,-1);"function"==typeof Object.assign&&Object.assign;const Sa=ii((function(e,t){return yi(e+1,(function(){var r=arguments[e];if(null!=r&&So(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Hi(r)+' does not have a method named "'+t+'"')}))}));const Pa=si((function(e){return null!=e&&Ci(e,pa(e))}));const Aa=Sa(1,"join");const $a=Xi(-1);const ka=ii((function(e,t){return function(r){return function(n){return Wi((function(e){return t(e,n)}),r(e(n)))}}}));const Ta=ii((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=Ki(r)?Xi(r,n):n[r],s+=1}return n}))}));const Ca=ii((function(e,t){return Ta([e],t)[0]}));const Ma=ii((function(e,t){return _i((function(r,n){return r[n]=e(t[n],n,t),r}),{},Ai(t))}));const Ia=eo((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})bi(n,t)&&(s[n]=bi(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)bi(n,r)&&!bi(n,s)&&(s[n]=r[n]);return s}));const Ra=eo((function e(t,r,n){return Ia((function(r,n,s){return qi(n)&&qi(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Fa=ii((function(e,t){return Ra((function(e,t,r){return r}),e,t)}));const Da=ii((function(e,t){return fi(Ni(e),t)}));var Na=function(e){return{value:e,map:function(t){return Na(t(e))}}};const _a=eo((function(e,t,r){return e((function(e){return Na(t(e))}))(r).value}));const qa=eo((function(e,t,r){return Go(e,Ca(t,r))}));const La=eo((function(e,t,r){return e(Ca(t,r))}));const Va=ii((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}));const Ba=eo((function(e,t,r){return Ci(e,Qi(t,r))}));const Ua=eo((function(e,t,r){return Go(e,Qi(t,r))}));const za=eo((function(e,t,r){return e(Qi(t,r))}));function Ha(e){return"[object Number]"===Object.prototype.toString.call(e)}var Ja=ii((function(e,t){if(!Ha(e)||!Ha(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const Ga=Ja;const Wa=si(ci);var Ka=eo((function(e,t,r){return r.replace(e,t)}));const Ya=Ka;var Xa=ii((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Qa=Xa;const Za=Sa(1,"split");const ec=ii((function(e,t){return Ci(ea(e.length,t),e)}));var tc=ii((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 "+Hi(e));var r;return qo(e).test(t)}));const rc=tc;var nc="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;var sc=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=li,e.prototype["@@transducer/result"]=ui,e.prototype["@@transducer/step"]=function(e,t){return vi(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function ic(e){return function(t){return new sc(e,t)}}const oc=ii(ai([],ic,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)vi(e,r=t[n],i)||(i[i.length]=r),n+=1;return i})));const ac=eo((function(e,t,r){return e(r)?t(r):r}));const cc=fo(void 0);const lc=Ci(cc());class uc extends Ys.ON{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(lc(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const pc=uc;class hc extends Ys.ON{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(null===e)return;const t=new Ys.ON([e.start.row,e.start.column,e.start.char]),r=new Ys.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const fc=hc;const mc=yi(1,Do($i,ba("GeneratorFunction")));const dc=yi(1,Do($i,ba("AsyncFunction")));const yc=mo([Do($i,ba("Function")),mc,dc]);const gc=Co(yc);const vc=yi(1,yc(Array.isArray)?Array.isArray:Do($i,ba("Array")));const bc=ko(vc,Pa);var Oc=yi(3,(function(e,t,r){var n=Ca(e,r),s=Ca(xa(e),r);if(!gc(n)&&!bc(e)){var i=io(n,s);return Oo(i,t)}}));const jc=Oc;const wc=ha(Ea),Ec=(e,t)=>"function"==typeof(null==t?void 0:t[e]),xc=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Sc=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},Pc=(e,t)=>{var r,n;return(null==t||null===(r=t.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,e))||!1},Ac=(e,t)=>(null==t?void 0:t.element)===e,$c=e=>e({hasMethod:Ec,hasBasicElementProps:xc,primitiveEq:Sc,isElementType:Ac,hasClass:Pc}),kc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.W_||e(r)&&t(void 0,r))),Tc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.RP||e(r)&&t("string",r))),Cc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.VL||e(r)&&t("number",r))),Mc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.zr||e(r)&&t("null",r))),Ic=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.hh||e(r)&&t("boolean",r))),Rc=$c((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Ys.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Fc=$c((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Ys.ON&&!(n instanceof Ys.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Dc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys.c6||e(n)&&t("member",n)&&r(void 0,n))),Nc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys.EA||e(n)&&t("link",n)&&r(void 0,n))),_c=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys.tK||e(n)&&t("ref",n)&&r(void 0,n))),qc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qs||e(n)&&t("annotation",n)&&r("array",n))),Lc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ei||e(n)&&t("comment",n)&&r("string",n))),Vc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pc||e(n)&&t("parseResult",n)&&r("array",n))),Bc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fc||e(n)&&t("sourceMap",n)&&r("array",n))),Uc=e=>Ac("object",e)||Ac("array",e)||Ac("boolean",e)||Ac("number",e)||Ac("string",e)||Ac("null",e)||Ac("member",e),zc=e=>{var t,r;return Bc(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},Hc=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Fc(r)&&fi(wc(r.toValue()),e)},Jc=(e,t)=>0===e.length||fi(wc(t.classes.toValue()),e);const Gc=Ci(null);const Wc=Co(Gc);function Kc(e){return Kc="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},Kc(e)}const Yc=function(e){return"object"===Kc(e)};const Xc=yi(1,ko(Wc,Yc));var Qc=Do($i,ba("Object")),Zc=Do(Hi,Ci(Hi(Object))),el=La(ko(yc,Zc),["constructor"]);const tl=yi(1,(function(e){if(!Xc(e)||!Qc(e))return!1;var t=Object.getPrototypeOf(e);return!!Gc(t)||el(t)}));class rl extends Ys.lS{constructor(){super(),this.register("annotation",Qs),this.register("comment",ei),this.register("parseResult",pc),this.register("sourceMap",fc)}}const nl=new rl,sl=e=>{const t=new rl;return tl(e)&&t.use(e),t},il=nl;function ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const al=()=>{const e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ol(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s);return{predicates:e,namespace:il}};var cl=r(628);function ll(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=u(e);for(n=0;n<i.length;n++)r=i[n],cl(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(p){var i=p(e);for(n=0;n<i.length;n++)r=i[n],cl(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var ul=r(3992);const pl=yi(1,Do($i,ba("String"))),hl=(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},fl={},ml=e=>null==e?void 0:e.type,dl=e=>"string"==typeof ml(e),yl=(e,{visitFnGetter:t=hl,nodeTypeGetter:r=ml}={})=>{const n=new Array(e.length);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===fl)n[o]=fl;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===fl)n[o]=fl;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}},gl=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=fl,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=hl,nodeTypeGetter:c=ml,nodePredicate:l=dl,detectCycles:u=!0}={})=>{const p=r||{};let h,f,m=Array.isArray(e),d=[e],y=-1,g=[];const v=[],b=[];let O=e;do{y+=1;const e=y===d.length;let r,j;const w=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),j=f,f=b.pop(),w){j=m?j.slice():Object.create(Object.getPrototypeOf(j),Object.getOwnPropertyDescriptors(j));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];m&&(r-=e),m&&n===i?(j.splice(r,1),e+=1):j[r]=n}}y=h.index,d=h.keys,g=h.edits,m=h.inArray,h=h.prev}else{if(r=f?m?y:d[y]:void 0,j=f?f[r]:O,j===i||void 0===j)continue;f&&v.push(r)}if(b.includes(j))continue;let E;if(!Array.isArray(j)){if(!l(j))throw new Error(`Invalid AST Node: ${JSON.stringify(j)}`);if(u&&b.includes(j)){v.pop();continue}const i=a(t,c(j),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(E=i.call(t,j,r,f,v,b),E===s)break;if(E===o){if(!e){v.pop();continue}}else if(void 0!==E&&(g.push([r,E]),!e)){if(!l(E)){v.pop();continue}j=E}}}void 0===E&&w&&g.push([r,j]),e||(h={inArray:m,index:y,keys:d,edits:g,prev:h},m=Array.isArray(j),d=m?j:p[c(j)]||[],y=-1,g=[],f&&b.push(f),f=j)}while(void 0!==h);return 0!==g.length&&([,O]=g[g.length-1]),O};gl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=fl,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=hl,nodeTypeGetter:c=ml,nodePredicate:l=dl,detectCycles:u=!0}={})=>{const p=r||{};let h,f,m=Array.isArray(e),d=[e],y=-1,g=[];const v=[],b=[];let O=e;do{y+=1;const e=y===d.length;let r,j;const w=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),j=f,f=b.pop(),w){j=m?j.slice():Object.create(Object.getPrototypeOf(j),Object.getOwnPropertyDescriptors(j));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];m&&(r-=e),m&&n===i?(j.splice(r,1),e+=1):j[r]=n}}y=h.index,d=h.keys,g=h.edits,m=h.inArray,h=h.prev}else{if(r=f?m?y:d[y]:void 0,j=f?f[r]:O,j===i||void 0===j)continue;f&&v.push(r)}let E;if(!Array.isArray(j)){if(!l(j))throw new Error(`Invalid AST Node: ${JSON.stringify(j)}`);if(u&&b.includes(j)){v.pop();continue}const i=a(t,c(j),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(E=await i.call(t,j,r,f,v,b),E===s)break;if(E===o){if(!e){v.pop();continue}}else if(void 0!==E&&(g.push([r,E]),!e)){if(!l(E)){v.pop();continue}j=E}}}void 0===E&&w&&g.push([r,j]),e||(h={inArray:m,index:y,keys:d,edits:g,prev:h},m=Array.isArray(j),d=m?j:p[c(j)]||[],y=-1,g=[],f&&b.push(f),f=j)}while(void 0!==h);return 0!==g.length&&([,O]=g[g.length-1]),O};const vl=["keyMap"],bl=["keyMap"];function Ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ol(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const wl=e=>Rc(e)?"ObjectElement":Fc(e)?"ArrayElement":Dc(e)?"MemberElement":Tc(e)?"StringElement":Ic(e)?"BooleanElement":Cc(e)?"NumberElement":Mc(e)?"NullElement":Nc(e)?"LinkElement":_c(e)?"RefElement":void 0,El=Do(wl,pl),xl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},Sl=ul({props:{result:[],predicate:ti,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),Pl=(e,t,r={})=>{let{keyMap:n=xl}=r,s=ll(r,vl);return gl(e,t,jl({keyMap:n,nodeTypeGetter:wl,nodePredicate:El},s))};Pl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{let{keyMap:n=xl}=r,s=ll(r,bl);return gl[Symbol.for("nodejs.util.promisify.custom")](e,t,jl({keyMap:n,nodeTypeGetter:wl,nodePredicate:El},s))};const Al=(e,t,r={})=>{if(0===t.length)return e;const n=Ua(al,"toolboxCreator",r),s=Ua({},"visitorOptions",r),i=Ua(wl,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=yl(a.map(Ua({},"visitor")),{nodeTypeGetter:i});a.forEach(jc(["pre"],[]));const l=Pl(e,c,s);return a.forEach(jc(["post"],[])),l};function $l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Tl=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Al(n,r,{toolboxCreator:al,visitorOptions:{nodeTypeGetter:wl}})},Cl=e=>(t,r={})=>Tl(t,kl(kl({},r),{},{Type:e}));Ys.Sb.refract=Cl(Ys.Sb),Ys.ON.refract=Cl(Ys.ON),Ys.RP.refract=Cl(Ys.RP),Ys.hh.refract=Cl(Ys.hh),Ys.zr.refract=Cl(Ys.zr),Ys.VL.refract=Cl(Ys.VL),Ys.EA.refract=Cl(Ys.EA),Ys.tK.refract=Cl(Ys.tK),Qs.refract=Cl(Qs),ei.refract=Cl(ei),pc.refract=Cl(pc),fc.refract=Cl(fc);const Ml=(e,t=new WeakMap)=>(Dc(e)?(t.set(e.key,e),Ml(e.key,t),t.set(e.value,e),Ml(e.value,t)):e.children.forEach((r=>{t.set(r,e),Ml(r,t)})),t),Il=ul.init((function({element:e}){let t;this.transclude=function(r,n){var s;if(r===e)return n;if(r===n)return e;t=null!==(s=t)&&void 0!==s?s:Ml(e);const i=t.get(r);return lc(i)?void 0:(Rc(i)?((e,t,r)=>{const n=r.get(e);Rc(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(r,n,t):Fc(i)?((e,t,r)=>{const n=r.get(e);Fc(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(r,n,t):Dc(i)&&((e,t,r)=>{const n=r.get(e);Dc(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)))})(r,n,t),e)}})),Rl=Il,Fl=["keyMap"],Dl=["keyMap"];function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ql=e=>"string"==typeof(null==e?void 0:e.type)?e.type:wl(e),Ll=_l({EphemeralObject:["content"],EphemeralArray:["content"]},xl),Vl=(e,t,r={})=>{let{keyMap:n=Ll}=r,s=ll(r,Fl);return Pl(e,t,_l({keyMap:n,nodeTypeGetter:ql,nodePredicate:ri,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},s))};Vl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t={})=>{let{keyMap:r=Ll}=t,n=ll(t,Dl);return Pl[Symbol.for("nodejs.util.promisify.custom")](e,visitor,_l({keyMap:r,nodeTypeGetter:ql,nodePredicate:ri,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},n))};const Bl=class{constructor(e){x(this,"type","EphemeralArray"),x(this,"content",[]),x(this,"reference",void 0),this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Ul=class{constructor(e){x(this,"type","EphemeralObject"),x(this,"content",[]),x(this,"reference",void 0),this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},zl=ul.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 r=new Ul(t.content);return e.set(t,r),r}},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 r=new Bl(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:e=>e.toArray()}})),Hl=(e,t=il)=>{if(pl(e))try{return t.fromRefract(JSON.parse(e))}catch{}return tl(e)&&da("element",e)?t.fromRefract(e):t.toElement(e)},Jl=e=>Vl(e,zl());const Gl=Ci("");var Wl=ko(yi(1,Do($i,ba("Number"))),isFinite);var Kl=yi(1,Wl);var Yl=ko(yc(Number.isFinite)?yi(1,io(Number.isFinite,Number)):Kl,_o(Ci,[Math.floor,ja]));var Xl=yi(1,Yl);const Ql=yc(Number.isInteger)?yi(1,io(Number.isInteger,Number)):Xl;var Zl=Jo((function(e,t){return Do(Za(""),aa(wc(e)),Aa(""))(t)}));const eu=Zl;class tu 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}}class ru extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}const nu=Do(Ya(/~/g,"~0"),Ya(/\//g,"~1"),encodeURIComponent),su=Do(Ya(/~1/g,"/"),Ya(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}})),iu=(e,t)=>{const r=(e=>{if(Gl(e))return[];if(!ec("/",e))throw new tu(e);const t=Do(Za("/"),Wi(su))(e);return Fo(t)})(e);return r.reduce(((e,t)=>{if(Rc(e)){if(!e.hasKey(t))throw new ru(`Evaluation failed on token: "${t}"`);return e.get(t)}if(Fc(e)){if(!(t in e.content)||!Ql(Number(t)))throw new ru(`Evaluation failed on token: "${t}"`);return e.get(Number(t))}throw new ru(`Evaluation failed on token: "${t}"`)}),t)},ou=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return eu("#",t)};class au extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const cu=au;class lu extends Ys.Sb{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)}}const uu=lu;class pu extends Ys.Sb{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)}}const hu=pu;class fu extends Ys.Sb{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)}}const mu=fu;class du extends Ys.Sb{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)}}const yu=du;class gu extends Ys.Sb{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)}}const vu=gu;class bu extends Ys.Sb{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)}}const Ou=bu;class ju extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ys.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ys.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(ju.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const wu=ju;class Eu extends Ys.Sb{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)}}const xu=Eu;class Su extends Ys.Sb{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)}}const Pu=Su;class Au extends Ys.Sb{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 Tc(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Tc(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 $u=Au;class ku extends Ys.Sb{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)}}const Tu=ku;class Cu extends Ys.Sb{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)}}const Mu=Cu;class Iu extends Ys.Sb{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)}}const Ru=Iu;class Fu extends Ys.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Du=Fu;class Nu extends Ys.Sb{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)}}const _u=Nu;class qu extends Ys.Sb{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 Ys.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Lu=qu;class Vu extends Ys.Sb{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 Ys.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ys.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Vu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Bu=Vu;class Uu extends Ys.Sb{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)}}const zu=Uu;class Hu extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Ju=Hu;class Gu extends Ys.Sb{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)}}const Wu=Gu;class Ku extends Ys.Sb{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 Ys.hh(!1)}set required(e){this.set("required",e)}}const Yu=Ku;class Xu extends Ys.Sb{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)}}const Qu=Xu;class Zu extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ep=Zu;class tp extends Ys.Sb{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("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 rp=tp;class np extends Ys.Sb{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)}}const sp=np;class ip extends Ys.Sb{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)}}const op=ip;class ap extends Ys.Sb{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 cp=ap,lp=(e,t)=>{const r=Go(e,t);return Ma((e=>{if(tl(e)&&da("$ref",e)&&za(pl,"$ref",e)){const t=Ca(["$ref"],e),n=eu("#/",t);return Ca(n.split("/"),r)}return tl(e)?lp(e,r):e}),e)},up=ul({props:{element:null},methods:{copyMetaAndAttributes(e,t){zc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),pp=up,hp=ul(pp,{methods:{enter(e){return this.element=e.clone(),fl}}});const fp=fo(cc());function mp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const dp=e=>{if(kc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},yp=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mp(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},xl);function gp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const bp=ul(pp,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Va(this.passingOptionsNames,this)},retrieveFixedFields(e){return Do(Ca(["visitors",...e,"fixedFields"]),Ai)(this.specObj)},retrieveVisitor(e){return La(yc,["visitors",...e],this.specObj)?Ca(["visitors",...e],this.specObj):Ca(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(vp(vp({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return lc(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(Pl(t,n,vp({keyMap:yp,nodeTypeGetter:dp},r)),n.element)}}}),Op=ul(bp,{props:{specPath:fp,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Tc(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Ys.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),fl}}}),jp=Op,wp=ul(jp,hp,{props:{specPath:fo(["document","objects","JSONSchema"])},init(){this.element=new rp}}),Ep=hp,xp=hp,Sp=hp,Pp=hp,Ap=hp,$p=hp,kp=hp,Tp=hp,Cp=hp,Mp=hp,Ip=ul({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Rp=e=>Rc(e)&&e.hasKey("$ref"),Fp=ul(bp,Ip,hp,{methods:{ObjectElement(e){const t=Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),fl},ArrayElement(e){return this.element=new Ys.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}}),Dp=hp,Np=hp,_p=hp,qp=hp,Lp=hp,Vp=ul(hp,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),fl}}});const Bp=Co(yi(1,ko(Wc,la(Yc,yc))));const Up=Co(Pa);const zp=ho([pl,Bp,Up]),Hp=ul(bp,{props:{fieldPatternPredicate:ti,specPath:fp,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Ys.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),fl}}}),Jp=ul(Hp,{props:{fieldPatternPredicate:zp}}),Gp=ul(Jp,Ip,hp,{props:{specPath:e=>Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-properties")}}),Wp=ul(Jp,Ip,hp,{props:{specPath:e=>Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-patternProperties")}}),Kp=ul(Jp,Ip,hp,{props:{specPath:e=>Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-dependencies")}}),Yp=ul(hp,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),fl}}}),Xp=ul(hp,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),fl},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),fl}}}),Qp=ul(bp,Ip,hp,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}}),Zp=ul(bp,Ip,hp,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}}),eh=ul(bp,Ip,hp,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}}),th=ul(Jp,Ip,hp,{props:{specPath:e=>Rp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-definitions")}}),rh=hp,nh=hp,sh=hp,ih=hp,oh=hp,ah=ul(bp,Ip,hp,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),fl}}}),ch=hp,lh=ul(jp,hp,{props:{specPath:fo(["document","objects","JSONReference"])},init(){this.element=new sp},methods:{ObjectElement(e){const t=jp.compose.methods.ObjectElement.call(this,e);return Tc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),uh=ul(hp,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fl}}});const ph=Co(Eo);const hh=ko(vc,Up);function fh(e){return function(e){if(Array.isArray(e))return mh(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 mh(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mh(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 mh(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}var dh=Do(Qa(To((function(e,t){return e.length>t.length}))),ga,Qi("length")),yh=Jo((function(e,t,r){var n=r.apply(void 0,fh(e));return ph(n)?Wa(n):t}));const gh=wa(hh,(function(e){var t=dh(e);return yi(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return po(yh(r),void 0,e)}))}),cc),vh=ul(bp,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>wa(e,fo(t),cc))),r=gh(t)(e);return this.element=this.toRefractedElement(r,e),fl}}}),bh=ul(vh,{props:{alternator:[{predicate:Rp,specPath:["document","objects","JSONReference"]},{predicate:ri,specPath:["document","objects","JSONSchema"]}]}}),Oh={visitors:{value:hp,JSONSchemaOrJSONReferenceVisitor:bh,document:{objects:{JSONSchema:{$visitor:wp,fixedFields:{id:Ep,$schema:xp,multipleOf:Sp,maximum:Pp,exclusiveMaximum:Ap,minimum:$p,exclusiveMinimum:kp,maxLength:Tp,minLength:Cp,pattern:Mp,additionalItems:bh,items:Fp,maxItems:Dp,minItems:Np,uniqueItems:_p,maxProperties:qp,minProperties:Lp,required:Vp,properties:Gp,additionalProperties:bh,patternProperties:Wp,dependencies:Kp,enum:Yp,type:Xp,allOf:Qp,anyOf:Zp,oneOf:eh,not:bh,definitions:th,title:rh,description:nh,default:sh,format:ih,base:oh,links:ah,media:{$ref:"#/visitors/document/objects/Media"},readOnly:ch}},JSONReference:{$visitor:lh,fixedFields:{$ref:uh}},Media:{$visitor:ul(jp,hp,{props:{specPath:fo(["document","objects","Media"])},init(){this.element=new op}}),fixedFields:{binaryEncoding:hp,type:hp}},LinkDescription:{$visitor:ul(jp,hp,{props:{specPath:fo(["document","objects","LinkDescription"])},init(){this.element=new cp}}),fixedFields:{href:hp,rel:hp,title:hp,targetSchema:bh,mediaType:hp,method:hp,encType:hp,schema:bh}}}}}},jh=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rp||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),wh=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sp||e(n)&&t("JSONReference",n)&&r("object",n))),Eh=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof op||e(n)&&t("media",n)&&r("object",n))),xh=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cp||e(n)&&t("linkDescription",n)&&r("object",n))),Sh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",rp),t.register("jSONReference",sp),t.register("media",op),t.register("linkDescription",cp),t}};function Ph(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ah(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ph(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ph(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const $h=()=>{const e=sl(Sh);return{predicates:Ah(Ah({},i),{},{isStringElement:Tc}),namespace:e}};function kh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Th=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Oh}={})=>{const s=(0,Ys.Qc)(e),i=lp(n),o=jc(t,[],i);return Pl(s,o,{state:{specObj:i}}),Al(o.element,r,{toolboxCreator:$h,visitorOptions:{keyMap:yp,nodeTypeGetter:dp}})},Ch=e=>(t,r={})=>Th(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kh(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));rp.refract=Ch(["visitors","document","objects","JSONSchema","$visitor"]),sp.refract=Ch(["visitors","document","objects","JSONReference","$visitor"]),op.refract=Ch(["visitors","document","objects","Media","$visitor"]),cp.refract=Ch(["visitors","document","objects","LinkDescription","$visitor"]);const Mh=class extends rp{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Ih extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Rh=Ih;class Fh extends Ys.Sb{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)}}const Dh=Fh;class Nh extends Ys.Sb{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)}}const _h=Nh;class qh extends Ys.Sb{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)}}const Lh=qh;class Vh extends Ys.Sb{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)}}const Bh=Vh;class Uh extends Ys.Sb{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 zh=Uh,Hh=ul({props:{element:null},methods:{copyMetaAndAttributes(e,t){zc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Jh=Hh;function Gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Wh=e=>{if(kc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Kh=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gh(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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"]},xl);function Yh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Qh=ul(Jh,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return Va(this.passingOptionsNames,this)},retrieveFixedFields(e){return Do(Ca(["visitors",...e,"fixedFields"]),Ai)(this.specObj)},retrieveVisitor(e){return La(yc,["visitors",...e],this.specObj)?Ca(["visitors",...e],this.specObj):Ca(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Xh(Xh({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return lc(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(Pl(t,n,Xh({keyMap:Kh,nodeTypeGetter:Wh},r)),n.element)}}}),Zh=e=>Rc(e)&&e.hasKey("openapi")&&e.hasKey("info"),ef=e=>Rc(e)&&e.hasKey("name")&&e.hasKey("in"),tf=e=>Rc(e)&&e.hasKey("$ref"),rf=e=>Rc(e)&&e.hasKey("content"),nf=e=>Rc(e)&&e.hasKey("description"),sf=Rc,of=Rc,af=e=>Tc(e.key)&&ec("x-",e.key.toValue()),cf=ul(Qh,{props:{specPath:fp,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:af},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Tc(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Ys.c6(n.clone(),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(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),fl}}}),lf=cf,uf=ul(Jh,{methods:{enter(e){return this.element=e.clone(),fl}}}),pf=ul(lf,uf,{props:{specPath:fo(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new _u},methods:{ObjectElement(e){return this.unrefractedElement=e,lf.compose.methods.ObjectElement.call(this,e)}}}),hf=ul(Qh,uf,{methods:{StringElement(e){const t=new Du(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,fl}}}),ff=ul(Qh,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),fl}}}),mf=ul(lf,uf,{props:{specPath:fo(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new xu}}),df=uf,yf=uf,gf=uf,vf=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),fl}}}),bf=ul(lf,uf,{props:{specPath:fo(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new hu}}),Of=uf,jf=uf,wf=uf,Ef=ul(lf,uf,{props:{specPath:fo(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Pu}}),xf=uf,Sf=uf,Pf=ul(lf,uf,{props:{specPath:fo(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new $u},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return(Tc(this.element.operationId)||Tc(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),Af=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fl}}}),$f=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fl}}}),kf=ul(Qh,{props:{fieldPatternPredicate:ti,specPath:fp,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:af},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{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(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Ys.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),fl}}}),Tf=kf,Cf=ul(Tf,{props:{fieldPatternPredicate:zp}});class Mf extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Mf.primaryClass)}}x(Mf,"primaryClass","link-parameters");const If=Mf,Rf=ul(Cf,uf,{props:{specPath:fo(["value"])},init(){this.element=new If}}),Ff=uf,Df=uf,Nf=ul(lf,uf,{props:{specPath:fo(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new _h}}),_f=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),fl}}}),qf=uf;class Lf extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Lf.primaryClass)}}x(Lf,"primaryClass","servers");const Vf=Lf,Bf=ul(Qh,uf,{init(){this.element=new Vf},methods:{ArrayElement(e){return e.forEach((e=>{const t=sf(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}}),Uf=ul(lf,uf,{props:{specPath:fo(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Lh}}),zf=uf,Hf=uf,Jf=uf;class Gf extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Gf.primaryClass)}}x(Gf,"primaryClass","server-variables");const Wf=Gf,Kf=ul(Cf,uf,{props:{specPath:fo(["document","objects","ServerVariable"])},init(){this.element=new Wf}}),Yf=ul(lf,uf,{props:{specPath:fo(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Tu}}),Xf=ul(Qh,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>wa(e,fo(t),cc))),r=gh(t)(e);return this.element=this.toRefractedElement(r,e),fl}}}),Qf=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cu||e(n)&&t("callback",n)&&r("object",n))),Zf=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uu||e(n)&&t("components",n)&&r("object",n))),em=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hu||e(n)&&t("contact",n)&&r("object",n))),tm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vu||e(n)&&t("example",n)&&r("object",n))),rm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ou||e(n)&&t("externalDocumentation",n)&&r("object",n))),nm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wu||e(n)&&t("header",n)&&r("object",n))),sm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xu||e(n)&&t("info",n)&&r("object",n))),im=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pu||e(n)&&t("license",n)&&r("object",n))),om=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $u||e(n)&&t("link",n)&&r("object",n))),am=e=>{if(!om(e))return!1;if(!Tc(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},cm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Du||e(n)&&t("openapi",n)&&r("string",n))),lm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof _u||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),um=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lu||e(n)&&t("operation",n)&&r("object",n))),pm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bu||e(n)&&t("parameter",n)&&r("object",n))),hm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zu||e(n)&&t("pathItem",n)&&r("object",n))),fm=e=>{if(!hm(e))return!1;if(!Tc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},mm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ju||e(n)&&t("paths",n)&&r("object",n))),dm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wu||e(n)&&t("reference",n)&&r("object",n))),ym=e=>{if(!dm(e))return!1;if(!Tc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yu||e(n)&&t("requestBody",n)&&r("object",n))),vm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qu||e(n)&&t("response",n)&&r("object",n))),bm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ep||e(n)&&t("responses",n)&&r("object",n))),Om=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mh||e(n)&&t("schema",n)&&r("object",n))),jm=e=>Ic(e)&&e.classes.includes("boolean-json-schema"),wm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rh||e(n)&&t("securityRequirement",n)&&r("object",n))),Em=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _h||e(n)&&t("server",n)&&r("object",n))),xm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lh||e(n)&&t("serverVariable",n)&&r("object",n))),Sm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tu||e(n)&&t("mediaType",n)&&r("object",n))),Pm=ul(Xf,uf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Xf.compose.methods.enter.call(this,e);return dm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Am=uf,$m=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Ys.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class km extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(km.primaryClass),this.classes.push("examples")}}x(km,"primaryClass","media-type-examples");const Tm=km,Cm=ul($m,{init(){this.element=new Tm}});class Mm extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Mm.primaryClass)}}x(Mm,"primaryClass","media-type-encoding");const Im=Mm,Rm=ul(Cf,uf,{props:{specPath:fo(["document","objects","Encoding"])},init(){this.element=new Im}}),Fm=ul(Cf,uf,{props:{specPath:fo(["value"])},init(){this.element=new Rh}});class Dm extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Dm.primaryClass)}}x(Dm,"primaryClass","security");const Nm=Dm,_m=ul(Qh,uf,{init(){this.element=new Nm},methods:{ArrayElement(e){return e.forEach((e=>{if(Rc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),fl}}}),qm=ul(lf,uf,{props:{specPath:fo(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new uu}}),Lm=ul(lf,uf,{props:{specPath:fo(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bh}}),Vm=uf,Bm=uf,Um=ul(lf,uf,{props:{specPath:fo(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Wu},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return Tc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),zm=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fl}}}),Hm=ul(lf,uf,{props:{specPath:fo(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bu},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return Rc(this.element.contentProp)&&this.element.contentProp.filter(Sm).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Jm=uf,Gm=uf,Wm=uf,Km=uf,Ym=uf,Xm=uf,Qm=uf,Zm=uf,ed=uf,td=ul(Xf,uf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Xf.compose.methods.enter.call(this,e);return dm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),rd=ul(lf,uf,{props:{specPath:fo(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new wu}}),nd=uf,sd=uf,id=uf,od=uf,ad=uf,cd=uf,ld=uf,ud=ul(Xf,uf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Xf.compose.methods.enter.call(this,e);return dm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),pd=uf;class hd extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(hd.primaryClass),this.classes.push("examples")}}x(hd,"primaryClass","header-examples");const fd=hd,md=ul($m,{init(){this.element=new fd}}),dd=ul(Cf,uf,{props:{specPath:fo(["document","objects","MediaType"])},init(){this.element=new Ys.Sb,this.element.classes.push("content")}});class yd extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yd.primaryClass),this.classes.push("content")}}x(yd,"primaryClass","header-content");const gd=yd,vd=ul(dd,{init(){this.element=new gd}}),bd=ul(lf,uf,{props:{specPath:fo(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mh}}),{allOf:Od}=Oh.visitors.document.objects.JSONSchema.fixedFields,jd=ul(Od,{methods:{ArrayElement(e){const t=Od.compose.methods.ArrayElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:wd}=Oh.visitors.document.objects.JSONSchema.fixedFields,Ed=ul(wd,{methods:{ArrayElement(e){const t=wd.compose.methods.ArrayElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:xd}=Oh.visitors.document.objects.JSONSchema.fixedFields,Sd=ul(xd,{methods:{ArrayElement(e){const t=xd.compose.methods.ArrayElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:Pd}=Oh.visitors.document.objects.JSONSchema.fixedFields,Ad=ul(Pd,{methods:{ObjectElement(e){const t=Pd.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:$d}=Oh.visitors.document.objects.JSONSchema.fixedFields,kd=ul($d,{methods:{ObjectElement(e){const t=$d.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Td}=Oh.visitors.document.objects.JSONSchema.fixedFields,Cd=ul(Td,{methods:{ObjectElement(e){const t=Td.compose.methods.ObjectElement.call(this,e);return dm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),fl}}}),{properties:Md}=Oh.visitors.document.objects.JSONSchema.fixedFields,Id=ul(Md,{methods:{ObjectElement(e){const t=Md.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:Rd}=Oh.visitors.document.objects.JSONSchema.fixedFields,Fd=ul(Rd,{methods:{ObjectElement(e){const t=Rd.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Dd}=Oh.visitors.document.objects.JSONSchema.fixedFields,Nd=ul(Dd,{methods:{ArrayElement(e){return this.element=e.clone(),fl}}}),_d=uf,qd=uf,Ld=uf,Vd=uf,{JSONSchemaOrJSONReferenceVisitor:Bd}=Oh.visitors,Ud=ul(Bd,{methods:{ObjectElement(e){const t=Bd.compose.methods.enter.call(this,e);return dm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),zd=Object.fromEntries(Object.entries(Oh.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Oh.visitors.JSONSchemaOrJSONReferenceVisitor?[e,Ud]:[e,t]))),Hd=ul(lf,uf,{props:{specPath:fo(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new mu}}),Jd=uf;class Gd extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Gd.primaryClass)}}x(Gd,"primaryClass","discriminator-mapping");const Wd=Gd,Kd=ul(Cf,uf,{props:{specPath:fo(["value"])},init(){this.element=new Wd}}),Yd=ul(lf,uf,{props:{specPath:fo(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new zh}}),Xd=uf,Qd=uf,Zd=uf,ey=uf,ty=uf,ry=uf;class ny extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ny.primaryClass),this.classes.push("examples")}}x(ny,"primaryClass","parameter-examples");const sy=ny,iy=ul($m,{init(){this.element=new sy}});class oy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(oy.primaryClass),this.classes.push("content")}}x(oy,"primaryClass","parameter-content");const ay=oy,cy=ul(dd,{init(){this.element=new ay}});class ly extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ly.primaryClass)}}x(ly,"primaryClass","components-schemas");const uy=ly,py=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new uy},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class hy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(hy.primaryClass)}}x(hy,"primaryClass","components-responses");const fy=hy,my=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new fy},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(vm).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}}),dy=my;class yy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yy.primaryClass),this.classes.push("parameters")}}x(yy,"primaryClass","components-parameters");const gy=yy,vy=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new gy},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class by extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(by.primaryClass),this.classes.push("examples")}}x(by,"primaryClass","components-examples");const Oy=by,jy=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new Oy},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class wy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wy.primaryClass)}}x(wy,"primaryClass","components-request-bodies");const Ey=wy,xy=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new Ey},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class Sy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Sy.primaryClass)}}x(Sy,"primaryClass","components-headers");const Py=Sy,Ay=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Py},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(nm).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),$y=Ay;class ky extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ky.primaryClass)}}x(ky,"primaryClass","components-security-schemes");const Ty=ky,Cy=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new Ty},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class My extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(My.primaryClass)}}x(My,"primaryClass","components-links");const Iy=My,Ry=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Iy},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Fy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Fy.primaryClass)}}x(Fy,"primaryClass","components-callbacks");const Dy=Fy,Ny=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Dy},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),_y=ul(lf,uf,{props:{specPath:fo(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new vu},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return Tc(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),qy=uf,Ly=uf,Vy=uf,By=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fl}}}),Uy=ul(lf,uf,{props:{specPath:fo(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ou}}),zy=uf,Hy=uf,Jy=ul(lf,uf,{props:{specPath:fo(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new yu},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return Rc(this.element.headers)&&this.element.headers.filter(nm).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Gy=uf;class Wy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Wy.primaryClass)}}x(Wy,"primaryClass","encoding-headers");const Ky=Wy,Yy=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Ky},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!nm(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),Xy=Yy,Qy=uf,Zy=uf,eg=uf,tg=ul(Tf,uf,{props:{fieldPatternPredicate:rc(/^\/(?<path>.*)$/),specPath:fo(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ju},methods:{ObjectElement(e){const t=Tf.compose.methods.ObjectElement.call(this,e);return this.element.filter(hm).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),rg=ul(lf,uf,{props:{specPath:fo(["document","objects","RequestBody"])},init(){this.element=new Yu},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return Rc(this.element.contentProp)&&this.element.contentProp.filter(Sm).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),ng=uf;class sg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(sg.primaryClass),this.classes.push("content")}}x(sg,"primaryClass","request-body-content");const ig=sg,og=ul(dd,{init(){this.element=new ig}}),ag=uf,cg=ul(Tf,uf,{props:{fieldPatternPredicate:rc(/{(?<expression>.*)}/),specPath:fo(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new cu},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(hm).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),lg=ul(lf,uf,{props:{specPath:fo(["document","objects","Response"])},init(){this.element=new Qu},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return Rc(this.element.contentProp)&&this.element.contentProp.filter(Sm).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),Rc(this.element.headers)&&this.element.headers.filter(nm).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),ug=uf;class pg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(pg.primaryClass)}}x(pg,"primaryClass","response-headers");const hg=pg,fg=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new hg},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!nm(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}}),mg=fg;class dg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(dg.primaryClass),this.classes.push("content")}}x(dg,"primaryClass","response-content");const yg=dg,gg=ul(dd,{init(){this.element=new yg}});class vg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(vg.primaryClass)}}x(vg,"primaryClass","response-links");const bg=vg,Og=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new bg},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),jg=ul(lf,Tf,{props:{specPathFixedFields:fp,specPathPatternedFields:fp},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Xo(e.keys(),t)],lf.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Tf.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return fl}}}),wg=ul(jg,uf,{props:{specPathFixedFields:fo(["document","objects","Responses"]),specPathPatternedFields:e=>tf(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:rc(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ga(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ep},methods:{ObjectElement(e){const t=jg.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(vm).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),Eg=wg,xg=ul(Xf,uf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Xf.compose.methods.enter.call(this,e);return dm(this.element)?this.element.setMetaProperty("referenced-element","response"):vm(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),Sg=ul(lf,uf,{props:{specPath:fo(["document","objects","Operation"])},init(){this.element=new Lu}});class Pg extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Pg.primaryClass)}}x(Pg,"primaryClass","operation-tags");const Ag=Pg,$g=ul(uf,{init(){this.element=new Ag},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),fl}}}),kg=uf,Tg=uf,Cg=uf;class Mg extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Mg.primaryClass),this.classes.push("parameters")}}x(Mg,"primaryClass","operation-parameters");const Ig=Mg,Rg=ul(Qh,uf,{init(){this.element=new Ys.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=tf(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);dm(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}}),Fg=ul(Rg,{init(){this.element=new Ig}}),Dg=ul(Xf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Xf.compose.methods.enter.call(this,e);return dm(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Ng extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ng.primaryClass)}}x(Ng,"primaryClass","operation-callbacks");const _g=Ng,qg=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new _g},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(dm).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Lg=uf;class Vg extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Vg.primaryClass),this.classes.push("security")}}x(Vg,"primaryClass","operation-security");const Bg=Vg,Ug=ul(Qh,uf,{init(){this.element=new Bg},methods:{ArrayElement(e){return e.forEach((e=>{const t=Rc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}});class zg extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(zg.primaryClass),this.classes.push("servers")}}x(zg,"primaryClass","operation-servers");const Hg=zg,Jg=ul(Bf,{init(){this.element=new Hg}}),Gg=ul(lf,uf,{props:{specPath:fo(["document","objects","PathItem"])},init(){this.element=new zu},methods:{ObjectElement(e){const t=lf.compose.methods.ObjectElement.call(this,e);return this.element.filter(um).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Tc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Wg=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fl}}}),Kg=uf,Yg=uf;class Xg extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Xg.primaryClass),this.classes.push("servers")}}x(Xg,"primaryClass","path-item-servers");const Qg=Xg,Zg=ul(Bf,{init(){this.element=new Qg}});class ev extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(ev.primaryClass),this.classes.push("parameters")}}x(ev,"primaryClass","path-item-parameters");const tv=ev,rv=ul(Rg,{init(){this.element=new tv}}),nv=ul(lf,uf,{props:{specPath:fo(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Dh}}),sv=uf,iv=uf,ov=uf,av=uf,cv=uf,lv=uf,uv=uf,pv=ul(lf,uf,{props:{specPath:fo(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ru}}),hv=ul(lf,uf,{props:{specPath:fo(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mu}}),fv=uf,mv=uf,dv=uf;class yv extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yv.primaryClass)}}x(yv,"primaryClass","oauth-flow-scopes");const gv=yv,vv=ul(Cf,uf,{props:{specPath:fo(["value"])},init(){this.element=new gv}});class bv extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(bv.primaryClass)}}x(bv,"primaryClass","tags");const Ov=bv,jv=ul(Qh,uf,{init(){this.element=new Ov},methods:{ArrayElement(e){return e.forEach((e=>{const t=of(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fl}}});function wv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ev(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wv(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const xv={$visitor:Um,fixedFields:{$ref:zm}},Sv={$visitor:bd,fixedFields:Ev(Ev({},zd),{},{allOf:jd,anyOf:Ed,oneOf:Sd,definitions:Ad,items:Cd,dependencies:kd,properties:Id,patternProperties:Fd,type:Nd,nullable:_d,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:qd,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Ld,deprecated:Vd})},Pv={visitors:{value:uf,document:{objects:{OpenApi:{$visitor:pf,fixedFields:{openapi:hf,info:{$ref:"#/visitors/document/objects/Info"},servers:Bf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:_m,tags:jv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:mf,fixedFields:{title:df,description:yf,termsOfService:gf,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:vf}},Contact:{$visitor:bf,fixedFields:{name:Of,url:jf,email:wf}},License:{$visitor:Ef,fixedFields:{name:xf,url:Sf}},Server:{$visitor:Nf,fixedFields:{url:_f,description:qf,variables:Kf}},ServerVariable:{$visitor:Uf,fixedFields:{enum:zf,default:Hf,description:Jf}},Components:{$visitor:qm,fixedFields:{schemas:py,responses:dy,parameters:vy,examples:jy,requestBodies:xy,headers:$y,securitySchemes:Cy,links:Ry,callbacks:Ny}},Paths:{$visitor:tg},PathItem:{$visitor:Gg,fixedFields:{$ref:Wg,summary:Kg,description:Yg,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:Zg,parameters:rv}},Operation:{$visitor:Sg,fixedFields:{tags:$g,summary:kg,description:Tg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Cg,parameters:Fg,requestBody:Dg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:qg,deprecated:Lg,security:Ug,servers:Jg}},ExternalDocumentation:{$visitor:Uy,fixedFields:{description:zy,url:Hy}},Parameter:{$visitor:Hm,fixedFields:{name:Jm,in:Gm,description:Wm,required:Km,deprecated:Ym,allowEmptyValue:Xm,style:Qm,explode:Zm,allowReserved:ed,schema:td,example:ry,examples:iy,content:cy}},RequestBody:{$visitor:rg,fixedFields:{description:ng,content:og,required:ag}},MediaType:{$visitor:Yf,fixedFields:{schema:Pm,example:Am,examples:Cm,encoding:Rm}},Encoding:{$visitor:Jy,fixedFields:{contentType:Gy,headers:Xy,style:Qy,explode:Zy,allowReserved:eg}},Responses:{$visitor:Eg,fixedFields:{default:xg}},Response:{$visitor:lg,fixedFields:{description:ug,headers:mg,content:gg,links:Og}},Callback:{$visitor:cg},Example:{$visitor:_y,fixedFields:{summary:qy,description:Ly,value:Vy,externalValue:By}},Link:{$visitor:Pf,fixedFields:{operationRef:Af,operationId:$f,parameters:Rf,requestBody:Ff,description:Df,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:rd,fixedFields:{description:nd,required:sd,deprecated:id,allowEmptyValue:od,style:ad,explode:cd,allowReserved:ld,schema:ud,example:pd,examples:md,content:vd}},Tag:{$visitor:Lm,fixedFields:{name:Vm,description:Bm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:xv,Reference:xv,JSONSchema:Sv,Schema:Sv,LinkDescription:Oh.visitors.document.objects.LinkDescription,Media:Oh.visitors.document.objects.Media,Discriminator:{$visitor:Hd,fixedFields:{propertyName:Jd,mapping:Kd}},XML:{$visitor:Yd,fixedFields:{name:Xd,namespace:Qd,prefix:Zd,attribute:ey,wrapped:ty}},SecurityScheme:{$visitor:nv,fixedFields:{type:sv,description:iv,name:ov,in:av,scheme:cv,bearerFormat:lv,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:uv}},OAuthFlows:{$visitor:pv,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:hv,fixedFields:{authorizationUrl:fv,tokenUrl:mv,refreshUrl:dv,scopes:vv}},SecurityRequirement:{$visitor:Fm}},extension:{$visitor:ff}}}},Av={namespace:e=>{const{base:t}=e;return t.register("callback",cu),t.register("components",uu),t.register("contact",hu),t.register("discriminator",mu),t.register("encoding",yu),t.register("example",vu),t.register("externalDocumentation",Ou),t.register("header",wu),t.register("info",xu),t.register("license",Pu),t.register("link",$u),t.register("mediaType",Tu),t.register("oAuthFlow",Mu),t.register("oAuthFlows",Ru),t.register("openapi",Du),t.register("openApi3_0",_u),t.register("operation",Lu),t.register("parameter",Bu),t.register("pathItem",zu),t.register("paths",Ju),t.register("reference",Wu),t.register("requestBody",Yu),t.register("response",Qu),t.register("responses",ep),t.register("schema",Mh),t.register("securityRequirement",Rh),t.register("securityScheme",Dh),t.register("server",_h),t.register("serverVariable",Lh),t.register("tag",Bh),t.register("xml",zh),t}};function $v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Tv=()=>{const e=sl(Av);return{predicates:kv(kv(kv({},o),a),{},{isStringElement:Tc}),namespace:e}};function Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Mv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ys.Qc)(e),s=lp(Pv),i=jc(t,[],s);return Pl(n,i,{state:{specObj:s}}),Al(i.element,r,{toolboxCreator:Tv,visitorOptions:{keyMap:Kh,nodeTypeGetter:Wh}})},Iv=e=>(t,r={})=>Mv(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cv(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));cu.refract=Iv(["visitors","document","objects","Callback","$visitor"]),uu.refract=Iv(["visitors","document","objects","Components","$visitor"]),hu.refract=Iv(["visitors","document","objects","Contact","$visitor"]),vu.refract=Iv(["visitors","document","objects","Example","$visitor"]),mu.refract=Iv(["visitors","document","objects","Discriminator","$visitor"]),yu.refract=Iv(["visitors","document","objects","Encoding","$visitor"]),Ou.refract=Iv(["visitors","document","objects","ExternalDocumentation","$visitor"]),wu.refract=Iv(["visitors","document","objects","Header","$visitor"]),xu.refract=Iv(["visitors","document","objects","Info","$visitor"]),Pu.refract=Iv(["visitors","document","objects","License","$visitor"]),$u.refract=Iv(["visitors","document","objects","Link","$visitor"]),Tu.refract=Iv(["visitors","document","objects","MediaType","$visitor"]),Mu.refract=Iv(["visitors","document","objects","OAuthFlow","$visitor"]),Ru.refract=Iv(["visitors","document","objects","OAuthFlows","$visitor"]),Du.refract=Iv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),_u.refract=Iv(["visitors","document","objects","OpenApi","$visitor"]),Lu.refract=Iv(["visitors","document","objects","Operation","$visitor"]),Bu.refract=Iv(["visitors","document","objects","Parameter","$visitor"]),zu.refract=Iv(["visitors","document","objects","PathItem","$visitor"]),Ju.refract=Iv(["visitors","document","objects","Paths","$visitor"]),Wu.refract=Iv(["visitors","document","objects","Reference","$visitor"]),Yu.refract=Iv(["visitors","document","objects","RequestBody","$visitor"]),Qu.refract=Iv(["visitors","document","objects","Response","$visitor"]),ep.refract=Iv(["visitors","document","objects","Responses","$visitor"]),Mh.refract=Iv(["visitors","document","objects","Schema","$visitor"]),Rh.refract=Iv(["visitors","document","objects","SecurityRequirement","$visitor"]),Dh.refract=Iv(["visitors","document","objects","SecurityScheme","$visitor"]),_h.refract=Iv(["visitors","document","objects","Server","$visitor"]),Lh.refract=Iv(["visitors","document","objects","ServerVariable","$visitor"]),Bh.refract=Iv(["visitors","document","objects","Tag","$visitor"]),zh.refract=Iv(["visitors","document","objects","XML","$visitor"]);const Rv=class extends cu{};const Fv=class extends uu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Dv=class extends hu{};const Nv=class extends mu{};const _v=class extends yu{};const qv=class extends vu{};const Lv=class extends Ou{};const Vv=class extends wu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Bv=class extends xu{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 Uv extends Ys.RP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}x(Uv,"default",new Uv("https://spec.openapis.org/oas/3.1/dialect/base"));const zv=Uv;const Hv=class extends Pu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Jv=class extends $u{};const Gv=class extends Tu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Wv=class extends Mu{};const Kv=class extends Ru{};const Yv=class extends Du{};class Xv extends Ys.Sb{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)}}const Qv=Xv;const Zv=class extends Lu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const eb=class extends Bu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const tb=class extends zu{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 rb=class extends Ju{};class nb extends Wu{}Object.defineProperty(nb.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(nb.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const sb=nb;const ib=class extends Yu{};const ob=class extends Qu{};const ab=class extends ep{};class cb extends Ys.Sb{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)}}const lb=cb;const ub=class extends Rh{};const pb=class extends Dh{};const hb=class extends _h{};const fb=class extends Lh{};const mb=class extends Bh{};const db=class extends zh{},yb=ul(lf,uf,{props:{specPath:fo(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qv,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,lf.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:gb}}}}}=Pv,vb=ul(gb,{init(){this.element=new Bv}}),bb=uf,{visitors:{document:{objects:{Contact:{$visitor:Ob}}}}}=Pv,jb=ul(Ob,{init(){this.element=new Dv}}),{visitors:{document:{objects:{License:{$visitor:wb}}}}}=Pv,Eb=ul(wb,{init(){this.element=new Hv}}),xb=uf,{visitors:{document:{objects:{Link:{$visitor:Sb}}}}}=Pv,Pb=ul(Sb,{init(){this.element=new Jv}}),Ab=ul(Qh,uf,{methods:{StringElement(e){const t=new zv(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,fl}}}),{visitors:{document:{objects:{Server:{$visitor:$b}}}}}=Pv,kb=ul($b,{init(){this.element=new hb}}),{visitors:{document:{objects:{ServerVariable:{$visitor:Tb}}}}}=Pv,Cb=ul(Tb,{init(){this.element=new fb}}),{visitors:{document:{objects:{MediaType:{$visitor:Mb}}}}}=Pv,Ib=ul(Mb,{init(){this.element=new Gv}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:Rb}}}}}=Pv,Fb=ul(Rb,{init(){this.element=new ub}}),{visitors:{document:{objects:{Components:{$visitor:Db}}}}}=Pv,Nb=ul(Db,{init(){this.element=new Fv}}),{visitors:{document:{objects:{Tag:{$visitor:_b}}}}}=Pv,qb=ul(_b,{init(){this.element=new mb}}),{visitors:{document:{objects:{Reference:{$visitor:Lb}}}}}=Pv,Vb=ul(Lb,{init(){this.element=new sb}}),Bb=uf,Ub=uf,{visitors:{document:{objects:{Parameter:{$visitor:zb}}}}}=Pv,Hb=ul(zb,{init(){this.element=new eb}}),{visitors:{document:{objects:{Header:{$visitor:Jb}}}}}=Pv,Gb=ul(Jb,{init(){this.element=new Vv}}),Wb=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rv||e(n)&&t("callback",n)&&r("object",n))),Kb=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fv||e(n)&&t("components",n)&&r("object",n))),Yb=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dv||e(n)&&t("contact",n)&&r("object",n))),Xb=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qv||e(n)&&t("example",n)&&r("object",n))),Qb=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lv||e(n)&&t("externalDocumentation",n)&&r("object",n))),Zb=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vv||e(n)&&t("header",n)&&r("object",n))),eO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bv||e(n)&&t("info",n)&&r("object",n))),tO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zv||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),rO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hv||e(n)&&t("license",n)&&r("object",n))),nO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jv||e(n)&&t("link",n)&&r("object",n))),sO=e=>{if(!nO(e))return!1;if(!Tc(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},iO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yv||e(n)&&t("openapi",n)&&r("string",n))),oO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Qv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),aO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zv||e(n)&&t("operation",n)&&r("object",n))),cO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof eb||e(n)&&t("parameter",n)&&r("object",n))),lO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tb||e(n)&&t("pathItem",n)&&r("object",n))),uO=e=>{if(!lO(e))return!1;if(!Tc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},pO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rb||e(n)&&t("paths",n)&&r("object",n))),hO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sb||e(n)&&t("reference",n)&&r("object",n))),fO=e=>{if(!hO(e))return!1;if(!Tc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},mO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ib||e(n)&&t("requestBody",n)&&r("object",n))),dO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ob||e(n)&&t("response",n)&&r("object",n))),yO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ab||e(n)&&t("responses",n)&&r("object",n))),gO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lb||e(n)&&t("schema",n)&&r("object",n))),vO=e=>Ic(e)&&e.classes.includes("boolean-json-schema"),bO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ub||e(n)&&t("securityRequirement",n)&&r("object",n))),OO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hb||e(n)&&t("server",n)&&r("object",n))),jO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fb||e(n)&&t("serverVariable",n)&&r("object",n))),wO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gv||e(n)&&t("mediaType",n)&&r("object",n))),EO=ul({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),xO=ul(lf,EO,uf,{props:{specPath:fo(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&tO(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&Tc(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():zv.default.toValue(),e},t=t=>{if(Gc(this.parent)&&!Tc(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(gO(this.parent)&&!Tc(t.get("$schema"))){var r,n;const e=Go(null===(r=this.parent.meta.get("inherited$schema"))||void 0===r?void 0:r.toValue(),null===(n=this.parent.$schema)||void 0===n?void 0:n.toValue());this.element.setMetaProperty("inherited$schema",e)}},r=e=>{var t;const r=null!==this.parent?this.parent.getMetaProperty("inherited$id",[]).clone():new Ys.ON,n=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();zp(n)&&r.push(n),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new lb,t(e),r(e),this.parent=this.element;const n=lf.compose.methods.ObjectElement.call(this,e);return Tc(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=e.clone(),this.element.classes.push("boolean-json-schema"),fl}}}),SO=uf,PO=ul(uf,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),fl}}}),AO=uf,$O=uf,kO=uf,TO=uf,CO=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fl}}}),MO=ul(Cf,EO,uf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-$defs")}}),IO=uf,RO=ul(Qh,EO,uf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Rc(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),fl}}}),FO=ul(Qh,EO,uf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Rc(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),fl}}}),DO=ul(Qh,EO,uf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Rc(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),fl}}}),NO=ul(Cf,EO,uf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),_O=ul(Qh,EO,uf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(Rc(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),fl}}}),qO=ul(Cf,EO,uf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-properties")}}),LO=ul(Cf,EO,uf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-patternProperties")}}),VO=ul(uf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),fl},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),fl}}}),BO=ul(uf,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),fl}}}),UO=uf,zO=uf,HO=uf,JO=uf,GO=uf,WO=uf,KO=uf,YO=uf,XO=uf,QO=uf,ZO=uf,ej=uf,tj=uf,rj=uf,nj=uf,sj=uf,ij=ul(uf,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),fl}}}),oj=ul(uf,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),fl}}}),aj=uf,cj=uf,lj=uf,uj=uf,pj=uf,hj=uf,fj=ul(uf,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),fl}}}),mj=uf,dj=uf,yj=uf,gj=uf,{visitors:{document:{objects:{Discriminator:{$visitor:vj}}}}}=Pv,bj=ul(vj,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Nv}}),{visitors:{document:{objects:{XML:{$visitor:Oj}}}}}=Pv,jj=ul(Oj,{init(){this.element=new db}}),wj=ul(Cf,uf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new uy}});class Ej extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ej.primaryClass)}}x(Ej,"primaryClass","components-path-items");const xj=Ej,Sj=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new xj},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(hO).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:Pj}}}}}=Pv,Aj=ul(Pj,{init(){this.element=new qv}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:$j}}}}}=Pv,kj=ul($j,{init(){this.element=new Lv}}),{visitors:{document:{objects:{Encoding:{$visitor:Tj}}}}}=Pv,Cj=ul(Tj,{init(){this.element=new _v}}),{visitors:{document:{objects:{Paths:{$visitor:Mj}}}}}=Pv,Ij=ul(Mj,{init(){this.element=new rb}}),{visitors:{document:{objects:{RequestBody:{$visitor:Rj}}}}}=Pv,Fj=ul(Rj,{init(){this.element=new ib}}),{visitors:{document:{objects:{Callback:{$visitor:Dj}}}}}=Pv,Nj=ul(Dj,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Rv},methods:{ObjectElement(e){const t=Dj.compose.methods.ObjectElement.call(this,e);return this.element.filter(hO).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:_j}}}}}=Pv,qj=ul(_j,{init(){this.element=new ob}}),{visitors:{document:{objects:{Responses:{$visitor:Lj}}}}}=Pv,Vj=ul(Lj,{init(){this.element=new ab}}),{visitors:{document:{objects:{Operation:{$visitor:Bj}}}}}=Pv,Uj=ul(Bj,{init(){this.element=new Zv}}),{visitors:{document:{objects:{PathItem:{$visitor:zj}}}}}=Pv,Hj=ul(zj,{init(){this.element=new tb}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:Jj}}}}}=Pv,Gj=ul(Jj,{init(){this.element=new pb}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:Wj}}}}}=Pv,Kj=ul(Wj,{init(){this.element=new Kv}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:Yj}}}}}=Pv,Xj=ul(Yj,{init(){this.element=new Wv}});class Qj extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Qj.primaryClass)}}x(Qj,"primaryClass","webhooks");const Zj=Qj,ew=ul(Cf,uf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Zj},methods:{ObjectElement(e){const t=Cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(hO).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(lO).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),tw={visitors:{value:Pv.visitors.value,document:{objects:{OpenApi:{$visitor:yb,fixedFields:{openapi:Pv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Ab,servers:Pv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:ew,components:{$ref:"#/visitors/document/objects/Components"},security:Pv.visitors.document.objects.OpenApi.fixedFields.security,tags:Pv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:vb,fixedFields:{title:Pv.visitors.document.objects.Info.fixedFields.title,description:Pv.visitors.document.objects.Info.fixedFields.description,summary:bb,termsOfService:Pv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Pv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:jb,fixedFields:{name:Pv.visitors.document.objects.Contact.fixedFields.name,url:Pv.visitors.document.objects.Contact.fixedFields.url,email:Pv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Eb,fixedFields:{name:Pv.visitors.document.objects.License.fixedFields.name,identifier:xb,url:Pv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:kb,fixedFields:{url:Pv.visitors.document.objects.Server.fixedFields.url,description:Pv.visitors.document.objects.Server.fixedFields.description,variables:Pv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Cb,fixedFields:{enum:Pv.visitors.document.objects.ServerVariable.fixedFields.enum,default:Pv.visitors.document.objects.ServerVariable.fixedFields.default,description:Pv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Nb,fixedFields:{schemas:wj,responses:Pv.visitors.document.objects.Components.fixedFields.responses,parameters:Pv.visitors.document.objects.Components.fixedFields.parameters,examples:Pv.visitors.document.objects.Components.fixedFields.examples,requestBodies:Pv.visitors.document.objects.Components.fixedFields.requestBodies,headers:Pv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Pv.visitors.document.objects.Components.fixedFields.securitySchemes,links:Pv.visitors.document.objects.Components.fixedFields.links,callbacks:Pv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Sj}},Paths:{$visitor:Ij},PathItem:{$visitor:Hj,fixedFields:{$ref:Pv.visitors.document.objects.PathItem.fixedFields.$ref,summary:Pv.visitors.document.objects.PathItem.fixedFields.summary,description:Pv.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:Pv.visitors.document.objects.PathItem.fixedFields.servers,parameters:Pv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Uj,fixedFields:{tags:Pv.visitors.document.objects.Operation.fixedFields.tags,summary:Pv.visitors.document.objects.Operation.fixedFields.summary,description:Pv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Pv.visitors.document.objects.Operation.fixedFields.operationId,parameters:Pv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Pv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Pv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Pv.visitors.document.objects.Operation.fixedFields.deprecated,security:Pv.visitors.document.objects.Operation.fixedFields.security,servers:Pv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:kj,fixedFields:{description:Pv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Pv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Hb,fixedFields:{name:Pv.visitors.document.objects.Parameter.fixedFields.name,in:Pv.visitors.document.objects.Parameter.fixedFields.in,description:Pv.visitors.document.objects.Parameter.fixedFields.description,required:Pv.visitors.document.objects.Parameter.fixedFields.required,deprecated:Pv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Pv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Pv.visitors.document.objects.Parameter.fixedFields.style,explode:Pv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Pv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Pv.visitors.document.objects.Parameter.fixedFields.example,examples:Pv.visitors.document.objects.Parameter.fixedFields.examples,content:Pv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Fj,fixedFields:{description:Pv.visitors.document.objects.RequestBody.fixedFields.description,content:Pv.visitors.document.objects.RequestBody.fixedFields.content,required:Pv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Ib,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Pv.visitors.document.objects.MediaType.fixedFields.example,examples:Pv.visitors.document.objects.MediaType.fixedFields.examples,encoding:Pv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Cj,fixedFields:{contentType:Pv.visitors.document.objects.Encoding.fixedFields.contentType,headers:Pv.visitors.document.objects.Encoding.fixedFields.headers,style:Pv.visitors.document.objects.Encoding.fixedFields.style,explode:Pv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Pv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Vj,fixedFields:{default:Pv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:qj,fixedFields:{description:Pv.visitors.document.objects.Response.fixedFields.description,headers:Pv.visitors.document.objects.Response.fixedFields.headers,content:Pv.visitors.document.objects.Response.fixedFields.content,links:Pv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Nj},Example:{$visitor:Aj,fixedFields:{summary:Pv.visitors.document.objects.Example.fixedFields.summary,description:Pv.visitors.document.objects.Example.fixedFields.description,value:Pv.visitors.document.objects.Example.fixedFields.value,externalValue:Pv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Pb,fixedFields:{operationRef:Pv.visitors.document.objects.Link.fixedFields.operationRef,operationId:Pv.visitors.document.objects.Link.fixedFields.operationId,parameters:Pv.visitors.document.objects.Link.fixedFields.parameters,requestBody:Pv.visitors.document.objects.Link.fixedFields.requestBody,description:Pv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Gb,fixedFields:{description:Pv.visitors.document.objects.Header.fixedFields.description,required:Pv.visitors.document.objects.Header.fixedFields.required,deprecated:Pv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Pv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Pv.visitors.document.objects.Header.fixedFields.style,explode:Pv.visitors.document.objects.Header.fixedFields.explode,allowReserved:Pv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Pv.visitors.document.objects.Header.fixedFields.example,examples:Pv.visitors.document.objects.Header.fixedFields.examples,content:Pv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:qb,fixedFields:{name:Pv.visitors.document.objects.Tag.fixedFields.name,description:Pv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Vb,fixedFields:{$ref:Pv.visitors.document.objects.Reference.fixedFields.$ref,summary:Bb,description:Ub}},Schema:{$visitor:xO,fixedFields:{$schema:SO,$vocabulary:PO,$id:AO,$anchor:$O,$dynamicAnchor:kO,$dynamicRef:TO,$ref:CO,$defs:MO,$comment:IO,allOf:RO,anyOf:FO,oneOf:DO,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:NO,prefixItems:_O,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:qO,patternProperties:LO,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:VO,enum:BO,const:UO,multipleOf:zO,maximum:HO,exclusiveMaximum:JO,minimum:GO,exclusiveMinimum:WO,maxLength:KO,minLength:YO,pattern:XO,maxItems:QO,minItems:ZO,uniqueItems:ej,maxContains:tj,minContains:rj,maxProperties:nj,minProperties:sj,required:ij,dependentRequired:oj,title:aj,description:cj,default:lj,deprecated:uj,readOnly:pj,writeOnly:hj,examples:fj,format:mj,contentEncoding:dj,contentMediaType:yj,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:gj}},Discriminator:{$visitor:bj,fixedFields:{propertyName:Pv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Pv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:jj,fixedFields:{name:Pv.visitors.document.objects.XML.fixedFields.name,namespace:Pv.visitors.document.objects.XML.fixedFields.namespace,prefix:Pv.visitors.document.objects.XML.fixedFields.prefix,attribute:Pv.visitors.document.objects.XML.fixedFields.attribute,wrapped:Pv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Gj,fixedFields:{type:Pv.visitors.document.objects.SecurityScheme.fixedFields.type,description:Pv.visitors.document.objects.SecurityScheme.fixedFields.description,name:Pv.visitors.document.objects.SecurityScheme.fixedFields.name,in:Pv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Pv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Pv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Pv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Kj,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:Xj,fixedFields:{authorizationUrl:Pv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Pv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Pv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Pv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Fb}},extension:{$visitor:Pv.visitors.document.extension.$visitor}}}};function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const nw=e=>{if(kc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},sw=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rw(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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"]},xl),iw={namespace:e=>{const{base:t}=e;return t.register("callback",Rv),t.register("components",Fv),t.register("contact",Dv),t.register("discriminator",Nv),t.register("encoding",_v),t.register("example",qv),t.register("externalDocumentation",Lv),t.register("header",Vv),t.register("info",Bv),t.register("jsonSchemaDialect",zv),t.register("license",Hv),t.register("link",Jv),t.register("mediaType",Gv),t.register("oAuthFlow",Wv),t.register("oAuthFlows",Kv),t.register("openapi",Yv),t.register("openApi3_1",Qv),t.register("operation",Zv),t.register("parameter",eb),t.register("pathItem",tb),t.register("paths",rb),t.register("reference",sb),t.register("requestBody",ib),t.register("response",ob),t.register("responses",ab),t.register("schema",lb),t.register("securityRequirement",ub),t.register("securityScheme",pb),t.register("server",hb),t.register("serverVariable",fb),t.register("tag",mb),t.register("xml",db),t}};function ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function aw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ow(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const cw=()=>{const e=sl(iw);return{predicates:aw(aw({},c),{},{isStringElement:Tc,isArrayElement:Fc,isObjectElement:Rc,includesClasses:Jc}),namespace:e}};function lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const uw=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ys.Qc)(e),s=lp(tw),i=jc(t,[],s);return Pl(n,i,{state:{specObj:s}}),Al(i.element,r,{toolboxCreator:cw,visitorOptions:{keyMap:sw,nodeTypeGetter:nw}})},pw=e=>(t,r={})=>uw(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lw(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));Rv.refract=pw(["visitors","document","objects","Callback","$visitor"]),Fv.refract=pw(["visitors","document","objects","Components","$visitor"]),Dv.refract=pw(["visitors","document","objects","Contact","$visitor"]),qv.refract=pw(["visitors","document","objects","Example","$visitor"]),Nv.refract=pw(["visitors","document","objects","Discriminator","$visitor"]),_v.refract=pw(["visitors","document","objects","Encoding","$visitor"]),Lv.refract=pw(["visitors","document","objects","ExternalDocumentation","$visitor"]),Vv.refract=pw(["visitors","document","objects","Header","$visitor"]),Bv.refract=pw(["visitors","document","objects","Info","$visitor"]),zv.refract=pw(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Hv.refract=pw(["visitors","document","objects","License","$visitor"]),Jv.refract=pw(["visitors","document","objects","Link","$visitor"]),Gv.refract=pw(["visitors","document","objects","MediaType","$visitor"]),Wv.refract=pw(["visitors","document","objects","OAuthFlow","$visitor"]),Kv.refract=pw(["visitors","document","objects","OAuthFlows","$visitor"]),Yv.refract=pw(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Qv.refract=pw(["visitors","document","objects","OpenApi","$visitor"]),Zv.refract=pw(["visitors","document","objects","Operation","$visitor"]),eb.refract=pw(["visitors","document","objects","Parameter","$visitor"]),tb.refract=pw(["visitors","document","objects","PathItem","$visitor"]),rb.refract=pw(["visitors","document","objects","Paths","$visitor"]),sb.refract=pw(["visitors","document","objects","Reference","$visitor"]),ib.refract=pw(["visitors","document","objects","RequestBody","$visitor"]),ob.refract=pw(["visitors","document","objects","Response","$visitor"]),ab.refract=pw(["visitors","document","objects","Responses","$visitor"]),lb.refract=pw(["visitors","document","objects","Schema","$visitor"]),ub.refract=pw(["visitors","document","objects","SecurityRequirement","$visitor"]),pb.refract=pw(["visitors","document","objects","SecurityScheme","$visitor"]),hb.refract=pw(["visitors","document","objects","Server","$visitor"]),fb.refract=pw(["visitors","document","objects","ServerVariable","$visitor"]),mb.refract=pw(["visitors","document","objects","Tag","$visitor"]),db.refract=pw(["visitors","document","objects","XML","$visitor"]);const hw=class extends Array{constructor(...e){super(...e),x(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};class fw extends hw{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 $a(this.filterByFormat(e))}}const mw=new fw("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");var dw=r(4155),yw=Jo((function(e,t){return Do(Za(""),sa(wc(e)),Aa(""))(t)}));const gw=yw;const vw=Co(lc);const bw=yi(1,Do($i,ba("RegExp")));const Ow=ac(pl,Ya(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var jw=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const ww=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),jw(r,"str"),jw(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(bw(e)?e:Ow(e),"g");return Ya(n,t,r)};var Ew=yi(3,ww),xw=Sa(2,"replaceAll");const Sw=yc(String.prototype.replaceAll)?xw:Ew,Pw=()=>La(rc(/^win/),["platform"],dw),Aw=e=>{try{const t=new URL(e);return gw(":",t.protocol)}catch{return}},$w=(Do(Aw,vw),e=>{if(dw.browser)return!1;const t=Aw(e);return lc(t)||"file"===t||/^[a-zA-Z]$/.test(t)}),kw=e=>{const t=Aw(e);return"http"===t||"https"===t},Tw=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Ua(!1,"keepFileProtocol",t),s=Ua(Pw,"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.substr(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substr(8):i.substr(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substr(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=Sw("/","\\",i),":\\"===i.substr(1,2)&&(i=i[0].toUpperCase()+i.substr(1))),i},Cw=e=>{const t=e.indexOf("#");return-1!==t?e.substr(t):"#"},Mw=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substr(0,t)),r},Iw=()=>{if(dw.browser)return Mw(globalThis.location.href);const e=dw.cwd(),t=$a(e);return["/","\\"].includes(t)?e:e+(Pw()?"\\":"/")},Rw=(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()},Fw=e=>$w(e)?(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Pw()&&(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})(Tw(e)):encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Dw=e=>$w(e)?Tw(e):decodeURI(e),Nw=ul({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:n=this.value}={}){this.uri=r,this.value=n,this.depth=e,this.refSet=t,this.errors=[]}}),_w=Nw,qw=ul({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=pl(e)?e:e.uri;return vw(this.find(Ba(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),Lw=qw,Vw={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},Bw=ka(Ca(["resolve","baseURI"]),xo(["resolve","baseURI"])),Uw=e=>Gl(e)?Iw():e,zw=ul({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:n=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n},methods:{get extension(){return pl(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($i(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});class Hw 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,tl(t)&&ya("cause",t)&&!ya("cause",this)){const{cause:e}=t;this.cause=e,ya("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const Jw=Hw;const Gw=class extends Jw{constructor(e,t){super(e,{cause:t.cause}),x(this,"plugin",void 0),this.plugin=t.plugin}},Ww=async(e,t,r)=>{const n=await Promise.all(r.map(jc([e],[t])));return r.filter(((e,t)=>n[t]))},Kw=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 Gw("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const Yw=class extends Jw{};const Xw=class extends Yw{};const Qw=class extends Jw{},Zw=async(e,t)=>{let r=e,n=!1;if(!Vc(e)){const t=new e.constructor(e.content,e.meta.clone(),e.attributes);t.classes.push("result"),r=new pc([t]),n=!0}const s=zw({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await Ww("canDereference",s,t.dereference.strategies);if(Pa(i))throw new Xw(s.uri);try{const{result:e}=await Kw("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new Qw(`Error while dereferencing file "${s.uri}"`,{cause:e})}},eE=async(e,t={})=>{const r=((e,t)=>{const r=Fa(e,t);return _a(Bw,Uw,r)})(Vw,t);return Zw(e,r)};const tE=class extends Jw{constructor(e="Not Implemented",t){super(e,t)}},rE=ul({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:n=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=n},methods:{async canParse(){throw new tE},async parse(){throw new tE}}}),nE=rE,sE=ul(nE,{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())),r=btoa(t),n=new pc;if(0!==r.length){const e=new Ys.RP(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new Yw(`Error parsing "${e.uri}"`,{cause:t})}}}}),iE=ul({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new tE}}});const oE=yi(1,io(Promise.all,Promise));const aE=class extends Jw{};const cE=class extends aE{};const lE=class extends Qw{};const uE=class extends aE{};function pE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pE(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const fE=async(e,t)=>{const r=zw({uri:Fw(Mw(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 Ww("canRead",e,r);if(Pa(n))throw new uE(e.uri);try{const{result:t}=await Kw("read",[e],n);return t}catch(t){throw new aE(`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 Ww("canParse",e,r);if(Pa(n))throw new uE(e.uri);try{const{plugin:t,result:r}=await Kw("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new Yw(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new Yw(`Error while parsing file "${e.uri}"`,{cause:t})}})(zw(hE(hE({},r),{},{data:n})),t)},mE=(e,t)=>{const r=Sl({predicate:e});return Pl(t,r),new Ys.O4(r.result)};class dE extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}const yE=(e,t)=>{const r=Sl({predicate:e,returnOnTrue:fl});return Pl(t,r),qa(void 0,[0],r.result)};const gE=class extends Jw{};class vE extends gE{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class bE extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}}const OE=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),jE=e=>{const t=Cw(e);return eu("#",t)},wE=(e,t)=>{const r=(e=>{if(!OE(e))throw new vE(e);return e})(e),n=yE((e=>{var t;return gO(e)&&(null===(t=e.$anchor)||void 0===t?void 0:t.toValue())===r}),t);if(lc(n))throw new bE(`Evaluation failed on token: "${r}"`);return n},EE=(e,t)=>{if(void 0===t.$ref)return;const r=Cw(t.$ref.toValue()),n=t.meta.get("inherited$id").toValue();return`${po(((e,t)=>Rw(e,Fw(Mw(t)))),e,[...n,t.$ref.toValue()])}${"#"===r?"":r}`},xE=e=>{if(xE.cache.has(e))return xE.cache.get(e);const t=lb.refract(e);return xE.cache.set(e,t),t};xE.cache=new WeakMap;const SE=e=>Uc(e)?xE(e):e,PE=(e,t)=>{const{cache:r}=PE,n=Mw(e),s=e=>gO(e)&&void 0!==e.$id;if(!r.has(t)){const e=mE(s,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=t.meta.get("inherited$id").toValue();return po(((e,t)=>Rw(e,Fw(Mw(t)))),e,[...r,t.$id.toValue()])})(n,e)===n));if(lc(i))throw new dE(`Evaluation failed on URI: "${e}"`);let o,a;return OE(jE(e))?(o=wE,a=jE(e)):(o=iu,a=ou(e)),o(a,i)};function AE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?AE(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}PE.cache=new WeakMap;const kE=Pl[Symbol.for("nodejs.util.promisify.custom")],TE=ul({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:n=new WeakSet,options:s}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=s},methods:{toBaseURI(e){return Rw(this.reference.uri,Fw(Mw(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new cE(`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(Ba(t,"uri"));const n=await fE(Dw(t),$E($E({},this.options),{},{parse:$E($E({},this.options.parse),{},{mediaType:"text/plain"})})),s=_w({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){var t;if(!this.options.resolve.external&&fO(e))return!1;const r=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);da(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(e)},PathItemElement(e){var t;if(!Tc(e.$ref))return;if(!this.options.resolve.external&&uO(e))return;const r=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);da(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(e)},LinkElement(e){if((Tc(e.operationRef)||Tc(e.operationId))&&(this.options.resolve.external||!sO(e))){if(Tc(e.operationRef)&&Tc(e.operationId))throw new Error("LinkElement operationRef and operationId are mutually exclusive.");if(sO(e)){var t;const r=null===(t=e.operationRef)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);da(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))}}},ExampleElement(e){var t;if(!Tc(e.externalValue))return;if(!this.options.resolve.external&&Tc(e.externalValue))return;if(e.hasKey("value")&&Tc(e.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=null===(t=e.externalValue)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);da(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!Tc(e.$ref))return void this.visited.add(e);const t=await this.toReference(Dw(this.reference.uri)),{uri:r}=t,n=EE(r,e),s=Mw(n),i=zw({uri:s}),o=Da((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=!o&&r!==s;if(this.options.resolve.external||!c){if(!da(s,this.crawlingMap))try{this.crawlingMap[s]=o||a?t:this.toReference(Dw(n))}catch(e){if(!(a&&e instanceof dE))throw e;this.crawlingMap[s]=this.toReference(Dw(n))}this.crawledElements.push(e)}else this.visited.add(e)},async crawlReferenceElement(e){var t;const r=await this.toReference(e.$ref.toValue());this.indirections.push(e);const n=ou(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=iu(n,r.value.result);if(Uc(s)){const t=e.meta.get("referenced-element").toValue();if(tf(s))s=sb.refract(s),s.setMetaProperty("referenced-element",t);else{s=this.namespace.getElementClass(t).refract(s)}}if(this.indirections.includes(s))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=TE({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await kE(s,i,{keyMap:sw,nodeTypeGetter:nw}),await i.crawl(),this.indirections.pop()},async crawlPathItemElement(e){var t;const r=await this.toReference(e.$ref.toValue());this.indirections.push(e);const n=ou(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=iu(n,r.value.result);if(Uc(s)&&(s=tb.refract(s)),this.indirections.includes(s))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=TE({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await kE(s,i,{keyMap:sw,nodeTypeGetter:nw}),await i.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(Dw(this.reference.uri));const{uri:r}=t,n=EE(r,e),s=Mw(n),i=zw({uri:s}),o=Da((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o;let c;this.indirections.push(e);try{if(o||a){c=PE(n,SE(t.value.result))}else{t=await this.toReference(Dw(n));const e=ou(n);c=SE(iu(e,t.value.result))}}catch(e){if(!(a&&e instanceof dE))throw e;if(OE(jE(n))){t=await this.toReference(Dw(n));const e=jE(n);c=wE(e,SE(t.value.result))}else{t=await this.toReference(Dw(n));const e=ou(n);c=SE(iu(e,t.value.result))}}if(this.visited.add(e),this.indirections.includes(c))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const l=TE({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await kE(c,l,{keyMap:sw,nodeTypeGetter:nw}),await l.crawl(),this.indirections.pop()},async crawl(){await Do(wo,oE)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)hO(e)?await this.crawlReferenceElement(e):gO(e)?await this.crawlSchemaElement(e):lO(e)&&await this.crawlPathItemElement(e)}}}),CE=TE,ME=Pl[Symbol.for("nodejs.util.promisify.custom")],IE=ul(iE,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?mw.includes(e.mediaType):oO(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=sl(iw),n=_w({uri:e.uri,value:e.parseResult}),s=CE({reference:n,namespace:r,options:t}),i=Lw();return i.add(n),await ME(i.rootRef.value,s,{keyMap:sw,nodeTypeGetter:nw}),await s.crawl(),i}}}),RE=IE,FE=e=>e.replace(/\s/g,""),DE=e=>e.replace(/\W/gi,"_"),NE=(e,t,r)=>{const n=FE(e);return n.length>0?DE(n):((e,t)=>`${DE(FE(t.toLowerCase()))}${DE(FE(e))}`)(t,r)},_E=({operationIdNormalizer:e=NE}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=fa((e=>Jl(e.operationId)),s);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,n)=>{const s=`${e}${n+1}`;t.operationId=new r.elements.String(s)})))})),i.forEach((e=>{var t;if(void 0===e.operationId)return;const r=String(Jl(e.operationId)),n=s.find((e=>Jl(e.meta.get("originalOperationId"))===r));void 0!==n&&(e.operationId=null===(t=n.operationId)||void 0===t?void 0:t.clone(),e.meta.set("originalOperationId",r),e.set("__originalOperationId",r))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=Go("path",Jl(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(Jl(t.operationId)),o=$a(n),a=Go("method",Jl(t.meta.get("http-method"))),c=e(i,o,a);i!==c&&(t.operationId=new r.elements.String(c),t.set("__originalOperationId",i),t.meta.set("originalOperationId",i),s.push(t))}},LinkElement:{leave(e){t.isLinkElement(e)&&void 0!==e.operationId&&i.push(e)}}}}},qE=()=>({predicates:e})=>{const t=(t,r)=>!!e.isParameterElement(t)&&(!!e.isParameterElement(r)&&(!!e.isStringElement(t.name)&&(!!e.isStringElement(t.in)&&(!!e.isStringElement(r.name)&&(!!e.isStringElement(r.in)&&(Jl(t.name)===Jl(r.name)&&Jl(t.in)===Jl(r.in))))))),r=[];return{visitor:{PathItemElement:{enter(t,n,s,i,o){if(o.some(e.isComponentsElement))return;const{parameters:a}=t;e.isArrayElement(a)?r.push([...a.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(e){const n=$a(r);if(!Array.isArray(n)||0===n.length)return;const s=qa([],["parameters","content"],e),i=oc(t,[...s,...n]);e.parameters=new Ig(i)}}}}},LE=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,n,s,i,o){if(o.some(e.isComponentsElement))return;var a;void 0===r.security&&void 0!==t&&(r.security=new Bg(null===(a=t)||void 0===a?void 0:a.content))}}}}},VE=()=>({predicates:e})=>{let t;const r=[];return{visitor:{OpenApi3_1Element:{enter(r){var n;e.isArrayElement(r.servers)&&(t=null===(n=r.servers)||void 0===n?void 0:n.content)},leave(){t=void 0}},PathItemElement:{enter(n,s,i,o,a){if(a.some(e.isComponentsElement))return;void 0===n.servers&&void 0!==t&&(n.servers=new Qg(t));const{servers:c}=n;void 0!==c&&e.isArrayElement(c)?r.push([...c.content]):r.push(void 0)},leave(){r.pop()}},OperationElement:{enter(t){const n=$a(r);void 0!==n&&(e.isArrayElement(t.servers)||(t.servers=new Hg(n)))}}}}},BE=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,n,s,i){var o,a;if(!i.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===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t.clone()}));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[t.example.clone()]),void 0!==t.schema.example&&t.schema.set("example",t.example.clone()))}}}}}),UE=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,n,s,i){var o,a;if(!i.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===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t.clone()}));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[t.example.clone()]),void 0!==t.schema.example&&t.schema.set("example",t.example.clone()))}}}}}),zE=e=>t=>{if(t?.$$normalized)return t;if(zE.cache.has(t))return t;const r=Qv.refract(t),n=e(r),s=Jl(n);return zE.cache.set(t,s),s};zE.cache=new WeakMap;const HE=e=>{if(!Rc(e))return e;if(e.hasKey("$$normalized"))return e;const t=[_E({operationIdNormalizer:(e,t,r)=>Ds({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),qE(),LE(),VE(),BE(),UE()],r=Al(e,t,{toolboxCreator:cw,visitorOptions:{keyMap:sw,nodeTypeGetter:nw}});return r.set("$$normalized",!0),r},JE=ul({props:{name:null},methods:{canRead:()=>!1,async read(){throw new tE}}}),GE=ul(JE,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:e=this.timeout,redirects:t=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=e,this.redirects=t,this.withCredentials=r},methods:{canRead:e=>kw(e.uri),async read(){throw new tE},getHttpClient(){throw new tE}}}).compose({props:{name:"http-swagger-client",swaggerHTTPClient:qr,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(),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",a=this.redirects>0?this.redirects:void 0;try{return(await t(P({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,P(P({},r),{},{headers:new Headers(r.headers)})),r.headers.delete("Content-Type")}return r},credentials:i,redirects:o,follow:a},this.swaggerHTTPClientConfig))).text.arrayBuffer()}catch(t){throw new aE(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),WE=nE.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),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 Yw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new pc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=Hl(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new Yw(`Error parsing "${e.uri}"`,{cause:t})}}}}),KE=nE.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),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return $r.load(e.toString(),{schema:gr}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new Yw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new pc,r=e.toString();try{const e=$r.load(r,{schema:gr});if(this.allowEmpty&&void 0===e)return t;const n=Hl(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new Yw(`Error parsing "${e.uri}"`,{cause:t})}}}}),YE=nE.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new fw(...mw.filterByFormat("generic"),...mw.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),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 Yw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new pc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=Qv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new Yw(`Error parsing "${e.uri}"`,{cause:t})}}}}),XE=nE.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new fw(...mw.filterByFormat("generic"),...mw.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),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return $r.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new Yw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new pc,r=e.toString();try{const e=$r.load(r,{schema:gr});if(this.allowEmpty&&void 0===e)return t;const n=Qv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new Yw(`Error parsing "${e.uri}"`,{cause:t})}}}}),QE=ul({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new tE}}});function ZE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZE(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const tx=Pl[Symbol.for("nodejs.util.promisify.custom")],rx=ul({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:n,ancestors:s=[]}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=[...s]},methods:{toBaseURI(e){return Rw(this.reference.uri,Fw(Mw(e)))},toAncestorLineage(e){const t=new WeakSet(e.filter(kc));return[[...this.ancestors,t],t]},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new cE(`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(Ba(t,"uri"));const n=await fE(Dw(t),ex(ex({},this.options),{},{parse:ex(ex({},this.options.parse),{},{mediaType:"text/plain"})})),s=_w({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},async ReferenceElement(e,t,r,n,s){var i,o,a,c,l;const[u,p]=this.toAncestorLineage([...s,r]);if(u.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&fO(e))return!1;const h=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),{uri:f}=h,m=Rw(f,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const d=ou(m);let y=iu(d,h.value.result);if(Uc(y)){const t=e.meta.get("referenced-element").toValue();if(tf(y))y=sb.refract(y),y.setMetaProperty("referenced-element",t);else{y=this.namespace.getElementClass(t).refract(y)}}if(this.indirections.includes(y))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);p.add(e);const g=rx({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:u});y=await tx(y,g,{keyMap:sw,nodeTypeGetter:nw}),p.delete(e),this.indirections.pop(),y=y.clone(),y.setMetaProperty("ref-fields",{$ref:null===(a=e.$ref)||void 0===a?void 0:a.toValue(),description:null===(c=e.description)||void 0===c?void 0:c.toValue(),summary:null===(l=e.summary)||void 0===l?void 0:l.toValue()}),y.setMetaProperty("ref-origin",h.uri);const v=La(vw,["description"],e),b=La(vw,["summary"],e);return v&&ya("description",y)&&(y.description=e.description),b&&ya("summary",y)&&(y.summary=e.summary),this.indirections.pop(),y},async PathItemElement(e,t,r,n,s){var i,o,a;const[c,l]=this.toAncestorLineage([...s,r]);if(!Tc(e.$ref))return;if(c.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&uO(e))return;const u=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),{uri:p}=u,h=Rw(p,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const f=ou(h);let m=iu(f,u.value.result);if(Uc(m)&&(m=tb.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 lE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);l.add(e);const d=rx({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:c});m=await tx(m,d,{keyMap:sw,nodeTypeGetter:nw}),l.delete(e),this.indirections.pop();const y=new tb([...m.content],m.meta.clone(),m.attributes.clone());return e.forEach(((e,t,r)=>{y.remove(t.toValue()),y.content.push(r)})),y.remove("$ref"),y.setMetaProperty("ref-fields",{$ref:null===(a=e.$ref)||void 0===a?void 0:a.toValue()}),y.setMetaProperty("ref-origin",u.uri),y},async LinkElement(e){if(!Tc(e.operationRef)&&!Tc(e.operationId))return;if(!this.options.resolve.external&&sO(e))return;if(Tc(e.operationRef)&&Tc(e.operationId))throw new Error("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(Tc(e.operationRef)){var r,n,s;const i=ou(null===(r=e.operationRef)||void 0===r?void 0:r.toValue()),o=await this.toReference(null===(n=e.operationRef)||void 0===n?void 0:n.toValue());t=iu(i,o.value.result),Uc(t)&&(t=Zv.refract(t)),t=new Zv([...t.content],t.meta.clone(),t.attributes.clone()),t.setMetaProperty("ref-origin",o.uri),null===(s=e.operationRef)||void 0===s||s.meta.set("operation",t)}else if(Tc(e.operationId)){var i,o;const r=null===(i=e.operationId)||void 0===i?void 0:i.toValue(),n=await this.toReference(Dw(this.reference.uri));if(t=yE((e=>aO(e)&&e.operationId.equals(r)),n.value.result),lc(t))throw new Error(`OperationElement(operationId=${r}) not found.`);null===(o=e.operationId)||void 0===o||o.meta.set("operation",t)}},async ExampleElement(e){var t;if(!Tc(e.externalValue))return;if(!this.options.resolve.external&&Tc(e.externalValue))return;if(e.hasKey("value")&&Tc(e.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=await this.toReference(null===(t=e.externalValue)||void 0===t?void 0:t.toValue()),n=new r.value.result.constructor(r.value.result.content,r.value.result.meta.clone(),r.value.result.attributes.clone());n.setMetaProperty("ref-origin",r.uri),e.value=n},async SchemaElement(e,t,r,n,s){var i;const[o,a]=this.toAncestorLineage([...s,r]);if(!Tc(e.$ref))return;if(o.some((t=>t.has(e))))return!1;let c=await this.toReference(Dw(this.reference.uri)),{uri:l}=c;const u=EE(l,e),p=Mw(u),h=zw({uri:p}),f=Da((e=>e.canRead(h)),this.options.resolve.resolvers),m=!f,d=m&&l!==p;if(!this.options.resolve.external&&d)return;let y;this.indirections.push(e);try{if(f||m){y=PE(u,SE(c.value.result))}else{c=await this.toReference(Dw(u));const e=ou(u);y=SE(iu(e,c.value.result))}}catch(e){if(!(m&&e instanceof dE))throw e;if(OE(jE(u))){c=await this.toReference(Dw(u)),l=c.uri;const e=jE(u);y=wE(e,SE(c.value.result))}else{c=await this.toReference(Dw(u)),l=c.uri;const e=ou(u);y=SE(iu(e,c.value.result))}}if(this.indirections.includes(y))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);a.add(e);const g=rx({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:o});if(y=await tx(y,g,{keyMap:sw,nodeTypeGetter:nw}),a.delete(e),this.indirections.pop(),vO(y)){var v;const t=y.clone();return t.setMetaProperty("ref-fields",{$ref:null===(v=e.$ref)||void 0===v?void 0:v.toValue()}),t.setMetaProperty("ref-origin",c.uri),t}const b=new lb([...y.content],y.meta.clone(),y.attributes.clone());return e.forEach(((e,t,r)=>{b.remove(t.toValue()),b.content.push(r)})),b.remove("$ref"),b.setMetaProperty("ref-fields",{$ref:null===(i=e.$ref)||void 0===i?void 0:i.toValue()}),b.setMetaProperty("ref-origin",c.uri),b}}}),nx=rx,sx=Pl[Symbol.for("nodejs.util.promisify.custom")],ix=ul(QE,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?mw.includes(e.mediaType):oO(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=sl(iw),n=Go(Lw(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(Ba(e.uri,"uri")):(s=_w({uri:e.uri,value:e.parseResult}),n.add(s));const i=nx({reference:s,namespace:r,options:t}),o=await sx(n.rootRef.value,i,{keyMap:sw,nodeTypeGetter:nw});return null===t.dereference.refSet&&n.clean(),o}}}),ox=ix,ax=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(Dc(r)){const t=String(r.key.toValue());e.push(t)}else if(Fc(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},cx=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},lx=Qn("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:ux}=ms,px=Pl[Symbol.for("nodejs.util.promisify.custom")],hx=nx.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init(e){let{allowMetaPatches:t=this.allowMetaPatches,useCircularStructures:r=this.useCircularStructures,basePath:n=this.basePath}=e;this.allowMetaPatches=t,this.useCircularStructures=r,this.basePath=n},methods:{async ReferenceElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(Jc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&fO(e))return!1;const i=await this.toReference(e.$ref.toValue()),{uri:o}=i,a=Rw(o,e.$ref.toValue());this.indirections.push(e);const c=ou(a);let l=iu(c,i.value.result);if(Uc(l)){const t=e.meta.get("referenced-element").toValue();if(tf(l))l=sb.refract(l),l.setMetaProperty("referenced-element",t);else{const e=this.namespace.getElementClass(t);l=e.refract(l)}}if(this.indirections.includes(l))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`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(l)))){if(kw(o)||$w(o)){const t=new sb({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}n.add(e);const u=hx({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...ax([...s,r,e]),"$ref"]});l=await px(l,u,{keyMap:sw,nodeTypeGetter:nw}),n.delete(e),this.indirections.pop(),l=l.clone(),l.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue(),description:e.description?.toValue(),summary:e.summary?.toValue()}),l.setMetaProperty("ref-origin",i.uri);const p=void 0!==e.description,h=void 0!==e.summary;if(p&&"description"in l&&(l.description=e.description),h&&"summary"in l&&(l.summary=e.summary),this.allowMetaPatches&&Rc(l)){const e=l;if(void 0===e.get("$$ref")){const t=Rw(o,a);e.set("$$ref",t)}}return l}catch(t){const n=cx(t),i=ux(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:ou(e.$ref.toValue()),fullPath:this.basePath??[...ax([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(!Tc(e.$ref))return;if(Jc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&uO(e))return;const i=await this.toReference(e.$ref.toValue()),{uri:o}=i,a=Rw(o,e.$ref.toValue());this.indirections.push(e);const c=ou(a);let l=iu(c,i.value.result);if(Uc(l)&&(l=tb.refract(l)),this.indirections.includes(l))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`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(l)))){if(kw(o)||$w(o)){const t=new tb({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}n.add(e);const u=hx({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...ax([...s,r,e]),"$ref"]});l=await px(l,u,{keyMap:sw,nodeTypeGetter:nw}),n.delete(e),this.indirections.pop();const p=new tb([...l.content],l.meta.clone(),l.attributes.clone());if(e.forEach(((e,t,r)=>{p.remove(t.toValue()),p.content.push(r)})),p.remove("$ref"),p.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),p.setMetaProperty("ref-origin",i.uri),this.allowMetaPatches&&void 0===p.get("$$ref")){const e=Rw(o,a);p.set("$$ref",e)}return p}catch(t){const n=cx(t),i=ux(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:ou(e.$ref.toValue()),fullPath:this.basePath??[...ax([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(!Tc(e.$ref))return;if(Jc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;let i=await this.toReference(Dw(this.reference.uri)),{uri:o}=i;const a=EE(o,e),c=Mw(a),l=zw({uri:c}),u=!this.options.resolve.resolvers.some((e=>e.canRead(l))),p=!u,h=p&&o!==c;if(!this.options.resolve.external&&h)return;let f;this.indirections.push(e);try{if(u||p){f=PE(a,SE(i.value.result))}else{i=await this.toReference(Dw(a)),o=i.uri;const e=ou(a);f=SE(iu(e,i.value.result))}}catch(e){if(!(p&&e instanceof dE))throw e;if(OE(jE(a))){i=await this.toReference(Dw(a)),o=i.uri;const e=jE(a);f=wE(e,SE(i.value.result))}else{i=await this.toReference(Dw(a)),o=i.uri;const e=ou(a);f=SE(iu(e,i.value.result))}}if(this.indirections.includes(f))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new lE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(t.some((e=>e.has(f)))){if(kw(o)||$w(o)){const t=Rw(o,a),r=new lb({$ref:t},e.meta.clone(),e.attributes.clone());return r.get("$ref").classes.push("cycle"),r}return!1}}n.add(e);const m=hx({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...ax([...s,r,e]),"$ref"]});if(f=await px(f,m,{keyMap:sw,nodeTypeGetter:nw}),n.delete(e),this.indirections.pop(),vO(f)){const t=f.clone();return t.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),t.setMetaProperty("ref-origin",o),t}const d=new lb([...f.content],f.meta.clone(),f.attributes.clone());if(e.forEach(((e,t,r)=>{d.remove(t.toValue()),d.content.push(r)})),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=Rw(o,a);d.set("$$ref",e)}return d}catch(t){const n=cx(t),i=new lx(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),fullPath:this.basePath??[...ax([...s,r,e]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await nx.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=cx(t),i=ux(n,{baseDoc:this.reference.uri,externalValue:e.externalValue?.toValue(),fullPath:this.basePath??[...ax([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),fx=hx,mx=ox.compose.bind(),dx=mx({init(e){let{parameterMacro:t,options:r}=e;this.parameterMacro=t,this.options=r},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,n,s){const i=null===this.macroOperation?null:Jl(this.macroOperation),o=Jl(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=ax([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),yx=mx({init(e){let{modelPropertyMacro:t,options:r}=e;this.modelPropertyMacro=t,this.options=r},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,n,s){void 0!==e.properties&&Rc(e.properties)&&e.properties.forEach((t=>{if(Rc(t))try{const e=this.modelPropertyMacro(Jl(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...ax([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}});function gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gx(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const bx=e=>{const t=e.meta.clone(),r=e.attributes.clone();return new e.constructor(void 0,t,r)},Ox=e=>new Ys.c6(e.key,e.value,e.meta.clone(),e.attributes.clone()),jx=(e,t)=>t.clone&&t.isMergeableElement(e)?xx(bx(e),e,t):e,wx=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>jx(e,r))),Ex=(e,t,r)=>{const n=Rc(e)?bx(e):bx(t);return Rc(e)&&e.forEach(((e,t,s)=>{const i=Ox(s);i.value=jx(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=s.toValue();let a;if(Rc(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=Ox(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return xx;const r=t.customMerge(e,t);return"function"==typeof r?r:xx})(s,r)(n,t)}else a=Ox(i),a.value=jx(t,r);n.remove(o),n.content.push(a)})),n};function xx(e,t,r){var n,s,i;const o={clone:!0,isMergeableElement:e=>Rc(e)||Fc(e),arrayElementMerge:wx,objectElementMerge:Ex,customMerge:void 0},a=vx(vx({},o),r);a.isMergeableElement=null!==(n=a.isMergeableElement)&&void 0!==n?n:o.isMergeableElement,a.arrayElementMerge=null!==(s=a.arrayElementMerge)&&void 0!==s?s:o.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:o.objectElementMerge;const c=Fc(t);return c===Fc(e)?c&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a):jx(t,a)}xx.all=(e,t)=>{if(!Array.isArray(e))throw new Error("first argument should be an array");return 0===e.length?new Ys.Sb:e.reduce(((e,r)=>xx(e,r,t)),bx(e[0]))};const Sx=mx({init(e){let{options:t}=e;this.options=t},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!Fc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...ax([...s,r,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(gO)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...ax([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=xx.all([...e.allOf.content,e]);if(e.hasKey("$$ref")||i.remove("$$ref"),e.hasKey("example")){i.getMember("example").value=e.get("example")}if(e.hasKey("examples")){i.getMember("examples").value=e.get("examples")}return i.remove("allOf"),i}}}}),Px=Pl[Symbol.for("nodejs.util.promisify.custom")],Ax=ox.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:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:s=this.mode,ancestors:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]},methods:{async dereference(e,t){const r=[],n=sl(iw),s=t.dereference.refSet??Lw();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=_w({uri:e.uri,value:e.parseResult}),s.add(i));const o=fx({reference:i,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(o),"function"==typeof this.parameterMacro){const e=dx({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=yx({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=Sx({options:t});r.push(e)}const a=yl(r,{nodeTypeGetter:nw}),c=await Px(s.rootRef.value,a,{keyMap:sw,nodeTypeGetter:nw});return null===t.dereference.refSet&&s.clean(),c}}}),$x=Ax,kx=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict"}=e;try{const{cache:m}=kx,d=kw(Iw())?Iw():"https://smartbear.com/",y=en(e),g=Rw(d,y);let v;m.has(t)?v=m.get(t):(v=Qv.refract(t),v.classes.push("result"),m.set(t,v));const b=new pc([v]),O=0===(f=o).length?"":`/${f.map(nu).join("/")}`,j=""===O?"":`#${O}`,w=iu(O,v),E=_w({uri:g,value:b}),x=Lw({refs:[E]});""!==O&&(x.rootRef=null);const S=[new WeakSet([w])],P=[],A=((e,t,r)=>Rl({element:r}).transclude(e,t))(w,await eE(w,{resolve:{baseURI:`${g}${j}`,resolvers:[GE({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[RE()]},parse:{mediaType:mw.latest(),parsers:[YE({allowEmpty:!1,sourceMap:!1}),XE({allowEmpty:!1,sourceMap:!1}),WE({allowEmpty:!1,sourceMap:!1}),KE({allowEmpty:!1,sourceMap:!1}),sE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[$x({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:S})],refSet:x,dereferenceOpts:{errors:P}}}),v),$=l?A:HE(A);return{spec:Jl($),errors:P}}catch(e){if(e instanceof tu||e instanceof ru)return{spec:null,errors:[]};throw e}var f};kx.cache=new WeakMap;const Tx=kx,Cx={name:"openapi-3-1-apidom",match(e){let{spec:t}=e;return Vs(t)},normalize(e){let{spec:t}=e;return zE(HE)(t)},resolve:async e=>Tx(e)};function Mx(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 a={spec:e,pathName:s,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const Ix=()=>null,Rx={mapTagOperations:function(e){let{spec:t,cb:r=Ix,defaultTag:n="default",v2OperationIdCompatibilityMode:s}=e;const i={},o={};return Mx(t,(e=>{let{pathName:a,method:c,operation:l}=e;var u;(l.tags?(u=l.tags,Array.isArray(u)?u:[u]):[n]).forEach((e=>{if("string"!=typeof e)return;o[e]=o[e]||{};const n=o[e],u=Ds(l,a,c,{v2OperationIdCompatibilityMode:s}),p=r({spec:t,pathName:a,method:c,operation:l,operationId:u});if(i[u])i[u]+=1,n[`${u}${i[u]}`]=p;else if(void 0!==n[u]){const e=i[u]||1;i[u]=e+1,n[`${u}${i[u]}`]=p;const t=n[u];delete n[u],n[`${u}${e}`]=t}else n[u]=p}))})),o},makeExecute:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{pathName:r,method:n,operationId:s}=t;return function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute(P({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:r,method:n,parameters:t,operationId:s},i))}}}};var Fx=r(6489);function Dx(e){return"[object Object]"===Object.prototype.toString.call(e)}function Nx(e){var t,r;return!1!==Dx(e)&&(void 0===(t=e.constructor)||!1!==Dx(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const _x={body:function(e){let{req:t,value:r}=e;t.body=r},header:function(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){let{req:t,value:r,parameter:n}=e;t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false");0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0");if(r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}},path:function(e){let{req:t,value:r,parameter:n}=e;t.url=t.url.split(`{${n.name}}`).join(encodeURIComponent(r))},formData:function(e){let{req:t,value:r,parameter:n}=e;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function qx(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}function Lx(e){let{req:t,value:r,parameter:n}=e;const{name:s,style:i,explode:o,content:a}=n;if(a){const e=Object.keys(a)[0];return void(t.url=t.url.split(`{${s}}`).join(Fr(qx(r,e),{escape:!0})))}const c=Dr({key:n.name,value:r,style:i||"simple",explode:o||!1,escape:!0});t.url=t.url.split(`{${s}}`).join(c)}function Vx(e){let{req:t,value:r,parameter:n}=e;if(t.query=t.query||{},n.content){const e=qx(r,Object.keys(n.content)[0]);if(e)t.query[n.name]=e;else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}else if(!1===r&&(r="false"),0===r&&(r="0"),r){const{style:e,explode:s,allowReserved:i}=n;t.query[n.name]={value:r,serializationOption:{style:e,explode:s,allowReserved:i}}}else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}const Bx=["accept","authorization","content-type"];function Ux(e){let{req:t,parameter:r,value:n}=e;if(t.headers=t.headers||{},!(Bx.indexOf(r.name.toLowerCase())>-1))if(r.content){const e=Object.keys(r.content)[0];t.headers[r.name]=qx(n,e)}else void 0!==n&&(t.headers[r.name]=Dr({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))}function zx(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{};const s=typeof n;if(r.content){const e=Object.keys(r.content)[0];t.headers.Cookie=`${r.name}=${qx(n,e)}`}else if("undefined"!==s){const e="object"===s&&!Array.isArray(n)&&r.explode?"":`${r.name}=`;t.headers.Cookie=e+Dr({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}const Hx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Jx}=Hx,Gx=Jx;function Wx(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i=P({},t),{authorized:o={}}=r,a=n.security||s.security||[],c=o&&!!Object.keys(o).length,l=Ws()(s,["components","securitySchemes"])||{};if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!c||!a||Array.isArray(n.security)&&!n.security.length)return t;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=l[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=Gx(`${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 c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(n||o){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((e=>{let[t,r]=e;const n=parseInt(t,10);return n>=200&&n<300&&Nx(r.content)})).reduce(((e,t)=>{let[,r]=t;return e.concat(Object.keys(r.content))}),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof n){const e=c.content[a]?.encoding??{};t.form={},Object.keys(n).forEach((r=>{t.form[r]={value:n[r],encoding:e[r]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function Kx(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i=P({},t),{authorized:o={},specSecurity:a=[]}=r,c=n.security||a,l=o&&!!Object.keys(o).length,u=s.securityDefinitions;if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!l||!c||Array.isArray(n.security)&&!n.security.length)return t;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e];if(!t)return;const{token:r}=t,n=t.value||t,s=u[e],{type:a}=s,c=s["x-tokenName"]||"access_token",l=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===s.in?"query":"headers";i[e]=i[e]||{},i[e][s.name]=n}else if("basic"===a)if(n.header)i.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=Gx(`${e}:${t}`),i.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&l&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",i.headers.authorization=`${p} ${l}`)}))})),i}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||a)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}function Yx(e,t){return`${t.toLowerCase()}-${e}`}function Xx(e,t){return e&&e.paths?function(e,t){return Mx(e,t,!0)||null}(e,(e=>{let{pathName:r,method:n,operation:s}=e;if(!s||"object"!=typeof s)return!1;const i=s.operationId;return[Ds(s,r,n),Yx(r,n),i].some((e=>e&&e===t))})):null}const Qx=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Zx=e=>Array.isArray(e)?e:[],eS=Qn("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),tS={buildRequest:rS};function rS(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:u,serverVariables:p,http:h,signal:f}=e;let{parameters:m,parameterBuilders:d}=e;const y=Bs(t);d||(d=y?l:_x);let g={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(g.signal=f),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),c&&(g.userFetch=c);const v=Xx(t,r);if(!v)throw new eS(`Operation ${r} not found`);const{operation:b={},method:O,pathName:j}=v;if(g.url+=sS({spec:t,scheme:s,contextUrl:a,server:u,serverVariables:p,pathName:j,method:O}),!r)return delete g.cookies,g;g.url+=j,g.method=`${O}`.toUpperCase(),m=m||{};const w=t.paths[j]||{};n&&(g.headers.accept=n);const E=(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(Zx(b.parameters)).concat(Zx(w.parameters)));E.forEach((e=>{const r=d[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=m),n=e&&e.name&&m[e.name],void 0===n?n=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,E).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(y&&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:g,parameter:e,value:n,operation:b,spec:t})}}));const x=P(P({},e),{},{operation:b});if(g=y?Wx(x,g):Kx(x,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+Fx.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,Xr(g),g}const nS=e=>e?e.replace(/\W/g,""):null;function sS(e){return Bs(e.spec)?function(e){let{spec:t,pathName:r,method:n,server:s,contextUrl:i,serverVariables:o={}}=e;const a=Ws()(t,["paths",r,(n||"").toLowerCase(),"servers"])||Ws()(t,["paths",r,"servers"])||Ws()(t,["servers"]);let c="",l=null;if(s&&a&&a.length){const e=a.map((e=>e.url));e.indexOf(s)>-1&&(c=s,l=a[e.indexOf(s)])}!c&&a&&a.length&&(c=a[0].url,[l]=a);if(c.indexOf("{")>-1){const e=function(e){const t=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(e);)t.push(n[1]);return t}(c);e.forEach((e=>{if(l.variables&&l.variables[e]){const t=l.variables[e],r=o[e]||t.default,n=new RegExp(`{${e}}`,"g");c=c.replace(n,r)}}))}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e&&t?A.parse(A.resolve(t,e)):A.parse(e),n=A.parse(t),s=nS(r.protocol)||nS(n.protocol)||"",i=r.host||n.host,o=r.pathname||"";let a;a=s&&i?`${s}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(c,i)}(e):function(e){let{spec:t,scheme:r,contextUrl:n=""}=e;const s=A.parse(n),i=Array.isArray(t.schemes)?t.schemes[0]:null,o=r||i||nS(s.protocol)||"http",a=t.host||s.host||"",c=t.basePath||"";let l;l=o&&a?`${o}://${a+c}`:c;return"/"===l[l.length-1]?l.slice(0,-1):l}(e)}function iS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?t.url=e:t=e,!(this instanceof iS))return new iS(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,iS.makeApisTagOperation(this)),this)));return r.client=this,r}iS.http=qr,iS.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),_r.mergeInQueryOrForm(n),n=t(n),r(e(n)))}.bind(null,iS.http),iS.resolveStrategies={"openapi-3-1-apidom":Cx,"openapi-3-0":zs,"openapi-2-0":Us,generic:qs},iS.resolve=Hs({strategies:[iS.resolveStrategies["openapi-3-1-apidom"],iS.resolveStrategies["openapi-3-0"],iS.resolveStrategies["openapi-2-0"],iS.resolveStrategies.generic]}),iS.resolveSubtree=Ks({strategies:[iS.resolveStrategies["openapi-3-1-apidom"],iS.resolveStrategies["openapi-3-0"],iS.resolveStrategies["openapi-2-0"],iS.resolveStrategies.generic]}),iS.execute=function(e){let{http:t,fetch:r,spec:n,operationId:s,pathName:i,method:o,parameters:a,securities:c}=e,l=ll(e,Qx);const u=t||r||qr;i&&o&&!s&&(s=Yx(i,o));const p=tS.buildRequest(P({spec:n,operationId:s,parameters:a,securities:c,http:u},l));return p.body&&(Nx(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),u(p)},iS.serializeRes=Vr,iS.serializeHeaders=Br,iS.clearCache=function(){Rs.refs.clearCache()},iS.makeApisTagOperation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Rx.makeExecute(e);return{apis:Rx.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},iS.buildRequest=rS,iS.helpers={opId:Ds},iS.getBaseUrl=sS,iS.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:GE}},parse:{parsers:{JsonParser:WE,YamlParser:KE,OpenApiJson3_1Parser:YE,OpenApiYaml3_1Parser:XE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:$x}}},iS.prototype={http:qr,execute(e){return this.applyDefaults(),iS.execute(P({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 iS.resolve(P({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)))}},iS.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(t&&t.startsWith("http")){const r=A.parse(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};const{helpers:oS}=iS,aS=iS})(),n=n.default})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={9559:function(){!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,s="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function d(e){var t=new FileReader,r=m(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(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):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=m(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=l(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[l(e)]},h.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},h.prototype.set=function(e,t){this.map[l(e)]=u(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var r,n,s=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=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=(r=t.method||this.method||"GET",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(s)}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(s))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];x.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new x(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 r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function j(e,r){return new Promise((function(n,i){var o=new b(e,r);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var s=r.join(":").trim();t.append(n,s)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var s="response"in a?a.response:a.responseText;n(new x(s,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&s&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}j.polyfill=!0,e.fetch||(e.fetch=j,e.Headers=h,e.Request=b,e.Response=x),t.Headers=h,t.Request=b,t.Response=x,t.fetch=j,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},1924:(e,t,r)=>{"use strict";var n=r(210),s=r(5559),i=s(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?s(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),s=r(210),i=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),a=s("%Reflect.apply%",!0)||n.call(o,i),c=s("%Object.getOwnPropertyDescriptor%",!0),l=s("%Object.defineProperty%",!0),u=s("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(n,o,arguments);c&&l&&(c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return a(n,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},6489:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||s,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var c=e.indexOf(";",i);if(-1===c)c=e.length;else if(c<a){i=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(i,a).trim();if(void 0===r[l]){var u=e.slice(a+1,c).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=o(u,n)}i=c+1}return r},t.serialize=function(e,t,s){var o=s||{},a=o.encode||i;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!n.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+p.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}function o(e,t){try{return t(e)}catch(t){return e}}},4101:(e,t,r)=>{var n=r(8957);e.exports=n},415:(e,t,r)=>{r(1181),r(7627),r(4415),r(6274),r(7971);var n=r(4058);e.exports=n.AggregateError},6121:(e,t,r)=>{e.exports=r(8644)},8644:(e,t,r)=>{r(9731);var n=r(4101);e.exports=n},4883:(e,t,r)=>{var n=r(7475),s=r(9826),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},1851:(e,t,r)=>{var n=r(7475),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},8479:e=>{e.exports=function(){}},6059:(e,t,r)=>{var n=r(941),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},1692:(e,t,r)=>{var n=r(4529),s=r(9413),i=r(623),o=function(e){return function(t,r,o){var a,c=n(t),l=i(c),u=s(o,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},2532:(e,t,r)=>{var n=r(5329),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},9697:(e,t,r)=>{var n=r(2885),s=r(7475),i=r(2532),o=r(9813)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i: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=a(e),o))?r:c?i(t):"Object"==(n=i(t))&&s(t.callee)?"Arguments":n}},3489:(e,t,r)=>{var n=r(953),s=r(1136),i=r(9677),o=r(5988);e.exports=function(e,t,r){for(var a=s(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||c(e,p,l(t,p))}}},1310:(e,t,r)=>{var n=r(5981);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3538:e=>{e.exports=function(e,t){return{value:e,done:t}}},2029:(e,t,r)=>{var n=r(5746),s=r(5988),i=r(1887);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},1887:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5929:(e,t,r)=>{var n=r(2029);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5609:(e,t,r)=>{var n=r(1899),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5746:(e,t,r)=>{var n=r(5981);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6616:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},1333:(e,t,r)=>{var n=r(1899),s=r(941),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3281:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2861:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3385:(e,t,r)=>{var n,s,i=r(1899),o=r(2861),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},6759:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3995:(e,t,r)=>{var n=r(5329),s=Error,i=n("".replace),o=String(s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},9585:(e,t,r)=>{var n=r(2029),s=r(3995),i=r(8780),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},8780:(e,t,r)=>{var n=r(5981),s=r(1887);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},6887:(e,t,r)=>{"use strict";var n=r(1899),s=r(9730),i=r(7484),o=r(7475),a=r(9677).f,c=r(7252),l=r(4058),u=r(6843),p=r(2029),h=r(953),f=function(e){var t=function(r,n,i){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,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,g,v,b,E,x=e.target,w=e.global,j=e.stat,O=e.proto,S=w?n:j?n[x]:(n[x]||{}).prototype,P=w?l:l[x]||p(l,x,{})[x],A=P.prototype;for(d in t)s=!(r=c(w?d:x+(j?".":"#")+d,e.forced))&&S&&h(S,d),g=P[d],s&&(v=e.dontCallGetSet?(E=a(S,d))&&E.value:S[d]),y=s&&v?v:t[d],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),O&&(h(l,m=x+"Prototype")||p(l,m,{}),p(l[m],d,y),e.real&&A&&(r||!A[d])&&p(A,d,y)))}},5981:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},9730:(e,t,r)=>{var n=r(8285),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},6843:(e,t,r)=>{var n=r(7484),s=r(4883),i=r(8285),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},8285:(e,t,r)=>{var n=r(5981);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8834:(e,t,r)=>{var n=r(8285),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},9417:(e,t,r)=>{var n=r(5746),s=r(953),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},5526:(e,t,r)=>{var n=r(5329),s=r(4883);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7484:(e,t,r)=>{var n=r(2532),s=r(5329);e.exports=function(e){if("Function"===n(e))return s(e)}},5329:(e,t,r)=>{var n=r(8285),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},626:(e,t,r)=>{var n=r(4058),s=r(1899),i=r(7475),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},2902:(e,t,r)=>{var n=r(9697),s=r(4229),i=r(2119),o=r(2077),a=r(9813)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},3476:(e,t,r)=>{var n=r(8834),s=r(4883),i=r(6059),o=r(9826),a=r(2902),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return i(n(r,e));throw c(o(e)+" is not iterable")}},4229:(e,t,r)=>{var n=r(4883),s=r(2119);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},1899:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},953:(e,t,r)=>{var n=r(5329),s=r(9678),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},7748:e=>{e.exports={}},5463:(e,t,r)=>{var n=r(626);e.exports=n("document","documentElement")},2840:(e,t,r)=>{var n=r(5746),s=r(5981),i=r(1333);e.exports=!n&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:(e,t,r)=>{var n=r(5329),s=r(5981),i=r(2532),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},926:(e,t,r)=>{var n=r(7475),s=r(941),i=r(8929);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},3794:(e,t,r)=>{var n=r(941),s=r(2029);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},5402:(e,t,r)=>{var n,s,i,o=r(7093),a=r(1899),c=r(941),l=r(2029),u=r(953),p=r(3030),h=r(4262),f=r(7748),m="Object already initialized",d=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw d(m);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");f[v]=!0,n=function(e,t){if(u(e,v))throw d(m);return t.facade=e,l(e,v,t),t},s=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},6782:(e,t,r)=>{var n=r(9813),s=r(2077),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},7475:(e,t,r)=>{var n=r(6616),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},7252:(e,t,r)=>{var n=r(5981),s=r(7475),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==u||r!=l&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},2119:e=>{e.exports=function(e){return null==e}},941:(e,t,r)=>{var n=r(7475),s=r(6616),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},2529:e=>{e.exports=!0},6664:(e,t,r)=>{var n=r(626),s=r(7475),i=r(7046),o=r(2302),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},3091:(e,t,r)=>{var n=r(6843),s=r(8834),i=r(6059),o=r(9826),a=r(6782),c=r(623),l=r(7046),u=r(3476),p=r(2902),h=r(7609),f=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,g,v,b,E,x,w,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=n(t,j),k=function(e){return y&&h(y,"normal",e),new m(!0,e)},T=function(e){return O?(i(e),A?$(e[0],e[1],k):$(e[0],e[1])):A?$(e,k):$(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw f(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((E=T(e[v]))&&l(d,E))return E;return new m(!1)}y=u(e,g)}for(x=S?e.next:y.next;!(w=s(x,y)).done;){try{E=T(w.value)}catch(e){h(y,"throw",e)}if("object"==typeof E&&E&&l(d,E))return E}return new m(!1)}},7609:(e,t,r)=>{var n=r(8834),s=r(6059),i=r(4229);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},3847:(e,t,r)=>{"use strict";var n=r(5143).IteratorPrototype,s=r(9290),i=r(1887),o=r(904),a=r(2077),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=s(n,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},5105:(e,t,r)=>{"use strict";var n=r(6887),s=r(8834),i=r(2529),o=r(9417),a=r(7475),c=r(3847),l=r(249),u=r(8929),p=r(904),h=r(2029),f=r(5929),m=r(9813),d=r(2077),y=r(5143),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,x=m("iterator"),w="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,P){c(r,t,o);var A,$,k,T=function(e){if(e===m&&F)return F;if(!E&&e in R)return R[e];switch(e){case w:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",M=!1,R=e.prototype,I=R[x]||R["@@iterator"]||m&&R[m],F=!E&&I||T(m),_="Array"==t&&R.entries||I;if(_&&(A=l(_.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[x])||f(A,x,S)),p(A,C,!0,!0),i&&(d[C]=S)),g&&m==j&&I&&I.name!==j&&(!i&&v?h(R,"name",j):(M=!0,F=function(){return s(I,this)})),m)if($={values:T(j),keys:y?F:T(w),entries:T(O)},P)for(k in $)(E||M||!(k in R))&&f(R,k,$[k]);else n({target:t,proto:!0,forced:E||M},$);return i&&!P||R[x]===F||f(R,x,F,{name:m}),d[t]=F,$}},5143:(e,t,r)=>{"use strict";var n,s,i,o=r(5981),a=r(7475),c=r(941),l=r(9290),u=r(249),p=r(5929),h=r(9813),f=r(2529),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[m])||p(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2077:e=>{e.exports={}},623:(e,t,r)=>{var n=r(3057);e.exports=function(e){return n(e.length)}},5331:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4649:(e,t,r)=>{var n=r(5803);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},9290:(e,t,r)=>{var n,s=r(6059),i=r(9938),o=r(6759),a=r(7748),c=r(5463),l=r(1333),u=r(4262),p="prototype",h="script",f=u("IE_PROTO"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=s(e),r=new m,m[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},9938:(e,t,r)=>{var n=r(5746),s=r(3937),i=r(5988),o=r(6059),a=r(4529),c=r(4771);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),l=s.length,u=0;l>u;)i.f(e,r=s[u++],n[r]);return e}},5988:(e,t,r)=>{var n=r(5746),s=r(2840),i=r(3937),o=r(6059),a=r(3894),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9677:(e,t,r)=>{var n=r(5746),s=r(8834),i=r(6760),o=r(1887),a=r(4529),c=r(3894),l=r(953),u=r(2840),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!s(i.f,e,t),e[t])}},946:(e,t,r)=>{var n=r(5629),s=r(6759).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7857:(e,t)=>{t.f=Object.getOwnPropertySymbols},249:(e,t,r)=>{var n=r(953),s=r(7475),i=r(9678),o=r(4262),a=r(1310),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},7046:(e,t,r)=>{var n=r(5329);e.exports=n({}.isPrototypeOf)},5629:(e,t,r)=>{var n=r(5329),s=r(953),i=r(4529),o=r(1692).indexOf,a=r(7748),c=n([].push);e.exports=function(e,t){var r,n=i(e),l=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&c(u,r);for(;t.length>l;)s(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},4771:(e,t,r)=>{var n=r(5629),s=r(6759);e.exports=Object.keys||function(e){return n(e,s)}},6760:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},8929:(e,t,r)=>{var n=r(5526),s=r(6059),i=r(1851);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},5623:(e,t,r)=>{"use strict";var n=r(2885),s=r(9697);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9811:(e,t,r)=>{var n=r(8834),s=r(7475),i=r(941),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw o("Can't convert object to primitive value")}},1136:(e,t,r)=>{var n=r(626),s=r(5329),i=r(946),o=r(7857),a=r(6059),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},4058:e=>{e.exports={}},9056:(e,t,r)=>{var n=r(5988).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},7962:(e,t,r)=>{var n=r(2119),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},904:(e,t,r)=>{var n=r(2885),s=r(5988).f,i=r(2029),o=r(953),a=r(5623),c=r(9813)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;o(u,c)||s(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",a)}}},4262:(e,t,r)=>{var n=r(8726),s=r(9418),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3030:(e,t,r)=>{var n=r(1899),s=r(5609),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8726:(e,t,r)=>{var n=r(2529),s=r(3030);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4620:(e,t,r)=>{var n=r(5329),s=r(2435),i=r(5803),o=r(7962),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,p=i(o(t)),h=s(r),f=p.length;return h<0||h>=f?e?"":void 0:(n=c(p,h))<55296||n>56319||h+1===f||(u=c(p,h+1))<56320||u>57343?e?a(p,h):n:e?l(p,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},3405:(e,t,r)=>{var n=r(3385),s=r(5981),i=r(1899).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9413:(e,t,r)=>{var n=r(2435),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4529:(e,t,r)=>{var n=r(7026),s=r(7962);e.exports=function(e){return n(s(e))}},2435:(e,t,r)=>{var n=r(5331);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3057:(e,t,r)=>{var n=r(2435),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},9678:(e,t,r)=>{var n=r(7962),s=Object;e.exports=function(e){return s(n(e))}},6935:(e,t,r)=>{var n=r(8834),s=r(941),i=r(6664),o=r(4229),a=r(9811),c=r(9813),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},3894:(e,t,r)=>{var n=r(6935),s=r(6664);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},2885:(e,t,r)=>{var n={};n[r(9813)("toStringTag")]="z",e.exports="[object z]"===String(n)},5803:(e,t,r)=>{var n=r(9697),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9826:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9418:(e,t,r)=>{var n=r(5329),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},2302:(e,t,r)=>{var n=r(3405);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:(e,t,r)=>{var n=r(5746),s=r(5981);e.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7093:(e,t,r)=>{var n=r(1899),s=r(7475),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},9813:(e,t,r)=>{var n=r(1899),s=r(8726),i=r(953),o=r(9418),a=r(3405),c=r(2302),l=n.Symbol,u=s("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},2864:(e,t,r)=>{"use strict";var n=r(626),s=r(953),i=r(2029),o=r(7046),a=r(8929),c=r(3489),l=r(9056),u=r(926),p=r(4649),h=r(3794),f=r(9585),m=r(5746),d=r(2529);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),E=b[b.length-1],x=n.apply(null,b);if(x){var w=x.prototype;if(!d&&s(w,"cause")&&delete w.cause,!r)return x;var j=n("Error"),O=t((function(e,t){var r=p(y?t:e,void 0),n=y?new x(e):new x;return void 0!==r&&i(n,"message",r),f(n,O,n.stack,2),this&&o(w,this)&&u(n,this,O),arguments.length>v&&h(n,arguments[v]),n}));if(O.prototype=w,"Error"!==E?a?a(O,j):c(O,j,{name:!0}):m&&g in x&&(l(O,x,g),l(O,x,"prepareStackTrace")),c(O,x),!d)try{w.name!==E&&i(w,"name",E),w.constructor=O}catch(e){}return O}}},4415:(e,t,r)=>{var n=r(6887),s=r(626),i=r(9730),o=r(5981),a=r(2864),c="AggregateError",l=s(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),u,!0)})},9812:(e,t,r)=>{"use strict";var n=r(6887),s=r(7046),i=r(249),o=r(8929),a=r(3489),c=r(9290),l=r(2029),u=r(1887),p=r(3794),h=r(9585),f=r(3091),m=r(4649),d=r(9813)("toStringTag"),y=Error,g=[].push,v=function(e,t){var r,n=s(b,this);o?r=o(y(),n?i(this):b):(r=n?this:c(b),l(r,d,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return f(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:v})},7627:(e,t,r)=>{r(9812)},6274:(e,t,r)=>{"use strict";var n=r(4529),s=r(8479),i=r(2077),o=r(5402),a=r(5988).f,c=r(5105),l=r(3538),u=r(2529),p=r(5746),h="Array Iterator",f=o.set,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,l(void 0,!0)):l("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},1181:(e,t,r)=>{var n=r(6887),s=r(1899),i=r(9730),o=r(2864),a="WebAssembly",c=s[a],l=7!==Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),n({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),n({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},7971:(e,t,r)=>{"use strict";var n=r(4620).charAt,s=r(5803),i=r(5402),o=r(5105),a=r(3538),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},9731:(e,t,r)=>{r(7627)},7634:(e,t,r)=>{r(6274);var n=r(3281),s=r(1899),i=r(9697),o=r(2029),a=r(2077),c=r(9813)("toStringTag");for(var l in n){var u=s[l],p=u&&u.prototype;p&&i(p)!==c&&o(p,c,l),a[l]=a.Array}},8957:(e,t,r)=>{r(9731);var n=r(415);r(7634),e.exports=n},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function s(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(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 o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var s={};return r.isMergeableObject(e)&&i(e).forEach((function(t){s[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?s[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):s[i]=n(t[i],r))})),s}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||s,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):n(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},7648:e=>{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var s,i=t.call(arguments,1),o=Math.max(0,n.length-i.length),a=[],c=0;c<o;c++)a.push("$"+c);if(s=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var r=n.apply(this,i.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,i.concat(t.call(arguments)))})),n.prototype){var l=function(){};l.prototype=n.prototype,s.prototype=new l,l.prototype=null}return s}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,s=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=r(1405)(),h=r(8185)(),f=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),m={},d="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&f&&(r=f(s.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(8612),x=r(7642),w=E.call(Function.call,Array.prototype.concat),j=E.call(Function.apply,Array.prototype.splice),O=E.call(Function.call,String.prototype.replace),S=E.call(Function.call,String.prototype.slice),P=E.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,k=function(e,t){var r,n=e;if(x(b,n)&&(n="%"+(r=b[n])[0]+"%"),x(y,n)){var i=y[n];if(i===m&&(i=v(n)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,A,(function(e,t,r,s){n[n.length]=r?O(s,$,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=k("%"+n+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(n=p[0],j(r,w([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var m=r[h],d=S(m,0,1),g=S(m,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),x(y,a="%"+(n+="."+m)+"%"))l=y[a];else if(null!=l){if(!(m in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var v=c(l,m);l=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[m]}else f=x(l,m),l=l[m];f&&!u&&(y[a]=l)}}return l}},8185:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},8668:(e,t,r)=>{var n=r(1469);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return n(e)?e:[e]}},6384:(e,t,r)=>{var n=r(7040),s=r(4125),i=r(2117),o=r(7518),a=r(4705);function c(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])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2908:e=>{e.exports=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}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7786:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},4239:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2118:e=>{e.exports=function(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}},939:(e,t,r)=>{var n=r(2492),s=r(7005);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},2492:(e,t,r)=>{var n=r(6384),s=r(7114),i=r(8351),o=r(6096),a=r(4160),c=r(1469),l=r(4144),u=r(6719),p="[object Arguments]",h="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,g){var v=c(e),b=c(t),E=v?h:a(e),x=b?h:a(t),w=(E=E==p?f:E)==f,j=(x=x==p?f:x)==f,O=E==x;if(O&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(O&&!w)return g||(g=new n),v||u(e)?s(e,t,r,d,y,g):i(e,t,E,r,d,y,g);if(!(1&r)){var S=w&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new n),y(A,$,r,d,g)}}return!!O&&(g||(g=new n),o(e,t,r,d,y,g))}},4757:(e,t,r)=>{var n=r(2118);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},7114:(e,t,r)=>{var n=r(8668),s=r(2908),i=r(4757);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),f=c.get(t);if(h&&f)return h==t&&f==e;var m=-1,d=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8351:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6096:(e,t,r)=>{var n=r(8234),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:s.call(t,h)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var E=e.constructor,x=t.constructor;E==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof x&&x instanceof x||(d=!1)}return a.delete(e),a.delete(t),d}},8234:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},4160:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var s=null==e?void 0:n(e,t);return void 0===s?r:s}},1469:e=>{var t=Array.isArray;e.exports=t},1584:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},4144:e=>{e.exports=function(){return!1}},8446:(e,t,r)=>{var n=r(939);e.exports=function(e,t){return n(e,t)}},5220:e=>{e.exports=function(e){return null===e}},1763:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7037:(e,t,r)=>{var n=r(4239),s=r(1469),i=r(7005);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},6719:e=>{e.exports=function(){return!1}},4885:e=>{e.exports=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)}}},2566:(e,t,r)=>{const n=r(4885);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{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(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(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&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},7645:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},8520:(e,t,r)=>{const n=r(5220),s=r(7037),i=r(1763),o=r(1584),a=r(3218),c=r(8219),l=r(9829);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.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",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(s,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.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 c(this)}}c.prototype.Namespace=u,e.exports=u},7526:(e,t,r)=>{const n=r(4885),s=r(2566);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(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()))}}e.exports=i},9829:(e,t,r)=>{const n=r(3079),s=r(6295),i=r(6036),o=r(1090),a=r(8866),c=r(5804),l=r(5946),u=r(6735),p=r(9964),h=r(8588),f=r(2566),m=r(7526),d=r(7645);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=h,n.prototype.MemberElement=l,n.prototype.refract=y,f.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:f,ObjectSlice:m,KeyValuePair:d}},9964:(e,t,r)=>{const n=r(3079);e.exports=class extends n{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)}}},8588:(e,t,r)=>{const n=r(3079);e.exports=class extends n{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)}}},3500:(e,t,r)=>{const n=r(8520),s=r(9829);t.lS=n,r(7645),t.O4=s.ArraySlice,s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,r(8219),r(3414)},5804:(e,t,r)=>{const n=r(4885),s=r(3079),i=r(2566);class o extends s{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 i(this.content.filter(e,t))}reject(e,t){return this.filter(n(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 i(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)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},8866:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},3079:(e,t,r)=>{const n=r(8446),s=r(7645),i=r(2566);class o{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 o?this.content.toValue():this.content instanceof s?{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 i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,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 n(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(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}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 i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},5946:(e,t,r)=>{const n=r(7645),s=r(3079);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),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)}}},6295:(e,t,r)=>{const n=r(3079);e.exports=class extends n{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")}}},1090:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},6735:(e,t,r)=>{const n=r(4885),s=r(3218),i=r(5804),o=r(5946),a=r(7526);e.exports=class extends i{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(s(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 o(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 a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},6036:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3414:(e,t,r)=>{const n=r(8219);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}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}return e&&e.map?e.map(this.serialise,this):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}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},8219:e=>{e.exports=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]))}))}}},631:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&s&&"function"==typeof s.get?s.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,d=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,E=String.prototype.toUpperCase,x=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,O=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e){var s=String(n),i=v.call(t,s.length+1);return b.call(s,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var F=r(4654),_=F.custom,N=B(_)?_:null;function D(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return b.call(String(e),/"/g,""")}function L(e){return!("[object Array]"!==J(e)||C&&"object"==typeof e&&C in e)}function V(e){return!("[object RegExp]"!==J(e)||C&&"object"==typeof e&&C in e)}function B(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,s){var a=r||{};if(z(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!z(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return d?I(t,E):E}if("bigint"==typeof t){var w=String(t)+"n";return d?I(t,w):w}var P=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var $=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(a,n);if(void 0===s)s=[];else if(H(s,t)>=0)return"[Circular]";function _(t,r,i){if(r&&(s=S.call(s)).push(r),i){var o={depth:a.depth};return z(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,n+1,s)}return e(t,a,n+1,s)}if("function"==typeof t&&!V(t)){var U=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),W=Z(t,_);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(W.length>0?" { "+O.call(W,", ")+" }":"")}if(B(t)){var ee=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||T?ee:K(ee)}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 te="<"+x.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+D(q(re[ne].value),"double",a);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+x.call(String(t.nodeName))+">"}if(L(t)){if(0===t.length)return"[]";var se=Z(t,_);return $&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,$)+"]":"[ "+O.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==J(e)||C&&"object"==typeof e&&C in e)}(t)){var ie=Z(t,_);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ie,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+_(t.cause),ie),", ")+" }"}if("object"==typeof t&&c){if(N&&"function"==typeof t[N]&&F)return F(t,{depth:P-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var oe=[];return o&&o.call(t,(function(e,r){oe.push(_(r,t,!0)+" => "+_(e,t))})),X("Map",i.call(t),oe,$)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return u&&u.call(t,(function(e){ae.push(_(e,t))})),X("Set",l.call(t),ae,$)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==J(e)||C&&"object"==typeof e&&C in e)}(t))return K(_(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return K(_(A.call(t)));if(function(e){return!("[object Boolean]"!==J(e)||C&&"object"==typeof e&&C in e)}(t))return K(m.call(t));if(function(e){return!("[object String]"!==J(e)||C&&"object"==typeof e&&C in e)}(t))return K(_(String(t)));if(!function(e){return!("[object Date]"!==J(e)||C&&"object"==typeof e&&C in e)}(t)&&!V(t)){var ce=Z(t,_),le=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!le&&C&&Object(t)===t&&C in t?v.call(J(t),8,-1):ue?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+O.call(j.call([],pe||[],ue||[]),": ")+"] ":"");return 0===ce.length?he+"{}":$?he+"{"+Q(ce,$)+"}":he+"{ "+O.call(ce,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return U.call(e,t)}function J(e){return d.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return D(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+E.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):O.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=L(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=z(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(T){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||T&&i["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof $)for(var l=0;l<o.length;l++)M.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}},4155:e=>{var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=o(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}n.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];c.push(new f(e,t)),1!==c.length||l||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:s}},129:(e,t,r)=>{"use strict";var n=r(8261),s=r(5235),i=r(5798);e.exports={formats:i,parse:s,stringify:n}},5235:(e,t,r)=>{"use strict";var n=r(2769),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,u=[];if(l){if(!r.plainObjects&&s.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var p=0;r.depth>0&&null!==(a=o.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:c(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=s:"__proto__"!==l&&(o[l]=s):o={0:s}}s=o}return s}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;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?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,p),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?m="utf-8":"utf8=%26%2310003%3B"===h[r]&&(m="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var d,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(d=t.decoder(g,o.decoder,m,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(g.slice(0,b),o.decoder,m,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(l,d)?l[d]=n.combine(l[d],y):l[d]=y}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var m=h[f],d=l(m,u[m],r,"string"==typeof e);p=n.merge(p,d,r)}return!0===r.allowSparse?p:n.compact(p)}},8261:(e,t,r)=>{"use strict";var n=r(7478),s=r(2769),i=r(5798),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,h=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},m={},d=function e(t,r,i,o,a,l,p,h,d,y,g,v,b,E,x,w){for(var j,O=t,S=w,P=0,A=!1;void 0!==(S=S.get(m))&&!A;){var $=S.get(t);if(P+=1,void 0!==$){if($===P)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(m)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=g(O):"comma"===i&&c(O)&&(O=s.maybeMap(O,(function(e){return e instanceof Date?g(e):e}))),null===O){if(a)return p&&!E?p(r,f.encoder,x,"key",v):r;O=""}if("string"==typeof(j=O)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||s.isBuffer(O))return p?[b(E?r:p(r,f.encoder,x,"key",v))+"="+b(p(O,f.encoder,x,"value",v))]:[b(r)+"="+b(String(O))];var k,T=[];if(void 0===O)return T;if("comma"===i&&c(O))E&&p&&(O=s.maybeMap(O,p)),k=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(h))k=h;else{var C=Object.keys(O);k=d?C.sort(d):C}for(var M=o&&c(O)&&1===O.length?r+"[]":r,R=0;R<k.length;++R){var I=k[R],F="object"==typeof I&&void 0!==I.value?I.value:O[I];if(!l||null!==F){var _=c(O)?"function"==typeof i?i(M,I):M:M+(y?"."+I:"["+I+"]");w.set(t,P);var N=n();N.set(m,w),u(T,e(F,_,i,o,a,l,"comma"===i&&E&&c(O)?null:p,h,d,y,g,v,b,E,x,N))}}return T};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;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||f.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 r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=f.filter;return("function"==typeof e.filter||c(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?s=(0,l.filter)("",s):c(l.filter)&&(r=l.filter);var p,h=[];if("object"!=typeof s||null===s)return"";p=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===m&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var g=n(),v=0;v<r.length;++v){var b=r[v];l.skipNulls&&null===s[b]||u(h,d(s[b],b,m,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var E=h.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),E.length>0?x+E:""}},2769:(e,t,r)=>{"use strict";var n=r(5798),s=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],u=o[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},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(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},7478:(e,t,r)=>{"use strict";var n=r(210),s=r(1924),i=r(631),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=s("WeakMap.prototype.get",!0),u=s("WeakMap.prototype.set",!0),p=s("WeakMap.prototype.has",!0),h=s("Map.prototype.get",!0),f=s("Map.prototype.set",!0),m=s("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){var r=d(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return m(t,n)}else if(r)return function(e,t){return!!d(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,s)):c?(t||(t=new c),f(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},3992:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",f="deepConfiguration",m="deepProps",d="deepStatics",y="deepConf",g="initializers",v="methods",b="composers",E="compose";function x(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 j=w.bind(0,(function(e,t){if(t)for(var r=x(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function O(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||O(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var A=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!P(n))return n;for(var s,i,o=x(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(P(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function $(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return O(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function n(r,n){S(t[r])&&(S(e[r])||(e[r]={}),(n||j)(e[r],t[r]))}function s(n){(r=$(e[n],t[n]))&&(e[n]=r)}return t&&S(t=t[E]||t)&&(n(v),n(o),n(a,A),n(c),n(l),n(u,A),n(p),n(h),n(f,A),s(g),s(b)),e}function T(){return function(e){return r=function e(r){var n,s,i=e[E]||{},l={__proto__:i[v]},u=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&A(l,h),(h=i[o])&&j(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)O(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&A(r,n),(n=e[l])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=O(r[E])?r[E]:T,j(r[E]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function C(e){return O(e)&&O(e[E])}var M={};function R(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[E]||n).call(r,s)}}M[v]=R(v,j),M[o]=M.props=R(o,j),M[g]=M.init=R(g,$),M[b]=R(b,$),M[a]=M[m]=R(a,A),M[l]=M.statics=R(l,j),M[u]=M[d]=R(u,A),M[h]=M.conf=R(h,j),M[f]=M[y]=R(f,A),M[c]=R(c,j),M[p]=R(p,j),n=M[E]=j((function(){for(var e,x,w=0,O=[],P=arguments,k=this;w<P.length;)S(e=P[w++])&&O.push(C(e)?e:((s={})[v]=(x=e)[v]||t,n=x.props,s[o]=S((r=x[o])||n)?j({},n,r):t,s[g]=$(x.init,x[g]),s[b]=$(x[b]),n=x[m],s[a]=S((r=x[a])||n)?A({},n,r):t,s[c]=x[c],n=x.statics,s[l]=S((r=x[l])||n)?j({},n,r):t,n=x[d],s[u]=S((r=x[u])||n)?A({},n,r):t,r=x[p],s[p]=S((n=x.name&&{name:{value:x.name}})||r)?j({},r,n):t,n=x.conf,s[h]=S((r=x[h])||n)?j({},n,r):t,n=x[y],s[f]=S((r=x[f])||n)?A({},n,r):t,s));if(e=T.apply(k||i,O),k&&O.unshift(k),Array.isArray(P=e[E][b]))for(w=0;w<P.length;)e=C(k=P[w++]({stamp:e,composables:O}))?k:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[l]=M,i=T(s),n[E]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},3692:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)}var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=Object.prototype.hasOwnProperty||function(e,t){return t in e};function o(e){if("object"==typeof e&&null!==e){var i;if(r(e))i=[];else if("[object Date]"===t(e))i=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))i=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))i={message:e.message};else if(function(e){return"[object Boolean]"===t(e)}(e)||function(e){return"[object Number]"===t(e)}(e)||function(e){return"[object String]"===t(e)}(e))i=Object(e);else if(Object.create&&Object.getPrototypeOf)i=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)i={};else{var o=e.constructor&&e.constructor.prototype||e.__proto__||{},a=function(){};a.prototype=o,i=new a}return n(s(e),(function(t){i[t]=e[t]})),i}return e}function a(e,t,a){var c=[],l=[],u=!0;return function e(p){var h=a?o(p):p,f={},m=!0,d={node:h,node_:p,path:[].concat(c),parent:l[l.length-1],parents:l,key:c[c.length-1],isRoot:0===c.length,level:c.length,circular:null,update:function(e,t){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(m=!1)},delete:function(e){delete d.parent.node[d.key],e&&(m=!1)},remove:function(e){r(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(m=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return d;function y(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=s(d.node)),d.isLeaf=0===d.keys.length;for(var e=0;e<l.length;e++)if(l[e].node_===p){d.circular=l[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}y();var g=t.call(d,d.node);return void 0!==g&&d.update&&d.update(g),f.before&&f.before.call(d,d.node),m?("object"!=typeof d.node||null===d.node||d.circular||(l.push(d),y(),n(d.keys,(function(t,r){c.push(t),f.pre&&f.pre.call(d,d.node[t],t);var n=e(d.node[t]);a&&i.call(d.node,t)&&(d.node[t]=n.node),n.isLast=r===d.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(d,n),c.pop()})),l.pop()),f.after&&f.after.call(d,d.node),d):d}(e).node}function c(e){this.value=e}function l(e){return new c(e)}c.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return;t=t[n]}return t},c.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return!1;t=t[n]}return!0},c.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var s=e[n];i.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t},c.prototype.map=function(e){return a(this.value,e,!0)},c.prototype.forEach=function(e){return this.value=a(this.value,e,!1),this.value},c.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},c.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},c.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},c.prototype.clone=function(){var e=[],t=[];return function r(i){for(var a=0;a<e.length;a++)if(e[a]===i)return t[a];if("object"==typeof i&&null!==i){var c=o(i);return e.push(i),t.push(c),n(s(i),(function(e){c[e]=r(i[e])})),e.pop(),t.pop(),c}return i}(this.value)},n(s(c.prototype),(function(e){l[e]=function(t){var r=[].slice.call(arguments,1),n=new c(t);return n[e].apply(n,r)}})),e.exports=l},2511:function(e,t,r){var n;e=r.nmd(e),function(s){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var o,a=2147483647,c=36,l=1,u=26,p=38,h=700,f=72,m=128,d="-",y=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=c-l,x=Math.floor,w=String.fromCharCode;function j(e){throw new RangeError(b[e])}function O(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function S(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(v,".")).split("."),t).join(".")}function P(e){for(var t,r,n=[],s=0,i=e.length;s<i;)(t=e.charCodeAt(s++))>=55296&&t<=56319&&s<i?56320==(64512&(r=e.charCodeAt(s++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),s--):n.push(t);return n}function A(e){return O(e,(function(e){var t="";return e>65535&&(t+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=w(e)})).join("")}function $(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function k(e,t,r){var n=0;for(e=r?x(e/h):e>>1,e+=x(e/t);e>E*u>>1;n+=c)e=x(e/E);return x(n+(E+1)*e/(e+p))}function T(e){var t,r,n,s,i,o,p,h,y,g,v,b=[],E=e.length,w=0,O=m,S=f;for((r=e.lastIndexOf(d))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&j("not-basic"),b.push(e.charCodeAt(n));for(s=r>0?r+1:0;s<E;){for(i=w,o=1,p=c;s>=E&&j("invalid-input"),((h=(v=e.charCodeAt(s++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c)>=c||h>x((a-w)/o))&&j("overflow"),w+=h*o,!(h<(y=p<=S?l:p>=S+u?u:p-S));p+=c)o>x(a/(g=c-y))&&j("overflow"),o*=g;S=k(w-i,t=b.length+1,0==i),x(w/t)>a-O&&j("overflow"),O+=x(w/t),w%=t,b.splice(w++,0,O)}return A(b)}function C(e){var t,r,n,s,i,o,p,h,y,g,v,b,E,O,S,A=[];for(b=(e=P(e)).length,t=m,r=0,i=f,o=0;o<b;++o)(v=e[o])<128&&A.push(w(v));for(n=s=A.length,s&&A.push(d);n<b;){for(p=a,o=0;o<b;++o)(v=e[o])>=t&&v<p&&(p=v);for(p-t>x((a-r)/(E=n+1))&&j("overflow"),r+=(p-t)*E,t=p,o=0;o<b;++o)if((v=e[o])<t&&++r>a&&j("overflow"),v==t){for(h=r,y=c;!(h<(g=y<=i?l:y>=i+u?u:y-i));y+=c)S=h-g,O=c-g,A.push(w($(g+S%O,0))),h=x(S/O);A.push(w($(h,0))),i=k(r,E,n==s),r=0,++n}++r,++t}return A.join("")}o={version:"1.4.1",ucs2:{decode:P,encode:A},decode:T,encode:C,toASCII:function(e){return S(e,(function(e){return g.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return S(e,(function(e){return y.test(e)?T(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(2511);function s(){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}var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),u=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(129);function v(e,t,r){if(e&&"object"==typeof e&&e instanceof s)return e;var n=new s;return n.parse(e,t,r),n}s.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),o=-1!==s&&s<e.indexOf("#")?"?":"#",c=e.split(o);c[0]=c[0].replace(/\\/g,"/");var v=e=c.join(o);if(v=v.trim(),!r&&1===e.split("#").length){var b=a.exec(v);if(b)return this.path=v,this.href=v,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=i.exec(v);if(E){var x=(E=E[0]).toLowerCase();this.protocol=x,v=v.substr(E.length)}if(r||E||v.match(/^\/\/[^@/]+@[^@/]+/)){var w="//"===v.substr(0,2);!w||E&&d[E]||(v=v.substr(2),this.slashes=!0)}if(!d[E]&&(w||E&&!y[E])){for(var j,O,S=-1,P=0;P<p.length;P++){-1!==(A=v.indexOf(p[P]))&&(-1===S||A<S)&&(S=A)}-1!==(O=-1===S?v.lastIndexOf("@"):v.lastIndexOf("@",S))&&(j=v.slice(0,O),v=v.slice(O+1),this.auth=decodeURIComponent(j)),S=-1;for(P=0;P<u.length;P++){var A;-1!==(A=v.indexOf(u[P]))&&(-1===S||A<S)&&(S=A)}-1===S&&(S=v.length),this.host=v.slice(0,S),v=v.slice(S),this.parseHost(),this.hostname=this.hostname||"";var $="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!$)for(var k=this.hostname.split(/\./),T=(P=0,k.length);P<T;P++){var C=k[P];if(C&&!C.match(h)){for(var M="",R=0,I=C.length;R<I;R++)C.charCodeAt(R)>127?M+="x":M+=C[R];if(!M.match(h)){var F=k.slice(0,P),_=k.slice(P+1),N=C.match(f);N&&(F.push(N[1]),_.unshift(N[2])),_.length&&(v="/"+_.join(".")+v),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!m[x])for(P=0,T=l.length;P<T;P++){var L=l[P];if(-1!==v.indexOf(L)){var V=encodeURIComponent(L);V===L&&(V=escape(L)),v=v.split(L).join(V)}}var B=v.indexOf("#");-1!==B&&(this.hash=v.substr(B),v=v.slice(0,B));var U=v.indexOf("?");if(-1!==U?(this.search=v.substr(U),this.query=v.substr(U+1),t&&(this.query=g.parse(this.query)),v=v.slice(0,U)):t&&(this.search="",this.query={}),v&&(this.pathname=v),y[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var z=this.search||"";this.path=D+z}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,i="";this.host?s=e+this.host:this.hostname&&(s=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),t+s+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(o=o.replace("#","%23"))+n},s.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if("string"==typeof e){var t=new s;t.parse(e,!1,!0),e=t}for(var r=new s,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),c=0;c<a.length;c++){var l=a[c];"protocol"!==l&&(r[l]=e[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var h=u[p];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||d[e.protocol])r.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),r.pathname=f.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",g=r.search||"";r.path=m+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=b||v||r.host&&e.pathname,x=E,w=r.pathname&&r.pathname.split("/")||[],j=(f=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(j&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),E=E&&(""===f[0]||""===w[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=f;else if(f.length)w||(w=[]),w.pop(),w=w.concat(f),r.search=e.search,r.query=e.query;else if(null!=e.search){if(j)r.host=w.shift(),r.hostname=r.host,($=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=$.shift(),r.hostname=$.shift(),r.host=r.hostname);return r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=w.slice(-1)[0],S=(r.host||e.host||w.length>1)&&("."===O||".."===O)||""===O,P=0,A=w.length;A>=0;A--)"."===(O=w[A])?w.splice(A,1):".."===O?(w.splice(A,1),P++):P&&(w.splice(A,1),P--);if(!E&&!x)for(;P--;P)w.unshift("..");!E||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var $,k=""===w[0]||w[0]&&"/"===w[0].charAt(0);j&&(r.hostname=k?"":w.length?w.shift():"",r.host=r.hostname,($=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=$.shift(),r.hostname=$.shift(),r.host=r.hostname));return(E=E||r.host&&w.length)&&!k&&w.unshift(""),w.length>0?r.pathname=w.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=v(e)),e instanceof s?e.format():s.prototype.format.call(e)},t.Url=s},4654:()=>{},538:(e,t,r)=>{e.exports=r(6121)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d(n,{default:()=>hO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Yr,_areEquals:()=>an,applyOperation:()=>tn,applyPatch:()=>rn,applyReducer:()=>nn,deepClone:()=>Xr,getValueByPointer:()=>en,validate:()=>on,validator:()=>sn});var t={};r.r(t),r.d(t,{compare:()=>dn,generate:()=>fn,observe:()=>hn,unobserve:()=>pn});var s={};r.r(s),r.d(s,{hasElementSourceMap:()=>Ac,includesClasses:()=>kc,includesSymbols:()=>$c,isAnnotationElement:()=>wc,isArrayElement:()=>vc,isBooleanElement:()=>yc,isCommentElement:()=>jc,isElement:()=>hc,isLinkElement:()=>Ec,isMemberElement:()=>bc,isNullElement:()=>dc,isNumberElement:()=>mc,isObjectElement:()=>gc,isParseResultElement:()=>Oc,isPrimitiveElement:()=>Pc,isRefElement:()=>xc,isSourceMapElement:()=>Sc,isStringElement:()=>fc});var i={};r.r(i),r.d(i,{isJSONReferenceElement:()=>Qp,isJSONSchemaElement:()=>Xp,isLinkDescriptionElement:()=>eh,isMediaElement:()=>Zp});var o={};r.r(o),r.d(o,{isOpenApi3_0LikeElement:()=>jh,isOpenApiExtension:()=>Th,isParameterLikeElement:()=>Oh,isReferenceLikeElement:()=>Sh,isRequestBodyLikeElement:()=>Ph,isResponseLikeElement:()=>Ah,isServerLikeElement:()=>$h,isTagLikeElement:()=>kh});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Jf,isCallbackElement:()=>wf,isComponentsElement:()=>jf,isContactElement:()=>Of,isExampleElement:()=>Sf,isExternalDocumentationElement:()=>Pf,isHeaderElement:()=>Af,isInfoElement:()=>$f,isLicenseElement:()=>kf,isLinkElement:()=>Tf,isLinkElementExternal:()=>Cf,isMediaTypeElement:()=>Kf,isOpenApi3_0Element:()=>Rf,isOpenapiElement:()=>Mf,isOperationElement:()=>If,isParameterElement:()=>Ff,isPathItemElement:()=>_f,isPathItemElementExternal:()=>Nf,isPathsElement:()=>Df,isReferenceElement:()=>qf,isReferenceElementExternal:()=>Lf,isRequestBodyElement:()=>Vf,isResponseElement:()=>Bf,isResponsesElement:()=>Uf,isSchemaElement:()=>zf,isSecurityRequirementElement:()=>Hf,isServerElement:()=>Gf,isServerVariableElement:()=>Wf});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>_b,isCallbackElement:()=>hb,isComponentsElement:()=>fb,isContactElement:()=>mb,isExampleElement:()=>db,isExternalDocumentationElement:()=>yb,isHeaderElement:()=>gb,isInfoElement:()=>vb,isJsonSchemaDialectElement:()=>bb,isLicenseElement:()=>Eb,isLinkElement:()=>xb,isLinkElementExternal:()=>wb,isMediaTypeElement:()=>Lb,isOpenApi3_1Element:()=>Ob,isOpenapiElement:()=>jb,isOperationElement:()=>Sb,isParameterElement:()=>Pb,isPathItemElement:()=>Ab,isPathItemElementExternal:()=>$b,isPathsElement:()=>kb,isReferenceElement:()=>Tb,isReferenceElementExternal:()=>Cb,isRequestBodyElement:()=>Mb,isResponseElement:()=>Rb,isResponsesElement:()=>Ib,isSchemaElement:()=>Fb,isSecurityRequirementElement:()=>Nb,isServerElement:()=>Db,isServerVariableElement:()=>qb});var l={};r.r(l),r.d(l,{cookie:()=>Yj,header:()=>Kj,path:()=>Hj,query:()=>Gj});var u=r(8575),p=(r(9559),r(129)),h=r.n(p);function f(e){return null==e}var m=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},d={isNothing:f,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:f(e)?[]:[e]},repeat:m,isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend: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}};function y(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 g(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=y(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}g.prototype=Object.create(Error.prototype),g.prototype.constructor=g,g.prototype.toString=function(e){return this.name+": "+y(this,e)};var v=g;function b(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function E(e,t){return d.repeat(" ",t-e.length)+e}var x=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 a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=b(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=d.repeat(" ",t.indent)+E((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=b(e.buffer,s[o],i[o],e.position,p),l+=d.repeat(" ",t.indent)+E((e.line+1).toString(),u)+" | "+c.str+"\n",l+=d.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=b(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=d.repeat(" ",t.indent)+E((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},w=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],j=["scalar","sequence","mapping"];var O=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===w.indexOf(t))throw new v('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===j.indexOf(this.kind))throw new v('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function S(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 P(e){return this.extend(e)}P.prototype.extend=function(e){var t=[],r=[];if(e instanceof O)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 v("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 O))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new v("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 v("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 O))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(P.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=S(n,"implicit"),n.compiledExplicit=S(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 A=P,$=new O("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),k=new O("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),T=new O("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),C=new A({explicit:[$,k,T]});var M=new O("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 R=new O("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 I(e){return 48<=e&&e<=55}function F(e){return 48<=e&&e<=57}var _=new O("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(!I(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!F(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&&!d.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"]}}),N=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var D=/^[-+]?[0-9]+e/;var q=new O("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!N.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||d.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(d.isNegativeZero(e))return"-0.0";return r=e.toString(10),D.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),L=C.extend({implicit:[M,R,_,q]}),V=L,B=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U=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 z=new O("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==B.exec(e)||null!==U.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=B.exec(e))&&(t=U.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],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,n,s,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var J=new O("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var G=new O("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=H;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=H,o=0,a=[];for(t=0;t<s;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=s%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,i=e.length,o=H;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}}),W=Object.prototype.hasOwnProperty,K=Object.prototype.toString;var Y=new O("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(n=a[t],i=!1,"[object Object]"!==K.call(n))return!1;for(s in n)if(W.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:[]}}),X=Object.prototype.toString;var Q=new O("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]"!==X.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}}),Z=Object.prototype.hasOwnProperty;var ee=new O("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Z.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),te=V.extend({implicit:[z,J],explicit:[G,Y,Q,ee]}),re=Object.prototype.hasOwnProperty,ne=1,se=2,ie=3,oe=4,ae=1,ce=2,le=3,ue=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,pe=/[\x85\u2028\u2029]/,he=/[,\[\]\{\}]/,fe=/^(?:!|!!|![a-z\-]+!)$/i,me=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function de(e){return Object.prototype.toString.call(e)}function ye(e){return 10===e||13===e}function ge(e){return 9===e||32===e}function ve(e){return 9===e||32===e||10===e||13===e}function be(e){return 44===e||91===e||93===e||123===e||125===e}function Ee(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 we(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var je=new Array(256),Oe=new Array(256),Se=0;Se<256;Se++)je[Se]=xe(Se)?1:0,Oe[Se]=xe(Se);function Pe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||te,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=x(r),new v(t,r)}function $e(e,t){throw Ae(e,t)}function ke(e,t){e.onWarning&&e.onWarning.call(null,Ae(e,t))}var Te={YAML:function(e,t,r){var n,s,i;null!==e.version&&$e(e,"duplication of %YAML directive"),1!==r.length&&$e(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&$e(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&$e(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&ke(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&$e(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],fe.test(n)||$e(e,"ill-formed tag handle (first argument) of the TAG directive"),re.call(e.tagMap,n)&&$e(e,'there is a previously declared suffix for "'+n+'" tag handle'),me.test(s)||$e(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){$e(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Ce(e,t,r,n){var s,i,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,i=a.length;s<i;s+=1)9===(o=a.charCodeAt(s))||32<=o&&o<=1114111||$e(e,"expected valid JSON character");else ue.test(a)&&$e(e,"the stream contains non-printable characters");e.result+=a}}function Me(e,t,r,n){var s,i,o,a;for(d.isObject(r)||$e(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(s=Object.keys(r)).length;o<a;o+=1)i=s[o],re.call(t,i)||(t[i]=r[i],n[i]=!0)}function Re(e,t,r,n,s,i,o,a,c){var l,u;if(Array.isArray(s))for(l=0,u=(s=Array.prototype.slice.call(s)).length;l<u;l+=1)Array.isArray(s[l])&&$e(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===de(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===de(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Me(e,t,i[l],r);else Me(e,t,i,r);else e.json||re.call(r,s)||!re.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,$e(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 Ie(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):$e(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Fe(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;ge(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(!ye(s))break;for(Ie(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&&ke(e,"deficient indentation"),n}function _e(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))&&!ve(t)))}function Ne(e,t){1===t?e.result+=" ":t>1&&(e.result+=d.repeat("\n",t-1))}function De(e,t){var r,n,s=e.tag,i=e.anchor,o=[],a=!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,$e(e,"tab characters must not be used in indentation")),45===n)&&ve(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Fe(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Ve(e,t,ie,!1,!0),o.push(e.result),Fe(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)$e(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(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&&$e(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)):$e(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!ve(s);)33===s&&(o?$e(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),fe.test(r)||$e(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),he.test(n)&&$e(e,"tag suffix cannot contain flow indicator characters")}n&&!me.test(n)&&$e(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){$e(e,"tag name is malformed: "+n)}return i?e.tag=n:re.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:$e(e,'undeclared tag handle "'+r+'"'),!0}function Le(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&$e(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!ve(r)&&!be(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&$e(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Ve(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,m=1,y=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=oe===r||ie===r,n&&Fe(e,!0,-1)&&(y=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;qe(e)||Le(e);)Fe(e,!0,-1)?(y=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=y||s),1!==m&&oe!==r||(h=ne===r||se===r?t:t+1,f=e.position-e.lineStart,1===m?a&&(De(e,f)||function(e,t,r){var n,s,i,o,a,c,l,u=e.tag,p=e.anchor,h={},f=Object.create(null),m=null,d=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,$e(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!ve(n)){if(o=e.line,a=e.lineStart,c=e.position,!Ve(e,r,se,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);ge(l);)l=e.input.charCodeAt(++e.position);if(58===l)ve(l=e.input.charCodeAt(++e.position))||$e(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Re(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!1,s=!1,m=e.tag,d=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;$e(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;$e(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Re(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):$e(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),Ve(e,t,oe,!0,s)&&(g?d=e.result:y=e.result),g||(Re(e,h,f,m,d,y,o,a,c),m=d=y=null),Fe(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)$e(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Re(e,h,f,m,d,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,f,h))||function(e,t){var r,n,s,i,o,a,c,l,u,p,h,f,m=!0,d=e.tag,y=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==f)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(Fe(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=d,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===f&&$e(e,"expected the node content, but found ','"):$e(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&ve(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,Fe(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,Ve(e,t,ne,!1,!0),p=e.tag,u=e.result,Fe(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),Fe(e,!0,t),Ve(e,t,ne,!1,!0),h=e.result),l?Re(e,i,g,p,u,h,r,n,s):a?i.push(Re(e,null,g,p,u,h,r,n,s)):i.push(u),Fe(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}$e(e,"unexpected end of the stream within a flow collection")}(e,h)?g=!0:(o&&function(e,t){var r,n,s,i,o,a=ae,c=!1,l=!1,u=t,p=0,h=!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)ae===a?a=43===i?le:ce:$e(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?$e(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?$e(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(ge(i)){do{i=e.input.charCodeAt(++e.position)}while(ge(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ye(i)&&0!==i)}for(;0!==i;){for(Ie(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),ye(i))p++;else{if(e.lineIndent<u){a===le?e.result+=d.repeat("\n",c?1+p:p):a===ae&&c&&(e.result+="\n");break}for(n?ge(i)?(h=!0,e.result+=d.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=d.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=d.repeat("\n",p):e.result+=d.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!ye(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ce(e,r,e.position,!1)}}return!0}(e,h)||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(Ce(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else ye(r)?(Ce(e,n,s,!0),Ne(e,Fe(e,!1,t)),n=s=e.position):e.position===e.lineStart&&_e(e)?$e(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);$e(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,s,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ce(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ce(e,r,e.position,!0),ye(a=e.input.charCodeAt(++e.position)))Fe(e,!1,t);else if(a<256&&je[a])e.result+=Oe[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(s=o,i=0;s>0;s--)(o=Ee(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:$e(e,"expected hexadecimal character");e.result+=we(i),e.position++}else $e(e,"unknown escape sequence");r=n=e.position}else ye(a)?(Ce(e,r,n,!0),Ne(e,Fe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&_e(e)?$e(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}$e(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?g=!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&&!ve(n)&&!be(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&$e(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),re.call(e.anchorMap,r)||$e(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Fe(e,!0,-1),!0}(e)?function(e,t,r){var n,s,i,o,a,c,l,u,p=e.kind,h=e.result;if(ve(u=e.input.charCodeAt(e.position))||be(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(ve(n=e.input.charCodeAt(e.position+1))||r&&be(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(ve(n=e.input.charCodeAt(e.position+1))||r&&be(n))break}else if(35===u){if(ve(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&_e(e)||r&&be(u))break;if(ye(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,Fe(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ce(e,s,i,!1),Ne(e,e.line-a),s=i=e.position,o=!1),ge(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ce(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,ne===r)&&(g=!0,null===e.tag&&(e.tag="?")):(g=!0,null===e.tag&&null===e.anchor||$e(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(g=a&&De(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&$e(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(re.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||$e(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&$e(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):$e(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function Be(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))&&(Fe(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&&!ve(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&$e(e,"directive name must not be less than one character in length");0!==s;){for(;ge(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!ye(s));break}if(ye(s))break;for(t=e.position;0!==s&&!ve(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&Ie(e),re.call(Te,r)?Te[r](e,r,n):ke(e,'unknown document directive "'+r+'"')}Fe(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,Fe(e,!0,-1)):o&&$e(e,"directives end mark is expected"),Ve(e,e.lineIndent-1,oe,!1,!0),Fe(e,!0,-1),e.checkLineBreaks&&pe.test(e.input.slice(i,e.position))&&ke(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&_e(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Fe(e,!0,-1)):e.position<e.length-1&&$e(e,"end of the stream or a document separator is expected")}function Ue(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 Pe(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,$e(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;)Be(r);return r.documents}var ze={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=Ue(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},load:function(e,t){var r=Ue(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new v("expected a single document in the stream, but found more")}}},Je=Object.prototype.toString,He=Object.prototype.hasOwnProperty,Ge=65279,We=9,Ke=10,Ye=13,Xe=32,Qe=33,Ze=34,et=35,tt=37,rt=38,nt=39,st=42,it=44,ot=45,at=58,ct=61,lt=62,ut=63,pt=64,ht=91,ft=93,mt=96,dt=123,yt=124,gt=125,vt={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"},bt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Et=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function xt(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 v("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+d.repeat("0",n-t.length)+t}var wt=1,jt=2;function Ot(e){this.schema=e.schema||te,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=d.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,a,c;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&He.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;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?jt:wt,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 St(e,t){for(var r,n=d.repeat(" ",t),s=0,i=-1,o="",a=e.length;s<a;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function Pt(e,t){return"\n"+d.repeat(" ",e.indent*t)}function At(e){return e===Xe||e===We}function $t(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Ge||65536<=e&&e<=1114111}function kt(e){return $t(e)&&e!==Ge&&e!==Ye&&e!==Ke}function Tt(e,t,r){var n=kt(e),s=n&&!At(e);return(r?n:n&&e!==it&&e!==ht&&e!==ft&&e!==dt&&e!==gt)&&e!==et&&!(t===at&&!s)||kt(t)&&!At(t)&&e===et||t===at&&s}function Ct(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 Mt(e){return/^\n* /.test(e)}var Rt=1,It=2,Ft=3,_t=4,Nt=5;function Dt(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,m=-1!==n,d=-1,y=$t(l=Ct(e,0))&&l!==Ge&&!At(l)&&l!==ot&&l!==ut&&l!==at&&l!==it&&l!==ht&&l!==ft&&l!==dt&&l!==gt&&l!==et&&l!==rt&&l!==st&&l!==Qe&&l!==yt&&l!==ct&&l!==lt&&l!==nt&&l!==Ze&&l!==tt&&l!==pt&&l!==mt&&function(e){return!At(e)&&e!==at}(Ct(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!$t(u=Ct(e,c)))return Nt;y=y&&Tt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Ct(e,c))===Ke)h=!0,m&&(f=f||c-d-1>n&&" "!==e[d+1],d=c);else if(!$t(u))return Nt;y=y&&Tt(u,p,a),p=u}f=f||m&&c-d-1>n&&" "!==e[d+1]}return h||f?r>9&&Mt(e)?Nt:o?i===jt?Nt:It:f?_t:Ft:!y||o||s(e)?i===jt?Nt:It:Rt}function qt(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===jt?'""':"''";if(!e.noCompatMode&&(-1!==bt.indexOf(t)||Et.test(t)))return e.quotingType===jt?'"'+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),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Dt(t,a,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 Rt:return t;case It:return"'"+t.replace(/'/g,"''")+"'";case Ft:return"|"+Lt(t,e.indent)+Vt(St(t,i));case _t:return">"+Lt(t,e.indent)+Vt(St(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,Bt(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;n=s.exec(e);){var c=n[1],l=n[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+Bt(l,t),o=r}return i}(t,o),i));case Nt:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Ct(e,s),!(t=vt[n])&&$t(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||xt(n);return r}(t)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function Lt(e,t){var r=Mt(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function Vt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Bt(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,i=0,o=0,a=0,c="";r=s.exec(e);)(a=r.index)-i>t&&(n=o>i?o:a,c+="\n"+e.slice(i,n),i=n+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Ut(e,t,r,n){var s,i,o,a="",c=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)),(Jt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Jt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=Pt(e,t)),e.dump&&Ke===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function zt(e,t,r){var n,s,i,o,a,c;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=s[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===Je.call(a.represent))n=a.represent(t,c);else{if(!He.call(a.represent,c))throw new v("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function Jt(e,t,r,n,s,i,o){e.tag=null,e.dump=r,zt(e,r,!1)||zt(e,r,!0);var a,c=Je.call(e.dump),l=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(s=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new v("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=Pt(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),Jt(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Ke===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Pt(e,t)),Jt(e,t+1,a,!0,c)&&(e.dump&&Ke===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o,a,c="",l=e.tag,u=Object.keys(r);for(n=0,s=u.length;n<s;n+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[n]],e.replacer&&(o=e.replacer.call(r,i,o)),Jt(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Jt(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Ut(e,t-1,e.dump,s):Ut(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o="",a=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)),(Jt(e,t,i,!1,!1)||void 0===i&&Jt(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&qt(e,e.dump,t,i,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Ht(e,t){var r,n,s=[],i=[];for(Gt(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function Gt(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)Gt(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)Gt(e[n[s]],t,r)}var Wt=function(e,t){var r=new Ot(t=t||{});r.noRefs||Ht(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Jt(r,0,n,!0,!0)?r.dump+"\n":""};function Kt(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 Yt=O,Xt=A,Qt=C,Zt=L,er=V,tr=te,rr=ze.load,nr=ze.loadAll,sr={dump:Wt}.dump,ir=v,or={binary:G,float:q,map:T,null:M,pairs:Q,set:ee,timestamp:z,bool:R,int:_,merge:J,omap:Y,seq:k,str:$},ar=Kt("safeLoad","load"),cr=Kt("safeLoadAll","loadAll"),lr=Kt("safeDump","dump");const ur={Type:Yt,Schema:Xt,FAILSAFE_SCHEMA:Qt,JSON_SCHEMA:Zt,CORE_SCHEMA:er,DEFAULT_SCHEMA:tr,load:rr,loadAll:nr,dump:sr,YAMLException:ir,types:or,safeLoad:ar,safeLoadAll:cr,safeDump:lr},pr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:hr,Blob:fr,File:mr}=pr,dr=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,yr=e=>/^[a-z0-9\-._~]+$/i.test(e);function gr(e){let{escape:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):[...e].map((e=>{if(yr(e))return e;if(dr(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(""):e}function vr(e){const{value:t}=e;return Array.isArray(t)?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>gr(e,{escape:i});if("simple"===n)return r.map((e=>o(e))).join(",");if("label"===n)return`.${r.map((e=>o(e))).join(".")}`;if("matrix"===n)return r.map((e=>o(e))).reduce(((e,r)=>!e||s?`${e||""};${t}=${r}`:`${e},${r}`),"");if("form"===n){const e=s?`&${t}=`:",";return r.map((e=>o(e))).join(e)}if("spaceDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(` ${e}`)}if("pipeDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(`|${e}`)}return}(e):"object"==typeof t?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>gr(e,{escape:i}),a=Object.keys(r);if("simple"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e},`:""}${t}${s?"=":","}${n}`}),"");if("label"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}.`:"."}${t}${s?"=":"."}${n}`}),"");if("matrix"===n&&s)return a.reduce(((e,t)=>`${e?`${e};`:";"}${t}=${o(r[t])}`),"");if("matrix"===n)return a.reduce(((e,n)=>{const s=o(r[n]);return`${e?`${e},`:`;${t}=`}${n},${s}`}),"");if("form"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}${s?"&":","}`:""}${t}${s?"=":","}${n}`}),"");return}(e):function(e){let{key:t,value:r,style:n,escape:s}=e;const i=e=>gr(e,{escape:s});if("simple"===n)return i(r);if("label"===n)return`.${i(r)}`;if("matrix"===n)return`;${t}=${i(r)}`;if("form"===n)return i(r);if("deepObject"===n)return i(r,{},!0);return}(e)}const br=(e,t)=>{t.body=e},Er={serializeRes:jr,mergeInQueryOrForm:Rr};async function xr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof e&&(t=e,e=t.url),t.headers=t.headers||{},Er.mergeInQueryOrForm(t),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)&&t.body instanceof hr&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Er.serializeRes(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}const wr=function(){return/(json|xml|yaml|text)\b/.test(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function jr(e,t){let{loadSpec:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Or(e.headers)},s=n.headers["content-type"],i=r||wr(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):ur.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}function Or(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,t)=>{let[r,n]=t;return e[r]=function(e){return e.includes(", ")?e.split(", "):e}(n),e}),{})}function Sr(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):void 0!==mr&&e instanceof mr||(void 0!==fr&&e instanceof fr||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function Pr(e,t){return Array.isArray(e)&&e.some((e=>Sr(e,t)))}const Ar={form:",",spaceDelimited:"%20",pipeDelimited:"|"},$r={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class kr extends mr{constructor(e){super([e],arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Tr(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&s)return[[l,""]];if(Sr(a)||Pr(a))return[[l,a]];if(i)return Cr(e,a,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 Cr(e,a,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new kr(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new kr(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===n?[[l,a.map(c)]]:[[l,a.map(c).join($r[n||"csv"])]]:[[l,""]]}function Cr(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"),a=e=>gr(e,{escape:o}),c=r?e=>e:e=>gr(e,{escape:o});return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(Ar[s])]]:"deepObject"===s?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function Mr(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Tr(r,e[r]))t[n]=s instanceof kr?s.valueOf():s;return t}),{});return h().stringify(t,{encode:!1,indices:!1})||""}function Rr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return Sr(t)||Pr(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)=>{let[r,n]=t;for(const[t,s]of Tr(r,n,!0))if(Array.isArray(s))for(const r of s)if(ArrayBuffer.isView(r)){const n=new fr([r]);e.append(t,n)}else e.append(t,r);else if(ArrayBuffer.isView(s)){const r=new fr([s]);e.append(t,r)}else e.append(t,s);return e}),new hr));br(t,e)}else e.body=Mr(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=h().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=h().stringify(e,{encode:!0})}const o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.filter((e=>e)).join("&");return n?`?${n}`:""}(i,Mr(r));e.url=n+o,delete e.query}return e}const Ir="application/json, application/yaml";function Fr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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:Ir},credentials:s}).then((e=>e.body))}const _r=e=>{const{baseDoc:t,url:r}=e;return t||r||""},Nr=e=>{const{fetch:t,http:r}=e;return t||r||xr};var Dr,qr=(Dr=function(e,t){return Dr=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])},Dr(e,t)},function(e,t){function r(){this.constructor=e}Dr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Lr=Object.prototype.hasOwnProperty;function Vr(e,t){return Lr.call(e,t)}function Br(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)Vr(e,s)&&n.push(s);return n}function Ur(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function zr(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 Jr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Hr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Gr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Gr(e[t]))return!0}else if("object"==typeof e)for(var n=Br(e),s=n.length,i=0;i<s;i++)if(Gr(e[n[i]]))return!0;return!1}function Wr(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 Kr=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,Wr(t,{name:r,index:n,operation:s,tree:i}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=Wr(t,{name:r,index:n,operation:s,tree:i}),a}return qr(t,e),t}(Error),Yr=Kr,Xr=Ur,Qr={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=en(r,this.path);n&&(n=Ur(n));var s=tn(r,{op:"remove",path:this.from}).removed;return tn(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=en(r,this.from);return tn(r,{op:"add",path:this.path,value:Ur(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:an(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Zr={add:function(e,t,r){return zr(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:Qr.move,copy:Qr.copy,test:Qr.test,_get:Qr._get};function en(e,t){if(""==t)return e;var r={op:"_get",path:t};return tn(e,r),r.value}function tn(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):sn(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=en(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=an(e,t.value),!1===o.test)throw new Yr("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 Yr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Ur(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,f=void 0;for(f="function"==typeof r?r:sn;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Hr(h)),s&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-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===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!zr(h))throw new Yr("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);zr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Yr("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=Zr[t.op].call(t,c,h,e)).test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=Qr[t.op].call(t,c,h,e)).test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Yr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function rn(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new Yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Ur(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=tn(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function nn(e,t,r){var n=tn(e,t);if(!1===n.test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function sn(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Yr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Qr[e.op])throw new Yr("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 Yr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Yr('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 Yr("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 Yr("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)&&Gr(e.value))throw new Yr("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 Yr("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 Yr("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=on([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Yr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function on(e,t,r){try{if(!Array.isArray(e))throw new Yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)rn(Ur(t),Ur(e),r||!0);else{r=r||sn;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Yr)return e;throw e}}function an(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(!an(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((n=a.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=n;0!=r--;)if(!an(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var cn=new WeakMap,ln=function(e){this.observers=new Map,this.obj=e},un=function(e,t){this.callback=e,this.observer=t};function pn(e,t){t.unobserve()}function hn(e,t){var r,n=function(e){return cn.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new ln(e),cn.set(e,n);if(r)return r;if(r={},n.value=Ur(e),t){r.callback=t,r.next=null;var i=function(){fn(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(){fn(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 un(t,r)),r}function fn(e,t){void 0===t&&(t=!1);var r=cn.get(e.object);mn(r.value,e.object,e.patches,"",t),e.patches.length&&rn(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function mn(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Br(t),o=Br(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!Vr(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+Jr(p),value:Ur(l)}),r.push({op:"remove",path:n+"/"+Jr(p)}),a=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?mn(l,u,r,n+"/"+Jr(p),s):l!==u&&(!0,s&&r.push({op:"test",path:n+"/"+Jr(p),value:Ur(l)}),r.push({op:"replace",path:n+"/"+Jr(p),value:Ur(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;Vr(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+Jr(p),value:Ur(t[p])})}}}function dn(e,t,r){void 0===r&&(r=!1);var n=[];return mn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:Kr,deepClone:Ur,escapePathComponent:Jr,unescapePathComponent:Hr});var yn=r(9996),gn=r.n(yn);const vn={add:function(e,t){return{op:"add",path:e,value:t}},replace:En,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&&bn(t.path)}).op){const r=Rn(e,t.path);Object.assign(r,t.value),rn(e,[En(t.path,r)])}else if("mergeDeep"===t.op){const r=Rn(e,t.path),n=gn()(r,t.value);e=rn(e,[En(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&An(t.value)){rn(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${bn(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Cn(t)&&(Array.isArray(t.value)||An(t.value))&&(n={...n,...t.meta}),e=n}else if(rn(e,[t]),r.allowMetaPatches&&t.meta&&Cn(t)&&(Array.isArray(t.value)||An(t.value))){const r={...Rn(e,t.path),...t.meta};rn(e,[En(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:Sn,fullyNormalizeArray:function(e){return Pn(Sn(On(e)))},normalizeArray:On,isPromise:function(e){return An(e)&&$n(e.then)},forEachNew:function(e,t){try{return xn(e,jn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return xn(e,wn,t)}catch(e){return e}},isJsonPatch:kn,isContextPatch:function(e){return Mn(e)&&"context"===e.type},isPatch:Mn,isMutation:Tn,isAdditiveMutation:Cn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:$n,isObject:An,isError:function(e){return e instanceof Error}};function bn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function En(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function xn(e,t,r){return Pn(Sn(e.filter(Cn).map((e=>t(e.value,r,e.path)))||[]))}function wn(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>wn(e,t,r.concat(n)))):An(e)?Object.keys(e).map((n=>wn(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function jn(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)=>jn(e,t,r.concat(n))));s&&(n=n.concat(s))}else if(An(e)){const s=Object.keys(e).map((n=>jn(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=Sn(n),n}function On(e){return Array.isArray(e)?e:[e]}function Sn(e){return[].concat(...e.map((e=>Array.isArray(e)?Sn(e):e)))}function Pn(e){return e.filter((e=>void 0!==e))}function An(e){return e&&"object"==typeof e}function $n(e){return e&&"function"==typeof e}function kn(e){if(Mn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Tn(e){return kn(e)||Mn(e)&&"mutation"===e.type}function Cn(e){return Tn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Mn(e){return e&&"object"==typeof e}function Rn(e,t){try{return en(e,t)}catch(e){return console.error(e),{}}}function In(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];[this.message]=r,t&&t.apply(this,r)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var Fn=r(3692),_n=r.n(Fn);const Nn=["properties"],Dn=["properties"],qn=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Ln=["schema/example","items/example"];function Vn(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return Nn.indexOf(t)>-1&&-1===Dn.indexOf(r)||qn.indexOf(n)>-1||Ln.some((e=>n.indexOf(e)>-1))}function Bn(e,t){const[r,n]=e.split("#"),s=u.resolve(r||"",t||"");return n?`${s}#${n}`:s}const Un=/^([a-z]+:\/\/|\/\/)/i,zn=In("JSONRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),Jn={},Hn=new WeakMap,Gn=[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]],Wn={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(Vn(i)||(e=>Gn.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new zn("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=Zn(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?Xn(c,o):null}catch(t){return Qn(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=Hn.get(n);s||(s={},Hn.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(is).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&as(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${is(e)}`,s[l]&&s[l].some((e=>as(e,o)||as(o,e))))));if(u)return!0;return void(s[a]=(s[a]||[]).concat(o))}(l,u,i,n)&&!s.useCircularStructures){const t=Bn(e,u);return e===t?null:vn.replace(r,t)}if(null==u?(h=ns(l),p=n.get(h),void 0===p&&(p=new zn(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=es(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw Qn(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[vn.remove(r),p];const f=Bn(e,u),m=vn.replace(i,p,{$$ref:f});if(u&&u!==o)return[m,vn.context(i,{baseDoc:u})];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 vn.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,m)||s.useCircularStructures)return m}catch(e){return null}}},Kn=Object.assign(Wn,{docCache:Jn,absoluteify:Xn,clearCache:function(e){void 0!==e?delete Jn[e]:Object.keys(Jn).forEach((e=>{delete Jn[e]}))},JSONRefError:zn,wrapError:Qn,getDoc:ts,split:Zn,extractFromDoc:es,fetchJSON:function(e){return fetch(e,{headers:{Accept:Ir},loadSpec:!0}).then((e=>e.text())).then((e=>ur.load(e)))},extract:rs,jsonPointerToArray:ns,unescapeJsonPointerToken:ss}),Yn=Kn;function Xn(e,t){if(!Un.test(e)){if(!t)throw new zn(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return u.resolve(t,e)}return e}function Qn(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new zn(`Could not resolve reference: ${r}`,t,e)}function Zn(e){return(e+"").split("#")}function es(e,t){const r=Jn[e];if(r&&!vn.isPromise(r))try{const e=rs(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return ts(e).then((e=>rs(t,e)))}function ts(e){const t=Jn[e];return t?vn.isPromise(t)?t:Promise.resolve(t):(Jn[e]=Kn.fetchJSON(e).then((t=>(Jn[e]=t,t))),Jn[e])}function rs(e,t){const r=ns(e);if(r.length<1)return t;const n=vn.getIn(t,r);if(void 0===n)throw new zn(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function ns(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(ss)}function ss(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function is(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const os=e=>!e||"/"===e||"#"===e;function as(e,t){if(os(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const cs={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(Vn(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=s.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.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,c.push(e)}c.push(n.mergeDeep(i,e));const s=function(e,t){let{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return _n()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=Bn(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});c.push(...s)})),a.example&&c.push(n.remove([].concat(i,"example"))),c.push(n.mergeDeep(i,a)),a.$$ref||c.push(n.remove([].concat(i,"$$ref"))),c}},ls={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i={...vn.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 vn.replace(r,t)}return vn.replace(r,e)}},us={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 vn.replace(r,s)}};class ps{constructor(e){this.root=hs(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void fs(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?fs(s[n],t,r):s[n]=hs(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]=hs(null,e)),n[r]}),this.root)}}function hs(e,t){return fs({children:{}},e,t)}function fs(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]=fs(r,r.value,e)})),e}const ms=()=>{};class ds{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 ps,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),vn,{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(vn.isFunction),this.patches.push(vn.add([],this.spec)),this.patches.push(vn.context([],this.context)),this.updatePatches(this.patches)}debug(e){if(this.debugLevel===e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(...r)}}verbose(e){if("verbose"===this.debugLevel){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(`[${e}] `,...r)}}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):vn.isFunction(e)?n=e:vn.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 of n.filter(vn.isAdditiveMutation))yield*o(e.value,e.path,e);function*o(n,a,c){if(vn.isObject(n)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,f=s.allowMetaPatches&&i[n.$$ref];for(const l of Object.keys(n)){const u=n[l],p=a.concat(l),m=vn.isObject(u),d=n.$$ref;if(f||m&&(s.allowMetaPatches&&d&&(i[d]=!0),yield*o(u,p,c)),!h&&l===e.key){const n=t(r,a);r&&!n||(yield e.plugin(u,l,p,s,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:vn.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){vn.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!vn.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),vn.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(vn.isContextPatch(e))return void this.setContext(e.path,e.value);vn.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=vn.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 vn.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(ms,ms)))).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=vn.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const ys={refs:Yn,allOf:cs,parameters:ls,properties:us},gs=e=>e.replace(/\W/gi,"_");function vs(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{v2OperationIdCompatibilityMode:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?gs(e.operationId):function(e,t){let{v2OperationIdCompatibilityMode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};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()}${gs(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function bs(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 a=vs(o,e,r);if(a){n[a]?n[a].push(o):n[a]=[o];const e=n[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}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}async function Es(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l,useCircularStructures:u}=e,p=_r(e),h=Nr(e);return function(e){p&&(ys.refs.docCache[p]=e);ys.refs.fetchJSON=Fr(h,{requestInterceptor:a,responseInterceptor:c});const t=[ys.refs];"function"==typeof o&&t.push(ys.parameters);"function"==typeof i&&t.push(ys.properties);"strict"!==r&&t.push(ys.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new ds(f).dispatch()).then(l?async e=>e:bs);var f}(t)}const xs={name:"generic",match:()=>!0,normalize(e){let{spec:t}=e;const{spec:r}=bs({spec:t});return r},resolve:async e=>Es(e)};const ws=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},js=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Os=e=>ws(e)||js(e),Ss={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:r}=bs({spec:t});return r},resolve:async e=>async function(e){return Es(e)}(e)};const Ps={name:"openapi-3-0",match(e){let{spec:t}=e;return ws(t)},normalize(e){let{spec:t}=e;const{spec:r}=bs({spec:t});return r},resolve:async e=>async function(e){return Es(e)}(e)},As=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=_r(e),i=Nr(e),o=t||await Fr(i,{requestInterceptor:r,responseInterceptor:n})(s),a={...e,spec:o};return e.strategies.find((e=>e.match(a))).resolve(a)})({...e,...t}),$s=As({strategies:[Ps,Ss,xs]});var ks=r(7361),Ts=r.n(ks);const Cs=e=>async function(t,r){return async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((e=>e.match(p))).normalize(p),f=await $s({...p,spec:h,allowMetaPatches:!0,skipNormalization:!0});return!n&&Array.isArray(t)&&t.length&&(f.spec=Ts()(f.spec,t)||null),f}(t,r,{...e,...arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}})};Cs({strategies:[Ps,Ss,xs]});var Ms=r(3500);class Rs extends Ms.RP{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)}}const Is=Rs;class Fs extends Ms.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const _s=Fs;const Ns=function(){return!1};const Ds=function(){return!0};function qs(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Ls(e){return function t(r){return 0===arguments.length||qs(r)?t:e.apply(this,arguments)}}function Vs(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return qs(r)?t:Ls((function(t){return e(r,t)}));default:return qs(r)&&qs(n)?t:qs(r)?Ls((function(t){return e(t,n)})):qs(n)?Ls((function(t){return e(r,t)})):e(r,n)}}}const Bs=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Us(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!Bs(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(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function zs(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Js=function(){return this.xf["@@transducer/init"]()},Hs=function(e){return this.xf["@@transducer/result"](e)};var Gs=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Js,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=zs(this.xf["@@transducer/step"](e,!1))),e},e}();function Ws(e){return function(t){return new Gs(e,t)}}const Ks=Vs(Us(["all"],Ws,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function Ys(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,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Xs(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!qs(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,qs(a)||(i-=1),o+=1}return i<=0?r.apply(this,n):Ys(i,Xs(e,n,r))}}const Qs=Vs((function(e,t){return 1===e?Ls(t):Ys(e,Xs(e,[],t))}));function Zs(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ei(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function ti(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ri="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var ni=Object.prototype.toString;const si=function(){return"[object Arguments]"===ni.call(arguments)?function(e){return"[object Arguments]"===ni.call(e)}:function(e){return ti("callee",e)}}();var ii=!{toString:null}.propertyIsEnumerable("toString"),oi=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ai=function(){return arguments.propertyIsEnumerable("length")}(),ci=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const li="function"!=typeof Object.keys||ai?Ls((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=ai&&si(e);for(t in e)!ti(t,e)||s&&"length"===t||(n[n.length]=t);if(ii)for(r=oi.length-1;r>=0;)ti(t=oi[r],e)&&!ci(n,t)&&(n[n.length]=t),r-=1;return n})):Ls((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ui=Ls((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function pi(e,t,r,n){var s=Zs(e);function i(e,t){return hi(e,t,r.slice(),n.slice())}return!ei((function(e,t){return!ei(i,t,e)}),Zs(t),s)}function hi(e,t,r,n){if(ri(e,t))return!0;var s,i,o=ui(e);if(o!==ui(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!ri(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ri(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&pi(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&pi(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 c=li(e);if(c.length!==li(t).length)return!1;var l=r.concat([e]),u=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!ti(p,t)||!hi(t[p],e[p],l,u))return!1;a-=1}return!0}const fi=Vs((function(e,t){return hi(e,t,[],[])}));function mi(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(fi(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function di(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function yi(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 gi=function(e){return(e<10?"0":"")+e};const vi="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+gi(e.getUTCMonth()+1)+"-"+gi(e.getUTCDate())+"T"+gi(e.getUTCHours())+":"+gi(e.getUTCMinutes())+":"+gi(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function bi(e){return function(){return!e.apply(this,arguments)}}function Ei(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function xi(e){return"[object Object]"===Object.prototype.toString.call(e)}var wi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Js,e.prototype["@@transducer/result"]=Hs,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function ji(e){return function(t){return new wi(e,t)}}const Oi=Vs(Us(["fantasy-land/filter","filter"],ji,(function(e,t){return xi(t)?Ei((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},li(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)})));const Si=Vs((function(e,t){return Oi(bi(e),t)}));function Pi(e,t){var r=function(r){var n=t.concat([e]);return mi(r,n)?"<Circular>":Pi(r,n)},n=function(e,t){return di((function(t){return yi(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+di(r,e).join(", ")+"))";case"[object Array]":return"["+di(r,e).concat(n(e,Si((function(e){return/^\d+$/.test(e)}),li(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):yi(vi(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())+")":yi(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,li(e)).join(", ")+"}"}}const Ai=Ls((function(e){return Pi(e,[])}));const $i=Vs((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=Ai(e),o=r(i,Ai(t));return void 0!==o&&o===i?e:t}));var ki=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Js,e.prototype["@@transducer/result"]=Hs,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ti=Vs(Us(["fantasy-land/map","map"],(function(e){return function(t){return new ki(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Qs(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Ei((function(r,n){return r[n]=e(t[n]),r}),{},li(t));default:return di(e,t)}}))),Ci=Number.isInteger||function(e){return e<<0===e};function Mi(e){return"[object String]"===Object.prototype.toString.call(e)}const Ri=Vs((function(e,t){var r=e<0?t.length+e:e;return Mi(t)?t.charAt(r):t[r]}));const Ii=Vs((function(e,t){if(null!=t)return Ci(e)?Ri(e,t):t[e]}));const Fi=Vs((function(e,t){return Ti(Ii(e),t)}));function _i(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return qs(r)?t:Vs((function(t,n){return e(r,t,n)}));case 2:return qs(r)&&qs(n)?t:qs(r)?Vs((function(t,r){return e(t,n,r)})):qs(n)?Vs((function(t,n){return e(r,t,n)})):Ls((function(t){return e(r,n,t)}));default:return qs(r)&&qs(n)&&qs(s)?t:qs(r)&&qs(n)?Vs((function(t,r){return e(t,r,s)})):qs(r)&&qs(s)?Vs((function(t,r){return e(t,n,r)})):qs(n)&&qs(s)?Vs((function(t,n){return e(r,t,n)})):qs(r)?Ls((function(t){return e(t,n,s)})):qs(n)?Ls((function(t){return e(r,t,s)})):qs(s)?Ls((function(t){return e(r,n,t)})):e(r,n,s)}}}const Ni=Ls((function(e){return!!Bs(e)||!!e&&("object"==typeof e&&(!Mi(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Di="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function qi(e,t,r){return function(n,s,i){if(Ni(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[Di])return r(n,s,i[Di]());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 Li(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)}const Vi=Vs((function(e,t){return Ys(e.length,(function(){return e.apply(t,arguments)}))}));function Bi(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 Ui(e,t,r,n){return e["@@transducer/result"](r[n](Vi(e["@@transducer/step"],e),t))}const zi=qi(Li,Ui,Bi);var Ji=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 Hi(e){return new Ji(e)}const Gi=_i((function(e,t,r){return zi("function"==typeof e?Hi(e):e,t,r)}));const Wi=Ls((function(e){return Qs(Gi($i,0,Fi("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ki=Ls((function(e){return function(){return e}}));const Yi=Ls((function(e){return Qs(Gi($i,0,Fi("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 Xi(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Qi(e,t,r,n){return r[n](e,t)}const Zi=qi(Ei,Qi,Xi);const eo=Vs((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))}:Zi((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,Ti(r,t))}),[],e)}));const to=Vs((function(e,t){return e.apply(this,t)}));var ro=Ls((function(e){for(var t=li(e),r=t.length,n=[],s=0;s<r;)n[s]=e[t[s]],s+=1;return n}));const no=ro;const so=Ls((function(e){return null==e}));const io=_i((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!so(n)&&ti(s,n)&&"object"==typeof n[s]?n[s]:Ci(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ci(e)&&Bs(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 oo(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ao=Vs((function(e,t){return e&&t}));const co=Vs((function(e,t){var r=Qs(e,t);return Qs(e,(function(){return Ei(eo,Ti(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const lo=Ls((function(e){return co(e.length,e)}));const uo=Vs((function(e,t){return oo(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:lo(ao)(e,t)}));const po=Ls((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const ho=lo(Ls((function(e){return!e})));function fo(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function mo(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return Bs(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const yo=_i(mo("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const go=Ls(mo("tail",yo(1,1/0)));function vo(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Ys(arguments[0].length,Gi(fo,arguments[0],go(arguments)))}var bo=Vs((function(e,t){return Qs(Gi($i,0,Fi("length",t)),(function(){var r=arguments,n=this;return e.apply(n,di((function(e){return e.apply(n,r)}),t))}))}));const Eo=bo;function xo(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 wo(e,t,r){if(r||(r=new jo),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?wo(e[i],!0,r):e[i]);return n};switch(ui(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return xo(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 jo=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let 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(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}(),Oo=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"]=Js,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(ti(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,wo(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function So(e,t,r){return function(n){return new Oo(e,t,r,n)}}var Po=Xs(4,[],Us([],So,(function(e,t,r,n){var s=Hi((function(n,s){var i=r(s),o=e(ti(i,n)?n[i]:wo(t,!1),s);return o&&o["@@transducer/reduced"]?zs(n):(n[i]=o,n)}));return zi(s,{},n)})));const Ao=Po;const $o=Ls((function(e){return Qs(e.length,e)}));const ko=Vs((function(e,t){return null==t||t!=t?e:t}));function To(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?!!mi(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?!!mi(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Co=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!To(e,!0,this)},e.prototype.has=function(e){return To(e,!1,this)},e}();var Mo=Vs((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Co,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));const Ro=Mo;var Io=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Js,e.prototype["@@transducer/result"]=Hs,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?zs(r):r},e}();function Fo(e){return function(t){return new Io(e,t)}}const _o=Vs(Us(["take"],Fo,(function(e,t){return yo(0,e<0?1/0:e,t)})));function No(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return yo(0,r+1,t)}var Do=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Js,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=zi(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 qo(e){return function(t){return new Do(e,t)}}const Lo=Vs(Us([],qo,No));var Vo=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Js,e.prototype["@@transducer/result"]=Hs,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 Bo(e){return function(t){return new Vo(e,t)}}const Uo=Vs(Us(["dropWhile"],Bo,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return yo(r,1/0,t)})));const zo=Vs((function(e,t){return e||t}));const Jo=Vs((function(e,t){return oo(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:lo(zo)(e,t)}));var Ho=Ls((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():Bs(e)?[]:Mi(e)?"":xi(e)?{}:si(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 Go=Ho;const Wo=Ls((function(e){return Qs(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Ko=Vs(mo("groupBy",Ao((function(e,t){return e.push(t),e}),[])));const Yo=Vs((function(e,t){if(0===e.length||so(t))return!1;for(var r=t,n=0;n<e.length;){if(so(r)||!ti(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Xo=Vs((function(e,t){return Yo([e],t)}));const Qo=Vs((function(e,t){return!so(t)&&e in t}));const Zo=Ri(0);var ea=function(e,t){switch(arguments.length){case 0:return ea;case 1:return function t(r){return 0===arguments.length?t:ri(e,r)};default:return ri(e,t)}};const ta=ea;function ra(e){return e}const na=Ls(ra);const sa=_i((function(e,t,r){return Qs(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const ia=Vs(mi);const oa=yo(0,-1);"function"==typeof Object.assign&&Object.assign;const aa=Vs((function(e,t){return Qs(e+1,(function(){var r=arguments[e];if(null!=r&&oo(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ai(r)+' does not have a method named "'+t+'"')}))}));const ca=Ls((function(e){return null!=e&&fi(e,Go(e))}));const la=aa(1,"join");const ua=Ri(-1);const pa=Vs((function(e,t){return function(r){return function(n){return Ti((function(e){return t(e,n)}),r(e(n)))}}}));const ha=Vs((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=Ci(r)?Ri(r,n):n[r],s+=1}return n}))}));const fa=Vs((function(e,t){return ha([e],t)[0]}));const ma=Vs((function(e,t){return Ei((function(r,n){return r[n]=e(t[n],n,t),r}),{},li(t))}));const da=_i((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})ti(n,t)&&(s[n]=ti(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)ti(n,r)&&!ti(n,s)&&(s[n]=r[n]);return s}));const ya=_i((function e(t,r,n){return da((function(r,n,s){return xi(n)&&xi(s)?e(t,n,s):t(r,n,s)}),r,n)}));const ga=Vs((function(e,t){return ya((function(e,t,r){return r}),e,t)}));const va=Vs((function(e,t){return Ks(bi(e),t)}));const ba=Vs((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));var Ea=function(e){return{value:e,map:function(t){return Ea(t(e))}}};const xa=_i((function(e,t,r){return e((function(e){return Ea(t(e))}))(r).value}));const wa=_i((function(e,t,r){return ko(e,fa(t,r))}));const ja=_i((function(e,t,r){return e(fa(t,r))}));const Oa=Vs((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}));const Sa=_i((function(e,t,r){return fi(e,Ii(t,r))}));const Pa=_i((function(e,t,r){return ko(e,Ii(t,r))}));const Aa=_i((function(e,t,r){return e(Ii(t,r))}));function $a(e){return"[object Number]"===Object.prototype.toString.call(e)}var ka=Vs((function(e,t){if(!$a(e)||!$a(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const Ta=ka;const Ca=Ls(zs);var Ma=_i((function(e,t,r){return r.replace(e,t)}));const Ra=Ma;var Ia=Vs((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Fa=Ia;const _a=aa(1,"split");const Na=Vs((function(e,t){return fi(_o(e.length,t),e)}));var Da=Vs((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 "+Ai(e));var r;return xo(e).test(t)}));const qa=Da;var La="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;var Va=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Js,e.prototype["@@transducer/result"]=Hs,e.prototype["@@transducer/step"]=function(e,t){return ei(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Ba(e){return function(t){return new Va(e,t)}}const Ua=Vs(Us([],Ba,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)ei(e,r=t[n],i)||(i[i.length]=r),n+=1;return i})));const za=_i((function(e,t,r){return e(r)?t(r):r}));const Ja=Ki(void 0);const Ha=fi(Ja());class Ga extends Ms.ON{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(Ha(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Wa=Ga;class Ka extends Ms.ON{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(null===e)return;const t=new Ms.ON([e.start.row,e.start.column,e.start.char]),r=new Ms.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Ya=Ka;const Xa=Qs(1,vo(ui,ta("GeneratorFunction")));const Qa=Qs(1,vo(ui,ta("AsyncFunction")));const Za=Yi([vo(ui,ta("Function")),Xa,Qa]);const ec=ho(Za);const tc=Qs(1,Za(Array.isArray)?Array.isArray:vo(ui,ta("Array")));const rc=uo(tc,ca);var nc=Qs(3,(function(e,t,r){var n=fa(e,r),s=fa(oa(e),r);if(!ec(n)&&!rc(e)){var i=Vi(n,s);return to(i,t)}}));const sc=nc;const ic=Wo(ia),oc=(e,t)=>"function"==typeof(null==t?void 0:t[e]),ac=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),cc=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},lc=(e,t)=>{var r,n;return(null==t||null===(r=t.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,e))||!1},uc=(e,t)=>(null==t?void 0:t.element)===e,pc=e=>e({hasMethod:oc,hasBasicElementProps:ac,primitiveEq:cc,isElementType:uc,hasClass:lc}),hc=pc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ms.W_||e(r)&&t(void 0,r))),fc=pc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ms.RP||e(r)&&t("string",r))),mc=pc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ms.VL||e(r)&&t("number",r))),dc=pc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ms.zr||e(r)&&t("null",r))),yc=pc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ms.hh||e(r)&&t("boolean",r))),gc=pc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Ms.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),vc=pc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Ms.ON&&!(n instanceof Ms.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),bc=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ms.c6||e(n)&&t("member",n)&&r(void 0,n))),Ec=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ms.EA||e(n)&&t("link",n)&&r(void 0,n))),xc=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ms.tK||e(n)&&t("ref",n)&&r(void 0,n))),wc=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Is||e(n)&&t("annotation",n)&&r("array",n))),jc=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _s||e(n)&&t("comment",n)&&r("string",n))),Oc=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wa||e(n)&&t("parseResult",n)&&r("array",n))),Sc=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ya||e(n)&&t("sourceMap",n)&&r("array",n))),Pc=e=>uc("object",e)||uc("array",e)||uc("boolean",e)||uc("number",e)||uc("string",e)||uc("null",e)||uc("member",e),Ac=e=>{var t,r;return Sc(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},$c=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!vc(r)&&Ks(ic(r.toValue()),e)},kc=(e,t)=>0===e.length||Ks(ic(t.classes.toValue()),e);const Tc=fi(null);const Cc=ho(Tc);function Mc(e){return Mc="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},Mc(e)}const Rc=function(e){return"object"===Mc(e)};const Ic=Qs(1,uo(Cc,Rc));var Fc=vo(ui,ta("Object")),_c=vo(Ai,fi(Ai(Object))),Nc=ja(uo(Za,_c),["constructor"]);const Dc=Qs(1,(function(e){if(!Ic(e)||!Fc(e))return!1;var t=Object.getPrototypeOf(e);return!!Tc(t)||Nc(t)}));class qc extends Ms.lS{constructor(){super(),this.register("annotation",Is),this.register("comment",_s),this.register("parseResult",Wa),this.register("sourceMap",Ya)}}const Lc=new qc,Vc=e=>{const t=new qc;return Dc(e)&&t.use(e),t},Bc=Lc,Uc=()=>({predicates:{...s},namespace:Bc});var zc=r(3992);const Jc=Qs(1,vo(ui,ta("String")));var Hc=r(538);const Gc=class extends Hc{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,Dc(r)&&Qo("cause",r)&&!Qo("cause",this)){const{cause:e}=r;this.cause=e,e instanceof Error&&Qo("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}};class Wc extends Error{static[Symbol.hasInstance](e){return Function.prototype[Symbol.hasInstance].call(Wc,e)||Function.prototype[Symbol.hasInstance].call(Gc,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,Dc(t)&&Qo("cause",t)&&!Qo("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&Qo("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const Kc=Wc,Yc=(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},Xc={},Qc=e=>null==e?void 0:e.type,Zc=e=>"string"==typeof Qc(e),el=(e,{visitFnGetter:t=Yc,nodeTypeGetter:r=Qc}={})=>{const n=new Array(e.length);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===Xc)n[o]=Xc;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===Xc)n[o]=Xc;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}},tl=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Xc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Yc,nodeTypeGetter:c=Qc,nodePredicate:l=Zc,detectCycles:u=!0}={})=>{const p=r||{};let h,f,m=Array.isArray(e),d=[e],y=-1,g=[];const v=[],b=[];let E=e;do{y+=1;const e=y===d.length;let r,x;const w=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),x=f,f=b.pop(),w){x=m?x.slice():Object.create(Object.getPrototypeOf(x),Object.getOwnPropertyDescriptors(x));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];m&&(r-=e),m&&n===i?(x.splice(r,1),e+=1):x[r]=n}}y=h.index,d=h.keys,g=h.edits,m=h.inArray,h=h.prev}else{if(r=f?m?y:d[y]:void 0,x=f?f[r]:E,x===i||void 0===x)continue;f&&v.push(r)}if(b.includes(x))continue;let j;if(!Array.isArray(x)){if(!l(x))throw new Kc(`Invalid AST Node: ${JSON.stringify(x)}`);if(u&&b.includes(x)){v.pop();continue}const i=a(t,c(x),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(j=i.call(t,x,r,f,v,b),j===s)break;if(j===o){if(!e){v.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!l(j)){v.pop();continue}x=j}}}void 0===j&&w&&g.push([r,x]),e||(h={inArray:m,index:y,keys:d,edits:g,prev:h},m=Array.isArray(x),d=m?x:p[c(x)]||[],y=-1,g=[],f&&b.push(f),f=x)}while(void 0!==h);return 0!==g.length&&([,E]=g[g.length-1]),E};tl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Xc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Yc,nodeTypeGetter:c=Qc,nodePredicate:l=Zc,detectCycles:u=!0}={})=>{const p=r||{};let h,f,m=Array.isArray(e),d=[e],y=-1,g=[];const v=[],b=[];let E=e;do{y+=1;const e=y===d.length;let r,x;const w=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),x=f,f=b.pop(),w){x=m?x.slice():Object.create(Object.getPrototypeOf(x),Object.getOwnPropertyDescriptors(x));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];m&&(r-=e),m&&n===i?(x.splice(r,1),e+=1):x[r]=n}}y=h.index,d=h.keys,g=h.edits,m=h.inArray,h=h.prev}else{if(r=f?m?y:d[y]:void 0,x=f?f[r]:E,x===i||void 0===x)continue;f&&v.push(r)}let j;if(!Array.isArray(x)){if(!l(x))throw new Kc(`Invalid AST Node: ${JSON.stringify(x)}`);if(u&&b.includes(x)){v.pop();continue}const i=a(t,c(x),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(j=await i.call(t,x,r,f,v,b),j===s)break;if(j===o){if(!e){v.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!l(j)){v.pop();continue}x=j}}}void 0===j&&w&&g.push([r,x]),e||(h={inArray:m,index:y,keys:d,edits:g,prev:h},m=Array.isArray(x),d=m?x:p[c(x)]||[],y=-1,g=[],f&&b.push(f),f=x)}while(void 0!==h);return 0!==g.length&&([,E]=g[g.length-1]),E};const rl=e=>gc(e)?"ObjectElement":vc(e)?"ArrayElement":bc(e)?"MemberElement":fc(e)?"StringElement":yc(e)?"BooleanElement":mc(e)?"NumberElement":dc(e)?"NullElement":Ec(e)?"LinkElement":xc(e)?"RefElement":void 0,nl=vo(rl,Jc),sl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},il=zc({props:{result:[],predicate:Ns,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),ol=(e,t,{keyMap:r=sl,...n}={})=>tl(e,t,{keyMap:r,nodeTypeGetter:rl,nodePredicate:nl,...n});ol[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=sl,...n}={})=>tl[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:rl,nodePredicate:nl,...n});const al=(e,t,r={})=>{if(0===t.length)return e;const n=Pa(Uc,"toolboxCreator",r),s=Pa({},"visitorOptions",r),i=Pa(rl,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=el(a.map(Pa({},"visitor")),{nodeTypeGetter:i});a.forEach(sc(["pre"],[]));const l=ol(e,c,s);return a.forEach(sc(["post"],[])),l},cl=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return al(n,r,{toolboxCreator:Uc,visitorOptions:{nodeTypeGetter:rl}})},ll=e=>(t,r={})=>cl(t,{...r,Type:e});Ms.Sb.refract=ll(Ms.Sb),Ms.ON.refract=ll(Ms.ON),Ms.RP.refract=ll(Ms.RP),Ms.hh.refract=ll(Ms.hh),Ms.zr.refract=ll(Ms.zr),Ms.VL.refract=ll(Ms.VL),Ms.EA.refract=ll(Ms.EA),Ms.tK.refract=ll(Ms.tK),Is.refract=ll(Is),_s.refract=ll(_s),Wa.refract=ll(Wa),Ya.refract=ll(Ya);const ul=(e,t=new WeakMap)=>(bc(e)?(t.set(e.key,e),ul(e.key,t),t.set(e.value,e),ul(e.value,t)):e.children.forEach((r=>{t.set(r,e),ul(r,t)})),t),pl=zc.init((function({element:e}){let t;this.transclude=function(r,n){var s;if(r===e)return n;if(r===n)return e;t=null!==(s=t)&&void 0!==s?s:ul(e);const i=t.get(r);return Ha(i)?void 0:(gc(i)?((e,t,r)=>{const n=r.get(e);gc(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(r,n,t):vc(i)?((e,t,r)=>{const n=r.get(e);vc(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(r,n,t):bc(i)&&((e,t,r)=>{const n=r.get(e);bc(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)))})(r,n,t),e)}})),hl=pl,fl=e=>"string"==typeof(null==e?void 0:e.type)?e.type:rl(e),ml={EphemeralObject:["content"],EphemeralArray:["content"],...sl},dl=(e,t,{keyMap:r=ml,...n}={})=>ol(e,t,{keyMap:r,nodeTypeGetter:fl,nodePredicate:Ds,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});dl[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=ml,...r}={})=>ol[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:fl,nodePredicate:Ds,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const yl=class{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}};const gl=class{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))}},vl=zc.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 r=new gl(t.content);return e.set(t,r),r}},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 r=new yl(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:e=>e.toArray()}})),bl=(e,t=Bc)=>{if(Jc(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Dc(e)&&Xo("element",e)?t.fromRefract(e):t.toElement(e)},El=e=>dl(e,vl()),xl=vo(Ra(/~/g,"~0"),Ra(/\//g,"~1"),encodeURIComponent);const wl=class extends Kc{constructor(e,t){super(e,t),void 0!==t&&Object.assign(this,ba(["cause"],t))}};const jl=class extends wl{};const Ol=class extends jl{constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Sl=e=>{try{return 0===e.length?"":`/${e.map(xl).join("/")}`}catch(t){throw new Ol("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var Pl=uo(Qs(1,vo(ui,ta("Number"))),isFinite);var Al=Qs(1,Pl);var $l=uo(Za(Number.isFinite)?Qs(1,Vi(Number.isFinite,Number)):Al,Eo(fi,[Math.floor,na]));var kl=Qs(1,$l);const Tl=Za(Number.isInteger)?Qs(1,Vi(Number.isInteger,Number)):kl;const Cl=fi("");var Ml=$o((function(e,t){return vo(_a(""),Uo(ic(e)),la(""))(t)}));const Rl=Ml,Il=vo(Ra(/~1/g,"/"),Ra(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const Fl=class extends jl{constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},_l=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return Rl("#",t)},Nl=e=>{if(Cl(e))return[];if(!Na("/",e))throw new Fl(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=vo(_a("/"),Ti(Il))(e);return go(t)}catch(t){throw new Fl(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const Dl=class extends jl{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.element,Ac(t.element)&&(this.elementSourceMap=El(t.element.getMetaProperty("sourceMap"))))}},ql=(e,t)=>{let r;try{r=Nl(e)}catch(r){throw new Dl(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:t,cause:r})}return r.reduce(((t,n,s)=>{if(gc(t)){if(!t.hasKey(n))throw new Dl(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:t});return t.get(n)}if(vc(t)){if(!(n in t.content)||!Tl(Number(n)))throw new Dl(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:t});return t.get(Number(n))}throw new Dl(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:t})}),t)};class Ll extends Ms.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Vl=Ll;class Bl extends Ms.Sb{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)}}const Ul=Bl;class zl extends Ms.Sb{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)}}const Jl=zl;class Hl extends Ms.Sb{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)}}const Gl=Hl;class Wl extends Ms.Sb{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)}}const Kl=Wl;class Yl extends Ms.Sb{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)}}const Xl=Yl;class Ql extends Ms.Sb{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)}}const Zl=Ql;class eu extends Ms.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ms.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ms.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(eu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const tu=eu;class ru extends Ms.Sb{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)}}const nu=ru;class su extends Ms.Sb{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)}}const iu=su;class ou extends Ms.Sb{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 fc(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):fc(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 au=ou;class cu extends Ms.Sb{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)}}const lu=cu;class uu extends Ms.Sb{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)}}const pu=uu;class hu extends Ms.Sb{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)}}const fu=hu;class mu extends Ms.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const du=mu;class yu extends Ms.Sb{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)}}const gu=yu;class vu extends Ms.Sb{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 Ms.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const bu=vu;class Eu extends Ms.Sb{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 Ms.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ms.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Eu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const xu=Eu;class wu extends Ms.Sb{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)}}const ju=wu;class Ou extends Ms.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Su=Ou;class Pu extends Ms.Sb{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)}}const Au=Pu;class $u extends Ms.Sb{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 Ms.hh(!1)}set required(e){this.set("required",e)}}const ku=$u;class Tu extends Ms.Sb{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)}}const Cu=Tu;class Mu extends Ms.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Ru=Mu;class Iu extends Ms.Sb{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("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 Fu=Iu;class _u extends Ms.Sb{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)}}const Nu=_u;class Du extends Ms.Sb{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)}}const qu=Du;class Lu extends Ms.Sb{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 Vu=Lu,Bu=(e,t)=>{const r=ko(e,t);return ma((e=>{if(Dc(e)&&Xo("$ref",e)&&Aa(Jc,"$ref",e)){const t=fa(["$ref"],e),n=Rl("#/",t);return fa(n.split("/"),r)}return Dc(e)?Bu(e,r):e}),e)},Uu=zc({props:{element:null},methods:{copyMetaAndAttributes(e,t){Ac(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),zu=Uu,Ju=zc(zu,{methods:{enter(e){return this.element=e.clone(),Xc}}});const Hu=Ki(Ja()),Gu=e=>{if(hc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Wu={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...sl},Ku=zc(zu,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Oa(this.passingOptionsNames,this)},retrieveFixedFields(e){return vo(fa(["visitors",...e,"fixedFields"]),li)(this.specObj)},retrieveVisitor(e){return ja(Za,["visitors",...e],this.specObj)?fa(["visitors",...e],this.specObj):fa(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Ha(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(ol(t,n,{keyMap:Wu,nodeTypeGetter:Gu,...r}),n.element)}}}),Yu=zc(Ku,{props:{specPath:Hu,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(fc(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Ms.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),Xc}}}),Xu=Yu,Qu=zc(Xu,Ju,{props:{specPath:Ki(["document","objects","JSONSchema"])},init(){this.element=new Fu}}),Zu=Ju,ep=Ju,tp=Ju,rp=Ju,np=Ju,sp=Ju,ip=Ju,op=Ju,ap=Ju,cp=Ju,lp=zc({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),up=e=>gc(e)&&e.hasKey("$ref"),pp=zc(Ku,lp,Ju,{methods:{ObjectElement(e){const t=up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Xc},ArrayElement(e){return this.element=new Ms.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),hp=Ju,fp=Ju,mp=Ju,dp=Ju,yp=Ju,gp=zc(Ju,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),Xc}}});const vp=ho(Qs(1,uo(Cc,Jo(Rc,Za))));const bp=ho(ca);const Ep=Wi([Jc,vp,bp]),xp=zc(Ku,{props:{fieldPatternPredicate:Ns,specPath:Hu,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Ms.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),Xc}}}),wp=zc(xp,{props:{fieldPatternPredicate:Ep}}),jp=zc(wp,lp,Ju,{props:{specPath:e=>up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-properties")}}),Op=zc(wp,lp,Ju,{props:{specPath:e=>up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-patternProperties")}}),Sp=zc(wp,lp,Ju,{props:{specPath:e=>up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-dependencies")}}),Pp=zc(Ju,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),Xc}}}),Ap=zc(Ju,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Xc},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Xc}}}),$p=zc(Ku,lp,Ju,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),kp=zc(Ku,lp,Ju,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),Tp=zc(Ku,lp,Ju,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),Cp=zc(wp,lp,Ju,{props:{specPath:e=>up(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-definitions")}}),Mp=Ju,Rp=Ju,Ip=Ju,Fp=Ju,_p=Ju,Np=zc(Ku,lp,Ju,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),Dp=Ju,qp=zc(Xu,Ju,{props:{specPath:Ki(["document","objects","JSONReference"])},init(){this.element=new Nu},methods:{ObjectElement(e){const t=Xu.compose.methods.ObjectElement.call(this,e);return fc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Lp=zc(Ju,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Xc}}});const Vp=ho(so);const Bp=uo(tc,bp);function Up(e){return function(e){if(Array.isArray(e))return zp(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 zp(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(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zp(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 zp(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}var Jp=vo(Fa(po((function(e,t){return e.length>t.length}))),Zo,Ii("length")),Hp=$o((function(e,t,r){var n=r.apply(void 0,Up(e));return Vp(n)?Ca(n):t}));const Gp=sa(Bp,(function(e){var t=Jp(e);return Qs(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gi(Hp(r),void 0,e)}))}),Ja),Wp=zc(Ku,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>sa(e,Ki(t),Ja))),r=Gp(t)(e);return this.element=this.toRefractedElement(r,e),Xc}}}),Kp=zc(Wp,{props:{alternator:[{predicate:up,specPath:["document","objects","JSONReference"]},{predicate:Ds,specPath:["document","objects","JSONSchema"]}]}}),Yp={visitors:{value:Ju,JSONSchemaOrJSONReferenceVisitor:Kp,document:{objects:{JSONSchema:{$visitor:Qu,fixedFields:{id:Zu,$schema:ep,multipleOf:tp,maximum:rp,exclusiveMaximum:np,minimum:sp,exclusiveMinimum:ip,maxLength:op,minLength:ap,pattern:cp,additionalItems:Kp,items:pp,maxItems:hp,minItems:fp,uniqueItems:mp,maxProperties:dp,minProperties:yp,required:gp,properties:jp,additionalProperties:Kp,patternProperties:Op,dependencies:Sp,enum:Pp,type:Ap,allOf:$p,anyOf:kp,oneOf:Tp,not:Kp,definitions:Cp,title:Mp,description:Rp,default:Ip,format:Fp,base:_p,links:Np,media:{$ref:"#/visitors/document/objects/Media"},readOnly:Dp}},JSONReference:{$visitor:qp,fixedFields:{$ref:Lp}},Media:{$visitor:zc(Xu,Ju,{props:{specPath:Ki(["document","objects","Media"])},init(){this.element=new qu}}),fixedFields:{binaryEncoding:Ju,type:Ju}},LinkDescription:{$visitor:zc(Xu,Ju,{props:{specPath:Ki(["document","objects","LinkDescription"])},init(){this.element=new Vu}}),fixedFields:{href:Ju,rel:Ju,title:Ju,targetSchema:Kp,mediaType:Ju,method:Ju,encType:Ju,schema:Kp}}}}}},Xp=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Qp=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nu||e(n)&&t("JSONReference",n)&&r("object",n))),Zp=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qu||e(n)&&t("media",n)&&r("object",n))),eh=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vu||e(n)&&t("linkDescription",n)&&r("object",n))),th={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Fu),t.register("jSONReference",Nu),t.register("media",qu),t.register("linkDescription",Vu),t}},rh=()=>{const e=Vc(th);return{predicates:{...i,isStringElement:fc},namespace:e}},nh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Yp}={})=>{const s=(0,Ms.Qc)(e),i=Bu(n),o=sc(t,[],i);return ol(s,o,{state:{specObj:i}}),al(o.element,r,{toolboxCreator:rh,visitorOptions:{keyMap:Wu,nodeTypeGetter:Gu}})},sh=e=>(t,r={})=>nh(t,{specPath:e,...r});Fu.refract=sh(["visitors","document","objects","JSONSchema","$visitor"]),Nu.refract=sh(["visitors","document","objects","JSONReference","$visitor"]),qu.refract=sh(["visitors","document","objects","Media","$visitor"]),Vu.refract=sh(["visitors","document","objects","LinkDescription","$visitor"]);const ih=class extends Fu{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class oh extends Ms.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const ah=oh;class ch extends Ms.Sb{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)}}const lh=ch;class uh extends Ms.Sb{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)}}const ph=uh;class hh extends Ms.Sb{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)}}const fh=hh;class mh extends Ms.Sb{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)}}const dh=mh;class yh extends Ms.Sb{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 gh=yh,vh=zc({props:{element:null},methods:{copyMetaAndAttributes(e,t){Ac(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),bh=vh,Eh=e=>{if(hc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xh={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"],...sl},wh=zc(bh,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return Oa(this.passingOptionsNames,this)},retrieveFixedFields(e){return vo(fa(["visitors",...e,"fixedFields"]),li)(this.specObj)},retrieveVisitor(e){return ja(Za,["visitors",...e],this.specObj)?fa(["visitors",...e],this.specObj):fa(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Ha(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(ol(t,n,{keyMap:xh,nodeTypeGetter:Eh,...r}),n.element)}}}),jh=e=>gc(e)&&e.hasKey("openapi")&&e.hasKey("info"),Oh=e=>gc(e)&&e.hasKey("name")&&e.hasKey("in"),Sh=e=>gc(e)&&e.hasKey("$ref"),Ph=e=>gc(e)&&e.hasKey("content"),Ah=e=>gc(e)&&e.hasKey("description"),$h=gc,kh=gc,Th=e=>fc(e.key)&&Na("x-",e.key.toValue()),Ch=zc(wh,{props:{specPath:Hu,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:Th},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(fc(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Ms.c6(n.clone(),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(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),Xc}}}),Mh=Ch,Rh=zc(bh,{methods:{enter(e){return this.element=e.clone(),Xc}}}),Ih=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new gu},methods:{ObjectElement(e){return this.unrefractedElement=e,Mh.compose.methods.ObjectElement.call(this,e)}}}),Fh=zc(wh,Rh,{methods:{StringElement(e){const t=new du(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,Xc}}}),_h=zc(wh,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),Xc}}}),Nh=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new nu}}),Dh=Rh,qh=Rh,Lh=Rh,Vh=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),Xc}}}),Bh=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Jl}}),Uh=Rh,zh=Rh,Jh=Rh,Hh=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new iu}}),Gh=Rh,Wh=Rh,Kh=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new au},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return(fc(this.element.operationId)||fc(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),Yh=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Xc}}}),Xh=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Xc}}}),Qh=zc(wh,{props:{fieldPatternPredicate:Ns,specPath:Hu,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:Th},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{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(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Ms.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),Xc}}}),Zh=Qh,ef=zc(Zh,{props:{fieldPatternPredicate:Ep}});class tf extends Ms.Sb{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(tf.primaryClass)}}const rf=tf,nf=zc(ef,Rh,{props:{specPath:Ki(["value"])},init(){this.element=new rf}}),sf=Rh,of=Rh,af=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new ph}}),cf=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),Xc}}}),lf=Rh;class uf extends Ms.ON{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(uf.primaryClass)}}const pf=uf,hf=zc(wh,Rh,{init(){this.element=new pf},methods:{ArrayElement(e){return e.forEach((e=>{const t=$h(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),ff=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new fh}}),mf=Rh,df=Rh,yf=Rh;class gf extends Ms.Sb{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(gf.primaryClass)}}const vf=gf,bf=zc(ef,Rh,{props:{specPath:Ki(["document","objects","ServerVariable"])},init(){this.element=new vf}}),Ef=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new lu}}),xf=zc(wh,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>sa(e,Ki(t),Ja))),r=Gp(t)(e);return this.element=this.toRefractedElement(r,e),Xc}}}),wf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vl||e(n)&&t("callback",n)&&r("object",n))),jf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ul||e(n)&&t("components",n)&&r("object",n))),Of=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jl||e(n)&&t("contact",n)&&r("object",n))),Sf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xl||e(n)&&t("example",n)&&r("object",n))),Pf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zl||e(n)&&t("externalDocumentation",n)&&r("object",n))),Af=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tu||e(n)&&t("header",n)&&r("object",n))),$f=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nu||e(n)&&t("info",n)&&r("object",n))),kf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iu||e(n)&&t("license",n)&&r("object",n))),Tf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof au||e(n)&&t("link",n)&&r("object",n))),Cf=e=>{if(!Tf(e))return!1;if(!fc(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Mf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof du||e(n)&&t("openapi",n)&&r("string",n))),Rf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof gu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),If=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bu||e(n)&&t("operation",n)&&r("object",n))),Ff=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xu||e(n)&&t("parameter",n)&&r("object",n))),_f=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ju||e(n)&&t("pathItem",n)&&r("object",n))),Nf=e=>{if(!_f(e))return!1;if(!fc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Df=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Su||e(n)&&t("paths",n)&&r("object",n))),qf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Au||e(n)&&t("reference",n)&&r("object",n))),Lf=e=>{if(!qf(e))return!1;if(!fc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Vf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ku||e(n)&&t("requestBody",n)&&r("object",n))),Bf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cu||e(n)&&t("response",n)&&r("object",n))),Uf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ru||e(n)&&t("responses",n)&&r("object",n))),zf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ih||e(n)&&t("schema",n)&&r("object",n))),Jf=e=>yc(e)&&e.classes.includes("boolean-json-schema"),Hf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ah||e(n)&&t("securityRequirement",n)&&r("object",n))),Gf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ph||e(n)&&t("server",n)&&r("object",n))),Wf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fh||e(n)&&t("serverVariable",n)&&r("object",n))),Kf=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lu||e(n)&&t("mediaType",n)&&r("object",n))),Yf=zc(xf,Rh,{props:{alternator:[{predicate:Sh,specPath:["document","objects","Reference"]},{predicate:Ds,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=xf.compose.methods.enter.call(this,e);return qf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Xf=Rh,Qf=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Ms.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Zf extends Ms.Sb{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Zf.primaryClass),this.classes.push("examples")}}const em=Zf,tm=zc(Qf,{init(){this.element=new em}});class rm extends Ms.Sb{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(rm.primaryClass)}}const nm=rm,sm=zc(ef,Rh,{props:{specPath:Ki(["document","objects","Encoding"])},init(){this.element=new nm}}),im=zc(ef,Rh,{props:{specPath:Ki(["value"])},init(){this.element=new ah}});class om extends Ms.ON{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(om.primaryClass)}}const am=om,cm=zc(wh,Rh,{init(){this.element=new am},methods:{ArrayElement(e){return e.forEach((e=>{if(gc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),Xc}}}),lm=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ul}}),um=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new dh}}),pm=Rh,hm=Rh,fm=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Au},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return fc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),mm=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Xc}}}),dm=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new xu},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return gc(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),ym=Rh,gm=Rh,vm=Rh,bm=Rh,Em=Rh,xm=Rh,wm=Rh,jm=Rh,Om=Rh,Sm=zc(xf,Rh,{props:{alternator:[{predicate:Sh,specPath:["document","objects","Reference"]},{predicate:Ds,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=xf.compose.methods.enter.call(this,e);return qf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Pm=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new tu}}),Am=Rh,$m=Rh,km=Rh,Tm=Rh,Cm=Rh,Mm=Rh,Rm=Rh,Im=zc(xf,Rh,{props:{alternator:[{predicate:Sh,specPath:["document","objects","Reference"]},{predicate:Ds,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=xf.compose.methods.enter.call(this,e);return qf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Fm=Rh;class _m extends Ms.Sb{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(_m.primaryClass),this.classes.push("examples")}}const Nm=_m,Dm=zc(Qf,{init(){this.element=new Nm}}),qm=zc(ef,Rh,{props:{specPath:Ki(["document","objects","MediaType"])},init(){this.element=new Ms.Sb,this.element.classes.push("content")}});class Lm extends Ms.Sb{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Lm.primaryClass),this.classes.push("content")}}const Vm=Lm,Bm=zc(qm,{init(){this.element=new Vm}}),Um=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new ih}}),{allOf:zm}=Yp.visitors.document.objects.JSONSchema.fixedFields,Jm=zc(zm,{methods:{ArrayElement(e){const t=zm.compose.methods.ArrayElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Hm}=Yp.visitors.document.objects.JSONSchema.fixedFields,Gm=zc(Hm,{methods:{ArrayElement(e){const t=Hm.compose.methods.ArrayElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Wm}=Yp.visitors.document.objects.JSONSchema.fixedFields,Km=zc(Wm,{methods:{ArrayElement(e){const t=Wm.compose.methods.ArrayElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:Ym}=Yp.visitors.document.objects.JSONSchema.fixedFields,Xm=zc(Ym,{methods:{ObjectElement(e){const t=Ym.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:Qm}=Yp.visitors.document.objects.JSONSchema.fixedFields,Zm=zc(Qm,{methods:{ObjectElement(e){const t=Qm.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:ed}=Yp.visitors.document.objects.JSONSchema.fixedFields,td=zc(ed,{methods:{ObjectElement(e){const t=ed.compose.methods.ObjectElement.call(this,e);return qf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),Xc}}}),{properties:rd}=Yp.visitors.document.objects.JSONSchema.fixedFields,nd=zc(rd,{methods:{ObjectElement(e){const t=rd.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:sd}=Yp.visitors.document.objects.JSONSchema.fixedFields,id=zc(sd,{methods:{ObjectElement(e){const t=sd.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:od}=Yp.visitors.document.objects.JSONSchema.fixedFields,ad=zc(od,{methods:{ArrayElement(e){return this.element=e.clone(),Xc}}}),cd=Rh,ld=Rh,ud=Rh,pd=Rh,{JSONSchemaOrJSONReferenceVisitor:hd}=Yp.visitors,fd=zc(hd,{methods:{ObjectElement(e){const t=hd.compose.methods.enter.call(this,e);return qf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),md=Object.fromEntries(Object.entries(Yp.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Yp.visitors.JSONSchemaOrJSONReferenceVisitor?[e,fd]:[e,t]))),dd=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Gl}}),yd=Rh;class gd extends Ms.Sb{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(gd.primaryClass)}}const vd=gd,bd=zc(ef,Rh,{props:{specPath:Ki(["value"])},init(){this.element=new vd}}),Ed=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new gh}}),xd=Rh,wd=Rh,jd=Rh,Od=Rh,Sd=Rh,Pd=Rh;class Ad extends Ms.Sb{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Ad.primaryClass),this.classes.push("examples")}}const $d=Ad,kd=zc(Qf,{init(){this.element=new $d}});class Td extends Ms.Sb{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Td.primaryClass),this.classes.push("content")}}const Cd=Td,Md=zc(qm,{init(){this.element=new Cd}});class Rd extends Ms.Sb{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Rd.primaryClass)}}const Id=Rd,Fd=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new Id},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class _d extends Ms.Sb{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(_d.primaryClass)}}const Nd=_d,Dd=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Nd},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Bf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}}),qd=Dd;class Ld extends Ms.Sb{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ld.primaryClass),this.classes.push("parameters")}}const Vd=Ld,Bd=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new Vd},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class Ud extends Ms.Sb{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Ud.primaryClass),this.classes.push("examples")}}const zd=Ud,Jd=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new zd},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Hd extends Ms.Sb{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Hd.primaryClass)}}const Gd=Hd,Wd=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new Gd},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class Kd extends Ms.Sb{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Kd.primaryClass)}}const Yd=Kd,Xd=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Yd},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Af).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Qd=Xd;class Zd extends Ms.Sb{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Zd.primaryClass)}}const ey=Zd,ty=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new ey},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class ry extends Ms.Sb{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(ry.primaryClass)}}const ny=ry,sy=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new ny},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class iy extends Ms.Sb{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(iy.primaryClass)}}const oy=iy,ay=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new oy},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),cy=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xl},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return fc(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),ly=Rh,uy=Rh,py=Rh,hy=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Xc}}}),fy=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zl}}),my=Rh,dy=Rh,yy=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new Kl},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return gc(this.element.headers)&&this.element.headers.filter(Af).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),gy=Rh;class vy extends Ms.Sb{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(vy.primaryClass)}}const by=vy,Ey=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new by},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Af(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),xy=Ey,wy=Rh,jy=Rh,Oy=Rh,Sy=zc(Zh,Rh,{props:{fieldPatternPredicate:qa(/^\/(?<path>.*)$/),specPath:Ki(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Su},methods:{ObjectElement(e){const t=Zh.compose.methods.ObjectElement.call(this,e);return this.element.filter(_f).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),Py=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","RequestBody"])},init(){this.element=new ku},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return gc(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Ay=Rh;class $y extends Ms.Sb{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push($y.primaryClass),this.classes.push("content")}}const ky=$y,Ty=zc(qm,{init(){this.element=new ky}}),Cy=Rh,My=zc(Zh,Rh,{props:{fieldPatternPredicate:qa(/{(?<expression>.*)}/),specPath:Ki(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vl},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(_f).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),Ry=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Response"])},init(){this.element=new Cu},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return gc(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),gc(this.element.headers)&&this.element.headers.filter(Af).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Iy=Rh;class Fy extends Ms.Sb{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Fy.primaryClass)}}const _y=Fy,Ny=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new _y},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Af(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}}),Dy=Ny;class qy extends Ms.Sb{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(qy.primaryClass),this.classes.push("content")}}const Ly=qy,Vy=zc(qm,{init(){this.element=new Ly}});class By extends Ms.Sb{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(By.primaryClass)}}const Uy=By,zy=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Uy},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),Jy=zc(Mh,Zh,{props:{specPathFixedFields:Hu,specPathPatternedFields:Hu},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Ro(e.keys(),t)],Mh.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Zh.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Xc}}}),Hy=zc(Jy,Rh,{props:{specPathFixedFields:Ki(["document","objects","Responses"]),specPathPatternedFields:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:qa(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ta(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new Ru},methods:{ObjectElement(e){const t=Jy.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Bf).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),Gy=Hy,Wy=zc(xf,Rh,{props:{alternator:[{predicate:Sh,specPath:["document","objects","Reference"]},{predicate:Ds,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=xf.compose.methods.enter.call(this,e);return qf(this.element)?this.element.setMetaProperty("referenced-element","response"):Bf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),Ky=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","Operation"])},init(){this.element=new bu}});class Yy extends Ms.ON{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Yy.primaryClass)}}const Xy=Yy,Qy=zc(Rh,{init(){this.element=new Xy},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),Xc}}}),Zy=Rh,eg=Rh,tg=Rh;class rg extends Ms.ON{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(rg.primaryClass),this.classes.push("parameters")}}const ng=rg,sg=zc(wh,Rh,{init(){this.element=new Ms.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Sh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);qf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),ig=zc(sg,{init(){this.element=new ng}}),og=zc(xf,{props:{alternator:[{predicate:Sh,specPath:["document","objects","Reference"]},{predicate:Ds,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=xf.compose.methods.enter.call(this,e);return qf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class ag extends Ms.Sb{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(ag.primaryClass)}}const cg=ag,lg=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new cg},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(qf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),ug=Rh;class pg extends Ms.ON{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(pg.primaryClass),this.classes.push("security")}}const hg=pg,fg=zc(wh,Rh,{init(){this.element=new hg},methods:{ArrayElement(e){return e.forEach((e=>{const t=gc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}});class mg extends Ms.ON{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(mg.primaryClass),this.classes.push("servers")}}const dg=mg,yg=zc(hf,{init(){this.element=new dg}}),gg=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","PathItem"])},init(){this.element=new ju},methods:{ObjectElement(e){const t=Mh.compose.methods.ObjectElement.call(this,e);return this.element.filter(If).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),fc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),vg=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Xc}}}),bg=Rh,Eg=Rh;class xg extends Ms.ON{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(xg.primaryClass),this.classes.push("servers")}}const wg=xg,jg=zc(hf,{init(){this.element=new wg}});class Og extends Ms.ON{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Og.primaryClass),this.classes.push("parameters")}}const Sg=Og,Pg=zc(sg,{init(){this.element=new Sg}}),Ag=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new lh}}),$g=Rh,kg=Rh,Tg=Rh,Cg=Rh,Mg=Rh,Rg=Rh,Ig=Rh,Fg=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new fu}}),_g=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new pu}}),Ng=Rh,Dg=Rh,qg=Rh;class Lg extends Ms.Sb{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Lg.primaryClass)}}const Vg=Lg,Bg=zc(ef,Rh,{props:{specPath:Ki(["value"])},init(){this.element=new Vg}});class Ug extends Ms.ON{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Ug.primaryClass)}}const zg=Ug,Jg={$visitor:fm,fixedFields:{$ref:mm}},Hg={$visitor:Um,fixedFields:{...md,allOf:Jm,anyOf:Gm,oneOf:Km,definitions:Xm,items:td,dependencies:Zm,properties:nd,patternProperties:id,type:ad,nullable:cd,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:ld,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:ud,deprecated:pd}},Gg={visitors:{value:Rh,document:{objects:{OpenApi:{$visitor:Ih,fixedFields:{openapi:Fh,info:{$ref:"#/visitors/document/objects/Info"},servers:hf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:cm,tags:zc(wh,Rh,{init(){this.element=new zg},methods:{ArrayElement(e){return e.forEach((e=>{const t=kh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Xc}}}),externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Nh,fixedFields:{title:Dh,description:qh,termsOfService:Lh,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Vh}},Contact:{$visitor:Bh,fixedFields:{name:Uh,url:zh,email:Jh}},License:{$visitor:Hh,fixedFields:{name:Gh,url:Wh}},Server:{$visitor:af,fixedFields:{url:cf,description:lf,variables:bf}},ServerVariable:{$visitor:ff,fixedFields:{enum:mf,default:df,description:yf}},Components:{$visitor:lm,fixedFields:{schemas:Fd,responses:qd,parameters:Bd,examples:Jd,requestBodies:Wd,headers:Qd,securitySchemes:ty,links:sy,callbacks:ay}},Paths:{$visitor:Sy},PathItem:{$visitor:gg,fixedFields:{$ref:vg,summary:bg,description:Eg,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:jg,parameters:Pg}},Operation:{$visitor:Ky,fixedFields:{tags:Qy,summary:Zy,description:eg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:tg,parameters:ig,requestBody:og,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:lg,deprecated:ug,security:fg,servers:yg}},ExternalDocumentation:{$visitor:fy,fixedFields:{description:my,url:dy}},Parameter:{$visitor:dm,fixedFields:{name:ym,in:gm,description:vm,required:bm,deprecated:Em,allowEmptyValue:xm,style:wm,explode:jm,allowReserved:Om,schema:Sm,example:Pd,examples:kd,content:Md}},RequestBody:{$visitor:Py,fixedFields:{description:Ay,content:Ty,required:Cy}},MediaType:{$visitor:Ef,fixedFields:{schema:Yf,example:Xf,examples:tm,encoding:sm}},Encoding:{$visitor:yy,fixedFields:{contentType:gy,headers:xy,style:wy,explode:jy,allowReserved:Oy}},Responses:{$visitor:Gy,fixedFields:{default:Wy}},Response:{$visitor:Ry,fixedFields:{description:Iy,headers:Dy,content:Vy,links:zy}},Callback:{$visitor:My},Example:{$visitor:cy,fixedFields:{summary:ly,description:uy,value:py,externalValue:hy}},Link:{$visitor:Kh,fixedFields:{operationRef:Yh,operationId:Xh,parameters:nf,requestBody:sf,description:of,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Pm,fixedFields:{description:Am,required:$m,deprecated:km,allowEmptyValue:Tm,style:Cm,explode:Mm,allowReserved:Rm,schema:Im,example:Fm,examples:Dm,content:Bm}},Tag:{$visitor:um,fixedFields:{name:pm,description:hm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:Jg,Reference:Jg,JSONSchema:Hg,Schema:Hg,LinkDescription:Yp.visitors.document.objects.LinkDescription,Media:Yp.visitors.document.objects.Media,Discriminator:{$visitor:dd,fixedFields:{propertyName:yd,mapping:bd}},XML:{$visitor:Ed,fixedFields:{name:xd,namespace:wd,prefix:jd,attribute:Od,wrapped:Sd}},SecurityScheme:{$visitor:Ag,fixedFields:{type:$g,description:kg,name:Tg,in:Cg,scheme:Mg,bearerFormat:Rg,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ig}},OAuthFlows:{$visitor:Fg,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:_g,fixedFields:{authorizationUrl:Ng,tokenUrl:Dg,refreshUrl:qg,scopes:Bg}},SecurityRequirement:{$visitor:im}},extension:{$visitor:_h}}}},Wg={namespace:e=>{const{base:t}=e;return t.register("callback",Vl),t.register("components",Ul),t.register("contact",Jl),t.register("discriminator",Gl),t.register("encoding",Kl),t.register("example",Xl),t.register("externalDocumentation",Zl),t.register("header",tu),t.register("info",nu),t.register("license",iu),t.register("link",au),t.register("mediaType",lu),t.register("oAuthFlow",pu),t.register("oAuthFlows",fu),t.register("openapi",du),t.register("openApi3_0",gu),t.register("operation",bu),t.register("parameter",xu),t.register("pathItem",ju),t.register("paths",Su),t.register("reference",Au),t.register("requestBody",ku),t.register("response",Cu),t.register("responses",Ru),t.register("schema",ih),t.register("securityRequirement",ah),t.register("securityScheme",lh),t.register("server",ph),t.register("serverVariable",fh),t.register("tag",dh),t.register("xml",gh),t}},Kg=()=>{const e=Vc(Wg);return{predicates:{...o,...a,isStringElement:fc},namespace:e}},Yg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ms.Qc)(e),s=Bu(Gg),i=sc(t,[],s);return ol(n,i,{state:{specObj:s}}),al(i.element,r,{toolboxCreator:Kg,visitorOptions:{keyMap:xh,nodeTypeGetter:Eh}})},Xg=e=>(t,r={})=>Yg(t,{specPath:e,...r});Vl.refract=Xg(["visitors","document","objects","Callback","$visitor"]),Ul.refract=Xg(["visitors","document","objects","Components","$visitor"]),Jl.refract=Xg(["visitors","document","objects","Contact","$visitor"]),Xl.refract=Xg(["visitors","document","objects","Example","$visitor"]),Gl.refract=Xg(["visitors","document","objects","Discriminator","$visitor"]),Kl.refract=Xg(["visitors","document","objects","Encoding","$visitor"]),Zl.refract=Xg(["visitors","document","objects","ExternalDocumentation","$visitor"]),tu.refract=Xg(["visitors","document","objects","Header","$visitor"]),nu.refract=Xg(["visitors","document","objects","Info","$visitor"]),iu.refract=Xg(["visitors","document","objects","License","$visitor"]),au.refract=Xg(["visitors","document","objects","Link","$visitor"]),lu.refract=Xg(["visitors","document","objects","MediaType","$visitor"]),pu.refract=Xg(["visitors","document","objects","OAuthFlow","$visitor"]),fu.refract=Xg(["visitors","document","objects","OAuthFlows","$visitor"]),du.refract=Xg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),gu.refract=Xg(["visitors","document","objects","OpenApi","$visitor"]),bu.refract=Xg(["visitors","document","objects","Operation","$visitor"]),xu.refract=Xg(["visitors","document","objects","Parameter","$visitor"]),ju.refract=Xg(["visitors","document","objects","PathItem","$visitor"]),Su.refract=Xg(["visitors","document","objects","Paths","$visitor"]),Au.refract=Xg(["visitors","document","objects","Reference","$visitor"]),ku.refract=Xg(["visitors","document","objects","RequestBody","$visitor"]),Cu.refract=Xg(["visitors","document","objects","Response","$visitor"]),Ru.refract=Xg(["visitors","document","objects","Responses","$visitor"]),ih.refract=Xg(["visitors","document","objects","Schema","$visitor"]),ah.refract=Xg(["visitors","document","objects","SecurityRequirement","$visitor"]),lh.refract=Xg(["visitors","document","objects","SecurityScheme","$visitor"]),ph.refract=Xg(["visitors","document","objects","Server","$visitor"]),fh.refract=Xg(["visitors","document","objects","ServerVariable","$visitor"]),dh.refract=Xg(["visitors","document","objects","Tag","$visitor"]),gh.refract=Xg(["visitors","document","objects","XML","$visitor"]);const Qg=class extends Vl{};const Zg=class extends Ul{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const ev=class extends Jl{};const tv=class extends Gl{};const rv=class extends Kl{};const nv=class extends Xl{};const sv=class extends Zl{};const iv=class extends tu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ov=class extends nu{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 av extends Ms.RP{static default=new av("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const cv=av;const lv=class extends iu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const uv=class extends au{};const pv=class extends lu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const hv=class extends pu{};const fv=class extends fu{};const mv=class extends du{};class dv extends Ms.Sb{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)}}const yv=dv;const gv=class extends bu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const vv=class extends xu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const bv=class extends ju{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 Ev=class extends Su{};class xv extends Au{}Object.defineProperty(xv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(xv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const wv=xv;const jv=class extends ku{};const Ov=class extends Cu{};const Sv=class extends Ru{};class Pv extends Ms.Sb{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)}}const Av=Pv;const $v=class extends ah{};const kv=class extends lh{};const Tv=class extends ph{};const Cv=class extends fh{};const Mv=class extends dh{};const Rv=class extends gh{},Iv=zc(Mh,Rh,{props:{specPath:Ki(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new yv,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,Mh.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:Fv}}}}}=Gg,_v=zc(Fv,{init(){this.element=new ov}}),Nv=Rh,{visitors:{document:{objects:{Contact:{$visitor:Dv}}}}}=Gg,qv=zc(Dv,{init(){this.element=new ev}}),{visitors:{document:{objects:{License:{$visitor:Lv}}}}}=Gg,Vv=zc(Lv,{init(){this.element=new lv}}),Bv=Rh,{visitors:{document:{objects:{Link:{$visitor:Uv}}}}}=Gg,zv=zc(Uv,{init(){this.element=new uv}}),Jv=zc(wh,Rh,{methods:{StringElement(e){const t=new cv(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,Xc}}}),{visitors:{document:{objects:{Server:{$visitor:Hv}}}}}=Gg,Gv=zc(Hv,{init(){this.element=new Tv}}),{visitors:{document:{objects:{ServerVariable:{$visitor:Wv}}}}}=Gg,Kv=zc(Wv,{init(){this.element=new Cv}}),{visitors:{document:{objects:{MediaType:{$visitor:Yv}}}}}=Gg,Xv=zc(Yv,{init(){this.element=new pv}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:Qv}}}}}=Gg,Zv=zc(Qv,{init(){this.element=new $v}}),{visitors:{document:{objects:{Components:{$visitor:eb}}}}}=Gg,tb=zc(eb,{init(){this.element=new Zg}}),{visitors:{document:{objects:{Tag:{$visitor:rb}}}}}=Gg,nb=zc(rb,{init(){this.element=new Mv}}),{visitors:{document:{objects:{Reference:{$visitor:sb}}}}}=Gg,ib=zc(sb,{init(){this.element=new wv}}),ob=Rh,ab=Rh,{visitors:{document:{objects:{Parameter:{$visitor:cb}}}}}=Gg,lb=zc(cb,{init(){this.element=new vv}}),{visitors:{document:{objects:{Header:{$visitor:ub}}}}}=Gg,pb=zc(ub,{init(){this.element=new iv}}),hb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qg||e(n)&&t("callback",n)&&r("object",n))),fb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zg||e(n)&&t("components",n)&&r("object",n))),mb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ev||e(n)&&t("contact",n)&&r("object",n))),db=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nv||e(n)&&t("example",n)&&r("object",n))),yb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sv||e(n)&&t("externalDocumentation",n)&&r("object",n))),gb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iv||e(n)&&t("header",n)&&r("object",n))),vb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ov||e(n)&&t("info",n)&&r("object",n))),bb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cv||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),Eb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lv||e(n)&&t("license",n)&&r("object",n))),xb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uv||e(n)&&t("link",n)&&r("object",n))),wb=e=>{if(!xb(e))return!1;if(!fc(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},jb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("openapi",n)&&r("string",n))),Ob=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof yv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),Sb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gv||e(n)&&t("operation",n)&&r("object",n))),Pb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vv||e(n)&&t("parameter",n)&&r("object",n))),Ab=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("pathItem",n)&&r("object",n))),$b=e=>{if(!Ab(e))return!1;if(!fc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},kb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("paths",n)&&r("object",n))),Tb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wv||e(n)&&t("reference",n)&&r("object",n))),Cb=e=>{if(!Tb(e))return!1;if(!fc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Mb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jv||e(n)&&t("requestBody",n)&&r("object",n))),Rb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ov||e(n)&&t("response",n)&&r("object",n))),Ib=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sv||e(n)&&t("responses",n)&&r("object",n))),Fb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Av||e(n)&&t("schema",n)&&r("object",n))),_b=e=>yc(e)&&e.classes.includes("boolean-json-schema"),Nb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $v||e(n)&&t("securityRequirement",n)&&r("object",n))),Db=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tv||e(n)&&t("server",n)&&r("object",n))),qb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cv||e(n)&&t("serverVariable",n)&&r("object",n))),Lb=pc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pv||e(n)&&t("mediaType",n)&&r("object",n))),Vb=zc({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Bb=zc(Mh,Vb,Rh,{props:{specPath:Ki(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&bb(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&fc(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():cv.default.toValue(),e},t=t=>{if(Tc(this.parent)&&!fc(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(Fb(this.parent)&&!fc(t.get("$schema"))){var r,n;const e=ko(null===(r=this.parent.meta.get("inherited$schema"))||void 0===r?void 0:r.toValue(),null===(n=this.parent.$schema)||void 0===n?void 0:n.toValue());this.element.setMetaProperty("inherited$schema",e)}},r=e=>{var t;const r=null!==this.parent?this.parent.getMetaProperty("inherited$id",[]).clone():new Ms.ON,n=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();Ep(n)&&r.push(n),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new Av,t(e),r(e),this.parent=this.element;const n=Mh.compose.methods.ObjectElement.call(this,e);return fc(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=e.clone(),this.element.classes.push("boolean-json-schema"),Xc}}}),Ub=Rh,zb=zc(Rh,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),Xc}}}),Jb=Rh,Hb=Rh,Gb=Rh,Wb=Rh,Kb=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Xc}}}),Yb=zc(ef,Vb,Rh,{props:{specPath:Ki(["document","objects","Schema"])},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-$defs")}}),Xb=Rh,Qb=zc(wh,Vb,Rh,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(gc(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),Xc}}}),Zb=zc(wh,Vb,Rh,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(gc(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),Xc}}}),eE=zc(wh,Vb,Rh,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(gc(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),Xc}}}),tE=zc(ef,Vb,Rh,{props:{specPath:Ki(["document","objects","Schema"])},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),rE=zc(wh,Vb,Rh,{init(){this.element=new Ms.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(gc(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),Xc}}}),nE=zc(ef,Vb,Rh,{props:{specPath:Ki(["document","objects","Schema"])},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-properties")}}),sE=zc(ef,Vb,Rh,{props:{specPath:Ki(["document","objects","Schema"])},init(){this.element=new Ms.Sb,this.element.classes.push("json-schema-patternProperties")}}),iE=zc(Rh,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Xc},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Xc}}}),oE=zc(Rh,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),Xc}}}),aE=Rh,cE=Rh,lE=Rh,uE=Rh,pE=Rh,hE=Rh,fE=Rh,mE=Rh,dE=Rh,yE=Rh,gE=Rh,vE=Rh,bE=Rh,EE=Rh,xE=Rh,wE=Rh,jE=zc(Rh,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),Xc}}}),OE=zc(Rh,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),Xc}}}),SE=Rh,PE=Rh,AE=Rh,$E=Rh,kE=Rh,TE=Rh,CE=zc(Rh,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),Xc}}}),ME=Rh,RE=Rh,IE=Rh,FE=Rh,{visitors:{document:{objects:{Discriminator:{$visitor:_E}}}}}=Gg,NE=zc(_E,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new tv}}),{visitors:{document:{objects:{XML:{$visitor:DE}}}}}=Gg,qE=zc(DE,{init(){this.element=new Rv}}),LE=zc(ef,Rh,{props:{specPath:Ki(["document","objects","Schema"])},init(){this.element=new Id}});class VE extends Ms.Sb{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(VE.primaryClass)}}const BE=VE,UE=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new BE},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(Tb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:zE}}}}}=Gg,JE=zc(zE,{init(){this.element=new nv}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:HE}}}}}=Gg,GE=zc(HE,{init(){this.element=new sv}}),{visitors:{document:{objects:{Encoding:{$visitor:WE}}}}}=Gg,KE=zc(WE,{init(){this.element=new rv}}),{visitors:{document:{objects:{Paths:{$visitor:YE}}}}}=Gg,XE=zc(YE,{init(){this.element=new Ev}}),{visitors:{document:{objects:{RequestBody:{$visitor:QE}}}}}=Gg,ZE=zc(QE,{init(){this.element=new jv}}),{visitors:{document:{objects:{Callback:{$visitor:ex}}}}}=Gg,tx=zc(ex,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Qg},methods:{ObjectElement(e){const t=ex.compose.methods.ObjectElement.call(this,e);return this.element.filter(Tb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:rx}}}}}=Gg,nx=zc(rx,{init(){this.element=new Ov}}),{visitors:{document:{objects:{Responses:{$visitor:sx}}}}}=Gg,ix=zc(sx,{init(){this.element=new Sv}}),{visitors:{document:{objects:{Operation:{$visitor:ox}}}}}=Gg,ax=zc(ox,{init(){this.element=new gv}}),{visitors:{document:{objects:{PathItem:{$visitor:cx}}}}}=Gg,lx=zc(cx,{init(){this.element=new bv}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:ux}}}}}=Gg,px=zc(ux,{init(){this.element=new kv}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:hx}}}}}=Gg,fx=zc(hx,{init(){this.element=new fv}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:mx}}}}}=Gg,dx=zc(mx,{init(){this.element=new hv}});class yx extends Ms.Sb{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(yx.primaryClass)}}const gx=yx,vx=zc(ef,Rh,{props:{specPath:e=>Sh(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new gx},methods:{ObjectElement(e){const t=ef.compose.methods.ObjectElement.call(this,e);return this.element.filter(Tb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Ab).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),bx={visitors:{value:Gg.visitors.value,document:{objects:{OpenApi:{$visitor:Iv,fixedFields:{openapi:Gg.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Jv,servers:Gg.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:vx,components:{$ref:"#/visitors/document/objects/Components"},security:Gg.visitors.document.objects.OpenApi.fixedFields.security,tags:Gg.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:_v,fixedFields:{title:Gg.visitors.document.objects.Info.fixedFields.title,description:Gg.visitors.document.objects.Info.fixedFields.description,summary:Nv,termsOfService:Gg.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Gg.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:qv,fixedFields:{name:Gg.visitors.document.objects.Contact.fixedFields.name,url:Gg.visitors.document.objects.Contact.fixedFields.url,email:Gg.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Vv,fixedFields:{name:Gg.visitors.document.objects.License.fixedFields.name,identifier:Bv,url:Gg.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Gv,fixedFields:{url:Gg.visitors.document.objects.Server.fixedFields.url,description:Gg.visitors.document.objects.Server.fixedFields.description,variables:Gg.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Kv,fixedFields:{enum:Gg.visitors.document.objects.ServerVariable.fixedFields.enum,default:Gg.visitors.document.objects.ServerVariable.fixedFields.default,description:Gg.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:tb,fixedFields:{schemas:LE,responses:Gg.visitors.document.objects.Components.fixedFields.responses,parameters:Gg.visitors.document.objects.Components.fixedFields.parameters,examples:Gg.visitors.document.objects.Components.fixedFields.examples,requestBodies:Gg.visitors.document.objects.Components.fixedFields.requestBodies,headers:Gg.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Gg.visitors.document.objects.Components.fixedFields.securitySchemes,links:Gg.visitors.document.objects.Components.fixedFields.links,callbacks:Gg.visitors.document.objects.Components.fixedFields.callbacks,pathItems:UE}},Paths:{$visitor:XE},PathItem:{$visitor:lx,fixedFields:{$ref:Gg.visitors.document.objects.PathItem.fixedFields.$ref,summary:Gg.visitors.document.objects.PathItem.fixedFields.summary,description:Gg.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:Gg.visitors.document.objects.PathItem.fixedFields.servers,parameters:Gg.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:ax,fixedFields:{tags:Gg.visitors.document.objects.Operation.fixedFields.tags,summary:Gg.visitors.document.objects.Operation.fixedFields.summary,description:Gg.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Gg.visitors.document.objects.Operation.fixedFields.operationId,parameters:Gg.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Gg.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Gg.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Gg.visitors.document.objects.Operation.fixedFields.deprecated,security:Gg.visitors.document.objects.Operation.fixedFields.security,servers:Gg.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:GE,fixedFields:{description:Gg.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Gg.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:lb,fixedFields:{name:Gg.visitors.document.objects.Parameter.fixedFields.name,in:Gg.visitors.document.objects.Parameter.fixedFields.in,description:Gg.visitors.document.objects.Parameter.fixedFields.description,required:Gg.visitors.document.objects.Parameter.fixedFields.required,deprecated:Gg.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Gg.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Gg.visitors.document.objects.Parameter.fixedFields.style,explode:Gg.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Gg.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Gg.visitors.document.objects.Parameter.fixedFields.example,examples:Gg.visitors.document.objects.Parameter.fixedFields.examples,content:Gg.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ZE,fixedFields:{description:Gg.visitors.document.objects.RequestBody.fixedFields.description,content:Gg.visitors.document.objects.RequestBody.fixedFields.content,required:Gg.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Xv,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Gg.visitors.document.objects.MediaType.fixedFields.example,examples:Gg.visitors.document.objects.MediaType.fixedFields.examples,encoding:Gg.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:KE,fixedFields:{contentType:Gg.visitors.document.objects.Encoding.fixedFields.contentType,headers:Gg.visitors.document.objects.Encoding.fixedFields.headers,style:Gg.visitors.document.objects.Encoding.fixedFields.style,explode:Gg.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Gg.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:ix,fixedFields:{default:Gg.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:nx,fixedFields:{description:Gg.visitors.document.objects.Response.fixedFields.description,headers:Gg.visitors.document.objects.Response.fixedFields.headers,content:Gg.visitors.document.objects.Response.fixedFields.content,links:Gg.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:tx},Example:{$visitor:JE,fixedFields:{summary:Gg.visitors.document.objects.Example.fixedFields.summary,description:Gg.visitors.document.objects.Example.fixedFields.description,value:Gg.visitors.document.objects.Example.fixedFields.value,externalValue:Gg.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:zv,fixedFields:{operationRef:Gg.visitors.document.objects.Link.fixedFields.operationRef,operationId:Gg.visitors.document.objects.Link.fixedFields.operationId,parameters:Gg.visitors.document.objects.Link.fixedFields.parameters,requestBody:Gg.visitors.document.objects.Link.fixedFields.requestBody,description:Gg.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pb,fixedFields:{description:Gg.visitors.document.objects.Header.fixedFields.description,required:Gg.visitors.document.objects.Header.fixedFields.required,deprecated:Gg.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Gg.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Gg.visitors.document.objects.Header.fixedFields.style,explode:Gg.visitors.document.objects.Header.fixedFields.explode,allowReserved:Gg.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Gg.visitors.document.objects.Header.fixedFields.example,examples:Gg.visitors.document.objects.Header.fixedFields.examples,content:Gg.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:nb,fixedFields:{name:Gg.visitors.document.objects.Tag.fixedFields.name,description:Gg.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ib,fixedFields:{$ref:Gg.visitors.document.objects.Reference.fixedFields.$ref,summary:ob,description:ab}},Schema:{$visitor:Bb,fixedFields:{$schema:Ub,$vocabulary:zb,$id:Jb,$anchor:Hb,$dynamicAnchor:Gb,$dynamicRef:Wb,$ref:Kb,$defs:Yb,$comment:Xb,allOf:Qb,anyOf:Zb,oneOf:eE,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:tE,prefixItems:rE,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:nE,patternProperties:sE,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:iE,enum:oE,const:aE,multipleOf:cE,maximum:lE,exclusiveMaximum:uE,minimum:pE,exclusiveMinimum:hE,maxLength:fE,minLength:mE,pattern:dE,maxItems:yE,minItems:gE,uniqueItems:vE,maxContains:bE,minContains:EE,maxProperties:xE,minProperties:wE,required:jE,dependentRequired:OE,title:SE,description:PE,default:AE,deprecated:$E,readOnly:kE,writeOnly:TE,examples:CE,format:ME,contentEncoding:RE,contentMediaType:IE,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:FE}},Discriminator:{$visitor:NE,fixedFields:{propertyName:Gg.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Gg.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:qE,fixedFields:{name:Gg.visitors.document.objects.XML.fixedFields.name,namespace:Gg.visitors.document.objects.XML.fixedFields.namespace,prefix:Gg.visitors.document.objects.XML.fixedFields.prefix,attribute:Gg.visitors.document.objects.XML.fixedFields.attribute,wrapped:Gg.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:px,fixedFields:{type:Gg.visitors.document.objects.SecurityScheme.fixedFields.type,description:Gg.visitors.document.objects.SecurityScheme.fixedFields.description,name:Gg.visitors.document.objects.SecurityScheme.fixedFields.name,in:Gg.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Gg.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Gg.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Gg.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:fx,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:dx,fixedFields:{authorizationUrl:Gg.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Gg.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Gg.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Gg.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Zv}},extension:{$visitor:Gg.visitors.document.extension.$visitor}}}},Ex=e=>{if(hc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xx={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"],...sl},wx={namespace:e=>{const{base:t}=e;return t.register("callback",Qg),t.register("components",Zg),t.register("contact",ev),t.register("discriminator",tv),t.register("encoding",rv),t.register("example",nv),t.register("externalDocumentation",sv),t.register("header",iv),t.register("info",ov),t.register("jsonSchemaDialect",cv),t.register("license",lv),t.register("link",uv),t.register("mediaType",pv),t.register("oAuthFlow",hv),t.register("oAuthFlows",fv),t.register("openapi",mv),t.register("openApi3_1",yv),t.register("operation",gv),t.register("parameter",vv),t.register("pathItem",bv),t.register("paths",Ev),t.register("reference",wv),t.register("requestBody",jv),t.register("response",Ov),t.register("responses",Sv),t.register("schema",Av),t.register("securityRequirement",$v),t.register("securityScheme",kv),t.register("server",Tv),t.register("serverVariable",Cv),t.register("tag",Mv),t.register("xml",Rv),t}},jx=()=>{const e=Vc(wx);return{predicates:{...c,isStringElement:fc,isArrayElement:vc,isObjectElement:gc,includesClasses:kc},namespace:e}},Ox=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ms.Qc)(e),s=Bu(bx),i=sc(t,[],s);return ol(n,i,{state:{specObj:s}}),al(i.element,r,{toolboxCreator:jx,visitorOptions:{keyMap:xx,nodeTypeGetter:Ex}})},Sx=e=>(t,r={})=>Ox(t,{specPath:e,...r});Qg.refract=Sx(["visitors","document","objects","Callback","$visitor"]),Zg.refract=Sx(["visitors","document","objects","Components","$visitor"]),ev.refract=Sx(["visitors","document","objects","Contact","$visitor"]),nv.refract=Sx(["visitors","document","objects","Example","$visitor"]),tv.refract=Sx(["visitors","document","objects","Discriminator","$visitor"]),rv.refract=Sx(["visitors","document","objects","Encoding","$visitor"]),sv.refract=Sx(["visitors","document","objects","ExternalDocumentation","$visitor"]),iv.refract=Sx(["visitors","document","objects","Header","$visitor"]),ov.refract=Sx(["visitors","document","objects","Info","$visitor"]),cv.refract=Sx(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),lv.refract=Sx(["visitors","document","objects","License","$visitor"]),uv.refract=Sx(["visitors","document","objects","Link","$visitor"]),pv.refract=Sx(["visitors","document","objects","MediaType","$visitor"]),hv.refract=Sx(["visitors","document","objects","OAuthFlow","$visitor"]),fv.refract=Sx(["visitors","document","objects","OAuthFlows","$visitor"]),mv.refract=Sx(["visitors","document","objects","OpenApi","fixedFields","openapi"]),yv.refract=Sx(["visitors","document","objects","OpenApi","$visitor"]),gv.refract=Sx(["visitors","document","objects","Operation","$visitor"]),vv.refract=Sx(["visitors","document","objects","Parameter","$visitor"]),bv.refract=Sx(["visitors","document","objects","PathItem","$visitor"]),Ev.refract=Sx(["visitors","document","objects","Paths","$visitor"]),wv.refract=Sx(["visitors","document","objects","Reference","$visitor"]),jv.refract=Sx(["visitors","document","objects","RequestBody","$visitor"]),Ov.refract=Sx(["visitors","document","objects","Response","$visitor"]),Sv.refract=Sx(["visitors","document","objects","Responses","$visitor"]),Av.refract=Sx(["visitors","document","objects","Schema","$visitor"]),$v.refract=Sx(["visitors","document","objects","SecurityRequirement","$visitor"]),kv.refract=Sx(["visitors","document","objects","SecurityScheme","$visitor"]),Tv.refract=Sx(["visitors","document","objects","Server","$visitor"]),Cv.refract=Sx(["visitors","document","objects","ServerVariable","$visitor"]),Mv.refract=Sx(["visitors","document","objects","Tag","$visitor"]),Rv.refract=Sx(["visitors","document","objects","XML","$visitor"]);const Px=class extends Kc{};const Ax=class extends Px{};const $x=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Ax('"filterByFormat" method is not implemented.')}findBy(){throw new Ax('"findBy" method is not implemented.')}latest(){throw new Ax('"latest" method is not implemented.')}};class kx extends $x{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 ua(this.filterByFormat(e))}}const Tx=new kx("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");var Cx=r(4155),Mx=$o((function(e,t){return vo(_a(""),Lo(ic(e)),la(""))(t)}));const Rx=Mx;const Ix=ho(Ha);const Fx=Qs(1,vo(ui,ta("RegExp")));const _x=za(Jc,Ra(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Nx=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const Dx=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),Nx(r,"str"),Nx(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(Fx(e)?e:_x(e),"g");return Ra(n,t,r)};var qx=Qs(3,Dx),Lx=aa(2,"replaceAll");const Vx=Za(String.prototype.replaceAll)?Lx:qx,Bx=()=>ja(qa(/^win/),["platform"],Cx),Ux=e=>{try{const t=new URL(e);return Rx(":",t.protocol)}catch{return}},zx=(vo(Ux,Ix),e=>{if(Cx.browser)return!1;const t=Ux(e);return Ha(t)||"file"===t||/^[a-zA-Z]$/.test(t)}),Jx=e=>{const t=Ux(e);return"http"===t||"https"===t},Hx=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Pa(!1,"keepFileProtocol",t),s=Pa(Bx,"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.substr(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substr(8):i.substr(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substr(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=Vx("/","\\",i),":\\"===i.substr(1,2)&&(i=i[0].toUpperCase()+i.substr(1))),i},Gx=e=>{const t=e.indexOf("#");return-1!==t?e.substr(t):"#"},Wx=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substr(0,t)),r},Kx=()=>{if(Cx.browser)return Wx(globalThis.location.href);const e=Cx.cwd(),t=ua(e);return["/","\\"].includes(t)?e:e+(Bx()?"\\":"/")},Yx=(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()},Xx=e=>zx(e)?(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Bx()&&(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})(Hx(e)):encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Qx=e=>zx(e)?Hx(e):decodeURI(e),Zx=zc({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:n=this.value}={}){this.uri=r,this.value=n,this.depth=e,this.refSet=t,this.errors=[]}}),ew=Zx,tw=zc({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=Jc(e)?e:e.uri;return Ix(this.find(Sa(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),rw=tw,nw={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},sw=pa(fa(["resolve","baseURI"]),io(["resolve","baseURI"])),iw=e=>Cl(e)?Kx():e,ow=zc({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:n=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n},methods:{get extension(){return Jc(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(ui(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});const aw=class extends Kc{constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},cw=async(e,t,r)=>{const n=await Promise.all(r.map(sc([e],[t])));return r.filter(((e,t)=>n[t]))},lw=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 aw("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const uw=class extends Kc{};const pw=class extends uw{};const hw=class extends Kc{},fw=async(e,t)=>{let r=e,n=!1;if(!Oc(e)){const t=new e.constructor(e.content,e.meta.clone(),e.attributes);t.classes.push("result"),r=new Wa([t]),n=!0}const s=ow({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await cw("canDereference",s,t.dereference.strategies);if(ca(i))throw new pw(s.uri);try{const{result:e}=await lw("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new hw(`Error while dereferencing file "${s.uri}"`,{cause:e})}},mw=async(e,t={})=>{const r=((e,t)=>{const r=ga(e,t);return xa(sw,iw,r)})(nw,t);return fw(e,r)};const dw=class extends Kc{constructor(e="Not Implemented",t){super(e,t)}},yw=zc({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:n=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=n},methods:{async canParse(){throw new dw},async parse(){throw new dw}}}),gw=yw,vw=zc(gw,{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())),r=btoa(t),n=new Wa;if(0!==r.length){const e=new Ms.RP(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new uw(`Error parsing "${e.uri}"`,{cause:t})}}}}),bw=zc({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new dw}}});const Ew=Qs(1,Vi(Promise.all,Promise));const xw=class extends Kc{};const ww=class extends xw{};const jw=class extends hw{};const Ow=class extends xw{},Sw=async(e,t)=>{const r=ow({uri:Xx(Wx(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 cw("canRead",e,r);if(ca(n))throw new Ow(e.uri);try{const{result:t}=await lw("read",[e],n);return t}catch(t){throw new xw(`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 cw("canParse",e,r);if(ca(n))throw new Ow(e.uri);try{const{plugin:t,result:r}=await lw("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new uw(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new uw(`Error while parsing file "${e.uri}"`,{cause:t})}})(ow({...r,data:n}),t)},Pw=(e,t)=>{const r=il({predicate:e});return ol(t,r),new Ms.O4(r.result)};class Aw extends Kc{}const $w=(e,t)=>{const r=il({predicate:e,returnOnTrue:Xc});return ol(t,r),wa(void 0,[0],r.result)};const kw=class extends Kc{};class Tw extends kw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class Cw extends Kc{}const Mw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Rw=e=>{const t=Gx(e);return Rl("#",t)},Iw=(e,t)=>{const r=(e=>{if(!Mw(e))throw new Tw(e);return e})(e),n=$w((e=>{var t;return Fb(e)&&(null===(t=e.$anchor)||void 0===t?void 0:t.toValue())===r}),t);if(Ha(n))throw new Cw(`Evaluation failed on token: "${r}"`);return n},Fw=(e,t)=>{if(void 0===t.$ref)return;const r=Gx(t.$ref.toValue()),n=t.meta.get("inherited$id").toValue();return`${Gi(((e,t)=>Yx(e,Xx(Wx(t)))),e,[...n,t.$ref.toValue()])}${"#"===r?"":r}`},_w=e=>{if(_w.cache.has(e))return _w.cache.get(e);const t=Av.refract(e);return _w.cache.set(e,t),t};_w.cache=new WeakMap;const Nw=e=>Pc(e)?_w(e):e,Dw=(e,t)=>{const{cache:r}=Dw,n=Wx(e),s=e=>Fb(e)&&void 0!==e.$id;if(!r.has(t)){const e=Pw(s,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=t.meta.get("inherited$id").toValue();return Gi(((e,t)=>Yx(e,Xx(Wx(t)))),e,[...r,t.$id.toValue()])})(n,e)===n));if(Ha(i))throw new Aw(`Evaluation failed on URI: "${e}"`);let o,a;return Mw(Rw(e))?(o=Iw,a=Rw(e)):(o=ql,a=_l(e)),o(a,i)};Dw.cache=new WeakMap;const qw=ol[Symbol.for("nodejs.util.promisify.custom")],Lw=zc({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:n=new WeakSet,options:s}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=s},methods:{toBaseURI(e){return Yx(this.reference.uri,Xx(Wx(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new ww(`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(Sa(t,"uri"));const n=await Sw(Qx(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=ew({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){var t;if(!this.options.resolve.external&&Cb(e))return!1;const r=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);Xo(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(e)},PathItemElement(e){var t;if(!fc(e.$ref))return;if(!this.options.resolve.external&&$b(e))return;const r=null===(t=e.$ref)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);Xo(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r)),this.crawledElements.push(e)},LinkElement(e){if((fc(e.operationRef)||fc(e.operationId))&&(this.options.resolve.external||!wb(e))){if(fc(e.operationRef)&&fc(e.operationId))throw new Error("LinkElement operationRef and operationId are mutually exclusive.");if(wb(e)){var t;const r=null===(t=e.operationRef)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);Xo(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))}}},ExampleElement(e){var t;if(!fc(e.externalValue))return;if(!this.options.resolve.external&&fc(e.externalValue))return;if(e.hasKey("value")&&fc(e.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=null===(t=e.externalValue)||void 0===t?void 0:t.toValue(),n=this.toBaseURI(r);Xo(n,this.crawlingMap)||(this.crawlingMap[n]=this.toReference(r))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!fc(e.$ref))return void this.visited.add(e);const t=await this.toReference(Qx(this.reference.uri)),{uri:r}=t,n=Fw(r,e),s=Wx(n),i=ow({uri:s}),o=va((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=!o&&r!==s;if(this.options.resolve.external||!c){if(!Xo(s,this.crawlingMap))try{this.crawlingMap[s]=o||a?t:this.toReference(Qx(n))}catch(e){if(!(a&&e instanceof Aw))throw e;this.crawlingMap[s]=this.toReference(Qx(n))}this.crawledElements.push(e)}else this.visited.add(e)},async crawlReferenceElement(e){var t;const r=await this.toReference(e.$ref.toValue());this.indirections.push(e);const n=_l(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=ql(n,r.value.result);if(Pc(s)){const t=e.meta.get("referenced-element").toValue();if(Sh(s))s=wv.refract(s),s.setMetaProperty("referenced-element",t);else{s=this.namespace.getElementClass(t).refract(s)}}if(this.indirections.includes(s))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Lw({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await qw(s,i,{keyMap:xx,nodeTypeGetter:Ex}),await i.crawl(),this.indirections.pop()},async crawlPathItemElement(e){var t;const r=await this.toReference(e.$ref.toValue());this.indirections.push(e);const n=_l(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=ql(n,r.value.result);if(Pc(s)&&(s=bv.refract(s)),this.indirections.includes(s))throw new Error("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const i=Lw({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await qw(s,i,{keyMap:xx,nodeTypeGetter:Ex}),await i.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(Qx(this.reference.uri));const{uri:r}=t,n=Fw(r,e),s=Wx(n),i=ow({uri:s}),o=va((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o;let c;this.indirections.push(e);try{if(o||a){c=Dw(n,Nw(t.value.result))}else{t=await this.toReference(Qx(n));const e=_l(n);c=Nw(ql(e,t.value.result))}}catch(e){if(!(a&&e instanceof Aw))throw e;if(Mw(Rw(n))){t=await this.toReference(Qx(n));const e=Rw(n);c=Iw(e,Nw(t.value.result))}else{t=await this.toReference(Qx(n));const e=_l(n);c=Nw(ql(e,t.value.result))}}if(this.visited.add(e),this.indirections.includes(c))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const l=Lw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await qw(c,l,{keyMap:xx,nodeTypeGetter:Ex}),await l.crawl(),this.indirections.pop()},async crawl(){await vo(no,Ew)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)Tb(e)?await this.crawlReferenceElement(e):Fb(e)?await this.crawlSchemaElement(e):Ab(e)&&await this.crawlPathItemElement(e)}}}),Vw=Lw,Bw=ol[Symbol.for("nodejs.util.promisify.custom")],Uw=zc(bw,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?Tx.includes(e.mediaType):Ob(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=Vc(wx),n=ew({uri:e.uri,value:e.parseResult}),s=Vw({reference:n,namespace:r,options:t}),i=rw();return i.add(n),await Bw(i.rootRef.value,s,{keyMap:xx,nodeTypeGetter:Ex}),await s.crawl(),i}}}),zw=Uw,Jw=e=>e.replace(/\s/g,""),Hw=e=>e.replace(/\W/gi,"_"),Gw=(e,t,r)=>{const n=Jw(e);return n.length>0?Hw(n):((e,t)=>`${Hw(Jw(t.toLowerCase()))}${Hw(Jw(e))}`)(t,r)},Ww=({operationIdNormalizer:e=Gw}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=Ko((e=>El(e.operationId)),s);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,n)=>{const s=`${e}${n+1}`;t.operationId=new r.elements.String(s)})))})),i.forEach((e=>{var t;if(void 0===e.operationId)return;const r=String(El(e.operationId)),n=s.find((e=>El(e.meta.get("originalOperationId"))===r));void 0!==n&&(e.operationId=null===(t=n.operationId)||void 0===t?void 0:t.clone(),e.meta.set("originalOperationId",r),e.set("__originalOperationId",r))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=ko("path",El(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(El(t.operationId)),o=ua(n),a=ko("method",El(t.meta.get("http-method"))),c=e(i,o,a);i!==c&&(t.operationId=new r.elements.String(c),t.set("__originalOperationId",i),t.meta.set("originalOperationId",i),s.push(t))}},LinkElement:{leave(e){t.isLinkElement(e)&&void 0!==e.operationId&&i.push(e)}}}}},Kw=()=>({predicates:e})=>{const t=(t,r)=>!!e.isParameterElement(t)&&(!!e.isParameterElement(r)&&(!!e.isStringElement(t.name)&&(!!e.isStringElement(t.in)&&(!!e.isStringElement(r.name)&&(!!e.isStringElement(r.in)&&(El(t.name)===El(r.name)&&El(t.in)===El(r.in))))))),r=[];return{visitor:{PathItemElement:{enter(t,n,s,i,o){if(o.some(e.isComponentsElement))return;const{parameters:a}=t;e.isArrayElement(a)?r.push([...a.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(e){const n=ua(r);if(!Array.isArray(n)||0===n.length)return;const s=wa([],["parameters","content"],e),i=Ua(t,[...s,...n]);e.parameters=new ng(i)}}}}},Yw=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,n,s,i,o){if(o.some(e.isComponentsElement))return;var a;void 0===r.security&&void 0!==t&&(r.security=new hg(null===(a=t)||void 0===a?void 0:a.content))}}}}},Xw=()=>({predicates:e})=>{let t;const r=[];return{visitor:{OpenApi3_1Element:{enter(r){var n;e.isArrayElement(r.servers)&&(t=null===(n=r.servers)||void 0===n?void 0:n.content)},leave(){t=void 0}},PathItemElement:{enter(n,s,i,o,a){if(a.some(e.isComponentsElement))return;void 0===n.servers&&void 0!==t&&(n.servers=new wg(t));const{servers:c}=n;void 0!==c&&e.isArrayElement(c)?r.push([...c.content]):r.push(void 0)},leave(){r.pop()}},OperationElement:{enter(t){const n=ua(r);void 0!==n&&(e.isArrayElement(t.servers)||(t.servers=new dg(n)))}}}}},Qw=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,n,s,i){var o,a;if(!i.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===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t.clone()}));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[t.example.clone()]),void 0!==t.schema.example&&t.schema.set("example",t.example.clone()))}}}}}),Zw=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,n,s,i){var o,a;if(!i.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===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>{var t;return null===(t=e.value)||void 0===t?void 0:t.clone()}));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[t.example.clone()]),void 0!==t.schema.example&&t.schema.set("example",t.example.clone()))}}}}}),ej=e=>t=>{if(t?.$$normalized)return t;if(ej.cache.has(t))return t;const r=yv.refract(t),n=e(r),s=El(n);return ej.cache.set(t,s),s};ej.cache=new WeakMap;const tj=e=>{if(!gc(e))return e;if(e.hasKey("$$normalized"))return e;const t=[Ww({operationIdNormalizer:(e,t,r)=>vs({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Kw(),Yw(),Xw(),Qw(),Zw()],r=al(e,t,{toolboxCreator:jx,visitorOptions:{keyMap:xx,nodeTypeGetter:Ex}});return r.set("$$normalized",!0),r},rj=zc({props:{name:null},methods:{canRead:()=>!1,async read(){throw new dw}}}),nj=zc(rj,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:e=this.timeout,redirects:t=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=e,this.redirects=t,this.withCredentials=r},methods:{canRead:e=>Jx(e.uri),async read(){throw new dw},getHttpClient(){throw new dw}}}).compose({props:{name:"http-swagger-client",swaggerHTTPClient:xr,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(),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",a=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,redirects:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new xw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),sj=gw.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),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 uw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new Wa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=bl(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new uw(`Error parsing "${e.uri}"`,{cause:t})}}}}),ij=gw.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),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return ur.load(e.toString(),{schema:Zt}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new uw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Wa,r=e.toString();try{const e=ur.load(r,{schema:Zt});if(this.allowEmpty&&void 0===e)return t;const n=bl(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new uw(`Error parsing "${e.uri}"`,{cause:t})}}}}),oj=gw.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new kx(...Tx.filterByFormat("generic"),...Tx.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),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 uw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Wa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=yv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new uw(`Error parsing "${e.uri}"`,{cause:t})}}}}),aj=gw.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new kx(...Tx.filterByFormat("generic"),...Tx.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),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return ur.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new uw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Wa,r=e.toString();try{const e=ur.load(r,{schema:Zt});if(this.allowEmpty&&void 0===e)return t;const n=yv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new uw(`Error parsing "${e.uri}"`,{cause:t})}}}}),cj=zc({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new dw}}}),lj=ol[Symbol.for("nodejs.util.promisify.custom")],uj=zc({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:n,ancestors:s=[]}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=[...s]},methods:{toBaseURI(e){return Yx(this.reference.uri,Xx(Wx(e)))},toAncestorLineage(e){const t=new WeakSet(e.filter(hc));return[[...this.ancestors,t],t]},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new ww(`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(Sa(t,"uri"));const n=await Sw(Qx(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=ew({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},async ReferenceElement(e,t,r,n,s){var i,o,a,c,l;const[u,p]=this.toAncestorLineage([...s,r]);if(u.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&Cb(e))return!1;const h=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),{uri:f}=h,m=Yx(f,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const d=_l(m);let y=ql(d,h.value.result);if(Pc(y)){const t=e.meta.get("referenced-element").toValue();if(Sh(y))y=wv.refract(y),y.setMetaProperty("referenced-element",t);else{y=this.namespace.getElementClass(t).refract(y)}}if(this.indirections.includes(y))throw new Error("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);p.add(e);const g=uj({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:u});y=await lj(y,g,{keyMap:xx,nodeTypeGetter:Ex}),p.delete(e),this.indirections.pop(),y=y.clone(),y.setMetaProperty("ref-fields",{$ref:null===(a=e.$ref)||void 0===a?void 0:a.toValue(),description:null===(c=e.description)||void 0===c?void 0:c.toValue(),summary:null===(l=e.summary)||void 0===l?void 0:l.toValue()}),y.setMetaProperty("ref-origin",h.uri);const v=ja(Ix,["description"],e),b=ja(Ix,["summary"],e);return v&&Qo("description",y)&&(y.description=e.description),b&&Qo("summary",y)&&(y.summary=e.summary),this.indirections.pop(),y},async PathItemElement(e,t,r,n,s){var i,o,a;const[c,l]=this.toAncestorLineage([...s,r]);if(!fc(e.$ref))return;if(c.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&$b(e))return;const u=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),{uri:p}=u,h=Yx(p,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const f=_l(h);let m=ql(f,u.value.result);if(Pc(m)&&(m=bv.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 jw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);l.add(e);const d=uj({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:c});m=await lj(m,d,{keyMap:xx,nodeTypeGetter:Ex}),l.delete(e),this.indirections.pop();const y=new bv([...m.content],m.meta.clone(),m.attributes.clone());return e.forEach(((e,t,r)=>{y.remove(t.toValue()),y.content.push(r)})),y.remove("$ref"),y.setMetaProperty("ref-fields",{$ref:null===(a=e.$ref)||void 0===a?void 0:a.toValue()}),y.setMetaProperty("ref-origin",u.uri),y},async LinkElement(e){if(!fc(e.operationRef)&&!fc(e.operationId))return;if(!this.options.resolve.external&&wb(e))return;if(fc(e.operationRef)&&fc(e.operationId))throw new Error("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(fc(e.operationRef)){var r,n,s;const i=_l(null===(r=e.operationRef)||void 0===r?void 0:r.toValue()),o=await this.toReference(null===(n=e.operationRef)||void 0===n?void 0:n.toValue());t=ql(i,o.value.result),Pc(t)&&(t=gv.refract(t)),t=new gv([...t.content],t.meta.clone(),t.attributes.clone()),t.setMetaProperty("ref-origin",o.uri),null===(s=e.operationRef)||void 0===s||s.meta.set("operation",t)}else if(fc(e.operationId)){var i,o;const r=null===(i=e.operationId)||void 0===i?void 0:i.toValue(),n=await this.toReference(Qx(this.reference.uri));if(t=$w((e=>Sb(e)&&e.operationId.equals(r)),n.value.result),Ha(t))throw new Error(`OperationElement(operationId=${r}) not found.`);null===(o=e.operationId)||void 0===o||o.meta.set("operation",t)}},async ExampleElement(e){var t;if(!fc(e.externalValue))return;if(!this.options.resolve.external&&fc(e.externalValue))return;if(e.hasKey("value")&&fc(e.externalValue))throw new Error("ExampleElement value and externalValue fields are mutually exclusive.");const r=await this.toReference(null===(t=e.externalValue)||void 0===t?void 0:t.toValue()),n=new r.value.result.constructor(r.value.result.content,r.value.result.meta.clone(),r.value.result.attributes.clone());n.setMetaProperty("ref-origin",r.uri),e.value=n},async SchemaElement(e,t,r,n,s){var i;const[o,a]=this.toAncestorLineage([...s,r]);if(!fc(e.$ref))return;if(o.some((t=>t.has(e))))return!1;let c=await this.toReference(Qx(this.reference.uri)),{uri:l}=c;const u=Fw(l,e),p=Wx(u),h=ow({uri:p}),f=va((e=>e.canRead(h)),this.options.resolve.resolvers),m=!f,d=m&&l!==p;if(!this.options.resolve.external&&d)return;let y;this.indirections.push(e);try{if(f||m){y=Dw(u,Nw(c.value.result))}else{c=await this.toReference(Qx(u));const e=_l(u);y=Nw(ql(e,c.value.result))}}catch(e){if(!(m&&e instanceof Aw))throw e;if(Mw(Rw(u))){c=await this.toReference(Qx(u)),l=c.uri;const e=Rw(u);y=Iw(e,Nw(c.value.result))}else{c=await this.toReference(Qx(u)),l=c.uri;const e=_l(u);y=Nw(ql(e,c.value.result))}}if(this.indirections.includes(y))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);a.add(e);const g=uj({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:o});if(y=await lj(y,g,{keyMap:xx,nodeTypeGetter:Ex}),a.delete(e),this.indirections.pop(),_b(y)){var v;const t=y.clone();return t.setMetaProperty("ref-fields",{$ref:null===(v=e.$ref)||void 0===v?void 0:v.toValue()}),t.setMetaProperty("ref-origin",c.uri),t}const b=new Av([...y.content],y.meta.clone(),y.attributes.clone());return e.forEach(((e,t,r)=>{b.remove(t.toValue()),b.content.push(r)})),b.remove("$ref"),b.setMetaProperty("ref-fields",{$ref:null===(i=e.$ref)||void 0===i?void 0:i.toValue()}),b.setMetaProperty("ref-origin",c.uri),b}}}),pj=uj,hj=ol[Symbol.for("nodejs.util.promisify.custom")],fj=zc(cj,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?Tx.includes(e.mediaType):Ob(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=Vc(wx),n=ko(rw(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(Sa(e.uri,"uri")):(s=ew({uri:e.uri,value:e.parseResult}),n.add(s));const i=pj({reference:s,namespace:r,options:t}),o=await hj(n.rootRef.value,i,{keyMap:xx,nodeTypeGetter:Ex});return null===t.dereference.refSet&&n.clean(),o}}}),mj=fj,dj=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(bc(r)){const t=String(r.key.toValue());e.push(t)}else if(vc(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},yj=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},gj=In("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:vj}=Yn,bj=ol[Symbol.for("nodejs.util.promisify.custom")],Ej=pj.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init(e){let{allowMetaPatches:t=this.allowMetaPatches,useCircularStructures:r=this.useCircularStructures,basePath:n=this.basePath}=e;this.allowMetaPatches=t,this.useCircularStructures=r,this.basePath=n},methods:{async ReferenceElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(kc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&Cb(e))return!1;const i=await this.toReference(e.$ref.toValue()),{uri:o}=i,a=Yx(o,e.$ref.toValue());this.indirections.push(e);const c=_l(a);let l=ql(c,i.value.result);if(Pc(l)){const t=e.meta.get("referenced-element").toValue();if(Sh(l))l=wv.refract(l),l.setMetaProperty("referenced-element",t);else{const e=this.namespace.getElementClass(t);l=e.refract(l)}}if(this.indirections.includes(l))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`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(l)))){if(Jx(o)||zx(o)){const t=new wv({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}n.add(e);const u=Ej({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...dj([...s,r,e]),"$ref"]});l=await bj(l,u,{keyMap:xx,nodeTypeGetter:Ex}),n.delete(e),this.indirections.pop(),l=l.clone(),l.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue(),description:e.description?.toValue(),summary:e.summary?.toValue()}),l.setMetaProperty("ref-origin",i.uri);const p=void 0!==e.description,h=void 0!==e.summary;if(p&&"description"in l&&(l.description=e.description),h&&"summary"in l&&(l.summary=e.summary),this.allowMetaPatches&&gc(l)){const e=l;if(void 0===e.get("$$ref")){const t=Yx(o,a);e.set("$$ref",t)}}return l}catch(t){const n=yj(t),i=vj(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:_l(e.$ref.toValue()),fullPath:this.basePath??[...dj([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(!fc(e.$ref))return;if(kc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&$b(e))return;const i=await this.toReference(e.$ref.toValue()),{uri:o}=i,a=Yx(o,e.$ref.toValue());this.indirections.push(e);const c=_l(a);let l=ql(c,i.value.result);if(Pc(l)&&(l=bv.refract(l)),this.indirections.includes(l))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`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(l)))){if(Jx(o)||zx(o)){const t=new bv({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}n.add(e);const u=Ej({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...dj([...s,r,e]),"$ref"]});l=await bj(l,u,{keyMap:xx,nodeTypeGetter:Ex}),n.delete(e),this.indirections.pop();const p=new bv([...l.content],l.meta.clone(),l.attributes.clone());if(e.forEach(((e,t,r)=>{p.remove(t.toValue()),p.content.push(r)})),p.remove("$ref"),p.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),p.setMetaProperty("ref-origin",i.uri),this.allowMetaPatches&&void 0===p.get("$$ref")){const e=Yx(o,a);p.set("$$ref",e)}return p}catch(t){const n=yj(t),i=vj(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:_l(e.$ref.toValue()),fullPath:this.basePath??[...dj([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{const[t,n]=this.toAncestorLineage([...s,r]);if(!fc(e.$ref))return;if(kc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;let i=await this.toReference(Qx(this.reference.uri)),{uri:o}=i;const a=Fw(o,e),c=Wx(a),l=ow({uri:c}),u=!this.options.resolve.resolvers.some((e=>e.canRead(l))),p=!u,h=p&&o!==c;if(!this.options.resolve.external&&h)return;let f;this.indirections.push(e);try{if(u||p){f=Dw(a,Nw(i.value.result))}else{i=await this.toReference(Qx(a)),o=i.uri;const e=_l(a);f=Nw(ql(e,i.value.result))}}catch(e){if(!(p&&e instanceof Aw))throw e;if(Mw(Rw(a))){i=await this.toReference(Qx(a)),o=i.uri;const e=Rw(a);f=Iw(e,Nw(i.value.result))}else{i=await this.toReference(Qx(a)),o=i.uri;const e=_l(a);f=Nw(ql(e,i.value.result))}}if(this.indirections.includes(f))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new jw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(t.some((e=>e.has(f)))){if(Jx(o)||zx(o)){const t=Yx(o,a),r=new Av({$ref:t},e.meta.clone(),e.attributes.clone());return r.get("$ref").classes.push("cycle"),r}return!1}}n.add(e);const m=Ej({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...dj([...s,r,e]),"$ref"]});if(f=await bj(f,m,{keyMap:xx,nodeTypeGetter:Ex}),n.delete(e),this.indirections.pop(),_b(f)){const t=f.clone();return t.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),t.setMetaProperty("ref-origin",o),t}const d=new Av([...f.content],f.meta.clone(),f.attributes.clone());if(e.forEach(((e,t,r)=>{d.remove(t.toValue()),d.content.push(r)})),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=Yx(o,a);d.set("$$ref",e)}return d}catch(t){const n=yj(t),i=new gj(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),fullPath:this.basePath??[...dj([...s,r,e]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await pj.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=yj(t),i=vj(n,{baseDoc:this.reference.uri,externalValue:e.externalValue?.toValue(),fullPath:this.basePath??[...dj([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),xj=Ej,wj=mj.compose.bind(),jj=wj({init(e){let{parameterMacro:t,options:r}=e;this.parameterMacro=t,this.options=r},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,n,s){const i=null===this.macroOperation?null:El(this.macroOperation),o=El(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=dj([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),Oj=wj({init(e){let{modelPropertyMacro:t,options:r}=e;this.modelPropertyMacro=t,this.options=r},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,n,s){void 0!==e.properties&&gc(e.properties)&&e.properties.forEach((t=>{if(gc(t))try{const e=this.modelPropertyMacro(El(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...dj([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}}),Sj=e=>{const t=e.meta.clone(),r=e.attributes.clone();return new e.constructor(void 0,t,r)},Pj=e=>new Ms.c6(e.key,e.value,e.meta.clone(),e.attributes.clone()),Aj=(e,t)=>t.clone&&t.isMergeableElement(e)?Tj(Sj(e),e,t):e,$j=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Aj(e,r))),kj=(e,t,r)=>{const n=gc(e)?Sj(e):Sj(t);return gc(e)&&e.forEach(((e,t,s)=>{const i=Pj(s);i.value=Aj(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=s.toValue();let a;if(gc(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=Pj(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Tj;const r=t.customMerge(e,t);return"function"==typeof r?r:Tj})(s,r)(n,t)}else a=Pj(i),a.value=Aj(t,r);n.remove(o),n.content.push(a)})),n};function Tj(e,t,r){var n,s,i;const o={clone:!0,isMergeableElement:e=>gc(e)||vc(e),arrayElementMerge:$j,objectElementMerge:kj,customMerge:void 0},a={...o,...r};a.isMergeableElement=null!==(n=a.isMergeableElement)&&void 0!==n?n:o.isMergeableElement,a.arrayElementMerge=null!==(s=a.arrayElementMerge)&&void 0!==s?s:o.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:o.objectElementMerge;const c=vc(t);return c===vc(e)?c&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a):Aj(t,a)}Tj.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument should be an array.");return 0===e.length?new Ms.Sb:e.reduce(((e,r)=>Tj(e,r,t)),Sj(e[0]))};const Cj=wj({init(e){let{options:t}=e;this.options=t},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!vc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...dj([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new Av(e.content.filter((e=>"allOf"!==e.key.toValue())),e.meta.clone(),e.attributes.clone());if(!e.allOf.content.every(Fb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...dj([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=Tj.all([...e.allOf.content,e]);if(e.hasKey("$$ref")||i.remove("$$ref"),e.hasKey("example")){i.getMember("example").value=e.get("example")}if(e.hasKey("examples")){i.getMember("examples").value=e.get("examples")}return i.remove("allOf"),i}}}}),Mj=ol[Symbol.for("nodejs.util.promisify.custom")],Rj=mj.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:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:s=this.mode,ancestors:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]},methods:{async dereference(e,t){const r=[],n=Vc(wx),s=t.dereference.refSet??rw();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=ew({uri:e.uri,value:e.parseResult}),s.add(i));const o=xj({reference:i,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(o),"function"==typeof this.parameterMacro){const e=jj({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=Oj({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=Cj({options:t});r.push(e)}const a=el(r,{nodeTypeGetter:Ex}),c=await Mj(s.rootRef.value,a,{keyMap:xx,nodeTypeGetter:Ex});return null===t.dereference.refSet&&s.clean(),c}}}),Ij=Rj,Fj=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict"}=e;try{const{cache:f}=Fj,m=Jx(Kx())?Kx():"https://smartbear.com/",d=_r(e),y=Yx(m,d);let g;f.has(t)?g=f.get(t):(g=yv.refract(t),g.classes.push("result"),f.set(t,g));const v=new Wa([g]),b=Sl(o),E=""===b?"":`#${b}`,x=ql(b,g),w=ew({uri:y,value:v}),j=rw({refs:[w]});""!==b&&(j.rootRef=null);const O=[new WeakSet([x])],S=[],P=((e,t,r)=>hl({element:r}).transclude(e,t))(x,await mw(x,{resolve:{baseURI:`${y}${E}`,resolvers:[nj({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[zw()]},parse:{mediaType:Tx.latest(),parsers:[oj({allowEmpty:!1,sourceMap:!1}),aj({allowEmpty:!1,sourceMap:!1}),sj({allowEmpty:!1,sourceMap:!1}),ij({allowEmpty:!1,sourceMap:!1}),vw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Ij({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:O})],refSet:j,dereferenceOpts:{errors:S}}}),g),A=l?P:tj(P);return{spec:El(A),errors:S}}catch(e){if(e instanceof Fl||e instanceof Dl)return{spec:null,errors:[]};throw e}};Fj.cache=new WeakMap;const _j=Fj,Nj={name:"openapi-3-1-apidom",match(e){let{spec:t}=e;return js(t)},normalize(e){let{spec:t}=e;return ej(tj)(t)},resolve:async e=>_j(e)};function Dj(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 a={spec:e,pathName:s,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const qj=()=>null,Lj={mapTagOperations:function(e){let{spec:t,cb:r=qj,defaultTag:n="default",v2OperationIdCompatibilityMode:s}=e;const i={},o={};return Dj(t,(e=>{let{pathName:a,method:c,operation:l}=e;var u;(l.tags?(u=l.tags,Array.isArray(u)?u:[u]):[n]).forEach((e=>{if("string"!=typeof e)return;o[e]=o[e]||{};const n=o[e],u=vs(l,a,c,{v2OperationIdCompatibilityMode:s}),p=r({spec:t,pathName:a,method:c,operation:l,operationId:u});if(i[u])i[u]+=1,n[`${u}${i[u]}`]=p;else if(void 0!==n[u]){const e=i[u]||1;i[u]=e+1,n[`${u}${i[u]}`]=p;const t=n[u];delete n[u],n[`${u}${e}`]=t}else n[u]=p}))})),o},makeExecute:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{pathName:r,method:n,operationId:s}=t;return function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:r,method:n,parameters:t,operationId:s,...i})}}}};var Vj=r(6489);function Bj(e){return"[object Object]"===Object.prototype.toString.call(e)}function Uj(e){var t,r;return!1!==Bj(e)&&(void 0===(t=e.constructor)||!1!==Bj(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const zj={body:function(e){let{req:t,value:r}=e;t.body=r},header:function(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){let{req:t,value:r,parameter:n}=e;t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false");0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0");if(r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}},path:function(e){let{req:t,value:r,parameter:n}=e;t.url=t.url.split(`{${n.name}}`).join(encodeURIComponent(r))},formData:function(e){let{req:t,value:r,parameter:n}=e;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function Jj(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}function Hj(e){let{req:t,value:r,parameter:n}=e;const{name:s,style:i,explode:o,content:a}=n;if(a){const e=Object.keys(a)[0];return void(t.url=t.url.split(`{${s}}`).join(gr(Jj(r,e),{escape:!0})))}const c=vr({key:n.name,value:r,style:i||"simple",explode:o||!1,escape:!0});t.url=t.url.split(`{${s}}`).join(c)}function Gj(e){let{req:t,value:r,parameter:n}=e;if(t.query=t.query||{},n.content){const e=Jj(r,Object.keys(n.content)[0]);if(e)t.query[n.name]=e;else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}else if(!1===r&&(r="false"),0===r&&(r="0"),r){const{style:e,explode:s,allowReserved:i}=n;t.query[n.name]={value:r,serializationOption:{style:e,explode:s,allowReserved:i}}}else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}const Wj=["accept","authorization","content-type"];function Kj(e){let{req:t,parameter:r,value:n}=e;if(t.headers=t.headers||{},!(Wj.indexOf(r.name.toLowerCase())>-1))if(r.content){const e=Object.keys(r.content)[0];t.headers[r.name]=Jj(n,e)}else void 0!==n&&(t.headers[r.name]=vr({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))}function Yj(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{};const s=typeof n;if(r.content){const e=Object.keys(r.content)[0];t.headers.Cookie=`${r.name}=${Jj(n,e)}`}else if("undefined"!==s){const e="object"===s&&!Array.isArray(n)&&r.explode?"":`${r.name}=`;t.headers.Cookie=e+vr({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}const Xj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Qj}=Xj,Zj=Qj;function eO(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i={...t},{authorized:o={}}=r,a=n.security||s.security||[],c=o&&!!Object.keys(o).length,l=Ts()(s,["components","securitySchemes"])||{};if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!c||!a||Array.isArray(n.security)&&!n.security.length)return t;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=l[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=Zj(`${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 c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(n||o){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((e=>{let[t,r]=e;const n=parseInt(t,10);return n>=200&&n<300&&Uj(r.content)})).reduce(((e,t)=>{let[,r]=t;return e.concat(Object.keys(r.content))}),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof n){const e=c.content[a]?.encoding??{};t.form={},Object.keys(n).forEach((r=>{t.form[r]={value:n[r],encoding:e[r]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function tO(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i={...t},{authorized:o={},specSecurity:a=[]}=r,c=n.security||a,l=o&&!!Object.keys(o).length,u=s.securityDefinitions;if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!l||!c||Array.isArray(n.security)&&!n.security.length)return t;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e];if(!t)return;const{token:r}=t,n=t.value||t,s=u[e],{type:a}=s,c=s["x-tokenName"]||"access_token",l=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===s.in?"query":"headers";i[e]=i[e]||{},i[e][s.name]=n}else if("basic"===a)if(n.header)i.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=Zj(`${e}:${t}`),i.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&l&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",i.headers.authorization=`${p} ${l}`)}))})),i}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||a)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}function rO(e,t){return`${t.toLowerCase()}-${e}`}function nO(e,t){return e&&e.paths?function(e,t){return Dj(e,t,!0)||null}(e,(e=>{let{pathName:r,method:n,operation:s}=e;if(!s||"object"!=typeof s)return!1;const i=s.operationId;return[vs(s,r,n),rO(r,n),i].some((e=>e&&e===t))})):null}const sO=e=>Array.isArray(e)?e:[],iO=In("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),oO={buildRequest:aO};function aO(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:u,serverVariables:p,http:h,signal:f}=e;let{parameters:m,parameterBuilders:d}=e;const y=Os(t);d||(d=y?l:zj);let g={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(g.signal=f),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),c&&(g.userFetch=c);const v=nO(t,r);if(!v)throw new iO(`Operation ${r} not found`);const{operation:b={},method:E,pathName:x}=v;if(g.url+=lO({spec:t,scheme:s,contextUrl:a,server:u,serverVariables:p,pathName:x,method:E}),!r)return delete g.cookies,g;g.url+=x,g.method=`${E}`.toUpperCase(),m=m||{};const w=t.paths[x]||{};n&&(g.headers.accept=n);const j=(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(sO(b.parameters)).concat(sO(w.parameters)));j.forEach((e=>{const r=d[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=m),n=e&&e.name&&m[e.name],void 0===n?n=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,j).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(y&&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:g,parameter:e,value:n,operation:b,spec:t})}}));const O={...e,operation:b};if(g=y?eO(O,g):tO(O,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+Vj.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,Rr(g),g}const cO=e=>e?e.replace(/\W/g,""):null;function lO(e){return Os(e.spec)?function(e){let{spec:t,pathName:r,method:n,server:s,contextUrl:i,serverVariables:o={}}=e;const a=Ts()(t,["paths",r,(n||"").toLowerCase(),"servers"])||Ts()(t,["paths",r,"servers"])||Ts()(t,["servers"]);let c="",l=null;if(s&&a&&a.length){const e=a.map((e=>e.url));e.indexOf(s)>-1&&(c=s,l=a[e.indexOf(s)])}!c&&a&&a.length&&(c=a[0].url,[l]=a);if(c.indexOf("{")>-1){const e=function(e){const t=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(e);)t.push(n[1]);return t}(c);e.forEach((e=>{if(l.variables&&l.variables[e]){const t=l.variables[e],r=o[e]||t.default,n=new RegExp(`{${e}}`,"g");c=c.replace(n,r)}}))}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e&&t?u.parse(u.resolve(t,e)):u.parse(e),n=u.parse(t),s=cO(r.protocol)||cO(n.protocol)||"",i=r.host||n.host,o=r.pathname||"";let a;a=s&&i?`${s}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(c,i)}(e):function(e){let{spec:t,scheme:r,contextUrl:n=""}=e;const s=u.parse(n),i=Array.isArray(t.schemes)?t.schemes[0]:null,o=r||i||cO(s.protocol)||"http",a=t.host||s.host||"",c=t.basePath||"";let l;l=o&&a?`${o}://${a+c}`:c;return"/"===l[l.length-1]?l.slice(0,-1):l}(e)}function uO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?t.url=e:t=e,!(this instanceof uO))return new uO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,uO.makeApisTagOperation(this)),this)));return r.client=this,r}uO.http=xr,uO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),Er.mergeInQueryOrForm(n),n=t(n),r(e(n)))}.bind(null,uO.http),uO.resolveStrategies={"openapi-3-1-apidom":Nj,"openapi-3-0":Ps,"openapi-2-0":Ss,generic:xs},uO.resolve=As({strategies:[uO.resolveStrategies["openapi-3-1-apidom"],uO.resolveStrategies["openapi-3-0"],uO.resolveStrategies["openapi-2-0"],uO.resolveStrategies.generic]}),uO.resolveSubtree=Cs({strategies:[uO.resolveStrategies["openapi-3-1-apidom"],uO.resolveStrategies["openapi-3-0"],uO.resolveStrategies["openapi-2-0"],uO.resolveStrategies.generic]}),uO.execute=function(e){let{http:t,fetch:r,spec:n,operationId:s,pathName:i,method:o,parameters:a,securities:c,...l}=e;const u=t||r||xr;i&&o&&!s&&(s=rO(i,o));const p=oO.buildRequest({spec:n,operationId:s,parameters:a,securities:c,http:u,...l});return p.body&&(Uj(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),u(p)},uO.serializeRes=jr,uO.serializeHeaders=Or,uO.clearCache=function(){ys.refs.clearCache()},uO.makeApisTagOperation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Lj.makeExecute(e);return{apis:Lj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},uO.buildRequest=aO,uO.helpers={opId:vs},uO.getBaseUrl=lO,uO.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:nj}},parse:{parsers:{JsonParser:sj,YamlParser:ij,OpenApiJson3_1Parser:oj,OpenApiYaml3_1Parser:aj}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Ij}}},uO.prototype={http:xr,execute(e){return this.applyDefaults(),uO.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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uO.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)))}},uO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(t&&t.startsWith("http")){const r=u.parse(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};const{helpers:pO}=uO,hO=uO})(),n=n.default})()));
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|