swagger-client 3.20.0 → 3.20.1
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 +1589 -450
- package/dist/swagger-client.browser.min.js +1 -1
- package/dist/swagger-client.browser.min.js.map +1 -1
- package/lib/execute/index.js +2 -2
- package/lib/execute/oas3/build-request.js +2 -2
- package/lib/execute/swagger2/build-request.js +2 -2
- package/lib/http/fold-formdata-to-request.node.js +2 -2
- package/lib/index.js +2 -2
- package/lib/interfaces.js +2 -2
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/all-of.js +2 -2
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +4 -4
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/parameters.js +1 -1
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/properties.js +1 -1
- package/lib/resolver/apidom/reference/resolve/resolvers/http-swagger-client/index.js +2 -2
- package/lib/resolver/index.js +2 -2
- package/lib/specmap/index.js +2 -2
- package/lib/specmap/lib/all-of.js +2 -2
- package/lib/specmap/lib/context-tree.js +2 -2
- package/lib/specmap/lib/index.js +2 -2
- package/lib/specmap/lib/parameters.js +2 -2
- package/lib/specmap/lib/properties.js +2 -2
- package/lib/subtree-resolver/index.js +2 -2
- package/package.json +10 -10
|
@@ -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(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 x=[301,302,303,307,308];j.redirect=function(e,t){if(-1===x.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 w(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)}))}w.polyfill=!0,e.fetch||(e.fetch=w,e.Headers=h,e.Request=b,e.Response=j),t.Headers=h,t.Request=b,t.Response=j,t.fetch=w,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},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},415:(e,t,r)=>{r(1181),r(7627),r(4415),r(6274),r(7971);var n=r(4058);e.exports=n.AggregateError},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")},6121:(e,t,r)=>{e.exports=r(8644)},8644:(e,t,r)=>{r(9731);var n=r(4101);e.exports=n},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),x=n(d,y),w=a(j),E=0,S=g||c,P=t?S(m,w):r||h?S(m,0):void 0;w>E;E++)if((f||E in j)&&(b=x(v=j[E],E,O),e))if(t)P[E]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return E;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}},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))}}},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"]},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,O,j=e.target,x=e.global,w=e.stat,E=e.proto,S=x?n:w?n[j]:(n[j]||{}).prototype,P=x?l:l[j]||p(l,j,{})[j],A=P.prototype;for(d in t)s=!(r=c(x?d:j+(w?".":"#")+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):E&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),E&&(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]}},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")}},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},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}},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},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)}},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))}},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,O,j,x,w=r&&r.that,E=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),k=n(t,w),$=function(e){return y&&h(y,"normal",e),new m(!0,e)},T=function(e){return E?(i(e),A?k(e[0],e[1],$):k(e[0],e[1])):A?k(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((O=T(e[v]))&&l(d,O))return O;return new m(!1)}y=u(e,g)}for(j=S?e.next:y.next;!(x=s(j,y)).done;){try{O=T(x.value)}catch(e){h(y,"throw",e)}if("object"==typeof O&&O&&l(d,O))return O}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,O=y.BUGGY_SAFARI_ITERATORS,j=m("iterator"),x="keys",w="values",E="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 x:case w:case E: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==w&&R&&R.name!==w&&(!i&&v?h(I,"name",w):(M=!0,F=function(){return s(R,this)})),m)if(k={values:T(w),keys:y?F:T(x),entries:T(E)},P)for($ in k)(O||M||!($ in I))&&f(I,$,k[$]);else n({target:t,proto:!0,forced:O||M},k);return i&&!P||I[j]===F||f(I,j,F,{name:m}),d[t]=F,k}},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])}},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={}},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}})}},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]}},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("."),O=b[b.length-1],j=n.apply(null,b);if(j){var x=j.prototype;if(!d&&s(x,"cause")&&delete x.cause,!r)return j;var w=n("Error"),E=t((function(e,t){var r=p(y?t:e,void 0),n=y?new j(e):new j;return void 0!==r&&i(n,"message",r),f(n,E,n.stack,2),this&&o(x,this)&&u(n,this,E),arguments.length>v&&h(n,arguments[v]),n}));if(E.prototype=x,"Error"!==O?a?a(E,w):c(E,w,{name:!0}):m&&g in j&&(l(E,j,g),l(E,j,"prepareStackTrace")),c(E,j),!d)try{x.name!==O&&i(x,"name",O),x.constructor=E}catch(e){}return E}}},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)},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:()=>{},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)}}))},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,x=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,E=!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(x,e)&&!y(w,s)||y(w,e)&&!y(x,n)?"\\u"+O(v(e,0),16):e};d&&n({target:"JSON",stat:!0,arity:3,forced:E||S},{stringify:function(e,t,r){var n=p(arguments),s=i(E?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),x=r(7857),w=r(9677),E=r(5988),S=r(9938),P=r(6760),A=r(5929),k=r(9202),$=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),J=Object[B],H=s.Symbol,G=H&&H[B],W=s.TypeError,K=s.QObject,Y=w.f,X=E.f,Q=j.f,Z=P.f,ee=o([].push),te=$("symbols"),re=$("op-symbols"),ne=$("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(J,t);n&&delete J[t],X(e,t,r),n&&e!==J&&X(J,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===J&&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===J&&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!==J||!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===J,r=Q(t?re:m(e)),n=[];return q(r,(function(e){!p(te,e)||t&&!p(J,e)||ee(n,te[e])})),n};l||(A(G=(H=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===J&&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(J,t,{configurable:!0,set:r}),oe(t,e)})[B],"toString",(function(){return z(this).tag})),A(H,"withoutSetter",(function(e){return oe(M(e),e)})),P.f=le,E.f=ae,S.f=ce,w.f=ue,O.f=j.f=pe,x.f=he,R.f=function(e){return oe(I(e),e)},c&&(k(G,"description",{configurable:!0,get:function(){return z(this).description}}),a||A(J,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:H}),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(H,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")},9731:(e,t,r)=>{r(7627)},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}},8957:(e,t,r)=>{r(9731);var n=r(415);r(7634),e.exports=n},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),x=O.call(Function.call,Array.prototype.concat),w=O.call(Function.apply,Array.prototype.splice),E=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,k=/\\(\\)?/g,$=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 E(e,A,(function(e,t,r,s){n[n.length]=r?E(s,k,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=$("%"+n+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(n=p[0],w(r,x([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),x=(O=O==p?f:O)==f,w=(j=j==p?f:j)==f,E=O==j;if(E&&l(e)){if(!l(t))return!1;v=!0,x=!1}if(E&&!x)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=x&&m.call(e,"__wrapped__"),P=w&&m.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,k=P?t.value():t;return g||(g=new n),y(A,k,r,d,g)}}return!!E&&(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,x=RegExp.prototype.test,w=Array.prototype.concat,E=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,$="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||x.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]"!==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||!$)return!1;try{return $.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 x=String(t)+"n";return d?R(t,x):x}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 k=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(a,n);if(void 0===s)s=[];else if(H(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?" { "+E.call(W,", ")+" }":"")}if(B(t)){var ee=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):$.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 k&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,k)+"]":"[ "+E.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==J(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)+"] "+E.call(ie,", ")+" }":"{ ["+String(t)+"] "+E.call(w.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,k)}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,k)}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(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]"!==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(D(String(t)));if(!function(e){return!("[object Date]"!==J(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(J(t),8,-1):ue?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+E.call(w.call([],pe||[],ue||[]),": ")+"] ":"");return 0===ce.length?he+"{}":k?he+"{"+Q(ce,k)+"}":he+"{ "+E.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 _(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):E.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.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 k?k(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||(x.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof k)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,x){for(var w,E=t,S=x,P=0,A=!1;void 0!==(S=S.get(m))&&!A;){var k=S.get(t);if(P+=1,void 0!==k){if(k===P)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(m)&&(P=0)}if("function"==typeof h?E=h(r,E):E instanceof Date?E=g(E):"comma"===i&&c(E)&&(E=s.maybeMap(E,(function(e){return e instanceof Date?g(e):e}))),null===E){if(a)return p&&!O?p(r,f.encoder,j,"key",v):r;E=""}if("string"==typeof(w=E)||"number"==typeof w||"boolean"==typeof w||"symbol"==typeof w||"bigint"==typeof w||s.isBuffer(E))return p?[b(O?r:p(r,f.encoder,j,"key",v))+"="+b(p(E,f.encoder,j,"value",v))]:[b(r)+"="+b(String(E))];var $,T=[];if(void 0===E)return T;if("comma"===i&&c(E))O&&p&&(E=s.maybeMap(E,p)),$=[{value:E.length>0?E.join(",")||null:void 0}];else if(c(h))$=h;else{var C=Object.keys(E);$=d?C.sort(d):C}for(var M=o&&c(E)&&1===E.length?r+"[]":r,I=0;I<$.length;++I){var R=$[I],F="object"==typeof R&&void 0!==R.value?R.value:E[R];if(!l||null!==F){var D=c(E)?"function"==typeof i?i(M,R):M:M+(y?"."+R:"["+R+"]");x.set(t,P);var N=n();N.set(m,x),u(T,e(F,D,i,o,a,l,"comma"===i&&O&&c(E)?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 x(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var w=x.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 E(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||E(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var A=x.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 k(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return E(e)&&r.indexOf(e)===t}))).length?r:t}function $(e,t){function n(r,n){S(t[r])&&(S(e[r])||(e[r]={}),(n||w)(e[r],t[r]))}function s(n){(r=k(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])&&w(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)E(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])&&w(r,n),(n=e[p])&&Object.defineProperties(r,n),n=E(r[O])?r[O]:T,w(r[O]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce($,{}))}function C(e){return E(e)&&E(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,w),M[o]=M.props=I(o,w),M[g]=M.init=I(g,k),M[b]=I(b,k),M[a]=M[m]=I(a,A),M[l]=M.statics=I(l,w),M[u]=M[d]=I(u,A),M[h]=M.conf=I(h,w),M[f]=M[y]=I(f,A),M[c]=I(c,w),M[p]=I(p,w),n=M[O]=w((function(){for(var e,j,x=0,E=[],P=arguments,$=this;x<P.length;)S(e=P[x++])&&E.push(C(e)?e:((s={})[v]=(j=e)[v]||t,n=j.props,s[o]=S((r=j[o])||n)?w({},n,r):t,s[g]=k(j.init,j[g]),s[b]=k(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)?w({},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)?w({},r,n):t,n=j.conf,s[h]=S((r=j[h])||n)?w({},n,r):t,n=j[y],s[f]=S((r=j[f])||n)?A({},n,r):t,s));if(e=T.apply($||i,E),$&&E.unshift($),Array.isArray(P=e[O][b]))for(x=0;x<P.length;)e=C($=P[x++]({stamp:e,composables:E}))?$: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,x=String.fromCharCode;function w(e){throw new RangeError(b[e])}function E(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+E((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 E(e,(function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function $(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,x=0,E=m,S=f;for((r=e.lastIndexOf(d))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&w("not-basic"),b.push(e.charCodeAt(n));for(s=r>0?r+1:0;s<O;){for(i=x,o=1,p=c;s>=O&&w("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-x)/o))&&w("overflow"),x+=h*o,!(h<(y=p<=S?l:p>=S+u?u:p-S));p+=c)o>j(a/(g=c-y))&&w("overflow"),o*=g;S=$(x-i,t=b.length+1,0==i),j(x/t)>a-E&&w("overflow"),E+=j(x/t),x%=t,b.splice(x++,0,E)}return A(b)}function C(e){var t,r,n,s,i,o,p,h,y,g,v,b,O,E,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(x(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))&&w("overflow"),r+=(p-t)*O,t=p,o=0;o<b;++o)if((v=e[o])<t&&++r>a&&w("overflow"),v==t){for(h=r,y=c;!(h<(g=y<=i?l:y>=i+u?u:y-i));y+=c)S=h-g,E=c-g,A.push(x(k(g+S%E,0))),h=j(S/E);A.push(x(k(h,0))),i=$(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 x="//"===v.substr(0,2);!x||O&&d[O]||(v=v.substr(2),this.slashes=!0)}if(!d[O]&&(x||O&&!y[O])){for(var w,E,S=-1,P=0;P<p.length;P++){-1!==(A=v.indexOf(p[P]))&&(-1===S||A<S)&&(S=A)}-1!==(E=-1===S?v.lastIndexOf("@"):v.lastIndexOf("@",S))&&(w=v.slice(0,E),v=v.slice(E+1),this.auth=decodeURIComponent(w)),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 k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var $=this.hostname.split(/\./),T=(P=0,$.length);P<T;P++){var C=$[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=$.slice(0,P),D=$.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(),k||(this.hostname=n.toASCII(this.hostname));var _=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+_,this.href+=this.host,k&&(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,x=r.pathname&&r.pathname.split("/")||[],w=(f=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(w&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.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]||""===x[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,x=f;else if(f.length)x||(x=[]),x.pop(),x=x.concat(f),r.search=e.search,r.query=e.query;else if(null!=e.search){if(w)r.host=x.shift(),r.hostname=r.host,(k=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=k.shift(),r.hostname=k.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(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=x.slice(-1)[0],S=(r.host||e.host||x.length>1)&&("."===E||".."===E)||""===E,P=0,A=x.length;A>=0;A--)"."===(E=x[A])?x.splice(A,1):".."===E?(x.splice(A,1),P++):P&&(x.splice(A,1),P--);if(!O&&!j)for(;P--;P)x.unshift("..");!O||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),S&&"/"!==x.join("/").substr(-1)&&x.push("");var k,$=""===x[0]||x[0]&&"/"===x[0].charAt(0);w&&(r.hostname=$?"":x.length?x.shift():"",r.host=r.hostname,(k=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=k.shift(),r.hostname=k.shift(),r.host=r.hostname));return(O=O||r.host&&x.length)&&!$&&x.unshift(""),x.length>0?r.pathname=x.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:()=>bS});var e={};r.r(e),r.d(e,{JsonPatchError:()=>dn,_areEquals:()=>Sn,applyOperation:()=>On,applyPatch:()=>jn,applyReducer:()=>xn,deepClone:()=>yn,getValueByPointer:()=>bn,validate:()=>En,validator:()=>wn});var t={};r.r(t),r.d(t,{compare:()=>In,generate:()=>Cn,observe:()=>Tn,unobserve:()=>$n});var s={};r.r(s),r.d(s,{hasElementSourceMap:()=>Jc,includesClasses:()=>Gc,includesSymbols:()=>Hc,isAnnotationElement:()=>Lc,isArrayElement:()=>Dc,isBooleanElement:()=>Rc,isCommentElement:()=>Vc,isElement:()=>Tc,isLinkElement:()=>_c,isMemberElement:()=>Nc,isNullElement:()=>Ic,isNumberElement:()=>Mc,isObjectElement:()=>Fc,isParseResultElement:()=>Bc,isPrimitiveElement:()=>zc,isRefElement:()=>qc,isSourceMapElement:()=>Uc,isStringElement:()=>Cc});var i={};r.r(i),r.d(i,{isJSONReferenceElement:()=>Rh,isJSONSchemaElement:()=>Ih,isLinkDescriptionElement:()=>Dh,isMediaElement:()=>Fh});var o={};r.r(o),r.d(o,{isOpenApi3_0LikeElement:()=>hf,isOpenApiExtension:()=>bf,isParameterLikeElement:()=>ff,isReferenceLikeElement:()=>mf,isRequestBodyLikeElement:()=>df,isResponseLikeElement:()=>yf,isServerLikeElement:()=>gf,isTagLikeElement:()=>vf});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Im,isCallbackElement:()=>um,isComponentsElement:()=>pm,isContactElement:()=>hm,isExampleElement:()=>fm,isExternalDocumentationElement:()=>mm,isHeaderElement:()=>dm,isInfoElement:()=>ym,isLicenseElement:()=>gm,isLinkElement:()=>vm,isLinkElementExternal:()=>bm,isMediaTypeElement:()=>Nm,isOpenApi3_0Element:()=>jm,isOpenapiElement:()=>Om,isOperationElement:()=>xm,isParameterElement:()=>wm,isPathItemElement:()=>Em,isPathItemElementExternal:()=>Sm,isPathsElement:()=>Pm,isReferenceElement:()=>Am,isReferenceElementExternal:()=>km,isRequestBodyElement:()=>$m,isResponseElement:()=>Tm,isResponsesElement:()=>Cm,isSchemaElement:()=>Mm,isSecurityRequirementElement:()=>Rm,isServerElement:()=>Fm,isServerVariableElement:()=>Dm});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>TO,isCallbackElement:()=>oO,isComponentsElement:()=>aO,isContactElement:()=>cO,isExampleElement:()=>lO,isExternalDocumentationElement:()=>uO,isHeaderElement:()=>pO,isInfoElement:()=>hO,isJsonSchemaDialectElement:()=>fO,isLicenseElement:()=>mO,isLinkElement:()=>dO,isLinkElementExternal:()=>yO,isMediaTypeElement:()=>RO,isOpenApi3_1Element:()=>vO,isOpenapiElement:()=>gO,isOperationElement:()=>bO,isParameterElement:()=>OO,isPathItemElement:()=>jO,isPathItemElementExternal:()=>xO,isPathsElement:()=>wO,isReferenceElement:()=>EO,isReferenceElementExternal:()=>SO,isRequestBodyElement:()=>PO,isResponseElement:()=>AO,isResponsesElement:()=>kO,isSchemaElement:()=>$O,isSecurityRequirementElement:()=>CO,isServerElement:()=>MO,isServerVariableElement:()=>IO});var l={};r.r(l),r.d(l,{cookie:()=>rS,header:()=>tS,path:()=>QE,query:()=>ZE});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 x=r(6189);function w(e){var t=function(e,t){if("object"!==j(e)||null===e)return e;var r=e[x];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 E(e,t,r){return(t=w(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){E(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),k=(r(9559),r(129)),$=r.n(k);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,J=new V("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),H=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:[J,H,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,xe=3,we=4,Ee=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]/,ke=/[\x85\u2028\u2029]/,$e=/[,\[\]\{\}]/,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 Je(e,t){throw ze(e,t)}function He(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&&Je(e,"duplication of %YAML directive"),1!==r.length&&Je(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Je(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&Je(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&He(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Je(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],Te.test(n)||Je(e,"ill-formed tag handle (first argument) of the TAG directive"),be.call(e.tagMap,n)&&Je(e,'there is a previously declared suffix for "'+n+'" tag handle'),Ce.test(s)||Je(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Je(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||Je(e,"expected valid JSON character");else Ae.test(a)&&Je(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)||Je(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])&&Je(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,Je(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++):Je(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&&He(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,Je(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,xe,!1,!0),o.push(e.result),Qe(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Je(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&&Je(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)):Je(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!Fe(s);)33===s&&(o?Je(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Te.test(r)||Je(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),$e.test(n)&&Je(e,"tag suffix cannot contain flow indicator characters")}n&&!Ce.test(n)&&Je(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Je(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:Je(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&&Je(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&&Je(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=we===r||xe===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&&we!==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,Je(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))||Je(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;Je(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Je(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):Je(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,we,!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)Je(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&&Je(e,"expected the node content, but found ','"):Je(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}Je(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=Ee,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)Ee===a?a=43===i?Pe:Se:Je(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?Je(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Je(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===Ee&&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)?Je(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Je(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:Je(e,"expected hexadecimal character");e.result+=qe(i),e.position++}else Je(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)?Je(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Je(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&&Je(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),be.call(e.anchorMap,r)||Je(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||Je(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&&Je(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||Je(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Je(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)):Je(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&&Je(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):He(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&&Je(e,"directives end mark is expected"),st(e,e.lineIndent-1,we,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&ke.test(e.input.slice(i,e.position))&&He(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&&Je(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,Je(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,xt=42,wt=44,Et=45,St=58,Pt=61,At=62,kt=63,$t=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 Jt(e){return e===dt||e===ht}function Ht(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 Ht(e)&&e!==pt&&e!==mt&&e!==ft}function Wt(e,t,r){var n=Gt(e),s=n&&!Jt(e);return(r?n:n&&e!==wt&&e!==Tt&&e!==Ct&&e!==It&&e!==Ft)&&e!==vt&&!(t===St&&!s)||Gt(t)&&!Jt(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=Ht(l=Kt(e,0))&&l!==pt&&!Jt(l)&&l!==Et&&l!==kt&&l!==St&&l!==wt&&l!==Tt&&l!==Ct&&l!==It&&l!==Ft&&l!==vt&&l!==Ot&&l!==xt&&l!==yt&&l!==Rt&&l!==Pt&&l!==At&&l!==jt&&l!==gt&&l!==bt&&l!==$t&&l!==Mt&&function(e){return!Jt(e)&&e!==St}(Kt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Ht(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(!Ht(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])&&Ht(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,xr={dump:hr}.dump,wr=F,Er={binary:ue,float:re,map:G,null:K,pairs:de,set:ge,timestamp:ae,bool:Y,int:Z,merge:ce,omap:fe,seq:H,str:J},Sr=fr("safeLoad","load"),Pr=fr("safeLoadAll","loadAll"),Ar=fr("safeDump","dump");const kr={Type:mr,Schema:dr,FAILSAFE_SCHEMA:yr,JSON_SCHEMA:gr,CORE_SCHEMA:vr,DEFAULT_SCHEMA:br,load:Or,loadAll:jr,dump:xr,YAMLException:wr,types:Er,safeLoad:Sr,safeLoadAll:Pr,safeDump:Ar},$r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:Tr,Blob:Cr,File:Mr}=$r,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):kr.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 Jr={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Hr={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(Hr[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(Jr[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 $().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=$().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=$().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):wn(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:wn;;){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 xn(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 wn(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=En([{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 En(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||wn;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},kn=function(e,t){this.callback=e,this.observer=t};function $n(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 kn(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&&Jn(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)||Jn(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)||Jn(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 Jn(e)&&Hn(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:Hn,isObject:Jn,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)))):Jn(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(Jn(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 Jn(e){return e&&"object"==typeof e}function Hn(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(ws).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}/${ws(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=>kr.load(e)))},extract:Os,jsonPointerToArray:js,unescapeJsonPointerToken:xs}),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(xs)}function xs(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function ws(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const Es=e=>!e||"/"===e||"#"===e;function Ss(e,t){if(Es(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)}},ks={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 $s{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 $s,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:ks},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)},Js=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)),Hs=Js({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 Hs(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 xi=function(){return"[object Arguments]"===ji.call(arguments)?function(e){return"[object Arguments]"===ji.call(e)}:function(e){return bi("callee",e)}}();var wi=!{toString:null}.propertyIsEnumerable("toString"),Ei=["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&&xi(e);for(t in e)!bi(t,e)||s&&"length"===t||(n[n.length]=t);if(wi)for(r=Ei.length-1;r>=0;)bi(t=Ei[r],e)&&!Pi(n,t)&&(n[n.length]=t),r-=1;return n})):si((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ki=si((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function $i(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=ki(e);if(o!==ki(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&&$i(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&$i(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 Ji=si((function(e){return zi(e,[])}));const Hi=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=Ji(e),o=r(i,Ji(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(Hi,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(Hi,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 xo=jo;const wo=si((function(e){return null==e}));const Eo=eo((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!wo(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 ko=si((function(e){return Ao(e.length,e)}));const $o=ii((function(e,t){return So(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ko(Po)(e,t)}));const To=si((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const Co=ko(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(Hi,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(ki(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 Jo=zo;const Ho=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)}:ko(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)?{}:xi(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",Jo((function(e,t){return e.push(t),e}),[])));const ma=ii((function(e,t){if(0===e.length||wo(t))return!1;for(var r=t,n=0;n<e.length;){if(wo(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!wo(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 xa=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 wa=ii(Mi);const Ea=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(Ji(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 ka=Xi(-1);const $a=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)}));const Na=ii((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 _a=function(e){return{value:e,map:function(t){return _a(t(e))}}};const qa=eo((function(e,t,r){return e((function(e){return _a(t(e))}))(r).value}));const La=eo((function(e,t,r){return Go(e,Ca(t,r))}));const Va=eo((function(e,t,r){return e(Ca(t,r))}));const Ba=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 Ua=eo((function(e,t,r){return Ci(e,Qi(t,r))}));const za=eo((function(e,t,r){return Go(e,Qi(t,r))}));const Ja=eo((function(e,t,r){return e(Qi(t,r))}));function Ha(e){return"[object Number]"===Object.prototype.toString.call(e)}var Ga=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 Wa=Ga;const Ka=si(ci);var Ya=eo((function(e,t,r){return r.replace(e,t)}));const Xa=Ya;var Qa=ii((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Za=Qa;const ec=Sa(1,"split");const tc=ii((function(e,t){return Ci(ea(e.length,t),e)}));var rc=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 "+Ji(e));var r;return qo(e).test(t)}));const nc=rc;var sc="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;var ic=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 oc(e){return function(t){return new ic(e,t)}}const ac=ii(ai([],oc,(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 cc=eo((function(e,t,r){return e(r)?t(r):r}));const lc=fo(void 0);const uc=Ci(lc());class pc 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(uc(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const hc=pc;class fc 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 mc=fc;const dc=yi(1,Do(ki,ba("GeneratorFunction")));const yc=yi(1,Do(ki,ba("AsyncFunction")));const gc=mo([Do(ki,ba("Function")),dc,yc]);const vc=Co(gc);const bc=yi(1,gc(Array.isArray)?Array.isArray:Do(ki,ba("Array")));const Oc=$o(bc,Pa);var jc=yi(3,(function(e,t,r){var n=Ca(e,r),s=Ca(Ea(e),r);if(!vc(n)&&!Oc(e)){var i=io(n,s);return Oo(i,t)}}));const xc=jc;const wc=ha(wa),Ec=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Sc=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Pc=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},Ac=(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},kc=(e,t)=>(null==t?void 0:t.element)===e,$c=e=>e({hasMethod:Ec,hasBasicElementProps:Sc,primitiveEq:Pc,isElementType:kc,hasClass:Ac}),Tc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.W_||e(r)&&t(void 0,r))),Cc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.RP||e(r)&&t("string",r))),Mc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.VL||e(r)&&t("number",r))),Ic=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.zr||e(r)&&t("null",r))),Rc=$c((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ys.hh||e(r)&&t("boolean",r))),Fc=$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))),Dc=$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))),Nc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys.c6||e(n)&&t("member",n)&&r(void 0,n))),_c=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys.EA||e(n)&&t("link",n)&&r(void 0,n))),qc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys.tK||e(n)&&t("ref",n)&&r(void 0,n))),Lc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qs||e(n)&&t("annotation",n)&&r("array",n))),Vc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ei||e(n)&&t("comment",n)&&r("string",n))),Bc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hc||e(n)&&t("parseResult",n)&&r("array",n))),Uc=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mc||e(n)&&t("sourceMap",n)&&r("array",n))),zc=e=>kc("object",e)||kc("array",e)||kc("boolean",e)||kc("number",e)||kc("string",e)||kc("null",e)||kc("member",e),Jc=e=>{var t,r;return Uc(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!!Dc(r)&&fi(wc(r.toValue()),e)},Gc=(e,t)=>0===e.length||fi(wc(t.classes.toValue()),e);const Wc=Ci(null);const Kc=Co(Wc);function Yc(e){return Yc="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},Yc(e)}const Xc=function(e){return"object"===Yc(e)};const Qc=yi(1,$o(Kc,Xc));var Zc=Do(ki,ba("Object")),el=Do(Ji,Ci(Ji(Object))),tl=Va($o(gc,el),["constructor"]);const rl=yi(1,(function(e){if(!Qc(e)||!Zc(e))return!1;var t=Object.getPrototypeOf(e);return!!Wc(t)||tl(t)}));class nl extends Ys.lS{constructor(){super(),this.register("annotation",Qs),this.register("comment",ei),this.register("parseResult",hc),this.register("sourceMap",mc)}}const sl=new nl,il=e=>{const t=new nl;return rl(e)&&t.use(e),t},ol=sl;function al(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 cl=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?al(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):al(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s),namespace:ol});var ll=r(628);function ul(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],ll(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],ll(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var pl=r(3992);const hl=yi(1,Do(ki,ba("String")));var fl,ml=r(538);const dl=null!==(fl=globalThis.AggregateError)&&void 0!==fl?fl:ml;const yl=class extends dl{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,rl(r)&&ya("cause",r)&&!ya("cause",this)){const{cause:e}=r;this.cause=e,e instanceof Error&&ya("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}};class gl extends Error{static[Symbol.hasInstance](e){return Function.prototype[Symbol.hasInstance].call(gl,e)||Function.prototype[Symbol.hasInstance].call(yl,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,rl(t)&&ya("cause",t)&&!ya("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&ya("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const vl=gl,bl=(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},Ol={},jl=e=>null==e?void 0:e.type,xl=e=>"string"==typeof jl(e),wl=(e,{visitFnGetter:t=bl,nodeTypeGetter:r=jl}={})=>{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===Ol)n[o]=Ol;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===Ol)n[o]=Ol;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}},El=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Ol,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=bl,nodeTypeGetter:c=jl,nodePredicate:l=xl,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 x=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),j=f,f=b.pop(),x){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 w;if(!Array.isArray(j)){if(!l(j))throw new vl(`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(w=i.call(t,j,r,f,v,b),w===s)break;if(w===o){if(!e){v.pop();continue}}else if(void 0!==w&&(g.push([r,w]),!e)){if(!l(w)){v.pop();continue}j=w}}}void 0===w&&x&&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};El[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Ol,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=bl,nodeTypeGetter:c=jl,nodePredicate:l=xl,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 x=e&&0!==g.length;if(e){if(r=0===b.length?void 0:v.pop(),j=f,f=b.pop(),x){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 w;if(!Array.isArray(j)){if(!l(j))throw new vl(`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(w=await i.call(t,j,r,f,v,b),w===s)break;if(w===o){if(!e){v.pop();continue}}else if(void 0!==w&&(g.push([r,w]),!e)){if(!l(w)){v.pop();continue}j=w}}}void 0===w&&x&&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 Sl=["keyMap"],Pl=["keyMap"];function Al(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?Al(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const $l=e=>Fc(e)?"ObjectElement":Dc(e)?"ArrayElement":Nc(e)?"MemberElement":Cc(e)?"StringElement":Rc(e)?"BooleanElement":Mc(e)?"NumberElement":Ic(e)?"NullElement":_c(e)?"LinkElement":qc(e)?"RefElement":void 0,Tl=Do($l,hl),Cl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},Ml=pl({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}}}),Il=(e,t,r={})=>{let{keyMap:n=Cl}=r,s=ul(r,Sl);return El(e,t,kl({keyMap:n,nodeTypeGetter:$l,nodePredicate:Tl},s))};Il[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{let{keyMap:n=Cl}=r,s=ul(r,Pl);return El[Symbol.for("nodejs.util.promisify.custom")](e,t,kl({keyMap:n,nodeTypeGetter:$l,nodePredicate:Tl},s))};const Rl=(e,t,r={})=>{if(0===t.length)return e;const n=za(cl,"toolboxCreator",r),s=za({},"visitorOptions",r),i=za($l,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=wl(a.map(za({},"visitor")),{nodeTypeGetter:i});a.forEach(xc(["pre"],[]));const l=Il(e,c,s);return a.forEach(xc(["post"],[])),l};function Fl(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 Dl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Nl=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Rl(n,r,{toolboxCreator:cl,visitorOptions:{nodeTypeGetter:$l}})},_l=e=>(t,r={})=>Nl(t,Dl(Dl({},r),{},{Type:e}));Ys.Sb.refract=_l(Ys.Sb),Ys.ON.refract=_l(Ys.ON),Ys.RP.refract=_l(Ys.RP),Ys.hh.refract=_l(Ys.hh),Ys.zr.refract=_l(Ys.zr),Ys.VL.refract=_l(Ys.VL),Ys.EA.refract=_l(Ys.EA),Ys.tK.refract=_l(Ys.tK),Qs.refract=_l(Qs),ei.refract=_l(ei),hc.refract=_l(hc),mc.refract=_l(mc);const ql=(e,t=new WeakMap)=>(Nc(e)?(t.set(e.key,e),ql(e.key,t),t.set(e.value,e),ql(e.value,t)):e.children.forEach((r=>{t.set(r,e),ql(r,t)})),t),Ll=pl.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:ql(e);const i=t.get(r);return uc(i)?void 0:(Fc(i)?((e,t,r)=>{const n=r.get(e);Fc(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(r,n,t):Dc(i)?((e,t,r)=>{const n=r.get(e);Dc(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(r,n,t):Nc(i)&&((e,t,r)=>{const n=r.get(e);Nc(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)}})),Vl=Ll,Bl=["keyMap"],Ul=["keyMap"];function zl(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?zl(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Hl=e=>"string"==typeof(null==e?void 0:e.type)?e.type:$l(e),Gl=Jl({EphemeralObject:["content"],EphemeralArray:["content"]},Cl),Wl=(e,t,r={})=>{let{keyMap:n=Gl}=r,s=ul(r,Bl);return Il(e,t,Jl({keyMap:n,nodeTypeGetter:Hl,nodePredicate:ri,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},s))};Wl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t={})=>{let{keyMap:r=Gl}=t,n=ul(t,Ul);return Il[Symbol.for("nodejs.util.promisify.custom")](e,visitor,Jl({keyMap:r,nodeTypeGetter:Hl,nodePredicate:ri,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},n))};const Kl=class{constructor(e){E(this,"type","EphemeralArray"),E(this,"content",[]),E(this,"reference",void 0),this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Yl=class{constructor(e){E(this,"type","EphemeralObject"),E(this,"content",[]),E(this,"reference",void 0),this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},Xl=pl.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 Yl(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 Kl(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:e=>e.toArray()}})),Ql=(e,t=ol)=>{if(hl(e))try{return t.fromRefract(JSON.parse(e))}catch{}return rl(e)&&da("element",e)?t.fromRefract(e):t.toElement(e)},Zl=e=>Wl(e,Xl()),eu=Do(Xa(/~/g,"~0"),Xa(/\//g,"~1"),encodeURIComponent);const tu=class extends vl{constructor(e,t){super(e,t),void 0!==t&&Object.assign(this,Na(["cause"],t))}};const ru=class extends tu{};const nu=class extends ru{constructor(e,t){super(e,t),E(this,"tokens",void 0),void 0!==t&&(this.tokens=[...t.tokens])}},su=e=>{try{return 0===e.length?"":`/${e.map(eu).join("/")}`}catch(t){throw new nu("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var iu=$o(yi(1,Do(ki,ba("Number"))),isFinite);var ou=yi(1,iu);var au=$o(gc(Number.isFinite)?yi(1,io(Number.isFinite,Number)):ou,_o(Ci,[Math.floor,ja]));var cu=yi(1,au);const lu=gc(Number.isInteger)?yi(1,io(Number.isInteger,Number)):cu;const uu=Ci("");var pu=Ho((function(e,t){return Do(ec(""),aa(wc(e)),Aa(""))(t)}));const hu=pu,fu=Do(Xa(/~1/g,"/"),Xa(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const mu=class extends ru{constructor(e,t){super(e,t),E(this,"pointer",void 0),void 0!==t&&(this.pointer=t.pointer)}},du=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return hu("#",t)},yu=e=>{if(uu(e))return[];if(!tc("/",e))throw new mu(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Do(ec("/"),Wi(fu))(e);return Fo(t)}catch(t){throw new mu(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const gu=class extends ru{constructor(e,t){super(e,t),E(this,"pointer",void 0),E(this,"tokens",void 0),E(this,"failedToken",void 0),E(this,"failedTokenPosition",void 0),E(this,"element",void 0),E(this,"elementSourceMap",void 0),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,Jc(t.element)&&(this.elementSourceMap=Zl(t.element.getMetaProperty("sourceMap"))))}},vu=(e,t)=>{let r;try{r=yu(e)}catch(r){throw new gu(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:t,cause:r})}return r.reduce(((t,n,s)=>{if(Fc(t)){if(!t.hasKey(n))throw new gu(`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(Dc(t)){if(!(n in t.content)||!lu(Number(n)))throw new gu(`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 gu(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:t})}),t)};class bu extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ou=bu;class ju 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 xu=ju;class wu 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 Eu=wu;class Su 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 Pu=Su;class Au 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 ku=Au;class $u 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 Tu=$u;class Cu 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 Mu=Cu;class Iu 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(Iu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ru=Iu;class Fu 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 Du=Fu;class Nu 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 _u=Nu;class qu 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 Cc(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Cc(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 Lu=qu;class Vu 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 Bu=Vu;class Uu 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 zu=Uu;class Ju 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 Hu=Ju;class Gu extends Ys.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Wu=Gu;class Ku 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 Yu=Ku;class Xu 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 Qu=Xu;class Zu 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(Zu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ep=Zu;class tp 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 rp=tp;class np extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const sp=np;class ip 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 op=ip;class ap 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 cp=ap;class lp 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 up=lp;class pp 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 hp=pp;class fp 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 mp=fp;class dp 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 yp=dp;class gp 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 vp=gp;class bp 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 Op=bp,jp=(e,t)=>{const r=Go(e,t);return Ma((e=>{if(rl(e)&&da("$ref",e)&&Ja(hl,"$ref",e)){const t=Ca(["$ref"],e),n=hu("#/",t);return Ca(n.split("/"),r)}return rl(e)?jp(e,r):e}),e)},xp=pl({props:{element:null},methods:{copyMetaAndAttributes(e,t){Jc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),wp=xp,Ep=pl(wp,{methods:{enter(e){return this.element=e.clone(),Ol}}});const Sp=fo(lc());function Pp(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 Ap=e=>{if(Tc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},kp=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pp(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},Cl);function $p(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 Tp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Cp=pl(wp,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Ba(this.passingOptionsNames,this)},retrieveFixedFields(e){return Do(Ca(["visitors",...e,"fixedFields"]),Ai)(this.specObj)},retrieveVisitor(e){return Va(gc,["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)(Tp(Tp({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return uc(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(Il(t,n,Tp({keyMap:kp,nodeTypeGetter:Ap},r)),n.element)}}}),Mp=pl(Cp,{props:{specPath:Sp,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(Cc(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),Ol}}}),Ip=Mp,Rp=pl(Ip,Ep,{props:{specPath:fo(["document","objects","JSONSchema"])},init(){this.element=new mp}}),Fp=Ep,Dp=Ep,Np=Ep,_p=Ep,qp=Ep,Lp=Ep,Vp=Ep,Bp=Ep,Up=Ep,zp=Ep,Jp=pl({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Hp=e=>Fc(e)&&e.hasKey("$ref"),Gp=pl(Cp,Jp,Ep,{methods:{ObjectElement(e){const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Ol},ArrayElement(e){return this.element=new Ys.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}}),Wp=Ep,Kp=Ep,Yp=Ep,Xp=Ep,Qp=Ep,Zp=pl(Ep,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),Ol}}});const eh=Co(yi(1,$o(Kc,la(Xc,gc))));const th=Co(Pa);const rh=ho([hl,eh,th]),nh=pl(Cp,{props:{fieldPatternPredicate:ti,specPath:Sp,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),Ol}}}),sh=pl(nh,{props:{fieldPatternPredicate:rh}}),ih=pl(sh,Jp,Ep,{props:{specPath:e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-properties")}}),oh=pl(sh,Jp,Ep,{props:{specPath:e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-patternProperties")}}),ah=pl(sh,Jp,Ep,{props:{specPath:e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-dependencies")}}),ch=pl(Ep,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),Ol}}}),lh=pl(Ep,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Ol},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Ol}}}),uh=pl(Cp,Jp,Ep,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}}),ph=pl(Cp,Jp,Ep,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}}),hh=pl(Cp,Jp,Ep,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}}),fh=pl(sh,Jp,Ep,{props:{specPath:e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-definitions")}}),mh=Ep,dh=Ep,yh=Ep,gh=Ep,vh=Ep,bh=pl(Cp,Jp,Ep,{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),Ol}}}),Oh=Ep,jh=pl(Ip,Ep,{props:{specPath:fo(["document","objects","JSONReference"])},init(){this.element=new yp},methods:{ObjectElement(e){const t=Ip.compose.methods.ObjectElement.call(this,e);return Cc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),xh=pl(Ep,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Ol}}});const wh=Co(wo);const Eh=$o(bc,th);function Sh(e){return function(e){if(Array.isArray(e))return Ph(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 Ph(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 Ph(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 Ph(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 Ah=Do(Za(To((function(e,t){return e.length>t.length}))),ga,Qi("length")),kh=Ho((function(e,t,r){var n=r.apply(void 0,Sh(e));return wh(n)?Ka(n):t}));const $h=xa(Eh,(function(e){var t=Ah(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(kh(r),void 0,e)}))}),lc),Th=pl(Cp,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>xa(e,fo(t),lc))),r=$h(t)(e);return this.element=this.toRefractedElement(r,e),Ol}}}),Ch=pl(Th,{props:{alternator:[{predicate:Hp,specPath:["document","objects","JSONReference"]},{predicate:ri,specPath:["document","objects","JSONSchema"]}]}}),Mh={visitors:{value:Ep,JSONSchemaOrJSONReferenceVisitor:Ch,document:{objects:{JSONSchema:{$visitor:Rp,fixedFields:{id:Fp,$schema:Dp,multipleOf:Np,maximum:_p,exclusiveMaximum:qp,minimum:Lp,exclusiveMinimum:Vp,maxLength:Bp,minLength:Up,pattern:zp,additionalItems:Ch,items:Gp,maxItems:Wp,minItems:Kp,uniqueItems:Yp,maxProperties:Xp,minProperties:Qp,required:Zp,properties:ih,additionalProperties:Ch,patternProperties:oh,dependencies:ah,enum:ch,type:lh,allOf:uh,anyOf:ph,oneOf:hh,not:Ch,definitions:fh,title:mh,description:dh,default:yh,format:gh,base:vh,links:bh,media:{$ref:"#/visitors/document/objects/Media"},readOnly:Oh}},JSONReference:{$visitor:jh,fixedFields:{$ref:xh}},Media:{$visitor:pl(Ip,Ep,{props:{specPath:fo(["document","objects","Media"])},init(){this.element=new vp}}),fixedFields:{binaryEncoding:Ep,type:Ep}},LinkDescription:{$visitor:pl(Ip,Ep,{props:{specPath:fo(["document","objects","LinkDescription"])},init(){this.element=new Op}}),fixedFields:{href:Ep,rel:Ep,title:Ep,targetSchema:Ch,mediaType:Ep,method:Ep,encType:Ep,schema:Ch}}}}}},Ih=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mp||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Rh=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yp||e(n)&&t("JSONReference",n)&&r("object",n))),Fh=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vp||e(n)&&t("media",n)&&r("object",n))),Dh=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Op||e(n)&&t("linkDescription",n)&&r("object",n))),Nh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",mp),t.register("jSONReference",yp),t.register("media",vp),t.register("linkDescription",Op),t}};function _h(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 qh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_h(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Lh=()=>{const e=il(Nh);return{predicates:qh(qh({},i),{},{isStringElement:Cc}),namespace:e}};function Vh(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 Bh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Mh}={})=>{const s=(0,Ys.Qc)(e),i=jp(n),o=xc(t,[],i);return Il(s,o,{state:{specObj:i}}),Rl(o.element,r,{toolboxCreator:Lh,visitorOptions:{keyMap:kp,nodeTypeGetter:Ap}})},Uh=e=>(t,r={})=>Bh(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));mp.refract=Uh(["visitors","document","objects","JSONSchema","$visitor"]),yp.refract=Uh(["visitors","document","objects","JSONReference","$visitor"]),vp.refract=Uh(["visitors","document","objects","Media","$visitor"]),Op.refract=Uh(["visitors","document","objects","LinkDescription","$visitor"]);const zh=class extends mp{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 Jh extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Hh=Jh;class Gh 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 Wh=Gh;class Kh 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 Yh=Kh;class Xh 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 Qh=Xh;class Zh 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 ef=Zh;class tf 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 rf=tf,nf=pl({props:{element:null},methods:{copyMetaAndAttributes(e,t){Jc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),sf=nf;function of(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 af=e=>{if(Tc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},cf=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?of(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):of(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"]},Cl);function lf(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 uf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const pf=pl(sf,{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 Ba(this.passingOptionsNames,this)},retrieveFixedFields(e){return Do(Ca(["visitors",...e,"fixedFields"]),Ai)(this.specObj)},retrieveVisitor(e){return Va(gc,["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)(uf(uf({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return uc(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(Il(t,n,uf({keyMap:cf,nodeTypeGetter:af},r)),n.element)}}}),hf=e=>Fc(e)&&e.hasKey("openapi")&&e.hasKey("info"),ff=e=>Fc(e)&&e.hasKey("name")&&e.hasKey("in"),mf=e=>Fc(e)&&e.hasKey("$ref"),df=e=>Fc(e)&&e.hasKey("content"),yf=e=>Fc(e)&&e.hasKey("description"),gf=Fc,vf=Fc,bf=e=>Cc(e.key)&&tc("x-",e.key.toValue()),Of=pl(pf,{props:{specPath:Sp,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:bf},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(Cc(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),Ol}}}),jf=Of,xf=pl(sf,{methods:{enter(e){return this.element=e.clone(),Ol}}}),wf=pl(jf,xf,{props:{specPath:fo(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Yu},methods:{ObjectElement(e){return this.unrefractedElement=e,jf.compose.methods.ObjectElement.call(this,e)}}}),Ef=pl(pf,xf,{methods:{StringElement(e){const t=new Wu(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,Ol}}}),Sf=pl(pf,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),Ol}}}),Pf=pl(jf,xf,{props:{specPath:fo(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Du}}),Af=xf,kf=xf,$f=xf,Tf=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),Ol}}}),Cf=pl(jf,xf,{props:{specPath:fo(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Eu}}),Mf=xf,If=xf,Rf=xf,Ff=pl(jf,xf,{props:{specPath:fo(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new _u}}),Df=xf,Nf=xf,_f=pl(jf,xf,{props:{specPath:fo(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Lu},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return(Cc(this.element.operationId)||Cc(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),qf=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Ol}}}),Lf=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Ol}}}),Vf=pl(pf,{props:{fieldPatternPredicate:ti,specPath:Sp,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:bf},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),Ol}}}),Bf=Vf,Uf=pl(Bf,{props:{fieldPatternPredicate:rh}});class zf extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(zf.primaryClass)}}E(zf,"primaryClass","link-parameters");const Jf=zf,Hf=pl(Uf,xf,{props:{specPath:fo(["value"])},init(){this.element=new Jf}}),Gf=xf,Wf=xf,Kf=pl(jf,xf,{props:{specPath:fo(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Yh}}),Yf=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),Ol}}}),Xf=xf;class Qf extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Qf.primaryClass)}}E(Qf,"primaryClass","servers");const Zf=Qf,em=pl(pf,xf,{init(){this.element=new Zf},methods:{ArrayElement(e){return e.forEach((e=>{const t=gf(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}}),tm=pl(jf,xf,{props:{specPath:fo(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qh}}),rm=xf,nm=xf,sm=xf;class im extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(im.primaryClass)}}E(im,"primaryClass","server-variables");const om=im,am=pl(Uf,xf,{props:{specPath:fo(["document","objects","ServerVariable"])},init(){this.element=new om}}),cm=pl(jf,xf,{props:{specPath:fo(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bu}}),lm=pl(pf,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>xa(e,fo(t),lc))),r=$h(t)(e);return this.element=this.toRefractedElement(r,e),Ol}}}),um=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ou||e(n)&&t("callback",n)&&r("object",n))),pm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xu||e(n)&&t("components",n)&&r("object",n))),hm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Eu||e(n)&&t("contact",n)&&r("object",n))),fm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tu||e(n)&&t("example",n)&&r("object",n))),mm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mu||e(n)&&t("externalDocumentation",n)&&r("object",n))),dm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ru||e(n)&&t("header",n)&&r("object",n))),ym=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Du||e(n)&&t("info",n)&&r("object",n))),gm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _u||e(n)&&t("license",n)&&r("object",n))),vm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lu||e(n)&&t("link",n)&&r("object",n))),bm=e=>{if(!vm(e))return!1;if(!Cc(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Om=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wu||e(n)&&t("openapi",n)&&r("string",n))),jm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Yu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),xm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qu||e(n)&&t("operation",n)&&r("object",n))),wm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ep||e(n)&&t("parameter",n)&&r("object",n))),Em=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rp||e(n)&&t("pathItem",n)&&r("object",n))),Sm=e=>{if(!Em(e))return!1;if(!Cc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Pm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sp||e(n)&&t("paths",n)&&r("object",n))),Am=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof op||e(n)&&t("reference",n)&&r("object",n))),km=e=>{if(!Am(e))return!1;if(!Cc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},$m=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cp||e(n)&&t("requestBody",n)&&r("object",n))),Tm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof up||e(n)&&t("response",n)&&r("object",n))),Cm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hp||e(n)&&t("responses",n)&&r("object",n))),Mm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zh||e(n)&&t("schema",n)&&r("object",n))),Im=e=>Rc(e)&&e.classes.includes("boolean-json-schema"),Rm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hh||e(n)&&t("securityRequirement",n)&&r("object",n))),Fm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yh||e(n)&&t("server",n)&&r("object",n))),Dm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qh||e(n)&&t("serverVariable",n)&&r("object",n))),Nm=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bu||e(n)&&t("mediaType",n)&&r("object",n))),_m=pl(lm,xf,{props:{alternator:[{predicate:mf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=lm.compose.methods.enter.call(this,e);return Am(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),qm=xf,Lm=pl(Uf,xf,{props:{specPath:e=>mf(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=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Vm extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vm.primaryClass),this.classes.push("examples")}}E(Vm,"primaryClass","media-type-examples");const Bm=Vm,Um=pl(Lm,{init(){this.element=new Bm}});class zm extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(zm.primaryClass)}}E(zm,"primaryClass","media-type-encoding");const Jm=zm,Hm=pl(Uf,xf,{props:{specPath:fo(["document","objects","Encoding"])},init(){this.element=new Jm}}),Gm=pl(Uf,xf,{props:{specPath:fo(["value"])},init(){this.element=new Hh}});class Wm extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Wm.primaryClass)}}E(Wm,"primaryClass","security");const Km=Wm,Ym=pl(pf,xf,{init(){this.element=new Km},methods:{ArrayElement(e){return e.forEach((e=>{if(Fc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),Ol}}}),Xm=pl(jf,xf,{props:{specPath:fo(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new xu}}),Qm=pl(jf,xf,{props:{specPath:fo(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new ef}}),Zm=xf,ed=xf,td=pl(jf,xf,{props:{specPath:fo(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new op},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return Cc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),rd=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Ol}}}),nd=pl(jf,xf,{props:{specPath:fo(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new ep},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return Fc(this.element.contentProp)&&this.element.contentProp.filter(Nm).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),sd=xf,id=xf,od=xf,ad=xf,cd=xf,ld=xf,ud=xf,pd=xf,hd=xf,fd=pl(lm,xf,{props:{alternator:[{predicate:mf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=lm.compose.methods.enter.call(this,e);return Am(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),md=pl(jf,xf,{props:{specPath:fo(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ru}}),dd=xf,yd=xf,gd=xf,vd=xf,bd=xf,Od=xf,jd=xf,xd=pl(lm,xf,{props:{alternator:[{predicate:mf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=lm.compose.methods.enter.call(this,e);return Am(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),wd=xf;class Ed extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ed.primaryClass),this.classes.push("examples")}}E(Ed,"primaryClass","header-examples");const Sd=Ed,Pd=pl(Lm,{init(){this.element=new Sd}}),Ad=pl(Uf,xf,{props:{specPath:fo(["document","objects","MediaType"])},init(){this.element=new Ys.Sb,this.element.classes.push("content")}});class kd extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(kd.primaryClass),this.classes.push("content")}}E(kd,"primaryClass","header-content");const $d=kd,Td=pl(Ad,{init(){this.element=new $d}}),Cd=pl(jf,xf,{props:{specPath:fo(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new zh}}),{allOf:Md}=Mh.visitors.document.objects.JSONSchema.fixedFields,Id=pl(Md,{methods:{ArrayElement(e){const t=Md.compose.methods.ArrayElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Rd}=Mh.visitors.document.objects.JSONSchema.fixedFields,Fd=pl(Rd,{methods:{ArrayElement(e){const t=Rd.compose.methods.ArrayElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Dd}=Mh.visitors.document.objects.JSONSchema.fixedFields,Nd=pl(Dd,{methods:{ArrayElement(e){const t=Dd.compose.methods.ArrayElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:_d}=Mh.visitors.document.objects.JSONSchema.fixedFields,qd=pl(_d,{methods:{ObjectElement(e){const t=_d.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:Ld}=Mh.visitors.document.objects.JSONSchema.fixedFields,Vd=pl(Ld,{methods:{ObjectElement(e){const t=Ld.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Bd}=Mh.visitors.document.objects.JSONSchema.fixedFields,Ud=pl(Bd,{methods:{ObjectElement(e){const t=Bd.compose.methods.ObjectElement.call(this,e);return Am(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),Ol}}}),{properties:zd}=Mh.visitors.document.objects.JSONSchema.fixedFields,Jd=pl(zd,{methods:{ObjectElement(e){const t=zd.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:Hd}=Mh.visitors.document.objects.JSONSchema.fixedFields,Gd=pl(Hd,{methods:{ObjectElement(e){const t=Hd.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Wd}=Mh.visitors.document.objects.JSONSchema.fixedFields,Kd=pl(Wd,{methods:{ArrayElement(e){return this.element=e.clone(),Ol}}}),Yd=xf,Xd=xf,Qd=xf,Zd=xf,{JSONSchemaOrJSONReferenceVisitor:ey}=Mh.visitors,ty=pl(ey,{methods:{ObjectElement(e){const t=ey.compose.methods.enter.call(this,e);return Am(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ry=Object.fromEntries(Object.entries(Mh.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Mh.visitors.JSONSchemaOrJSONReferenceVisitor?[e,ty]:[e,t]))),ny=pl(jf,xf,{props:{specPath:fo(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Pu}}),sy=xf;class iy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(iy.primaryClass)}}E(iy,"primaryClass","discriminator-mapping");const oy=iy,ay=pl(Uf,xf,{props:{specPath:fo(["value"])},init(){this.element=new oy}}),cy=pl(jf,xf,{props:{specPath:fo(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new rf}}),ly=xf,uy=xf,py=xf,hy=xf,fy=xf,my=xf;class dy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(dy.primaryClass),this.classes.push("examples")}}E(dy,"primaryClass","parameter-examples");const yy=dy,gy=pl(Lm,{init(){this.element=new yy}});class vy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(vy.primaryClass),this.classes.push("content")}}E(vy,"primaryClass","parameter-content");const by=vy,Oy=pl(Ad,{init(){this.element=new by}});class jy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(jy.primaryClass)}}E(jy,"primaryClass","components-schemas");const xy=jy,wy=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new xy},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class Ey extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ey.primaryClass)}}E(Ey,"primaryClass","components-responses");const Sy=Ey,Py=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Sy},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tm).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}}),Ay=Py;class ky extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ky.primaryClass),this.classes.push("parameters")}}E(ky,"primaryClass","components-parameters");const $y=ky,Ty=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new $y},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class Cy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Cy.primaryClass),this.classes.push("examples")}}E(Cy,"primaryClass","components-examples");const My=Cy,Iy=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new My},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Ry extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ry.primaryClass)}}E(Ry,"primaryClass","components-request-bodies");const Fy=Ry,Dy=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new Fy},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class Ny extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ny.primaryClass)}}E(Ny,"primaryClass","components-headers");const _y=Ny,qy=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new _y},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(dm).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Ly=qy;class Vy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vy.primaryClass)}}E(Vy,"primaryClass","components-security-schemes");const By=Vy,Uy=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new By},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class zy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(zy.primaryClass)}}E(zy,"primaryClass","components-links");const Jy=zy,Hy=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Jy},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Gy extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Gy.primaryClass)}}E(Gy,"primaryClass","components-callbacks");const Wy=Gy,Ky=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Wy},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Yy=pl(jf,xf,{props:{specPath:fo(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Tu},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return Cc(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Xy=xf,Qy=xf,Zy=xf,eg=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Ol}}}),tg=pl(jf,xf,{props:{specPath:fo(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mu}}),rg=xf,ng=xf,sg=pl(jf,xf,{props:{specPath:fo(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new ku},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return Fc(this.element.headers)&&this.element.headers.filter(dm).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),ig=xf;class og extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(og.primaryClass)}}E(og,"primaryClass","encoding-headers");const ag=og,cg=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new ag},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!dm(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),lg=cg,ug=xf,pg=xf,hg=xf,fg=pl(Bf,xf,{props:{fieldPatternPredicate:nc(/^\/(?<path>.*)$/),specPath:fo(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new sp},methods:{ObjectElement(e){const t=Bf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Em).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),mg=pl(jf,xf,{props:{specPath:fo(["document","objects","RequestBody"])},init(){this.element=new cp},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return Fc(this.element.contentProp)&&this.element.contentProp.filter(Nm).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),dg=xf;class yg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yg.primaryClass),this.classes.push("content")}}E(yg,"primaryClass","request-body-content");const gg=yg,vg=pl(Ad,{init(){this.element=new gg}}),bg=xf,Og=pl(Bf,xf,{props:{fieldPatternPredicate:nc(/{(?<expression>.*)}/),specPath:fo(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ou},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Em).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),jg=pl(jf,xf,{props:{specPath:fo(["document","objects","Response"])},init(){this.element=new up},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return Fc(this.element.contentProp)&&this.element.contentProp.filter(Nm).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),Fc(this.element.headers)&&this.element.headers.filter(dm).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),xg=xf;class wg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wg.primaryClass)}}E(wg,"primaryClass","response-headers");const Eg=wg,Sg=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Eg},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!dm(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}}),Pg=Sg;class Ag extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ag.primaryClass),this.classes.push("content")}}E(Ag,"primaryClass","response-content");const kg=Ag,$g=pl(Ad,{init(){this.element=new kg}});class Tg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Tg.primaryClass)}}E(Tg,"primaryClass","response-links");const Cg=Tg,Mg=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Cg},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),Ig=pl(jf,Bf,{props:{specPathFixedFields:Sp,specPathPatternedFields:Sp},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)],jf.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Bf.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Ol}}}),Rg=pl(Ig,xf,{props:{specPathFixedFields:fo(["document","objects","Responses"]),specPathPatternedFields:e=>mf(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:nc(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Wa(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new hp},methods:{ObjectElement(e){const t=Ig.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tm).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),Fg=Rg,Dg=pl(lm,xf,{props:{alternator:[{predicate:mf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=lm.compose.methods.enter.call(this,e);return Am(this.element)?this.element.setMetaProperty("referenced-element","response"):Tm(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),Ng=pl(jf,xf,{props:{specPath:fo(["document","objects","Operation"])},init(){this.element=new Qu}});class _g extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(_g.primaryClass)}}E(_g,"primaryClass","operation-tags");const qg=_g,Lg=pl(xf,{init(){this.element=new qg},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),Ol}}}),Vg=xf,Bg=xf,Ug=xf;class zg extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(zg.primaryClass),this.classes.push("parameters")}}E(zg,"primaryClass","operation-parameters");const Jg=zg,Hg=pl(pf,xf,{init(){this.element=new Ys.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=mf(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Am(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}}),Gg=pl(Hg,{init(){this.element=new Jg}}),Wg=pl(lm,{props:{alternator:[{predicate:mf,specPath:["document","objects","Reference"]},{predicate:ri,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=lm.compose.methods.enter.call(this,e);return Am(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Kg extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Kg.primaryClass)}}E(Kg,"primaryClass","operation-callbacks");const Yg=Kg,Xg=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Yg},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Am).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Qg=xf;class Zg extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Zg.primaryClass),this.classes.push("security")}}E(Zg,"primaryClass","operation-security");const ev=Zg,tv=pl(pf,xf,{init(){this.element=new ev},methods:{ArrayElement(e){return e.forEach((e=>{const t=Fc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}});class rv extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(rv.primaryClass),this.classes.push("servers")}}E(rv,"primaryClass","operation-servers");const nv=rv,sv=pl(em,{init(){this.element=new nv}}),iv=pl(jf,xf,{props:{specPath:fo(["document","objects","PathItem"])},init(){this.element=new rp},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return this.element.filter(xm).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Cc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),ov=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Ol}}}),av=xf,cv=xf;class lv extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(lv.primaryClass),this.classes.push("servers")}}E(lv,"primaryClass","path-item-servers");const uv=lv,pv=pl(em,{init(){this.element=new uv}});class hv extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(hv.primaryClass),this.classes.push("parameters")}}E(hv,"primaryClass","path-item-parameters");const fv=hv,mv=pl(Hg,{init(){this.element=new fv}}),dv=pl(jf,xf,{props:{specPath:fo(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wh}}),yv=xf,gv=xf,vv=xf,bv=xf,Ov=xf,jv=xf,xv=xf,wv=pl(jf,xf,{props:{specPath:fo(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Hu}}),Ev=pl(jf,xf,{props:{specPath:fo(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new zu}}),Sv=xf,Pv=xf,Av=xf;class kv extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(kv.primaryClass)}}E(kv,"primaryClass","oauth-flow-scopes");const $v=kv,Tv=pl(Uf,xf,{props:{specPath:fo(["value"])},init(){this.element=new $v}});class Cv extends Ys.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Cv.primaryClass)}}E(Cv,"primaryClass","tags");const Mv=Cv,Iv=pl(pf,xf,{init(){this.element=new Mv},methods:{ArrayElement(e){return e.forEach((e=>{const t=vf(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ol}}});function Rv(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 Fv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rv(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Dv={$visitor:td,fixedFields:{$ref:rd}},Nv={$visitor:Cd,fixedFields:Fv(Fv({},ry),{},{allOf:Id,anyOf:Fd,oneOf:Nd,definitions:qd,items:Ud,dependencies:Vd,properties:Jd,patternProperties:Gd,type:Kd,nullable:Yd,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Xd,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Qd,deprecated:Zd})},_v={visitors:{value:xf,document:{objects:{OpenApi:{$visitor:wf,fixedFields:{openapi:Ef,info:{$ref:"#/visitors/document/objects/Info"},servers:em,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Ym,tags:Iv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Pf,fixedFields:{title:Af,description:kf,termsOfService:$f,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Tf}},Contact:{$visitor:Cf,fixedFields:{name:Mf,url:If,email:Rf}},License:{$visitor:Ff,fixedFields:{name:Df,url:Nf}},Server:{$visitor:Kf,fixedFields:{url:Yf,description:Xf,variables:am}},ServerVariable:{$visitor:tm,fixedFields:{enum:rm,default:nm,description:sm}},Components:{$visitor:Xm,fixedFields:{schemas:wy,responses:Ay,parameters:Ty,examples:Iy,requestBodies:Dy,headers:Ly,securitySchemes:Uy,links:Hy,callbacks:Ky}},Paths:{$visitor:fg},PathItem:{$visitor:iv,fixedFields:{$ref:ov,summary:av,description:cv,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,parameters:mv}},Operation:{$visitor:Ng,fixedFields:{tags:Lg,summary:Vg,description:Bg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ug,parameters:Gg,requestBody:Wg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Xg,deprecated:Qg,security:tv,servers:sv}},ExternalDocumentation:{$visitor:tg,fixedFields:{description:rg,url:ng}},Parameter:{$visitor:nd,fixedFields:{name:sd,in:id,description:od,required:ad,deprecated:cd,allowEmptyValue:ld,style:ud,explode:pd,allowReserved:hd,schema:fd,example:my,examples:gy,content:Oy}},RequestBody:{$visitor:mg,fixedFields:{description:dg,content:vg,required:bg}},MediaType:{$visitor:cm,fixedFields:{schema:_m,example:qm,examples:Um,encoding:Hm}},Encoding:{$visitor:sg,fixedFields:{contentType:ig,headers:lg,style:ug,explode:pg,allowReserved:hg}},Responses:{$visitor:Fg,fixedFields:{default:Dg}},Response:{$visitor:jg,fixedFields:{description:xg,headers:Pg,content:$g,links:Mg}},Callback:{$visitor:Og},Example:{$visitor:Yy,fixedFields:{summary:Xy,description:Qy,value:Zy,externalValue:eg}},Link:{$visitor:_f,fixedFields:{operationRef:qf,operationId:Lf,parameters:Hf,requestBody:Gf,description:Wf,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:md,fixedFields:{description:dd,required:yd,deprecated:gd,allowEmptyValue:vd,style:bd,explode:Od,allowReserved:jd,schema:xd,example:wd,examples:Pd,content:Td}},Tag:{$visitor:Qm,fixedFields:{name:Zm,description:ed,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:Dv,Reference:Dv,JSONSchema:Nv,Schema:Nv,LinkDescription:Mh.visitors.document.objects.LinkDescription,Media:Mh.visitors.document.objects.Media,Discriminator:{$visitor:ny,fixedFields:{propertyName:sy,mapping:ay}},XML:{$visitor:cy,fixedFields:{name:ly,namespace:uy,prefix:py,attribute:hy,wrapped:fy}},SecurityScheme:{$visitor:dv,fixedFields:{type:yv,description:gv,name:vv,in:bv,scheme:Ov,bearerFormat:jv,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:xv}},OAuthFlows:{$visitor:wv,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:Ev,fixedFields:{authorizationUrl:Sv,tokenUrl:Pv,refreshUrl:Av,scopes:Tv}},SecurityRequirement:{$visitor:Gm}},extension:{$visitor:Sf}}}},qv={namespace:e=>{const{base:t}=e;return t.register("callback",Ou),t.register("components",xu),t.register("contact",Eu),t.register("discriminator",Pu),t.register("encoding",ku),t.register("example",Tu),t.register("externalDocumentation",Mu),t.register("header",Ru),t.register("info",Du),t.register("license",_u),t.register("link",Lu),t.register("mediaType",Bu),t.register("oAuthFlow",zu),t.register("oAuthFlows",Hu),t.register("openapi",Wu),t.register("openApi3_0",Yu),t.register("operation",Qu),t.register("parameter",ep),t.register("pathItem",rp),t.register("paths",sp),t.register("reference",op),t.register("requestBody",cp),t.register("response",up),t.register("responses",hp),t.register("schema",zh),t.register("securityRequirement",Hh),t.register("securityScheme",Wh),t.register("server",Yh),t.register("serverVariable",Qh),t.register("tag",ef),t.register("xml",rf),t}};function Lv(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 Vv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lv(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Bv=()=>{const e=il(qv);return{predicates:Vv(Vv(Vv({},o),a),{},{isStringElement:Cc}),namespace:e}};function Uv(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 zv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ys.Qc)(e),s=jp(_v),i=xc(t,[],s);return Il(n,i,{state:{specObj:s}}),Rl(i.element,r,{toolboxCreator:Bv,visitorOptions:{keyMap:cf,nodeTypeGetter:af}})},Jv=e=>(t,r={})=>zv(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uv(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));Ou.refract=Jv(["visitors","document","objects","Callback","$visitor"]),xu.refract=Jv(["visitors","document","objects","Components","$visitor"]),Eu.refract=Jv(["visitors","document","objects","Contact","$visitor"]),Tu.refract=Jv(["visitors","document","objects","Example","$visitor"]),Pu.refract=Jv(["visitors","document","objects","Discriminator","$visitor"]),ku.refract=Jv(["visitors","document","objects","Encoding","$visitor"]),Mu.refract=Jv(["visitors","document","objects","ExternalDocumentation","$visitor"]),Ru.refract=Jv(["visitors","document","objects","Header","$visitor"]),Du.refract=Jv(["visitors","document","objects","Info","$visitor"]),_u.refract=Jv(["visitors","document","objects","License","$visitor"]),Lu.refract=Jv(["visitors","document","objects","Link","$visitor"]),Bu.refract=Jv(["visitors","document","objects","MediaType","$visitor"]),zu.refract=Jv(["visitors","document","objects","OAuthFlow","$visitor"]),Hu.refract=Jv(["visitors","document","objects","OAuthFlows","$visitor"]),Wu.refract=Jv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Yu.refract=Jv(["visitors","document","objects","OpenApi","$visitor"]),Qu.refract=Jv(["visitors","document","objects","Operation","$visitor"]),ep.refract=Jv(["visitors","document","objects","Parameter","$visitor"]),rp.refract=Jv(["visitors","document","objects","PathItem","$visitor"]),sp.refract=Jv(["visitors","document","objects","Paths","$visitor"]),op.refract=Jv(["visitors","document","objects","Reference","$visitor"]),cp.refract=Jv(["visitors","document","objects","RequestBody","$visitor"]),up.refract=Jv(["visitors","document","objects","Response","$visitor"]),hp.refract=Jv(["visitors","document","objects","Responses","$visitor"]),zh.refract=Jv(["visitors","document","objects","Schema","$visitor"]),Hh.refract=Jv(["visitors","document","objects","SecurityRequirement","$visitor"]),Wh.refract=Jv(["visitors","document","objects","SecurityScheme","$visitor"]),Yh.refract=Jv(["visitors","document","objects","Server","$visitor"]),Qh.refract=Jv(["visitors","document","objects","ServerVariable","$visitor"]),ef.refract=Jv(["visitors","document","objects","Tag","$visitor"]),rf.refract=Jv(["visitors","document","objects","XML","$visitor"]);const Hv=class extends Ou{};const Gv=class extends xu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Wv=class extends Eu{};const Kv=class extends Pu{};const Yv=class extends ku{};const Xv=class extends Tu{};const Qv=class extends Mu{};const Zv=class extends Ru{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const eb=class extends Du{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 tb extends Ys.RP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}E(tb,"default",new tb("https://spec.openapis.org/oas/3.1/dialect/base"));const rb=tb;const nb=class extends _u{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const sb=class extends Lu{};const ib=class extends Bu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ob=class extends zu{};const ab=class extends Hu{};const cb=class extends Wu{};class lb 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 ub=lb;const pb=class extends Qu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const hb=class extends ep{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const fb=class extends rp{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 mb=class extends sp{};class db extends op{}Object.defineProperty(db.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(db.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const yb=db;const gb=class extends cp{};const vb=class extends up{};const bb=class extends hp{};class Ob 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 jb=Ob;const xb=class extends Hh{};const wb=class extends Wh{};const Eb=class extends Yh{};const Sb=class extends Qh{};const Pb=class extends ef{};const Ab=class extends rf{},kb=pl(jf,xf,{props:{specPath:fo(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new ub,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,jf.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:$b}}}}}=_v,Tb=pl($b,{init(){this.element=new eb}}),Cb=xf,{visitors:{document:{objects:{Contact:{$visitor:Mb}}}}}=_v,Ib=pl(Mb,{init(){this.element=new Wv}}),{visitors:{document:{objects:{License:{$visitor:Rb}}}}}=_v,Fb=pl(Rb,{init(){this.element=new nb}}),Db=xf,{visitors:{document:{objects:{Link:{$visitor:Nb}}}}}=_v,_b=pl(Nb,{init(){this.element=new sb}}),qb=pl(pf,xf,{methods:{StringElement(e){const t=new rb(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,Ol}}}),{visitors:{document:{objects:{Server:{$visitor:Lb}}}}}=_v,Vb=pl(Lb,{init(){this.element=new Eb}}),{visitors:{document:{objects:{ServerVariable:{$visitor:Bb}}}}}=_v,Ub=pl(Bb,{init(){this.element=new Sb}}),{visitors:{document:{objects:{MediaType:{$visitor:zb}}}}}=_v,Jb=pl(zb,{init(){this.element=new ib}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:Hb}}}}}=_v,Gb=pl(Hb,{init(){this.element=new xb}}),{visitors:{document:{objects:{Components:{$visitor:Wb}}}}}=_v,Kb=pl(Wb,{init(){this.element=new Gv}}),{visitors:{document:{objects:{Tag:{$visitor:Yb}}}}}=_v,Xb=pl(Yb,{init(){this.element=new Pb}}),{visitors:{document:{objects:{Reference:{$visitor:Qb}}}}}=_v,Zb=pl(Qb,{init(){this.element=new yb}}),eO=xf,tO=xf,{visitors:{document:{objects:{Parameter:{$visitor:rO}}}}}=_v,nO=pl(rO,{init(){this.element=new hb}}),{visitors:{document:{objects:{Header:{$visitor:sO}}}}}=_v,iO=pl(sO,{init(){this.element=new Zv}}),oO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hv||e(n)&&t("callback",n)&&r("object",n))),aO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gv||e(n)&&t("components",n)&&r("object",n))),cO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wv||e(n)&&t("contact",n)&&r("object",n))),lO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xv||e(n)&&t("example",n)&&r("object",n))),uO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qv||e(n)&&t("externalDocumentation",n)&&r("object",n))),pO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zv||e(n)&&t("header",n)&&r("object",n))),hO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof eb||e(n)&&t("info",n)&&r("object",n))),fO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rb||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),mO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nb||e(n)&&t("license",n)&&r("object",n))),dO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sb||e(n)&&t("link",n)&&r("object",n))),yO=e=>{if(!dO(e))return!1;if(!Cc(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cb||e(n)&&t("openapi",n)&&r("string",n))),vO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof ub||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),bO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pb||e(n)&&t("operation",n)&&r("object",n))),OO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hb||e(n)&&t("parameter",n)&&r("object",n))),jO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fb||e(n)&&t("pathItem",n)&&r("object",n))),xO=e=>{if(!jO(e))return!1;if(!Cc(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},wO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mb||e(n)&&t("paths",n)&&r("object",n))),EO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yb||e(n)&&t("reference",n)&&r("object",n))),SO=e=>{if(!EO(e))return!1;if(!Cc(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 gb||e(n)&&t("requestBody",n)&&r("object",n))),AO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vb||e(n)&&t("response",n)&&r("object",n))),kO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bb||e(n)&&t("responses",n)&&r("object",n))),$O=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jb||e(n)&&t("schema",n)&&r("object",n))),TO=e=>Rc(e)&&e.classes.includes("boolean-json-schema"),CO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xb||e(n)&&t("securityRequirement",n)&&r("object",n))),MO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Eb||e(n)&&t("server",n)&&r("object",n))),IO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sb||e(n)&&t("serverVariable",n)&&r("object",n))),RO=$c((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ib||e(n)&&t("mediaType",n)&&r("object",n))),FO=pl({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),DO=pl(jf,FO,xf,{props:{specPath:fo(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&fO(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&Cc(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():rb.default.toValue(),e},t=t=>{if(Wc(this.parent)&&!Cc(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if($O(this.parent)&&!Cc(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();rh(n)&&r.push(n),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new jb,t(e),r(e),this.parent=this.element;const n=jf.compose.methods.ObjectElement.call(this,e);return Cc(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"),Ol}}}),NO=xf,_O=pl(xf,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),Ol}}}),qO=xf,LO=xf,VO=xf,BO=xf,UO=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),Ol}}}),zO=pl(Uf,FO,xf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-$defs")}}),JO=xf,HO=pl(pf,FO,xf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Fc(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),Ol}}}),GO=pl(pf,FO,xf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Fc(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),Ol}}}),WO=pl(pf,FO,xf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Fc(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),Ol}}}),KO=pl(Uf,FO,xf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),YO=pl(pf,FO,xf,{init(){this.element=new Ys.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(Fc(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),Ol}}}),XO=pl(Uf,FO,xf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-properties")}}),QO=pl(Uf,FO,xf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new Ys.Sb,this.element.classes.push("json-schema-patternProperties")}}),ZO=pl(xf,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Ol},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),Ol}}}),ej=pl(xf,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),Ol}}}),tj=xf,rj=xf,nj=xf,sj=xf,ij=xf,oj=xf,aj=xf,cj=xf,lj=xf,uj=xf,pj=xf,hj=xf,fj=xf,mj=xf,dj=xf,yj=xf,gj=pl(xf,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),Ol}}}),vj=pl(xf,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),Ol}}}),bj=xf,Oj=xf,jj=xf,xj=xf,wj=xf,Ej=xf,Sj=pl(xf,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),Ol}}}),Pj=xf,Aj=xf,kj=xf,$j=xf,{visitors:{document:{objects:{Discriminator:{$visitor:Tj}}}}}=_v,Cj=pl(Tj,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Kv}}),{visitors:{document:{objects:{XML:{$visitor:Mj}}}}}=_v,Ij=pl(Mj,{init(){this.element=new Ab}}),Rj=pl(Uf,xf,{props:{specPath:fo(["document","objects","Schema"])},init(){this.element=new xy}});class Fj extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Fj.primaryClass)}}E(Fj,"primaryClass","components-path-items");const Dj=Fj,Nj=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Dj},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(EO).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:_j}}}}}=_v,qj=pl(_j,{init(){this.element=new Xv}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Lj}}}}}=_v,Vj=pl(Lj,{init(){this.element=new Qv}}),{visitors:{document:{objects:{Encoding:{$visitor:Bj}}}}}=_v,Uj=pl(Bj,{init(){this.element=new Yv}}),{visitors:{document:{objects:{Paths:{$visitor:zj}}}}}=_v,Jj=pl(zj,{init(){this.element=new mb}}),{visitors:{document:{objects:{RequestBody:{$visitor:Hj}}}}}=_v,Gj=pl(Hj,{init(){this.element=new gb}}),{visitors:{document:{objects:{Callback:{$visitor:Wj}}}}}=_v,Kj=pl(Wj,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Hv},methods:{ObjectElement(e){const t=Wj.compose.methods.ObjectElement.call(this,e);return this.element.filter(EO).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:Yj}}}}}=_v,Xj=pl(Yj,{init(){this.element=new vb}}),{visitors:{document:{objects:{Responses:{$visitor:Qj}}}}}=_v,Zj=pl(Qj,{init(){this.element=new bb}}),{visitors:{document:{objects:{Operation:{$visitor:ex}}}}}=_v,tx=pl(ex,{init(){this.element=new pb}}),{visitors:{document:{objects:{PathItem:{$visitor:rx}}}}}=_v,nx=pl(rx,{init(){this.element=new fb}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:sx}}}}}=_v,ix=pl(sx,{init(){this.element=new wb}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:ox}}}}}=_v,ax=pl(ox,{init(){this.element=new ab}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:cx}}}}}=_v,lx=pl(cx,{init(){this.element=new ob}});class ux extends Ys.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ux.primaryClass)}}E(ux,"primaryClass","webhooks");const px=ux,hx=pl(Uf,xf,{props:{specPath:e=>mf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new px},methods:{ObjectElement(e){const t=Uf.compose.methods.ObjectElement.call(this,e);return this.element.filter(EO).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(jO).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),fx={visitors:{value:_v.visitors.value,document:{objects:{OpenApi:{$visitor:kb,fixedFields:{openapi:_v.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:qb,servers:_v.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:hx,components:{$ref:"#/visitors/document/objects/Components"},security:_v.visitors.document.objects.OpenApi.fixedFields.security,tags:_v.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Tb,fixedFields:{title:_v.visitors.document.objects.Info.fixedFields.title,description:_v.visitors.document.objects.Info.fixedFields.description,summary:Cb,termsOfService:_v.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:_v.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Ib,fixedFields:{name:_v.visitors.document.objects.Contact.fixedFields.name,url:_v.visitors.document.objects.Contact.fixedFields.url,email:_v.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Fb,fixedFields:{name:_v.visitors.document.objects.License.fixedFields.name,identifier:Db,url:_v.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Vb,fixedFields:{url:_v.visitors.document.objects.Server.fixedFields.url,description:_v.visitors.document.objects.Server.fixedFields.description,variables:_v.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Ub,fixedFields:{enum:_v.visitors.document.objects.ServerVariable.fixedFields.enum,default:_v.visitors.document.objects.ServerVariable.fixedFields.default,description:_v.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Kb,fixedFields:{schemas:Rj,responses:_v.visitors.document.objects.Components.fixedFields.responses,parameters:_v.visitors.document.objects.Components.fixedFields.parameters,examples:_v.visitors.document.objects.Components.fixedFields.examples,requestBodies:_v.visitors.document.objects.Components.fixedFields.requestBodies,headers:_v.visitors.document.objects.Components.fixedFields.headers,securitySchemes:_v.visitors.document.objects.Components.fixedFields.securitySchemes,links:_v.visitors.document.objects.Components.fixedFields.links,callbacks:_v.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Nj}},Paths:{$visitor:Jj},PathItem:{$visitor:nx,fixedFields:{$ref:_v.visitors.document.objects.PathItem.fixedFields.$ref,summary:_v.visitors.document.objects.PathItem.fixedFields.summary,description:_v.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:_v.visitors.document.objects.PathItem.fixedFields.servers,parameters:_v.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:tx,fixedFields:{tags:_v.visitors.document.objects.Operation.fixedFields.tags,summary:_v.visitors.document.objects.Operation.fixedFields.summary,description:_v.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:_v.visitors.document.objects.Operation.fixedFields.operationId,parameters:_v.visitors.document.objects.Operation.fixedFields.parameters,requestBody:_v.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:_v.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:_v.visitors.document.objects.Operation.fixedFields.deprecated,security:_v.visitors.document.objects.Operation.fixedFields.security,servers:_v.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Vj,fixedFields:{description:_v.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:_v.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:nO,fixedFields:{name:_v.visitors.document.objects.Parameter.fixedFields.name,in:_v.visitors.document.objects.Parameter.fixedFields.in,description:_v.visitors.document.objects.Parameter.fixedFields.description,required:_v.visitors.document.objects.Parameter.fixedFields.required,deprecated:_v.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:_v.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:_v.visitors.document.objects.Parameter.fixedFields.style,explode:_v.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:_v.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:_v.visitors.document.objects.Parameter.fixedFields.example,examples:_v.visitors.document.objects.Parameter.fixedFields.examples,content:_v.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Gj,fixedFields:{description:_v.visitors.document.objects.RequestBody.fixedFields.description,content:_v.visitors.document.objects.RequestBody.fixedFields.content,required:_v.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Jb,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:_v.visitors.document.objects.MediaType.fixedFields.example,examples:_v.visitors.document.objects.MediaType.fixedFields.examples,encoding:_v.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Uj,fixedFields:{contentType:_v.visitors.document.objects.Encoding.fixedFields.contentType,headers:_v.visitors.document.objects.Encoding.fixedFields.headers,style:_v.visitors.document.objects.Encoding.fixedFields.style,explode:_v.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:_v.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Zj,fixedFields:{default:_v.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Xj,fixedFields:{description:_v.visitors.document.objects.Response.fixedFields.description,headers:_v.visitors.document.objects.Response.fixedFields.headers,content:_v.visitors.document.objects.Response.fixedFields.content,links:_v.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Kj},Example:{$visitor:qj,fixedFields:{summary:_v.visitors.document.objects.Example.fixedFields.summary,description:_v.visitors.document.objects.Example.fixedFields.description,value:_v.visitors.document.objects.Example.fixedFields.value,externalValue:_v.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:_b,fixedFields:{operationRef:_v.visitors.document.objects.Link.fixedFields.operationRef,operationId:_v.visitors.document.objects.Link.fixedFields.operationId,parameters:_v.visitors.document.objects.Link.fixedFields.parameters,requestBody:_v.visitors.document.objects.Link.fixedFields.requestBody,description:_v.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:iO,fixedFields:{description:_v.visitors.document.objects.Header.fixedFields.description,required:_v.visitors.document.objects.Header.fixedFields.required,deprecated:_v.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:_v.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:_v.visitors.document.objects.Header.fixedFields.style,explode:_v.visitors.document.objects.Header.fixedFields.explode,allowReserved:_v.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:_v.visitors.document.objects.Header.fixedFields.example,examples:_v.visitors.document.objects.Header.fixedFields.examples,content:_v.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Xb,fixedFields:{name:_v.visitors.document.objects.Tag.fixedFields.name,description:_v.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Zb,fixedFields:{$ref:_v.visitors.document.objects.Reference.fixedFields.$ref,summary:eO,description:tO}},Schema:{$visitor:DO,fixedFields:{$schema:NO,$vocabulary:_O,$id:qO,$anchor:LO,$dynamicAnchor:VO,$dynamicRef:BO,$ref:UO,$defs:zO,$comment:JO,allOf:HO,anyOf:GO,oneOf:WO,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:KO,prefixItems:YO,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:XO,patternProperties:QO,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:ZO,enum:ej,const:tj,multipleOf:rj,maximum:nj,exclusiveMaximum:sj,minimum:ij,exclusiveMinimum:oj,maxLength:aj,minLength:cj,pattern:lj,maxItems:uj,minItems:pj,uniqueItems:hj,maxContains:fj,minContains:mj,maxProperties:dj,minProperties:yj,required:gj,dependentRequired:vj,title:bj,description:Oj,default:jj,deprecated:xj,readOnly:wj,writeOnly:Ej,examples:Sj,format:Pj,contentEncoding:Aj,contentMediaType:kj,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:$j}},Discriminator:{$visitor:Cj,fixedFields:{propertyName:_v.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:_v.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Ij,fixedFields:{name:_v.visitors.document.objects.XML.fixedFields.name,namespace:_v.visitors.document.objects.XML.fixedFields.namespace,prefix:_v.visitors.document.objects.XML.fixedFields.prefix,attribute:_v.visitors.document.objects.XML.fixedFields.attribute,wrapped:_v.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:ix,fixedFields:{type:_v.visitors.document.objects.SecurityScheme.fixedFields.type,description:_v.visitors.document.objects.SecurityScheme.fixedFields.description,name:_v.visitors.document.objects.SecurityScheme.fixedFields.name,in:_v.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:_v.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:_v.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:_v.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:ax,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:lx,fixedFields:{authorizationUrl:_v.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:_v.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:_v.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:_v.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Gb}},extension:{$visitor:_v.visitors.document.extension.$visitor}}}};function mx(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 dx=e=>{if(Tc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},yx=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mx(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mx(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"]},Cl),gx={namespace:e=>{const{base:t}=e;return t.register("callback",Hv),t.register("components",Gv),t.register("contact",Wv),t.register("discriminator",Kv),t.register("encoding",Yv),t.register("example",Xv),t.register("externalDocumentation",Qv),t.register("header",Zv),t.register("info",eb),t.register("jsonSchemaDialect",rb),t.register("license",nb),t.register("link",sb),t.register("mediaType",ib),t.register("oAuthFlow",ob),t.register("oAuthFlows",ab),t.register("openapi",cb),t.register("openApi3_1",ub),t.register("operation",pb),t.register("parameter",hb),t.register("pathItem",fb),t.register("paths",mb),t.register("reference",yb),t.register("requestBody",gb),t.register("response",vb),t.register("responses",bb),t.register("schema",jb),t.register("securityRequirement",xb),t.register("securityScheme",wb),t.register("server",Eb),t.register("serverVariable",Sb),t.register("tag",Pb),t.register("xml",Ab),t}};function vx(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 bx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vx(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ox=()=>{const e=il(gx);return{predicates:bx(bx({},c),{},{isStringElement:Cc,isArrayElement:Dc,isObjectElement:Fc,includesClasses:Gc}),namespace:e}};function jx(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 xx=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Ys.Qc)(e),s=jp(fx),i=xc(t,[],s);return Il(n,i,{state:{specObj:s}}),Rl(i.element,r,{toolboxCreator:Ox,visitorOptions:{keyMap:yx,nodeTypeGetter:dx}})},wx=e=>(t,r={})=>xx(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jx(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));Hv.refract=wx(["visitors","document","objects","Callback","$visitor"]),Gv.refract=wx(["visitors","document","objects","Components","$visitor"]),Wv.refract=wx(["visitors","document","objects","Contact","$visitor"]),Xv.refract=wx(["visitors","document","objects","Example","$visitor"]),Kv.refract=wx(["visitors","document","objects","Discriminator","$visitor"]),Yv.refract=wx(["visitors","document","objects","Encoding","$visitor"]),Qv.refract=wx(["visitors","document","objects","ExternalDocumentation","$visitor"]),Zv.refract=wx(["visitors","document","objects","Header","$visitor"]),eb.refract=wx(["visitors","document","objects","Info","$visitor"]),rb.refract=wx(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),nb.refract=wx(["visitors","document","objects","License","$visitor"]),sb.refract=wx(["visitors","document","objects","Link","$visitor"]),ib.refract=wx(["visitors","document","objects","MediaType","$visitor"]),ob.refract=wx(["visitors","document","objects","OAuthFlow","$visitor"]),ab.refract=wx(["visitors","document","objects","OAuthFlows","$visitor"]),cb.refract=wx(["visitors","document","objects","OpenApi","fixedFields","openapi"]),ub.refract=wx(["visitors","document","objects","OpenApi","$visitor"]),pb.refract=wx(["visitors","document","objects","Operation","$visitor"]),hb.refract=wx(["visitors","document","objects","Parameter","$visitor"]),fb.refract=wx(["visitors","document","objects","PathItem","$visitor"]),mb.refract=wx(["visitors","document","objects","Paths","$visitor"]),yb.refract=wx(["visitors","document","objects","Reference","$visitor"]),gb.refract=wx(["visitors","document","objects","RequestBody","$visitor"]),vb.refract=wx(["visitors","document","objects","Response","$visitor"]),bb.refract=wx(["visitors","document","objects","Responses","$visitor"]),jb.refract=wx(["visitors","document","objects","Schema","$visitor"]),xb.refract=wx(["visitors","document","objects","SecurityRequirement","$visitor"]),wb.refract=wx(["visitors","document","objects","SecurityScheme","$visitor"]),Eb.refract=wx(["visitors","document","objects","Server","$visitor"]),Sb.refract=wx(["visitors","document","objects","ServerVariable","$visitor"]),Pb.refract=wx(["visitors","document","objects","Tag","$visitor"]),Ab.refract=wx(["visitors","document","objects","XML","$visitor"]);const Ex=class extends vl{};const Sx=class extends Ex{};const Px=class extends Array{constructor(...e){super(...e),E(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Sx('"filterByFormat" method is not implemented.')}findBy(){throw new Sx('"findBy" method is not implemented.')}latest(){throw new Sx('"latest" method is not implemented.')}};class Ax extends Px{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 ka(this.filterByFormat(e))}}const kx=new Ax("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 $x=r(4155),Tx=Ho((function(e,t){return Do(ec(""),sa(wc(e)),Aa(""))(t)}));const Cx=Tx;const Mx=Co(uc);const Ix=yi(1,Do(ki,ba("RegExp")));const Rx=cc(hl,Xa(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Fx=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),Fx(r,"str"),Fx(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(Ix(e)?e:Rx(e),"g");return Xa(n,t,r)};var Nx=yi(3,Dx),_x=Sa(2,"replaceAll");const qx=gc(String.prototype.replaceAll)?_x:Nx,Lx=()=>Va(nc(/^win/),["platform"],$x),Vx=e=>{try{const t=new URL(e);return Cx(":",t.protocol)}catch{return}},Bx=(Do(Vx,Mx),e=>{if($x.browser)return!1;const t=Vx(e);return uc(t)||"file"===t||/^[a-zA-Z]$/.test(t)}),Ux=e=>{const t=Vx(e);return"http"===t||"https"===t},zx=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=za(!1,"keepFileProtocol",t),s=za(Lx,"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=qx("/","\\",i),":\\"===i.substr(1,2)&&(i=i[0].toUpperCase()+i.substr(1))),i},Jx=e=>{const t=e.indexOf("#");return-1!==t?e.substr(t):"#"},Hx=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substr(0,t)),r},Gx=()=>{if($x.browser)return Hx(globalThis.location.href);const e=$x.cwd(),t=ka(e);return["/","\\"].includes(t)?e:e+(Lx()?"\\":"/")},Wx=(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()},Kx=e=>Bx(e)?(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Lx()&&(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})(zx(e)):encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Yx=e=>Bx(e)?zx(e):decodeURI(e),Xx=pl({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=[]}}),Qx=Xx,Zx=pl({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=hl(e)?e:e.uri;return Mx(this.find(Ua(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),ew=Zx,tw={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},rw=$a(Ca(["resolve","baseURI"]),Eo(["resolve","baseURI"])),nw=e=>uu(e)?Gx():e,sw=pl({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 hl(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(ki(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});const iw=class extends vl{constructor(e,t){super(e,{cause:t.cause}),E(this,"plugin",void 0),this.plugin=t.plugin}},ow=async(e,t,r)=>{const n=await Promise.all(r.map(xc([e],[t])));return r.filter(((e,t)=>n[t]))},aw=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 iw("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const cw=class extends vl{};const lw=class extends cw{};const uw=class extends vl{},pw=async(e,t)=>{let r=e,n=!1;if(!Bc(e)){const t=new e.constructor(e.content,e.meta.clone(),e.attributes);t.classes.push("result"),r=new hc([t]),n=!0}const s=sw({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await ow("canDereference",s,t.dereference.strategies);if(Pa(i))throw new lw(s.uri);try{const{result:e}=await aw("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new uw(`Error while dereferencing file "${s.uri}"`,{cause:e})}},hw=async(e,t={})=>{const r=((e,t)=>{const r=Fa(e,t);return qa(rw,nw,r)})(tw,t);return pw(e,r)};const fw=class extends vl{constructor(e="Not Implemented",t){super(e,t)}},mw=pl({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 fw},async parse(){throw new fw}}}),dw=mw,yw=pl(dw,{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 hc;if(0!==r.length){const e=new Ys.RP(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new cw(`Error parsing "${e.uri}"`,{cause:t})}}}}),gw=pl({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new fw}}});const vw=yi(1,io(Promise.all,Promise));const bw=class extends vl{};const Ow=class extends bw{};const jw=class extends uw{};const xw=class extends bw{};function ww(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 Ew(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ww(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ww(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Sw=async(e,t)=>{const r=sw({uri:Kx(Hx(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 ow("canRead",e,r);if(Pa(n))throw new xw(e.uri);try{const{result:t}=await aw("read",[e],n);return t}catch(t){throw new bw(`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 ow("canParse",e,r);if(Pa(n))throw new xw(e.uri);try{const{plugin:t,result:r}=await aw("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new cw(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new cw(`Error while parsing file "${e.uri}"`,{cause:t})}})(sw(Ew(Ew({},r),{},{data:n})),t)},Pw=(e,t)=>{const r=Ml({predicate:e});return Il(t,r),new Ys.O4(r.result)};class Aw extends vl{}const kw=(e,t)=>{const r=Ml({predicate:e,returnOnTrue:Ol});return Il(t,r),La(void 0,[0],r.result)};const $w=class extends vl{};class Tw extends $w{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class Cw extends vl{}const Mw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Iw=e=>{const t=Jx(e);return hu("#",t)},Rw=(e,t)=>{const r=(e=>{if(!Mw(e))throw new Tw(e);return e})(e),n=kw((e=>{var t;return $O(e)&&(null===(t=e.$anchor)||void 0===t?void 0:t.toValue())===r}),t);if(uc(n))throw new Cw(`Evaluation failed on token: "${r}"`);return n},Fw=(e,t)=>{if(void 0===t.$ref)return;const r=Jx(t.$ref.toValue()),n=t.meta.get("inherited$id").toValue();return`${po(((e,t)=>Wx(e,Kx(Hx(t)))),e,[...n,t.$ref.toValue()])}${"#"===r?"":r}`},Dw=e=>{if(Dw.cache.has(e))return Dw.cache.get(e);const t=jb.refract(e);return Dw.cache.set(e,t),t};Dw.cache=new WeakMap;const Nw=e=>zc(e)?Dw(e):e,_w=(e,t)=>{const{cache:r}=_w,n=Hx(e),s=e=>$O(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 po(((e,t)=>Wx(e,Kx(Hx(t)))),e,[...r,t.$id.toValue()])})(n,e)===n));if(uc(i))throw new Aw(`Evaluation failed on URI: "${e}"`);let o,a;return Mw(Iw(e))?(o=Rw,a=Iw(e)):(o=vu,a=du(e)),o(a,i)};function qw(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 Lw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qw(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}_w.cache=new WeakMap;const Vw=Il[Symbol.for("nodejs.util.promisify.custom")],Bw=pl({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 Wx(this.reference.uri,Kx(Hx(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Ow(`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(Ua(t,"uri"));const n=await Sw(Yx(t),Lw(Lw({},this.options),{},{parse:Lw(Lw({},this.options.parse),{},{mediaType:"text/plain"})})),s=Qx({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){var t;if(!this.options.resolve.external&&SO(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(!Cc(e.$ref))return;if(!this.options.resolve.external&&xO(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((Cc(e.operationRef)||Cc(e.operationId))&&(this.options.resolve.external||!yO(e))){if(Cc(e.operationRef)&&Cc(e.operationId))throw new Error("LinkElement operationRef and operationId are mutually exclusive.");if(yO(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(!Cc(e.externalValue))return;if(!this.options.resolve.external&&Cc(e.externalValue))return;if(e.hasKey("value")&&Cc(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(!Cc(e.$ref))return void this.visited.add(e);const t=await this.toReference(Yx(this.reference.uri)),{uri:r}=t,n=Fw(r,e),s=Hx(n),i=sw({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(Yx(n))}catch(e){if(!(a&&e instanceof Aw))throw e;this.crawlingMap[s]=this.toReference(Yx(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=du(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=vu(n,r.value.result);if(zc(s)){const t=e.meta.get("referenced-element").toValue();if(mf(s))s=yb.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=Bw({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Vw(s,i,{keyMap:yx,nodeTypeGetter:dx}),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=du(null===(t=e.$ref)||void 0===t?void 0:t.toValue());let s=vu(n,r.value.result);if(zc(s)&&(s=fb.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=Bw({reference:r,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Vw(s,i,{keyMap:yx,nodeTypeGetter:dx}),await i.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(Yx(this.reference.uri));const{uri:r}=t,n=Fw(r,e),s=Hx(n),i=sw({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=_w(n,Nw(t.value.result))}else{t=await this.toReference(Yx(n));const e=du(n);c=Nw(vu(e,t.value.result))}}catch(e){if(!(a&&e instanceof Aw))throw e;if(Mw(Iw(n))){t=await this.toReference(Yx(n));const e=Iw(n);c=Rw(e,Nw(t.value.result))}else{t=await this.toReference(Yx(n));const e=du(n);c=Nw(vu(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=Bw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await Vw(c,l,{keyMap:yx,nodeTypeGetter:dx}),await l.crawl(),this.indirections.pop()},async crawl(){await Do(xo,vw)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)EO(e)?await this.crawlReferenceElement(e):$O(e)?await this.crawlSchemaElement(e):jO(e)&&await this.crawlPathItemElement(e)}}}),Uw=Bw,zw=Il[Symbol.for("nodejs.util.promisify.custom")],Jw=pl(gw,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?kx.includes(e.mediaType):vO(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=il(gx),n=Qx({uri:e.uri,value:e.parseResult}),s=Uw({reference:n,namespace:r,options:t}),i=ew();return i.add(n),await zw(i.rootRef.value,s,{keyMap:yx,nodeTypeGetter:dx}),await s.crawl(),i}}}),Hw=Jw,Gw=e=>e.replace(/\s/g,""),Ww=e=>e.replace(/\W/gi,"_"),Kw=(e,t,r)=>{const n=Gw(e);return n.length>0?Ww(n):((e,t)=>`${Ww(Gw(t.toLowerCase()))}${Ww(Gw(e))}`)(t,r)},Yw=({operationIdNormalizer:e=Kw}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=fa((e=>Zl(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(Zl(e.operationId)),n=s.find((e=>Zl(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",Zl(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(Zl(t.operationId)),o=ka(n),a=Go("method",Zl(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)}}}}},Xw=()=>({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)&&(Zl(t.name)===Zl(r.name)&&Zl(t.in)===Zl(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=ka(r);if(!Array.isArray(n)||0===n.length)return;const s=La([],["parameters","content"],e),i=ac(t,[...s,...n]);e.parameters=new Jg(i)}}}}},Qw=()=>({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 ev(null===(a=t)||void 0===a?void 0:a.content))}}}}},Zw=()=>({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 uv(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=ka(r);void 0!==n&&(e.isArrayElement(t.servers)||(t.servers=new nv(n)))}}}}},eE=()=>({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()))}}}}}),tE=()=>({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()))}}}}}),rE=e=>t=>{if(t?.$$normalized)return t;if(rE.cache.has(t))return t;const r=ub.refract(t),n=e(r),s=Zl(n);return rE.cache.set(t,s),s};rE.cache=new WeakMap;const nE=e=>{if(!Fc(e))return e;if(e.hasKey("$$normalized"))return e;const t=[Yw({operationIdNormalizer:(e,t,r)=>Ds({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Xw(),Qw(),Zw(),eE(),tE()],r=Rl(e,t,{toolboxCreator:Ox,visitorOptions:{keyMap:yx,nodeTypeGetter:dx}});return r.set("$$normalized",!0),r},sE=pl({props:{name:null},methods:{canRead:()=>!1,async read(){throw new fw}}}),iE=pl(sE,{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=>Ux(e.uri),async read(){throw new fw},getHttpClient(){throw new fw}}}).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 bw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),oE=dw.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 cw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new hc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=Ql(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new cw(`Error parsing "${e.uri}"`,{cause:t})}}}}),aE=dw.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 kr.load(e.toString(),{schema:gr}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new cw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new hc,r=e.toString();try{const e=kr.load(r,{schema:gr});if(this.allowEmpty&&void 0===e)return t;const n=Ql(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new cw(`Error parsing "${e.uri}"`,{cause:t})}}}}),cE=dw.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new Ax(...kx.filterByFormat("generic"),...kx.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 cw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new hc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=ub.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new cw(`Error parsing "${e.uri}"`,{cause:t})}}}}),lE=dw.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new Ax(...kx.filterByFormat("generic"),...kx.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 kr.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new cw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new hc,r=e.toString();try{const e=kr.load(r,{schema:gr});if(this.allowEmpty&&void 0===e)return t;const n=ub.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new cw(`Error parsing "${e.uri}"`,{cause:t})}}}}),uE=pl({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new fw}}});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){E(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=Il[Symbol.for("nodejs.util.promisify.custom")],mE=pl({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 Wx(this.reference.uri,Kx(Hx(e)))},toAncestorLineage(e){const t=new WeakSet(e.filter(Tc));return[[...this.ancestors,t],t]},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Ow(`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(Ua(t,"uri"));const n=await Sw(Yx(t),hE(hE({},this.options),{},{parse:hE(hE({},this.options.parse),{},{mediaType:"text/plain"})})),s=Qx({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&&SO(e))return!1;const h=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),{uri:f}=h,m=Wx(f,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const d=du(m);let y=vu(d,h.value.result);if(zc(y)){const t=e.meta.get("referenced-element").toValue();if(mf(y))y=yb.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=mE({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:u});y=await fE(y,g,{keyMap:yx,nodeTypeGetter:dx}),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=Va(Mx,["description"],e),b=Va(Mx,["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(!Cc(e.$ref))return;if(c.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&xO(e))return;const u=await this.toReference(null===(i=e.$ref)||void 0===i?void 0:i.toValue()),{uri:p}=u,h=Wx(p,null===(o=e.$ref)||void 0===o?void 0:o.toValue());this.indirections.push(e);const f=du(h);let m=vu(f,u.value.result);if(zc(m)&&(m=fb.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=mE({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:c});m=await fE(m,d,{keyMap:yx,nodeTypeGetter:dx}),l.delete(e),this.indirections.pop();const y=new fb([...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(!Cc(e.operationRef)&&!Cc(e.operationId))return;if(!this.options.resolve.external&&yO(e))return;if(Cc(e.operationRef)&&Cc(e.operationId))throw new Error("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(Cc(e.operationRef)){var r,n,s;const i=du(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=vu(i,o.value.result),zc(t)&&(t=pb.refract(t)),t=new pb([...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(Cc(e.operationId)){var i,o;const r=null===(i=e.operationId)||void 0===i?void 0:i.toValue(),n=await this.toReference(Yx(this.reference.uri));if(t=kw((e=>bO(e)&&e.operationId.equals(r)),n.value.result),uc(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(!Cc(e.externalValue))return;if(!this.options.resolve.external&&Cc(e.externalValue))return;if(e.hasKey("value")&&Cc(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(!Cc(e.$ref))return;if(o.some((t=>t.has(e))))return!1;let c=await this.toReference(Yx(this.reference.uri)),{uri:l}=c;const u=Fw(l,e),p=Hx(u),h=sw({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=_w(u,Nw(c.value.result))}else{c=await this.toReference(Yx(u));const e=du(u);y=Nw(vu(e,c.value.result))}}catch(e){if(!(m&&e instanceof Aw))throw e;if(Mw(Iw(u))){c=await this.toReference(Yx(u)),l=c.uri;const e=Iw(u);y=Rw(e,Nw(c.value.result))}else{c=await this.toReference(Yx(u)),l=c.uri;const e=du(u);y=Nw(vu(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=mE({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:o});if(y=await fE(y,g,{keyMap:yx,nodeTypeGetter:dx}),a.delete(e),this.indirections.pop(),TO(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 jb([...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}}}),dE=mE,yE=Il[Symbol.for("nodejs.util.promisify.custom")],gE=pl(uE,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?kx.includes(e.mediaType):vO(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=il(gx),n=Go(ew(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(Ua(e.uri,"uri")):(s=Qx({uri:e.uri,value:e.parseResult}),n.add(s));const i=dE({reference:s,namespace:r,options:t}),o=await yE(n.rootRef.value,i,{keyMap:yx,nodeTypeGetter:dx});return null===t.dereference.refSet&&n.clean(),o}}}),vE=gE,bE=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(Nc(r)){const t=String(r.key.toValue());e.push(t)}else if(Dc(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},OE=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},jE=Qn("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:xE}=ms,wE=Il[Symbol.for("nodejs.util.promisify.custom")],EE=dE.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(Gc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&SO(e))return!1;const i=await this.toReference(e.$ref.toValue()),{uri:o}=i,a=Wx(o,e.$ref.toValue());this.indirections.push(e);const c=du(a);let l=vu(c,i.value.result);if(zc(l)){const t=e.meta.get("referenced-element").toValue();if(mf(l))l=yb.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(Ux(o)||Bx(o)){const t=new yb({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}n.add(e);const u=EE({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...bE([...s,r,e]),"$ref"]});l=await wE(l,u,{keyMap:yx,nodeTypeGetter:dx}),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&&Fc(l)){const e=l;if(void 0===e.get("$$ref")){const t=Wx(o,a);e.set("$$ref",t)}}return l}catch(t){const n=OE(t),i=xE(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:du(e.$ref.toValue()),fullPath:this.basePath??[...bE([...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(!Cc(e.$ref))return;if(Gc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;if(!this.options.resolve.external&&xO(e))return;const i=await this.toReference(e.$ref.toValue()),{uri:o}=i,a=Wx(o,e.$ref.toValue());this.indirections.push(e);const c=du(a);let l=vu(c,i.value.result);if(zc(l)&&(l=fb.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(Ux(o)||Bx(o)){const t=new fb({$ref:a},e.meta.clone(),e.attributes.clone());return t.get("$ref").classes.push("cycle"),t}return!1}}n.add(e);const u=EE({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...bE([...s,r,e]),"$ref"]});l=await wE(l,u,{keyMap:yx,nodeTypeGetter:dx}),n.delete(e),this.indirections.pop();const p=new fb([...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=Wx(o,a);p.set("$$ref",e)}return p}catch(t){const n=OE(t),i=xE(n,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),pointer:du(e.$ref.toValue()),fullPath:this.basePath??[...bE([...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(!Cc(e.$ref))return;if(Gc(["cycle"],e.$ref))return!1;if(t.some((t=>t.has(e))))return!1;let i=await this.toReference(Yx(this.reference.uri)),{uri:o}=i;const a=Fw(o,e),c=Hx(a),l=sw({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=_w(a,Nw(i.value.result))}else{i=await this.toReference(Yx(a)),o=i.uri;const e=du(a);f=Nw(vu(e,i.value.result))}}catch(e){if(!(p&&e instanceof Aw))throw e;if(Mw(Iw(a))){i=await this.toReference(Yx(a)),o=i.uri;const e=Iw(a);f=Rw(e,Nw(i.value.result))}else{i=await this.toReference(Yx(a)),o=i.uri;const e=du(a);f=Nw(vu(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(Ux(o)||Bx(o)){const t=Wx(o,a),r=new jb({$ref:t},e.meta.clone(),e.attributes.clone());return r.get("$ref").classes.push("cycle"),r}return!1}}n.add(e);const m=EE({reference:i,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...bE([...s,r,e]),"$ref"]});if(f=await wE(f,m,{keyMap:yx,nodeTypeGetter:dx}),n.delete(e),this.indirections.pop(),TO(f)){const t=f.clone();return t.setMetaProperty("ref-fields",{$ref:e.$ref?.toValue()}),t.setMetaProperty("ref-origin",o),t}const d=new jb([...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=Wx(o,a);d.set("$$ref",e)}return d}catch(t){const n=OE(t),i=new jE(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:e.$ref.toValue(),fullPath:this.basePath??[...bE([...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 dE.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=OE(t),i=xE(n,{baseDoc:this.reference.uri,externalValue:e.externalValue?.toValue(),fullPath:this.basePath??[...bE([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),SE=EE,PE=vE.compose.bind(),AE=PE({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:Zl(this.macroOperation),o=Zl(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=bE([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),kE=PE({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&&Fc(e.properties)&&e.properties.forEach((t=>{if(Fc(t))try{const e=this.modelPropertyMacro(Zl(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...bE([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}});function $E(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 TE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$E(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const CE=e=>{const t=e.meta.clone(),r=e.attributes.clone();return new e.constructor(void 0,t,r)},ME=e=>new Ys.c6(e.key,e.value,e.meta.clone(),e.attributes.clone()),IE=(e,t)=>t.clone&&t.isMergeableElement(e)?DE(CE(e),e,t):e,RE=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>IE(e,r))),FE=(e,t,r)=>{const n=Fc(e)?CE(e):CE(t);return Fc(e)&&e.forEach(((e,t,s)=>{const i=ME(s);i.value=IE(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=s.toValue();let a;if(Fc(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=ME(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return DE;const r=t.customMerge(e,t);return"function"==typeof r?r:DE})(s,r)(n,t)}else a=ME(i),a.value=IE(t,r);n.remove(o),n.content.push(a)})),n};function DE(e,t,r){var n,s,i;const o={clone:!0,isMergeableElement:e=>Fc(e)||Dc(e),arrayElementMerge:RE,objectElementMerge:FE,customMerge:void 0},a=TE(TE({},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=Dc(t);return c===Dc(e)?c&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a):IE(t,a)}DE.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument should be an array.");return 0===e.length?new Ys.Sb:e.reduce(((e,r)=>DE(e,r,t)),CE(e[0]))};const NE=PE({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(!Dc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...bE([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new jb(e.content.filter((e=>"allOf"!==e.key.toValue())),e.meta.clone(),e.attributes.clone());if(!e.allOf.content.every($O)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...bE([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=DE.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}}}}),_E=Il[Symbol.for("nodejs.util.promisify.custom")],qE=vE.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=il(gx),s=t.dereference.refSet??ew();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=Qx({uri:e.uri,value:e.parseResult}),s.add(i));const o=SE({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=AE({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=kE({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=NE({options:t});r.push(e)}const a=wl(r,{nodeTypeGetter:dx}),c=await _E(s.rootRef.value,a,{keyMap:yx,nodeTypeGetter:dx});return null===t.dereference.refSet&&s.clean(),c}}}),LE=qE,VE=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}=VE,m=Ux(Gx())?Gx():"https://smartbear.com/",d=en(e),y=Wx(m,d);let g;f.has(t)?g=f.get(t):(g=ub.refract(t),g.classes.push("result"),f.set(t,g));const v=new hc([g]),b=su(o),O=""===b?"":`#${b}`,j=vu(b,g),x=Qx({uri:y,value:v}),w=ew({refs:[x]});""!==b&&(w.rootRef=null);const E=[new WeakSet([j])],S=[],P=((e,t,r)=>Vl({element:r}).transclude(e,t))(j,await hw(j,{resolve:{baseURI:`${y}${O}`,resolvers:[iE({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[Hw()]},parse:{mediaType:kx.latest(),parsers:[cE({allowEmpty:!1,sourceMap:!1}),lE({allowEmpty:!1,sourceMap:!1}),oE({allowEmpty:!1,sourceMap:!1}),aE({allowEmpty:!1,sourceMap:!1}),yw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[LE({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:E})],refSet:w,dereferenceOpts:{errors:S}}}),g),A=l?P:nE(P);return{spec:Zl(A),errors:S}}catch(e){if(e instanceof mu||e instanceof gu)return{spec:null,errors:[]};throw e}};VE.cache=new WeakMap;const BE=VE,UE={name:"openapi-3-1-apidom",match(e){let{spec:t}=e;return Vs(t)},normalize(e){let{spec:t}=e;return rE(nE)(t)},resolve:async e=>BE(e)};function zE(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 JE=()=>null,HE={mapTagOperations:function(e){let{spec:t,cb:r=JE,defaultTag:n="default",v2OperationIdCompatibilityMode:s}=e;const i={},o={};return zE(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 GE=r(6489);function WE(e){return"[object Object]"===Object.prototype.toString.call(e)}function KE(e){var t,r;return!1!==WE(e)&&(void 0===(t=e.constructor)||!1!==WE(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const YE={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 XE(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}function QE(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(XE(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 ZE(e){let{req:t,value:r,parameter:n}=e;if(t.query=t.query||{},n.content){const e=XE(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 eS=["accept","authorization","content-type"];function tS(e){let{req:t,parameter:r,value:n}=e;if(t.headers=t.headers||{},!(eS.indexOf(r.name.toLowerCase())>-1))if(r.content){const e=Object.keys(r.content)[0];t.headers[r.name]=XE(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 rS(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}=${XE(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 nS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:sS}=nS,iS=sS;function oS(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=iS(`${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&&KE(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 aS(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=iS(`${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 cS(e,t){return`${t.toLowerCase()}-${e}`}function lS(e,t){return e&&e.paths?function(e,t){return zE(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),cS(r,n),i].some((e=>e&&e===t))})):null}const uS=["http","fetch","spec","operationId","pathName","method","parameters","securities"],pS=e=>Array.isArray(e)?e:[],hS=Qn("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),fS={buildRequest:mS};function mS(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:YE);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=lS(t,r);if(!v)throw new hS(`Operation ${r} not found`);const{operation:b={},method:O,pathName:j}=v;if(g.url+=yS({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 x=t.paths[j]||{};n&&(g.headers.accept=n);const w=(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(pS(b.parameters)).concat(pS(x.parameters)));w.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,w).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 E=P(P({},e),{},{operation:b});if(g=y?oS(E,g):aS(E,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?"&":"")+GE.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,Xr(g),g}const dS=e=>e?e.replace(/\W/g,""):null;function yS(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=dS(r.protocol)||dS(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||dS(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 gS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?t.url=e:t=e,!(this instanceof gS))return new gS(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,gS.makeApisTagOperation(this)),this)));return r.client=this,r}gS.http=qr,gS.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,gS.http),gS.resolveStrategies={"openapi-3-1-apidom":UE,"openapi-3-0":zs,"openapi-2-0":Us,generic:qs},gS.resolve=Js({strategies:[gS.resolveStrategies["openapi-3-1-apidom"],gS.resolveStrategies["openapi-3-0"],gS.resolveStrategies["openapi-2-0"],gS.resolveStrategies.generic]}),gS.resolveSubtree=Ks({strategies:[gS.resolveStrategies["openapi-3-1-apidom"],gS.resolveStrategies["openapi-3-0"],gS.resolveStrategies["openapi-2-0"],gS.resolveStrategies.generic]}),gS.execute=function(e){let{http:t,fetch:r,spec:n,operationId:s,pathName:i,method:o,parameters:a,securities:c}=e,l=ul(e,uS);const u=t||r||qr;i&&o&&!s&&(s=cS(i,o));const p=fS.buildRequest(P({spec:n,operationId:s,parameters:a,securities:c,http:u},l));return p.body&&(KE(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),u(p)},gS.serializeRes=Vr,gS.serializeHeaders=Br,gS.clearCache=function(){Rs.refs.clearCache()},gS.makeApisTagOperation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=HE.makeExecute(e);return{apis:HE.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},gS.buildRequest=mS,gS.helpers={opId:Ds},gS.getBaseUrl=yS,gS.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:iE}},parse:{parsers:{JsonParser:oE,YamlParser:aE,OpenApiJson3_1Parser:cE,OpenApiYaml3_1Parser:lE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:LE}}},gS.prototype={http:qr,execute(e){return this.applyDefaults(),gS.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 gS.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)))}},gS.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:vS}=gS,bS=gS})(),n=n.default})()));
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|