swagger-client 3.27.8 → 3.28.0
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 +2183 -2304
- package/dist/swagger-client.browser.min.js +1 -1
- package/dist/swagger-client.browser.min.js.map +1 -1
- package/es/index.js +2 -2
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/index.js +107 -109
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/all-of.js +66 -69
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +582 -582
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/parameters.js +31 -34
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/properties.js +25 -28
- package/es/resolver/apidom/reference/parse/parsers/json/index.js +43 -42
- package/es/resolver/apidom/reference/parse/parsers/openapi-json-3-1/index.js +46 -45
- package/es/resolver/apidom/reference/parse/parsers/openapi-yaml-3-1/index.js +46 -45
- package/es/resolver/apidom/reference/parse/parsers/yaml-1-2/index.js +44 -43
- package/es/resolver/apidom/reference/resolve/resolvers/http-swagger-client/index.js +62 -60
- package/es/resolver/strategies/openapi-3-1-apidom/resolve.js +18 -18
- package/lib/index.js +1 -1
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/index.js +105 -107
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/all-of.js +66 -69
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +581 -581
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/parameters.js +31 -34
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/properties.js +25 -28
- package/lib/resolver/apidom/reference/parse/parsers/json/index.js +43 -42
- package/lib/resolver/apidom/reference/parse/parsers/openapi-json-3-1/index.js +46 -45
- package/lib/resolver/apidom/reference/parse/parsers/openapi-yaml-3-1/index.js +46 -45
- package/lib/resolver/apidom/reference/parse/parsers/yaml-1-2/index.js +44 -43
- package/lib/resolver/apidom/reference/resolve/resolvers/http-swagger-client/index.js +61 -59
- package/lib/resolver/strategies/openapi-3-1-apidom/resolve.js +11 -11
- package/package.json +23 -22
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/utils/compose.js +0 -5
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/utils/compose.js +0 -11
|
@@ -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={8075:(e,t,r)=>{"use strict";var n=r(453),s=r(487),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}},487:(e,t,r)=>{"use strict";var n=r(6743),s=r(453),i=r(6897),o=r(9675),a=s("%Function.prototype.apply%"),c=s("%Function.prototype.call%"),l=s("%Reflect.apply%",!0)||n.call(c,a),u=r(655),p=s("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var t=l(n,c,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var h=function(){return l(n,a,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},7427:(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");o.partitioned&&(l+="; Partitioned");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}}},4410:(e,t,r)=>{"use strict";var n=r(8199);e.exports=n},8232:(e,t,r)=>{"use strict";r(9356),r(1095),r(3970),r(6396),r(7632);var n=r(7675);e.exports=n.AggregateError},1523:(e,t,r)=>{"use strict";e.exports=r(297)},297:(e,t,r)=>{"use strict";r(4506);var n=r(4410);e.exports=n},182:(e,t,r)=>{"use strict";var n=r(2073),s=r(4003),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},8934:(e,t,r)=>{"use strict";var n=r(2073),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")}},6065:e=>{"use strict";e.exports=function(){}},8347:(e,t,r)=>{"use strict";var n=r(5774),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},4581:(e,t,r)=>{"use strict";var n=r(9441),s=r(8630),i=r(954),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)}},244:(e,t,r)=>{"use strict";var n=r(9036),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},5663:(e,t,r)=>{"use strict";var n=r(7104),s=r(2073),i=r(244),o=r(6615)("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}},2144:(e,t,r)=>{"use strict";var n=r(4373),s=r(8195),i=r(5687),o=r(6381);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))}}},7007:(e,t,r)=>{"use strict";var n=r(7131);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},789:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},8471:(e,t,r)=>{"use strict";var n=r(5560),s=r(6381),i=r(3768);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},3768:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},492:(e,t,r)=>{"use strict";var n=r(8471);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},909:(e,t,r)=>{"use strict";var n=r(5391),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}},5560:(e,t,r)=>{"use strict";var n=r(7131);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7023:e=>{"use strict";var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},6171:(e,t,r)=>{"use strict";var n=r(5391),s=r(5774),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},4740:e=>{"use strict";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}},4084:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6312:(e,t,r)=>{"use strict";var n,s,i=r(5391),o=r(4084),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},347:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7205:(e,t,r)=>{"use strict";var n=r(9036),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}},927:(e,t,r)=>{"use strict";var n=r(8471),s=r(7205),i=r(1527),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},1527:(e,t,r)=>{"use strict";var n=r(7131),s=r(3768);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},1938:(e,t,r)=>{"use strict";var n=r(5391),s=r(1981),i=r(9e3),o=r(2073),a=r(5687).f,c=r(3488),l=r(7675),u=r(2116),p=r(8471),h=r(4373),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,d,m,y,g,v,b,x,E=e.target,w=e.global,j=e.stat,O=e.proto,S=w?n:j?n[E]:(n[E]||{}).prototype,A=w?l:l[E]||p(l,E,{})[E],P=A.prototype;for(m in t)s=!(r=c(w?m:E+(j?".":"#")+m,e.forced))&&S&&h(S,m),g=A[m],s&&(v=e.dontCallGetSet?(x=a(S,m))&&x.value:S[m]),y=s&&v?v:t[m],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(A,m,b),O&&(h(l,d=E+"Prototype")||p(l,d,{}),p(l[d],m,y),e.real&&P&&(r||!P[m])&&p(P,m,y)))}},7131:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1981:(e,t,r)=>{"use strict";var n=r(5164),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)})},2116:(e,t,r)=>{"use strict";var n=r(9e3),s=r(182),i=r(5164),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)}}},5164:(e,t,r)=>{"use strict";var n=r(7131);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3057:(e,t,r)=>{"use strict";var n=r(5164),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4970:(e,t,r)=>{"use strict";var n=r(5560),s=r(4373),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}},7006:(e,t,r)=>{"use strict";var n=r(9036),s=r(182);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9e3:(e,t,r)=>{"use strict";var n=r(244),s=r(9036);e.exports=function(e){if("Function"===n(e))return s(e)}},9036:(e,t,r)=>{"use strict";var n=r(5164),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)}}},7827:(e,t,r)=>{"use strict";var n=r(7675),s=r(5391),i=r(2073),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]}},6399:(e,t,r)=>{"use strict";var n=r(5663),s=r(3514),i=r(6153),o=r(1113),a=r(6615)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},7013:(e,t,r)=>{"use strict";var n=r(3057),s=r(182),i=r(8347),o=r(4003),a=r(6399),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")}},3514:(e,t,r)=>{"use strict";var n=r(182),s=r(6153);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},5391:function(e,t,r){"use strict";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")()},4373:(e,t,r)=>{"use strict";var n=r(9036),s=r(5809),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},6145:e=>{"use strict";e.exports={}},9417:(e,t,r)=>{"use strict";var n=r(7827);e.exports=n("document","documentElement")},2633:(e,t,r)=>{"use strict";var n=r(5560),s=r(7131),i=r(6171);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6731:(e,t,r)=>{"use strict";var n=r(9036),s=r(7131),i=r(244),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},9739:(e,t,r)=>{"use strict";var n=r(2073),s=r(5774),i=r(4619);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}},60:(e,t,r)=>{"use strict";var n=r(5774),s=r(8471);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},9257:(e,t,r)=>{"use strict";var n,s,i,o=r(8698),a=r(5391),c=r(5774),l=r(8471),u=r(4373),p=r(4993),h=r(651),f=r(6145),d="Object already initialized",m=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 m(d);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 m(d);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 m("Incompatible receiver, "+e+" required");return r}}}},5669:(e,t,r)=>{"use strict";var n=r(6615),s=r(1113),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2073:(e,t,r)=>{"use strict";var n=r(7023),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},3488:(e,t,r)=>{"use strict";var n=r(7131),s=r(2073),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},6153:e=>{"use strict";e.exports=function(e){return null==e}},5774:(e,t,r)=>{"use strict";var n=r(2073),s=r(7023),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)}},3599:e=>{"use strict";e.exports=!0},3969:(e,t,r)=>{"use strict";var n=r(7827),s=r(2073),i=r(3381),o=r(1004),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))}},9384:(e,t,r)=>{"use strict";var n=r(2116),s=r(3057),i=r(8347),o=r(4003),a=r(5669),c=r(954),l=r(3381),u=r(7013),p=r(6399),h=r(7959),f=TypeError,d=function(e,t){this.stopped=e,this.result=t},m=d.prototype;e.exports=function(e,t,r){var y,g,v,b,x,E,w,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),$=n(t,j),T=function(e){return y&&h(y,"normal",e),new d(!0,e)},_=function(e){return O?(i(e),P?$(e[0],e[1],T):$(e[0],e[1])):P?$(e,T):$(e)};if(S)y=e.iterator;else if(A)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((x=_(e[v]))&&l(m,x))return x;return new d(!1)}y=u(e,g)}for(E=S?e.next:y.next;!(w=s(E,y)).done;){try{x=_(w.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(m,x))return x}return new d(!1)}},7959:(e,t,r)=>{"use strict";var n=r(3057),s=r(8347),i=r(3514);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}},7102:(e,t,r)=>{"use strict";var n=r(2373).IteratorPrototype,s=r(3628),i=r(3768),o=r(5051),a=r(1113),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}},6188:(e,t,r)=>{"use strict";var n=r(1938),s=r(3057),i=r(3599),o=r(4970),a=r(2073),c=r(7102),l=r(3439),u=r(4619),p=r(5051),h=r(8471),f=r(492),d=r(6615),m=r(1113),y=r(2373),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=d("iterator"),w="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,d,y,A){c(r,t,o);var P,$,T,_=function(e){if(e===d&&R)return R;if(!x&&e&&e in C)return C[e];switch(e){case w:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",M=!1,C=e.prototype,I=C[E]||C["@@iterator"]||d&&C[d],R=!x&&I||_(d),F="Array"===t&&C.entries||I;if(F&&(P=l(F.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):a(P[E])||f(P,E,S)),p(P,k,!0,!0),i&&(m[k]=S)),g&&d===j&&I&&I.name!==j&&(!i&&v?h(C,"name",j):(M=!0,R=function(){return s(I,this)})),d)if($={values:_(j),keys:y?R:_(w),entries:_(O)},A)for(T in $)(x||M||!(T in C))&&f(C,T,$[T]);else n({target:t,proto:!0,forced:x||M},$);return i&&!A||C[E]===R||f(C,E,R,{name:d}),m[t]=R,$}},2373:(e,t,r)=>{"use strict";var n,s,i,o=r(7131),a=r(2073),c=r(5774),l=r(3628),u=r(3439),p=r(492),h=r(6615),f=r(3599),d=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):m=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},1113:e=>{"use strict";e.exports={}},954:(e,t,r)=>{"use strict";var n=r(2954);e.exports=function(e){return n(e.length)}},1049:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},1764:(e,t,r)=>{"use strict";var n=r(7803);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},3628:(e,t,r)=>{"use strict";var n,s=r(8347),i=r(9157),o=r(347),a=r(6145),c=r(9417),l=r(6171),u=r(651),p="prototype",h="script",f=u("IE_PROTO"),d=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(m("")),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(m("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?(d[p]=s(e),r=new d,d[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},9157:(e,t,r)=>{"use strict";var n=r(5560),s=r(2506),i=r(6381),o=r(8347),a=r(9441),c=r(5556);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}},6381:(e,t,r)=>{"use strict";var n=r(5560),s=r(2633),i=r(2506),o=r(8347),a=r(5141),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}},5687:(e,t,r)=>{"use strict";var n=r(5560),s=r(3057),i=r(6337),o=r(3768),a=r(9441),c=r(5141),l=r(4373),u=r(2633),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])}},2036:(e,t,r)=>{"use strict";var n=r(4512),s=r(347).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},6841:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3439:(e,t,r)=>{"use strict";var n=r(4373),s=r(2073),i=r(5809),o=r(651),a=r(7007),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}},3381:(e,t,r)=>{"use strict";var n=r(9036);e.exports=n({}.isPrototypeOf)},4512:(e,t,r)=>{"use strict";var n=r(9036),s=r(4373),i=r(9441),o=r(4581).indexOf,a=r(6145),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}},5556:(e,t,r)=>{"use strict";var n=r(4512),s=r(347);e.exports=Object.keys||function(e){return n(e,s)}},6337:(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},4619:(e,t,r)=>{"use strict";var n=r(7006),s=r(8347),i=r(8934);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)},5759:(e,t,r)=>{"use strict";var n=r(7104),s=r(5663);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},6034:(e,t,r)=>{"use strict";var n=r(3057),s=r(2073),i=r(5774),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")}},8195:(e,t,r)=>{"use strict";var n=r(7827),s=r(9036),i=r(2036),o=r(6841),a=r(8347),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}},7675:e=>{"use strict";e.exports={}},3636:(e,t,r)=>{"use strict";var n=r(6381).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}})}},8890:(e,t,r)=>{"use strict";var n=r(6153),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},5051:(e,t,r)=>{"use strict";var n=r(7104),s=r(6381).f,i=r(8471),o=r(4373),a=r(5759),c=r(6615)("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)}}},651:(e,t,r)=>{"use strict";var n=r(3557),s=r(7980),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},4993:(e,t,r)=>{"use strict";var n=r(5391),s=r(909),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},3557:(e,t,r)=>{"use strict";var n=r(3599),s=r(4993);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},235:(e,t,r)=>{"use strict";var n=r(9036),s=r(6759),i=r(7803),o=r(8890),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)}},7235:(e,t,r)=>{"use strict";var n=r(6312),s=r(7131),i=r(5391).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8630:(e,t,r)=>{"use strict";var n=r(6759),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)}},9441:(e,t,r)=>{"use strict";var n=r(6731),s=r(8890);e.exports=function(e){return n(s(e))}},6759:(e,t,r)=>{"use strict";var n=r(1049);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},2954:(e,t,r)=>{"use strict";var n=r(6759),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},5809:(e,t,r)=>{"use strict";var n=r(8890),s=Object;e.exports=function(e){return s(n(e))}},5045:(e,t,r)=>{"use strict";var n=r(3057),s=r(5774),i=r(3969),o=r(3514),a=r(6034),c=r(6615),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)}},5141:(e,t,r)=>{"use strict";var n=r(5045),s=r(3969);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},7104:(e,t,r)=>{"use strict";var n={};n[r(6615)("toStringTag")]="z",e.exports="[object z]"===String(n)},7803:(e,t,r)=>{"use strict";var n=r(5663),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},4003:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},7980:(e,t,r)=>{"use strict";var n=r(9036),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},1004:(e,t,r)=>{"use strict";var n=r(7235);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2506:(e,t,r)=>{"use strict";var n=r(5560),s=r(7131);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8698:(e,t,r)=>{"use strict";var n=r(5391),s=r(2073),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},6615:(e,t,r)=>{"use strict";var n=r(5391),s=r(3557),i=r(4373),o=r(7980),a=r(7235),c=r(1004),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]}},9005:(e,t,r)=>{"use strict";var n=r(7827),s=r(4373),i=r(8471),o=r(3381),a=r(4619),c=r(2144),l=r(3636),u=r(9739),p=r(1764),h=r(60),f=r(927),d=r(5560),m=r(3599);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],E=n.apply(null,b);if(E){var w=E.prototype;if(!m&&s(w,"cause")&&delete w.cause,!r)return E;var j=n("Error"),O=t((function(e,t){var r=p(y?t:e,void 0),n=y?new E(e):new E;return void 0!==r&&i(n,"message",r),f(n,O,n.stack,2),this&&o(w,this)&&u(n,this,O),arguments.length>v&&h(n,arguments[v]),n}));if(O.prototype=w,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):d&&g in E&&(l(O,E,g),l(O,E,"prepareStackTrace")),c(O,E),!m)try{w.name!==x&&i(w,"name",x),w.constructor=O}catch(e){}return O}}},3970:(e,t,r)=>{"use strict";var n=r(1938),s=r(7827),i=r(1981),o=r(7131),a=r(9005),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)})},2949:(e,t,r)=>{"use strict";var n=r(1938),s=r(3381),i=r(3439),o=r(4619),a=r(2144),c=r(3628),l=r(8471),u=r(3768),p=r(60),h=r(927),f=r(9384),d=r(1764),m=r(6615)("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,m,"Error")),void 0!==t&&l(r,"message",d(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})},1095:(e,t,r)=>{"use strict";r(2949)},6396:(e,t,r)=>{"use strict";var n=r(9441),s=r(6065),i=r(1113),o=r(9257),a=r(6381).f,c=r(6188),l=r(789),u=r(3599),p=r(5560),h="Array Iterator",f=o.set,d=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=d(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,l(void 0,!0);switch(r){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var m=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},9356:(e,t,r)=>{"use strict";var n=r(1938),s=r(5391),i=r(1981),o=r(9005),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)}}))},7632:(e,t,r)=>{"use strict";var n=r(235).charAt,s=r(7803),i=r(9257),o=r(6188),a=r(789),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))}))},4506:(e,t,r)=>{"use strict";r(1095)},813:(e,t,r)=>{"use strict";r(6396);var n=r(4740),s=r(5391),i=r(5663),o=r(8471),a=r(1113),c=r(6615)("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}},8199:(e,t,r)=>{"use strict";r(4506);var n=r(8232);r(813),e.exports=n},4744: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},41:(e,t,r)=>{"use strict";var n=r(655),s=r(8068),i=r(9675),o=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!o&&o(e,t);if(n)n(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===a&&p?p.enumerable:!a,value:r,writable:null===c&&p?p.writable:!c});else{if(!u&&(a||c||l))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},655:(e,t,r)=>{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},1237:e=>{"use strict";e.exports=EvalError},9383:e=>{"use strict";e.exports=Error},9290:e=>{"use strict";e.exports=RangeError},9538:e=>{"use strict";e.exports=ReferenceError},8068:e=>{"use strict";e.exports=SyntaxError},9675:e=>{"use strict";e.exports=TypeError},5345:e=>{"use strict";e.exports=URIError},9353:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r};e.exports=function(e){var s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var i,o=function(e,t){for(var r=[],n=t||0,s=0;n<e.length;n+=1,s+=1)r[s]=e[n];return r}(arguments,1),a=r(0,s.length-o.length),c=[],l=0;l<a;l++)c[l]="$"+l;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=s.apply(this,n(o,arguments));return Object(t)===t?t:this}return s.apply(e,n(o,arguments))})),s.prototype){var u=function(){};u.prototype=s.prototype,i.prototype=new u,u.prototype=null}return i}},6743:(e,t,r)=>{"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},453:(e,t,r)=>{"use strict";var n,s=r(9383),i=r(1237),o=r(9290),a=r(9538),c=r(8068),l=r(9675),u=r(5345),p=Function,h=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var d=function(){throw new l},m=f?function(){try{return d}catch(e){try{return f(arguments,"callee").get}catch(e){return d}}}():d,y=r(4039)(),g=r(24)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},x="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%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%":s,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((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%":o,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":x,"%TypeError%":l,"%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%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var w=v(v(e));E["%Error.prototype%"]=w}var j=function e(t){var r;if("%AsyncFunction%"===t)r=h("async function () {}");else if("%GeneratorFunction%"===t)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=h("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&v&&(r=v(s.prototype))}return E[t]=r,r},O={__proto__:null,"%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"]},S=r(6743),A=r(9957),P=S.call(Function.call,Array.prototype.concat),$=S.call(Function.apply,Array.prototype.splice),T=S.call(Function.call,String.prototype.replace),_=S.call(Function.call,String.prototype.slice),k=S.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,I=function(e,t){var r,n=e;if(A(O,n)&&(n="%"+(r=O[n])[0]+"%"),A(E,n)){var s=E[n];if(s===b&&(s=j(n)),void 0===s&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,M,(function(e,t,r,s){n[n.length]=r?T(s,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",s=I("%"+n+"%",t),i=s.name,o=s.value,a=!1,u=s.alias;u&&(n=u[0],$(r,P([0,1],u)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],m=_(d,0,1),y=_(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&h||(a=!0),A(E,i="%"+(n+="."+d)+"%"))o=E[i];else if(null!=o){if(!(d in o)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var g=f(o,d);o=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:o[d]}else h=A(o,d),o=o[d];h&&!a&&(E[i]=o)}}return o}},5795:(e,t,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592:(e,t,r)=>{"use strict";var n=r(655),s=function(){return!!n};s.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=s},24:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},4039:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(1333);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},1333: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}},9957:(e,t,r)=>{"use strict";var n=Function.prototype.call,s=Object.prototype.hasOwnProperty,i=r(6743);e.exports=i.call(n,s)},5580:(e,t,r)=>{var n=r(6110)(r(9325),"DataView");e.exports=n},1549:(e,t,r)=>{var n=r(2032),s=r(3862),i=r(6721),o=r(2749),a=r(5749);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},79:(e,t,r)=>{var n=r(3702),s=r(80),i=r(4739),o=r(8655),a=r(1175);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},8223:(e,t,r)=>{var n=r(6110)(r(9325),"Map");e.exports=n},3661:(e,t,r)=>{var n=r(3040),s=r(7670),i=r(289),o=r(4509),a=r(5330);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},2804:(e,t,r)=>{var n=r(6110)(r(9325),"Promise");e.exports=n},6545:(e,t,r)=>{var n=r(6110)(r(9325),"Set");e.exports=n},1240:(e,t,r)=>{var n=r(3661),s=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},7217:(e,t,r)=>{var n=r(79),s=r(1420),i=r(938),o=r(3605),a=r(9817),c=r(945);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1873:(e,t,r)=>{var n=r(9325).Symbol;e.exports=n},7828:(e,t,r)=>{var n=r(9325).Uint8Array;e.exports=n},8303:(e,t,r)=>{var n=r(6110)(r(9325),"WeakMap");e.exports=n},9770:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},695:(e,t,r)=>{var n=r(8096),s=r(2428),i=r(6449),o=r(3656),a=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&s(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),f=r||u||p||h,d=f?n(e.length,String):[],m=d.length;for(var y in e)!t&&!l.call(e,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m))||d.push(y);return d}},4528:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},4248: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}},6025:(e,t,r)=>{var n=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},2199:(e,t,r)=>{var n=r(4528),s=r(6449);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},2552:(e,t,r)=>{var n=r(1873),s=r(659),i=r(9350),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},7534:(e,t,r)=>{var n=r(2552),s=r(346);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},270:(e,t,r)=>{var n=r(7068),s=r(346);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))}},7068:(e,t,r)=>{var n=r(7217),s=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",f="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,y,g){var v=c(e),b=c(t),x=v?h:a(e),E=b?h:a(t),w=(x=x==p?f:x)==f,j=(E=E==p?f:E)==f,O=x==E;if(O&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(O&&!w)return g||(g=new n),v||u(e)?s(e,t,r,m,y,g):i(e,t,x,r,m,y,g);if(!(1&r)){var S=w&&d.call(e,"__wrapped__"),A=j&&d.call(t,"__wrapped__");if(S||A){var P=S?e.value():e,$=A?t.value():t;return g||(g=new n),y(P,$,r,m,g)}}return!!O&&(g||(g=new n),o(e,t,r,m,y,g))}},5083:(e,t,r)=>{var n=r(1882),s=r(7296),i=r(3805),o=r(7473),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?h:a).test(o(e))}},4901:(e,t,r)=>{var n=r(2552),s=r(294),i=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},8984:(e,t,r)=>{var n=r(5527),s=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},9219:e=>{e.exports=function(e,t){return e.has(t)}},5481:(e,t,r)=>{var n=r(9325)["__core-js_shared__"];e.exports=n},5911:(e,t,r)=>{var n=r(1240),s=r(4248),i=r(9219);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 d=-1,m=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++d<u;){var g=e[d],v=t[d];if(o)var b=l?o(v,g,d,t,e,c):o(g,v,d,e,t,c);if(void 0!==b){if(b)continue;m=!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)}))){m=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},1986:(e,t,r)=>{var n=r(1873),s=r(7828),i=r(5288),o=r(5911),a=r(317),c=r(4247),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var d=1&n;if(f||(f=c),e.size!=t.size&&!d)return!1;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var y=o(f(e),f(t),n,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:(e,t,r)=>{var n=r(2),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),d=a.get(t);if(f&&d)return f==t&&d==e;var m=!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)){m=!1;break}y||(y="constructor"==h)}if(m&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(m=!1)}return a.delete(e),a.delete(t),m}},4840:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},2:(e,t,r)=>{var n=r(2199),s=r(4664),i=r(5950);e.exports=function(e){return n(e,i,s)}},2651:(e,t,r)=>{var n=r(4218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110:(e,t,r)=>{var n=r(5083),s=r(392);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},659:(e,t,r)=>{var n=r(1873),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},4664:(e,t,r)=>{var n=r(9770),s=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},5861:(e,t,r)=>{var n=r(5580),s=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",f="[object WeakMap]",d="[object DataView]",m=l(n),y=l(s),g=l(i),v=l(o),b=l(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||s&&x(new s)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=f)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case m:return d;case y:return u;case g:return p;case v:return h;case b:return f}return t}),e.exports=x},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,r)=>{var n=r(1042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,r)=>{var n=r(1042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},2749:(e,t,r)=>{var n=r(1042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5749:(e,t,r)=>{var n=r(1042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,r)=>{var n,s=r(5481),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,r)=>{var n=r(6025),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)}},4739:(e,t,r)=>{var n=r(6025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},8655:(e,t,r)=>{var n=r(6025);e.exports=function(e){return n(this.__data__,e)>-1}},1175:(e,t,r)=>{var n=r(6025);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}},3040:(e,t,r)=>{var n=r(1549),s=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},7670:(e,t,r)=>{var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,r)=>{var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509:(e,t,r)=>{var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},5330:(e,t,r)=>{var n=r(2651);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},1042:(e,t,r)=>{var n=r(6110)(Object,"create");e.exports=n},3650:(e,t,r)=>{var n=r(4335)(Object.keys,Object);e.exports=n},6009:(e,t,r)=>{e=r.nmd(e);var n=r(4840),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},9325:(e,t,r)=>{var n=r(4840),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},1420:(e,t,r)=>{var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,r)=>{var n=r(79),s=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428:(e,t,r)=>{var n=r(7534),s=r(346),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,r)=>{var n=r(1882),s=r(294);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},3812:(e,t,r)=>{var n=r(2552),s=r(346);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3656:(e,t,r)=>{e=r.nmd(e);var n=r(9325),s=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},2404:(e,t,r)=>{var n=r(270);e.exports=function(e,t){return n(e,t)}},1882:(e,t,r)=>{var n=r(2552),s=r(3805);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187:e=>{e.exports=function(e){return null===e}},8023:(e,t,r)=>{var n=r(2552),s=r(346);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5015:(e,t,r)=>{var n=r(2552),s=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},7167:(e,t,r)=>{var n=r(4901),s=r(7301),i=r(6009),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},5950:(e,t,r)=>{var n=r(695),s=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):s(e)}},6048: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)}}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},2340:(e,t,r)=>{const n=r(6048);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},5973: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},3110:(e,t,r)=>{const n=r(5187),s=r(5015),i=r(8023),o=r(3812),a=r(3805),c=r(5105),l=r(6804);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},866:(e,t,r)=>{const n=r(6048),s=r(2340);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},6804:(e,t,r)=>{const n=r(316),s=r(1067),i=r(1167),o=r(239),a=r(2242),c=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),f=r(2340),d=r(866),m=r(5973);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:d,KeyValuePair:m}},6303:(e,t,r)=>{const n=r(316);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)}}},4540:(e,t,r)=>{const n=r(316);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)}}},4035:(e,t,r)=>{const n=r(3110),s=r(6804);t.g$=n,t.KeyValuePair=r(5973),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(5105),r(5147)},6233:(e,t,r)=>{const n=r(6048),s=r(316),i=r(2340);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},2242:(e,t,r)=>{const n=r(316);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316:(e,t,r)=>{const n=r(2404),s=r(5973),i=r(2340);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},7726:(e,t,r)=>{const n=r(5973),s=r(316);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)}}},1067:(e,t,r)=>{const n=r(316);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")}}},239:(e,t,r)=>{const n=r(316);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045:(e,t,r)=>{const n=r(6048),s=r(3805),i=r(6233),o=r(7726),a=r(866);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)))}}},1167:(e,t,r)=>{const n=r(316);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}}},5147:(e,t,r)=>{const n=r(5105);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]))}))}}},5105: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]))}))}}},8859:(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,d=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,E=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,O=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(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 R=r(2634),F=R.custom,D=U(F)?F:null;function N(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return b.call(String(e),/"/g,""")}function q(e){return!("[object Array]"!==z(e)||k&&"object"==typeof e&&k in e)}function B(e){return!("[object RegExp]"!==z(e)||k&&"object"==typeof e&&k in e)}function U(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,s,a){var c=n||{};if(H(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!H(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=c.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 J(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return x?I(t,w):w}if("bigint"==typeof t){var A=String(t)+"n";return x?I(t,A):A}var $=void 0===c.depth?5:c.depth;if(void 0===s&&(s=0),s>=$&&$>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var F=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(c,s);if(void 0===a)a=[];else if(G(a,t)>=0)return"[Circular]";function V(t,r,n){if(r&&(a=S.call(a)).push(r),n){var i={depth:c.depth};return H(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,s+1,a)}return e(t,c,s+1,a)}if("function"==typeof t&&!B(t)){var K=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),ee=Z(t,V);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(ee.length>0?" { "+O.call(ee,", ")+" }":"")}if(U(t)){var te=_?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||_?te:W(te)}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 re="<"+E.call(String(t.nodeName)),ne=t.attributes||[],se=0;se<ne.length;se++)re+=" "+ne[se].name+"="+N(L(ne[se].value),"double",c);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+E.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ie=Z(t,V);return F&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,F)+"]":"[ "+O.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||k&&"object"==typeof e&&k in e)}(t)){var oe=Z(t,V);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(oe,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+V(t.cause),oe),", ")+" }"}if("object"==typeof t&&m){if(D&&"function"==typeof t[D]&&R)return R(t,{depth:$-s});if("symbol"!==m&&"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 ae=[];return o&&o.call(t,(function(e,r){ae.push(V(r,t,!0)+" => "+V(e,t))})),X("Map",i.call(t),ae,F)}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 ce=[];return u&&u.call(t,(function(e){ce.push(V(e,t))})),X("Set",l.call(t),ce,F)}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]"!==z(e)||k&&"object"==typeof e&&k in e)}(t))return W(V(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return W(V(P.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||k&&"object"==typeof e&&k in e)}(t))return W(d.call(t));if(function(e){return!("[object String]"!==z(e)||k&&"object"==typeof e&&k in e)}(t))return W(V(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||k&&"object"==typeof e&&k in e)}(t)&&!B(t)){var le=Z(t,V),ue=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",he=!ue&&k&&Object(t)===t&&k in t?v.call(z(t),8,-1):pe?"Object":"",fe=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||pe?"["+O.call(j.call([],he||[],pe||[]),": ")+"] ":"");return 0===le.length?fe+"{}":F?fe+"{"+Q(le,F)+"}":fe+"{ "+O.call(le,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function z(e){return m.call(e)}function G(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 J(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(v.call(e,0,t.maxStringLength),t)+n}return N(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(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":"")+x.call(t.toString(16))}function W(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):O.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=q(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=H(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(_){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)H(e,c)&&(r&&String(Number(c))===c&&c<e.length||_&&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}},5606: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 d(){}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=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,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}},4765: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}},5373:(e,t,r)=>{"use strict";var n=r(8636),s=r(2642),i=r(4765);e.exports={formats:i,parse:s,stringify:n}},2642:(e,t,r)=>{"use strict";var n=r(7720),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",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=r.allowEmptyArrays&&""===s?[]:[].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=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&a!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(o=[])[p]=s:"__proto__"!==u&&(o[u]=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(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");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,r=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,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,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,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,duplicates:r,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,d=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?d="utf-8":"utf8=%26%2310003%3B"===h[r]&&(d="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var m,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,o.decoder,d,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),o.decoder,d,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y);var x=s.call(l,m);x&&"combine"===t.duplicates?l[m]=n.combine(l[m],y):x&&"last"!==t.duplicates||(l[m]=y)}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var d=h[f],m=l(d,u[d],r,"string"==typeof e);p=n.merge(p,m,r)}return!0===r.allowSparse?p:n.compact(p)}},8636:(e,t,r)=>{"use strict";var n=r(920),s=r(7720),i=r(4765),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,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function e(t,r,i,o,a,l,p,h,m,y,g,v,b,x,E,w,j,O){for(var S,A=t,P=O,$=0,T=!1;void 0!==(P=P.get(d))&&!T;){var _=P.get(t);if($+=1,void 0!==_){if(_===$)throw new RangeError("Cyclic object value");T=!0}void 0===P.get(d)&&($=0)}if("function"==typeof y?A=y(r,A):A instanceof Date?A=b(A):"comma"===i&&c(A)&&(A=s.maybeMap(A,(function(e){return e instanceof Date?b(e):e}))),null===A){if(l)return m&&!w?m(r,f.encoder,j,"key",x):r;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||s.isBuffer(A))return m?[E(w?r:m(r,f.encoder,j,"key",x))+"="+E(m(A,f.encoder,j,"value",x))]:[E(r)+"="+E(String(A))];var k,M=[];if(void 0===A)return M;if("comma"===i&&c(A))w&&m&&(A=s.maybeMap(A,m)),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(y))k=y;else{var C=Object.keys(A);k=g?C.sort(g):C}var I=h?r.replace(/\./g,"%2E"):r,R=o&&c(A)&&1===A.length?I+"[]":I;if(a&&c(A)&&0===A.length)return R+"[]";for(var F=0;F<k.length;++F){var D=k[F],N="object"==typeof D&&void 0!==D.value?D.value:A[D];if(!p||null!==N){var L=v&&h?D.replace(/\./g,"%2E"):D,q=c(A)?"function"==typeof i?i(R,L):R:R+(v?"."+L:"["+L+"]");O.set(t,$);var B=n();B.set(d,O),u(M,e(N,q,i,o,a,l,p,h,"comma"===i&&w&&c(A)?null:m,y,g,v,b,x,E,w,j,B))}}return M};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");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,s=i.formatters[r],l=f.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),n=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:l,format:r,formatter:s,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=[];if("object"!=typeof s||null===s)return"";var h=a[l.arrayFormat],d="comma"===h&&l.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var y=n(),g=0;g<r.length;++g){var v=r[g];l.skipNulls&&null===s[v]||u(p,m(s[v],v,h,d,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var b=p.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),b.length>0?x+b:""}},7720:(e,t,r)=>{"use strict";var n=r(4765),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},c=1024;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 l="",u=0;u<a.length;u+=c){for(var p=a.length>=c?a.slice(u,u+c):a,h=[],f=0;f<p.length;++f){var d=p.charCodeAt(f);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?h[h.length]=p.charAt(f):d<128?h[h.length]=o[d]:d<2048?h[h.length]=o[192|d>>6]+o[128|63&d]:d<55296||d>=57344?h[h.length]=o[224|d>>12]+o[128|d>>6&63]+o[128|63&d]:(f+=1,d=65536+((1023&d)<<10|1023&p.charCodeAt(f)),h[h.length]=o[240|d>>18]+o[128|d>>12&63]+o[128|d>>6&63]+o[128|63&d])}l+=h.join("")}return l},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)}}},6897:(e,t,r)=>{"use strict";var n=r(453),s=r(41),i=r(592)(),o=r(5795),a=r(9675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(i?s(e,"length",t,!0,!0):s(e,"length",t)),e}},3306:e=>{"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,a=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&o(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),l={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>d});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),c(this,"setDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const n=`_${e}_dict_ranges`,s=this._dict_ranges[n];Object.keys(s).forEach((e=>{const n=e;for(this.dictRange=s[n],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-e))}this.dict=r,this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{let t,r,n;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",n=0;n<e;n+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const n=e.slice(0,2),s=parseInt(e.slice(2),10);return"$s"===n?r[n]().padStart(s,"0"):"$t"===n&&t?r[n](s,t):r[n](s)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const n=e-9,s=Math.round(Math.random()*(n>15?15:n)),i=this.randomUUID(n);return`${i.substring(0,s)}${r}${i.substring(s)}${s.toString(16)}`})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),n=parseInt(e.slice(2),10);return t[r](n)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,n)=>e.substring(r.length,r.length+n.length))):e;if(8===r.length)return new Date(1e3*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const n=parseInt(r.substring(r.length-1),16);return new Date(1e3*parseInt(r.substring(n,n+8),16))})),c(this,"setCounter",(e=>{this.counter=e}));const t=a(a({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.0.2";const{dictionary:r,shuffle:n,length:s,counter:i}=t;return this.uuidLength=s,this.setDictionary(r,n),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};c(h,"default",h);var f,d=h;return f=l,((n,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))s.call(n,c)||c===o||e(n,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return n})(e({},"__esModule",{value:!0}),f)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},920:(e,t,r)=>{"use strict";var n=r(453),s=r(8075),i=r(8859),o=r(9675),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),d=s("Map.prototype.has",!0),m=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=m(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 d(t,n)}else if(r)return function(e,t){return!!m(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=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},2646: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",d="deepProps",m="deepStatics",y="deepConf",g="initializers",v="methods",b="composers",x="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var j=w.bind(0,(function(e,t){if(t)for(var r=E(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function O(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||O(e)}function A(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!A(n))return n;for(var s,i,o=E(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(A(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function $(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return O(e)&&r.indexOf(e)===t}))).length?r:t}function T(e,t){function n(r,n){S(t[r])&&(S(e[r])||(e[r]={}),(n||j)(e[r],t[r]))}function s(n){(r=$(e[n],t[n]))&&(e[n]=r)}return t&&S(t=t[x]||t)&&(n(v),n(o),n(a,P),n(c),n(l),n(u,P),n(p),n(h),n(f,P),s(g),s(b)),e}function _(){return function(e){return r=function e(r){var n,s,i=e[x]||{},l={__proto__:i[v]},u=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&P(l,h),(h=i[o])&&j(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)O(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&P(r,n),(n=e[l])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=O(r[x])?r[x]:_,j(r[x]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(T,{}))}function k(e){return O(e)&&O(e[x])}var M={};function C(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[x]||n).call(r,s)}}M[v]=C(v,j),M[o]=M.props=C(o,j),M[g]=M.init=C(g,$),M[b]=C(b,$),M[a]=M[d]=C(a,P),M[l]=M.statics=C(l,j),M[u]=M[m]=C(u,P),M[h]=M.conf=C(h,j),M[f]=M[y]=C(f,P),M[c]=C(c,j),M[p]=C(p,j),n=M[x]=j((function(){for(var e,E,w=0,O=[],A=arguments,T=this;w<A.length;)S(e=A[w++])&&O.push(k(e)?e:((s={})[v]=(E=e)[v]||t,n=E.props,s[o]=S((r=E[o])||n)?j({},n,r):t,s[g]=$(E.init,E[g]),s[b]=$(E[b]),n=E[d],s[a]=S((r=E[a])||n)?P({},n,r):t,s[c]=E[c],n=E.statics,s[l]=S((r=E[l])||n)?j({},n,r):t,n=E[m],s[u]=S((r=E[u])||n)?P({},n,r):t,r=E[p],s[p]=S((n=E.name&&{name:{value:E.name}})||r)?j({},r,n):t,n=E.conf,s[h]=S((r=E[h])||n)?j({},n,r):t,n=E[y],s[f]=S((r=E[f])||n)?P({},n,r):t,s));if(e=_.apply(T||i,O),T&&O.unshift(T),Array.isArray(A=e[x][b]))for(w=0;w<A.length;)e=k(T=A[w++]({stamp:e,composables:O}))?T:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[l]=M,i=_(s),n[x]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},6623: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.propertyIsEnumerable,o=Object.getOwnPropertySymbols;function a(e){var t=s(e);if(o)for(var r=o(e),n=0;n<r.length;n++)i.call(e,r[n])&&t.push(r[n]);return t}var c=Object.prototype.hasOwnProperty||function(e,t){return t in e};function l(e){if("object"==typeof e&&null!==e){var s;if(r(e))s=[];else if("[object Date]"===t(e))s=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))s=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))s={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))s=Object(e);else if(Object.create&&Object.getPrototypeOf)s=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)s={};else{var i=e.constructor&&e.constructor.prototype||e.__proto__||{},o=function(){};o.prototype=i,s=new o}return n(a(e),(function(t){s[t]=e[t]})),s}return e}function u(e,t,s){var i=[],o=[],u=!0;return function e(p){var h=s?l(p):p,f={},d=!0,m={node:h,node_:p,path:[].concat(i),parent:o[o.length-1],parents:o,key:i[i.length-1],isRoot:0===i.length,level:i.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(d=!1)},delete:function(e){delete m.parent.node[m.key],e&&(d=!1)},remove:function(e){r(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(d=!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(){d=!1}};if(!u)return m;function y(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=a(m.node)),m.isLeaf=0===m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===p){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}y();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),f.before&&f.before.call(m,m.node),d?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),y(),n(m.keys,(function(t,r){i.push(t),f.pre&&f.pre.call(m,m.node[t],t);var n=e(m.node[t]);s&&c.call(m.node,t)&&(m.node[t]=n.node),n.isLast=r===m.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(m,n),i.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function p(e){this.value=e}function h(e){return new p(e)}p.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!c.call(t,n))return;t=t[n]}return t},p.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!c.call(t,n))return!1;t=t[n]}return!0},p.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var s=e[n];c.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t},p.prototype.map=function(e){return u(this.value,e,!0)},p.prototype.forEach=function(e){return this.value=u(this.value,e,!1),this.value},p.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},p.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},p.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},p.prototype.clone=function(){var e=[],t=[];return function r(s){for(var i=0;i<e.length;i++)if(e[i]===s)return t[i];if("object"==typeof s&&null!==s){var o=l(s);return e.push(s),t.push(o),n(a(s),(function(e){o[e]=r(s[e])})),e.pop(),t.pop(),o}return s}(this.value)},n(a(p.prototype),(function(e){h[e]=function(t){var r=[].slice.call(arguments,1),n=new p(t);return n[e].apply(n,r)}})),e.exports=h},2634:()=>{},8675:(e,t,r)=>{e.exports=r(1523)}},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:()=>Zj});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Xr,_areEquals:()=>cn,applyOperation:()=>rn,applyPatch:()=>nn,applyReducer:()=>sn,deepClone:()=>Qr,getValueByPointer:()=>tn,validate:()=>an,validator:()=>on});var t={};r.r(t),r.d(t,{compare:()=>yn,generate:()=>dn,observe:()=>fn,unobserve:()=>hn});var s={};r.r(s),r.d(s,{bJ:()=>eo,uQ:()=>Ki,Zd:()=>Qi,isHttpUrl:()=>Yi,hd:()=>to,aj:()=>ro,z9:()=>Zi,zj:()=>no});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ha,includesClasses:()=>Ga,includesSymbols:()=>za,isAnnotationElement:()=>La,isArrayElement:()=>Ra,isBooleanElement:()=>Ca,isCommentElement:()=>qa,isElement:()=>Ta,isLinkElement:()=>Da,isMemberElement:()=>Fa,isNullElement:()=>Ma,isNumberElement:()=>ka,isObjectElement:()=>Ia,isParseResultElement:()=>Ba,isPrimitiveElement:()=>Va,isRefElement:()=>Na,isSourceMapElement:()=>Ua,isStringElement:()=>_a});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>dh,isJSONSchemaElement:()=>fh,isLinkDescriptionElement:()=>yh,isMediaElement:()=>mh});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Jf,isCallbackElement:()=>Pf,isComponentsElement:()=>$f,isContactElement:()=>Tf,isExampleElement:()=>_f,isExternalDocumentationElement:()=>kf,isHeaderElement:()=>Mf,isInfoElement:()=>Cf,isLicenseElement:()=>If,isLinkElement:()=>Rf,isMediaTypeElement:()=>Qf,isOpenApi3_0Element:()=>Df,isOpenapiElement:()=>Ff,isOperationElement:()=>Nf,isParameterElement:()=>Lf,isPathItemElement:()=>qf,isPathsElement:()=>Bf,isReferenceElement:()=>Uf,isRequestBodyElement:()=>Vf,isResponseElement:()=>Hf,isResponsesElement:()=>zf,isSchemaElement:()=>Gf,isSecurityRequirementElement:()=>Kf,isSecuritySchemeElement:()=>Wf,isServerElement:()=>Yf,isServerVariableElement:()=>Xf,isServersElement:()=>Zf});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>Ob,isCallbackElement:()=>tb,isComponentsElement:()=>rb,isContactElement:()=>nb,isExampleElement:()=>sb,isExternalDocumentationElement:()=>ib,isHeaderElement:()=>ob,isInfoElement:()=>ab,isJsonSchemaDialectElement:()=>cb,isLicenseElement:()=>lb,isLinkElement:()=>ub,isMediaTypeElement:()=>Tb,isOpenApi3_1Element:()=>hb,isOpenapiElement:()=>pb,isOperationElement:()=>fb,isParameterElement:()=>db,isPathItemElement:()=>mb,isPathItemElementExternal:()=>yb,isPathsElement:()=>gb,isReferenceElement:()=>vb,isReferenceElementExternal:()=>bb,isRequestBodyElement:()=>xb,isResponseElement:()=>Eb,isResponsesElement:()=>wb,isSchemaElement:()=>jb,isSecurityRequirementElement:()=>Sb,isSecuritySchemeElement:()=>Ab,isServerElement:()=>Pb,isServerVariableElement:()=>$b});var l={};r.r(l),r.d(l,{cookie:()=>Cj,header:()=>Mj,path:()=>Tj,query:()=>_j});const u="application/json, application/yaml",p="https://swagger.io",h=Object.freeze({url:"/"}),{fetch:f,Response:d,Headers:m,Request:y,FormData:g,File:v,Blob:b}=globalThis;void 0===globalThis.fetch&&(globalThis.fetch=f),void 0===globalThis.Headers&&(globalThis.Headers=m),void 0===globalThis.Request&&(globalThis.Request=y),void 0===globalThis.Response&&(globalThis.Response=d),void 0===globalThis.FormData&&(globalThis.FormData=g),void 0===globalThis.File&&(globalThis.File=v),void 0===globalThis.Blob&&(globalThis.Blob=b);var x=r(5373),E=r.n(x);function w(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function j(e,t){return Array.isArray(e)&&e.some((e=>w(e,t)))}class O extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const S=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,A=e=>/^[a-z0-9\-._~]+$/i.test(e);function P(e,t="reserved"){return[...e].map((e=>{if(A(e))return e;if(S(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function $(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:n,escape:s}){if("simple"===r)return t.map((e=>T(e,s))).join(",");if("label"===r)return`.${t.map((e=>T(e,s))).join(".")}`;if("matrix"===r)return t.map((e=>T(e,s))).reduce(((t,r)=>!t||n?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=n?`&${e}=`:",";return t.map((e=>T(e,s))).join(r)}if("spaceDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>T(e,s))).join(` ${r}`)}if("pipeDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>T(e,s))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:n,escape:s}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=T(t[r],s);return`${e?`${e},`:""}${r}${n?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=T(t[r],s);return`${e?`${e}.`:"."}${r}${n?"=":"."}${i}`}),"");if("matrix"===r&&n)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${T(t[r],s)}`),"");if("matrix"===r)return i.reduce(((r,n)=>{const i=T(t[n],s);return`${r?`${r},`:`;${e}=`}${n},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=T(t[r],s);return`${e?`${e}${n?"&":","}`:""}${r}${n?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:n}){if("simple"===r)return T(t,n);if("label"===r)return`.${T(t,n)}`;if("matrix"===r)return`;${e}=${T(t,n)}`;if("form"===r)return T(t,n);if("deepObject"===r)return T(t,n);return}(e)}function T(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&e.length>0?P(e,t):e}const _={form:",",spaceDelimited:"%20",pipeDelimited:"|"},k={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function M(e,t,r=!1){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(w(a)||j(a))return[[l,a]];if(i)return C(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 C(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 O(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new O(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(k[n||"csv"])]]:[[l,""]]}function C(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=>T(e,o),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(_[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 I(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of M(r,e[r]))t[n]=s instanceof O?s.valueOf():s;return t}),{});return E().stringify(t,{encode:!1,indices:!1})||""}function R(e={}){const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return w(t)||j(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(s=e.form,Object.entries(s).reduce(((e,[t,r])=>{for(const[n,s]of M(t,r,!0))if(Array.isArray(s))for(const t of s)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(n,r)}else e.append(n,t);else if(ArrayBuffer.isView(s)){const t=new Blob([s]);e.append(n,t)}else e.append(n,s);return e}),new FormData));e.formdata=t,e.body=t}else e.body=I(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=E().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=E().stringify(e,{encode:!0})}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,I(r));e.url=n+o,delete e.query}return e}function F(e){return null==e}var D={isNothing:F,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:F(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend: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 N(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 L(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=N(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L.prototype.toString=function(e){return this.name+": "+N(this,e)};var q=L;function B(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function U(e,t){return D.repeat(" ",t-e.length)+e}var V=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,s=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=B(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=D.repeat(" ",t.indent)+U((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=B(e.buffer,s[o],i[o],e.position,p),l+=D.repeat(" ",t.indent)+U((e.line+1).toString(),u)+" | "+c.str+"\n",l+=D.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=B(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=D.repeat(" ",t.indent)+U((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},H=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],z=["scalar","sequence","mapping"];var G=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===H.indexOf(t))throw new q('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===z.indexOf(this.kind))throw new q('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function J(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 K(e){return this.extend(e)}K.prototype.extend=function(e){var t=[],r=[];if(e instanceof G)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 q("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 G))throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new q("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 q("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 G))throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(K.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=J(n,"implicit"),n.compiledExplicit=J(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 W=K,Y=new G("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),X=new G("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),Q=new G("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Z=new W({explicit:[Y,X,Q]});var ee=new G("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 te=new G("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 re(e){return 48<=e&&e<=55}function ne(e){return 48<=e&&e<=57}var se=new G("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(!re(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!ne(e.charCodeAt(s)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!D.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ie=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var oe=/^[-+]?[0-9]+e/;var ae=new G("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ie.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||D.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(D.isNegativeZero(e))return"-0.0";return r=e.toString(10),oe.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),ce=Z.extend({implicit:[ee,te,se,ae]}),le=ce,ue=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),pe=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 he=new G("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==ue.exec(e)||null!==pe.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=ue.exec(e))&&(t=pe.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 fe=new G("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var me=new G("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=de;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=de,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=de;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}}),ye=Object.prototype.hasOwnProperty,ge=Object.prototype.toString;var ve=new G("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]"!==ge.call(n))return!1;for(s in n)if(ye.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:[]}}),be=Object.prototype.toString;var xe=new G("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]"!==be.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}}),Ee=Object.prototype.hasOwnProperty;var we=new G("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Ee.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),je=le.extend({implicit:[he,fe],explicit:[me,ve,xe,we]}),Oe=Object.prototype.hasOwnProperty,Se=1,Ae=2,Pe=3,$e=4,Te=1,_e=2,ke=3,Me=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ce=/[\x85\u2028\u2029]/,Ie=/[,\[\]\{\}]/,Re=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function De(e){return Object.prototype.toString.call(e)}function Ne(e){return 10===e||13===e}function Le(e){return 9===e||32===e}function qe(e){return 9===e||32===e||10===e||13===e}function Be(e){return 44===e||91===e||93===e||123===e||125===e}function Ue(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ve(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 He(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var ze=new Array(256),Ge=new Array(256),Je=0;Je<256;Je++)ze[Je]=Ve(Je)?1:0,Ge[Je]=Ve(Je);function Ke(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||je,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 We(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=V(r),new q(t,r)}function Ye(e,t){throw We(e,t)}function Xe(e,t){e.onWarning&&e.onWarning.call(null,We(e,t))}var Qe={YAML:function(e,t,r){var n,s,i;null!==e.version&&Ye(e,"duplication of %YAML directive"),1!==r.length&&Ye(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Ye(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&Ye(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Xe(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Ye(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],Re.test(n)||Ye(e,"ill-formed tag handle (first argument) of the TAG directive"),Oe.call(e.tagMap,n)&&Ye(e,'there is a previously declared suffix for "'+n+'" tag handle'),Fe.test(s)||Ye(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Ye(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Ze(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||Ye(e,"expected valid JSON character");else Me.test(a)&&Ye(e,"the stream contains non-printable characters");e.result+=a}}function et(e,t,r,n){var s,i,o,a;for(D.isObject(r)||Ye(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],Oe.call(t,i)||(t[i]=r[i],n[i]=!0)}function tt(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])&&Ye(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===De(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===De(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)et(e,t,i[l],r);else et(e,t,i,r);else e.json||Oe.call(r,s)||!Oe.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Ye(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 rt(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Ye(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function nt(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;Le(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(!Ne(s))break;for(rt(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&&Xe(e,"deficient indentation"),n}function st(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))&&!qe(t)))}function it(e,t){1===t?e.result+=" ":t>1&&(e.result+=D.repeat("\n",t-1))}function ot(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,Ye(e,"tab characters must not be used in indentation")),45===n)&&qe(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,lt(e,t,Pe,!1,!0),o.push(e.result),nt(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Ye(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 at(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Ye(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)):Ye(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!qe(s);)33===s&&(o?Ye(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Re.test(r)||Ye(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),Ie.test(n)&&Ye(e,"tag suffix cannot contain flow indicator characters")}n&&!Fe.test(n)&&Ye(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Ye(e,"tag name is malformed: "+n)}return i?e.tag=n:Oe.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Ye(e,'undeclared tag handle "'+r+'"'),!0}function ct(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Ye(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!qe(r)&&!Be(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ye(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function lt(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,d=1,m=!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=$e===r||Pe===r,n&&nt(e,!0,-1)&&(m=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;at(e)||ct(e);)nt(e,!0,-1)?(m=!0,a=i,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):a=!1;if(a&&(a=m||s),1!==d&&$e!==r||(h=Se===r||Ae===r?t:t+1,f=e.position-e.lineStart,1===d?a&&(ot(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),d=null,m=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,Ye(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!qe(n)){if(o=e.line,a=e.lineStart,c=e.position,!lt(e,r,Ae,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);Le(l);)l=e.input.charCodeAt(++e.position);if(58===l)qe(l=e.input.charCodeAt(++e.position))||Ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(tt(e,h,f,d,m,null,o,a,c),d=m=y=null),v=!0,g=!1,s=!1,d=e.tag,m=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Ye(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(tt(e,h,f,d,m,null,o,a,c),d=m=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):Ye(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),lt(e,t,$e,!0,s)&&(g?m=e.result:y=e.result),g||(tt(e,h,f,d,m,y,o,a,c),d=m=y=null),nt(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)Ye(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&tt(e,h,f,d,m,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,d=!0,m=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(nt(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;d?44===f&&Ye(e,"expected the node content, but found ','"):Ye(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&qe(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,nt(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,lt(e,t,Se,!1,!0),p=e.tag,u=e.result,nt(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),nt(e,!0,t),lt(e,t,Se,!1,!0),h=e.result),l?tt(e,i,g,p,u,h,r,n,s):a?i.push(tt(e,null,g,p,u,h,r,n,s)):i.push(u),nt(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(d=!0,f=e.input.charCodeAt(++e.position)):d=!1}Ye(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=Te,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)Te===a?a=43===i?ke:_e:Ye(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?Ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ye(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(Le(i)){do{i=e.input.charCodeAt(++e.position)}while(Le(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Ne(i)&&0!==i)}for(;0!==i;){for(rt(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),Ne(i))p++;else{if(e.lineIndent<u){a===ke?e.result+=D.repeat("\n",c?1+p:p):a===Te&&c&&(e.result+="\n");break}for(n?Le(i)?(h=!0,e.result+=D.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=D.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=D.repeat("\n",p):e.result+=D.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Ne(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ze(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(Ze(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else Ne(r)?(Ze(e,n,s,!0),it(e,nt(e,!1,t)),n=s=e.position):e.position===e.lineStart&&st(e)?Ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Ye(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 Ze(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ze(e,r,e.position,!0),Ne(a=e.input.charCodeAt(++e.position)))nt(e,!1,t);else if(a<256&&ze[a])e.result+=Ge[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=Ue(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Ye(e,"expected hexadecimal character");e.result+=He(i),e.position++}else Ye(e,"unknown escape sequence");r=n=e.position}else Ne(a)?(Ze(e,r,n,!0),it(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&st(e)?Ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Ye(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&&!qe(n)&&!Be(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Ye(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Oe.call(e.anchorMap,r)||Ye(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],nt(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(qe(u=e.input.charCodeAt(e.position))||Be(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(qe(n=e.input.charCodeAt(e.position+1))||r&&Be(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(qe(n=e.input.charCodeAt(e.position+1))||r&&Be(n))break}else if(35===u){if(qe(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&st(e)||r&&Be(u))break;if(Ne(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,nt(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&&(Ze(e,s,i,!1),it(e,e.line-a),s=i=e.position,o=!1),Le(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ze(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,Se===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||Ye(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===d&&(y=a&&ot(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&&Ye(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(Oe.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||Ye(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Ye(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)):Ye(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 ut(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))&&(nt(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&&!qe(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Ye(e,"directive name must not be less than one character in length");0!==s;){for(;Le(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!Ne(s));break}if(Ne(s))break;for(t=e.position;0!==s&&!qe(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&rt(e),Oe.call(Qe,r)?Qe[r](e,r,n):Xe(e,'unknown document directive "'+r+'"')}nt(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,nt(e,!0,-1)):o&&Ye(e,"directives end mark is expected"),lt(e,e.lineIndent-1,$e,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&Ce.test(e.input.slice(i,e.position))&&Xe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&st(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,nt(e,!0,-1)):e.position<e.length-1&&Ye(e,"end of the stream or a document separator is expected")}function pt(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 Ke(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Ye(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;)ut(r);return r.documents}var ht={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=pt(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},load:function(e,t){var r=pt(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new q("expected a single document in the stream, but found more")}}},ft=Object.prototype.toString,dt=Object.prototype.hasOwnProperty,mt=65279,yt=9,gt=10,vt=13,bt=32,xt=33,Et=34,wt=35,jt=37,Ot=38,St=39,At=42,Pt=44,$t=45,Tt=58,_t=61,kt=62,Mt=63,Ct=64,It=91,Rt=93,Ft=96,Dt=123,Nt=124,Lt=125,qt={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Bt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ut=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Vt(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 q("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+D.repeat("0",n-t.length)+t}var Ht=1,zt=2;function Gt(e){this.schema=e.schema||je,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=D.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,a,c;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&dt.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?zt:Ht,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 Jt(e,t){for(var r,n=D.repeat(" ",t),s=0,i=-1,o="",a=e.length;s<a;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function Kt(e,t){return"\n"+D.repeat(" ",e.indent*t)}function Wt(e){return e===bt||e===yt}function Yt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==mt||65536<=e&&e<=1114111}function Xt(e){return Yt(e)&&e!==mt&&e!==vt&&e!==gt}function Qt(e,t,r){var n=Xt(e),s=n&&!Wt(e);return(r?n:n&&e!==Pt&&e!==It&&e!==Rt&&e!==Dt&&e!==Lt)&&e!==wt&&!(t===Tt&&!s)||Xt(t)&&!Wt(t)&&e===wt||t===Tt&&s}function Zt(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 er(e){return/^\n* /.test(e)}var tr=1,rr=2,nr=3,sr=4,ir=5;function or(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,d=-1!==n,m=-1,y=Yt(l=Zt(e,0))&&l!==mt&&!Wt(l)&&l!==$t&&l!==Mt&&l!==Tt&&l!==Pt&&l!==It&&l!==Rt&&l!==Dt&&l!==Lt&&l!==wt&&l!==Ot&&l!==At&&l!==xt&&l!==Nt&&l!==_t&&l!==kt&&l!==St&&l!==Et&&l!==jt&&l!==Ct&&l!==Ft&&function(e){return!Wt(e)&&e!==Tt}(Zt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Yt(u=Zt(e,c)))return ir;y=y&&Qt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Zt(e,c))===gt)h=!0,d&&(f=f||c-m-1>n&&" "!==e[m+1],m=c);else if(!Yt(u))return ir;y=y&&Qt(u,p,a),p=u}f=f||d&&c-m-1>n&&" "!==e[m+1]}return h||f?r>9&&er(e)?ir:o?i===zt?ir:rr:f?sr:nr:!y||o||s(e)?i===zt?ir:rr:tr}function ar(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===zt?'""':"''";if(!e.noCompatMode&&(-1!==Bt.indexOf(t)||Ut.test(t)))return e.quotingType===zt?'"'+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(or(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 tr:return t;case rr:return"'"+t.replace(/'/g,"''")+"'";case nr:return"|"+cr(t,e.indent)+lr(Jt(t,i));case sr:return">"+cr(t,e.indent)+lr(Jt(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,ur(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")+ur(l,t),o=r}return i}(t,o),i));case ir:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Zt(e,s),!(t=qt[n])&&Yt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Vt(n);return r}(t)+'"';default:throw new q("impossible error: invalid scalar style")}}()}function cr(e,t){var r=er(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function lr(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ur(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 pr(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)),(fr(e,t+1,o,!0,!0,!1,!0)||void 0===o&&fr(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=Kt(e,t)),e.dump&>===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function hr(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]"===ft.call(a.represent))n=a.represent(t,c);else{if(!dt.call(a.represent,c))throw new q("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function fr(e,t,r,n,s,i,o){e.tag=null,e.dump=r,hr(e,r,!1)||hr(e,r,!0);var a,c=ft.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 q("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=Kt(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),fr(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&>===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Kt(e,t)),fr(e,t+1,a,!0,c)&&(e.dump&>===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)),fr(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),fr(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?pr(e,t-1,e.dump,s):pr(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)),(fr(e,t,i,!1,!1)||void 0===i&&fr(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 q("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&ar(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 dr(e,t){var r,n,s=[],i=[];for(mr(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function mr(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)mr(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)mr(e[n[s]],t,r)}function yr(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 gr=G,vr=W,br=Z,xr=ce,Er=le,wr=je,jr=ht.load,Or=ht.loadAll,Sr={dump:function(e,t){var r=new Gt(t=t||{});r.noRefs||dr(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),fr(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,Ar=q,Pr={binary:me,float:ae,map:Q,null:ee,pairs:xe,set:we,timestamp:he,bool:te,int:se,merge:fe,omap:ve,seq:X,str:Y},$r=yr("safeLoad","load"),Tr=yr("safeLoadAll","loadAll"),_r=yr("safeDump","dump");const kr={Type:gr,Schema:vr,FAILSAFE_SCHEMA:br,JSON_SCHEMA:xr,CORE_SCHEMA:Er,DEFAULT_SCHEMA:wr,load:jr,loadAll:Or,dump:Sr,YAMLException:Ar,types:Pr,safeLoad:$r,safeLoadAll:Tr,safeDump:_r},Mr=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Cr(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Ir(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Cr(e.headers)},s=n.headers["content-type"],i=r||Mr(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}))}async function Rr(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=R(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Ir(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}function Fr(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:u},credentials:s}).then((e=>e.body))}const Dr=e=>{const{baseDoc:t,url:r}=e,n=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(n,globalThis.document.baseURI)):n},Nr=e=>{const{fetch:t,http:r}=e;return t||r||Rr};var Lr,qr=(Lr=function(e,t){return Lr=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])},Lr(e,t)},function(e,t){function r(){this.constructor=e}Lr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Br=Object.prototype.hasOwnProperty;function Ur(e,t){return Br.call(e,t)}function Vr(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)Ur(e,s)&&n.push(s);return n}function Hr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function zr(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Gr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Jr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Kr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Kr(e[t]))return!0}else if("object"==typeof e)for(var n=Vr(e),s=n.length,i=0;i<s;i++)if(Kr(e[n[i]]))return!0;return!1}function Wr(e,t){var r=[e];for(var n in t){var s="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==s&&r.push(n+": "+s)}return r.join("\n")}var Yr=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,Wr(t,{name:r,index:n,operation:s,tree:i}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=Wr(t,{name:r,index:n,operation:s,tree:i}),a}return qr(t,e),t}(Error),Xr=Yr,Qr=Hr,Zr={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=tn(r,this.path);n&&(n=Hr(n));var s=rn(r,{op:"remove",path:this.from}).removed;return rn(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=tn(r,this.from);return rn(r,{op:"add",path:this.path,value:Hr(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:cn(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},en={add:function(e,t,r){return zr(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:Zr.move,copy:Zr.copy,test:Zr.test,_get:Zr._get};function tn(e,t){if(""==t)return e;var r={op:"_get",path:t};return rn(e,r),r.value}function rn(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):on(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=tn(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=cn(e,t.value),!1===o.test)throw new Xr("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 Xr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Hr(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:on;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Jr(h)),s&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!zr(h))throw new Xr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);zr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Xr("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=en[t.op].call(t,c,h,e)).test)throw new Xr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=Zr[t.op].call(t,c,h,e)).test)throw new Xr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Xr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function nn(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new Xr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Hr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=rn(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function sn(e,t,r){var n=rn(e,t);if(!1===n.test)throw new Xr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function on(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Xr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Zr[e.op])throw new Xr("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 Xr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Xr('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 Xr("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 Xr("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)&&Kr(e.value))throw new Xr("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 Xr("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 Xr("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=an([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Xr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function an(e,t,r){try{if(!Array.isArray(e))throw new Xr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)nn(Hr(t),Hr(e),r||!0);else{r=r||on;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Xr)return e;throw e}}function cn(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(!cn(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(!cn(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var ln=new WeakMap,un=function(e){this.observers=new Map,this.obj=e},pn=function(e,t){this.callback=e,this.observer=t};function hn(e,t){t.unobserve()}function fn(e,t){var r,n=function(e){return ln.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new un(e),ln.set(e,n);if(r)return r;if(r={},n.value=Hr(e),t){r.callback=t,r.next=null;var i=function(){dn(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(){dn(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 pn(t,r)),r}function dn(e,t){void 0===t&&(t=!1);var r=ln.get(e.object);mn(r.value,e.object,e.patches,"",t),e.patches.length&&nn(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=Vr(t),o=Vr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!Ur(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+"/"+Gr(p),value:Hr(l)}),r.push({op:"remove",path:n+"/"+Gr(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+"/"+Gr(p),s):l!==u&&(!0,s&&r.push({op:"test",path:n+"/"+Gr(p),value:Hr(l)}),r.push({op:"replace",path:n+"/"+Gr(p),value:Hr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;Ur(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+Gr(p),value:Hr(t[p])})}}}function yn(e,t,r){void 0===r&&(r=!1);var n=[];return mn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:Yr,deepClone:Hr,escapePathComponent:Gr,unescapePathComponent:Jr});var gn=r(4744),vn=r.n(gn);const bn={add:function(e,t){return{op:"add",path:e,value:t}},replace:En,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&xn(t.path)}).op){const r=In(e,t.path);Object.assign(r,t.value),nn(e,[En(t.path,r)])}else if("mergeDeep"===t.op){const r=In(e,t.path),n=vn()(r,t.value);e=nn(e,[En(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&$n(t.value)){nn(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${xn(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Mn(t)&&(Array.isArray(t.value)||$n(t.value))&&(n={...n,...t.meta}),e=n}else if(nn(e,[t]),r.allowMetaPatches&&t.meta&&Mn(t)&&(Array.isArray(t.value)||$n(t.value))){const r={...In(e,t.path),...t.meta};nn(e,[En(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:An,fullyNormalizeArray:function(e){return Pn(An(Sn(e)))},normalizeArray:Sn,isPromise:function(e){return $n(e)&&Tn(e.then)},forEachNew:function(e,t){try{return wn(e,On,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return wn(e,jn,t)}catch(e){return e}},isJsonPatch:_n,isContextPatch:function(e){return Cn(e)&&"context"===e.type},isPatch:Cn,isMutation:kn,isAdditiveMutation:Mn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Tn,isObject:$n,isError:function(e){return e instanceof Error}};function xn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function En(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function wn(e,t,r){return Pn(An(e.filter(Mn).map((e=>t(e.value,r,e.path)))||[]))}function jn(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>jn(e,t,r.concat(n)))):$n(e)?Object.keys(e).map((n=>jn(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function On(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)=>On(e,t,r.concat(n))));s&&(n=n.concat(s))}else if($n(e)){const s=Object.keys(e).map((n=>On(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=An(n),n}function Sn(e){return Array.isArray(e)?e:[e]}function An(e){return[].concat(...e.map((e=>Array.isArray(e)?An(e):e)))}function Pn(e){return e.filter((e=>void 0!==e))}function $n(e){return e&&"object"==typeof e}function Tn(e){return e&&"function"==typeof e}function _n(e){if(Cn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function kn(e){return _n(e)||Cn(e)&&"mutation"===e.type}function Mn(e){return kn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Cn(e){return e&&"object"==typeof e}function In(e,t){try{return tn(e,t)}catch(e){return console.error(e),{}}}var Rn=r(8675);const Fn=class extends Rn{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Dn extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Fn,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Nn=Dn;const Ln=class extends Nn{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};var qn=r(5606);const Bn={"@@functional/placeholder":!0};function Un(e){return e===Bn}function Vn(e){return function t(r){return 0===arguments.length||Un(r)?t:e.apply(this,arguments)}}function Hn(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Un(r)?t:Vn((function(t){return e(r,t)}));default:return Un(r)&&Un(n)?t:Un(r)?Vn((function(t){return e(t,n)})):Un(n)?Vn((function(t){return e(r,t)})):e(r,n)}}}function zn(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Un(r)?t:Hn((function(t,n){return e(r,t,n)}));case 2:return Un(r)&&Un(n)?t:Un(r)?Hn((function(t,r){return e(t,n,r)})):Un(n)?Hn((function(t,n){return e(r,t,n)})):Vn((function(t){return e(r,n,t)}));default:return Un(r)&&Un(n)&&Un(s)?t:Un(r)&&Un(n)?Hn((function(t,r){return e(t,r,s)})):Un(r)&&Un(s)?Hn((function(t,r){return e(t,n,r)})):Un(n)&&Un(s)?Hn((function(t,n){return e(r,t,n)})):Un(r)?Vn((function(t){return e(t,n,s)})):Un(n)?Vn((function(t){return e(r,t,s)})):Un(s)?Vn((function(t){return e(r,n,t)})):e(r,n,s)}}}const Gn=Number.isInteger||function(e){return e<<0===e};function Jn(e){return"[object String]"===Object.prototype.toString.call(e)}function Kn(e,t){var r=e<0?t.length+e:e;return Jn(t)?t.charAt(r):t[r]}function Wn(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Gn(s)?Kn(s,r):r[s]}return r}const Yn=zn((function(e,t,r){return e(Wn(t,r))}));function Xn(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 Qn(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Zn(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function es(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ts="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var rs=Object.prototype.toString;const ns=function(){return"[object Arguments]"===rs.call(arguments)?function(e){return"[object Arguments]"===rs.call(e)}:function(e){return es("callee",e)}}();var ss=!{toString:null}.propertyIsEnumerable("toString"),is=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],os=function(){return arguments.propertyIsEnumerable("length")}(),as=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},cs="function"!=typeof Object.keys||os?Vn((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=os&&ns(e);for(t in e)!es(t,e)||s&&"length"===t||(n[n.length]=t);if(ss)for(r=is.length-1;r>=0;)es(t=is[r],e)&&!as(n,t)&&(n[n.length]=t),r-=1;return n})):Vn((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ls=cs;const us=Vn((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ps(e,t,r,n){var s=Qn(e);function i(e,t){return hs(e,t,r.slice(),n.slice())}return!Zn((function(e,t){return!Zn(i,t,e)}),Qn(t),s)}function hs(e,t,r,n){if(ts(e,t))return!0;var s,i,o=us(e);if(o!==us(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||!ts(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ts(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&&ps(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&ps(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=ls(e);if(c.length!==ls(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(!es(p,t)||!hs(t[p],e[p],l,u))return!1;a-=1}return!0}const fs=Hn((function(e,t){return hs(e,t,[],[])}));function ds(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(fs(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ms(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function ys(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 gs=function(e){return(e<10?"0":"")+e};const vs="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+gs(e.getUTCMonth()+1)+"-"+gs(e.getUTCDate())+"T"+gs(e.getUTCHours())+":"+gs(e.getUTCMinutes())+":"+gs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function bs(e){return function(){return!e.apply(this,arguments)}}function xs(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const Es=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function ws(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!Es(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 js(e){return"[object Object]"===Object.prototype.toString.call(e)}const Os=function(){return this.xf["@@transducer/init"]()},Ss=function(e){return this.xf["@@transducer/result"](e)};var As=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ps(e){return function(t){return new As(e,t)}}const $s=Hn(ws(["fantasy-land/filter","filter"],Ps,(function(e,t){return js(t)?xs((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},ls(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 Ts=Hn((function(e,t){return $s(bs(e),t)}));function _s(e,t){var r=function(r){var n=t.concat([e]);return ds(r,n)?"<Circular>":_s(r,n)},n=function(e,t){return ms((function(t){return ys(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ms(r,e).join(", ")+"))";case"[object Array]":return"["+ms(r,e).concat(n(e,Ts((function(e){return/^\d+$/.test(e)}),ls(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):ys(vs(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())+")":ys(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,ls(e)).join(", ")+"}"}}const ks=Vn((function(e){return _s(e,[])}));var Ms=Hn((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 "+ks(e));var r;return Xn(e).test(t)}));const Cs=Ms;function Is(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 Rs(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Fs=Vn((function(e){return!!Es(e)||!!e&&("object"==typeof e&&(!Jn(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ds="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ns(e,t,r){return function(n,s,i){if(Fs(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[Ds])return r(n,s,i[Ds]());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 Ls(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 qs=Hn((function(e,t){return Is(e.length,(function(){return e.apply(t,arguments)}))}));function Bs(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 Us(e,t,r,n){return e["@@transducer/result"](r[n](qs(e["@@transducer/step"],e),t))}const Vs=Ns(Ls,Us,Bs);var Hs=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 zs(e){return new Hs(e)}const Gs=zn((function(e,t,r){return Vs("function"==typeof e?zs(e):e,t,r)}));function Js(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return Es(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Ks=zn(Js("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ws=Vn(Js("tail",Ks(1,1/0)));function Ys(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Is(arguments[0].length,Gs(Rs,arguments[0],Ws(arguments)))}const Xs=Hn((function(e,t){return null==t||t!=t?e:t}));const Qs=Hn((function(e,t){if(null!=t)return Gn(e)?Kn(e,t):t[e]}));const Zs=zn((function(e,t,r){return Xs(e,Qs(t,r))}));const ei=Vn((function(e){return Kn(-1,e)}));function ti(e,t,r){return function(){for(var n=[],s=0,i=e,o=0,a=!1;o<t.length||s<arguments.length;){var c;o<t.length&&(!Un(t[o])||s>=arguments.length)?c=t[o]:(c=arguments[s],s+=1),n[o]=c,Un(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):Is(Math.max(0,i),ti(e,n,r))}}const ri=Hn((function(e,t){return 1===e?Vn(t):Is(e,ti(e,[],t))}));const ni=Vn((function(e){return ri(e.length,e)}));function si(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ii=Hn((function(e,t){return ri(e+1,(function(){var r=arguments[e];if(null!=r&&si(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(ks(r)+' does not have a method named "'+t+'"')}))}));const oi=ii(1,"split");function ai(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Ks(0,r+1,t)}var ci=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Os,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=Vs(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 li(e){return function(t){return new ci(e,t)}}const ui=Hn(ws([],li,ai));const pi=ii(1,"join");const hi=Vn((function(e){return ri(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}))(Hn(ds));const fi=ni((function(e,t){return Ys(oi(""),ui(hi(e)),pi(""))(t)}));function di(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function mi(e,t,r,n){return r[n](e,t)}const yi=Ns(xs,mi,di);var gi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const vi=Hn(ws(["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 ri(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return xs((function(r,n){return r[n]=e(t[n]),r}),{},ls(t));default:return ms(e,t)}})));const bi=Hn((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))}:yi((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,vi(r,t))}),[],e)}));const xi=Hn((function(e,t){var r=ri(e,t);return ri(e,(function(){return xs(bi,vi(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Ei=Vn((function(e){return xi(e.length,e)}));const wi=Ei(Vn((function(e){return!e})));const ji=Vn((function(e){return function(){return e}}));const Oi=ji(void 0);const Si=fs(Oi());const Ai=wi(Si);const Pi=Hn((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=ks(e),o=r(i,ks(t));return void 0!==o&&o===i?e:t}));const $i=Hn((function(e,t){return vi(Qs(e),t)}));const Ti=Vn((function(e){return ri(Gs(Pi,0,$i("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var _i=function(e,t){switch(arguments.length){case 0:return _i;case 1:return function t(r){return 0===arguments.length?t:ts(e,r)};default:return ts(e,t)}};const ki=_i;const Mi=ri(1,Ys(us,ki("GeneratorFunction")));const Ci=ri(1,Ys(us,ki("AsyncFunction")));const Ii=Ti([Ys(us,ki("Function")),Mi,Ci]);var Ri=zn((function(e,t,r){return r.replace(e,t)}));const Fi=Ri;const Di=ri(1,Ys(us,ki("RegExp")));const Ni=zn((function(e,t,r){return e(r)?t(r):r}));const Li=ri(1,Ys(us,ki("String")));const qi=Ni(Li,Fi(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Bi=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const Ui=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),Bi(r,"str"),Bi(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(Di(e)?e:qi(e),"g");return Fi(n,t,r)};var Vi=ri(3,Ui),Hi=ii(2,"replaceAll");const zi=Ii(String.prototype.replaceAll)?Hi:Vi,Gi=()=>Yn(Cs(/^win/),["platform"],qn),Ji=e=>{try{const t=new URL(e);return fi(":",t.protocol)}catch{return}},Ki=(Ys(Ji,Ai),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Wi=e=>{if(qn.browser)return!1;const t=Ji(e);return Si(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Yi=e=>{const t=Ji(e);return"http"===t||"https"===t},Xi=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Zs(!1,"keepFileProtocol",t),s=Zs(Gi,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=zi("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Qi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Zi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},eo=()=>{if(qn.browser)return Zi(globalThis.location.href);const e=qn.cwd(),t=ei(e);return["/","\\"].includes(t)?e:e+(Gi()?"\\":"/")},to=(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()},ro=e=>{if(Wi(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Gi()&&(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})(Xi(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},no=e=>Wi(e)?Xi(e):decodeURI(e);var so=r(6623),io=r.n(so);const oo=["properties"],ao=["properties"],co=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],lo=["schema/example","items/example"];function uo(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return oo.indexOf(t)>-1&&-1===ao.indexOf(r)||co.indexOf(n)>-1||lo.some((e=>n.indexOf(e)>-1))}function po(e,t){const[r,n]=e.split("#"),s=t??"",i=r??"";let o;if(Yi(s))o=to(s,i);else{const e=to(p,s),t=to(e,i).replace(p,"");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const ho=/^([a-z]+:\/\/|\/\/)/i;class fo extends Ln{}const mo={},yo=new WeakMap,go=[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]],vo={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(uo(i)||(e=>go.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new fo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=jo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?Eo(c,o):null}catch(t){return wo(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=yo.get(n);s||(s={},yo.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(To).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&ko(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${To(e)}`,s[l]&&s[l].some((e=>ko(e,o)||ko(o,e))))));if(u)return!0;return void(s[a]=(s[a]||[]).concat(o))}(l,u,i,n)&&!s.useCircularStructures){const t=po(e,u);return e===t?null:bn.replace(r,t)}if(null==u?(h=Po(l),p=n.get(h),void 0===p&&(p=new fo(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=Oo(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw wo(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[bn.remove(r),p];const f=po(e,u),d=bn.replace(i,p,{$$ref:f});if(u&&u!==o)return[d,bn.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 bn.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,d)||s.useCircularStructures)return d}catch(e){return null}}},bo=Object.assign(vo,{docCache:mo,absoluteify:Eo,clearCache:function(e){void 0!==e?delete mo[e]:Object.keys(mo).forEach((e=>{delete mo[e]}))},JSONRefError:fo,wrapError:wo,getDoc:So,split:jo,extractFromDoc:Oo,fetchJSON:function(e){return fetch(e,{headers:{Accept:u},loadSpec:!0}).then((e=>e.text())).then((e=>kr.load(e)))},extract:Ao,jsonPointerToArray:Po,unescapeJsonPointerToken:$o}),xo=bo;function Eo(e,t){if(!ho.test(e)){if(!t)throw new fo(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return to(t,e)}return e}function wo(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new fo(`Could not resolve reference: ${r}`,{...t,cause:e})}function jo(e){return(e+"").split("#")}function Oo(e,t){const r=mo[e];if(r&&!bn.isPromise(r))try{const e=Ao(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return So(e).then((e=>Ao(t,e)))}function So(e){const t=mo[e];return t?bn.isPromise(t)?t:Promise.resolve(t):(mo[e]=bo.fetchJSON(e).then((t=>(mo[e]=t,t))),mo[e])}function Ao(e,t){const r=Po(e);if(r.length<1)return t;const n=bn.getIn(t,r);if(void 0===n)throw new fo(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function Po(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($o)}function $o(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function To(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const _o=e=>!e||"/"===e||"#"===e;function ko(e,t){if(_o(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const Mo={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(uo(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=s.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(n.replace(i,{})),e.forEach(((e,t)=>{if(!n.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(n.mergeDeep(i,e));const s=function(e,t,{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}={}){const i=[];return io()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=po(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}},Co={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i={...bn.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 bn.replace(r,t)}return bn.replace(r,e)}},Io={key:"properties",plugin:(e,t,r,n)=>{const s={...e};for(const t in e)try{s[t].default=n.modelPropertyMacro(s[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return bn.replace(r,s)}};class Ro{constructor(e){this.root=Fo(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Do(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Do(s[n],t,r):s[n]=Fo(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]=Fo(null,e)),n[r]}),this.root)}}function Fo(e,t){return Do({children:{}},e,t)}function Do(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=Do(r,r.value,e)})),e}const No=()=>{};class Lo{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 Ro,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),bn,{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(bn.isFunction),this.patches.push(bn.add([],this.spec)),this.patches.push(bn.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){"verbose"===this.debugLevel&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):bn.isFunction(e)?n=e:bn.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const i={};for(const[e,t]of n.filter(bn.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(n,a,c){if(bn.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),d=bn.isObject(u),m=n.$$ref;if(f||d&&(s.allowMetaPatches&&m&&(i[m]=!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:bn.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){bn.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!bn.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),bn.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(bn.isContextPatch(e))return void this.setContext(e.path,e.value);bn.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=bn.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return bn.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(No,No)))).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=bn.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const qo={refs:xo,allOf:Mo,parameters:Co,properties:Io},Bo=e=>e.replace(/\W/gi,"_");function Uo(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Bo(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${Bo(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function Vo(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=Uo(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 Ho(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=Dr(e),h=Nr(e);return function(e){p&&(qo.refs.docCache[p]=e);qo.refs.fetchJSON=Fr(h,{requestInterceptor:a,responseInterceptor:c});const t=[qo.refs];"function"==typeof o&&t.push(qo.parameters);"function"==typeof i&&t.push(qo.properties);"strict"!==r&&t.push(qo.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Lo(f).dispatch()).then(l?async e=>e:Vo);var f}(t)}const zo={name:"generic",match:()=>!0,normalize({spec:e}){const{spec:t}=Vo({spec:e});return t},resolve:async e=>Ho(e)};const Go=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},Jo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Ko=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Wo=e=>Jo(e)||Ko(e),Yo={name:"openapi-2",match:({spec:e})=>Go(e),normalize({spec:e}){const{spec:t}=Vo({spec:e});return t},resolve:async e=>async function(e){return Ho(e)}(e)};const Xo={name:"openapi-3-0",match:({spec:e})=>Jo(e),normalize({spec:e}){const{spec:t}=Vo({spec:e});return t},resolve:async e=>async function(e){return Ho(e)}(e)},Qo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=Dr(e),i=Nr(e),o=t||await Fr(i,{requestInterceptor:r,responseInterceptor:n})(s),a={...e,spec:o};return e.strategies.find((e=>e.match(a))).resolve(a)})({...e,...t}),Zo=Qo({strategies:[Xo,Yo,zo]}),ea=e=>async(t,r,n={})=>(async(e,t,r={})=>{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 Zo({...p,spec:h,allowMetaPatches:!0,skipNormalization:!0});return!n&&Array.isArray(t)&&t.length&&(f.spec=t.reduce(((e,t)=>e?.[t]),f.spec)||null),f})(t,r,{...e,...n});ea({strategies:[Xo,Yo,zo]});const ta=function(){return!0};const ra=function(){return!1},na=(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},sa={},ia=e=>null==e?void 0:e.type,oa=e=>"string"==typeof ia(e),aa=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ca=(e,{visitFnGetter:t=na,nodeTypeGetter:r=ia,breakSymbol:n=sa,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,...u){let p=l,h=!1;for(let f=0;f<e.length;f+=1)if(c[f]===a){const a=t(e[f],r(p),!1);if("function"==typeof a){const t=a.call(e[f],p,...u);if("function"==typeof(null==t?void 0:t.then))throw new Ln("Async visitor not supported in sync mode",{visitor:e[f],visitFn:a});if(t===i)c[f]=l;else if(t===n)c[f]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(s,...o){for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(s),!0);if("function"==typeof a){const t=a.call(e[l],s,...o);if("function"==typeof(null==t?void 0:t.then))throw new Ln("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===n)c[l]=n;else if(void 0!==t&&t!==i)return t}}else c[l]===s&&(c[l]=a)}}};ca[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=na,nodeTypeGetter:r=ia,breakSymbol:n=sa,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,...u){let p=l,h=!1;for(let f=0;f<e.length;f+=1)if(c[f]===a){const a=t(e[f],r(p),!1);if("function"==typeof a){const t=await a.call(e[f],p,...u);if(t===i)c[f]=l;else if(t===n)c[f]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},async leave(s,...o){for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(s),!0);if("function"==typeof a){const t=await a.call(e[l],s,...o);if(t===n)c[l]=n;else if(void 0!==t&&t!==i)return t}}else c[l]===s&&(c[l]=a)}}};const la=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=sa,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=na,nodeTypeGetter:c=ia,nodePredicate:l=oa,nodeCloneFn:u=aa,detectCycles:p=!0}={})=>{const h=r||{};let f,d,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const O=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=d,d=E.pop(),O)if(m){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,m=f.inArray,f=f.prev}else if(d!==i&&void 0!==d){if(r=m?g:y[g],b=d[r],b===i||void 0===b)continue;x.push(r)}let S;if(!Array.isArray(b)){var w;if(!l(b))throw new Ln(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=i.call(t,b,r,d,x,E)}if("function"==typeof(null===(w=S)||void 0===w?void 0:w.then))throw new Ln("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===s)break;if(S===o){if(!e){x.pop();continue}}else if(void 0!==S&&(v.push([r,S]),!e)){if(!l(S)){x.pop();continue}b=S}}var j;if(void 0===S&&O&&v.push([r,b]),!e)f={inArray:m,index:g,keys:y,edits:v,prev:f},m=Array.isArray(b),y=m?b:null!==(j=h[c(b)])&&void 0!==j?j:[],g=-1,v=[],d!==i&&void 0!==d&&E.push(d),d=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};la[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=sa,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=na,nodeTypeGetter:c=ia,nodePredicate:l=oa,nodeCloneFn:u=aa,detectCycles:p=!0}={})=>{const h=r||{};let f,d,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=d,d=E.pop(),j)if(m){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,m=f.inArray,f=f.prev}else if(d!==i&&void 0!==d){if(r=m?g:y[g],b=d[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new Ln(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;O=await i.call(t,b,r,d,x,E)}if(O===s)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var w;if(void 0===O&&j&&v.push([r,b]),!e)f={inArray:m,index:g,keys:y,edits:v,prev:f},m=Array.isArray(b),y=m?b:null!==(w=h[c(b)])&&void 0!==w?w:[],g=-1,v=[],d!==i&&void 0!==d&&E.push(d),d=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};var ua=r(4035);function pa(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var ha=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Os,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=pa(this.xf["@@transducer/step"](e,!1))),e},e}();function fa(e){return function(t){return new ha(e,t)}}const da=Hn(ws(["all"],fa,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class ma extends ua.Om{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 ya=ma;class ga extends ua.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const va=ga;class ba extends ua.wE{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(Si(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const xa=ba;class Ea extends ua.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ua.wE([e.start.row,e.start.column,e.start.char]),r=new ua.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const wa=Ea,ja=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Oa=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Sa=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Aa=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ua.wE)&&t.classes.includes(e),Pa=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,$a=e=>e({hasMethod:ja,hasBasicElementProps:Oa,primitiveEq:Sa,isElementType:Pa,hasClass:Aa}),Ta=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.Hg||e(r)&&t(void 0,r))),_a=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.Om||e(r)&&t("string",r))),ka=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.kT||e(r)&&t("number",r))),Ma=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.Os||e(r)&&t("null",r))),Ca=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.bd||e(r)&&t("boolean",r))),Ia=$a((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ua.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Ra=$a((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ua.wE&&!(n instanceof ua.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Fa=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ua.Pr||e(n)&&t("member",n)&&r(void 0,n))),Da=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ua.Ft||e(n)&&t("link",n)&&r(void 0,n))),Na=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ua.sI||e(n)&&t("ref",n)&&r(void 0,n))),La=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ya||e(n)&&t("annotation",n)&&r("array",n))),qa=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof va||e(n)&&t("comment",n)&&r("string",n))),Ba=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xa||e(n)&&t("parseResult",n)&&r("array",n))),Ua=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wa||e(n)&&t("sourceMap",n)&&r("array",n))),Va=e=>Pa("object",e)||Pa("array",e)||Pa("boolean",e)||Pa("number",e)||Pa("string",e)||Pa("null",e)||Pa("member",e),Ha=e=>Ua(e.meta.get("sourceMap")),za=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Ra(r)&&da(hi(r.toValue()),e)},Ga=(e,t)=>0===e.length||da(hi(t.classes.toValue()),e);const Ja=class extends Ln{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ka=class extends Ja{};const Wa=class extends Ja{},Ya=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ua.KeyValuePair){const{key:t,value:s}=e,i=Ta(t)?Ya(t,n):t,o=Ta(s)?Ya(s,n):s,a=new ua.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof ua.ot){const t=e=>Ya(e,n),s=[...e].map(t),i=new ua.ot(s);return r.set(e,i),i}if(e instanceof ua.G6){const t=e=>Ya(e,n),s=[...e].map(t),i=new ua.G6(s);return r.set(e,i),i}if(Ta(e)){const t=Za(e);if(r.set(e,t),e.content)if(Ta(e.content))t.content=Ya(e.content,n);else if(e.content instanceof ua.KeyValuePair)t.content=Ya(e.content,n);else if(Array.isArray(e.content)){const r=e=>Ya(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Ka("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ya.safe=e=>{try{return Ya(e)}catch{return e}};const Xa=e=>{const{key:t,value:r}=e;return new ua.KeyValuePair(t,r)},Qa=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Ya(e.meta)),e.attributes.length>0&&(t._attributes=Ya(e.attributes)),Ta(e.content)){const r=e.content;t.content=Qa(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ua.KeyValuePair?t.content=Xa(e.content):t.content=e.content;return t},Za=e=>{if(e instanceof ua.KeyValuePair)return Xa(e);if(e instanceof ua.ot)return(e=>{const t=[...e];return new ua.ot(t)})(e);if(e instanceof ua.G6)return(e=>{const t=[...e];return new ua.G6(t)})(e);if(Ta(e))return Qa(e);throw new Wa("Value provided to cloneShallow function couldn't be cloned",{value:e})};Za.safe=e=>{try{return Za(e)}catch{return e}};const ec=e=>Ia(e)?"ObjectElement":Ra(e)?"ArrayElement":Fa(e)?"MemberElement":_a(e)?"StringElement":Ca(e)?"BooleanElement":ka(e)?"NumberElement":Ma(e)?"NullElement":Da(e)?"LinkElement":Na(e)?"RefElement":void 0,tc=e=>Ta(e)?Za(e):aa(e),rc=Ys(ec,Li),nc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class sc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=ra,returnOnTrue:t,returnOnFalse:r}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const ic=(e,t,{keyMap:r=nc,...n}={})=>la(e,t,{keyMap:r,nodeTypeGetter:ec,nodePredicate:rc,nodeCloneFn:tc,...n});ic[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=nc,...n}={})=>la[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:ec,nodePredicate:rc,nodeCloneFn:tc,...n});const oc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:ec(e),ac={EphemeralObject:["content"],EphemeralArray:["content"],...nc},cc=(e,t,{keyMap:r=ac,...n}={})=>ic(e,t,{keyMap:r,nodeTypeGetter:oc,nodePredicate:ta,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});cc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=ac,...r}={})=>ic[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:oc,nodePredicate:ta,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const lc=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const uc=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class pc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new uc(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new lc(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return _a(e.href)?e.href.toValue():""}}const hc=e=>Ta(e)?_a(e)||ka(e)||Ca(e)||Ma(e)?e.toValue():cc(e,new pc):e;const fc=zn((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})es(n,t)&&(s[n]=es(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)es(n,r)&&!es(n,s)&&(s[n]=r[n]);return s}));const dc=zn((function e(t,r,n){return fc((function(r,n,s){return js(n)&&js(s)?e(t,n,s):t(r,n,s)}),r,n)}));const mc=Hn((function(e,t){return dc((function(e,t,r){return r}),e,t)}));const yc=Hn(Wn);const gc=Ks(0,-1);const vc=Hn((function(e,t){return e.apply(this,t)}));const bc=wi(Ii);const xc=Hn((function(e,t){return e&&t}));const Ec=Hn((function(e,t){return si(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ei(xc)(e,t)}));var wc=Vn((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():Es(e)?[]:Jn(e)?"":js(e)?{}:ns(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 jc=wc;const Oc=Vn((function(e){return null!=e&&fs(e,jc(e))}));const Sc=ri(1,Ii(Array.isArray)?Array.isArray:Ys(us,ki("Array")));const Ac=Ec(Sc,Oc);var Pc=ri(3,(function(e,t,r){var n=yc(e,r),s=yc(gc(e),r);if(!bc(n)&&!Ac(e)){var i=qs(n,s);return vc(i,t)}}));const $c=Pc;const Tc=fs(null);const _c=wi(Tc);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 Mc=function(e){return"object"===kc(e)};const Cc=ri(1,Ec(_c,Mc));var Ic=Ys(us,ki("Object")),Rc=Ys(ks,fs(ks(Object))),Fc=Yn(Ec(Ii,Rc),["constructor"]);const Dc=ri(1,(function(e){if(!Cc(e)||!Ic(e))return!1;var t=Object.getPrototypeOf(e);return!!Tc(t)||Fc(t)}));class Nc extends ua.g${constructor(){super(),this.register("annotation",ya),this.register("comment",va),this.register("parseResult",xa),this.register("sourceMap",wa)}}const Lc=new Nc,qc=e=>{const t=new Nc;return Dc(e)&&t.use(e),t},Bc=Lc,Uc=()=>({predicates:{...i},namespace:Bc}),Vc={toolboxCreator:Uc,visitorOptions:{nodeTypeGetter:ec,exposeEdits:!0}},Hc=(e,t,r={})=>{if(0===t.length)return e;const n=mc(Vc,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=ca(a.map(Zs({},"visitor")),{...i});a.forEach($c(["pre"],[]));const l=ic(e,c,i);return a.forEach($c(["post"],[])),l};Hc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=mc(Vc,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=ca[Symbol.for("nodejs.util.promisify.custom")],l=ic[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(Zs({},"visitor")),{...i});await Promise.allSettled(a.map($c(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map($c(["post"],[]))),p};const zc=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Ta(e)&&(e.meta.length>0&&(n.meta=Ya(e.meta)),e.attributes.length>0&&(n.attributes=Ya(e.attributes))),Hc(n,r,{toolboxCreator:Uc,visitorOptions:{nodeTypeGetter:ec}})},Gc=e=>(t,r={})=>zc(t,{...r,Type:e});ua.Sh.refract=Gc(ua.Sh),ua.wE.refract=Gc(ua.wE),ua.Om.refract=Gc(ua.Om),ua.bd.refract=Gc(ua.bd),ua.Os.refract=Gc(ua.Os),ua.kT.refract=Gc(ua.kT),ua.Ft.refract=Gc(ua.Ft),ua.sI.refract=Gc(ua.sI),ya.refract=Gc(ya),va.refract=Gc(va),xa.refract=Gc(xa),wa.refract=Gc(wa);const Jc=(e,t=new WeakMap)=>(Fa(e)?(t.set(e.key,e),Jc(e.key,t),t.set(e.value,e),Jc(e.value,t)):e.children.forEach((r=>{t.set(r,e),Jc(r,t)})),t);const Kc=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:Jc(this.element);const n=this.edges.get(e);return Si(n)?void 0:(Ia(n)?((e,t,r)=>{const n=r.get(e);Ia(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(e,t,this.edges):Ra(n)?((e,t,r)=>{const n=r.get(e);Ra(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(e,t,this.edges):Fa(n)&&((e,t,r)=>{const n=r.get(e);Fa(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(e,t,this.edges),this.element)}},Wc=Ys(Fi(/~/g,"~0"),Fi(/\//g,"~1"),encodeURIComponent);const Yc=class extends Ln{};const Xc=class extends Yc{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Qc=e=>{try{return 0===e.length?"":`/${e.map(Wc).join("/")}`}catch(t){throw new Xc("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var Zc=Hn((function(e,t){return ri(Gs(Pi,0,$i("length",t)),(function(){var r=arguments,n=this;return e.apply(n,ms((function(e){return e.apply(n,r)}),t))}))}));const el=Zc;function tl(e){return e}const rl=Vn(tl);var nl=Ec(ri(1,Ys(us,ki("Number"))),isFinite);var sl=ri(1,nl);var il=Ec(Ii(Number.isFinite)?ri(1,qs(Number.isFinite,Number)):sl,el(fs,[Math.floor,rl]));var ol=ri(1,il);const al=Ii(Number.isInteger)?ri(1,qs(Number.isInteger,Number)):ol;var cl=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,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?pa(r):r},e}();function ll(e){return function(t){return new cl(e,t)}}const ul=Hn(ws(["take"],ll,(function(e,t){return Ks(0,e<0?1/0:e,t)})));const pl=Hn((function(e,t){return fs(ul(e.length,t),e)}));const hl=fs("");var fl=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,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 dl(e){return function(t){return new fl(e,t)}}const ml=Hn(ws(["dropWhile"],dl,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Ks(r,1/0,t)})));const yl=ni((function(e,t){return Ys(oi(""),ml(hi(e)),pi(""))(t)})),gl=Ys(Fi(/~1/g,"/"),Fi(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const vl=class extends Yc{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},bl=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return yl("#",t)},xl=e=>{if(hl(e))return[];if(!pl("/",e))throw new vl(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Ys(oi("/"),vi(gl))(e);return Ws(t)}catch(t){throw new vl(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const El=class extends Yc{pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},wl=(e,t)=>{let r;try{r=xl(e)}catch(r){throw new El(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Ya(t),cause:r})}return r.reduce(((t,n,s)=>{if(Ia(t)){if(!t.hasKey(n))throw new El(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Ya(t)});return t.get(n)}if(Ra(t)){if(!(n in t.content)||!al(Number(n)))throw new El(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Ya(t)});return t.get(Number(n))}throw new El(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Ya(t)})}),t)};class jl extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ol=jl;class Sl extends ua.Sh{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 Al=Sl;class Pl extends ua.Sh{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 $l=Pl;class Tl extends ua.Sh{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 _l=Tl;class kl extends ua.Sh{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 Ml=kl;class Cl extends ua.Sh{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 Il=Cl;class Rl extends ua.Sh{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 Fl=Rl;class Dl extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ua.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ua.bd(!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(Dl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Nl=Dl;class Ll extends ua.Sh{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 ql=Ll;class Bl extends ua.Sh{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 Ul=Bl;class Vl extends ua.Sh{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 _a(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):_a(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 Hl=Vl;class zl extends ua.Sh{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 Gl=zl;class Jl extends ua.Sh{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 Kl=Jl;class Wl extends ua.Sh{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 Yl=Wl;class Xl extends ua.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Ql=Xl;class Zl extends ua.Sh{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 eu=Zl;class tu extends ua.Sh{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 ua.bd(!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 ru=tu;class nu extends ua.Sh{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 ua.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ua.bd(!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(nu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const su=nu;class iu extends ua.Sh{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 ou=iu;class au extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const cu=au;class lu extends ua.Sh{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 uu=lu;class pu extends ua.Sh{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 ua.bd(!1)}set required(e){this.set("required",e)}}const hu=pu;class fu extends ua.Sh{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 du=fu;class mu extends ua.Sh{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 yu=mu;const gu=class extends Nn{};class vu extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const bu=vu;class xu extends ua.Sh{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 Eu=xu;class wu extends ua.Sh{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 ju=wu;class Ou extends ua.Sh{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 Su=Ou;const Au=Hn((function(e,t){return xs((function(r,n){return r[n]=e(t[n],n,t),r}),{},ls(t))}));const Pu=Vn((function(e){return null==e}));var $u=Hn((function(e,t){if(0===e.length||Pu(t))return!1;for(var r=t,n=0;n<e.length;){if(Pu(r)||!es(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Tu=$u;var _u=Hn((function(e,t){return Tu([e],t)}));const ku=_u;const Mu=zn((function(e,t,r){return e(Qs(t,r))})),Cu=(e,t)=>{const r=Xs(e,t);return Au((e=>{if(Dc(e)&&ku("$ref",e)&&Mu(Li,"$ref",e)){const t=yc(["$ref"],e),n=yl("#/",t);return yc(n.split("/"),r)}return Dc(e)?Cu(e,r):e}),e)},Iu=e=>{const t=e.meta.length>0?Ya(e.meta):void 0,r=e.attributes.length>0?Ya(e.attributes):void 0;return new e.constructor(void 0,t,r)},Ru=(e,t)=>t.clone&&t.isMergeableElement(e)?Lu(Iu(e),e,t):e,Fu=e=>"function"!=typeof e.customMetaMerge?e=>Ya(e):e.customMetaMerge,Du=e=>"function"!=typeof e.customAttributesMerge?e=>Ya(e):e.customAttributesMerge,Nu={clone:!0,isMergeableElement:e=>Ia(e)||Ra(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Ru(e,r))),objectElementMerge:(e,t,r)=>{const n=Ia(e)?Iu(e):Iu(t);return Ia(e)&&e.forEach(((e,t,s)=>{const i=Za(s);i.value=Ru(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=hc(s);let a;if(Ia(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=Za(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Lu;const r=t.customMerge(e,t);return"function"==typeof r?r:Lu})(s,r)(n,t)}else a=Za(i),a.value=Ru(t,r);n.remove(o),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function Lu(e,t,r){var n,s,i;const o={...Nu,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:Nu.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:Nu.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Nu.objectElementMerge;const a=Ra(t);if(!(a===Ra(e)))return Ru(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=Fu(o)(e.meta,t.meta),c.attributes=Du(o)(e.attributes,t.attributes),c}Lu.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ua.Sh:e.reduce(((e,r)=>Lu(e,r,t)),Iu(e[0]))};const qu=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lu(t.meta,e.meta),Ha(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lu(t.attributes,e.attributes))}};const Bu=class extends qu{enter(e){return this.element=Ya(e),sa}},Uu=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},Vu=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Vu(r,[...t,r])},Hu=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Vu(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=Vu(s);for(let t of e){let e=Vu(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Uu(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},zu=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Gu=(e,t)=>{const r=t.map((e=>Vu(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},Ju=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(Gu(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==Gu(n,e)||void 0!==t[n],get:(r,n)=>(Gu(n,e)||t)[n],set(t,r,n){const s=Gu(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Ku=null,Wu="copy",Yu="copy",Xu="deep",Qu=new WeakMap,Zu=e=>Qu.get(e),ep=(e,t)=>{var r,n;const s=zu([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=zu([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},tp=(e,t)=>{var r,n,s,i;return{property:ep(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:ep(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},rp=(e,t)=>{var r,n,s,i,o,a;return{class:zu([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:tp(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:tp(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},np=new Map,sp=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...Vu(e.prototype).map((e=>e.constructor)),...null!==(t=Zu(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>np.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>rp(e,t)))},ip=e=>{let t=np.get(e);return t||(t={},np.set(e,t)),t};function op(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=Ku;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};s.push(t)}function o(...t){for(const r of e)Uu(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Yu?Hu(s,o):(a=s,c=o,Ju([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Wu?Hu(e,null,["prototype"]):Ju(e,Function.prototype));let l=o;if("none"!==Xu){const s="deep"===Xu?sp(...e):((...e)=>{const t=e.map((e=>ip(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>rp(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}ap(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},l),ap(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,Qu.set(u,p),l}const ap=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const cp=Hn((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 lp=class extends qu{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return cp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=yc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Yn(Ii,["visitors",...e],this.specObj)?yc(["visitors",...e],this.specObj):yc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof Bu&&(null==n?void 0:n.constructor)===Bu?Ya(t):(ic(t,n,r),n.element)}};const up=class extends lp{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(_a(n)&&r.includes(hc(n))&&!this.ignoredFields.includes(hc(n))){const r=this.toRefractedElement([...t,"fixedFields",hc(n)],e),i=new ua.Pr(Ya(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(hc(n))||this.element.content.push(Ya(s))})),this.copyMetaAndAttributes(e,this.element),sa}};class pp extends(op(up,Bu)){constructor(e){super(e),this.element=new bu,this.specPath=ji(["document","objects","JSONSchema"])}}const hp=pp;const fp=class{parent;constructor({parent:e}){this.parent=e}},dp=e=>Ia(e)&&e.hasKey("$ref");class mp extends(op(lp,fp,Bu)){ObjectElement(e){const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sa}ArrayElement(e){return this.element=new ua.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const yp=mp;const gp=class extends Bu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const vp=Vn((function(e){return ri(Gs(Pi,0,$i("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 bp=Vn((function(e){return!Oc(e)}));const xp=Hn((function(e,t){return e||t}));var Ep=wi(ri(1,Ec(_c,Hn((function(e,t){return si(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ei(xp)(e,t)}))(Mc,Ii))));const wp=vp([Li,Ep,bp]);const jp=class extends lp{specPath;ignoredFields;fieldPatternPredicate=ra;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(hc(t))&&this.fieldPatternPredicate(hc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new ua.Pr(Ya(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(hc(t))||this.element.content.push(Ya(r))})),this.copyMetaAndAttributes(e,this.element),sa}};const Op=class extends jp{constructor(e){super(e),this.fieldPatternPredicate=wp}};class Sp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ap=Sp;class Pp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const $p=Pp;class Tp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const _p=Tp;const kp=class extends Bu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Mp=class extends Bu{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class Cp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Ip=Cp;class Rp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Fp=Rp;class Dp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Np=Dp;class Lp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const qp=Lp;class Bp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sa}}const Up=Bp;class Vp extends(op(up,Bu)){constructor(e){super(e),this.element=new Eu,this.specPath=ji(["document","objects","JSONReference"])}ObjectElement(e){const t=up.prototype.ObjectElement.call(this,e);return _a(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Hp=Vp;const zp=class extends Bu{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Gp=zn((function(e,t,r){return ri(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Jp=Vn((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Kp=Hn((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Wp=Kp;const Yp=Vn((function(e){return Kn(0,e)}));const Xp=Vn(pa);const Qp=wi(Pu);const Zp=Ec(Sc,bp);function eh(e){return function(e){if(Array.isArray(e))return th(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 th(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 th(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 th(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 rh=Ys(Wp(Jp((function(e,t){return e.length>t.length}))),Yp,Qs("length")),nh=ni((function(e,t,r){var n=r.apply(void 0,eh(e));return Qp(n)?Xp(n):t}));const sh=Gp(Zp,(function(e){var t=rh(e);return ri(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gs(nh(r),void 0,e)}))}),Oi);const ih=class extends lp{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Gp(e,ji(t),Oi))),r=sh(t)(e);return this.element=this.toRefractedElement(r,e),sa}};const oh=class extends ih{constructor(e){super(e),this.alternator=[{predicate:dp,specPath:["document","objects","JSONReference"]},{predicate:ta,specPath:["document","objects","JSONSchema"]}]}};class ah extends(op(up,Bu)){constructor(e){super(e),this.element=new ju,this.specPath=ji(["document","objects","Media"])}}const ch=ah;class lh extends(op(up,Bu)){constructor(e){super(e),this.element=new Su,this.specPath=ji(["document","objects","LinkDescription"])}}const uh={visitors:{value:Bu,JSONSchemaOrJSONReferenceVisitor:oh,document:{objects:{JSONSchema:{$visitor:hp,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:oh,items:yp,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:gp,properties:Ap,additionalProperties:oh,patternProperties:$p,dependencies:_p,enum:kp,type:Mp,allOf:Ip,anyOf:Fp,oneOf:Np,not:oh,definitions:qp,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Up,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Hp,fixedFields:{$ref:zp}},Media:{$visitor:ch,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:lh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:oh,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:oh}}}}}},ph=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},hh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...nc},fh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),dh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Eu||e(n)&&t("JSONReference",n)&&r("object",n))),mh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ju||e(n)&&t("media",n)&&r("object",n))),yh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Su||e(n)&&t("linkDescription",n)&&r("object",n))),gh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",bu),t.register("jSONReference",Eu),t.register("media",ju),t.register("linkDescription",Su),t}},vh=()=>{const e=qc(gh);return{predicates:{...o,isStringElement:_a},namespace:e}},bh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=uh}={})=>{const s=(0,ua.e)(e),i=Cu(n),o=new(yc(t,i))({specObj:i});return ic(s,o),Hc(o.element,r,{toolboxCreator:vh,visitorOptions:{keyMap:hh,nodeTypeGetter:ph}})},xh=e=>(t,r={})=>bh(t,{specPath:e,...r});bu.refract=xh(["visitors","document","objects","JSONSchema","$visitor"]),Eu.refract=xh(["visitors","document","objects","JSONReference","$visitor"]),ju.refract=xh(["visitors","document","objects","Media","$visitor"]),Su.refract=xh(["visitors","document","objects","LinkDescription","$visitor"]);const Eh=class extends bu{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new gu("idProp getter in Schema class is not not supported.")}set idProp(e){throw new gu("idProp setter in Schema class is not not supported.")}get $schema(){throw new gu("$schema getter in Schema class is not not supported.")}set $schema(e){throw new gu("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new gu("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new gu("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new gu("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new gu("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new gu("definitions getter in Schema class is not not supported.")}set definitions(e){throw new gu("definitions setter in Schema class is not not supported.")}get base(){throw new gu("base getter in Schema class is not not supported.")}set base(e){throw new gu("base setter in Schema class is not not supported.")}get links(){throw new gu("links getter in Schema class is not not supported.")}set links(e){throw new gu("links setter in Schema class is not not supported.")}get media(){throw new gu("media getter in Schema class is not not supported.")}set media(e){throw new gu("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class wh extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const jh=wh;class Oh extends ua.Sh{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 Sh=Oh;class Ah extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Ph=Ah;class $h extends ua.Sh{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 Th=$h;class _h extends ua.Sh{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 kh=_h;class Mh extends ua.Sh{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 Ch=Mh;const Ih=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lu(t.meta,e.meta),Ha(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lu(t.attributes,e.attributes))}};const Rh=class extends Ih{enter(e){return this.element=Ya(e),sa}};const Fh=class extends Ih{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:n,...s}){super({...s}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return cp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=yc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Yn(Ii,["visitors",...e],this.specObj)?yc(["visitors",...e],this.specObj):yc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof Rh&&(null==n?void 0:n.constructor)===Rh?Ya(t):(ic(t,n,r),n.element)}},Dh=e=>Ia(e)&&e.hasKey("$ref"),Nh=Ia,Lh=Ia,qh=e=>_a(e.key)&&pl("x-",hc(e.key));const Bh=class extends Fh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=qh;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(_a(n)&&r.includes(hc(n))&&!this.ignoredFields.includes(hc(n))){const r=this.toRefractedElement([...t,"fixedFields",hc(n)],e),i=new ua.Pr(Ya(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(hc(n))||this.element.content.push(Ya(s))})),this.copyMetaAndAttributes(e,this.element),sa}};class Uh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new eu,this.specPath=ji(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Bh.prototype.ObjectElement.call(this,e)}}const Vh=Uh;class Hh extends(op(Fh,Rh)){StringElement(e){const t=new Ql(hc(e));return this.copyMetaAndAttributes(e,t),this.element=t,sa}}const zh=Hh;const Gh=class extends Fh{MemberElement(e){return this.element=Ya(e),this.element.classes.push("specification-extension"),sa}};class Jh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new ql,this.specPath=ji(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Kh=Jh;const Wh=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Yh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new $l,this.specPath=ji(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Xh=Yh;class Qh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ul,this.specPath=ji(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Zh=Qh;class ef extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Hl,this.specPath=ji(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return(_a(this.element.operationId)||_a(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const tf=ef;const rf=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const nf=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const sf=class extends Fh{specPath;ignoredFields;fieldPatternPredicate=ra;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=qh;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(hc(t))&&this.fieldPatternPredicate(hc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new ua.Pr(Ya(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(hc(t))||this.element.content.push(Ya(r))})),this.copyMetaAndAttributes(e,this.element),sa}};const of=class extends sf{constructor(e){super(e),this.fieldPatternPredicate=wp}};class af extends ua.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(af.primaryClass)}}const cf=af;class lf extends(op(of,Rh)){constructor(e){super(e),this.element=new cf,this.specPath=ji(["value"])}}const uf=lf;class pf extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ph,this.specPath=ji(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const hf=pf;const ff=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class df extends ua.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(df.primaryClass)}}const mf=df;class yf extends(op(Fh,Rh)){constructor(e){super(e),this.element=new mf}ArrayElement(e){return e.forEach((e=>{const t=Nh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const gf=yf;class vf extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Th,this.specPath=ji(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const bf=vf;class xf extends ua.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(xf.primaryClass)}}const Ef=xf;class wf extends(op(of,Rh)){constructor(e){super(e),this.element=new Ef,this.specPath=ji(["document","objects","ServerVariable"])}}const jf=wf;class Of extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Gl,this.specPath=ji(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Sf=Of;const Af=class extends Fh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Gp(e,ji(t),Oi))),r=sh(t)(e);return this.element=this.toRefractedElement(r,e),sa}},Pf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ol||e(n)&&t("callback",n)&&r("object",n))),$f=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Al||e(n)&&t("components",n)&&r("object",n))),Tf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $l||e(n)&&t("contact",n)&&r("object",n))),_f=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Il||e(n)&&t("example",n)&&r("object",n))),kf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fl||e(n)&&t("externalDocumentation",n)&&r("object",n))),Mf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nl||e(n)&&t("header",n)&&r("object",n))),Cf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ql||e(n)&&t("info",n)&&r("object",n))),If=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ul||e(n)&&t("license",n)&&r("object",n))),Rf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("link",n)&&r("object",n))),Ff=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("openapi",n)&&r("string",n))),Df=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof eu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),Nf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ru||e(n)&&t("operation",n)&&r("object",n))),Lf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof su||e(n)&&t("parameter",n)&&r("object",n))),qf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ou||e(n)&&t("pathItem",n)&&r("object",n))),Bf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cu||e(n)&&t("paths",n)&&r("object",n))),Uf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uu||e(n)&&t("reference",n)&&r("object",n))),Vf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hu||e(n)&&t("requestBody",n)&&r("object",n))),Hf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof du||e(n)&&t("response",n)&&r("object",n))),zf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yu||e(n)&&t("responses",n)&&r("object",n))),Gf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Eh||e(n)&&t("schema",n)&&r("object",n))),Jf=e=>Ca(e)&&e.classes.includes("boolean-json-schema"),Kf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jh||e(n)&&t("securityRequirement",n)&&r("object",n))),Wf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sh||e(n)&&t("securityScheme",n)&&r("object",n))),Yf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ph||e(n)&&t("server",n)&&r("object",n))),Xf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Th||e(n)&&t("serverVariable",n)&&r("object",n))),Qf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("mediaType",n)&&r("object",n))),Zf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof mf||e(s)&&t("array",s)&&r("array",s)&&n("servers",s)));class ed extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const td=ed;class rd extends(op(of,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("examples"),this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const nd=rd;class sd extends ua.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(sd.primaryClass),this.classes.push("examples")}}const id=sd;const od=class extends nd{constructor(e){super(e),this.element=new id}};class ad extends ua.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(ad.primaryClass)}}const cd=ad;class ld extends(op(of,Rh)){constructor(e){super(e),this.element=new cd,this.specPath=ji(["document","objects","Encoding"])}}const ud=ld;class pd extends(op(of,Rh)){constructor(e){super(e),this.element=new jh,this.specPath=ji(["value"])}}const hd=pd;class fd extends ua.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(fd.primaryClass)}}const dd=fd;class md extends(op(Fh,Rh)){constructor(e){super(e),this.element=new dd}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Ya(e))})),this.copyMetaAndAttributes(e,this.element),sa}}const yd=md;class gd extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Al,this.specPath=ji(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const vd=gd;class bd extends(op(Bh,Rh)){constructor(e){super(e),this.element=new kh,this.specPath=ji(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const xd=bd;class Ed extends(op(Bh,Rh)){constructor(e){super(e),this.element=new uu,this.specPath=ji(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return _a(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const wd=Ed;const jd=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Od extends(op(Bh,Rh)){constructor(e){super(e),this.element=new su,this.specPath=ji(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.contentProp)&&this.element.contentProp.filter(Qf).forEach(((e,t)=>{e.setMetaProperty("media-type",hc(t))})),t}}const Sd=Od;class Ad extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Pd=Ad;class $d extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Nl,this.specPath=ji(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Td=$d;class _d extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const kd=_d;class Md extends ua.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Md.primaryClass),this.classes.push("examples")}}const Cd=Md;const Id=class extends nd{constructor(e){super(e),this.element=new Cd}};class Rd extends(op(of,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("content"),this.specPath=ji(["document","objects","MediaType"])}}const Fd=Rd;class Dd extends ua.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Dd.primaryClass),this.classes.push("content")}}const Nd=Dd;const Ld=class extends Fd{constructor(e){super(e),this.element=new Nd}};class qd extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Eh,this.specPath=ji(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Bd=qd,{allOf:Ud}=uh.visitors.document.objects.JSONSchema.fixedFields;const Vd=class extends Ud{ArrayElement(e){const t=Ud.prototype.ArrayElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{anyOf:Hd}=uh.visitors.document.objects.JSONSchema.fixedFields;const zd=class extends Hd{ArrayElement(e){const t=Hd.prototype.ArrayElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{oneOf:Gd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Jd=class extends Gd{ArrayElement(e){const t=Gd.prototype.ArrayElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:Kd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Wd=class extends Kd{ObjectElement(e){const t=Kd.prototype.ObjectElement.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},{properties:Yd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Xd=class extends Yd{ObjectElement(e){const t=Yd.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{type:Qd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Zd=class extends Qd{ArrayElement(e){return this.enter(e)}},{JSONSchemaOrJSONReferenceVisitor:em}=uh.visitors;const tm=class extends em{ObjectElement(e){const t=em.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class rm extends(op(Bh,Rh)){constructor(e){super(e),this.element=new _l,this.specPath=ji(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const nm=rm;class sm extends ua.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(sm.primaryClass)}}const im=sm;class om extends(op(of,Rh)){constructor(e){super(e),this.element=new im,this.specPath=ji(["value"])}}const am=om;class cm extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ch,this.specPath=ji(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const lm=cm;class um extends ua.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(um.primaryClass),this.classes.push("examples")}}const pm=um;const hm=class extends nd{constructor(e){super(e),this.element=new pm}};class fm extends ua.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(fm.primaryClass),this.classes.push("content")}}const dm=fm;const mm=class extends Fd{constructor(e){super(e),this.element=new dm}};class ym extends ua.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(ym.primaryClass)}}const gm=ym;class vm extends(op(of,Rh)){constructor(e){super(e),this.element=new gm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const bm=vm;class xm extends ua.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(xm.primaryClass)}}const Em=xm;class wm extends(op(of,Rh)){constructor(e){super(e),this.element=new Em,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Hf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",hc(t))})),t}}const jm=wm;class Om extends ua.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Om.primaryClass),this.classes.push("parameters")}}const Sm=Om;class Am extends(op(of,Rh)){constructor(e){super(e),this.element=new Sm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const Pm=Am;class $m extends ua.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push($m.primaryClass),this.classes.push("examples")}}const Tm=$m;class _m extends(op(of,Rh)){constructor(e){super(e),this.element=new Tm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const km=_m;class Mm extends ua.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Mm.primaryClass)}}const Cm=Mm;class Im extends(op(of,Rh)){constructor(e){super(e),this.element=new Cm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Rm=Im;class Fm extends ua.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Fm.primaryClass)}}const Dm=Fm;class Nm extends(op(of,Rh)){constructor(e){super(e),this.element=new Dm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Mf).forEach(((e,t)=>{e.setMetaProperty("header-name",hc(t))})),t}}const Lm=Nm;class qm extends ua.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(qm.primaryClass)}}const Bm=qm;class Um extends(op(of,Rh)){constructor(e){super(e),this.element=new Bm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Vm=Um;class Hm extends ua.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Hm.primaryClass)}}const zm=Hm;class Gm extends(op(of,Rh)){constructor(e){super(e),this.element=new zm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Jm=Gm;class Km extends ua.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Km.primaryClass)}}const Wm=Km;class Ym extends(op(of,Rh)){constructor(e){super(e),this.element=new Wm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Xm=Ym;class Qm extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Il,this.specPath=ji(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return _a(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Zm=Qm;const ey=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ty extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Fl,this.specPath=ji(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const ry=ty;class ny extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ml,this.specPath=ji(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.headers)&&this.element.headers.filter(Mf).forEach(((e,t)=>{e.setMetaProperty("header-name",hc(t))})),t}}const sy=ny;class iy extends ua.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(iy.primaryClass)}}const oy=iy;class ay extends(op(of,Rh)){constructor(e){super(e),this.element=new oy,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Mf(e))return;const r=hc(t);e.setMetaProperty("headerName",r)})),t}}const cy=ay;class ly extends(op(sf,Rh)){constructor(e){super(e),this.element=new cu,this.specPath=ji(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ta}ObjectElement(e){const t=sf.prototype.ObjectElement.call(this,e);return this.element.filter(qf).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Ya(t))})),t}}const uy=ly;class py extends(op(Bh,Rh)){constructor(e){super(e),this.element=new hu,this.specPath=ji(["document","objects","RequestBody"])}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.contentProp)&&this.element.contentProp.filter(Qf).forEach(((e,t)=>{e.setMetaProperty("media-type",hc(t))})),t}}const hy=py;class fy extends ua.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(fy.primaryClass),this.classes.push("content")}}const dy=fy;const my=class extends Fd{constructor(e){super(e),this.element=new dy}};class yy extends(op(sf,Rh)){constructor(e){super(e),this.element=new Ol,this.specPath=ji(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(qf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",hc(t))})),t}}const gy=yy;class vy extends(op(Bh,Rh)){constructor(e){super(e),this.element=new du,this.specPath=ji(["document","objects","Response"])}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.contentProp)&&this.element.contentProp.filter(Qf).forEach(((e,t)=>{e.setMetaProperty("media-type",hc(t))})),Ia(this.element.headers)&&this.element.headers.filter(Mf).forEach(((e,t)=>{e.setMetaProperty("header-name",hc(t))})),t}}const by=vy;class xy extends ua.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(xy.primaryClass)}}const Ey=xy;class wy extends(op(of,Rh)){constructor(e){super(e),this.element=new Ey,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Mf(e))return;const r=hc(t);e.setMetaProperty("header-name",r)})),t}}const jy=wy;class Oy extends ua.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Oy.primaryClass),this.classes.push("content")}}const Sy=Oy;const Ay=class extends Fd{constructor(e){super(e),this.element=new Sy}};class Py extends ua.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(Py.primaryClass)}}const $y=Py;class Ty extends(op(of,Rh)){constructor(e){super(e),this.element=new $y,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const _y=Ty;function ky(e){return"[object Number]"===Object.prototype.toString.call(e)}var My=Hn((function(e,t){if(!ky(e)||!ky(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),n=e<0?t+Math.abs(e):t-e,s=0;s<n;)r[s]=s+e,s+=1;return r}));const Cy=My;function Iy(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?!!ds(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?!!ds(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Ry=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Iy(e,!0,this)},e.prototype.has=function(e){return Iy(e,!1,this)},e}();var Fy=Hn((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Ry,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 Dy=Fy;class Ny extends(op(Bh,sf)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Dy(e.keys(),t)],Bh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,sf.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return sa}}const Ly=Ny;class qy extends(op(Ly,Rh)){constructor(e){super(e),this.element=new yu,this.specPathFixedFields=ji(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Cy(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Ly.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Hf).forEach(((e,t)=>{const r=Ya(t);this.fieldPatternPredicate(hc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const By=qy;class Uy extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)?this.element.setMetaProperty("referenced-element","response"):Hf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Vy=Uy;class Hy extends(op(Bh,Rh)){constructor(e){super(e),this.element=new ru,this.specPath=ji(["document","objects","Operation"])}}const zy=Hy;class Gy extends ua.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Gy.primaryClass)}}const Jy=Gy;const Ky=class extends Rh{constructor(e){super(e),this.element=new Jy}ArrayElement(e){return this.element=this.element.concat(Ya(e)),sa}};class Wy extends ua.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Wy.primaryClass),this.classes.push("parameters")}}const Yy=Wy;class Xy extends(op(Fh,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Dh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Uf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Qy=Xy;const Zy=class extends Qy{constructor(e){super(e),this.element=new Yy}};const eg=class extends Af{constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class tg extends ua.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(tg.primaryClass)}}const rg=tg;class ng extends(op(of,Rh)){specPath;constructor(e){super(e),this.element=new rg,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const sg=ng;class ig extends ua.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(ig.primaryClass),this.classes.push("security")}}const og=ig;class ag extends(op(Fh,Rh)){constructor(e){super(e),this.element=new og}ArrayElement(e){return e.forEach((e=>{const t=Ia(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const cg=ag;class lg extends ua.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(lg.primaryClass),this.classes.push("servers")}}const ug=lg;const pg=class extends gf{constructor(e){super(e),this.element=new ug}};class hg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new ou,this.specPath=ji(["document","objects","PathItem"])}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(Nf).forEach(((e,t)=>{const r=Ya(t);r.content=hc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),_a(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const fg=hg;const dg=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class mg extends ua.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(mg.primaryClass),this.classes.push("servers")}}const yg=mg;const gg=class extends gf{constructor(e){super(e),this.element=new yg}};class vg extends ua.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(vg.primaryClass),this.classes.push("parameters")}}const bg=vg;const xg=class extends Qy{constructor(e){super(e),this.element=new bg}};class Eg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Sh,this.specPath=ji(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const wg=Eg;class jg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Yl,this.specPath=ji(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Og=jg;class Sg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Kl,this.specPath=ji(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Ag=Sg;class Pg extends ua.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Pg.primaryClass)}}const $g=Pg;class Tg extends(op(of,Rh)){constructor(e){super(e),this.element=new $g,this.specPath=ji(["value"])}}const _g=Tg;class kg extends ua.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(kg.primaryClass)}}const Mg=kg;class Cg extends(op(Fh,Rh)){constructor(e){super(e),this.element=new Mg}ArrayElement(e){return e.forEach((e=>{const t=Lh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Ig=Cg,{fixedFields:Rg}=uh.visitors.document.objects.JSONSchema,Fg={visitors:{value:Rh,document:{objects:{OpenApi:{$visitor:Vh,fixedFields:{openapi:zh,info:{$ref:"#/visitors/document/objects/Info"},servers:gf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:yd,tags:Ig,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Kh,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Wh}},Contact:{$visitor:Xh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Zh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:hf,fixedFields:{url:ff,description:{$ref:"#/visitors/value"},variables:jf}},ServerVariable:{$visitor:bf,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:vd,fixedFields:{schemas:bm,responses:jm,parameters:Pm,examples:km,requestBodies:Rm,headers:Lm,securitySchemes:Vm,links:Jm,callbacks:Xm}},Paths:{$visitor:uy},PathItem:{$visitor:fg,fixedFields:{$ref:dg,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:gg,parameters:xg}},Operation:{$visitor:zy,fixedFields:{tags:Ky,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Zy,requestBody:eg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:sg,deprecated:{$ref:"#/visitors/value"},security:cg,servers:pg}},ExternalDocumentation:{$visitor:ry,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Sd,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Pd,example:{$ref:"#/visitors/value"},examples:hm,content:mm}},RequestBody:{$visitor:hy,fixedFields:{description:{$ref:"#/visitors/value"},content:my,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Sf,fixedFields:{schema:td,example:{$ref:"#/visitors/value"},examples:od,encoding:ud}},Encoding:{$visitor:sy,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:cy,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:By,fixedFields:{default:Vy}},Response:{$visitor:by,fixedFields:{description:{$ref:"#/visitors/value"},headers:jy,content:Ay,links:_y}},Callback:{$visitor:gy},Example:{$visitor:Zm,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ey}},Link:{$visitor:tf,fixedFields:{operationRef:rf,operationId:nf,parameters:uf,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Td,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:kd,example:{$ref:"#/visitors/value"},examples:Id,content:Ld}},Tag:{$visitor:xd,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:wd,fixedFields:{$ref:jd}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Bd,fixedFields:{title:Rg.title,multipleOf:Rg.multipleOf,maximum:Rg.maximum,exclusiveMaximum:Rg.exclusiveMaximum,minimum:Rg.minimum,exclusiveMinimum:Rg.exclusiveMinimum,maxLength:Rg.maxLength,minLength:Rg.minLength,pattern:Rg.pattern,maxItems:Rg.maxItems,minItems:Rg.minItems,uniqueItems:Rg.uniqueItems,maxProperties:Rg.maxProperties,minProperties:Rg.minProperties,required:Rg.required,enum:Rg.enum,type:Zd,allOf:Vd,anyOf:zd,oneOf:Jd,not:tm,items:Wd,properties:Xd,additionalProperties:tm,description:Rg.description,format:Rg.format,default:Rg.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:nm,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:am}},XML:{$visitor:lm,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:wg,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Og,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:Ag,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:_g}},SecurityRequirement:{$visitor:hd}},extension:{$visitor:Gh}}}},Dg=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ng={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"],...nc},Lg={namespace:e=>{const{base:t}=e;return t.register("callback",Ol),t.register("components",Al),t.register("contact",$l),t.register("discriminator",_l),t.register("encoding",Ml),t.register("example",Il),t.register("externalDocumentation",Fl),t.register("header",Nl),t.register("info",ql),t.register("license",Ul),t.register("link",Hl),t.register("mediaType",Gl),t.register("oAuthFlow",Kl),t.register("oAuthFlows",Yl),t.register("openapi",Ql),t.register("openApi3_0",eu),t.register("operation",ru),t.register("parameter",su),t.register("pathItem",ou),t.register("paths",cu),t.register("reference",uu),t.register("requestBody",hu),t.register("response",du),t.register("responses",yu),t.register("schema",Eh),t.register("securityRequirement",jh),t.register("securityScheme",Sh),t.register("server",Ph),t.register("serverVariable",Th),t.register("tag",kh),t.register("xml",Ch),t}},qg=()=>{const e=qc(Lg);return{predicates:{...a,isElement:Ta,isStringElement:_a,isArrayElement:Ra,isObjectElement:Ia,isMemberElement:Fa,includesClasses:Ga,hasElementSourceMap:Ha},namespace:e}},Bg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,ua.e)(e),s=Cu(Fg),i=new(yc(t,s))({specObj:s});return ic(n,i),Hc(i.element,r,{toolboxCreator:qg,visitorOptions:{keyMap:Ng,nodeTypeGetter:Dg}})},Ug=e=>(t,r={})=>Bg(t,{specPath:e,...r});Ol.refract=Ug(["visitors","document","objects","Callback","$visitor"]),Al.refract=Ug(["visitors","document","objects","Components","$visitor"]),$l.refract=Ug(["visitors","document","objects","Contact","$visitor"]),Il.refract=Ug(["visitors","document","objects","Example","$visitor"]),_l.refract=Ug(["visitors","document","objects","Discriminator","$visitor"]),Ml.refract=Ug(["visitors","document","objects","Encoding","$visitor"]),Fl.refract=Ug(["visitors","document","objects","ExternalDocumentation","$visitor"]),Nl.refract=Ug(["visitors","document","objects","Header","$visitor"]),ql.refract=Ug(["visitors","document","objects","Info","$visitor"]),Ul.refract=Ug(["visitors","document","objects","License","$visitor"]),Hl.refract=Ug(["visitors","document","objects","Link","$visitor"]),Gl.refract=Ug(["visitors","document","objects","MediaType","$visitor"]),Kl.refract=Ug(["visitors","document","objects","OAuthFlow","$visitor"]),Yl.refract=Ug(["visitors","document","objects","OAuthFlows","$visitor"]),Ql.refract=Ug(["visitors","document","objects","OpenApi","fixedFields","openapi"]),eu.refract=Ug(["visitors","document","objects","OpenApi","$visitor"]),ru.refract=Ug(["visitors","document","objects","Operation","$visitor"]),su.refract=Ug(["visitors","document","objects","Parameter","$visitor"]),ou.refract=Ug(["visitors","document","objects","PathItem","$visitor"]),cu.refract=Ug(["visitors","document","objects","Paths","$visitor"]),uu.refract=Ug(["visitors","document","objects","Reference","$visitor"]),hu.refract=Ug(["visitors","document","objects","RequestBody","$visitor"]),du.refract=Ug(["visitors","document","objects","Response","$visitor"]),yu.refract=Ug(["visitors","document","objects","Responses","$visitor"]),Eh.refract=Ug(["visitors","document","objects","Schema","$visitor"]),jh.refract=Ug(["visitors","document","objects","SecurityRequirement","$visitor"]),Sh.refract=Ug(["visitors","document","objects","SecurityScheme","$visitor"]),Ph.refract=Ug(["visitors","document","objects","Server","$visitor"]),Th.refract=Ug(["visitors","document","objects","ServerVariable","$visitor"]),kh.refract=Ug(["visitors","document","objects","Tag","$visitor"]),Ch.refract=Ug(["visitors","document","objects","XML","$visitor"]);const Vg=class extends Ol{};const Hg=class extends Al{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const zg=class extends $l{};const Gg=class extends _l{};const Jg=class extends Ml{};const Kg=class extends Il{};const Wg=class extends Fl{};const Yg=class extends Nl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Xg=class extends ql{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 Qg extends ua.Om{static default=new Qg("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Zg=Qg;const ev=class extends Ul{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const tv=class extends Hl{};const rv=class extends Gl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const nv=class extends Kl{};const sv=class extends Yl{};const iv=class extends Ql{};class ov extends ua.Sh{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 av=ov;const cv=class extends ru{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const lv=class extends su{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const uv=class extends ou{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 pv=class extends cu{};class hv extends uu{}Object.defineProperty(hv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(hv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const fv=hv;const dv=class extends hu{};const mv=class extends du{};const yv=class extends yu{};class gv extends ua.Sh{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 vv=gv;const bv=class extends jh{};const xv=class extends Sh{};const Ev=class extends Ph{};const wv=class extends Th{};const jv=class extends kh{};const Ov=class extends Ch{};class Sv extends(op(Bh,Rh)){constructor(e){super(e),this.element=new av,this.specPath=ji(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Bh.prototype.ObjectElement.call(this,e)}}const Av=Sv,{visitors:{document:{objects:{Info:{$visitor:Pv}}}}}=Fg;const $v=class extends Pv{constructor(e){super(e),this.element=new Xg}},{visitors:{document:{objects:{Contact:{$visitor:Tv}}}}}=Fg;const _v=class extends Tv{constructor(e){super(e),this.element=new zg}},{visitors:{document:{objects:{License:{$visitor:kv}}}}}=Fg;const Mv=class extends kv{constructor(e){super(e),this.element=new ev}},{visitors:{document:{objects:{Link:{$visitor:Cv}}}}}=Fg;const Iv=class extends Cv{constructor(e){super(e),this.element=new tv}};class Rv extends(op(Fh,Rh)){StringElement(e){const t=new Zg(hc(e));return this.copyMetaAndAttributes(e,t),this.element=t,sa}}const Fv=Rv,{visitors:{document:{objects:{Server:{$visitor:Dv}}}}}=Fg;const Nv=class extends Dv{constructor(e){super(e),this.element=new Ev}},{visitors:{document:{objects:{ServerVariable:{$visitor:Lv}}}}}=Fg;const qv=class extends Lv{constructor(e){super(e),this.element=new wv}},{visitors:{document:{objects:{MediaType:{$visitor:Bv}}}}}=Fg;const Uv=class extends Bv{constructor(e){super(e),this.element=new rv}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:Vv}}}}}=Fg;const Hv=class extends Vv{constructor(e){super(e),this.element=new bv}},{visitors:{document:{objects:{Components:{$visitor:zv}}}}}=Fg;const Gv=class extends zv{constructor(e){super(e),this.element=new Hg}},{visitors:{document:{objects:{Tag:{$visitor:Jv}}}}}=Fg;const Kv=class extends Jv{constructor(e){super(e),this.element=new jv}},{visitors:{document:{objects:{Reference:{$visitor:Wv}}}}}=Fg;const Yv=class extends Wv{constructor(e){super(e),this.element=new fv}},{visitors:{document:{objects:{Parameter:{$visitor:Xv}}}}}=Fg;const Qv=class extends Xv{constructor(e){super(e),this.element=new lv}},{visitors:{document:{objects:{Header:{$visitor:Zv}}}}}=Fg;const eb=class extends Zv{constructor(e){super(e),this.element=new Yg}},tb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vg||e(n)&&t("callback",n)&&r("object",n))),rb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hg||e(n)&&t("components",n)&&r("object",n))),nb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zg||e(n)&&t("contact",n)&&r("object",n))),sb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kg||e(n)&&t("example",n)&&r("object",n))),ib=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wg||e(n)&&t("externalDocumentation",n)&&r("object",n))),ob=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yg||e(n)&&t("header",n)&&r("object",n))),ab=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xg||e(n)&&t("info",n)&&r("object",n))),cb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zg||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),lb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ev||e(n)&&t("license",n)&&r("object",n))),ub=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tv||e(n)&&t("link",n)&&r("object",n))),pb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iv||e(n)&&t("openapi",n)&&r("string",n))),hb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof av||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),fb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cv||e(n)&&t("operation",n)&&r("object",n))),db=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lv||e(n)&&t("parameter",n)&&r("object",n))),mb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uv||e(n)&&t("pathItem",n)&&r("object",n))),yb=e=>{if(!mb(e))return!1;if(!_a(e.$ref))return!1;const t=hc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pv||e(n)&&t("paths",n)&&r("object",n))),vb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fv||e(n)&&t("reference",n)&&r("object",n))),bb=e=>{if(!vb(e))return!1;if(!_a(e.$ref))return!1;const t=hc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dv||e(n)&&t("requestBody",n)&&r("object",n))),Eb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("response",n)&&r("object",n))),wb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yv||e(n)&&t("responses",n)&&r("object",n))),jb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vv||e(n)&&t("schema",n)&&r("object",n))),Ob=e=>Ca(e)&&e.classes.includes("boolean-json-schema"),Sb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("securityRequirement",n)&&r("object",n))),Ab=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xv||e(n)&&t("securityScheme",n)&&r("object",n))),Pb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("server",n)&&r("object",n))),$b=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wv||e(n)&&t("serverVariable",n)&&r("object",n))),Tb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rv||e(n)&&t("mediaType",n)&&r("object",n)));const _b=class{parent;constructor({parent:e}){this.parent=e}};class kb extends(op(Bh,_b,Rh)){constructor(e){super(e),this.element=new vv,this.specPath=ji(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Zg.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=Bh.prototype.ObjectElement.call(this,e);return _a(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&cb(this.openApiSemanticElement.jsonSchemaDialect)?hc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&_a(this.openApiGenericElement.get("jsonSchemaDialect"))?hc(this.openApiGenericElement.get("jsonSchemaDialect")):hc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(Si(this.parent)&&!_a(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(jb(this.parent)&&!_a(e.get("$schema"))){const e=Xs(hc(this.parent.meta.get("inherited$schema")),hc(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Ya(this.parent.getMetaProperty("inherited$id",[])):new ua.wE,r=hc(e.get("$id"));wp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const Mb=kb;const Cb=class extends Rh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ib=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Rb extends(op(of,_b,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Fb=Rb;class Db extends(op(Fh,_b,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const Nb=Db;class Lb extends(op(Fh,_b,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const qb=Lb;class Bb extends(op(Fh,_b,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const Ub=Bb;class Vb extends(op(of,_b,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Hb=Vb;class zb extends(op(Fh,_b,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const Gb=zb;class Jb extends(op(of,_b,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Kb=Jb;class Wb extends(op(of,_b,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Yb=Wb;const Xb=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}};const Qb=class extends Rh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Zb=class extends Rh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const ex=class extends Rh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:tx}}}}}=Fg;const rx=class extends tx{constructor(e){super(e),this.element=new Gg,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:nx}}}}}=Fg;const sx=class extends nx{constructor(e){super(e),this.element=new Ov}};class ix extends(op(of,Rh)){constructor(e){super(e),this.element=new gm,this.specPath=ji(["document","objects","Schema"])}}const ox=ix;class ax extends ua.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(ax.primaryClass)}}const cx=ax;class lx extends(op(of,Rh)){constructor(e){super(e),this.element=new cx,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(vb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const ux=lx,{visitors:{document:{objects:{Example:{$visitor:px}}}}}=Fg;const hx=class extends px{constructor(e){super(e),this.element=new Kg}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:fx}}}}}=Fg;const dx=class extends fx{constructor(e){super(e),this.element=new Wg}},{visitors:{document:{objects:{Encoding:{$visitor:mx}}}}}=Fg;const yx=class extends mx{constructor(e){super(e),this.element=new Jg}},{visitors:{document:{objects:{Paths:{$visitor:gx}}}}}=Fg;const vx=class extends gx{constructor(e){super(e),this.element=new pv}},{visitors:{document:{objects:{RequestBody:{$visitor:bx}}}}}=Fg;const xx=class extends bx{constructor(e){super(e),this.element=new dv}},{visitors:{document:{objects:{Callback:{$visitor:Ex}}}}}=Fg;const wx=class extends Ex{constructor(e){super(e),this.element=new Vg,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ex.prototype.ObjectElement.call(this,e);return this.element.filter(vb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:jx}}}}}=Fg;const Ox=class extends jx{constructor(e){super(e),this.element=new mv}},{visitors:{document:{objects:{Responses:{$visitor:Sx}}}}}=Fg;const Ax=class extends Sx{constructor(e){super(e),this.element=new yv}},{visitors:{document:{objects:{Operation:{$visitor:Px}}}}}=Fg;const $x=class extends Px{constructor(e){super(e),this.element=new cv}},{visitors:{document:{objects:{PathItem:{$visitor:Tx}}}}}=Fg;const _x=class extends Tx{constructor(e){super(e),this.element=new uv}},{visitors:{document:{objects:{SecurityScheme:{$visitor:kx}}}}}=Fg;const Mx=class extends kx{constructor(e){super(e),this.element=new xv}},{visitors:{document:{objects:{OAuthFlows:{$visitor:Cx}}}}}=Fg;const Ix=class extends Cx{constructor(e){super(e),this.element=new sv}},{visitors:{document:{objects:{OAuthFlow:{$visitor:Rx}}}}}=Fg;const Fx=class extends Rx{constructor(e){super(e),this.element=new nv}};class Dx extends ua.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(Dx.primaryClass)}}const Nx=Dx;class Lx extends(op(of,Rh)){constructor(e){super(e),this.element=new Nx,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(vb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(mb).forEach(((e,t)=>{e.setMetaProperty("webhook-name",hc(t))})),t}}const qx=Lx,Bx={visitors:{value:Fg.visitors.value,document:{objects:{OpenApi:{$visitor:Av,fixedFields:{openapi:Fg.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Fv,servers:Fg.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:qx,components:{$ref:"#/visitors/document/objects/Components"},security:Fg.visitors.document.objects.OpenApi.fixedFields.security,tags:Fg.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:$v,fixedFields:{title:Fg.visitors.document.objects.Info.fixedFields.title,description:Fg.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Fg.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Fg.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:_v,fixedFields:{name:Fg.visitors.document.objects.Contact.fixedFields.name,url:Fg.visitors.document.objects.Contact.fixedFields.url,email:Fg.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Mv,fixedFields:{name:Fg.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Fg.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Nv,fixedFields:{url:Fg.visitors.document.objects.Server.fixedFields.url,description:Fg.visitors.document.objects.Server.fixedFields.description,variables:Fg.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:qv,fixedFields:{enum:Fg.visitors.document.objects.ServerVariable.fixedFields.enum,default:Fg.visitors.document.objects.ServerVariable.fixedFields.default,description:Fg.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Gv,fixedFields:{schemas:ox,responses:Fg.visitors.document.objects.Components.fixedFields.responses,parameters:Fg.visitors.document.objects.Components.fixedFields.parameters,examples:Fg.visitors.document.objects.Components.fixedFields.examples,requestBodies:Fg.visitors.document.objects.Components.fixedFields.requestBodies,headers:Fg.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Fg.visitors.document.objects.Components.fixedFields.securitySchemes,links:Fg.visitors.document.objects.Components.fixedFields.links,callbacks:Fg.visitors.document.objects.Components.fixedFields.callbacks,pathItems:ux}},Paths:{$visitor:vx},PathItem:{$visitor:_x,fixedFields:{$ref:Fg.visitors.document.objects.PathItem.fixedFields.$ref,summary:Fg.visitors.document.objects.PathItem.fixedFields.summary,description:Fg.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:Fg.visitors.document.objects.PathItem.fixedFields.servers,parameters:Fg.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:$x,fixedFields:{tags:Fg.visitors.document.objects.Operation.fixedFields.tags,summary:Fg.visitors.document.objects.Operation.fixedFields.summary,description:Fg.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Fg.visitors.document.objects.Operation.fixedFields.operationId,parameters:Fg.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Fg.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Fg.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Fg.visitors.document.objects.Operation.fixedFields.deprecated,security:Fg.visitors.document.objects.Operation.fixedFields.security,servers:Fg.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:dx,fixedFields:{description:Fg.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Fg.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Qv,fixedFields:{name:Fg.visitors.document.objects.Parameter.fixedFields.name,in:Fg.visitors.document.objects.Parameter.fixedFields.in,description:Fg.visitors.document.objects.Parameter.fixedFields.description,required:Fg.visitors.document.objects.Parameter.fixedFields.required,deprecated:Fg.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Fg.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Fg.visitors.document.objects.Parameter.fixedFields.style,explode:Fg.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Fg.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fg.visitors.document.objects.Parameter.fixedFields.example,examples:Fg.visitors.document.objects.Parameter.fixedFields.examples,content:Fg.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:xx,fixedFields:{description:Fg.visitors.document.objects.RequestBody.fixedFields.description,content:Fg.visitors.document.objects.RequestBody.fixedFields.content,required:Fg.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Uv,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Fg.visitors.document.objects.MediaType.fixedFields.example,examples:Fg.visitors.document.objects.MediaType.fixedFields.examples,encoding:Fg.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:yx,fixedFields:{contentType:Fg.visitors.document.objects.Encoding.fixedFields.contentType,headers:Fg.visitors.document.objects.Encoding.fixedFields.headers,style:Fg.visitors.document.objects.Encoding.fixedFields.style,explode:Fg.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Fg.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Ax,fixedFields:{default:Fg.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Ox,fixedFields:{description:Fg.visitors.document.objects.Response.fixedFields.description,headers:Fg.visitors.document.objects.Response.fixedFields.headers,content:Fg.visitors.document.objects.Response.fixedFields.content,links:Fg.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:wx},Example:{$visitor:hx,fixedFields:{summary:Fg.visitors.document.objects.Example.fixedFields.summary,description:Fg.visitors.document.objects.Example.fixedFields.description,value:Fg.visitors.document.objects.Example.fixedFields.value,externalValue:Fg.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Iv,fixedFields:{operationRef:Fg.visitors.document.objects.Link.fixedFields.operationRef,operationId:Fg.visitors.document.objects.Link.fixedFields.operationId,parameters:Fg.visitors.document.objects.Link.fixedFields.parameters,requestBody:Fg.visitors.document.objects.Link.fixedFields.requestBody,description:Fg.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:eb,fixedFields:{description:Fg.visitors.document.objects.Header.fixedFields.description,required:Fg.visitors.document.objects.Header.fixedFields.required,deprecated:Fg.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Fg.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Fg.visitors.document.objects.Header.fixedFields.style,explode:Fg.visitors.document.objects.Header.fixedFields.explode,allowReserved:Fg.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fg.visitors.document.objects.Header.fixedFields.example,examples:Fg.visitors.document.objects.Header.fixedFields.examples,content:Fg.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Kv,fixedFields:{name:Fg.visitors.document.objects.Tag.fixedFields.name,description:Fg.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Yv,fixedFields:{$ref:Fg.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:Mb,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:Cb,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:Ib,$defs:Fb,$comment:{$ref:"#/visitors/value"},allOf:Nb,anyOf:qb,oneOf:Ub,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:Hb,prefixItems:Gb,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Kb,patternProperties:Yb,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:Xb,enum:Qb,const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:Zb,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:ex,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:rx,fixedFields:{propertyName:Fg.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Fg.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:sx,fixedFields:{name:Fg.visitors.document.objects.XML.fixedFields.name,namespace:Fg.visitors.document.objects.XML.fixedFields.namespace,prefix:Fg.visitors.document.objects.XML.fixedFields.prefix,attribute:Fg.visitors.document.objects.XML.fixedFields.attribute,wrapped:Fg.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Mx,fixedFields:{type:Fg.visitors.document.objects.SecurityScheme.fixedFields.type,description:Fg.visitors.document.objects.SecurityScheme.fixedFields.description,name:Fg.visitors.document.objects.SecurityScheme.fixedFields.name,in:Fg.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Fg.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Fg.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Fg.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Ix,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:Fx,fixedFields:{authorizationUrl:Fg.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Fg.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Fg.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Fg.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Hv}},extension:{$visitor:Fg.visitors.document.extension.$visitor}}}},Ux=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Vx={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"],...nc},Hx={namespace:e=>{const{base:t}=e;return t.register("callback",Vg),t.register("components",Hg),t.register("contact",zg),t.register("discriminator",Gg),t.register("encoding",Jg),t.register("example",Kg),t.register("externalDocumentation",Wg),t.register("header",Yg),t.register("info",Xg),t.register("jsonSchemaDialect",Zg),t.register("license",ev),t.register("link",tv),t.register("mediaType",rv),t.register("oAuthFlow",nv),t.register("oAuthFlows",sv),t.register("openapi",iv),t.register("openApi3_1",av),t.register("operation",cv),t.register("parameter",lv),t.register("pathItem",uv),t.register("paths",pv),t.register("reference",fv),t.register("requestBody",dv),t.register("response",mv),t.register("responses",yv),t.register("schema",vv),t.register("securityRequirement",bv),t.register("securityScheme",xv),t.register("server",Ev),t.register("serverVariable",wv),t.register("tag",jv),t.register("xml",Ov),t}},zx=()=>{const e=qc(Hx);return{predicates:{...c,isElement:Ta,isStringElement:_a,isArrayElement:Ra,isObjectElement:Ia,isMemberElement:Fa,isServersElement:Zf,includesClasses:Ga,hasElementSourceMap:Ha},namespace:e}},Gx=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,ua.e)(e),s=Cu(Bx),i=new(yc(t,s))({specObj:s});return ic(n,i),Hc(i.element,r,{toolboxCreator:zx,visitorOptions:{keyMap:Vx,nodeTypeGetter:Ux}})},Jx=e=>(t,r={})=>Gx(t,{specPath:e,...r});Vg.refract=Jx(["visitors","document","objects","Callback","$visitor"]),Hg.refract=Jx(["visitors","document","objects","Components","$visitor"]),zg.refract=Jx(["visitors","document","objects","Contact","$visitor"]),Kg.refract=Jx(["visitors","document","objects","Example","$visitor"]),Gg.refract=Jx(["visitors","document","objects","Discriminator","$visitor"]),Jg.refract=Jx(["visitors","document","objects","Encoding","$visitor"]),Wg.refract=Jx(["visitors","document","objects","ExternalDocumentation","$visitor"]),Yg.refract=Jx(["visitors","document","objects","Header","$visitor"]),Xg.refract=Jx(["visitors","document","objects","Info","$visitor"]),Zg.refract=Jx(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ev.refract=Jx(["visitors","document","objects","License","$visitor"]),tv.refract=Jx(["visitors","document","objects","Link","$visitor"]),rv.refract=Jx(["visitors","document","objects","MediaType","$visitor"]),nv.refract=Jx(["visitors","document","objects","OAuthFlow","$visitor"]),sv.refract=Jx(["visitors","document","objects","OAuthFlows","$visitor"]),iv.refract=Jx(["visitors","document","objects","OpenApi","fixedFields","openapi"]),av.refract=Jx(["visitors","document","objects","OpenApi","$visitor"]),cv.refract=Jx(["visitors","document","objects","Operation","$visitor"]),lv.refract=Jx(["visitors","document","objects","Parameter","$visitor"]),uv.refract=Jx(["visitors","document","objects","PathItem","$visitor"]),pv.refract=Jx(["visitors","document","objects","Paths","$visitor"]),fv.refract=Jx(["visitors","document","objects","Reference","$visitor"]),dv.refract=Jx(["visitors","document","objects","RequestBody","$visitor"]),mv.refract=Jx(["visitors","document","objects","Response","$visitor"]),yv.refract=Jx(["visitors","document","objects","Responses","$visitor"]),vv.refract=Jx(["visitors","document","objects","Schema","$visitor"]),bv.refract=Jx(["visitors","document","objects","SecurityRequirement","$visitor"]),xv.refract=Jx(["visitors","document","objects","SecurityScheme","$visitor"]),Ev.refract=Jx(["visitors","document","objects","Server","$visitor"]),wv.refract=Jx(["visitors","document","objects","ServerVariable","$visitor"]),jv.refract=Jx(["visitors","document","objects","Tag","$visitor"]),Ov.refract=Jx(["visitors","document","objects","XML","$visitor"]);const Kx=class extends gu{};const Wx=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Kx("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Kx("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Kx("latest method in MediaTypes class is not yet implemented.")}};class Yx extends Wx{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 ei(this.filterByFormat(e))}}const Xx=new Yx("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 Qx=r(2646);const Zx=Qx({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=[]}});const eE=zn((function(e,t,r){return fs(e,Qs(t,r))})),tE=Qx({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=Li(e)?e:e.uri;return Ai(this.find(eE(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.rootRef=null,this.refs=[]}}}),rE=tE,nE={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:rl,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const sE=Hn((function(e,t){return function(r){return function(n){return vi((function(e){return t(e,n)}),r(e(n)))}}}));var iE=zn((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Pu(n)&&es(s,n)&&"object"==typeof n[s]?n[s]:Gn(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Gn(e)&&Es(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)}));const oE=iE;var aE=function(e){return{value:e,map:function(t){return aE(t(e))}}},cE=zn((function(e,t,r){return e((function(e){return aE(t(e))}))(r).value}));const lE=cE,uE=sE(yc(["resolve","baseURI"]),oE(["resolve","baseURI"])),pE=e=>hl(e)?eo():e,hE=(e,t)=>{const r=mc(e,t);return lE(uE,pE,r)},fE=Qx({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 Li(this.uri)?Ki(this.uri):""},toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(us(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});const dE=class extends Nn{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},mE=async(e,t,r)=>{const n=await Promise.all(r.map($c([e],t)));return r.filter(((e,t)=>n[t]))},yE=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 dE("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const gE=class extends Nn{};const vE=class extends gE{},bE=async(e,t)=>{let r=e,n=!1;if(!Ba(e)){const t=Za(e);t.classes.push("result"),r=new xa([t]),n=!0}const s=fE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await mE("canDereference",[s,t],t.dereference.strategies);if(Oc(i))throw new vE(s.uri);try{const{result:e}=await yE("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new gE(`Error while dereferencing file "${s.uri}"`,{cause:e})}};const xE=class extends Nn{};const EE=class extends xE{},wE=Qx({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 Kx("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new Kx("parse method in Parser stamp is not yet implemented.")}}}),jE=wE,OE=Qx(jE,{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 xa;if(0!==r.length){const e=new ua.Om(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new EE(`Error parsing "${e.uri}"`,{cause:t})}}}}),SE=Qx({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Kx("resolve method in ResolveStrategy stamp is not yet implemented.")}}}),AE=Qx(SE,{init(){this.name="openapi-3-1"},methods:{canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)},async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new vE('"openapi-3-1" dereference strategy is not available.');const n=rE(),s=hE(t,{resolve:{internal:!1},dereference:{refSet:n}});return await r.dereference(e,s),n}}});function PE(e,t,r){if(r||(r=new $E),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?PE(e[i],!0,r):e[i]);return n};switch(us(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return Xn(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 $E=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],n=0;n<r.length;n+=1){if((i=r[n])[0]===e)return i[1]}else{var s=this.hash(e);if(r=this.map[s])for(n=0;n<r.length;n+=1){var i;if((i=r[n])[0]===e)return i[1]}}},e}(),TE=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"]=Os,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(es(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,PE(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function _E(e,t,r){return function(n){return new TE(e,t,r,n)}}const kE=Hn(Js("groupBy",ti(4,[],ws([],_E,(function(e,t,r,n){var s=zs((function(n,s){var i=r(s),o=e(es(i,n)?n[i]:PE(t,!1),s);return o&&o["@@transducer/reduced"]?pa(n):(n[i]=o,n)}));return Vs(s,{},n)})))((function(e,t){return e.push(t),e}),[]))),ME=e=>e.replace(/\s/g,""),CE=e=>e.replace(/\W/gi,"_"),IE=(e,t,r)=>{const n=ME(e);return n.length>0?CE(n):((e,t)=>`${CE(ME(t.toLowerCase()))}${CE(ME(e))}`)(t,r)},RE=({operationIdNormalizer:e=IE}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=kE((e=>hc(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=>{if(void 0===e.operationId)return;const t=String(hc(e.operationId)),r=s.find((e=>hc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Ya.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=Xs("path",hc(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(hc(t.operationId)),o=ei(n),a=Xs("method",hc(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)}}}}};const FE=zn((function(e,t,r){return Xs(e,Wn(t,r))}));var DE=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return Zn(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function NE(e){return function(t){return new DE(e,t)}}const LE=Hn(ws([],NE,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)Zn(e,r=t[n],i)||(i[i.length]=r),n+=1;return i}))),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)&&(hc(t.name)===hc(r.name)&&hc(t.in)===hc(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=ei(r);if(!Array.isArray(n)||0===n.length)return;const s=FE([],["parameters","content"],e),i=LE(t,[...s,...n]);e.parameters=new Yy(i)}}}}},BE=()=>({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 og(null===(a=t)||void 0===a?void 0:a.content))}}}}},UE=()=>({predicates:e,namespace:t})=>({visitor:{OpenApi3_1Element(r){const n=void 0===r.servers,s=e.isArrayElement(r.servers),i=s&&0===r.servers.length,o=t.elements.Server.refract({url:"/"});n||!s?r.servers=new mf([o]):s&&i&&r.servers.push(o)},PathItemElement(t,r,n,s,i){if(i.some(e.isComponentsElement))return;if(!i.some(e.isOpenApi3_1Element))return;const o=i.find(e.isOpenApi3_1Element),a=void 0===t.servers,c=e.isArrayElement(t.servers),l=c&&0===t.servers.length;if(e.isOpenApi3_1Element(o)){var u;const e=null===(u=o.servers)||void 0===u?void 0:u.content,r=null!=e?e:[];a||!c?t.servers=new yg(r):c&&l&&r.forEach((e=>{t.servers.push(e)}))}},OperationElement(t,r,n,s,i){if(i.some(e.isComponentsElement))return;if(!i.some(e.isOpenApi3_1Element))return;const o=[...i].reverse().find(e.isPathItemElement),a=void 0===t.servers,c=e.isArrayElement(t.servers),l=c&&0===t.servers.length;if(e.isPathItemElement(o)){var u;const e=null===(u=o.servers)||void 0===u?void 0:u.content,r=null!=e?e:[];a||!c?t.servers=new ug(r):c&&l&&r.forEach((e=>{t.servers.push(e)}))}}}}),VE=()=>({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=>Ya.safe(e.value)));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",[Ya(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Ya(t.example)))}}}}}),HE=()=>({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=>Ya.safe(e.value)));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",[Ya(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Ya(t.example)))}}}}}),zE=e=>t=>{if(t?.$$normalized)return t;if(zE.cache.has(t))return zE.cache.get(t);const r=av.refract(t),n=e(r),s=hc(n);return zE.cache.set(t,s),s};zE.cache=new WeakMap;const GE=e=>{if(!Ia(e))return e;if(e.hasKey("$$normalized"))return e;const t=[RE({operationIdNormalizer:(e,t,r)=>Uo({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),qE(),BE(),UE(),VE(),HE()],r=Hc(e,t,{toolboxCreator:zx,visitorOptions:{keyMap:Vx,nodeTypeGetter:Ux}});return r.set("$$normalized",!0),r},JE=Qx({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Kx("read method in Resolver stamp is not yet implemented.")}}}),KE=Qx(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=>Yi(e.uri),async read(){throw new Kx("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new Kx("getHttpClient method in HttpResolver stamp is not yet implemented.")}}});const WE=class extends Nn{};const YE=class extends WE{},{AbortController:XE,AbortSignal:QE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=XE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=QE);const ZE=KE.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Rr,swaggerHTTPClientConfig:{}},init({swaggerHTTPClient:e=this.swaggerHTTPClient}={}){this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:n}=r,s=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:n,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new YE(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),ew=(e,t=Bc)=>{if(Li(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Dc(e)&&ku("element",e)?t.fromRefract(e):t.toElement(e)},tw=jE.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 EE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=ew(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new EE(`Error parsing "${e.uri}"`,{cause:t})}}}}),rw=jE.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:xr}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new EE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();try{const e=kr.load(r,{schema:xr});if(this.allowEmpty&&void 0===e)return t;const n=ew(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new EE(`Error parsing "${e.uri}"`,{cause:t})}}}}),nw=jE.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new Yx(...Xx.filterByFormat("generic"),...Xx.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 EE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=av.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new EE(`Error parsing "${e.uri}"`,{cause:t})}}}}),sw=jE.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new Yx(...Xx.filterByFormat("generic"),...Xx.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 EE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();try{const e=kr.load(r,{schema:xr});if(this.allowEmpty&&void 0===e)return t;const n=av.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new EE(`Error parsing "${e.uri}"`,{cause:t})}}}}),iw=Qx({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Kx("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});const ow=Hn((function(e,t){return da(bs(e),t)}));var aw=r(3306);const cw=class extends Ln{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}},lw=Qx({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new aw({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!Ta(e))throw new cw("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&_a(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new ua.Om(this.generateId());return this.identityMap.set(e,t),t},forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)},generateId(){return this.uuid.randomUUID()}}}),uw=(lw({length:6}),(e,t)=>{const r=new sc({predicate:e,returnOnTrue:sa});return ic(t,r),FE(void 0,[0],r.result)});const pw=class extends Nn{};const hw=class extends pw{};const fw=class extends pw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},dw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),mw=e=>{const t=Qi(e);return yl("#",t)},yw=(e,t)=>{const r=(e=>{if(!dw(e))throw new fw(e);return e})(e),n=uw((e=>jb(e)&&hc(e.$anchor)===r),t);if(Si(n))throw new hw(`Evaluation failed on token: "${r}"`);return n},gw=(e,t)=>{const r=new sc({predicate:e});return ic(t,r),new ua.G6(r.result)};const vw=class extends Nn{};const bw=class extends vw{},xw=(e,t)=>{if(void 0===t.$ref)return;const r=Qi(hc(t.$ref)),n=hc(t.meta.get("inherited$id"));return`${Gs(((e,t)=>to(e,ro(Zi(t)))),e,[...n,hc(t.$ref)])}${"#"===r?"":r}`},Ew=e=>{if(Ew.cache.has(e))return Ew.cache.get(e);const t=vv.refract(e);return Ew.cache.set(e,t),t};Ew.cache=new WeakMap;const ww=e=>Va(e)?Ew(e):e,jw=(e,t)=>{const{cache:r}=jw,n=Zi(e),s=e=>jb(e)&&void 0!==e.$id;if(!r.has(t)){const e=gw(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=hc(t.meta.get("inherited$id"));return Gs(((e,t)=>to(e,ro(Zi(t)))),e,[...r,hc(t.$id)])})(n,e)===n));if(Si(i))throw new bw(`Evaluation failed on URI: "${e}"`);let o,a;return dw(mw(e))?(o=yw,a=mw(e)):(o=wl,a=bl(e)),o(a,i)};jw.cache=new WeakMap;const Ow=class extends gE{};const Sw=class extends WE{};const Aw=class extends YE{},Pw=async(e,t)=>{const r=fE({uri:ro(Zi(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 mE("canRead",[e,t],r);if(Oc(n))throw new Aw(e.uri);try{const{result:t}=await yE("read",[e],n);return t}catch(t){throw new WE(`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 mE("canParse",[e,t],r);if(Oc(n))throw new Aw(e.uri);try{const{plugin:r,result:s}=await yE("parse",[e,t],n);return!r.allowEmpty&&s.isEmpty?Promise.reject(new xE(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(t){throw new xE(`Error while parsing file "${e.uri}"`,{cause:t})}})(fE({...r,data:n}),t)};class $w extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(Ta(r)&&e(r))return r}}const Tw=ic[Symbol.for("nodejs.util.promisify.custom")],_w=lw(),kw=Qx({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null,refractCache:null},init({indirections:e=[],reference:t,namespace:r,options:n,ancestors:s=new $w,refractCache:i=new Map}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new $w(...s),this.refractCache=i},methods:{toBaseURI(e){return to(this.reference.uri,ro(Zi(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Sw(`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(eE(t,"uri"));const n=await Pw(no(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=Zx({uri:t,value:Ya(n),depth:this.reference.depth+1});if(r.add(s),this.options.dereference.immutable){const e=Zx({uri:`immutable://${t}`,value:n,depth:this.reference.depth+1});r.add(e)}return s},toAncestorLineage(e){const t=new Set(e.filter(Ta));return[new $w(...this.ancestors,t),t]},async ReferenceElement(e,t,r,n,s){if(this.indirections.includes(e))return!1;const[i,o]=this.toAncestorLineage([...s,r]),a=this.toBaseURI(hc(e.$ref)),c=Zi(this.reference.uri)===a,l=!c;if(!this.options.resolve.internal&&c)return!1;if(!this.options.resolve.external&&l)return!1;const u=await this.toReference(hc(e.$ref)),p=to(a,hc(e.$ref));this.indirections.push(e);const h=bl(p);let f=wl(h,u.value.result);if(f.id=_w.identify(f),Va(f)){const t=hc(e.meta.get("referenced-element")),r=`${t}-${hc(_w.identify(f))}`;if(this.refractCache.has(r))f=this.refractCache.get(r);else if(Dh(f))f=fv.refract(f),f.setMetaProperty("referenced-element",t),this.refractCache.set(r,f);else{f=this.namespace.getElementClass(t).refract(f),this.refractCache.set(r,f)}}if(e===f)throw new Nn("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ow(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(i.includes(f)){if(u.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){var d,m;const n=new ua.sI(f.id,{type:"reference",uri:u.uri,$ref:hc(e.$ref)}),s=(null!==(d=null===(m=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===m?void 0:m.circularReplacer)&&void 0!==d?d:this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const y=Zi(u.refSet.rootRef.uri)!==u.uri,g=["error","replace"].includes(this.options.dereference.circular);if((l||y||vb(f)||g)&&!i.includesCycle(f)){o.add(e);const t=kw({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:i});f=await Tw(f,t,{keyMap:Vx,nodeTypeGetter:Ux}),o.delete(e)}this.indirections.pop();const v=Za(f);return v.setMetaProperty("id",_w.generateId()),v.setMetaProperty("ref-fields",{$ref:hc(e.$ref),description:hc(e.description),summary:hc(e.summary)}),v.setMetaProperty("ref-origin",u.uri),v.setMetaProperty("ref-referencing-element-id",Ya(_w.identify(e))),Ia(f)&&Ia(v)&&(e.hasKey("description")&&"description"in f&&(v.remove("description"),v.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in f&&(v.remove("summary"),v.set("summary",e.get("summary")))),Fa(r)?r.value=v:Array.isArray(r)&&(r[t]=v),!r&&v},async PathItemElement(e,t,r,n,s){if(!_a(e.$ref))return;if(this.indirections.includes(e))return!1;const[i,o]=this.toAncestorLineage([...s,r]),a=this.toBaseURI(hc(e.$ref)),c=Zi(this.reference.uri)===a,l=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&l)return;const u=await this.toReference(hc(e.$ref)),p=to(a,hc(e.$ref));this.indirections.push(e);const h=bl(p);let f=wl(h,u.value.result);if(f.id=_w.identify(f),Va(f)){const e=`path-item-${hc(_w.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=uv.refract(f),this.refractCache.set(e,f))}if(e===f)throw new Nn("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ow(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(i.includes(f)){if(u.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){var d,m;const n=new ua.sI(f.id,{type:"path-item",uri:u.uri,$ref:hc(e.$ref)}),s=(null!==(d=null===(m=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===m?void 0:m.circularReplacer)&&void 0!==d?d:this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const y=Zi(u.refSet.rootRef.uri)!==u.uri,g=["error","replace"].includes(this.options.dereference.circular);if((l||y||mb(f)&&_a(f.$ref)||g)&&!i.includesCycle(f)){o.add(e);const t=kw({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:i});f=await Tw(f,t,{keyMap:Vx,nodeTypeGetter:Ux}),o.delete(e)}if(this.indirections.pop(),mb(f)){const t=new uv([...f.content],Ya(f.meta),Ya(f.attributes));t.setMetaProperty("id",_w.generateId()),e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",u.uri),t.setMetaProperty("ref-referencing-element-id",Ya(_w.identify(e))),f=t}return Fa(r)?r.value=f:Array.isArray(r)&&(r[t]=f),r?void 0:f},async LinkElement(e,t,r){if(!_a(e.operationRef)&&!_a(e.operationId))return;if(_a(e.operationRef)&&_a(e.operationId))throw new Nn("LinkElement operationRef and operationId fields are mutually exclusive.");let n;if(_a(e.operationRef)){var s;const i=bl(hc(e.operationRef)),o=this.toBaseURI(hc(e.operationRef)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(hc(e.operationRef));if(n=wl(i,l.value.result),Va(n)){const e=`operation-${hc(_w.identify(n))}`;this.refractCache.has(e)?n=this.refractCache.get(e):(n=cv.refract(n),this.refractCache.set(e,n))}n=Za(n),n.setMetaProperty("ref-origin",l.uri);const u=Za(e);return null===(s=u.operationRef)||void 0===s||s.meta.set("operation",n),Fa(r)?r.value=u:Array.isArray(r)&&(r[t]=u),r?void 0:u}if(_a(e.operationId)){var i;const s=hc(e.operationId),o=await this.toReference(no(this.reference.uri));if(n=uw((e=>fb(e)&&Ta(e.operationId)&&e.operationId.equals(s)),o.value.result),Si(n))throw new Nn(`OperationElement(operationId=${s}) not found.`);const a=Za(e);return null===(i=a.operationId)||void 0===i||i.meta.set("operation",n),Fa(r)?r.value=a:Array.isArray(r)&&(r[t]=a),r?void 0:a}},async ExampleElement(e,t,r){if(!_a(e.externalValue))return;if(e.hasKey("value")&&_a(e.externalValue))throw new Nn("ExampleElement value and externalValue fields are mutually exclusive.");const n=this.toBaseURI(hc(e.externalValue)),s=Zi(this.reference.uri)===n,i=!s;if(!this.options.resolve.internal&&s)return;if(!this.options.resolve.external&&i)return;const o=await this.toReference(hc(e.externalValue)),a=Za(o.value.result);a.setMetaProperty("ref-origin",o.uri);const c=Za(e);return c.value=a,Fa(r)?r.value=c:Array.isArray(r)&&(r[t]=c),r?void 0:c},async SchemaElement(e,t,r,n,s){if(!_a(e.$ref))return;if(this.indirections.includes(e))return!1;const[i,o]=this.toAncestorLineage([...s,r]);let a=await this.toReference(no(this.reference.uri)),{uri:c}=a;const l=xw(c,e),u=Zi(l),p=fE({uri:u}),h=ow((e=>e.canRead(p)),this.options.resolve.resolvers),f=!h;let d,m=Zi(this.reference.uri)===l,y=!m;this.indirections.push(e);try{if(h||f){c=this.toBaseURI(l);const e=l,t=ww(a.value.result);if(d=jw(e,t),d=ww(d),d.id=_w.identify(d),!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return}else{if(c=this.toBaseURI(l),m=Zi(this.reference.uri)===c,y=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(no(l));const e=bl(l),t=ww(a.value.result);d=wl(e,t),d=ww(d),d.id=_w.identify(d)}}catch(e){if(!(f&&e instanceof bw))throw e;if(dw(mw(l))){if(m=Zi(this.reference.uri)===c,y=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(no(l));const e=mw(l),t=ww(a.value.result);d=yw(e,t),d=ww(d),d.id=_w.identify(d)}else{if(c=this.toBaseURI(l),m=Zi(this.reference.uri)===c,y=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(no(l));const e=bl(l),t=ww(a.value.result);d=wl(e,t),d=ww(d),d.id=_w.identify(d)}}if(e===d)throw new Nn("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ow(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(i.includes(d)){if(a.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){var g,v;const n=new ua.sI(d.id,{type:"json-schema",uri:a.uri,$ref:hc(e.$ref)}),s=(null!==(g=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const b=Zi(a.refSet.rootRef.uri)!==a.uri,x=["error","replace"].includes(this.options.dereference.circular);if((y||b||jb(d)&&_a(d.$ref)||x)&&!i.includesCycle(d)){o.add(e);const t=kw({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:i});d=await Tw(d,t,{keyMap:Vx,nodeTypeGetter:Ux}),o.delete(e)}if(this.indirections.pop(),Ob(d)){const n=Ya(d);return n.setMetaProperty("id",_w.generateId()),n.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),n.setMetaProperty("ref-origin",a.uri),n.setMetaProperty("ref-referencing-element-id",Ya(_w.identify(e))),Fa(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!r&&n}if(jb(d)){const t=new vv([...d.content],Ya(d.meta),Ya(d.attributes));t.setMetaProperty("id",_w.generateId()),e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Ya(_w.identify(e))),d=t}return Fa(r)?r.value=d:Array.isArray(r)&&(r[t]=d),r?void 0:d}}}),Mw=kw,Cw=ic[Symbol.for("nodejs.util.promisify.custom")],Iw=Qx(iw,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?Xx.includes(e.mediaType):hb(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){var r;const n=qc(Hx),s=null!==(r=t.dereference.refSet)&&void 0!==r?r:rE(),i=rE();let o,a=s;s.has(e.uri)?o=s.find(eE(e.uri,"uri")):(o=Zx({uri:e.uri,value:e.parseResult}),s.add(o)),t.dereference.immutable&&(s.refs.map((e=>Zx({...e,value:Ya(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=Mw({reference:o,namespace:n,options:t}),l=await Cw(a.rootRef.value,c,{keyMap:Vx,nodeTypeGetter:Ux});return t.dereference.immutable&&(i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>Zx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),o=s.find((t=>t.uri===e.uri)),a=s),null===t.dereference.refSet&&s.clean(),i.clean(),l}}}),Rw=Iw,Fw=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(Fa(r)){const t=String(hc(r.key));e.push(t)}else if(Ra(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},Dw=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const Nw=class extends Ln{},{wrapError:Lw}=xo,qw=ic[Symbol.for("nodejs.util.promisify.custom")],Bw=lw(),Uw=Mw.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init({allowMetaPatches:e=this.allowMetaPatches,useCircularStructures:t=this.useCircularStructures,basePath:r=this.basePath}){this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r},methods:{async ReferenceElement(e,t,r,n,s){try{if(this.indirections.includes(e))return!1;const[n,i]=this.toAncestorLineage([...s,r]),o=this.toBaseURI(hc(e.$ref)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(hc(e.$ref)),u=to(o,hc(e.$ref));this.indirections.push(e);const p=bl(u);let h=wl(p,l.value.result);if(h.id=Bw.identify(h),Va(h)){const t=hc(e.meta.get("referenced-element")),r=`${t}-${hc(Bw.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(Dh(h))h=fv.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new Nn("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ow(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(n.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){const n=new ua.sI(h.id,{type:"reference",uri:l.uri,$ref:hc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const f=Zi(l.refSet.rootRef.uri)!==l.uri,d=["error","replace"].includes(this.options.dereference.circular);if((c||f||vb(h)||d)&&!n.includesCycle(h)){i.add(e);const t=Uw({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Fw([...s,r,e]),"$ref"]});h=await qw(h,t,{keyMap:Vx,nodeTypeGetter:Ux}),i.delete(e)}this.indirections.pop();const m=Za(h);if(m.setMetaProperty("ref-fields",{$ref:hc(e.$ref),description:hc(e.description),summary:hc(e.summary)}),m.setMetaProperty("ref-origin",l.uri),m.setMetaProperty("ref-referencing-element-id",Ya(Bw.identify(e))),Ia(h)&&(e.hasKey("description")&&"description"in h&&(m.remove("description"),m.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(m.remove("summary"),m.set("summary",e.get("summary")))),this.allowMetaPatches&&Ia(m)&&!m.hasKey("$$ref")){const e=to(o,u);m.set("$$ref",e)}return Fa(r)?r.value=m:Array.isArray(r)&&(r[t]=m),!r&&m}catch(t){const n=Dw(t),i=Lw(n,{baseDoc:this.reference.uri,$ref:hc(e.$ref),pointer:bl(hc(e.$ref)),fullPath:this.basePath??[...Fw([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{if(!_a(e.$ref))return;if(this.indirections.includes(e))return!1;if(Ga(["cycle"],e.$ref))return!1;const[n,i]=this.toAncestorLineage([...s,r]),o=this.toBaseURI(hc(e.$ref)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(hc(e.$ref)),u=to(o,hc(e.$ref));this.indirections.push(e);const p=bl(u);let h=wl(p,l.value.result);if(h.id=Bw.identify(h),Va(h)){const e=`path-item-${hc(Bw.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=uv.refract(h),this.refractCache.set(e,h))}if(e===h)throw new Nn("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ow(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(n.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){const n=new ua.sI(h.id,{type:"path-item",uri:l.uri,$ref:hc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const f=Zi(l.refSet.rootRef.uri)!==l.uri,d=["error","replace"].includes(this.options.dereference.circular);if((c||f||mb(h)&&_a(h.$ref)||d)&&!n.includesCycle(h)){i.add(e);const t=Uw({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Fw([...s,r,e]),"$ref"]});h=await qw(h,t,{keyMap:Vx,nodeTypeGetter:Ux}),i.delete(e)}if(this.indirections.pop(),mb(h)){const t=new uv([...h.content],Ya(h.meta),Ya(h.attributes));if(e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Ya(Bw.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=to(o,u);t.set("$$ref",e)}h=t}return Fa(r)?r.value=h:Array.isArray(r)&&(r[t]=h),r?void 0:h}catch(t){const n=Dw(t),i=Lw(n,{baseDoc:this.reference.uri,$ref:hc(e.$ref),pointer:bl(hc(e.$ref)),fullPath:this.basePath??[...Fw([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{if(!_a(e.$ref))return;if(this.indirections.includes(e))return!1;const[n,i]=this.toAncestorLineage([...s,r]);let o=await this.toReference(no(this.reference.uri)),{uri:a}=o;const c=xw(a,e),l=Zi(c),u=fE({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let f,d=Zi(this.reference.uri)===c,m=!d;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=ww(o.value.result);if(f=jw(e,t),f=ww(f),f.id=Bw.identify(f),!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return}else{if(a=this.toBaseURI(c),d=Zi(this.reference.uri)===a,m=!d,!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(no(c));const e=bl(c),t=ww(o.value.result);f=wl(e,t),f=ww(f),f.id=Bw.identify(f)}}catch(e){if(!(h&&e instanceof bw))throw e;if(dw(mw(c))){if(d=Zi(this.reference.uri)===a,m=!d,!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(no(c));const e=mw(c),t=ww(o.value.result);f=yw(e,t),f=ww(f),f.id=Bw.identify(f)}else{if(a=this.toBaseURI(hc(c)),d=Zi(this.reference.uri)===a,m=!d,!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(no(c));const e=bl(c),t=ww(o.value.result);f=wl(e,t),f=ww(f),f.id=Bw.identify(f)}}if(e===f)throw new Nn("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ow(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(n.includes(f)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){const n=new ua.sI(f.id,{type:"json-schema",uri:o.uri,$ref:hc(e.$ref),baseURI:to(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const y=Zi(o.refSet.rootRef.uri)!==o.uri,g=["error","replace"].includes(this.options.dereference.circular);if((m||y||jb(f)&&_a(f.$ref)||g)&&!n.includesCycle(f)){i.add(e);const t=Uw({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...Fw([...s,r,e]),"$ref"]});f=await qw(f,t,{keyMap:Vx,nodeTypeGetter:Ux}),i.delete(e)}if(this.indirections.pop(),Ob(f)){const n=Ya(f);return n.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),n.setMetaProperty("ref-origin",o.uri),n.setMetaProperty("ref-referencing-element-id",Ya(Bw.identify(e))),Fa(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!r&&n}if(jb(f)){const t=new vv([...f.content],Ya(f.meta),Ya(f.attributes));if(e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Ya(Bw.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=to(a,c);t.set("$$ref",e)}f=t}return Fa(r)?r.value=f:Array.isArray(r)&&(r[t]=f),r?void 0:f}catch(t){const n=Dw(t),i=new Nw(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:hc(e.$ref),fullPath:this.basePath??[...Fw([...s,r,e]),"$ref"],cause:n});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await Mw.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=Dw(t),i=Lw(n,{baseDoc:this.reference.uri,externalValue:hc(e.externalValue),fullPath:this.basePath??[...Fw([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),Vw=Uw,Hw=Rw.compose.bind(),zw=Hw({init({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t},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:hc(this.macroOperation),o=hc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=Fw([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),Gw=Hw({init({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,n,s){void 0!==e.properties&&Ia(e.properties)&&e.properties.forEach((t=>{if(Ia(t))try{const e=this.modelPropertyMacro(hc(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...Fw([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}}),Jw=Hw({init({options:e}){this.options=e},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!Ra(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...Fw([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(jb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...Fw([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=Lu.all([...t.content,e]);if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}}}}),Kw=ic[Symbol.for("nodejs.util.promisify.custom")],Ww=ca[Symbol.for("nodejs.util.promisify.custom")],Yw=Rw.compose({props:{allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init({allowMetaPatches:e=this.allowMetaPatches,parameterMacro:t=this.parameterMacro,modelPropertyMacro:r=this.modelPropertyMacro,mode:n=this.mode,ancestors:s=[]}={}){this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=n,this.ancestors=[...s]},methods:{async dereference(e,t){const r=[],n=qc(Hx),s=t.dereference.refSet??rE(),i=rE();let o,a=s;s.has(e.uri)?o=s.find((t=>t.uri===e.uri)):(o=Zx({uri:e.uri,value:e.parseResult}),s.add(o)),t.dereference.immutable&&(s.refs.map((e=>Zx({...e,value:Ya(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=Vw({reference:o,namespace:n,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(c),"function"==typeof this.parameterMacro){const e=zw({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=Gw({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=Jw({options:t});r.push(e)}const l=Ww(r,{nodeTypeGetter:Ux}),u=await Kw(a.rootRef.value,l,{keyMap:Vx,nodeTypeGetter:Ux});return t.dereference.immutable&&(i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>Zx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),o=s.find((t=>t.uri===e.uri)),a=s),null===t.dereference.refSet&&s.clean(),i.clean(),u}}}),Xw=Yw,Qw=e=>{const t=hc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new ua.Sh({$ref:t},Ya(r.meta),Ya(r.attributes))},Zw=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:h=null,mode:f="non-strict"}=e;try{const{cache:d}=Zw,m=Yi(eo())?eo():p,y=Dr(e),g=to(m,y);let v;d.has(t)?v=d.get(t):(v=av.refract(t),v.classes.push("result"),d.set(t,v));const b=new xa([v]),x=Qc(o),E=""===x?"":`#${x}`,w=wl(x,v),j=Zx({uri:g,value:b}),O=rE({refs:[j]});""!==x&&(O.rootRef=null);const S=[new Set([w])],A=[],P=await(async(e,t={})=>{const r=hE(nE,t);return bE(e,r)})(w,{resolve:{baseURI:`${g}${E}`,resolvers:[ZE({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[AE()]},parse:{mediaType:Xx.latest(),parsers:[nw({allowEmpty:!1,sourceMap:!1}),sw({allowEmpty:!1,sourceMap:!1}),tw({allowEmpty:!1,sourceMap:!1}),rw({allowEmpty:!1,sourceMap:!1}),OE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Xw({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:h,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:A},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?nE.dereference.circularReplacer:Qw}}),$=((e,t,r)=>new Kc({element:r}).transclude(e,t))(w,P,v),T=l?$:GE($);return{spec:hc(T),errors:A}}catch(e){if(e instanceof vl||e instanceof El)return{spec:null,errors:[]};throw e}};Zw.cache=new WeakMap;const ej=Zw,tj={name:"openapi-3-1-apidom",match:({spec:e})=>Ko(e),normalize:({spec:e})=>zE(GE)(e),resolve:async e=>ej(e)};function rj(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 nj=()=>null,sj={mapTagOperations:function({spec:e,cb:t=nj,defaultTag:r="default",v2OperationIdCompatibilityMode:n}){const s={},i={};return rj(e,(({pathName:o,method:a,operation:c})=>{var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=Uo(c,o,a,{v2OperationIdCompatibilityMode:n}),p=t({spec:e,pathName:o,method:a,operation:c,operationId:u});if(s[u])s[u]+=1,l[`${u}${s[u]}`]=p;else if(void 0!==l[u]){const e=s[u]||1;s[u]=e+1,l[`${u}${s[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p}))})),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:n})=>(s,i={})=>{const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:t,method:r,parameters:s,operationId:n,...i})}}};var ij=r(7427);function oj(e){return"[object Object]"===Object.prototype.toString.call(e)}function aj(e){var t,r;return!1!==oj(e)&&(void 0===(t=e.constructor)||!1!==oj(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const cj=function(){const e=pj,t=uj,r=this,n="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let s,i,o,a,c,l,u,p=0,h=0,f=0,d=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(g,v,x,E)=>{const w=`${n}parse(): `;p=0,h=0,f=0,d=0,m=0,s=void 0,i=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(x),s=g.rules,i=g.udts;const j=v.toLowerCase();let O;for(const e in s)if(j===s[e].lower){O=s[e].index;break}if(void 0===O)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<s.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const n in r.callbacks){if(t=a.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=r.callbacks[n]?r.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<s.length?c[t]=o:l[t-s.length]=o}})(),r.trace&&r.trace.init(s,i,a),r.stats&&r.stats.init(s,i),r.ast&&r.ast.init(s,i,a),u=E,o=[{type:e.RNM,index:O}],b(0,0),o=void 0;let S=!1;switch(y.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:S,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:f,nodeHits:d}};const g=(t,r,s,i)=>{if(r.phraseLength>s){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,c)=>{let h,f,d;const m=o[t],g=i[m.index];y.UdtIndex=g.index,p||(d=r.ast&&r.ast.udtDefined(m.index),d&&(f=s.length+m.index,h=r.ast.getLength(),r.ast.down(f,g.name)));const v=a.length-c;l[m.index](y,a,c,u),((t,r,s)=>{if(r.phraseLength>s){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(g,y,v),p||d&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(f,g.name,c,y.phraseLength))},b=(t,i)=>{const l=`${n}opExecute(): `,x=o[t];switch(d+=1,h>f&&(f=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const n=o[t];for(let t=0;t<n.children.length&&(b(n.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let s,i,a,c;const l=o[t];r.ast&&(i=r.ast.getLength()),s=!0,a=n,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){s=!1;break}a+=y.phraseLength,c+=y.phraseLength}s?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let s,i,c,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,c=0,l=0,r.ast&&(s=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(s))})(t,i);break;case e.RNM:((t,n)=>{let i,l,h;const f=o[t],d=s[f.index],m=c[d.index];if(p||(l=r.ast&&r.ast.ruleDefined(f.index),l&&(i=r.ast.getLength(),r.ast.down(f.index,s[f.index].name))),m){const t=a.length-n;m(y,a,n,u),g(d,y,t,!0),y.state===e.ACTIVE&&(h=o,o=d.opcodes,b(0,n),o=h,m(y,a,n,u),g(d,y,t,!1))}else h=o,o=d.opcodes,b(0,n,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(f.index,d.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const n=o[t];y.state=e.NOMATCH,r<a.length&&n.min<=a[r]&&a[r]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const n=o[t],s=n.string.length;if(y.state=e.NOMATCH,r+s<=a.length){for(let e=0;e<s;e+=1)if(a[r+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=s}})(t,i);break;case e.TLS:((t,r)=>{let n;const s=o[t];y.state=e.NOMATCH;const i=s.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(n=a[r+e],n>=65&&n<=90&&(n+=32),n!==s.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:v(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>m&&(m=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},lj=function(){const e=pj,t=uj,r=this;let n,s,i,o=0;const a=[],c=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;c.length=0,l.length=0,o=0,n=e,s=t,i=u;const h=[];for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(o=n.length+s.length,p=0;p<o;p+=1)a[p]=void 0;for(const e in r.callbacks){const t=e.toLowerCase();if(p=h.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[p]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[n.length+e],r.down=(t,r)=>{const n=l.length;return c.push(n),l.push({name:r,thisIndex:n,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),n},r.up=(t,r,n,s)=>{const i=l.length,o=c.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:c.length}),l[o].thatIndex=i,l[o].phraseIndex=n,l[o].phraseLength=s,i},r.translate=t=>{let r,n;for(let s=0;s<l.length;s+=1)n=l[s],r=a[n.callbackIndex],r&&(n.state===e.SEM_PRE?r(e.SEM_PRE,i,n.phraseIndex,n.phraseLength,t):r&&r(e.SEM_POST,i,n.phraseIndex,n.phraseLength,t))},r.setLength=e=>{l.length=e,c.length=e>0?l[e-1].stack:0},r.getLength=()=>l.length,r.toXml=()=>{let r="",n=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(n+2),r+=t.charsToString(i),r+="\n",l.forEach((s=>{s.state===e.SEM_PRE?(n+=1,r+=u(n),r+=`<node name="${s.name}" index="${s.phraseIndex}" length="${s.phraseLength}">\n`,r+=u(n+2),r+=t.charsToString(i,s.phraseIndex,s.phraseLength),r+="\n"):(r+=u(n),r+=`</node>\x3c!-- name="${s.name}" --\x3e\n`,n-=1)})),r+="</root>\n",r}},uj={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===r){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},pj={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case pj.ALT:return"ALT";case pj.CAT:return"CAT";case pj.REP:return"REP";case pj.RNM:return"RNM";case pj.TRG:return"TRG";case pj.TBS:return"TBS";case pj.TLS:return"TLS";case pj.UDT:return"UDT";case pj.AND:return"AND";case pj.NOT:return"NOT";case pj.ACTIVE:return"ACTIVE";case pj.EMPTY:return"EMPTY";case pj.MATCH:return"MATCH";case pj.NOMATCH:return"NOMATCH";case pj.SEM_PRE:return"SEM_PRE";case pj.SEM_POST:return"SEM_POST";case pj.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const hj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["slash",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),fj=(e,t,r,n,s)=>{if(e===pj.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["path-template",uj.charsToString(t,r,n)])}return pj.SEM_OK},dj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["path",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),mj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["path-literal",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),yj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["query",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),gj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["query-marker",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),vj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["fragment",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),bj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["fragment-marker",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),xj=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["template-expression",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),Ej=(e,t,r,n,s)=>(e===pj.SEM_PRE?s.push(["template-expression-param-name",uj.charsToString(t,r,n)]):pj.SEM_POST,pj.SEM_OK),wj=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path",lower:"path",index:1,isBkr:!1},this.rules[2]={name:"path-segment",lower:"path-segment",index:2,isBkr:!1},this.rules[3]={name:"query",lower:"query",index:3,isBkr:!1},this.rules[4]={name:"query-literal",lower:"query-literal",index:4,isBkr:!1},this.rules[5]={name:"query-marker",lower:"query-marker",index:5,isBkr:!1},this.rules[6]={name:"fragment",lower:"fragment",index:6,isBkr:!1},this.rules[7]={name:"fragment-literal",lower:"fragment-literal",index:7,isBkr:!1},this.rules[8]={name:"fragment-marker",lower:"fragment-marker",index:8,isBkr:!1},this.rules[9]={name:"slash",lower:"slash",index:9,isBkr:!1},this.rules[10]={name:"path-literal",lower:"path-literal",index:10,isBkr:!1},this.rules[11]={name:"template-expression",lower:"template-expression",index:11,isBkr:!1},this.rules[12]={name:"template-expression-param-name",lower:"template-expression-param-name",index:12,isBkr:!1},this.rules[13]={name:"unreserved",lower:"unreserved",index:13,isBkr:!1},this.rules[14]={name:"pct-encoded",lower:"pct-encoded",index:14,isBkr:!1},this.rules[15]={name:"sub-delims",lower:"sub-delims",index:15,isBkr:!1},this.rules[16]={name:"sub-delims-no-slash",lower:"sub-delims-no-slash",index:16,isBkr:!1},this.rules[17]={name:"ALPHA",lower:"alpha",index:17,isBkr:!1},this.rules[18]={name:"DIGIT",lower:"digit",index:18,isBkr:!1},this.rules[19]={name:"HEXDIG",lower:"hexdig",index:19,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:5},this.rules[0].opcodes[5]={type:4,index:3},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:2,children:[8,9]},this.rules[0].opcodes[8]={type:4,index:8},this.rules[0].opcodes[9]={type:4,index:6},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,6]},this.rules[1].opcodes[1]={type:4,index:9},this.rules[1].opcodes[2]={type:3,min:0,max:1/0},this.rules[1].opcodes[3]={type:2,children:[4,5]},this.rules[1].opcodes[4]={type:4,index:2},this.rules[1].opcodes[5]={type:4,index:9},this.rules[1].opcodes[6]={type:3,min:0,max:1},this.rules[1].opcodes[7]={type:4,index:2},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:10},this.rules[2].opcodes[3]={type:4,index:11},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:4},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10]},this.rules[4].opcodes[2]={type:4,index:13},this.rules[4].opcodes[3]={type:4,index:14},this.rules[4].opcodes[4]={type:4,index:15},this.rules[4].opcodes[5]={type:7,string:[58]},this.rules[4].opcodes[6]={type:7,string:[64]},this.rules[4].opcodes[7]={type:7,string:[47]},this.rules[4].opcodes[8]={type:7,string:[63]},this.rules[4].opcodes[9]={type:7,string:[38]},this.rules[4].opcodes[10]={type:7,string:[61]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:7,string:[63]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:0,max:1/0},this.rules[6].opcodes[1]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:3,min:1,max:1/0},this.rules[7].opcodes[1]={type:1,children:[2,3,4,5,6,7,8]},this.rules[7].opcodes[2]={type:4,index:13},this.rules[7].opcodes[3]={type:4,index:14},this.rules[7].opcodes[4]={type:4,index:15},this.rules[7].opcodes[5]={type:7,string:[58]},this.rules[7].opcodes[6]={type:7,string:[64]},this.rules[7].opcodes[7]={type:7,string:[47]},this.rules[7].opcodes[8]={type:7,string:[63]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:7,string:[35]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:7,string:[47]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:3,min:1,max:1/0},this.rules[10].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[10].opcodes[2]={type:4,index:13},this.rules[10].opcodes[3]={type:4,index:14},this.rules[10].opcodes[4]={type:4,index:16},this.rules[10].opcodes[5]={type:7,string:[58]},this.rules[10].opcodes[6]={type:7,string:[64]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2,3]},this.rules[11].opcodes[1]={type:7,string:[123]},this.rules[11].opcodes[2]={type:4,index:12},this.rules[11].opcodes[3]={type:7,string:[125]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:1,max:1/0},this.rules[12].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[12].opcodes[3]={type:4,index:14},this.rules[12].opcodes[4]={type:4,index:16},this.rules[12].opcodes[5]={type:7,string:[58]},this.rules[12].opcodes[6]={type:7,string:[64]},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[13].opcodes[1]={type:4,index:17},this.rules[13].opcodes[2]={type:4,index:18},this.rules[13].opcodes[3]={type:7,string:[45]},this.rules[13].opcodes[4]={type:7,string:[46]},this.rules[13].opcodes[5]={type:7,string:[95]},this.rules[13].opcodes[6]={type:7,string:[126]},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3]},this.rules[14].opcodes[1]={type:7,string:[37]},this.rules[14].opcodes[2]={type:4,index:19},this.rules[14].opcodes[3]={type:4,index:19},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[15].opcodes[1]={type:7,string:[33]},this.rules[15].opcodes[2]={type:7,string:[36]},this.rules[15].opcodes[3]={type:7,string:[38]},this.rules[15].opcodes[4]={type:7,string:[39]},this.rules[15].opcodes[5]={type:7,string:[40]},this.rules[15].opcodes[6]={type:7,string:[41]},this.rules[15].opcodes[7]={type:7,string:[42]},this.rules[15].opcodes[8]={type:7,string:[43]},this.rules[15].opcodes[9]={type:7,string:[44]},this.rules[15].opcodes[10]={type:7,string:[59]},this.rules[15].opcodes[11]={type:7,string:[61]},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[36]},this.rules[16].opcodes[3]={type:7,string:[38]},this.rules[16].opcodes[4]={type:7,string:[39]},this.rules[16].opcodes[5]={type:7,string:[40]},this.rules[16].opcodes[6]={type:7,string:[41]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[44]},this.rules[16].opcodes[10]={type:7,string:[59]},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2]},this.rules[17].opcodes[1]={type:5,min:65,max:90},this.rules[17].opcodes[2]={type:5,min:97,max:122},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:5,min:48,max:57},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[19].opcodes[1]={type:4,index:18},this.rules[19].opcodes[2]={type:7,string:[97]},this.rules[19].opcodes[3]={type:7,string:[98]},this.rules[19].opcodes[4]={type:7,string:[99]},this.rules[19].opcodes[5]={type:7,string:[100]},this.rules[19].opcodes[6]={type:7,string:[101]},this.rules[19].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="path-template = path [ query-marker query ] [ fragment-marker fragment ]\n",e+="path = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+="query = *( query-literal )\n",e+='query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n',e+='query-marker = "?"\n',e+="fragment = *( fragment-literal )\n",e+='fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n',e+='fragment-marker = "#"\n',e+='slash = "/"\n',e+='path-literal = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\n',e+='template-expression = "{" template-expression-param-name "}"\n',e+='template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\n',e+="\n",e+="; Characters definitions (from RFC 3986)\n",e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+='sub-delims-no-slash = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";"\n',e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nsub-delims-no-slash = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";"\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}},jj=e=>{const t=new cj;t.ast=new lj,t.ast.callbacks["path-template"]=fj,t.ast.callbacks.path=dj,t.ast.callbacks.query=yj,t.ast.callbacks["query-marker"]=gj,t.ast.callbacks.fragment=vj,t.ast.callbacks["fragment-marker"]=bj,t.ast.callbacks.slash=hj,t.ast.callbacks["path-literal"]=mj,t.ast.callbacks["template-expression"]=xj,t.ast.callbacks["template-expression-param-name"]=Ej;return{result:t.parse(wj,"path-template",e),ast:t.ast}},Oj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch(e){return!1}})(e)?e:encodeURIComponent(e),Sj=["slash","path-literal","query-marker","query-literal","template-expression-param-name"],Aj=(e,t={},r={})=>{const n={...{encoder:Oj},...r},s=jj(e);if(!s.result.success)return e;const i=[];s.ast.translate(i);const o=i.filter((([e])=>Sj.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?n.encoder(t[r]):`{${r}}`:r));return o.join("")},Pj={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:n}){if(void 0!==t){const s=e.url.replace(n,""),i=Aj(s,{[r.name]:t});e.url=n+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function $j(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}function Tj({req:e,value:t,parameter:r,baseURL:n}){const{name:s,style:i,explode:o,content:a}=r;if(void 0===t)return;const c=e.url.replace(n,"");let l;if(a){const e=Object.keys(a)[0];l=Aj(c,{[s]:t},{encoder:t=>P($j(t,e))})}else l=Aj(c,{[s]:t},{encoder:e=>$({key:r.name,value:e,style:i||"simple",explode:o||!1,escape:"reserved"})});e.url=n+l}function _j({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const n=$j(t,Object.keys(r.content)[0]);if(n)e.query[r.name]=n;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:n,explode:s,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:s,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const kj=["accept","authorization","content-type"];function Mj({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(kj.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=$j(r,n)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=$({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function Cj({req:e,parameter:t,value:r}){e.headers=e.headers||{};const n=typeof r;if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${$j(r,n)}`}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const s="object"===n&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=s+$({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}}const Ij="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Rj}=Ij,Fj=Rj;function Dj(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:i={}}=t,o=r.security||n.security||[],a=i&&!!Object.keys(i).length,c=n?.components?.securitySchemes||{};if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!a||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e],r=c[e];if(!t)return;const n=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(s.query[r.name]=n),"header"===r.in&&(s.headers[r.name]=n),"cookie"===r.in&&(s.cookies[r.name]=n);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=Fj(`${e}:${t}`);s.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(s.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),s.headers.Authorization=`${i} ${n}`}}))})),s}({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,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&aj(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.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=>{let s;try{s=JSON.parse(n[r])}catch{s=n[r]}t.form[r]={value:s,encoding:e[r]||{}}}))}else if("string"==typeof n){const e=c.content[a]?.encoding??{};try{t.form={};const r=JSON.parse(n);Object.entries(r).forEach((([r,n])=>{t.form[r]={value:n,encoding:e[r]||{}}}))}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function Nj(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,c=i&&!!Object.keys(i).length,l=n.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!c||!a||Array.isArray(r.security)&&!r.security.length)return e;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,n=t.value||t,o=l[e],{type:a}=o,c=o["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";s[e]=s[e]||{},s[e][o.name]=n}else if("basic"===a)if(n.header)s.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=Fj(`${e}:${t}`),s.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",s.headers.authorization=`${p} ${u}`)}))})),s}({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 Lj(e,t){return`${t.toLowerCase()}-${e}`}function qj(e,t){return e&&e.paths?function(e,t){return rj(e,t,!0)||null}(e,(({pathName:e,method:r,operation:n})=>{if(!n||"object"!=typeof n)return!1;const s=n.operationId;return[Uo(n,e,r),Lj(e,r),s].some((e=>e&&e===t))})):null}const Bj=e=>Array.isArray(e)?e:[],Uj=e=>{try{return new URL(e)}catch{const t=new URL(e,p),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class Vj extends Ln{}const Hj={buildRequest:zj};function zj(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:d,parameterBuilders:m}=e;const y=Wo(t);m||(m=y?l:Pj);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=qj(t,r);if(!v)throw new Vj(`Operation ${r} not found`);const{operation:b={},method:x,pathName:E}=v,w=Jj({spec:t,scheme:s,contextUrl:a,server:u,serverVariables:p,pathName:E,method:x});if(g.url+=w,!r)return delete g.cookies,g;g.url+=E,g.method=`${x}`.toUpperCase(),d=d||{};const j=t.paths[E]||{};n&&(g.headers.accept=n);const O=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(Bj(b.parameters)).concat(Bj(j.parameters)));O.forEach((e=>{const r=m[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=d),n=e&&e.name&&d[e.name],void 0===n?n=e&&e.name&&d[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(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,baseURL:w})}}));const S={...e,operation:b};if(g=y?Dj(S,g):Nj(S,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?"&":"")+ij.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,R(g)}const Gj=e=>e?e.replace(/\W/g,""):null;function Jj(e){return Wo(e.spec)?function({spec:e,pathName:t,method:r,server:n,contextUrl:s,serverVariables:i={}}){let o,a=[],c="";const l=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,u=e?.paths?.[t]?.servers,p=e?.servers;a=Kj(l)?l:Kj(u)?u:Kj(p)?p:[h],n&&(o=a.find((e=>e.url===n)),o&&(c=n));c||([o]=a,c=o.url);if(c.includes("{")){(function(e){const t=e.matchAll(/\{([^{}]+)}|([^{}]+)/g);return Array.from(t,(([,e])=>e)).filter(Boolean)})(c).forEach((e=>{if(o.variables&&o.variables[e]){const t=o.variables[e],r=i[e]||t.default,n=new RegExp(`{${qi(e)}}`,"g");c=c.replace(n,r)}}))}return function(e="",t=""){const r=Uj(e&&t?to(t,e):e),n=Uj(t),s=Gj(r.protocol)||Gj(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,s)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const n=Uj(r),s=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||s||Gj(n.protocol)||"http",o=e.host||n.host||"",a=e.basePath||"";let c;c=i&&o?`${i}://${o+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}const Kj=e=>Array.isArray(e)&&e.length>0;const{isHttpUrl:Wj}=s,Yj=Wj;function Xj(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof Xj))return new Xj(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,Xj.makeApisTagOperation(this)),this)));return r.client=this,r}Xj.http=Rr,Xj.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),n=R(n),n=t(n),r(e(n)))}.bind(null,Xj.http),Xj.resolveStrategies={"openapi-3-1-apidom":tj,"openapi-3-0":Xo,"openapi-2-0":Yo,generic:zo},Xj.resolve=Qo({strategies:[Xj.resolveStrategies["openapi-3-1-apidom"],Xj.resolveStrategies["openapi-3-0"],Xj.resolveStrategies["openapi-2-0"],Xj.resolveStrategies.generic]}),Xj.resolveSubtree=ea({strategies:[Xj.resolveStrategies["openapi-3-1-apidom"],Xj.resolveStrategies["openapi-3-0"],Xj.resolveStrategies["openapi-2-0"],Xj.resolveStrategies.generic]}),Xj.execute=function({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:a,...c}){const l=e||t||Rr;s&&i&&!n&&(n=Lj(s,i));const u=Hj.buildRequest({spec:r,operationId:n,parameters:o,securities:a,http:l,...c});return u.body&&(aj(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},Xj.serializeRes=Ir,Xj.serializeHeaders=Cr,Xj.clearCache=function(){qo.refs.clearCache()},Xj.makeApisTagOperation=function(e={}){const t=sj.makeExecute(e);return{apis:sj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},Xj.buildRequest=zj,Xj.helpers={opId:Uo},Xj.getBaseUrl=Jj,Xj.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:ZE}},parse:{parsers:{JsonParser:tw,YamlParser:rw,OpenApiJson3_1Parser:nw,OpenApiYaml3_1Parser:sw}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Xw}}},Xj.prototype={http:Rr,execute(e){return this.applyDefaults(),Xj.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return Xj.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},Xj.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Go(e)&&Yj(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(Wo(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[h])}};const{helpers:Qj}=Xj,Zj=Xj})(),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={8075:(e,t,r)=>{"use strict";var n=r(453),s=r(487),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}},487:(e,t,r)=>{"use strict";var n=r(6743),s=r(453),i=r(6897),o=r(9675),a=s("%Function.prototype.apply%"),c=s("%Function.prototype.call%"),l=s("%Reflect.apply%",!0)||n.call(c,a),u=r(655),p=s("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var t=l(n,c,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var h=function(){return l(n,a,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},7427:(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");o.partitioned&&(l+="; Partitioned");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}}},4410:(e,t,r)=>{"use strict";var n=r(8199);e.exports=n},8232:(e,t,r)=>{"use strict";r(9356),r(1095),r(3970),r(6396),r(7632);var n=r(7675);e.exports=n.AggregateError},1523:(e,t,r)=>{"use strict";e.exports=r(297)},297:(e,t,r)=>{"use strict";r(4506);var n=r(4410);e.exports=n},182:(e,t,r)=>{"use strict";var n=r(2073),s=r(4003),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},8934:(e,t,r)=>{"use strict";var n=r(2073),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")}},6065:e=>{"use strict";e.exports=function(){}},8347:(e,t,r)=>{"use strict";var n=r(5774),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},4581:(e,t,r)=>{"use strict";var n=r(9441),s=r(8630),i=r(954),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)}},244:(e,t,r)=>{"use strict";var n=r(9036),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},5663:(e,t,r)=>{"use strict";var n=r(7104),s=r(2073),i=r(244),o=r(6615)("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}},2144:(e,t,r)=>{"use strict";var n=r(4373),s=r(8195),i=r(5687),o=r(6381);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))}}},7007:(e,t,r)=>{"use strict";var n=r(7131);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},789:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},8471:(e,t,r)=>{"use strict";var n=r(5560),s=r(6381),i=r(3768);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},3768:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},492:(e,t,r)=>{"use strict";var n=r(8471);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},909:(e,t,r)=>{"use strict";var n=r(5391),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}},5560:(e,t,r)=>{"use strict";var n=r(7131);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7023:e=>{"use strict";var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},6171:(e,t,r)=>{"use strict";var n=r(5391),s=r(5774),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},4740:e=>{"use strict";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}},4084:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6312:(e,t,r)=>{"use strict";var n,s,i=r(5391),o=r(4084),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},347:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7205:(e,t,r)=>{"use strict";var n=r(9036),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}},927:(e,t,r)=>{"use strict";var n=r(8471),s=r(7205),i=r(1527),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},1527:(e,t,r)=>{"use strict";var n=r(7131),s=r(3768);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},1938:(e,t,r)=>{"use strict";var n=r(5391),s=r(1981),i=r(9e3),o=r(2073),a=r(5687).f,c=r(3488),l=r(7675),u=r(2116),p=r(8471),h=r(4373),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,d,m,y,g,v,b,x,w=e.target,E=e.global,j=e.stat,O=e.proto,S=E?n:j?n[w]:(n[w]||{}).prototype,A=E?l:l[w]||p(l,w,{})[w],P=A.prototype;for(m in t)s=!(r=c(E?m:w+(j?".":"#")+m,e.forced))&&S&&h(S,m),g=A[m],s&&(v=e.dontCallGetSet?(x=a(S,m))&&x.value:S[m]),y=s&&v?v:t[m],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(A,m,b),O&&(h(l,d=w+"Prototype")||p(l,d,{}),p(l[d],m,y),e.real&&P&&(r||!P[m])&&p(P,m,y)))}},7131:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1981:(e,t,r)=>{"use strict";var n=r(5164),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)})},2116:(e,t,r)=>{"use strict";var n=r(9e3),s=r(182),i=r(5164),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)}}},5164:(e,t,r)=>{"use strict";var n=r(7131);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3057:(e,t,r)=>{"use strict";var n=r(5164),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4970:(e,t,r)=>{"use strict";var n=r(5560),s=r(4373),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}},7006:(e,t,r)=>{"use strict";var n=r(9036),s=r(182);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9e3:(e,t,r)=>{"use strict";var n=r(244),s=r(9036);e.exports=function(e){if("Function"===n(e))return s(e)}},9036:(e,t,r)=>{"use strict";var n=r(5164),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)}}},7827:(e,t,r)=>{"use strict";var n=r(7675),s=r(5391),i=r(2073),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]}},6399:(e,t,r)=>{"use strict";var n=r(5663),s=r(3514),i=r(6153),o=r(1113),a=r(6615)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},7013:(e,t,r)=>{"use strict";var n=r(3057),s=r(182),i=r(8347),o=r(4003),a=r(6399),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")}},3514:(e,t,r)=>{"use strict";var n=r(182),s=r(6153);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},5391:function(e,t,r){"use strict";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")()},4373:(e,t,r)=>{"use strict";var n=r(9036),s=r(5809),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},6145:e=>{"use strict";e.exports={}},9417:(e,t,r)=>{"use strict";var n=r(7827);e.exports=n("document","documentElement")},2633:(e,t,r)=>{"use strict";var n=r(5560),s=r(7131),i=r(6171);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6731:(e,t,r)=>{"use strict";var n=r(9036),s=r(7131),i=r(244),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},9739:(e,t,r)=>{"use strict";var n=r(2073),s=r(5774),i=r(4619);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}},60:(e,t,r)=>{"use strict";var n=r(5774),s=r(8471);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},9257:(e,t,r)=>{"use strict";var n,s,i,o=r(8698),a=r(5391),c=r(5774),l=r(8471),u=r(4373),p=r(4993),h=r(651),f=r(6145),d="Object already initialized",m=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 m(d);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 m(d);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 m("Incompatible receiver, "+e+" required");return r}}}},5669:(e,t,r)=>{"use strict";var n=r(6615),s=r(1113),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2073:(e,t,r)=>{"use strict";var n=r(7023),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},3488:(e,t,r)=>{"use strict";var n=r(7131),s=r(2073),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},6153:e=>{"use strict";e.exports=function(e){return null==e}},5774:(e,t,r)=>{"use strict";var n=r(2073),s=r(7023),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)}},3599:e=>{"use strict";e.exports=!0},3969:(e,t,r)=>{"use strict";var n=r(7827),s=r(2073),i=r(3381),o=r(1004),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))}},9384:(e,t,r)=>{"use strict";var n=r(2116),s=r(3057),i=r(8347),o=r(4003),a=r(5669),c=r(954),l=r(3381),u=r(7013),p=r(6399),h=r(7959),f=TypeError,d=function(e,t){this.stopped=e,this.result=t},m=d.prototype;e.exports=function(e,t,r){var y,g,v,b,x,w,E,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),$=n(t,j),T=function(e){return y&&h(y,"normal",e),new d(!0,e)},k=function(e){return O?(i(e),P?$(e[0],e[1],T):$(e[0],e[1])):P?$(e,T):$(e)};if(S)y=e.iterator;else if(A)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((x=k(e[v]))&&l(m,x))return x;return new d(!1)}y=u(e,g)}for(w=S?e.next:y.next;!(E=s(w,y)).done;){try{x=k(E.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(m,x))return x}return new d(!1)}},7959:(e,t,r)=>{"use strict";var n=r(3057),s=r(8347),i=r(3514);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}},7102:(e,t,r)=>{"use strict";var n=r(2373).IteratorPrototype,s=r(3628),i=r(3768),o=r(5051),a=r(1113),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}},6188:(e,t,r)=>{"use strict";var n=r(1938),s=r(3057),i=r(3599),o=r(4970),a=r(2073),c=r(7102),l=r(3439),u=r(4619),p=r(5051),h=r(8471),f=r(492),d=r(6615),m=r(1113),y=r(2373),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=d("iterator"),E="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,d,y,A){c(r,t,o);var P,$,T,k=function(e){if(e===d&&R)return R;if(!x&&e&&e in C)return C[e];switch(e){case E:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},_=t+" Iterator",M=!1,C=e.prototype,I=C[w]||C["@@iterator"]||d&&C[d],R=!x&&I||k(d),F="Array"===t&&C.entries||I;if(F&&(P=l(F.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):a(P[w])||f(P,w,S)),p(P,_,!0,!0),i&&(m[_]=S)),g&&d===j&&I&&I.name!==j&&(!i&&v?h(C,"name",j):(M=!0,R=function(){return s(I,this)})),d)if($={values:k(j),keys:y?R:k(E),entries:k(O)},A)for(T in $)(x||M||!(T in C))&&f(C,T,$[T]);else n({target:t,proto:!0,forced:x||M},$);return i&&!A||C[w]===R||f(C,w,R,{name:d}),m[t]=R,$}},2373:(e,t,r)=>{"use strict";var n,s,i,o=r(7131),a=r(2073),c=r(5774),l=r(3628),u=r(3439),p=r(492),h=r(6615),f=r(3599),d=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):m=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},1113:e=>{"use strict";e.exports={}},954:(e,t,r)=>{"use strict";var n=r(2954);e.exports=function(e){return n(e.length)}},1049:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},1764:(e,t,r)=>{"use strict";var n=r(7803);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},3628:(e,t,r)=>{"use strict";var n,s=r(8347),i=r(9157),o=r(347),a=r(6145),c=r(9417),l=r(6171),u=r(651),p="prototype",h="script",f=u("IE_PROTO"),d=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(m("")),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(m("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?(d[p]=s(e),r=new d,d[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},9157:(e,t,r)=>{"use strict";var n=r(5560),s=r(2506),i=r(6381),o=r(8347),a=r(9441),c=r(5556);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}},6381:(e,t,r)=>{"use strict";var n=r(5560),s=r(2633),i=r(2506),o=r(8347),a=r(5141),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}},5687:(e,t,r)=>{"use strict";var n=r(5560),s=r(3057),i=r(6337),o=r(3768),a=r(9441),c=r(5141),l=r(4373),u=r(2633),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])}},2036:(e,t,r)=>{"use strict";var n=r(4512),s=r(347).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},6841:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3439:(e,t,r)=>{"use strict";var n=r(4373),s=r(2073),i=r(5809),o=r(651),a=r(7007),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}},3381:(e,t,r)=>{"use strict";var n=r(9036);e.exports=n({}.isPrototypeOf)},4512:(e,t,r)=>{"use strict";var n=r(9036),s=r(4373),i=r(9441),o=r(4581).indexOf,a=r(6145),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}},5556:(e,t,r)=>{"use strict";var n=r(4512),s=r(347);e.exports=Object.keys||function(e){return n(e,s)}},6337:(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},4619:(e,t,r)=>{"use strict";var n=r(7006),s=r(8347),i=r(8934);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)},5759:(e,t,r)=>{"use strict";var n=r(7104),s=r(5663);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},6034:(e,t,r)=>{"use strict";var n=r(3057),s=r(2073),i=r(5774),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")}},8195:(e,t,r)=>{"use strict";var n=r(7827),s=r(9036),i=r(2036),o=r(6841),a=r(8347),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}},7675:e=>{"use strict";e.exports={}},3636:(e,t,r)=>{"use strict";var n=r(6381).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}})}},8890:(e,t,r)=>{"use strict";var n=r(6153),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},5051:(e,t,r)=>{"use strict";var n=r(7104),s=r(6381).f,i=r(8471),o=r(4373),a=r(5759),c=r(6615)("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)}}},651:(e,t,r)=>{"use strict";var n=r(3557),s=r(7980),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},4993:(e,t,r)=>{"use strict";var n=r(5391),s=r(909),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},3557:(e,t,r)=>{"use strict";var n=r(3599),s=r(4993);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},235:(e,t,r)=>{"use strict";var n=r(9036),s=r(6759),i=r(7803),o=r(8890),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)}},7235:(e,t,r)=>{"use strict";var n=r(6312),s=r(7131),i=r(5391).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8630:(e,t,r)=>{"use strict";var n=r(6759),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)}},9441:(e,t,r)=>{"use strict";var n=r(6731),s=r(8890);e.exports=function(e){return n(s(e))}},6759:(e,t,r)=>{"use strict";var n=r(1049);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},2954:(e,t,r)=>{"use strict";var n=r(6759),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},5809:(e,t,r)=>{"use strict";var n=r(8890),s=Object;e.exports=function(e){return s(n(e))}},5045:(e,t,r)=>{"use strict";var n=r(3057),s=r(5774),i=r(3969),o=r(3514),a=r(6034),c=r(6615),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)}},5141:(e,t,r)=>{"use strict";var n=r(5045),s=r(3969);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},7104:(e,t,r)=>{"use strict";var n={};n[r(6615)("toStringTag")]="z",e.exports="[object z]"===String(n)},7803:(e,t,r)=>{"use strict";var n=r(5663),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},4003:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},7980:(e,t,r)=>{"use strict";var n=r(9036),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},1004:(e,t,r)=>{"use strict";var n=r(7235);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2506:(e,t,r)=>{"use strict";var n=r(5560),s=r(7131);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8698:(e,t,r)=>{"use strict";var n=r(5391),s=r(2073),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},6615:(e,t,r)=>{"use strict";var n=r(5391),s=r(3557),i=r(4373),o=r(7980),a=r(7235),c=r(1004),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]}},9005:(e,t,r)=>{"use strict";var n=r(7827),s=r(4373),i=r(8471),o=r(3381),a=r(4619),c=r(2144),l=r(3636),u=r(9739),p=r(1764),h=r(60),f=r(927),d=r(5560),m=r(3599);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],w=n.apply(null,b);if(w){var E=w.prototype;if(!m&&s(E,"cause")&&delete E.cause,!r)return w;var j=n("Error"),O=t((function(e,t){var r=p(y?t:e,void 0),n=y?new w(e):new w;return void 0!==r&&i(n,"message",r),f(n,O,n.stack,2),this&&o(E,this)&&u(n,this,O),arguments.length>v&&h(n,arguments[v]),n}));if(O.prototype=E,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):d&&g in w&&(l(O,w,g),l(O,w,"prepareStackTrace")),c(O,w),!m)try{E.name!==x&&i(E,"name",x),E.constructor=O}catch(e){}return O}}},3970:(e,t,r)=>{"use strict";var n=r(1938),s=r(7827),i=r(1981),o=r(7131),a=r(9005),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)})},2949:(e,t,r)=>{"use strict";var n=r(1938),s=r(3381),i=r(3439),o=r(4619),a=r(2144),c=r(3628),l=r(8471),u=r(3768),p=r(60),h=r(927),f=r(9384),d=r(1764),m=r(6615)("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,m,"Error")),void 0!==t&&l(r,"message",d(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})},1095:(e,t,r)=>{"use strict";r(2949)},6396:(e,t,r)=>{"use strict";var n=r(9441),s=r(6065),i=r(1113),o=r(9257),a=r(6381).f,c=r(6188),l=r(789),u=r(3599),p=r(5560),h="Array Iterator",f=o.set,d=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=d(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,l(void 0,!0);switch(r){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var m=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},9356:(e,t,r)=>{"use strict";var n=r(1938),s=r(5391),i=r(1981),o=r(9005),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)}}))},7632:(e,t,r)=>{"use strict";var n=r(235).charAt,s=r(7803),i=r(9257),o=r(6188),a=r(789),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))}))},4506:(e,t,r)=>{"use strict";r(1095)},813:(e,t,r)=>{"use strict";r(6396);var n=r(4740),s=r(5391),i=r(5663),o=r(8471),a=r(1113),c=r(6615)("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}},8199:(e,t,r)=>{"use strict";r(4506);var n=r(8232);r(813),e.exports=n},4744: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},41:(e,t,r)=>{"use strict";var n=r(655),s=r(8068),i=r(9675),o=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!o&&o(e,t);if(n)n(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===a&&p?p.enumerable:!a,value:r,writable:null===c&&p?p.writable:!c});else{if(!u&&(a||c||l))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},655:(e,t,r)=>{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},1237:e=>{"use strict";e.exports=EvalError},9383:e=>{"use strict";e.exports=Error},9290:e=>{"use strict";e.exports=RangeError},9538:e=>{"use strict";e.exports=ReferenceError},8068:e=>{"use strict";e.exports=SyntaxError},9675:e=>{"use strict";e.exports=TypeError},5345:e=>{"use strict";e.exports=URIError},9353:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r};e.exports=function(e){var s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var i,o=function(e,t){for(var r=[],n=t||0,s=0;n<e.length;n+=1,s+=1)r[s]=e[n];return r}(arguments,1),a=r(0,s.length-o.length),c=[],l=0;l<a;l++)c[l]="$"+l;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=s.apply(this,n(o,arguments));return Object(t)===t?t:this}return s.apply(e,n(o,arguments))})),s.prototype){var u=function(){};u.prototype=s.prototype,i.prototype=new u,u.prototype=null}return i}},6743:(e,t,r)=>{"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},453:(e,t,r)=>{"use strict";var n,s=r(9383),i=r(1237),o=r(9290),a=r(9538),c=r(8068),l=r(9675),u=r(5345),p=Function,h=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var d=function(){throw new l},m=f?function(){try{return d}catch(e){try{return f(arguments,"callee").get}catch(e){return d}}}():d,y=r(4039)(),g=r(24)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},x="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%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%":s,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((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%":o,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":x,"%TypeError%":l,"%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%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));w["%Error.prototype%"]=E}var j=function e(t){var r;if("%AsyncFunction%"===t)r=h("async function () {}");else if("%GeneratorFunction%"===t)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=h("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&v&&(r=v(s.prototype))}return w[t]=r,r},O={__proto__:null,"%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"]},S=r(6743),A=r(9957),P=S.call(Function.call,Array.prototype.concat),$=S.call(Function.apply,Array.prototype.splice),T=S.call(Function.call,String.prototype.replace),k=S.call(Function.call,String.prototype.slice),_=S.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,I=function(e,t){var r,n=e;if(A(O,n)&&(n="%"+(r=O[n])[0]+"%"),A(w,n)){var s=w[n];if(s===b&&(s=j(n)),void 0===s&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,M,(function(e,t,r,s){n[n.length]=r?T(s,C,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",s=I("%"+n+"%",t),i=s.name,o=s.value,a=!1,u=s.alias;u&&(n=u[0],$(r,P([0,1],u)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],m=k(d,0,1),y=k(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&h||(a=!0),A(w,i="%"+(n+="."+d)+"%"))o=w[i];else if(null!=o){if(!(d in o)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=r.length){var g=f(o,d);o=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:o[d]}else h=A(o,d),o=o[d];h&&!a&&(w[i]=o)}}return o}},5795:(e,t,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592:(e,t,r)=>{"use strict";var n=r(655),s=function(){return!!n};s.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=s},24:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},4039:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(1333);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},1333: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}},9957:(e,t,r)=>{"use strict";var n=Function.prototype.call,s=Object.prototype.hasOwnProperty,i=r(6743);e.exports=i.call(n,s)},5580:(e,t,r)=>{var n=r(6110)(r(9325),"DataView");e.exports=n},1549:(e,t,r)=>{var n=r(2032),s=r(3862),i=r(6721),o=r(2749),a=r(5749);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},79:(e,t,r)=>{var n=r(3702),s=r(80),i=r(4739),o=r(8655),a=r(1175);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},8223:(e,t,r)=>{var n=r(6110)(r(9325),"Map");e.exports=n},3661:(e,t,r)=>{var n=r(3040),s=r(7670),i=r(289),o=r(4509),a=r(5330);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},2804:(e,t,r)=>{var n=r(6110)(r(9325),"Promise");e.exports=n},6545:(e,t,r)=>{var n=r(6110)(r(9325),"Set");e.exports=n},1240:(e,t,r)=>{var n=r(3661),s=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},7217:(e,t,r)=>{var n=r(79),s=r(1420),i=r(938),o=r(3605),a=r(9817),c=r(945);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1873:(e,t,r)=>{var n=r(9325).Symbol;e.exports=n},7828:(e,t,r)=>{var n=r(9325).Uint8Array;e.exports=n},8303:(e,t,r)=>{var n=r(6110)(r(9325),"WeakMap");e.exports=n},9770:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},695:(e,t,r)=>{var n=r(8096),s=r(2428),i=r(6449),o=r(3656),a=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&s(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),f=r||u||p||h,d=f?n(e.length,String):[],m=d.length;for(var y in e)!t&&!l.call(e,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m))||d.push(y);return d}},4528:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},4248: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}},6025:(e,t,r)=>{var n=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},2199:(e,t,r)=>{var n=r(4528),s=r(6449);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},2552:(e,t,r)=>{var n=r(1873),s=r(659),i=r(9350),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},7534:(e,t,r)=>{var n=r(2552),s=r(346);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},270:(e,t,r)=>{var n=r(7068),s=r(346);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))}},7068:(e,t,r)=>{var n=r(7217),s=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",f="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,y,g){var v=c(e),b=c(t),x=v?h:a(e),w=b?h:a(t),E=(x=x==p?f:x)==f,j=(w=w==p?f:w)==f,O=x==w;if(O&&l(e)){if(!l(t))return!1;v=!0,E=!1}if(O&&!E)return g||(g=new n),v||u(e)?s(e,t,r,m,y,g):i(e,t,x,r,m,y,g);if(!(1&r)){var S=E&&d.call(e,"__wrapped__"),A=j&&d.call(t,"__wrapped__");if(S||A){var P=S?e.value():e,$=A?t.value():t;return g||(g=new n),y(P,$,r,m,g)}}return!!O&&(g||(g=new n),o(e,t,r,m,y,g))}},5083:(e,t,r)=>{var n=r(1882),s=r(7296),i=r(3805),o=r(7473),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?h:a).test(o(e))}},4901:(e,t,r)=>{var n=r(2552),s=r(294),i=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},8984:(e,t,r)=>{var n=r(5527),s=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},9219:e=>{e.exports=function(e,t){return e.has(t)}},5481:(e,t,r)=>{var n=r(9325)["__core-js_shared__"];e.exports=n},5911:(e,t,r)=>{var n=r(1240),s=r(4248),i=r(9219);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 d=-1,m=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++d<u;){var g=e[d],v=t[d];if(o)var b=l?o(v,g,d,t,e,c):o(g,v,d,e,t,c);if(void 0!==b){if(b)continue;m=!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)}))){m=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},1986:(e,t,r)=>{var n=r(1873),s=r(7828),i=r(5288),o=r(5911),a=r(317),c=r(4247),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var d=1&n;if(f||(f=c),e.size!=t.size&&!d)return!1;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var y=o(f(e),f(t),n,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:(e,t,r)=>{var n=r(2),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),d=a.get(t);if(f&&d)return f==t&&d==e;var m=!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)){m=!1;break}y||(y="constructor"==h)}if(m&&!y){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}},4840:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},2:(e,t,r)=>{var n=r(2199),s=r(4664),i=r(5950);e.exports=function(e){return n(e,i,s)}},2651:(e,t,r)=>{var n=r(4218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110:(e,t,r)=>{var n=r(5083),s=r(392);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},659:(e,t,r)=>{var n=r(1873),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},4664:(e,t,r)=>{var n=r(9770),s=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},5861:(e,t,r)=>{var n=r(5580),s=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",f="[object WeakMap]",d="[object DataView]",m=l(n),y=l(s),g=l(i),v=l(o),b=l(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||s&&x(new s)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=f)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case m:return d;case y:return u;case g:return p;case v:return h;case b:return f}return t}),e.exports=x},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,r)=>{var n=r(1042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,r)=>{var n=r(1042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},2749:(e,t,r)=>{var n=r(1042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5749:(e,t,r)=>{var n=r(1042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,r)=>{var n,s=r(5481),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,r)=>{var n=r(6025),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)}},4739:(e,t,r)=>{var n=r(6025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},8655:(e,t,r)=>{var n=r(6025);e.exports=function(e){return n(this.__data__,e)>-1}},1175:(e,t,r)=>{var n=r(6025);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}},3040:(e,t,r)=>{var n=r(1549),s=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},7670:(e,t,r)=>{var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,r)=>{var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509:(e,t,r)=>{var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},5330:(e,t,r)=>{var n=r(2651);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},1042:(e,t,r)=>{var n=r(6110)(Object,"create");e.exports=n},3650:(e,t,r)=>{var n=r(4335)(Object.keys,Object);e.exports=n},6009:(e,t,r)=>{e=r.nmd(e);var n=r(4840),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},9325:(e,t,r)=>{var n=r(4840),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},1420:(e,t,r)=>{var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,r)=>{var n=r(79),s=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428:(e,t,r)=>{var n=r(7534),s=r(346),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,r)=>{var n=r(1882),s=r(294);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},3812:(e,t,r)=>{var n=r(2552),s=r(346);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3656:(e,t,r)=>{e=r.nmd(e);var n=r(9325),s=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},2404:(e,t,r)=>{var n=r(270);e.exports=function(e,t){return n(e,t)}},1882:(e,t,r)=>{var n=r(2552),s=r(3805);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187:e=>{e.exports=function(e){return null===e}},8023:(e,t,r)=>{var n=r(2552),s=r(346);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5015:(e,t,r)=>{var n=r(2552),s=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},7167:(e,t,r)=>{var n=r(4901),s=r(7301),i=r(6009),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},5950:(e,t,r)=>{var n=r(695),s=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):s(e)}},6048: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)}}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},2340:(e,t,r)=>{const n=r(6048);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},5973: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},3110:(e,t,r)=>{const n=r(5187),s=r(5015),i=r(8023),o=r(3812),a=r(3805),c=r(5105),l=r(6804);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},866:(e,t,r)=>{const n=r(6048),s=r(2340);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},6804:(e,t,r)=>{const n=r(316),s=r(1067),i=r(1167),o=r(239),a=r(2242),c=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),f=r(2340),d=r(866),m=r(5973);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:d,KeyValuePair:m}},6303:(e,t,r)=>{const n=r(316);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)}}},4540:(e,t,r)=>{const n=r(316);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)}}},4035:(e,t,r)=>{const n=r(3110),s=r(6804);t.g$=n,t.KeyValuePair=r(5973),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(5105),r(5147)},6233:(e,t,r)=>{const n=r(6048),s=r(316),i=r(2340);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},2242:(e,t,r)=>{const n=r(316);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316:(e,t,r)=>{const n=r(2404),s=r(5973),i=r(2340);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},7726:(e,t,r)=>{const n=r(5973),s=r(316);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)}}},1067:(e,t,r)=>{const n=r(316);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")}}},239:(e,t,r)=>{const n=r(316);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045:(e,t,r)=>{const n=r(6048),s=r(3805),i=r(6233),o=r(7726),a=r(866);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)))}}},1167:(e,t,r)=>{const n=r(316);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}}},5147:(e,t,r)=>{const n=r(5105);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]))}))}}},5105: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]))}))}}},8859:(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,d=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,j=Array.prototype.concat,O=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(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 R=r(2634),F=R.custom,D=U(F)?F:null;function N(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return b.call(String(e),/"/g,""")}function q(e){return!("[object Array]"!==z(e)||_&&"object"==typeof e&&_ in e)}function B(e){return!("[object RegExp]"!==z(e)||_&&"object"==typeof e&&_ in e)}function U(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,s,a){var c=n||{};if(H(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!H(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=c.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 J(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return x?I(t,E):E}if("bigint"==typeof t){var A=String(t)+"n";return x?I(t,A):A}var $=void 0===c.depth?5:c.depth;if(void 0===s&&(s=0),s>=$&&$>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var F=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(c,s);if(void 0===a)a=[];else if(G(a,t)>=0)return"[Circular]";function V(t,r,n){if(r&&(a=S.call(a)).push(r),n){var i={depth:c.depth};return H(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,s+1,a)}return e(t,c,s+1,a)}if("function"==typeof t&&!B(t)){var K=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),ee=Z(t,V);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(ee.length>0?" { "+O.call(ee,", ")+" }":"")}if(U(t)){var te=k?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||k?te:W(te)}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 re="<"+w.call(String(t.nodeName)),ne=t.attributes||[],se=0;se<ne.length;se++)re+=" "+ne[se].name+"="+N(L(ne[se].value),"double",c);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+w.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var ie=Z(t,V);return F&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,F)+"]":"[ "+O.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||_&&"object"==typeof e&&_ in e)}(t)){var oe=Z(t,V);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(oe,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+V(t.cause),oe),", ")+" }"}if("object"==typeof t&&m){if(D&&"function"==typeof t[D]&&R)return R(t,{depth:$-s});if("symbol"!==m&&"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 ae=[];return o&&o.call(t,(function(e,r){ae.push(V(r,t,!0)+" => "+V(e,t))})),X("Map",i.call(t),ae,F)}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 ce=[];return u&&u.call(t,(function(e){ce.push(V(e,t))})),X("Set",l.call(t),ce,F)}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]"!==z(e)||_&&"object"==typeof e&&_ in e)}(t))return W(V(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return W(V(P.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||_&&"object"==typeof e&&_ in e)}(t))return W(d.call(t));if(function(e){return!("[object String]"!==z(e)||_&&"object"==typeof e&&_ in e)}(t))return W(V(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==z(e)||_&&"object"==typeof e&&_ in e)}(t)&&!B(t)){var le=Z(t,V),ue=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",he=!ue&&_&&Object(t)===t&&_ in t?v.call(z(t),8,-1):pe?"Object":"",fe=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||pe?"["+O.call(j.call([],he||[],pe||[]),": ")+"] ":"");return 0===le.length?fe+"{}":F?fe+"{"+Q(le,F)+"}":fe+"{ "+O.call(le,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function z(e){return m.call(e)}function G(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 J(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(v.call(e,0,t.maxStringLength),t)+n}return N(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(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":"")+x.call(t.toString(16))}function W(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):O.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=q(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=H(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(k){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)H(e,c)&&(r&&String(Number(c))===c&&c<e.length||k&&i["$"+c]instanceof Symbol||(E.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}},5606: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 d(){}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=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,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}},4765: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}},5373:(e,t,r)=>{"use strict";var n=r(8636),s=r(2642),i=r(4765);e.exports={formats:i,parse:s,stringify:n}},2642:(e,t,r)=>{"use strict";var n=r(7720),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",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=r.allowEmptyArrays&&""===s?[]:[].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=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,p=parseInt(u,10);r.parseArrays||""!==u?!isNaN(p)&&a!==u&&String(p)===u&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(o=[])[p]=s:"__proto__"!==u&&(o[u]=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(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");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,r=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,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,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,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,duplicates:r,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,d=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?d="utf-8":"utf8=%26%2310003%3B"===h[r]&&(d="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var m,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,o.decoder,d,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),o.decoder,d,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,d,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y);var x=s.call(l,m);x&&"combine"===t.duplicates?l[m]=n.combine(l[m],y):x&&"last"!==t.duplicates||(l[m]=y)}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var d=h[f],m=l(d,u[d],r,"string"==typeof e);p=n.merge(p,m,r)}return!0===r.allowSparse?p:n.compact(p)}},8636:(e,t,r)=>{"use strict";var n=r(920),s=r(7720),i=r(4765),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,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function e(t,r,i,o,a,l,p,h,m,y,g,v,b,x,w,E,j,O){for(var S,A=t,P=O,$=0,T=!1;void 0!==(P=P.get(d))&&!T;){var k=P.get(t);if($+=1,void 0!==k){if(k===$)throw new RangeError("Cyclic object value");T=!0}void 0===P.get(d)&&($=0)}if("function"==typeof y?A=y(r,A):A instanceof Date?A=b(A):"comma"===i&&c(A)&&(A=s.maybeMap(A,(function(e){return e instanceof Date?b(e):e}))),null===A){if(l)return m&&!E?m(r,f.encoder,j,"key",x):r;A=""}if("string"==typeof(S=A)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||s.isBuffer(A))return m?[w(E?r:m(r,f.encoder,j,"key",x))+"="+w(m(A,f.encoder,j,"value",x))]:[w(r)+"="+w(String(A))];var _,M=[];if(void 0===A)return M;if("comma"===i&&c(A))E&&m&&(A=s.maybeMap(A,m)),_=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(y))_=y;else{var C=Object.keys(A);_=g?C.sort(g):C}var I=h?r.replace(/\./g,"%2E"):r,R=o&&c(A)&&1===A.length?I+"[]":I;if(a&&c(A)&&0===A.length)return R+"[]";for(var F=0;F<_.length;++F){var D=_[F],N="object"==typeof D&&void 0!==D.value?D.value:A[D];if(!p||null!==N){var L=v&&h?D.replace(/\./g,"%2E"):D,q=c(A)?"function"==typeof i?i(R,L):R:R+(v?"."+L:"["+L+"]");O.set(t,$);var B=n();B.set(d,O),u(M,e(N,q,i,o,a,l,p,h,"comma"===i&&E&&c(A)?null:m,y,g,v,b,x,w,E,j,B))}}return M};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");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,s=i.formatters[r],l=f.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),n=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:l,format:r,formatter:s,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=[];if("object"!=typeof s||null===s)return"";var h=a[l.arrayFormat],d="comma"===h&&l.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var y=n(),g=0;g<r.length;++g){var v=r[g];l.skipNulls&&null===s[v]||u(p,m(s[v],v,h,d,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,y))}var b=p.join(l.delimiter),x=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),b.length>0?x+b:""}},7720:(e,t,r)=>{"use strict";var n=r(4765),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},c=1024;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 l="",u=0;u<a.length;u+=c){for(var p=a.length>=c?a.slice(u,u+c):a,h=[],f=0;f<p.length;++f){var d=p.charCodeAt(f);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?h[h.length]=p.charAt(f):d<128?h[h.length]=o[d]:d<2048?h[h.length]=o[192|d>>6]+o[128|63&d]:d<55296||d>=57344?h[h.length]=o[224|d>>12]+o[128|d>>6&63]+o[128|63&d]:(f+=1,d=65536+((1023&d)<<10|1023&p.charCodeAt(f)),h[h.length]=o[240|d>>18]+o[128|d>>12&63]+o[128|d>>6&63]+o[128|63&d])}l+=h.join("")}return l},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)}}},6897:(e,t,r)=>{"use strict";var n=r(453),s=r(41),i=r(592)(),o=r(5795),a=r(9675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(i?s(e,"length",t,!0,!0):s(e,"length",t)),e}},3306:e=>{"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,a=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&o(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),l={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>d});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),c(this,"setDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const n=`_${e}_dict_ranges`,s=this._dict_ranges[n];Object.keys(s).forEach((e=>{const n=e;for(this.dictRange=s[n],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-e))}this.dict=r,this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{let t,r,n;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",n=0;n<e;n+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const n=e.slice(0,2),s=parseInt(e.slice(2),10);return"$s"===n?r[n]().padStart(s,"0"):"$t"===n&&t?r[n](s,t):r[n](s)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const n=e-9,s=Math.round(Math.random()*(n>15?15:n)),i=this.randomUUID(n);return`${i.substring(0,s)}${r}${i.substring(s)}${s.toString(16)}`})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),n=parseInt(e.slice(2),10);return t[r](n)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,n)=>e.substring(r.length,r.length+n.length))):e;if(8===r.length)return new Date(1e3*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const n=parseInt(r.substring(r.length-1),16);return new Date(1e3*parseInt(r.substring(n,n+8),16))})),c(this,"setCounter",(e=>{this.counter=e}));const t=a(a({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.0.2";const{dictionary:r,shuffle:n,length:s,counter:i}=t;return this.uuidLength=s,this.setDictionary(r,n),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};c(h,"default",h);var f,d=h;return f=l,((n,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))s.call(n,c)||c===o||e(n,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return n})(e({},"__esModule",{value:!0}),f)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},920:(e,t,r)=>{"use strict";var n=r(453),s=r(8075),i=r(8859),o=r(9675),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),d=s("Map.prototype.has",!0),m=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=m(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 d(t,n)}else if(r)return function(e,t){return!!m(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=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},6623: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.propertyIsEnumerable,o=Object.getOwnPropertySymbols;function a(e){var t=s(e);if(o)for(var r=o(e),n=0;n<r.length;n++)i.call(e,r[n])&&t.push(r[n]);return t}var c=Object.prototype.hasOwnProperty||function(e,t){return t in e};function l(e){if("object"==typeof e&&null!==e){var s;if(r(e))s=[];else if("[object Date]"===t(e))s=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))s=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))s={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))s=Object(e);else if(Object.create&&Object.getPrototypeOf)s=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)s={};else{var i=e.constructor&&e.constructor.prototype||e.__proto__||{},o=function(){};o.prototype=i,s=new o}return n(a(e),(function(t){s[t]=e[t]})),s}return e}function u(e,t,s){var i=[],o=[],u=!0;return function e(p){var h=s?l(p):p,f={},d=!0,m={node:h,node_:p,path:[].concat(i),parent:o[o.length-1],parents:o,key:i[i.length-1],isRoot:0===i.length,level:i.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(d=!1)},delete:function(e){delete m.parent.node[m.key],e&&(d=!1)},remove:function(e){r(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(d=!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(){d=!1}};if(!u)return m;function y(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=a(m.node)),m.isLeaf=0===m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===p){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}y();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),f.before&&f.before.call(m,m.node),d?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),y(),n(m.keys,(function(t,r){i.push(t),f.pre&&f.pre.call(m,m.node[t],t);var n=e(m.node[t]);s&&c.call(m.node,t)&&(m.node[t]=n.node),n.isLast=r===m.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(m,n),i.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function p(e){this.value=e}function h(e){return new p(e)}p.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!c.call(t,n))return;t=t[n]}return t},p.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!c.call(t,n))return!1;t=t[n]}return!0},p.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var s=e[n];c.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t},p.prototype.map=function(e){return u(this.value,e,!0)},p.prototype.forEach=function(e){return this.value=u(this.value,e,!1),this.value},p.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},p.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},p.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},p.prototype.clone=function(){var e=[],t=[];return function r(s){for(var i=0;i<e.length;i++)if(e[i]===s)return t[i];if("object"==typeof s&&null!==s){var o=l(s);return e.push(s),t.push(o),n(a(s),(function(e){o[e]=r(s[e])})),e.pop(),t.pop(),o}return s}(this.value)},n(a(p.prototype),(function(e){h[e]=function(t){var r=[].slice.call(arguments,1),n=new p(t);return n[e].apply(n,r)}})),e.exports=h},2634:()=>{},8675:(e,t,r)=>{e.exports=r(1523)}},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:()=>Jj});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Xr,_areEquals:()=>cn,applyOperation:()=>rn,applyPatch:()=>nn,applyReducer:()=>sn,deepClone:()=>Qr,getValueByPointer:()=>tn,validate:()=>an,validator:()=>on});var t={};r.r(t),r.d(t,{compare:()=>yn,generate:()=>dn,observe:()=>fn,unobserve:()=>hn});var s={};r.r(s),r.d(s,{bJ:()=>eo,uQ:()=>Ki,Zd:()=>Qi,isHttpUrl:()=>Yi,hd:()=>to,aj:()=>ro,z9:()=>Zi,zj:()=>no});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ha,includesClasses:()=>Ga,includesSymbols:()=>za,isAnnotationElement:()=>La,isArrayElement:()=>Ra,isBooleanElement:()=>Ca,isCommentElement:()=>qa,isElement:()=>Ta,isLinkElement:()=>Da,isMemberElement:()=>Fa,isNullElement:()=>Ma,isNumberElement:()=>_a,isObjectElement:()=>Ia,isParseResultElement:()=>Ba,isPrimitiveElement:()=>Va,isRefElement:()=>Na,isSourceMapElement:()=>Ua,isStringElement:()=>ka});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>dh,isJSONSchemaElement:()=>fh,isLinkDescriptionElement:()=>yh,isMediaElement:()=>mh});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Jf,isCallbackElement:()=>Pf,isComponentsElement:()=>$f,isContactElement:()=>Tf,isExampleElement:()=>kf,isExternalDocumentationElement:()=>_f,isHeaderElement:()=>Mf,isInfoElement:()=>Cf,isLicenseElement:()=>If,isLinkElement:()=>Rf,isMediaTypeElement:()=>Qf,isOpenApi3_0Element:()=>Df,isOpenapiElement:()=>Ff,isOperationElement:()=>Nf,isParameterElement:()=>Lf,isPathItemElement:()=>qf,isPathsElement:()=>Bf,isReferenceElement:()=>Uf,isRequestBodyElement:()=>Vf,isResponseElement:()=>Hf,isResponsesElement:()=>zf,isSchemaElement:()=>Gf,isSecurityRequirementElement:()=>Kf,isSecuritySchemeElement:()=>Wf,isServerElement:()=>Yf,isServerVariableElement:()=>Xf,isServersElement:()=>Zf});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>Ob,isCallbackElement:()=>tb,isComponentsElement:()=>rb,isContactElement:()=>nb,isExampleElement:()=>sb,isExternalDocumentationElement:()=>ib,isHeaderElement:()=>ob,isInfoElement:()=>ab,isJsonSchemaDialectElement:()=>cb,isLicenseElement:()=>lb,isLinkElement:()=>ub,isMediaTypeElement:()=>Tb,isOpenApi3_1Element:()=>hb,isOpenapiElement:()=>pb,isOperationElement:()=>fb,isParameterElement:()=>db,isPathItemElement:()=>mb,isPathItemElementExternal:()=>yb,isPathsElement:()=>gb,isReferenceElement:()=>vb,isReferenceElementExternal:()=>bb,isRequestBodyElement:()=>xb,isResponseElement:()=>wb,isResponsesElement:()=>Eb,isSchemaElement:()=>jb,isSecurityRequirementElement:()=>Sb,isSecuritySchemeElement:()=>Ab,isServerElement:()=>Pb,isServerVariableElement:()=>$b});var l={};r.r(l),r.d(l,{cookie:()=>Pj,header:()=>Aj,path:()=>jj,query:()=>Oj});const u="application/json, application/yaml",p="https://swagger.io",h=Object.freeze({url:"/"}),{fetch:f,Response:d,Headers:m,Request:y,FormData:g,File:v,Blob:b}=globalThis;void 0===globalThis.fetch&&(globalThis.fetch=f),void 0===globalThis.Headers&&(globalThis.Headers=m),void 0===globalThis.Request&&(globalThis.Request=y),void 0===globalThis.Response&&(globalThis.Response=d),void 0===globalThis.FormData&&(globalThis.FormData=g),void 0===globalThis.File&&(globalThis.File=v),void 0===globalThis.Blob&&(globalThis.Blob=b);var x=r(5373),w=r.n(x);function E(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function j(e,t){return Array.isArray(e)&&e.some((e=>E(e,t)))}class O extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const S=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,A=e=>/^[a-z0-9\-._~]+$/i.test(e);function P(e,t="reserved"){return[...e].map((e=>{if(A(e))return e;if(S(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function $(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:n,escape:s}){if("simple"===r)return t.map((e=>T(e,s))).join(",");if("label"===r)return`.${t.map((e=>T(e,s))).join(".")}`;if("matrix"===r)return t.map((e=>T(e,s))).reduce(((t,r)=>!t||n?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=n?`&${e}=`:",";return t.map((e=>T(e,s))).join(r)}if("spaceDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>T(e,s))).join(` ${r}`)}if("pipeDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>T(e,s))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:n,escape:s}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=T(t[r],s);return`${e?`${e},`:""}${r}${n?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=T(t[r],s);return`${e?`${e}.`:"."}${r}${n?"=":"."}${i}`}),"");if("matrix"===r&&n)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${T(t[r],s)}`),"");if("matrix"===r)return i.reduce(((r,n)=>{const i=T(t[n],s);return`${r?`${r},`:`;${e}=`}${n},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=T(t[r],s);return`${e?`${e}${n?"&":","}`:""}${r}${n?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:n}){if("simple"===r)return T(t,n);if("label"===r)return`.${T(t,n)}`;if("matrix"===r)return`;${e}=${T(t,n)}`;if("form"===r)return T(t,n);if("deepObject"===r)return T(t,n);return}(e)}function T(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&e.length>0?P(e,t):e}const k={form:",",spaceDelimited:"%20",pipeDelimited:"|"},_={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function M(e,t,r=!1){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(E(a)||j(a))return[[l,a]];if(i)return C(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 C(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 O(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new O(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(_[n||"csv"])]]:[[l,""]]}function C(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=>T(e,o),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(k[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 I(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of M(r,e[r]))t[n]=s instanceof O?s.valueOf():s;return t}),{});return w().stringify(t,{encode:!1,indices:!1})||""}function R(e={}){const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return E(t)||j(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(s=e.form,Object.entries(s).reduce(((e,[t,r])=>{for(const[n,s]of M(t,r,!0))if(Array.isArray(s))for(const t of s)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(n,r)}else e.append(n,t);else if(ArrayBuffer.isView(s)){const t=new Blob([s]);e.append(n,t)}else e.append(n,s);return e}),new FormData));e.formdata=t,e.body=t}else e.body=I(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=w().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=w().stringify(e,{encode:!0})}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,I(r));e.url=n+o,delete e.query}return e}function F(e){return null==e}var D={isNothing:F,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:F(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend: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 N(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 L(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=N(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L.prototype.toString=function(e){return this.name+": "+N(this,e)};var q=L;function B(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function U(e,t){return D.repeat(" ",t-e.length)+e}var V=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,s=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=B(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=D.repeat(" ",t.indent)+U((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=B(e.buffer,s[o],i[o],e.position,p),l+=D.repeat(" ",t.indent)+U((e.line+1).toString(),u)+" | "+c.str+"\n",l+=D.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=B(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=D.repeat(" ",t.indent)+U((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},H=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],z=["scalar","sequence","mapping"];var G=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===H.indexOf(t))throw new q('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===z.indexOf(this.kind))throw new q('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function J(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 K(e){return this.extend(e)}K.prototype.extend=function(e){var t=[],r=[];if(e instanceof G)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 q("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 G))throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new q("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 q("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 G))throw new q("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(K.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=J(n,"implicit"),n.compiledExplicit=J(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 W=K,Y=new G("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),X=new G("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),Q=new G("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Z=new W({explicit:[Y,X,Q]});var ee=new G("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 te=new G("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 re(e){return 48<=e&&e<=55}function ne(e){return 48<=e&&e<=57}var se=new G("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(!re(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!ne(e.charCodeAt(s)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!D.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ie=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var oe=/^[-+]?[0-9]+e/;var ae=new G("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ie.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||D.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(D.isNegativeZero(e))return"-0.0";return r=e.toString(10),oe.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),ce=Z.extend({implicit:[ee,te,se,ae]}),le=ce,ue=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),pe=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 he=new G("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==ue.exec(e)||null!==pe.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=ue.exec(e))&&(t=pe.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 fe=new G("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var me=new G("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=de;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=de,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=de;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}}),ye=Object.prototype.hasOwnProperty,ge=Object.prototype.toString;var ve=new G("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]"!==ge.call(n))return!1;for(s in n)if(ye.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:[]}}),be=Object.prototype.toString;var xe=new G("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]"!==be.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}}),we=Object.prototype.hasOwnProperty;var Ee=new G("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(we.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),je=le.extend({implicit:[he,fe],explicit:[me,ve,xe,Ee]}),Oe=Object.prototype.hasOwnProperty,Se=1,Ae=2,Pe=3,$e=4,Te=1,ke=2,_e=3,Me=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ce=/[\x85\u2028\u2029]/,Ie=/[,\[\]\{\}]/,Re=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function De(e){return Object.prototype.toString.call(e)}function Ne(e){return 10===e||13===e}function Le(e){return 9===e||32===e}function qe(e){return 9===e||32===e||10===e||13===e}function Be(e){return 44===e||91===e||93===e||123===e||125===e}function Ue(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ve(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 He(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var ze=new Array(256),Ge=new Array(256),Je=0;Je<256;Je++)ze[Je]=Ve(Je)?1:0,Ge[Je]=Ve(Je);function Ke(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||je,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 We(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=V(r),new q(t,r)}function Ye(e,t){throw We(e,t)}function Xe(e,t){e.onWarning&&e.onWarning.call(null,We(e,t))}var Qe={YAML:function(e,t,r){var n,s,i;null!==e.version&&Ye(e,"duplication of %YAML directive"),1!==r.length&&Ye(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Ye(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&Ye(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Xe(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Ye(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],Re.test(n)||Ye(e,"ill-formed tag handle (first argument) of the TAG directive"),Oe.call(e.tagMap,n)&&Ye(e,'there is a previously declared suffix for "'+n+'" tag handle'),Fe.test(s)||Ye(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Ye(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Ze(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||Ye(e,"expected valid JSON character");else Me.test(a)&&Ye(e,"the stream contains non-printable characters");e.result+=a}}function et(e,t,r,n){var s,i,o,a;for(D.isObject(r)||Ye(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],Oe.call(t,i)||(t[i]=r[i],n[i]=!0)}function tt(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])&&Ye(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===De(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===De(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)et(e,t,i[l],r);else et(e,t,i,r);else e.json||Oe.call(r,s)||!Oe.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Ye(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 rt(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Ye(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function nt(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;Le(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(!Ne(s))break;for(rt(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&&Xe(e,"deficient indentation"),n}function st(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))&&!qe(t)))}function it(e,t){1===t?e.result+=" ":t>1&&(e.result+=D.repeat("\n",t-1))}function ot(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,Ye(e,"tab characters must not be used in indentation")),45===n)&&qe(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,nt(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,lt(e,t,Pe,!1,!0),o.push(e.result),nt(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Ye(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 at(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Ye(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)):Ye(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!qe(s);)33===s&&(o?Ye(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Re.test(r)||Ye(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),Ie.test(n)&&Ye(e,"tag suffix cannot contain flow indicator characters")}n&&!Fe.test(n)&&Ye(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Ye(e,"tag name is malformed: "+n)}return i?e.tag=n:Oe.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Ye(e,'undeclared tag handle "'+r+'"'),!0}function ct(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Ye(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!qe(r)&&!Be(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ye(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function lt(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,d=1,m=!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=$e===r||Pe===r,n&&nt(e,!0,-1)&&(m=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),1===d)for(;at(e)||ct(e);)nt(e,!0,-1)?(m=!0,a=i,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):a=!1;if(a&&(a=m||s),1!==d&&$e!==r||(h=Se===r||Ae===r?t:t+1,f=e.position-e.lineStart,1===d?a&&(ot(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),d=null,m=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,Ye(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!qe(n)){if(o=e.line,a=e.lineStart,c=e.position,!lt(e,r,Ae,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);Le(l);)l=e.input.charCodeAt(++e.position);if(58===l)qe(l=e.input.charCodeAt(++e.position))||Ye(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(tt(e,h,f,d,m,null,o,a,c),d=m=y=null),v=!0,g=!1,s=!1,d=e.tag,m=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Ye(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Ye(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(tt(e,h,f,d,m,null,o,a,c),d=m=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):Ye(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),lt(e,t,$e,!0,s)&&(g?m=e.result:y=e.result),g||(tt(e,h,f,d,m,y,o,a,c),d=m=y=null),nt(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)Ye(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&tt(e,h,f,d,m,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,d=!0,m=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(nt(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;d?44===f&&Ye(e,"expected the node content, but found ','"):Ye(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&qe(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,nt(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,lt(e,t,Se,!1,!0),p=e.tag,u=e.result,nt(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),nt(e,!0,t),lt(e,t,Se,!1,!0),h=e.result),l?tt(e,i,g,p,u,h,r,n,s):a?i.push(tt(e,null,g,p,u,h,r,n,s)):i.push(u),nt(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(d=!0,f=e.input.charCodeAt(++e.position)):d=!1}Ye(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=Te,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)Te===a?a=43===i?_e:ke:Ye(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?Ye(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ye(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(Le(i)){do{i=e.input.charCodeAt(++e.position)}while(Le(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Ne(i)&&0!==i)}for(;0!==i;){for(rt(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),Ne(i))p++;else{if(e.lineIndent<u){a===_e?e.result+=D.repeat("\n",c?1+p:p):a===Te&&c&&(e.result+="\n");break}for(n?Le(i)?(h=!0,e.result+=D.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=D.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=D.repeat("\n",p):e.result+=D.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Ne(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ze(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(Ze(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else Ne(r)?(Ze(e,n,s,!0),it(e,nt(e,!1,t)),n=s=e.position):e.position===e.lineStart&&st(e)?Ye(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Ye(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 Ze(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ze(e,r,e.position,!0),Ne(a=e.input.charCodeAt(++e.position)))nt(e,!1,t);else if(a<256&&ze[a])e.result+=Ge[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=Ue(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Ye(e,"expected hexadecimal character");e.result+=He(i),e.position++}else Ye(e,"unknown escape sequence");r=n=e.position}else Ne(a)?(Ze(e,r,n,!0),it(e,nt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&st(e)?Ye(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Ye(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&&!qe(n)&&!Be(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Ye(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Oe.call(e.anchorMap,r)||Ye(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],nt(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(qe(u=e.input.charCodeAt(e.position))||Be(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(qe(n=e.input.charCodeAt(e.position+1))||r&&Be(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(qe(n=e.input.charCodeAt(e.position+1))||r&&Be(n))break}else if(35===u){if(qe(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&st(e)||r&&Be(u))break;if(Ne(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,nt(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&&(Ze(e,s,i,!1),it(e,e.line-a),s=i=e.position,o=!1),Le(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ze(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,Se===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||Ye(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===d&&(y=a&&ot(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&&Ye(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(Oe.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||Ye(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Ye(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)):Ye(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 ut(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))&&(nt(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&&!qe(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Ye(e,"directive name must not be less than one character in length");0!==s;){for(;Le(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!Ne(s));break}if(Ne(s))break;for(t=e.position;0!==s&&!qe(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&rt(e),Oe.call(Qe,r)?Qe[r](e,r,n):Xe(e,'unknown document directive "'+r+'"')}nt(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,nt(e,!0,-1)):o&&Ye(e,"directives end mark is expected"),lt(e,e.lineIndent-1,$e,!1,!0),nt(e,!0,-1),e.checkLineBreaks&&Ce.test(e.input.slice(i,e.position))&&Xe(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&st(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,nt(e,!0,-1)):e.position<e.length-1&&Ye(e,"end of the stream or a document separator is expected")}function pt(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 Ke(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Ye(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;)ut(r);return r.documents}var ht={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=pt(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},load:function(e,t){var r=pt(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new q("expected a single document in the stream, but found more")}}},ft=Object.prototype.toString,dt=Object.prototype.hasOwnProperty,mt=65279,yt=9,gt=10,vt=13,bt=32,xt=33,wt=34,Et=35,jt=37,Ot=38,St=39,At=42,Pt=44,$t=45,Tt=58,kt=61,_t=62,Mt=63,Ct=64,It=91,Rt=93,Ft=96,Dt=123,Nt=124,Lt=125,qt={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Bt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ut=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Vt(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 q("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+D.repeat("0",n-t.length)+t}var Ht=1,zt=2;function Gt(e){this.schema=e.schema||je,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=D.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,a,c;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&dt.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?zt:Ht,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 Jt(e,t){for(var r,n=D.repeat(" ",t),s=0,i=-1,o="",a=e.length;s<a;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function Kt(e,t){return"\n"+D.repeat(" ",e.indent*t)}function Wt(e){return e===bt||e===yt}function Yt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==mt||65536<=e&&e<=1114111}function Xt(e){return Yt(e)&&e!==mt&&e!==vt&&e!==gt}function Qt(e,t,r){var n=Xt(e),s=n&&!Wt(e);return(r?n:n&&e!==Pt&&e!==It&&e!==Rt&&e!==Dt&&e!==Lt)&&e!==Et&&!(t===Tt&&!s)||Xt(t)&&!Wt(t)&&e===Et||t===Tt&&s}function Zt(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 er(e){return/^\n* /.test(e)}var tr=1,rr=2,nr=3,sr=4,ir=5;function or(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,d=-1!==n,m=-1,y=Yt(l=Zt(e,0))&&l!==mt&&!Wt(l)&&l!==$t&&l!==Mt&&l!==Tt&&l!==Pt&&l!==It&&l!==Rt&&l!==Dt&&l!==Lt&&l!==Et&&l!==Ot&&l!==At&&l!==xt&&l!==Nt&&l!==kt&&l!==_t&&l!==St&&l!==wt&&l!==jt&&l!==Ct&&l!==Ft&&function(e){return!Wt(e)&&e!==Tt}(Zt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Yt(u=Zt(e,c)))return ir;y=y&&Qt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Zt(e,c))===gt)h=!0,d&&(f=f||c-m-1>n&&" "!==e[m+1],m=c);else if(!Yt(u))return ir;y=y&&Qt(u,p,a),p=u}f=f||d&&c-m-1>n&&" "!==e[m+1]}return h||f?r>9&&er(e)?ir:o?i===zt?ir:rr:f?sr:nr:!y||o||s(e)?i===zt?ir:rr:tr}function ar(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===zt?'""':"''";if(!e.noCompatMode&&(-1!==Bt.indexOf(t)||Ut.test(t)))return e.quotingType===zt?'"'+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(or(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 tr:return t;case rr:return"'"+t.replace(/'/g,"''")+"'";case nr:return"|"+cr(t,e.indent)+lr(Jt(t,i));case sr:return">"+cr(t,e.indent)+lr(Jt(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,ur(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")+ur(l,t),o=r}return i}(t,o),i));case ir:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Zt(e,s),!(t=qt[n])&&Yt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Vt(n);return r}(t)+'"';default:throw new q("impossible error: invalid scalar style")}}()}function cr(e,t){var r=er(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function lr(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function ur(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 pr(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)),(fr(e,t+1,o,!0,!0,!1,!0)||void 0===o&&fr(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=Kt(e,t)),e.dump&>===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function hr(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]"===ft.call(a.represent))n=a.represent(t,c);else{if(!dt.call(a.represent,c))throw new q("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function fr(e,t,r,n,s,i,o){e.tag=null,e.dump=r,hr(e,r,!1)||hr(e,r,!0);var a,c=ft.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 q("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=Kt(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),fr(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&>===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Kt(e,t)),fr(e,t+1,a,!0,c)&&(e.dump&>===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)),fr(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),fr(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?pr(e,t-1,e.dump,s):pr(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)),(fr(e,t,i,!1,!1)||void 0===i&&fr(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 q("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&ar(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 dr(e,t){var r,n,s=[],i=[];for(mr(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function mr(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)mr(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)mr(e[n[s]],t,r)}function yr(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 gr=G,vr=W,br=Z,xr=ce,wr=le,Er=je,jr=ht.load,Or=ht.loadAll,Sr={dump:function(e,t){var r=new Gt(t=t||{});r.noRefs||dr(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),fr(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,Ar=q,Pr={binary:me,float:ae,map:Q,null:ee,pairs:xe,set:Ee,timestamp:he,bool:te,int:se,merge:fe,omap:ve,seq:X,str:Y},$r=yr("safeLoad","load"),Tr=yr("safeLoadAll","loadAll"),kr=yr("safeDump","dump");const _r={Type:gr,Schema:vr,FAILSAFE_SCHEMA:br,JSON_SCHEMA:xr,CORE_SCHEMA:wr,DEFAULT_SCHEMA:Er,load:jr,loadAll:Or,dump:Sr,YAMLException:Ar,types:Pr,safeLoad:$r,safeLoadAll:Tr,safeDump:kr},Mr=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Cr(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Ir(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Cr(e.headers)},s=n.headers["content-type"],i=r||Mr(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}))}async function Rr(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=R(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Ir(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}function Fr(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:u},credentials:s}).then((e=>e.body))}const Dr=e=>{const{baseDoc:t,url:r}=e,n=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(n,globalThis.document.baseURI)):n},Nr=e=>{const{fetch:t,http:r}=e;return t||r||Rr};var Lr,qr=(Lr=function(e,t){return Lr=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])},Lr(e,t)},function(e,t){function r(){this.constructor=e}Lr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Br=Object.prototype.hasOwnProperty;function Ur(e,t){return Br.call(e,t)}function Vr(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)Ur(e,s)&&n.push(s);return n}function Hr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function zr(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Gr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Jr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Kr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Kr(e[t]))return!0}else if("object"==typeof e)for(var n=Vr(e),s=n.length,i=0;i<s;i++)if(Kr(e[n[i]]))return!0;return!1}function Wr(e,t){var r=[e];for(var n in t){var s="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==s&&r.push(n+": "+s)}return r.join("\n")}var Yr=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,Wr(t,{name:r,index:n,operation:s,tree:i}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=Wr(t,{name:r,index:n,operation:s,tree:i}),a}return qr(t,e),t}(Error),Xr=Yr,Qr=Hr,Zr={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=tn(r,this.path);n&&(n=Hr(n));var s=rn(r,{op:"remove",path:this.from}).removed;return rn(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=tn(r,this.from);return rn(r,{op:"add",path:this.path,value:Hr(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:cn(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},en={add:function(e,t,r){return zr(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:Zr.move,copy:Zr.copy,test:Zr.test,_get:Zr._get};function tn(e,t){if(""==t)return e;var r={op:"_get",path:t};return rn(e,r),r.value}function rn(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):on(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=tn(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=cn(e,t.value),!1===o.test)throw new Xr("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 Xr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Hr(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:on;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Jr(h)),s&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!zr(h))throw new Xr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);zr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Xr("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=en[t.op].call(t,c,h,e)).test)throw new Xr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=Zr[t.op].call(t,c,h,e)).test)throw new Xr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Xr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function nn(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new Xr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Hr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=rn(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function sn(e,t,r){var n=rn(e,t);if(!1===n.test)throw new Xr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function on(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Xr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Zr[e.op])throw new Xr("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 Xr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Xr('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 Xr("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 Xr("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)&&Kr(e.value))throw new Xr("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 Xr("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 Xr("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=an([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Xr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function an(e,t,r){try{if(!Array.isArray(e))throw new Xr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)nn(Hr(t),Hr(e),r||!0);else{r=r||on;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Xr)return e;throw e}}function cn(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(!cn(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(!cn(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var ln=new WeakMap,un=function(e){this.observers=new Map,this.obj=e},pn=function(e,t){this.callback=e,this.observer=t};function hn(e,t){t.unobserve()}function fn(e,t){var r,n=function(e){return ln.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new un(e),ln.set(e,n);if(r)return r;if(r={},n.value=Hr(e),t){r.callback=t,r.next=null;var i=function(){dn(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(){dn(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 pn(t,r)),r}function dn(e,t){void 0===t&&(t=!1);var r=ln.get(e.object);mn(r.value,e.object,e.patches,"",t),e.patches.length&&nn(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=Vr(t),o=Vr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!Ur(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+"/"+Gr(p),value:Hr(l)}),r.push({op:"remove",path:n+"/"+Gr(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+"/"+Gr(p),s):l!==u&&(!0,s&&r.push({op:"test",path:n+"/"+Gr(p),value:Hr(l)}),r.push({op:"replace",path:n+"/"+Gr(p),value:Hr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;Ur(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+Gr(p),value:Hr(t[p])})}}}function yn(e,t,r){void 0===r&&(r=!1);var n=[];return mn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:Yr,deepClone:Hr,escapePathComponent:Gr,unescapePathComponent:Jr});var gn=r(4744),vn=r.n(gn);const bn={add:function(e,t){return{op:"add",path:e,value:t}},replace:wn,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&xn(t.path)}).op){const r=In(e,t.path);Object.assign(r,t.value),nn(e,[wn(t.path,r)])}else if("mergeDeep"===t.op){const r=In(e,t.path),n=vn()(r,t.value);e=nn(e,[wn(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&$n(t.value)){nn(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${xn(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Mn(t)&&(Array.isArray(t.value)||$n(t.value))&&(n={...n,...t.meta}),e=n}else if(nn(e,[t]),r.allowMetaPatches&&t.meta&&Mn(t)&&(Array.isArray(t.value)||$n(t.value))){const r={...In(e,t.path),...t.meta};nn(e,[wn(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:An,fullyNormalizeArray:function(e){return Pn(An(Sn(e)))},normalizeArray:Sn,isPromise:function(e){return $n(e)&&Tn(e.then)},forEachNew:function(e,t){try{return En(e,On,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return En(e,jn,t)}catch(e){return e}},isJsonPatch:kn,isContextPatch:function(e){return Cn(e)&&"context"===e.type},isPatch:Cn,isMutation:_n,isAdditiveMutation:Mn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Tn,isObject:$n,isError:function(e){return e instanceof Error}};function xn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function wn(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function En(e,t,r){return Pn(An(e.filter(Mn).map((e=>t(e.value,r,e.path)))||[]))}function jn(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>jn(e,t,r.concat(n)))):$n(e)?Object.keys(e).map((n=>jn(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function On(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)=>On(e,t,r.concat(n))));s&&(n=n.concat(s))}else if($n(e)){const s=Object.keys(e).map((n=>On(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=An(n),n}function Sn(e){return Array.isArray(e)?e:[e]}function An(e){return[].concat(...e.map((e=>Array.isArray(e)?An(e):e)))}function Pn(e){return e.filter((e=>void 0!==e))}function $n(e){return e&&"object"==typeof e}function Tn(e){return e&&"function"==typeof e}function kn(e){if(Cn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function _n(e){return kn(e)||Cn(e)&&"mutation"===e.type}function Mn(e){return _n(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Cn(e){return e&&"object"==typeof e}function In(e,t){try{return tn(e,t)}catch(e){return console.error(e),{}}}var Rn=r(8675);const Fn=class extends Rn{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Dn extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Fn,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Nn=Dn;const Ln=class extends Nn{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};var qn=r(5606);const Bn={"@@functional/placeholder":!0};function Un(e){return e===Bn}function Vn(e){return function t(r){return 0===arguments.length||Un(r)?t:e.apply(this,arguments)}}function Hn(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Un(r)?t:Vn((function(t){return e(r,t)}));default:return Un(r)&&Un(n)?t:Un(r)?Vn((function(t){return e(t,n)})):Un(n)?Vn((function(t){return e(r,t)})):e(r,n)}}}function zn(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Un(r)?t:Hn((function(t,n){return e(r,t,n)}));case 2:return Un(r)&&Un(n)?t:Un(r)?Hn((function(t,r){return e(t,n,r)})):Un(n)?Hn((function(t,n){return e(r,t,n)})):Vn((function(t){return e(r,n,t)}));default:return Un(r)&&Un(n)&&Un(s)?t:Un(r)&&Un(n)?Hn((function(t,r){return e(t,r,s)})):Un(r)&&Un(s)?Hn((function(t,r){return e(t,n,r)})):Un(n)&&Un(s)?Hn((function(t,n){return e(r,t,n)})):Un(r)?Vn((function(t){return e(t,n,s)})):Un(n)?Vn((function(t){return e(r,t,s)})):Un(s)?Vn((function(t){return e(r,n,t)})):e(r,n,s)}}}const Gn=Number.isInteger||function(e){return e<<0===e};function Jn(e){return"[object String]"===Object.prototype.toString.call(e)}function Kn(e,t){var r=e<0?t.length+e:e;return Jn(t)?t.charAt(r):t[r]}function Wn(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Gn(s)?Kn(s,r):r[s]}return r}const Yn=zn((function(e,t,r){return e(Wn(t,r))}));function Xn(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 Qn(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Zn(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function es(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ts="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var rs=Object.prototype.toString;const ns=function(){return"[object Arguments]"===rs.call(arguments)?function(e){return"[object Arguments]"===rs.call(e)}:function(e){return es("callee",e)}}();var ss=!{toString:null}.propertyIsEnumerable("toString"),is=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],os=function(){return arguments.propertyIsEnumerable("length")}(),as=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},cs="function"!=typeof Object.keys||os?Vn((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=os&&ns(e);for(t in e)!es(t,e)||s&&"length"===t||(n[n.length]=t);if(ss)for(r=is.length-1;r>=0;)es(t=is[r],e)&&!as(n,t)&&(n[n.length]=t),r-=1;return n})):Vn((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ls=cs;const us=Vn((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ps(e,t,r,n){var s=Qn(e);function i(e,t){return hs(e,t,r.slice(),n.slice())}return!Zn((function(e,t){return!Zn(i,t,e)}),Qn(t),s)}function hs(e,t,r,n){if(ts(e,t))return!0;var s,i,o=us(e);if(o!==us(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||!ts(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ts(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&&ps(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&ps(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=ls(e);if(c.length!==ls(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(!es(p,t)||!hs(t[p],e[p],l,u))return!1;a-=1}return!0}const fs=Hn((function(e,t){return hs(e,t,[],[])}));function ds(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(fs(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ms(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function ys(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 gs=function(e){return(e<10?"0":"")+e};const vs="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+gs(e.getUTCMonth()+1)+"-"+gs(e.getUTCDate())+"T"+gs(e.getUTCHours())+":"+gs(e.getUTCMinutes())+":"+gs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function bs(e){return function(){return!e.apply(this,arguments)}}function xs(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const ws=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Es(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!ws(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 js(e){return"[object Object]"===Object.prototype.toString.call(e)}const Os=function(){return this.xf["@@transducer/init"]()},Ss=function(e){return this.xf["@@transducer/result"](e)};var As=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ps(e){return function(t){return new As(e,t)}}const $s=Hn(Es(["fantasy-land/filter","filter"],Ps,(function(e,t){return js(t)?xs((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},ls(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 Ts=Hn((function(e,t){return $s(bs(e),t)}));function ks(e,t){var r=function(r){var n=t.concat([e]);return ds(r,n)?"<Circular>":ks(r,n)},n=function(e,t){return ms((function(t){return ys(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ms(r,e).join(", ")+"))";case"[object Array]":return"["+ms(r,e).concat(n(e,Ts((function(e){return/^\d+$/.test(e)}),ls(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):ys(vs(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())+")":ys(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,ls(e)).join(", ")+"}"}}const _s=Vn((function(e){return ks(e,[])}));var Ms=Hn((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 "+_s(e));var r;return Xn(e).test(t)}));const Cs=Ms;function Is(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 Rs(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Fs=Vn((function(e){return!!ws(e)||!!e&&("object"==typeof e&&(!Jn(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ds="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ns(e,t,r){return function(n,s,i){if(Fs(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[Ds])return r(n,s,i[Ds]());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 Ls(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 qs=Hn((function(e,t){return Is(e.length,(function(){return e.apply(t,arguments)}))}));function Bs(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 Us(e,t,r,n){return e["@@transducer/result"](r[n](qs(e["@@transducer/step"],e),t))}const Vs=Ns(Ls,Us,Bs);var Hs=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 zs(e){return new Hs(e)}const Gs=zn((function(e,t,r){return Vs("function"==typeof e?zs(e):e,t,r)}));function Js(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return ws(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Ks=zn(Js("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ws=Vn(Js("tail",Ks(1,1/0)));function Ys(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Is(arguments[0].length,Gs(Rs,arguments[0],Ws(arguments)))}const Xs=Hn((function(e,t){return null==t||t!=t?e:t}));const Qs=Hn((function(e,t){if(null!=t)return Gn(e)?Kn(e,t):t[e]}));const Zs=zn((function(e,t,r){return Xs(e,Qs(t,r))}));const ei=Vn((function(e){return Kn(-1,e)}));function ti(e,t,r){return function(){for(var n=[],s=0,i=e,o=0,a=!1;o<t.length||s<arguments.length;){var c;o<t.length&&(!Un(t[o])||s>=arguments.length)?c=t[o]:(c=arguments[s],s+=1),n[o]=c,Un(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):Is(Math.max(0,i),ti(e,n,r))}}const ri=Hn((function(e,t){return 1===e?Vn(t):Is(e,ti(e,[],t))}));const ni=Vn((function(e){return ri(e.length,e)}));function si(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ii=Hn((function(e,t){return ri(e+1,(function(){var r=arguments[e];if(null!=r&&si(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(_s(r)+' does not have a method named "'+t+'"')}))}));const oi=ii(1,"split");function ai(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Ks(0,r+1,t)}var ci=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Os,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=Vs(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 li(e){return function(t){return new ci(e,t)}}const ui=Hn(Es([],li,ai));const pi=ii(1,"join");const hi=Vn((function(e){return ri(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}))(Hn(ds));const fi=ni((function(e,t){return Ys(oi(""),ui(hi(e)),pi(""))(t)}));function di(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function mi(e,t,r,n){return r[n](e,t)}const yi=Ns(xs,mi,di);var gi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const vi=Hn(Es(["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 ri(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return xs((function(r,n){return r[n]=e(t[n]),r}),{},ls(t));default:return ms(e,t)}})));const bi=Hn((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))}:yi((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,vi(r,t))}),[],e)}));const xi=Hn((function(e,t){var r=ri(e,t);return ri(e,(function(){return xs(bi,vi(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const wi=Vn((function(e){return xi(e.length,e)}));const Ei=wi(Vn((function(e){return!e})));const ji=Vn((function(e){return function(){return e}}));const Oi=ji(void 0);const Si=fs(Oi());const Ai=Ei(Si);const Pi=Hn((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=_s(e),o=r(i,_s(t));return void 0!==o&&o===i?e:t}));const $i=Hn((function(e,t){return vi(Qs(e),t)}));const Ti=Vn((function(e){return ri(Gs(Pi,0,$i("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var ki=function(e,t){switch(arguments.length){case 0:return ki;case 1:return function t(r){return 0===arguments.length?t:ts(e,r)};default:return ts(e,t)}};const _i=ki;const Mi=ri(1,Ys(us,_i("GeneratorFunction")));const Ci=ri(1,Ys(us,_i("AsyncFunction")));const Ii=Ti([Ys(us,_i("Function")),Mi,Ci]);var Ri=zn((function(e,t,r){return r.replace(e,t)}));const Fi=Ri;const Di=ri(1,Ys(us,_i("RegExp")));const Ni=zn((function(e,t,r){return e(r)?t(r):r}));const Li=ri(1,Ys(us,_i("String")));const qi=Ni(Li,Fi(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Bi=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const Ui=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),Bi(r,"str"),Bi(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(Di(e)?e:qi(e),"g");return Fi(n,t,r)};var Vi=ri(3,Ui),Hi=ii(2,"replaceAll");const zi=Ii(String.prototype.replaceAll)?Hi:Vi,Gi=()=>Yn(Cs(/^win/),["platform"],qn),Ji=e=>{try{const t=new URL(e);return fi(":",t.protocol)}catch{return}},Ki=(Ys(Ji,Ai),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Wi=e=>{if(qn.browser)return!1;const t=Ji(e);return Si(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Yi=e=>{const t=Ji(e);return"http"===t||"https"===t},Xi=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Zs(!1,"keepFileProtocol",t),s=Zs(Gi,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=zi("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Qi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Zi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},eo=()=>{if(qn.browser)return Zi(globalThis.location.href);const e=qn.cwd(),t=ei(e);return["/","\\"].includes(t)?e:e+(Gi()?"\\":"/")},to=(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()},ro=e=>{if(Wi(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Gi()&&(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})(Xi(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},no=e=>Wi(e)?Xi(e):decodeURI(e);var so=r(6623),io=r.n(so);const oo=["properties"],ao=["properties"],co=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],lo=["schema/example","items/example"];function uo(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return oo.indexOf(t)>-1&&-1===ao.indexOf(r)||co.indexOf(n)>-1||lo.some((e=>n.indexOf(e)>-1))}function po(e,t){const[r,n]=e.split("#"),s=t??"",i=r??"";let o;if(Yi(s))o=to(s,i);else{const e=to(p,s),t=to(e,i).replace(p,"");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const ho=/^([a-z]+:\/\/|\/\/)/i;class fo extends Ln{}const mo={},yo=new WeakMap,go=[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]],vo={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(uo(i)||(e=>go.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new fo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=jo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?wo(c,o):null}catch(t){return Eo(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=yo.get(n);s||(s={},yo.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(To).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&_o(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${To(e)}`,s[l]&&s[l].some((e=>_o(e,o)||_o(o,e))))));if(u)return!0;return void(s[a]=(s[a]||[]).concat(o))}(l,u,i,n)&&!s.useCircularStructures){const t=po(e,u);return e===t?null:bn.replace(r,t)}if(null==u?(h=Po(l),p=n.get(h),void 0===p&&(p=new fo(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=Oo(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw Eo(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[bn.remove(r),p];const f=po(e,u),d=bn.replace(i,p,{$$ref:f});if(u&&u!==o)return[d,bn.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 bn.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,d)||s.useCircularStructures)return d}catch(e){return null}}},bo=Object.assign(vo,{docCache:mo,absoluteify:wo,clearCache:function(e){void 0!==e?delete mo[e]:Object.keys(mo).forEach((e=>{delete mo[e]}))},JSONRefError:fo,wrapError:Eo,getDoc:So,split:jo,extractFromDoc:Oo,fetchJSON:function(e){return fetch(e,{headers:{Accept:u},loadSpec:!0}).then((e=>e.text())).then((e=>_r.load(e)))},extract:Ao,jsonPointerToArray:Po,unescapeJsonPointerToken:$o}),xo=bo;function wo(e,t){if(!ho.test(e)){if(!t)throw new fo(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return to(t,e)}return e}function Eo(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new fo(`Could not resolve reference: ${r}`,{...t,cause:e})}function jo(e){return(e+"").split("#")}function Oo(e,t){const r=mo[e];if(r&&!bn.isPromise(r))try{const e=Ao(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return So(e).then((e=>Ao(t,e)))}function So(e){const t=mo[e];return t?bn.isPromise(t)?t:Promise.resolve(t):(mo[e]=bo.fetchJSON(e).then((t=>(mo[e]=t,t))),mo[e])}function Ao(e,t){const r=Po(e);if(r.length<1)return t;const n=bn.getIn(t,r);if(void 0===n)throw new fo(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function Po(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($o)}function $o(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function To(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const ko=e=>!e||"/"===e||"#"===e;function _o(e,t){if(ko(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const Mo={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(uo(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=s.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(n.replace(i,{})),e.forEach(((e,t)=>{if(!n.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(n.mergeDeep(i,e));const s=function(e,t,{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}={}){const i=[];return io()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=po(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}},Co={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i={...bn.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 bn.replace(r,t)}return bn.replace(r,e)}},Io={key:"properties",plugin:(e,t,r,n)=>{const s={...e};for(const t in e)try{s[t].default=n.modelPropertyMacro(s[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return bn.replace(r,s)}};class Ro{constructor(e){this.root=Fo(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Do(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Do(s[n],t,r):s[n]=Fo(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]=Fo(null,e)),n[r]}),this.root)}}function Fo(e,t){return Do({children:{}},e,t)}function Do(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=Do(r,r.value,e)})),e}const No=()=>{};class Lo{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 Ro,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),bn,{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(bn.isFunction),this.patches.push(bn.add([],this.spec)),this.patches.push(bn.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){"verbose"===this.debugLevel&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):bn.isFunction(e)?n=e:bn.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const i={};for(const[e,t]of n.filter(bn.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(n,a,c){if(bn.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),d=bn.isObject(u),m=n.$$ref;if(f||d&&(s.allowMetaPatches&&m&&(i[m]=!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:bn.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){bn.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!bn.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),bn.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(bn.isContextPatch(e))return void this.setContext(e.path,e.value);bn.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=bn.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return bn.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(No,No)))).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=bn.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const qo={refs:xo,allOf:Mo,parameters:Co,properties:Io},Bo=e=>e.replace(/\W/gi,"_");function Uo(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Bo(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${Bo(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function Vo(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=Uo(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 Ho(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=Dr(e),h=Nr(e);return function(e){p&&(qo.refs.docCache[p]=e);qo.refs.fetchJSON=Fr(h,{requestInterceptor:a,responseInterceptor:c});const t=[qo.refs];"function"==typeof o&&t.push(qo.parameters);"function"==typeof i&&t.push(qo.properties);"strict"!==r&&t.push(qo.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Lo(f).dispatch()).then(l?async e=>e:Vo);var f}(t)}const zo={name:"generic",match:()=>!0,normalize({spec:e}){const{spec:t}=Vo({spec:e});return t},resolve:async e=>Ho(e)};const Go=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},Jo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Ko=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Wo=e=>Jo(e)||Ko(e),Yo={name:"openapi-2",match:({spec:e})=>Go(e),normalize({spec:e}){const{spec:t}=Vo({spec:e});return t},resolve:async e=>async function(e){return Ho(e)}(e)};const Xo={name:"openapi-3-0",match:({spec:e})=>Jo(e),normalize({spec:e}){const{spec:t}=Vo({spec:e});return t},resolve:async e=>async function(e){return Ho(e)}(e)},Qo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=Dr(e),i=Nr(e),o=t||await Fr(i,{requestInterceptor:r,responseInterceptor:n})(s),a={...e,spec:o};return e.strategies.find((e=>e.match(a))).resolve(a)})({...e,...t}),Zo=Qo({strategies:[Xo,Yo,zo]}),ea=e=>async(t,r,n={})=>(async(e,t,r={})=>{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 Zo({...p,spec:h,allowMetaPatches:!0,skipNormalization:!0});return!n&&Array.isArray(t)&&t.length&&(f.spec=t.reduce(((e,t)=>e?.[t]),f.spec)||null),f})(t,r,{...e,...n});ea({strategies:[Xo,Yo,zo]});const ta=function(){return!0};const ra=function(){return!1},na=(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},sa={},ia=e=>null==e?void 0:e.type,oa=e=>"string"==typeof ia(e),aa=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ca=(e,{visitFnGetter:t=na,nodeTypeGetter:r=ia,breakSymbol:n=sa,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,...u){let p=l,h=!1;for(let f=0;f<e.length;f+=1)if(c[f]===a){const a=t(e[f],r(p),!1);if("function"==typeof a){const t=a.call(e[f],p,...u);if("function"==typeof(null==t?void 0:t.then))throw new Ln("Async visitor not supported in sync mode",{visitor:e[f],visitFn:a});if(t===i)c[f]=l;else if(t===n)c[f]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(s,...o){for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(s),!0);if("function"==typeof a){const t=a.call(e[l],s,...o);if("function"==typeof(null==t?void 0:t.then))throw new Ln("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===n)c[l]=n;else if(void 0!==t&&t!==i)return t}}else c[l]===s&&(c[l]=a)}}};ca[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=na,nodeTypeGetter:r=ia,breakSymbol:n=sa,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,...u){let p=l,h=!1;for(let f=0;f<e.length;f+=1)if(c[f]===a){const a=t(e[f],r(p),!1);if("function"==typeof a){const t=await a.call(e[f],p,...u);if(t===i)c[f]=l;else if(t===n)c[f]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},async leave(s,...o){for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(s),!0);if("function"==typeof a){const t=await a.call(e[l],s,...o);if(t===n)c[l]=n;else if(void 0!==t&&t!==i)return t}}else c[l]===s&&(c[l]=a)}}};const la=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=sa,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=na,nodeTypeGetter:c=ia,nodePredicate:l=oa,nodeCloneFn:u=aa,detectCycles:p=!0}={})=>{const h=r||{};let f,d,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],w=[];do{g+=1;const e=g===y.length;let r;const O=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=d,d=w.pop(),O)if(m){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,m=f.inArray,f=f.prev}else if(d!==i&&void 0!==d){if(r=m?g:y[g],b=d[r],b===i||void 0===b)continue;x.push(r)}let S;if(!Array.isArray(b)){var E;if(!l(b))throw new Ln(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=i.call(t,b,r,d,x,w)}if("function"==typeof(null===(E=S)||void 0===E?void 0:E.then))throw new Ln("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===s)break;if(S===o){if(!e){x.pop();continue}}else if(void 0!==S&&(v.push([r,S]),!e)){if(!l(S)){x.pop();continue}b=S}}var j;if(void 0===S&&O&&v.push([r,b]),!e)f={inArray:m,index:g,keys:y,edits:v,prev:f},m=Array.isArray(b),y=m?b:null!==(j=h[c(b)])&&void 0!==j?j:[],g=-1,v=[],d!==i&&void 0!==d&&w.push(d),d=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};la[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=sa,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=na,nodeTypeGetter:c=ia,nodePredicate:l=oa,nodeCloneFn:u=aa,detectCycles:p=!0}={})=>{const h=r||{};let f,d,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],w=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=d,d=w.pop(),j)if(m){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,m=f.inArray,f=f.prev}else if(d!==i&&void 0!==d){if(r=m?g:y[g],b=d[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new Ln(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;O=await i.call(t,b,r,d,x,w)}if(O===s)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var E;if(void 0===O&&j&&v.push([r,b]),!e)f={inArray:m,index:g,keys:y,edits:v,prev:f},m=Array.isArray(b),y=m?b:null!==(E=h[c(b)])&&void 0!==E?E:[],g=-1,v=[],d!==i&&void 0!==d&&w.push(d),d=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};var ua=r(4035);function pa(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var ha=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Os,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=pa(this.xf["@@transducer/step"](e,!1))),e},e}();function fa(e){return function(t){return new ha(e,t)}}const da=Hn(Es(["all"],fa,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class ma extends ua.Om{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 ya=ma;class ga extends ua.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const va=ga;class ba extends ua.wE{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(Si(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const xa=ba;class wa extends ua.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ua.wE([e.start.row,e.start.column,e.start.char]),r=new ua.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Ea=wa,ja=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Oa=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Sa=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Aa=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ua.wE)&&t.classes.includes(e),Pa=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,$a=e=>e({hasMethod:ja,hasBasicElementProps:Oa,primitiveEq:Sa,isElementType:Pa,hasClass:Aa}),Ta=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.Hg||e(r)&&t(void 0,r))),ka=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.Om||e(r)&&t("string",r))),_a=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.kT||e(r)&&t("number",r))),Ma=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.Os||e(r)&&t("null",r))),Ca=$a((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ua.bd||e(r)&&t("boolean",r))),Ia=$a((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ua.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Ra=$a((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ua.wE&&!(n instanceof ua.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Fa=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ua.Pr||e(n)&&t("member",n)&&r(void 0,n))),Da=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ua.Ft||e(n)&&t("link",n)&&r(void 0,n))),Na=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ua.sI||e(n)&&t("ref",n)&&r(void 0,n))),La=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ya||e(n)&&t("annotation",n)&&r("array",n))),qa=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof va||e(n)&&t("comment",n)&&r("string",n))),Ba=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xa||e(n)&&t("parseResult",n)&&r("array",n))),Ua=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ea||e(n)&&t("sourceMap",n)&&r("array",n))),Va=e=>Pa("object",e)||Pa("array",e)||Pa("boolean",e)||Pa("number",e)||Pa("string",e)||Pa("null",e)||Pa("member",e),Ha=e=>Ua(e.meta.get("sourceMap")),za=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Ra(r)&&da(hi(r.toValue()),e)},Ga=(e,t)=>0===e.length||da(hi(t.classes.toValue()),e);const Ja=class extends Ln{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ka=class extends Ja{};const Wa=class extends Ja{},Ya=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ua.KeyValuePair){const{key:t,value:s}=e,i=Ta(t)?Ya(t,n):t,o=Ta(s)?Ya(s,n):s,a=new ua.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof ua.ot){const t=e=>Ya(e,n),s=[...e].map(t),i=new ua.ot(s);return r.set(e,i),i}if(e instanceof ua.G6){const t=e=>Ya(e,n),s=[...e].map(t),i=new ua.G6(s);return r.set(e,i),i}if(Ta(e)){const t=Za(e);if(r.set(e,t),e.content)if(Ta(e.content))t.content=Ya(e.content,n);else if(e.content instanceof ua.KeyValuePair)t.content=Ya(e.content,n);else if(Array.isArray(e.content)){const r=e=>Ya(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Ka("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ya.safe=e=>{try{return Ya(e)}catch{return e}};const Xa=e=>{const{key:t,value:r}=e;return new ua.KeyValuePair(t,r)},Qa=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Ya(e.meta)),e.attributes.length>0&&(t._attributes=Ya(e.attributes)),Ta(e.content)){const r=e.content;t.content=Qa(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ua.KeyValuePair?t.content=Xa(e.content):t.content=e.content;return t},Za=e=>{if(e instanceof ua.KeyValuePair)return Xa(e);if(e instanceof ua.ot)return(e=>{const t=[...e];return new ua.ot(t)})(e);if(e instanceof ua.G6)return(e=>{const t=[...e];return new ua.G6(t)})(e);if(Ta(e))return Qa(e);throw new Wa("Value provided to cloneShallow function couldn't be cloned",{value:e})};Za.safe=e=>{try{return Za(e)}catch{return e}};const ec=e=>Ia(e)?"ObjectElement":Ra(e)?"ArrayElement":Fa(e)?"MemberElement":ka(e)?"StringElement":Ca(e)?"BooleanElement":_a(e)?"NumberElement":Ma(e)?"NullElement":Da(e)?"LinkElement":Na(e)?"RefElement":void 0,tc=e=>Ta(e)?Za(e):aa(e),rc=Ys(ec,Li),nc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class sc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=ra,returnOnTrue:t,returnOnFalse:r}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const ic=(e,t,{keyMap:r=nc,...n}={})=>la(e,t,{keyMap:r,nodeTypeGetter:ec,nodePredicate:rc,nodeCloneFn:tc,...n});ic[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=nc,...n}={})=>la[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:ec,nodePredicate:rc,nodeCloneFn:tc,...n});const oc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:ec(e),ac={EphemeralObject:["content"],EphemeralArray:["content"],...nc},cc=(e,t,{keyMap:r=ac,...n}={})=>ic(e,t,{keyMap:r,nodeTypeGetter:oc,nodePredicate:ta,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});cc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=ac,...r}={})=>ic[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:oc,nodePredicate:ta,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const lc=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const uc=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class pc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new uc(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new lc(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ka(e.href)?e.href.toValue():""}}const hc=e=>Ta(e)?ka(e)||_a(e)||Ca(e)||Ma(e)?e.toValue():cc(e,new pc):e;const fc=zn((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})es(n,t)&&(s[n]=es(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)es(n,r)&&!es(n,s)&&(s[n]=r[n]);return s}));const dc=zn((function e(t,r,n){return fc((function(r,n,s){return js(n)&&js(s)?e(t,n,s):t(r,n,s)}),r,n)}));const mc=Hn((function(e,t){return dc((function(e,t,r){return r}),e,t)}));const yc=Hn(Wn);const gc=Ks(0,-1);const vc=Hn((function(e,t){return e.apply(this,t)}));const bc=Ei(Ii);const xc=Hn((function(e,t){return e&&t}));const wc=Hn((function(e,t){return si(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:wi(xc)(e,t)}));var Ec=Vn((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():ws(e)?[]:Jn(e)?"":js(e)?{}:ns(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 jc=Ec;const Oc=Vn((function(e){return null!=e&&fs(e,jc(e))}));const Sc=ri(1,Ii(Array.isArray)?Array.isArray:Ys(us,_i("Array")));const Ac=wc(Sc,Oc);var Pc=ri(3,(function(e,t,r){var n=yc(e,r),s=yc(gc(e),r);if(!bc(n)&&!Ac(e)){var i=qs(n,s);return vc(i,t)}}));const $c=Pc;const Tc=fs(null);const kc=Ei(Tc);function _c(e){return _c="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},_c(e)}const Mc=function(e){return"object"===_c(e)};const Cc=ri(1,wc(kc,Mc));var Ic=Ys(us,_i("Object")),Rc=Ys(_s,fs(_s(Object))),Fc=Yn(wc(Ii,Rc),["constructor"]);const Dc=ri(1,(function(e){if(!Cc(e)||!Ic(e))return!1;var t=Object.getPrototypeOf(e);return!!Tc(t)||Fc(t)}));class Nc extends ua.g${constructor(){super(),this.register("annotation",ya),this.register("comment",va),this.register("parseResult",xa),this.register("sourceMap",Ea)}}const Lc=new Nc,qc=e=>{const t=new Nc;return Dc(e)&&t.use(e),t},Bc=Lc,Uc=()=>({predicates:{...i},namespace:Bc}),Vc={toolboxCreator:Uc,visitorOptions:{nodeTypeGetter:ec,exposeEdits:!0}},Hc=(e,t,r={})=>{if(0===t.length)return e;const n=mc(Vc,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=ca(a.map(Zs({},"visitor")),{...i});a.forEach($c(["pre"],[]));const l=ic(e,c,i);return a.forEach($c(["post"],[])),l};Hc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=mc(Vc,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=ca[Symbol.for("nodejs.util.promisify.custom")],l=ic[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(Zs({},"visitor")),{...i});await Promise.allSettled(a.map($c(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map($c(["post"],[]))),p};const zc=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Ta(e)&&(e.meta.length>0&&(n.meta=Ya(e.meta)),e.attributes.length>0&&(n.attributes=Ya(e.attributes))),Hc(n,r,{toolboxCreator:Uc,visitorOptions:{nodeTypeGetter:ec}})},Gc=e=>(t,r={})=>zc(t,{...r,Type:e});ua.Sh.refract=Gc(ua.Sh),ua.wE.refract=Gc(ua.wE),ua.Om.refract=Gc(ua.Om),ua.bd.refract=Gc(ua.bd),ua.Os.refract=Gc(ua.Os),ua.kT.refract=Gc(ua.kT),ua.Ft.refract=Gc(ua.Ft),ua.sI.refract=Gc(ua.sI),ya.refract=Gc(ya),va.refract=Gc(va),xa.refract=Gc(xa),Ea.refract=Gc(Ea);const Jc=(e,t=new WeakMap)=>(Fa(e)?(t.set(e.key,e),Jc(e.key,t),t.set(e.value,e),Jc(e.value,t)):e.children.forEach((r=>{t.set(r,e),Jc(r,t)})),t);const Kc=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:Jc(this.element);const n=this.edges.get(e);return Si(n)?void 0:(Ia(n)?((e,t,r)=>{const n=r.get(e);Ia(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(e,t,this.edges):Ra(n)?((e,t,r)=>{const n=r.get(e);Ra(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(e,t,this.edges):Fa(n)&&((e,t,r)=>{const n=r.get(e);Fa(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(e,t,this.edges),this.element)}},Wc=Ys(Fi(/~/g,"~0"),Fi(/\//g,"~1"),encodeURIComponent);const Yc=class extends Ln{};const Xc=class extends Yc{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Qc=e=>{try{return 0===e.length?"":`/${e.map(Wc).join("/")}`}catch(t){throw new Xc("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var Zc=Hn((function(e,t){return ri(Gs(Pi,0,$i("length",t)),(function(){var r=arguments,n=this;return e.apply(n,ms((function(e){return e.apply(n,r)}),t))}))}));const el=Zc;function tl(e){return e}const rl=Vn(tl);var nl=wc(ri(1,Ys(us,_i("Number"))),isFinite);var sl=ri(1,nl);var il=wc(Ii(Number.isFinite)?ri(1,qs(Number.isFinite,Number)):sl,el(fs,[Math.floor,rl]));var ol=ri(1,il);const al=Ii(Number.isInteger)?ri(1,qs(Number.isInteger,Number)):ol;var cl=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,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?pa(r):r},e}();function ll(e){return function(t){return new cl(e,t)}}const ul=Hn(Es(["take"],ll,(function(e,t){return Ks(0,e<0?1/0:e,t)})));const pl=Hn((function(e,t){return fs(ul(e.length,t),e)}));const hl=fs("");var fl=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,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 dl(e){return function(t){return new fl(e,t)}}const ml=Hn(Es(["dropWhile"],dl,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Ks(r,1/0,t)})));const yl=ni((function(e,t){return Ys(oi(""),ml(hi(e)),pi(""))(t)})),gl=Ys(Fi(/~1/g,"/"),Fi(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const vl=class extends Yc{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},bl=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return yl("#",t)},xl=e=>{if(hl(e))return[];if(!pl("/",e))throw new vl(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Ys(oi("/"),vi(gl))(e);return Ws(t)}catch(t){throw new vl(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const wl=class extends Yc{pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},El=(e,t)=>{let r;try{r=xl(e)}catch(r){throw new wl(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Ya(t),cause:r})}return r.reduce(((t,n,s)=>{if(Ia(t)){if(!t.hasKey(n))throw new wl(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Ya(t)});return t.get(n)}if(Ra(t)){if(!(n in t.content)||!al(Number(n)))throw new wl(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Ya(t)});return t.get(Number(n))}throw new wl(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Ya(t)})}),t)};class jl extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ol=jl;class Sl extends ua.Sh{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 Al=Sl;class Pl extends ua.Sh{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 $l=Pl;class Tl extends ua.Sh{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 kl=Tl;class _l extends ua.Sh{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 Ml=_l;class Cl extends ua.Sh{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 Il=Cl;class Rl extends ua.Sh{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 Fl=Rl;class Dl extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ua.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ua.bd(!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(Dl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Nl=Dl;class Ll extends ua.Sh{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 ql=Ll;class Bl extends ua.Sh{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 Ul=Bl;class Vl extends ua.Sh{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 ka(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):ka(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 Hl=Vl;class zl extends ua.Sh{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 Gl=zl;class Jl extends ua.Sh{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 Kl=Jl;class Wl extends ua.Sh{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 Yl=Wl;class Xl extends ua.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Ql=Xl;class Zl extends ua.Sh{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 eu=Zl;class tu extends ua.Sh{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 ua.bd(!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 ru=tu;class nu extends ua.Sh{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 ua.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ua.bd(!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(nu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const su=nu;class iu extends ua.Sh{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 ou=iu;class au extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const cu=au;class lu extends ua.Sh{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 uu=lu;class pu extends ua.Sh{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 ua.bd(!1)}set required(e){this.set("required",e)}}const hu=pu;class fu extends ua.Sh{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 du=fu;class mu extends ua.Sh{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 yu=mu;const gu=class extends Nn{};class vu extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const bu=vu;class xu extends ua.Sh{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 wu=xu;class Eu extends ua.Sh{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 ju=Eu;class Ou extends ua.Sh{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 Su=Ou;const Au=Hn((function(e,t){return xs((function(r,n){return r[n]=e(t[n],n,t),r}),{},ls(t))}));const Pu=Vn((function(e){return null==e}));var $u=Hn((function(e,t){if(0===e.length||Pu(t))return!1;for(var r=t,n=0;n<e.length;){if(Pu(r)||!es(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Tu=$u;var ku=Hn((function(e,t){return Tu([e],t)}));const _u=ku;const Mu=zn((function(e,t,r){return e(Qs(t,r))})),Cu=(e,t)=>{const r=Xs(e,t);return Au((e=>{if(Dc(e)&&_u("$ref",e)&&Mu(Li,"$ref",e)){const t=yc(["$ref"],e),n=yl("#/",t);return yc(n.split("/"),r)}return Dc(e)?Cu(e,r):e}),e)},Iu=e=>{const t=e.meta.length>0?Ya(e.meta):void 0,r=e.attributes.length>0?Ya(e.attributes):void 0;return new e.constructor(void 0,t,r)},Ru=(e,t)=>t.clone&&t.isMergeableElement(e)?Lu(Iu(e),e,t):e,Fu=e=>"function"!=typeof e.customMetaMerge?e=>Ya(e):e.customMetaMerge,Du=e=>"function"!=typeof e.customAttributesMerge?e=>Ya(e):e.customAttributesMerge,Nu={clone:!0,isMergeableElement:e=>Ia(e)||Ra(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Ru(e,r))),objectElementMerge:(e,t,r)=>{const n=Ia(e)?Iu(e):Iu(t);return Ia(e)&&e.forEach(((e,t,s)=>{const i=Za(s);i.value=Ru(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=hc(s);let a;if(Ia(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=Za(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Lu;const r=t.customMerge(e,t);return"function"==typeof r?r:Lu})(s,r)(n,t)}else a=Za(i),a.value=Ru(t,r);n.remove(o),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function Lu(e,t,r){var n,s,i;const o={...Nu,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:Nu.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:Nu.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Nu.objectElementMerge;const a=Ra(t);if(!(a===Ra(e)))return Ru(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=Fu(o)(e.meta,t.meta),c.attributes=Du(o)(e.attributes,t.attributes),c}Lu.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ua.Sh:e.reduce(((e,r)=>Lu(e,r,t)),Iu(e[0]))};const qu=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lu(t.meta,e.meta),Ha(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lu(t.attributes,e.attributes))}};const Bu=class extends qu{enter(e){return this.element=Ya(e),sa}},Uu=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},Vu=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Vu(r,[...t,r])},Hu=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Vu(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=Vu(s);for(let t of e){let e=Vu(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Uu(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},zu=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Gu=(e,t)=>{const r=t.map((e=>Vu(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},Ju=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(Gu(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==Gu(n,e)||void 0!==t[n],get:(r,n)=>(Gu(n,e)||t)[n],set(t,r,n){const s=Gu(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Ku=null,Wu="copy",Yu="copy",Xu="deep",Qu=new WeakMap,Zu=e=>Qu.get(e),ep=(e,t)=>{var r,n;const s=zu([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=zu([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},tp=(e,t)=>{var r,n,s,i;return{property:ep(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:ep(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},rp=(e,t)=>{var r,n,s,i,o,a;return{class:zu([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:tp(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:tp(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},np=new Map,sp=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...Vu(e.prototype).map((e=>e.constructor)),...null!==(t=Zu(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>np.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>rp(e,t)))},ip=e=>{let t=np.get(e);return t||(t={},np.set(e,t)),t};function op(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=Ku;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};s.push(t)}function o(...t){for(const r of e)Uu(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Yu?Hu(s,o):(a=s,c=o,Ju([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Wu?Hu(e,null,["prototype"]):Ju(e,Function.prototype));let l=o;if("none"!==Xu){const s="deep"===Xu?sp(...e):((...e)=>{const t=e.map((e=>ip(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>rp(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}ap(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},l),ap(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,Qu.set(u,p),l}const ap=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const cp=Hn((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 lp=class extends qu{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return cp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=yc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Yn(Ii,["visitors",...e],this.specObj)?yc(["visitors",...e],this.specObj):yc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof Bu&&(null==n?void 0:n.constructor)===Bu?Ya(t):(ic(t,n,r),n.element)}};const up=class extends lp{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(ka(n)&&r.includes(hc(n))&&!this.ignoredFields.includes(hc(n))){const r=this.toRefractedElement([...t,"fixedFields",hc(n)],e),i=new ua.Pr(Ya(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(hc(n))||this.element.content.push(Ya(s))})),this.copyMetaAndAttributes(e,this.element),sa}};class pp extends(op(up,Bu)){constructor(e){super(e),this.element=new bu,this.specPath=ji(["document","objects","JSONSchema"])}}const hp=pp;const fp=class{parent;constructor({parent:e}){this.parent=e}},dp=e=>Ia(e)&&e.hasKey("$ref");class mp extends(op(lp,fp,Bu)){ObjectElement(e){const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sa}ArrayElement(e){return this.element=new ua.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const yp=mp;const gp=class extends Bu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const vp=Vn((function(e){return ri(Gs(Pi,0,$i("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 bp=Vn((function(e){return!Oc(e)}));const xp=Hn((function(e,t){return e||t}));var wp=Ei(ri(1,wc(kc,Hn((function(e,t){return si(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:wi(xp)(e,t)}))(Mc,Ii))));const Ep=vp([Li,wp,bp]);const jp=class extends lp{specPath;ignoredFields;fieldPatternPredicate=ra;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(hc(t))&&this.fieldPatternPredicate(hc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new ua.Pr(Ya(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(hc(t))||this.element.content.push(Ya(r))})),this.copyMetaAndAttributes(e,this.element),sa}};const Op=class extends jp{constructor(e){super(e),this.fieldPatternPredicate=Ep}};class Sp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ap=Sp;class Pp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const $p=Pp;class Tp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const kp=Tp;const _p=class extends Bu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Mp=class extends Bu{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class Cp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Ip=Cp;class Rp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Fp=Rp;class Dp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Np=Dp;class Lp extends(op(Op,fp,Bu)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const qp=Lp;class Bp extends(op(lp,fp,Bu)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sa}}const Up=Bp;class Vp extends(op(up,Bu)){constructor(e){super(e),this.element=new wu,this.specPath=ji(["document","objects","JSONReference"])}ObjectElement(e){const t=up.prototype.ObjectElement.call(this,e);return ka(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Hp=Vp;const zp=class extends Bu{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Gp=zn((function(e,t,r){return ri(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Jp=Vn((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Kp=Hn((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Wp=Kp;const Yp=Vn((function(e){return Kn(0,e)}));const Xp=Vn(pa);const Qp=Ei(Pu);const Zp=wc(Sc,bp);function eh(e){return function(e){if(Array.isArray(e))return th(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 th(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 th(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 th(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 rh=Ys(Wp(Jp((function(e,t){return e.length>t.length}))),Yp,Qs("length")),nh=ni((function(e,t,r){var n=r.apply(void 0,eh(e));return Qp(n)?Xp(n):t}));const sh=Gp(Zp,(function(e){var t=rh(e);return ri(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gs(nh(r),void 0,e)}))}),Oi);const ih=class extends lp{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Gp(e,ji(t),Oi))),r=sh(t)(e);return this.element=this.toRefractedElement(r,e),sa}};const oh=class extends ih{constructor(e){super(e),this.alternator=[{predicate:dp,specPath:["document","objects","JSONReference"]},{predicate:ta,specPath:["document","objects","JSONSchema"]}]}};class ah extends(op(up,Bu)){constructor(e){super(e),this.element=new ju,this.specPath=ji(["document","objects","Media"])}}const ch=ah;class lh extends(op(up,Bu)){constructor(e){super(e),this.element=new Su,this.specPath=ji(["document","objects","LinkDescription"])}}const uh={visitors:{value:Bu,JSONSchemaOrJSONReferenceVisitor:oh,document:{objects:{JSONSchema:{$visitor:hp,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:oh,items:yp,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:gp,properties:Ap,additionalProperties:oh,patternProperties:$p,dependencies:kp,enum:_p,type:Mp,allOf:Ip,anyOf:Fp,oneOf:Np,not:oh,definitions:qp,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Up,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Hp,fixedFields:{$ref:zp}},Media:{$visitor:ch,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:lh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:oh,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:oh}}}}}},ph=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},hh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...nc},fh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),dh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wu||e(n)&&t("JSONReference",n)&&r("object",n))),mh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ju||e(n)&&t("media",n)&&r("object",n))),yh=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Su||e(n)&&t("linkDescription",n)&&r("object",n))),gh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",bu),t.register("jSONReference",wu),t.register("media",ju),t.register("linkDescription",Su),t}},vh=()=>{const e=qc(gh);return{predicates:{...o,isStringElement:ka},namespace:e}},bh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=uh}={})=>{const s=(0,ua.e)(e),i=Cu(n),o=new(yc(t,i))({specObj:i});return ic(s,o),Hc(o.element,r,{toolboxCreator:vh,visitorOptions:{keyMap:hh,nodeTypeGetter:ph}})},xh=e=>(t,r={})=>bh(t,{specPath:e,...r});bu.refract=xh(["visitors","document","objects","JSONSchema","$visitor"]),wu.refract=xh(["visitors","document","objects","JSONReference","$visitor"]),ju.refract=xh(["visitors","document","objects","Media","$visitor"]),Su.refract=xh(["visitors","document","objects","LinkDescription","$visitor"]);const wh=class extends bu{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new gu("idProp getter in Schema class is not not supported.")}set idProp(e){throw new gu("idProp setter in Schema class is not not supported.")}get $schema(){throw new gu("$schema getter in Schema class is not not supported.")}set $schema(e){throw new gu("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new gu("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new gu("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new gu("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new gu("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new gu("definitions getter in Schema class is not not supported.")}set definitions(e){throw new gu("definitions setter in Schema class is not not supported.")}get base(){throw new gu("base getter in Schema class is not not supported.")}set base(e){throw new gu("base setter in Schema class is not not supported.")}get links(){throw new gu("links getter in Schema class is not not supported.")}set links(e){throw new gu("links setter in Schema class is not not supported.")}get media(){throw new gu("media getter in Schema class is not not supported.")}set media(e){throw new gu("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Eh extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const jh=Eh;class Oh extends ua.Sh{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 Sh=Oh;class Ah extends ua.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Ph=Ah;class $h extends ua.Sh{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 Th=$h;class kh extends ua.Sh{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 _h=kh;class Mh extends ua.Sh{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 Ch=Mh;const Ih=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lu(t.meta,e.meta),Ha(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lu(t.attributes,e.attributes))}};const Rh=class extends Ih{enter(e){return this.element=Ya(e),sa}};const Fh=class extends Ih{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:n,...s}){super({...s}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return cp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=yc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Yn(Ii,["visitors",...e],this.specObj)?yc(["visitors",...e],this.specObj):yc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof Rh&&(null==n?void 0:n.constructor)===Rh?Ya(t):(ic(t,n,r),n.element)}},Dh=e=>Ia(e)&&e.hasKey("$ref"),Nh=Ia,Lh=Ia,qh=e=>ka(e.key)&&pl("x-",hc(e.key));const Bh=class extends Fh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=qh;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(ka(n)&&r.includes(hc(n))&&!this.ignoredFields.includes(hc(n))){const r=this.toRefractedElement([...t,"fixedFields",hc(n)],e),i=new ua.Pr(Ya(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(hc(n))||this.element.content.push(Ya(s))})),this.copyMetaAndAttributes(e,this.element),sa}};class Uh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new eu,this.specPath=ji(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Bh.prototype.ObjectElement.call(this,e)}}const Vh=Uh;class Hh extends(op(Fh,Rh)){StringElement(e){const t=new Ql(hc(e));return this.copyMetaAndAttributes(e,t),this.element=t,sa}}const zh=Hh;const Gh=class extends Fh{MemberElement(e){return this.element=Ya(e),this.element.classes.push("specification-extension"),sa}};class Jh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new ql,this.specPath=ji(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Kh=Jh;const Wh=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Yh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new $l,this.specPath=ji(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Xh=Yh;class Qh extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ul,this.specPath=ji(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Zh=Qh;class ef extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Hl,this.specPath=ji(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return(ka(this.element.operationId)||ka(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const tf=ef;const rf=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const nf=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const sf=class extends Fh{specPath;ignoredFields;fieldPatternPredicate=ra;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=qh;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(hc(t))&&this.fieldPatternPredicate(hc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new ua.Pr(Ya(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(hc(t))||this.element.content.push(Ya(r))})),this.copyMetaAndAttributes(e,this.element),sa}};const of=class extends sf{constructor(e){super(e),this.fieldPatternPredicate=Ep}};class af extends ua.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(af.primaryClass)}}const cf=af;class lf extends(op(of,Rh)){constructor(e){super(e),this.element=new cf,this.specPath=ji(["value"])}}const uf=lf;class pf extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ph,this.specPath=ji(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const hf=pf;const ff=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class df extends ua.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(df.primaryClass)}}const mf=df;class yf extends(op(Fh,Rh)){constructor(e){super(e),this.element=new mf}ArrayElement(e){return e.forEach((e=>{const t=Nh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const gf=yf;class vf extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Th,this.specPath=ji(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const bf=vf;class xf extends ua.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(xf.primaryClass)}}const wf=xf;class Ef extends(op(of,Rh)){constructor(e){super(e),this.element=new wf,this.specPath=ji(["document","objects","ServerVariable"])}}const jf=Ef;class Of extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Gl,this.specPath=ji(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Sf=Of;const Af=class extends Fh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Gp(e,ji(t),Oi))),r=sh(t)(e);return this.element=this.toRefractedElement(r,e),sa}},Pf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ol||e(n)&&t("callback",n)&&r("object",n))),$f=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Al||e(n)&&t("components",n)&&r("object",n))),Tf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $l||e(n)&&t("contact",n)&&r("object",n))),kf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Il||e(n)&&t("example",n)&&r("object",n))),_f=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fl||e(n)&&t("externalDocumentation",n)&&r("object",n))),Mf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nl||e(n)&&t("header",n)&&r("object",n))),Cf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ql||e(n)&&t("info",n)&&r("object",n))),If=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ul||e(n)&&t("license",n)&&r("object",n))),Rf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("link",n)&&r("object",n))),Ff=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("openapi",n)&&r("string",n))),Df=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof eu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),Nf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ru||e(n)&&t("operation",n)&&r("object",n))),Lf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof su||e(n)&&t("parameter",n)&&r("object",n))),qf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ou||e(n)&&t("pathItem",n)&&r("object",n))),Bf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cu||e(n)&&t("paths",n)&&r("object",n))),Uf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uu||e(n)&&t("reference",n)&&r("object",n))),Vf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hu||e(n)&&t("requestBody",n)&&r("object",n))),Hf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof du||e(n)&&t("response",n)&&r("object",n))),zf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yu||e(n)&&t("responses",n)&&r("object",n))),Gf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wh||e(n)&&t("schema",n)&&r("object",n))),Jf=e=>Ca(e)&&e.classes.includes("boolean-json-schema"),Kf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jh||e(n)&&t("securityRequirement",n)&&r("object",n))),Wf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sh||e(n)&&t("securityScheme",n)&&r("object",n))),Yf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ph||e(n)&&t("server",n)&&r("object",n))),Xf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Th||e(n)&&t("serverVariable",n)&&r("object",n))),Qf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("mediaType",n)&&r("object",n))),Zf=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof mf||e(s)&&t("array",s)&&r("array",s)&&n("servers",s)));class ed extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const td=ed;class rd extends(op(of,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("examples"),this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const nd=rd;class sd extends ua.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(sd.primaryClass),this.classes.push("examples")}}const id=sd;const od=class extends nd{constructor(e){super(e),this.element=new id}};class ad extends ua.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(ad.primaryClass)}}const cd=ad;class ld extends(op(of,Rh)){constructor(e){super(e),this.element=new cd,this.specPath=ji(["document","objects","Encoding"])}}const ud=ld;class pd extends(op(of,Rh)){constructor(e){super(e),this.element=new jh,this.specPath=ji(["value"])}}const hd=pd;class fd extends ua.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(fd.primaryClass)}}const dd=fd;class md extends(op(Fh,Rh)){constructor(e){super(e),this.element=new dd}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Ya(e))})),this.copyMetaAndAttributes(e,this.element),sa}}const yd=md;class gd extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Al,this.specPath=ji(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const vd=gd;class bd extends(op(Bh,Rh)){constructor(e){super(e),this.element=new _h,this.specPath=ji(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const xd=bd;class wd extends(op(Bh,Rh)){constructor(e){super(e),this.element=new uu,this.specPath=ji(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return ka(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ed=wd;const jd=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Od extends(op(Bh,Rh)){constructor(e){super(e),this.element=new su,this.specPath=ji(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.contentProp)&&this.element.contentProp.filter(Qf).forEach(((e,t)=>{e.setMetaProperty("media-type",hc(t))})),t}}const Sd=Od;class Ad extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Pd=Ad;class $d extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Nl,this.specPath=ji(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Td=$d;class kd extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const _d=kd;class Md extends ua.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Md.primaryClass),this.classes.push("examples")}}const Cd=Md;const Id=class extends nd{constructor(e){super(e),this.element=new Cd}};class Rd extends(op(of,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("content"),this.specPath=ji(["document","objects","MediaType"])}}const Fd=Rd;class Dd extends ua.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Dd.primaryClass),this.classes.push("content")}}const Nd=Dd;const Ld=class extends Fd{constructor(e){super(e),this.element=new Nd}};class qd extends(op(Bh,Rh)){constructor(e){super(e),this.element=new wh,this.specPath=ji(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Bd=qd,{allOf:Ud}=uh.visitors.document.objects.JSONSchema.fixedFields;const Vd=class extends Ud{ArrayElement(e){const t=Ud.prototype.ArrayElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{anyOf:Hd}=uh.visitors.document.objects.JSONSchema.fixedFields;const zd=class extends Hd{ArrayElement(e){const t=Hd.prototype.ArrayElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{oneOf:Gd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Jd=class extends Gd{ArrayElement(e){const t=Gd.prototype.ArrayElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:Kd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Wd=class extends Kd{ObjectElement(e){const t=Kd.prototype.ObjectElement.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},{properties:Yd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Xd=class extends Yd{ObjectElement(e){const t=Yd.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{type:Qd}=uh.visitors.document.objects.JSONSchema.fixedFields;const Zd=class extends Qd{ArrayElement(e){return this.enter(e)}},{JSONSchemaOrJSONReferenceVisitor:em}=uh.visitors;const tm=class extends em{ObjectElement(e){const t=em.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class rm extends(op(Bh,Rh)){constructor(e){super(e),this.element=new kl,this.specPath=ji(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const nm=rm;class sm extends ua.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(sm.primaryClass)}}const im=sm;class om extends(op(of,Rh)){constructor(e){super(e),this.element=new im,this.specPath=ji(["value"])}}const am=om;class cm extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ch,this.specPath=ji(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const lm=cm;class um extends ua.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(um.primaryClass),this.classes.push("examples")}}const pm=um;const hm=class extends nd{constructor(e){super(e),this.element=new pm}};class fm extends ua.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(fm.primaryClass),this.classes.push("content")}}const dm=fm;const mm=class extends Fd{constructor(e){super(e),this.element=new dm}};class ym extends ua.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(ym.primaryClass)}}const gm=ym;class vm extends(op(of,Rh)){constructor(e){super(e),this.element=new gm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const bm=vm;class xm extends ua.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(xm.primaryClass)}}const wm=xm;class Em extends(op(of,Rh)){constructor(e){super(e),this.element=new wm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Hf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",hc(t))})),t}}const jm=Em;class Om extends ua.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Om.primaryClass),this.classes.push("parameters")}}const Sm=Om;class Am extends(op(of,Rh)){constructor(e){super(e),this.element=new Sm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const Pm=Am;class $m extends ua.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push($m.primaryClass),this.classes.push("examples")}}const Tm=$m;class km extends(op(of,Rh)){constructor(e){super(e),this.element=new Tm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const _m=km;class Mm extends ua.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Mm.primaryClass)}}const Cm=Mm;class Im extends(op(of,Rh)){constructor(e){super(e),this.element=new Cm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Rm=Im;class Fm extends ua.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Fm.primaryClass)}}const Dm=Fm;class Nm extends(op(of,Rh)){constructor(e){super(e),this.element=new Dm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Mf).forEach(((e,t)=>{e.setMetaProperty("header-name",hc(t))})),t}}const Lm=Nm;class qm extends ua.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(qm.primaryClass)}}const Bm=qm;class Um extends(op(of,Rh)){constructor(e){super(e),this.element=new Bm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Vm=Um;class Hm extends ua.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Hm.primaryClass)}}const zm=Hm;class Gm extends(op(of,Rh)){constructor(e){super(e),this.element=new zm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Jm=Gm;class Km extends ua.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Km.primaryClass)}}const Wm=Km;class Ym extends(op(of,Rh)){constructor(e){super(e),this.element=new Wm,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Xm=Ym;class Qm extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Il,this.specPath=ji(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return ka(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Zm=Qm;const ey=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ty extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Fl,this.specPath=ji(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const ry=ty;class ny extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Ml,this.specPath=ji(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.headers)&&this.element.headers.filter(Mf).forEach(((e,t)=>{e.setMetaProperty("header-name",hc(t))})),t}}const sy=ny;class iy extends ua.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(iy.primaryClass)}}const oy=iy;class ay extends(op(of,Rh)){constructor(e){super(e),this.element=new oy,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Mf(e))return;const r=hc(t);e.setMetaProperty("headerName",r)})),t}}const cy=ay;class ly extends(op(sf,Rh)){constructor(e){super(e),this.element=new cu,this.specPath=ji(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ta}ObjectElement(e){const t=sf.prototype.ObjectElement.call(this,e);return this.element.filter(qf).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Ya(t))})),t}}const uy=ly;class py extends(op(Bh,Rh)){constructor(e){super(e),this.element=new hu,this.specPath=ji(["document","objects","RequestBody"])}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.contentProp)&&this.element.contentProp.filter(Qf).forEach(((e,t)=>{e.setMetaProperty("media-type",hc(t))})),t}}const hy=py;class fy extends ua.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(fy.primaryClass),this.classes.push("content")}}const dy=fy;const my=class extends Fd{constructor(e){super(e),this.element=new dy}};class yy extends(op(sf,Rh)){constructor(e){super(e),this.element=new Ol,this.specPath=ji(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(qf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",hc(t))})),t}}const gy=yy;class vy extends(op(Bh,Rh)){constructor(e){super(e),this.element=new du,this.specPath=ji(["document","objects","Response"])}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return Ia(this.element.contentProp)&&this.element.contentProp.filter(Qf).forEach(((e,t)=>{e.setMetaProperty("media-type",hc(t))})),Ia(this.element.headers)&&this.element.headers.filter(Mf).forEach(((e,t)=>{e.setMetaProperty("header-name",hc(t))})),t}}const by=vy;class xy extends ua.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(xy.primaryClass)}}const wy=xy;class Ey extends(op(of,Rh)){constructor(e){super(e),this.element=new wy,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Mf(e))return;const r=hc(t);e.setMetaProperty("header-name",r)})),t}}const jy=Ey;class Oy extends ua.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Oy.primaryClass),this.classes.push("content")}}const Sy=Oy;const Ay=class extends Fd{constructor(e){super(e),this.element=new Sy}};class Py extends ua.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(Py.primaryClass)}}const $y=Py;class Ty extends(op(of,Rh)){constructor(e){super(e),this.element=new $y,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const ky=Ty;function _y(e){return"[object Number]"===Object.prototype.toString.call(e)}var My=Hn((function(e,t){if(!_y(e)||!_y(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),n=e<0?t+Math.abs(e):t-e,s=0;s<n;)r[s]=s+e,s+=1;return r}));const Cy=My;function Iy(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?!!ds(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?!!ds(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Ry=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Iy(e,!0,this)},e.prototype.has=function(e){return Iy(e,!1,this)},e}();var Fy=Hn((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Ry,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 Dy=Fy;class Ny extends(op(Bh,sf)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Dy(e.keys(),t)],Bh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,sf.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return sa}}const Ly=Ny;class qy extends(op(Ly,Rh)){constructor(e){super(e),this.element=new yu,this.specPathFixedFields=ji(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Cy(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Ly.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Hf).forEach(((e,t)=>{const r=Ya(t);this.fieldPatternPredicate(hc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const By=qy;class Uy extends(op(Af,Rh)){constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)?this.element.setMetaProperty("referenced-element","response"):Hf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Vy=Uy;class Hy extends(op(Bh,Rh)){constructor(e){super(e),this.element=new ru,this.specPath=ji(["document","objects","Operation"])}}const zy=Hy;class Gy extends ua.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Gy.primaryClass)}}const Jy=Gy;const Ky=class extends Rh{constructor(e){super(e),this.element=new Jy}ArrayElement(e){return this.element=this.element.concat(Ya(e)),sa}};class Wy extends ua.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Wy.primaryClass),this.classes.push("parameters")}}const Yy=Wy;class Xy extends(op(Fh,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Dh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Uf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Qy=Xy;const Zy=class extends Qy{constructor(e){super(e),this.element=new Yy}};const eg=class extends Af{constructor(e){super(e),this.alternator=[{predicate:Dh,specPath:["document","objects","Reference"]},{predicate:ta,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Af.prototype.enter.call(this,e);return Uf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class tg extends ua.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(tg.primaryClass)}}const rg=tg;class ng extends(op(of,Rh)){specPath;constructor(e){super(e),this.element=new rg,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const sg=ng;class ig extends ua.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(ig.primaryClass),this.classes.push("security")}}const og=ig;class ag extends(op(Fh,Rh)){constructor(e){super(e),this.element=new og}ArrayElement(e){return e.forEach((e=>{const t=Ia(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const cg=ag;class lg extends ua.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(lg.primaryClass),this.classes.push("servers")}}const ug=lg;const pg=class extends gf{constructor(e){super(e),this.element=new ug}};class hg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new ou,this.specPath=ji(["document","objects","PathItem"])}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(Nf).forEach(((e,t)=>{const r=Ya(t);r.content=hc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),ka(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const fg=hg;const dg=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class mg extends ua.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(mg.primaryClass),this.classes.push("servers")}}const yg=mg;const gg=class extends gf{constructor(e){super(e),this.element=new yg}};class vg extends ua.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(vg.primaryClass),this.classes.push("parameters")}}const bg=vg;const xg=class extends Qy{constructor(e){super(e),this.element=new bg}};class wg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Sh,this.specPath=ji(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Eg=wg;class jg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Yl,this.specPath=ji(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Og=jg;class Sg extends(op(Bh,Rh)){constructor(e){super(e),this.element=new Kl,this.specPath=ji(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Ag=Sg;class Pg extends ua.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Pg.primaryClass)}}const $g=Pg;class Tg extends(op(of,Rh)){constructor(e){super(e),this.element=new $g,this.specPath=ji(["value"])}}const kg=Tg;class _g extends ua.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(_g.primaryClass)}}const Mg=_g;class Cg extends(op(Fh,Rh)){constructor(e){super(e),this.element=new Mg}ArrayElement(e){return e.forEach((e=>{const t=Lh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),sa}}const Ig=Cg,{fixedFields:Rg}=uh.visitors.document.objects.JSONSchema,Fg={visitors:{value:Rh,document:{objects:{OpenApi:{$visitor:Vh,fixedFields:{openapi:zh,info:{$ref:"#/visitors/document/objects/Info"},servers:gf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:yd,tags:Ig,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Kh,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Wh}},Contact:{$visitor:Xh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Zh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:hf,fixedFields:{url:ff,description:{$ref:"#/visitors/value"},variables:jf}},ServerVariable:{$visitor:bf,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:vd,fixedFields:{schemas:bm,responses:jm,parameters:Pm,examples:_m,requestBodies:Rm,headers:Lm,securitySchemes:Vm,links:Jm,callbacks:Xm}},Paths:{$visitor:uy},PathItem:{$visitor:fg,fixedFields:{$ref:dg,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:gg,parameters:xg}},Operation:{$visitor:zy,fixedFields:{tags:Ky,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Zy,requestBody:eg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:sg,deprecated:{$ref:"#/visitors/value"},security:cg,servers:pg}},ExternalDocumentation:{$visitor:ry,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Sd,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Pd,example:{$ref:"#/visitors/value"},examples:hm,content:mm}},RequestBody:{$visitor:hy,fixedFields:{description:{$ref:"#/visitors/value"},content:my,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Sf,fixedFields:{schema:td,example:{$ref:"#/visitors/value"},examples:od,encoding:ud}},Encoding:{$visitor:sy,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:cy,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:By,fixedFields:{default:Vy}},Response:{$visitor:by,fixedFields:{description:{$ref:"#/visitors/value"},headers:jy,content:Ay,links:ky}},Callback:{$visitor:gy},Example:{$visitor:Zm,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ey}},Link:{$visitor:tf,fixedFields:{operationRef:rf,operationId:nf,parameters:uf,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Td,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:_d,example:{$ref:"#/visitors/value"},examples:Id,content:Ld}},Tag:{$visitor:xd,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Ed,fixedFields:{$ref:jd}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Bd,fixedFields:{title:Rg.title,multipleOf:Rg.multipleOf,maximum:Rg.maximum,exclusiveMaximum:Rg.exclusiveMaximum,minimum:Rg.minimum,exclusiveMinimum:Rg.exclusiveMinimum,maxLength:Rg.maxLength,minLength:Rg.minLength,pattern:Rg.pattern,maxItems:Rg.maxItems,minItems:Rg.minItems,uniqueItems:Rg.uniqueItems,maxProperties:Rg.maxProperties,minProperties:Rg.minProperties,required:Rg.required,enum:Rg.enum,type:Zd,allOf:Vd,anyOf:zd,oneOf:Jd,not:tm,items:Wd,properties:Xd,additionalProperties:tm,description:Rg.description,format:Rg.format,default:Rg.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:nm,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:am}},XML:{$visitor:lm,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Eg,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Og,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:Ag,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:kg}},SecurityRequirement:{$visitor:hd}},extension:{$visitor:Gh}}}},Dg=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ng={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"],...nc},Lg={namespace:e=>{const{base:t}=e;return t.register("callback",Ol),t.register("components",Al),t.register("contact",$l),t.register("discriminator",kl),t.register("encoding",Ml),t.register("example",Il),t.register("externalDocumentation",Fl),t.register("header",Nl),t.register("info",ql),t.register("license",Ul),t.register("link",Hl),t.register("mediaType",Gl),t.register("oAuthFlow",Kl),t.register("oAuthFlows",Yl),t.register("openapi",Ql),t.register("openApi3_0",eu),t.register("operation",ru),t.register("parameter",su),t.register("pathItem",ou),t.register("paths",cu),t.register("reference",uu),t.register("requestBody",hu),t.register("response",du),t.register("responses",yu),t.register("schema",wh),t.register("securityRequirement",jh),t.register("securityScheme",Sh),t.register("server",Ph),t.register("serverVariable",Th),t.register("tag",_h),t.register("xml",Ch),t}},qg=()=>{const e=qc(Lg);return{predicates:{...a,isElement:Ta,isStringElement:ka,isArrayElement:Ra,isObjectElement:Ia,isMemberElement:Fa,includesClasses:Ga,hasElementSourceMap:Ha},namespace:e}},Bg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,ua.e)(e),s=Cu(Fg),i=new(yc(t,s))({specObj:s});return ic(n,i),Hc(i.element,r,{toolboxCreator:qg,visitorOptions:{keyMap:Ng,nodeTypeGetter:Dg}})},Ug=e=>(t,r={})=>Bg(t,{specPath:e,...r});Ol.refract=Ug(["visitors","document","objects","Callback","$visitor"]),Al.refract=Ug(["visitors","document","objects","Components","$visitor"]),$l.refract=Ug(["visitors","document","objects","Contact","$visitor"]),Il.refract=Ug(["visitors","document","objects","Example","$visitor"]),kl.refract=Ug(["visitors","document","objects","Discriminator","$visitor"]),Ml.refract=Ug(["visitors","document","objects","Encoding","$visitor"]),Fl.refract=Ug(["visitors","document","objects","ExternalDocumentation","$visitor"]),Nl.refract=Ug(["visitors","document","objects","Header","$visitor"]),ql.refract=Ug(["visitors","document","objects","Info","$visitor"]),Ul.refract=Ug(["visitors","document","objects","License","$visitor"]),Hl.refract=Ug(["visitors","document","objects","Link","$visitor"]),Gl.refract=Ug(["visitors","document","objects","MediaType","$visitor"]),Kl.refract=Ug(["visitors","document","objects","OAuthFlow","$visitor"]),Yl.refract=Ug(["visitors","document","objects","OAuthFlows","$visitor"]),Ql.refract=Ug(["visitors","document","objects","OpenApi","fixedFields","openapi"]),eu.refract=Ug(["visitors","document","objects","OpenApi","$visitor"]),ru.refract=Ug(["visitors","document","objects","Operation","$visitor"]),su.refract=Ug(["visitors","document","objects","Parameter","$visitor"]),ou.refract=Ug(["visitors","document","objects","PathItem","$visitor"]),cu.refract=Ug(["visitors","document","objects","Paths","$visitor"]),uu.refract=Ug(["visitors","document","objects","Reference","$visitor"]),hu.refract=Ug(["visitors","document","objects","RequestBody","$visitor"]),du.refract=Ug(["visitors","document","objects","Response","$visitor"]),yu.refract=Ug(["visitors","document","objects","Responses","$visitor"]),wh.refract=Ug(["visitors","document","objects","Schema","$visitor"]),jh.refract=Ug(["visitors","document","objects","SecurityRequirement","$visitor"]),Sh.refract=Ug(["visitors","document","objects","SecurityScheme","$visitor"]),Ph.refract=Ug(["visitors","document","objects","Server","$visitor"]),Th.refract=Ug(["visitors","document","objects","ServerVariable","$visitor"]),_h.refract=Ug(["visitors","document","objects","Tag","$visitor"]),Ch.refract=Ug(["visitors","document","objects","XML","$visitor"]);const Vg=class extends Ol{};const Hg=class extends Al{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const zg=class extends $l{};const Gg=class extends kl{};const Jg=class extends Ml{};const Kg=class extends Il{};const Wg=class extends Fl{};const Yg=class extends Nl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Xg=class extends ql{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 Qg extends ua.Om{static default=new Qg("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Zg=Qg;const ev=class extends Ul{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const tv=class extends Hl{};const rv=class extends Gl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const nv=class extends Kl{};const sv=class extends Yl{};const iv=class extends Ql{};class ov extends ua.Sh{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 av=ov;const cv=class extends ru{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const lv=class extends su{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const uv=class extends ou{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 pv=class extends cu{};class hv extends uu{}Object.defineProperty(hv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(hv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const fv=hv;const dv=class extends hu{};const mv=class extends du{};const yv=class extends yu{};class gv extends ua.Sh{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 vv=gv;const bv=class extends jh{};const xv=class extends Sh{};const wv=class extends Ph{};const Ev=class extends Th{};const jv=class extends _h{};const Ov=class extends Ch{};class Sv extends(op(Bh,Rh)){constructor(e){super(e),this.element=new av,this.specPath=ji(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Bh.prototype.ObjectElement.call(this,e)}}const Av=Sv,{visitors:{document:{objects:{Info:{$visitor:Pv}}}}}=Fg;const $v=class extends Pv{constructor(e){super(e),this.element=new Xg}},{visitors:{document:{objects:{Contact:{$visitor:Tv}}}}}=Fg;const kv=class extends Tv{constructor(e){super(e),this.element=new zg}},{visitors:{document:{objects:{License:{$visitor:_v}}}}}=Fg;const Mv=class extends _v{constructor(e){super(e),this.element=new ev}},{visitors:{document:{objects:{Link:{$visitor:Cv}}}}}=Fg;const Iv=class extends Cv{constructor(e){super(e),this.element=new tv}};class Rv extends(op(Fh,Rh)){StringElement(e){const t=new Zg(hc(e));return this.copyMetaAndAttributes(e,t),this.element=t,sa}}const Fv=Rv,{visitors:{document:{objects:{Server:{$visitor:Dv}}}}}=Fg;const Nv=class extends Dv{constructor(e){super(e),this.element=new wv}},{visitors:{document:{objects:{ServerVariable:{$visitor:Lv}}}}}=Fg;const qv=class extends Lv{constructor(e){super(e),this.element=new Ev}},{visitors:{document:{objects:{MediaType:{$visitor:Bv}}}}}=Fg;const Uv=class extends Bv{constructor(e){super(e),this.element=new rv}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:Vv}}}}}=Fg;const Hv=class extends Vv{constructor(e){super(e),this.element=new bv}},{visitors:{document:{objects:{Components:{$visitor:zv}}}}}=Fg;const Gv=class extends zv{constructor(e){super(e),this.element=new Hg}},{visitors:{document:{objects:{Tag:{$visitor:Jv}}}}}=Fg;const Kv=class extends Jv{constructor(e){super(e),this.element=new jv}},{visitors:{document:{objects:{Reference:{$visitor:Wv}}}}}=Fg;const Yv=class extends Wv{constructor(e){super(e),this.element=new fv}},{visitors:{document:{objects:{Parameter:{$visitor:Xv}}}}}=Fg;const Qv=class extends Xv{constructor(e){super(e),this.element=new lv}},{visitors:{document:{objects:{Header:{$visitor:Zv}}}}}=Fg;const eb=class extends Zv{constructor(e){super(e),this.element=new Yg}},tb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vg||e(n)&&t("callback",n)&&r("object",n))),rb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hg||e(n)&&t("components",n)&&r("object",n))),nb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zg||e(n)&&t("contact",n)&&r("object",n))),sb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kg||e(n)&&t("example",n)&&r("object",n))),ib=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wg||e(n)&&t("externalDocumentation",n)&&r("object",n))),ob=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yg||e(n)&&t("header",n)&&r("object",n))),ab=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xg||e(n)&&t("info",n)&&r("object",n))),cb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zg||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),lb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ev||e(n)&&t("license",n)&&r("object",n))),ub=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tv||e(n)&&t("link",n)&&r("object",n))),pb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iv||e(n)&&t("openapi",n)&&r("string",n))),hb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof av||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),fb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cv||e(n)&&t("operation",n)&&r("object",n))),db=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lv||e(n)&&t("parameter",n)&&r("object",n))),mb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uv||e(n)&&t("pathItem",n)&&r("object",n))),yb=e=>{if(!mb(e))return!1;if(!ka(e.$ref))return!1;const t=hc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pv||e(n)&&t("paths",n)&&r("object",n))),vb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fv||e(n)&&t("reference",n)&&r("object",n))),bb=e=>{if(!vb(e))return!1;if(!ka(e.$ref))return!1;const t=hc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dv||e(n)&&t("requestBody",n)&&r("object",n))),wb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("response",n)&&r("object",n))),Eb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yv||e(n)&&t("responses",n)&&r("object",n))),jb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vv||e(n)&&t("schema",n)&&r("object",n))),Ob=e=>Ca(e)&&e.classes.includes("boolean-json-schema"),Sb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("securityRequirement",n)&&r("object",n))),Ab=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xv||e(n)&&t("securityScheme",n)&&r("object",n))),Pb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wv||e(n)&&t("server",n)&&r("object",n))),$b=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("serverVariable",n)&&r("object",n))),Tb=$a((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rv||e(n)&&t("mediaType",n)&&r("object",n)));const kb=class{parent;constructor({parent:e}){this.parent=e}};class _b extends(op(Bh,kb,Rh)){constructor(e){super(e),this.element=new vv,this.specPath=ji(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Zg.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=Bh.prototype.ObjectElement.call(this,e);return ka(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&cb(this.openApiSemanticElement.jsonSchemaDialect)?hc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&ka(this.openApiGenericElement.get("jsonSchemaDialect"))?hc(this.openApiGenericElement.get("jsonSchemaDialect")):hc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(Si(this.parent)&&!ka(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(jb(this.parent)&&!ka(e.get("$schema"))){const e=Xs(hc(this.parent.meta.get("inherited$schema")),hc(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Ya(this.parent.getMetaProperty("inherited$id",[])):new ua.wE,r=hc(e.get("$id"));Ep(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const Mb=_b;const Cb=class extends Rh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ib=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Rb extends(op(of,kb,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Fb=Rb;class Db extends(op(Fh,kb,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const Nb=Db;class Lb extends(op(Fh,kb,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const qb=Lb;class Bb extends(op(Fh,kb,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const Ub=Bb;class Vb extends(op(of,kb,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Hb=Vb;class zb extends(op(Fh,kb,Rh)){constructor(e){super(e),this.element=new ua.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Ia(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ya(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sa}}const Gb=zb;class Jb extends(op(of,kb,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Kb=Jb;class Wb extends(op(of,kb,Rh)){constructor(e){super(e),this.element=new ua.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ji(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Yb=Wb;const Xb=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}};const Qb=class extends Rh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Zb=class extends Rh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const ex=class extends Rh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:tx}}}}}=Fg;const rx=class extends tx{constructor(e){super(e),this.element=new Gg,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:nx}}}}}=Fg;const sx=class extends nx{constructor(e){super(e),this.element=new Ov}};class ix extends(op(of,Rh)){constructor(e){super(e),this.element=new gm,this.specPath=ji(["document","objects","Schema"])}}const ox=ix;class ax extends ua.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(ax.primaryClass)}}const cx=ax;class lx extends(op(of,Rh)){constructor(e){super(e),this.element=new cx,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(vb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const ux=lx,{visitors:{document:{objects:{Example:{$visitor:px}}}}}=Fg;const hx=class extends px{constructor(e){super(e),this.element=new Kg}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:fx}}}}}=Fg;const dx=class extends fx{constructor(e){super(e),this.element=new Wg}},{visitors:{document:{objects:{Encoding:{$visitor:mx}}}}}=Fg;const yx=class extends mx{constructor(e){super(e),this.element=new Jg}},{visitors:{document:{objects:{Paths:{$visitor:gx}}}}}=Fg;const vx=class extends gx{constructor(e){super(e),this.element=new pv}},{visitors:{document:{objects:{RequestBody:{$visitor:bx}}}}}=Fg;const xx=class extends bx{constructor(e){super(e),this.element=new dv}},{visitors:{document:{objects:{Callback:{$visitor:wx}}}}}=Fg;const Ex=class extends wx{constructor(e){super(e),this.element=new Vg,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=wx.prototype.ObjectElement.call(this,e);return this.element.filter(vb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:jx}}}}}=Fg;const Ox=class extends jx{constructor(e){super(e),this.element=new mv}},{visitors:{document:{objects:{Responses:{$visitor:Sx}}}}}=Fg;const Ax=class extends Sx{constructor(e){super(e),this.element=new yv}},{visitors:{document:{objects:{Operation:{$visitor:Px}}}}}=Fg;const $x=class extends Px{constructor(e){super(e),this.element=new cv}},{visitors:{document:{objects:{PathItem:{$visitor:Tx}}}}}=Fg;const kx=class extends Tx{constructor(e){super(e),this.element=new uv}},{visitors:{document:{objects:{SecurityScheme:{$visitor:_x}}}}}=Fg;const Mx=class extends _x{constructor(e){super(e),this.element=new xv}},{visitors:{document:{objects:{OAuthFlows:{$visitor:Cx}}}}}=Fg;const Ix=class extends Cx{constructor(e){super(e),this.element=new sv}},{visitors:{document:{objects:{OAuthFlow:{$visitor:Rx}}}}}=Fg;const Fx=class extends Rx{constructor(e){super(e),this.element=new nv}};class Dx extends ua.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(Dx.primaryClass)}}const Nx=Dx;class Lx extends(op(of,Rh)){constructor(e){super(e),this.element=new Nx,this.specPath=e=>Dh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=of.prototype.ObjectElement.call(this,e);return this.element.filter(vb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(mb).forEach(((e,t)=>{e.setMetaProperty("webhook-name",hc(t))})),t}}const qx=Lx,Bx={visitors:{value:Fg.visitors.value,document:{objects:{OpenApi:{$visitor:Av,fixedFields:{openapi:Fg.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Fv,servers:Fg.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:qx,components:{$ref:"#/visitors/document/objects/Components"},security:Fg.visitors.document.objects.OpenApi.fixedFields.security,tags:Fg.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:$v,fixedFields:{title:Fg.visitors.document.objects.Info.fixedFields.title,description:Fg.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Fg.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Fg.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:kv,fixedFields:{name:Fg.visitors.document.objects.Contact.fixedFields.name,url:Fg.visitors.document.objects.Contact.fixedFields.url,email:Fg.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Mv,fixedFields:{name:Fg.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Fg.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Nv,fixedFields:{url:Fg.visitors.document.objects.Server.fixedFields.url,description:Fg.visitors.document.objects.Server.fixedFields.description,variables:Fg.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:qv,fixedFields:{enum:Fg.visitors.document.objects.ServerVariable.fixedFields.enum,default:Fg.visitors.document.objects.ServerVariable.fixedFields.default,description:Fg.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Gv,fixedFields:{schemas:ox,responses:Fg.visitors.document.objects.Components.fixedFields.responses,parameters:Fg.visitors.document.objects.Components.fixedFields.parameters,examples:Fg.visitors.document.objects.Components.fixedFields.examples,requestBodies:Fg.visitors.document.objects.Components.fixedFields.requestBodies,headers:Fg.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Fg.visitors.document.objects.Components.fixedFields.securitySchemes,links:Fg.visitors.document.objects.Components.fixedFields.links,callbacks:Fg.visitors.document.objects.Components.fixedFields.callbacks,pathItems:ux}},Paths:{$visitor:vx},PathItem:{$visitor:kx,fixedFields:{$ref:Fg.visitors.document.objects.PathItem.fixedFields.$ref,summary:Fg.visitors.document.objects.PathItem.fixedFields.summary,description:Fg.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:Fg.visitors.document.objects.PathItem.fixedFields.servers,parameters:Fg.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:$x,fixedFields:{tags:Fg.visitors.document.objects.Operation.fixedFields.tags,summary:Fg.visitors.document.objects.Operation.fixedFields.summary,description:Fg.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Fg.visitors.document.objects.Operation.fixedFields.operationId,parameters:Fg.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Fg.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Fg.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Fg.visitors.document.objects.Operation.fixedFields.deprecated,security:Fg.visitors.document.objects.Operation.fixedFields.security,servers:Fg.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:dx,fixedFields:{description:Fg.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Fg.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Qv,fixedFields:{name:Fg.visitors.document.objects.Parameter.fixedFields.name,in:Fg.visitors.document.objects.Parameter.fixedFields.in,description:Fg.visitors.document.objects.Parameter.fixedFields.description,required:Fg.visitors.document.objects.Parameter.fixedFields.required,deprecated:Fg.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Fg.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Fg.visitors.document.objects.Parameter.fixedFields.style,explode:Fg.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Fg.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fg.visitors.document.objects.Parameter.fixedFields.example,examples:Fg.visitors.document.objects.Parameter.fixedFields.examples,content:Fg.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:xx,fixedFields:{description:Fg.visitors.document.objects.RequestBody.fixedFields.description,content:Fg.visitors.document.objects.RequestBody.fixedFields.content,required:Fg.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Uv,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Fg.visitors.document.objects.MediaType.fixedFields.example,examples:Fg.visitors.document.objects.MediaType.fixedFields.examples,encoding:Fg.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:yx,fixedFields:{contentType:Fg.visitors.document.objects.Encoding.fixedFields.contentType,headers:Fg.visitors.document.objects.Encoding.fixedFields.headers,style:Fg.visitors.document.objects.Encoding.fixedFields.style,explode:Fg.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Fg.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Ax,fixedFields:{default:Fg.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Ox,fixedFields:{description:Fg.visitors.document.objects.Response.fixedFields.description,headers:Fg.visitors.document.objects.Response.fixedFields.headers,content:Fg.visitors.document.objects.Response.fixedFields.content,links:Fg.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Ex},Example:{$visitor:hx,fixedFields:{summary:Fg.visitors.document.objects.Example.fixedFields.summary,description:Fg.visitors.document.objects.Example.fixedFields.description,value:Fg.visitors.document.objects.Example.fixedFields.value,externalValue:Fg.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Iv,fixedFields:{operationRef:Fg.visitors.document.objects.Link.fixedFields.operationRef,operationId:Fg.visitors.document.objects.Link.fixedFields.operationId,parameters:Fg.visitors.document.objects.Link.fixedFields.parameters,requestBody:Fg.visitors.document.objects.Link.fixedFields.requestBody,description:Fg.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:eb,fixedFields:{description:Fg.visitors.document.objects.Header.fixedFields.description,required:Fg.visitors.document.objects.Header.fixedFields.required,deprecated:Fg.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Fg.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Fg.visitors.document.objects.Header.fixedFields.style,explode:Fg.visitors.document.objects.Header.fixedFields.explode,allowReserved:Fg.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fg.visitors.document.objects.Header.fixedFields.example,examples:Fg.visitors.document.objects.Header.fixedFields.examples,content:Fg.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Kv,fixedFields:{name:Fg.visitors.document.objects.Tag.fixedFields.name,description:Fg.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Yv,fixedFields:{$ref:Fg.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:Mb,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:Cb,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:Ib,$defs:Fb,$comment:{$ref:"#/visitors/value"},allOf:Nb,anyOf:qb,oneOf:Ub,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:Hb,prefixItems:Gb,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Kb,patternProperties:Yb,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:Xb,enum:Qb,const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:Zb,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:ex,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:rx,fixedFields:{propertyName:Fg.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Fg.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:sx,fixedFields:{name:Fg.visitors.document.objects.XML.fixedFields.name,namespace:Fg.visitors.document.objects.XML.fixedFields.namespace,prefix:Fg.visitors.document.objects.XML.fixedFields.prefix,attribute:Fg.visitors.document.objects.XML.fixedFields.attribute,wrapped:Fg.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Mx,fixedFields:{type:Fg.visitors.document.objects.SecurityScheme.fixedFields.type,description:Fg.visitors.document.objects.SecurityScheme.fixedFields.description,name:Fg.visitors.document.objects.SecurityScheme.fixedFields.name,in:Fg.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Fg.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Fg.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Fg.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Ix,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:Fx,fixedFields:{authorizationUrl:Fg.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Fg.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Fg.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Fg.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Hv}},extension:{$visitor:Fg.visitors.document.extension.$visitor}}}},Ux=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Vx={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"],...nc},Hx={namespace:e=>{const{base:t}=e;return t.register("callback",Vg),t.register("components",Hg),t.register("contact",zg),t.register("discriminator",Gg),t.register("encoding",Jg),t.register("example",Kg),t.register("externalDocumentation",Wg),t.register("header",Yg),t.register("info",Xg),t.register("jsonSchemaDialect",Zg),t.register("license",ev),t.register("link",tv),t.register("mediaType",rv),t.register("oAuthFlow",nv),t.register("oAuthFlows",sv),t.register("openapi",iv),t.register("openApi3_1",av),t.register("operation",cv),t.register("parameter",lv),t.register("pathItem",uv),t.register("paths",pv),t.register("reference",fv),t.register("requestBody",dv),t.register("response",mv),t.register("responses",yv),t.register("schema",vv),t.register("securityRequirement",bv),t.register("securityScheme",xv),t.register("server",wv),t.register("serverVariable",Ev),t.register("tag",jv),t.register("xml",Ov),t}},zx=()=>{const e=qc(Hx);return{predicates:{...c,isElement:Ta,isStringElement:ka,isArrayElement:Ra,isObjectElement:Ia,isMemberElement:Fa,isServersElement:Zf,includesClasses:Ga,hasElementSourceMap:Ha},namespace:e}},Gx=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,ua.e)(e),s=Cu(Bx),i=new(yc(t,s))({specObj:s});return ic(n,i),Hc(i.element,r,{toolboxCreator:zx,visitorOptions:{keyMap:Vx,nodeTypeGetter:Ux}})},Jx=e=>(t,r={})=>Gx(t,{specPath:e,...r});Vg.refract=Jx(["visitors","document","objects","Callback","$visitor"]),Hg.refract=Jx(["visitors","document","objects","Components","$visitor"]),zg.refract=Jx(["visitors","document","objects","Contact","$visitor"]),Kg.refract=Jx(["visitors","document","objects","Example","$visitor"]),Gg.refract=Jx(["visitors","document","objects","Discriminator","$visitor"]),Jg.refract=Jx(["visitors","document","objects","Encoding","$visitor"]),Wg.refract=Jx(["visitors","document","objects","ExternalDocumentation","$visitor"]),Yg.refract=Jx(["visitors","document","objects","Header","$visitor"]),Xg.refract=Jx(["visitors","document","objects","Info","$visitor"]),Zg.refract=Jx(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ev.refract=Jx(["visitors","document","objects","License","$visitor"]),tv.refract=Jx(["visitors","document","objects","Link","$visitor"]),rv.refract=Jx(["visitors","document","objects","MediaType","$visitor"]),nv.refract=Jx(["visitors","document","objects","OAuthFlow","$visitor"]),sv.refract=Jx(["visitors","document","objects","OAuthFlows","$visitor"]),iv.refract=Jx(["visitors","document","objects","OpenApi","fixedFields","openapi"]),av.refract=Jx(["visitors","document","objects","OpenApi","$visitor"]),cv.refract=Jx(["visitors","document","objects","Operation","$visitor"]),lv.refract=Jx(["visitors","document","objects","Parameter","$visitor"]),uv.refract=Jx(["visitors","document","objects","PathItem","$visitor"]),pv.refract=Jx(["visitors","document","objects","Paths","$visitor"]),fv.refract=Jx(["visitors","document","objects","Reference","$visitor"]),dv.refract=Jx(["visitors","document","objects","RequestBody","$visitor"]),mv.refract=Jx(["visitors","document","objects","Response","$visitor"]),yv.refract=Jx(["visitors","document","objects","Responses","$visitor"]),vv.refract=Jx(["visitors","document","objects","Schema","$visitor"]),bv.refract=Jx(["visitors","document","objects","SecurityRequirement","$visitor"]),xv.refract=Jx(["visitors","document","objects","SecurityScheme","$visitor"]),wv.refract=Jx(["visitors","document","objects","Server","$visitor"]),Ev.refract=Jx(["visitors","document","objects","ServerVariable","$visitor"]),jv.refract=Jx(["visitors","document","objects","Tag","$visitor"]),Ov.refract=Jx(["visitors","document","objects","XML","$visitor"]);const Kx=class extends gu{};const Wx=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Kx("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Kx("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Kx("latest method in MediaTypes class is not yet implemented.")}};class Yx extends Wx{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 ei(this.filterByFormat(e))}}const Xx=new Yx("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");const Qx=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:n}){this.uri=e,this.value=n,this.depth=t,this.refSet=r,this.errors=[]}};const Zx=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===this.rootRef?e:this.rootRef,e.refSet=this),this}merge(e){for(const t of e.values())this.add(t);return this}has(e){const t=Li(e)?e:e.uri;return Ai(this.find((e=>e.uri===t)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}},ew={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:rl,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const tw=Hn((function(e,t){return function(r){return function(n){return vi((function(e){return t(e,n)}),r(e(n)))}}}));var rw=zn((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Pu(n)&&es(s,n)&&"object"==typeof n[s]?n[s]:Gn(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Gn(e)&&ws(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)}));const nw=rw;var sw=function(e){return{value:e,map:function(t){return sw(t(e))}}},iw=zn((function(e,t,r){return e((function(e){return sw(t(e))}))(r).value}));const ow=iw,aw=tw(yc(["resolve","baseURI"]),nw(["resolve","baseURI"])),cw=e=>hl(e)?eo():e,lw=(e,t)=>{const r=mc(e,t);return ow(aw,cw,r)};const uw=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:n}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n}get extension(){return Li(this.uri)?Ki(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(us(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const pw=class extends Nn{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},hw=async(e,t,r)=>{const n=await Promise.all(r.map($c([e],t)));return r.filter(((e,t)=>n[t]))},fw=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 pw("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const dw=class extends Nn{};const mw=class extends dw{},yw=async(e,t)=>{let r=e,n=!1;if(!Ba(e)){const t=Za(e);t.classes.push("result"),r=new xa([t]),n=!0}const s=new uw({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await hw("canDereference",[s,t],t.dereference.strategies);if(Oc(i))throw new mw(s.uri);try{const{result:e}=await fw("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new dw(`Error while dereferencing file "${s.uri}"`,{cause:e})}};const gw=class extends Nn{};const vw=class extends gw{};const bw=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:n=[],mediaTypes:s=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=n,this.mediaTypes=s}};const xw=class extends bw{constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),n=new xa;if(0!==r.length){const e=new ua.Om(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new vw(`Error parsing "${e.uri}"`,{cause:t})}}};const ww=class{name;constructor({name:e}){this.name=e}};const Ew=class extends ww{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new mw('"openapi-3-1" dereference strategy is not available.');const n=new Zx,s=lw(t,{resolve:{internal:!1},dereference:{refSet:n}});return await r.dereference(e,s),n}};function jw(e,t,r){if(r||(r=new Ow),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?jw(e[i],!0,r):e[i]);return n};switch(us(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return Xn(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 Ow=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],n=0;n<r.length;n+=1){if((i=r[n])[0]===e)return i[1]}else{var s=this.hash(e);if(r=this.map[s])for(n=0;n<r.length;n+=1){var i;if((i=r[n])[0]===e)return i[1]}}},e}(),Sw=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"]=Os,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(es(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,jw(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function Aw(e,t,r){return function(n){return new Sw(e,t,r,n)}}const Pw=Hn(Js("groupBy",ti(4,[],Es([],Aw,(function(e,t,r,n){var s=zs((function(n,s){var i=r(s),o=e(es(i,n)?n[i]:jw(t,!1),s);return o&&o["@@transducer/reduced"]?pa(n):(n[i]=o,n)}));return Vs(s,{},n)})))((function(e,t){return e.push(t),e}),[]))),$w=e=>e.replace(/\s/g,""),Tw=e=>e.replace(/\W/gi,"_"),kw=(e,t,r)=>{const n=$w(e);return n.length>0?Tw(n):((e,t)=>`${Tw($w(t.toLowerCase()))}${Tw($w(e))}`)(t,r)},_w=({operationIdNormalizer:e=kw}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=Pw((e=>hc(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=>{if(void 0===e.operationId)return;const t=String(hc(e.operationId)),r=s.find((e=>hc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Ya.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=Xs("path",hc(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(hc(t.operationId)),o=ei(n),a=Xs("method",hc(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)}}}}};const Mw=zn((function(e,t,r){return Xs(e,Wn(t,r))}));var Cw=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Os,e.prototype["@@transducer/result"]=Ss,e.prototype["@@transducer/step"]=function(e,t){return Zn(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Iw(e){return function(t){return new Cw(e,t)}}const Rw=Hn(Es([],Iw,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)Zn(e,r=t[n],i)||(i[i.length]=r),n+=1;return i}))),Fw=()=>({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)&&(hc(t.name)===hc(r.name)&&hc(t.in)===hc(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=ei(r);if(!Array.isArray(n)||0===n.length)return;const s=Mw([],["parameters","content"],e),i=Rw(t,[...s,...n]);e.parameters=new Yy(i)}}}}},Dw=()=>({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 og(null===(a=t)||void 0===a?void 0:a.content))}}}}},Nw=()=>({predicates:e,namespace:t})=>({visitor:{OpenApi3_1Element(r){const n=void 0===r.servers,s=e.isArrayElement(r.servers),i=s&&0===r.servers.length,o=t.elements.Server.refract({url:"/"});n||!s?r.servers=new mf([o]):s&&i&&r.servers.push(o)},PathItemElement(t,r,n,s,i){if(i.some(e.isComponentsElement))return;if(!i.some(e.isOpenApi3_1Element))return;const o=i.find(e.isOpenApi3_1Element),a=void 0===t.servers,c=e.isArrayElement(t.servers),l=c&&0===t.servers.length;if(e.isOpenApi3_1Element(o)){var u;const e=null===(u=o.servers)||void 0===u?void 0:u.content,r=null!=e?e:[];a||!c?t.servers=new yg(r):c&&l&&r.forEach((e=>{t.servers.push(e)}))}},OperationElement(t,r,n,s,i){if(i.some(e.isComponentsElement))return;if(!i.some(e.isOpenApi3_1Element))return;const o=[...i].reverse().find(e.isPathItemElement),a=void 0===t.servers,c=e.isArrayElement(t.servers),l=c&&0===t.servers.length;if(e.isPathItemElement(o)){var u;const e=null===(u=o.servers)||void 0===u?void 0:u.content,r=null!=e?e:[];a||!c?t.servers=new ug(r):c&&l&&r.forEach((e=>{t.servers.push(e)}))}}}}),Lw=()=>({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=>Ya.safe(e.value)));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",[Ya(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Ya(t.example)))}}}}}),qw=()=>({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=>Ya.safe(e.value)));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",[Ya(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Ya(t.example)))}}}}}),Bw=e=>t=>{if(t?.$$normalized)return t;if(Bw.cache.has(t))return Bw.cache.get(t);const r=av.refract(t),n=e(r),s=hc(n);return Bw.cache.set(t,s),s};Bw.cache=new WeakMap;const Uw=e=>{if(!Ia(e))return e;if(e.hasKey("$$normalized"))return e;const t=[_w({operationIdNormalizer:(e,t,r)=>Uo({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Fw(),Dw(),Nw(),Lw(),qw()],r=Hc(e,t,{toolboxCreator:zx,visitorOptions:{keyMap:Vx,nodeTypeGetter:Ux}});return r.set("$$normalized",!0),r};const Vw=class{name;constructor({name:e}){this.name=e}};const Hw=class extends Vw{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:n=5,withCredentials:s=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=n,this.withCredentials=s}canRead(e){return Yi(e.uri)}};const zw=class extends Nn{};const Gw=class extends zw{},{AbortController:Jw,AbortSignal:Kw}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=Jw),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=Kw);const Ww=class extends Hw{swaggerHTTPClient=Rr;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Rr,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:n}=r,s=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:n,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new Gw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}},Yw=(e,t=Bc)=>{if(Li(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Dc(e)&&_u("element",e)?t.fromRefract(e):t.toElement(e)};const Xw=class extends bw{constructor(e={}){super({...e,name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]})}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 vw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=Yw(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new vw(`Error parsing "${e.uri}"`,{cause:t})}}};const Qw=class extends bw{constructor(e={}){super({...e,name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]})}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:xr}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new vw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();try{const e=_r.load(r,{schema:xr});if(this.allowEmpty&&void 0===e)return t;const n=Yw(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new vw(`Error parsing "${e.uri}"`,{cause:t})}}};const Zw=class extends bw{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({...e,name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new Yx(...Xx.filterByFormat("generic"),...Xx.filterByFormat("json"))})}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 vw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=av.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new vw(`Error parsing "${e.uri}"`,{cause:t})}}};const eE=class extends bw{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",...e,fileExtensions:[".yaml",".yml"],mediaTypes:new Yx(...Xx.filterByFormat("generic"),...Xx.filterByFormat("yaml"))})}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 vw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new xa,r=e.toString();try{const e=_r.load(r,{schema:xr});if(this.allowEmpty&&void 0===e)return t;const n=av.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new vw(`Error parsing "${e.uri}"`,{cause:t})}}};const tE=zn((function(e,t,r){return fs(e,Qs(t,r))}));const rE=class{name;constructor({name:e}){this.name=e}};const nE=Hn((function(e,t){return da(bs(e),t)}));var sE=r(3306);const iE=class extends Ln{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class oE{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new sE({length:e}),this.identityMap=new WeakMap}identify(e){if(!Ta(e))throw new iE("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&ka(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new ua.Om(this.generateId());return this.identityMap.set(e,t),t}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new oE;const aE=(e,t)=>{const r=new sc({predicate:e,returnOnTrue:sa});return ic(t,r),Mw(void 0,[0],r.result)};const cE=class extends Nn{};const lE=class extends cE{};const uE=class extends cE{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},pE=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),hE=e=>{const t=Qi(e);return yl("#",t)},fE=(e,t)=>{const r=(e=>{if(!pE(e))throw new uE(e);return e})(e),n=aE((e=>jb(e)&&hc(e.$anchor)===r),t);if(Si(n))throw new lE(`Evaluation failed on token: "${r}"`);return n},dE=(e,t)=>{const r=new sc({predicate:e});return ic(t,r),new ua.G6(r.result)};const mE=class extends Nn{};const yE=class extends mE{},gE=(e,t)=>{if(void 0===t.$ref)return;const r=Qi(hc(t.$ref)),n=hc(t.meta.get("inherited$id"));return`${Gs(((e,t)=>to(e,ro(Zi(t)))),e,[...n,hc(t.$ref)])}${"#"===r?"":r}`},vE=e=>{if(vE.cache.has(e))return vE.cache.get(e);const t=vv.refract(e);return vE.cache.set(e,t),t};vE.cache=new WeakMap;const bE=e=>Va(e)?vE(e):e,xE=(e,t)=>{const{cache:r}=xE,n=Zi(e),s=e=>jb(e)&&void 0!==e.$id;if(!r.has(t)){const e=dE(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=hc(t.meta.get("inherited$id"));return Gs(((e,t)=>to(e,ro(Zi(t)))),e,[...r,hc(t.$id)])})(n,e)===n));if(Si(i))throw new yE(`Evaluation failed on URI: "${e}"`);let o,a;return pE(hE(e))?(o=fE,a=hE(e)):(o=El,a=bl(e)),o(a,i)};xE.cache=new WeakMap;const wE=class extends dw{};const EE=class extends zw{};const jE=class extends Gw{},OE=async(e,t)=>{const r=new uw({uri:ro(Zi(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 hw("canRead",[e,t],r);if(Oc(n))throw new jE(e.uri);try{const{result:t}=await fw("read",[e],n);return t}catch(t){throw new zw(`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 hw("canParse",[e,t],r);if(Oc(n))throw new jE(e.uri);try{const{plugin:r,result:s}=await fw("parse",[e,t],n);return!r.allowEmpty&&s.isEmpty?Promise.reject(new gw(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(t){throw new gw(`Error while parsing file "${e.uri}"`,{cause:t})}})(new uw({...r,data:n}),t)};class SE extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(Ta(r)&&e(r))return r}}const AE=ic[Symbol.for("nodejs.util.promisify.custom")],PE=new oE;class $E{indirections;namespace;reference;options;ancestors;refractCache;constructor({reference:e,namespace:t,options:r,indirections:n=[],ancestors:s=new SE,refractCache:i=new Map}){this.indirections=n,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new SE(...s),this.refractCache=i}toBaseURI(e){return to(this.reference.uri,ro(Zi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new EE(`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(tE(t,"uri"));const n=await OE(no(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new Qx({uri:t,value:Ya(n),depth:this.reference.depth+1});if(r.add(s),this.options.dereference.immutable){const e=new Qx({uri:`immutable://${t}`,value:n,depth:this.reference.depth+1});r.add(e)}return s}toAncestorLineage(e){const t=new Set(e.filter(Ta));return[new SE(...this.ancestors,t),t]}async ReferenceElement(e,t,r,n,s){if(this.indirections.includes(e))return!1;const[i,o]=this.toAncestorLineage([...s,r]),a=this.toBaseURI(hc(e.$ref)),c=Zi(this.reference.uri)===a,l=!c;if(!this.options.resolve.internal&&c)return!1;if(!this.options.resolve.external&&l)return!1;const u=await this.toReference(hc(e.$ref)),p=to(a,hc(e.$ref));this.indirections.push(e);const h=bl(p);let f=El(h,u.value.result);if(f.id=PE.identify(f),Va(f)){const t=hc(e.meta.get("referenced-element")),r=`${t}-${hc(PE.identify(f))}`;if(this.refractCache.has(r))f=this.refractCache.get(r);else if(Dh(f))f=fv.refract(f),f.setMetaProperty("referenced-element",t),this.refractCache.set(r,f);else{f=this.namespace.getElementClass(t).refract(f),this.refractCache.set(r,f)}}if(e===f)throw new Nn("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new wE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(i.includes(f)){if(u.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){var d,m;const n=new ua.sI(f.id,{type:"reference",uri:u.uri,$ref:hc(e.$ref)}),s=(null!==(d=null===(m=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===m?void 0:m.circularReplacer)&&void 0!==d?d:this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const y=Zi(u.refSet.rootRef.uri)!==u.uri,g=["error","replace"].includes(this.options.dereference.circular);if((l||y||vb(f)||g)&&!i.includesCycle(f)){o.add(e);const t=new $E({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:i});f=await AE(f,t,{keyMap:Vx,nodeTypeGetter:Ux}),o.delete(e)}this.indirections.pop();const v=Za(f);return v.setMetaProperty("id",PE.generateId()),v.setMetaProperty("ref-fields",{$ref:hc(e.$ref),description:hc(e.description),summary:hc(e.summary)}),v.setMetaProperty("ref-origin",u.uri),v.setMetaProperty("ref-referencing-element-id",Ya(PE.identify(e))),Ia(f)&&Ia(v)&&(e.hasKey("description")&&"description"in f&&(v.remove("description"),v.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in f&&(v.remove("summary"),v.set("summary",e.get("summary")))),Fa(r)?r.value=v:Array.isArray(r)&&(r[t]=v),!r&&v}async PathItemElement(e,t,r,n,s){if(!ka(e.$ref))return;if(this.indirections.includes(e))return!1;const[i,o]=this.toAncestorLineage([...s,r]),a=this.toBaseURI(hc(e.$ref)),c=Zi(this.reference.uri)===a,l=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&l)return;const u=await this.toReference(hc(e.$ref)),p=to(a,hc(e.$ref));this.indirections.push(e);const h=bl(p);let f=El(h,u.value.result);if(f.id=PE.identify(f),Va(f)){const e=`path-item-${hc(PE.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=uv.refract(f),this.refractCache.set(e,f))}if(e===f)throw new Nn("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new wE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(i.includes(f)){if(u.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){var d,m;const n=new ua.sI(f.id,{type:"path-item",uri:u.uri,$ref:hc(e.$ref)}),s=(null!==(d=null===(m=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===m?void 0:m.circularReplacer)&&void 0!==d?d:this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const y=Zi(u.refSet.rootRef.uri)!==u.uri,g=["error","replace"].includes(this.options.dereference.circular);if((l||y||mb(f)&&ka(f.$ref)||g)&&!i.includesCycle(f)){o.add(e);const t=new $E({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:i});f=await AE(f,t,{keyMap:Vx,nodeTypeGetter:Ux}),o.delete(e)}if(this.indirections.pop(),mb(f)){const t=new uv([...f.content],Ya(f.meta),Ya(f.attributes));t.setMetaProperty("id",PE.generateId()),e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",u.uri),t.setMetaProperty("ref-referencing-element-id",Ya(PE.identify(e))),f=t}return Fa(r)?r.value=f:Array.isArray(r)&&(r[t]=f),r?void 0:f}async LinkElement(e,t,r){if(!ka(e.operationRef)&&!ka(e.operationId))return;if(ka(e.operationRef)&&ka(e.operationId))throw new Nn("LinkElement operationRef and operationId fields are mutually exclusive.");let n;if(ka(e.operationRef)){var s;const i=bl(hc(e.operationRef)),o=this.toBaseURI(hc(e.operationRef)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(hc(e.operationRef));if(n=El(i,l.value.result),Va(n)){const e=`operation-${hc(PE.identify(n))}`;this.refractCache.has(e)?n=this.refractCache.get(e):(n=cv.refract(n),this.refractCache.set(e,n))}n=Za(n),n.setMetaProperty("ref-origin",l.uri);const u=Za(e);return null===(s=u.operationRef)||void 0===s||s.meta.set("operation",n),Fa(r)?r.value=u:Array.isArray(r)&&(r[t]=u),r?void 0:u}if(ka(e.operationId)){var i;const s=hc(e.operationId),o=await this.toReference(no(this.reference.uri));if(n=aE((e=>fb(e)&&Ta(e.operationId)&&e.operationId.equals(s)),o.value.result),Si(n))throw new Nn(`OperationElement(operationId=${s}) not found.`);const a=Za(e);return null===(i=a.operationId)||void 0===i||i.meta.set("operation",n),Fa(r)?r.value=a:Array.isArray(r)&&(r[t]=a),r?void 0:a}}async ExampleElement(e,t,r){if(!ka(e.externalValue))return;if(e.hasKey("value")&&ka(e.externalValue))throw new Nn("ExampleElement value and externalValue fields are mutually exclusive.");const n=this.toBaseURI(hc(e.externalValue)),s=Zi(this.reference.uri)===n,i=!s;if(!this.options.resolve.internal&&s)return;if(!this.options.resolve.external&&i)return;const o=await this.toReference(hc(e.externalValue)),a=Za(o.value.result);a.setMetaProperty("ref-origin",o.uri);const c=Za(e);return c.value=a,Fa(r)?r.value=c:Array.isArray(r)&&(r[t]=c),r?void 0:c}async SchemaElement(e,t,r,n,s){if(!ka(e.$ref))return;if(this.indirections.includes(e))return!1;const[i,o]=this.toAncestorLineage([...s,r]);let a=await this.toReference(no(this.reference.uri)),{uri:c}=a;const l=gE(c,e),u=Zi(l),p=new uw({uri:u}),h=nE((e=>e.canRead(p)),this.options.resolve.resolvers),f=!h;let d,m=Zi(this.reference.uri)===l,y=!m;this.indirections.push(e);try{if(h||f){c=this.toBaseURI(l);const e=l,t=bE(a.value.result);if(d=xE(e,t),d=bE(d),d.id=PE.identify(d),!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return}else{if(c=this.toBaseURI(l),m=Zi(this.reference.uri)===c,y=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(no(l));const e=bl(l),t=bE(a.value.result);d=El(e,t),d=bE(d),d.id=PE.identify(d)}}catch(e){if(!(f&&e instanceof yE))throw e;if(pE(hE(l))){if(m=Zi(this.reference.uri)===c,y=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(no(l));const e=hE(l),t=bE(a.value.result);d=fE(e,t),d=bE(d),d.id=PE.identify(d)}else{if(c=this.toBaseURI(l),m=Zi(this.reference.uri)===c,y=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&y)return;a=await this.toReference(no(l));const e=bl(l),t=bE(a.value.result);d=El(e,t),d=bE(d),d.id=PE.identify(d)}}if(e===d)throw new Nn("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new wE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(i.includes(d)){if(a.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){var g,v;const n=new ua.sI(d.id,{type:"json-schema",uri:a.uri,$ref:hc(e.$ref)}),s=(null!==(g=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const b=Zi(a.refSet.rootRef.uri)!==a.uri,x=["error","replace"].includes(this.options.dereference.circular);if((y||b||jb(d)&&ka(d.$ref)||x)&&!i.includesCycle(d)){o.add(e);const t=new $E({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:i});d=await AE(d,t,{keyMap:Vx,nodeTypeGetter:Ux}),o.delete(e)}if(this.indirections.pop(),Ob(d)){const n=Ya(d);return n.setMetaProperty("id",PE.generateId()),n.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),n.setMetaProperty("ref-origin",a.uri),n.setMetaProperty("ref-referencing-element-id",Ya(PE.identify(e))),Fa(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!r&&n}if(jb(d)){const t=new vv([...d.content],Ya(d.meta),Ya(d.attributes));t.setMetaProperty("id",PE.generateId()),e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Ya(PE.identify(e))),d=t}return Fa(r)?r.value=d:Array.isArray(r)&&(r[t]=d),r?void 0:d}}const TE=$E,kE=ic[Symbol.for("nodejs.util.promisify.custom")];const _E=class extends rE{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?Xx.includes(e.mediaType):hb(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const n=qc(Hx),s=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Zx,i=new Zx;let o,a=s;s.has(e.uri)?o=s.find(tE(e.uri,"uri")):(o=new Qx({uri:e.uri,value:e.parseResult}),s.add(o)),t.dereference.immutable&&(s.refs.map((e=>new Qx({...e,value:Ya(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new TE({reference:o,namespace:n,options:t}),l=await kE(a.rootRef.value,c,{keyMap:Vx,nodeTypeGetter:Ux});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new Qx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),i.clean(),l}},ME=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(Fa(r)){const t=String(hc(r.key));e.push(t)}else if(Ra(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},CE=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const IE=class extends Ln{},{wrapError:RE}=xo,FE=ic[Symbol.for("nodejs.util.promisify.custom")],DE=new oE;class NE extends TE{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...n}){super(n),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,n,s){try{if(this.indirections.includes(e))return!1;const[n,i]=this.toAncestorLineage([...s,r]),o=this.toBaseURI(hc(e.$ref)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(hc(e.$ref)),u=to(o,hc(e.$ref));this.indirections.push(e);const p=bl(u);let h=El(p,l.value.result);if(h.id=DE.identify(h),Va(h)){const t=hc(e.meta.get("referenced-element")),r=`${t}-${hc(DE.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(Dh(h))h=fv.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new Nn("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new wE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(n.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){const n=new ua.sI(h.id,{type:"reference",uri:l.uri,$ref:hc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const f=Zi(l.refSet.rootRef.uri)!==l.uri,d=["error","replace"].includes(this.options.dereference.circular);if((c||f||vb(h)||d)&&!n.includesCycle(h)){i.add(e);const t=new NE({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...ME([...s,r,e]),"$ref"]});h=await FE(h,t,{keyMap:Vx,nodeTypeGetter:Ux}),i.delete(e)}this.indirections.pop();const m=Za(h);if(m.setMetaProperty("ref-fields",{$ref:hc(e.$ref),description:hc(e.description),summary:hc(e.summary)}),m.setMetaProperty("ref-origin",l.uri),m.setMetaProperty("ref-referencing-element-id",Ya(DE.identify(e))),Ia(h)&&(e.hasKey("description")&&"description"in h&&(m.remove("description"),m.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(m.remove("summary"),m.set("summary",e.get("summary")))),this.allowMetaPatches&&Ia(m)&&!m.hasKey("$$ref")){const e=to(o,u);m.set("$$ref",e)}return Fa(r)?r.value=m:Array.isArray(r)&&(r[t]=m),!r&&m}catch(t){const n=CE(t),i=RE(n,{baseDoc:this.reference.uri,$ref:hc(e.$ref),pointer:bl(hc(e.$ref)),fullPath:this.basePath??[...ME([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,n,s){try{if(!ka(e.$ref))return;if(this.indirections.includes(e))return!1;if(Ga(["cycle"],e.$ref))return!1;const[n,i]=this.toAncestorLineage([...s,r]),o=this.toBaseURI(hc(e.$ref)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(hc(e.$ref)),u=to(o,hc(e.$ref));this.indirections.push(e);const p=bl(u);let h=El(p,l.value.result);if(h.id=DE.identify(h),Va(h)){const e=`path-item-${hc(DE.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=uv.refract(h),this.refractCache.set(e,h))}if(e===h)throw new Nn("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new wE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(n.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){const n=new ua.sI(h.id,{type:"path-item",uri:l.uri,$ref:hc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const f=Zi(l.refSet.rootRef.uri)!==l.uri,d=["error","replace"].includes(this.options.dereference.circular);if((c||f||mb(h)&&ka(h.$ref)||d)&&!n.includesCycle(h)){i.add(e);const t=new NE({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...ME([...s,r,e]),"$ref"]});h=await FE(h,t,{keyMap:Vx,nodeTypeGetter:Ux}),i.delete(e)}if(this.indirections.pop(),mb(h)){const t=new uv([...h.content],Ya(h.meta),Ya(h.attributes));if(e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Ya(DE.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=to(o,u);t.set("$$ref",e)}h=t}return Fa(r)?r.value=h:Array.isArray(r)&&(r[t]=h),r?void 0:h}catch(t){const n=CE(t),i=RE(n,{baseDoc:this.reference.uri,$ref:hc(e.$ref),pointer:bl(hc(e.$ref)),fullPath:this.basePath??[...ME([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,n,s){try{if(!ka(e.$ref))return;if(this.indirections.includes(e))return!1;const[n,i]=this.toAncestorLineage([...s,r]);let o=await this.toReference(no(this.reference.uri)),{uri:a}=o;const c=gE(a,e),l=Zi(c),u=new uw({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let f,d=Zi(this.reference.uri)===c,m=!d;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=bE(o.value.result);if(f=xE(e,t),f=bE(f),f.id=DE.identify(f),!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return}else{if(a=this.toBaseURI(c),d=Zi(this.reference.uri)===a,m=!d,!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(no(c));const e=bl(c),t=bE(o.value.result);f=El(e,t),f=bE(f),f.id=DE.identify(f)}}catch(e){if(!(h&&e instanceof yE))throw e;if(pE(hE(c))){if(d=Zi(this.reference.uri)===a,m=!d,!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(no(c));const e=hE(c),t=bE(o.value.result);f=fE(e,t),f=bE(f),f.id=DE.identify(f)}else{if(a=this.toBaseURI(hc(c)),d=Zi(this.reference.uri)===a,m=!d,!this.options.resolve.internal&&d)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(no(c));const e=bl(c),t=bE(o.value.result);f=El(e,t),f=bE(f),f.id=DE.identify(f)}}if(e===f)throw new Nn("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new wE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(n.includes(f)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Nn("Circular reference detected");if("replace"===this.options.dereference.circular){const n=new ua.sI(f.id,{type:"json-schema",uri:o.uri,$ref:hc(e.$ref),baseURI:to(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(n);return Fa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!r&&s}}const y=Zi(o.refSet.rootRef.uri)!==o.uri,g=["error","replace"].includes(this.options.dereference.circular);if((m||y||jb(f)&&ka(f.$ref)||g)&&!n.includesCycle(f)){i.add(e);const t=new NE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...ME([...s,r,e]),"$ref"]});f=await FE(f,t,{keyMap:Vx,nodeTypeGetter:Ux}),i.delete(e)}if(this.indirections.pop(),Ob(f)){const n=Ya(f);return n.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),n.setMetaProperty("ref-origin",o.uri),n.setMetaProperty("ref-referencing-element-id",Ya(DE.identify(e))),Fa(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!r&&n}if(jb(f)){const t=new vv([...f.content],Ya(f.meta),Ya(f.attributes));if(e.forEach(((e,r,n)=>{t.remove(hc(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:hc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Ya(DE.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=to(a,c);t.set("$$ref",e)}f=t}return Fa(r)?r.value=f:Array.isArray(r)&&(r[t]=f),r?void 0:f}catch(t){const n=CE(t),i=new IE(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:hc(e.$ref),fullPath:this.basePath??[...ME([...s,r,e]),"$ref"],cause:n});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,n,s){try{return await super.ExampleElement(e,t,r,n,s)}catch(t){const n=CE(t),i=RE(n,{baseDoc:this.reference.uri,externalValue:hc(e.externalValue),fullPath:this.basePath??[...ME([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const LE=NE;const qE=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,r,n,s)=>{const i=this.#e?hc(this.#e):null,o=hc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=ME([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}};const BE=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,n,s)=>{void 0!==e.properties&&Ia(e.properties)&&e.properties.forEach((t=>{if(Ia(t))try{const e=this.modelPropertyMacro(hc(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...ME([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const UE=class{options;SchemaElement={leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!Ra(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...ME([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(jb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...ME([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=Lu.all([...t.content,e]);if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}},VE=ic[Symbol.for("nodejs.util.promisify.custom")],HE=ca[Symbol.for("nodejs.util.promisify.custom")];const zE=class extends _E{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:n="non-strict",ancestors:s=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=n,this.ancestors=[...s]}async dereference(e,t){const r=[],n=qc(Hx),s=t.dereference.refSet??new Zx,i=new Zx;let o,a=s;s.has(e.uri)?o=s.find((t=>t.uri===e.uri)):(o=new Qx({uri:e.uri,value:e.parseResult}),s.add(o)),t.dereference.immutable&&(s.refs.map((e=>new Qx({...e,value:Ya(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new LE({reference:o,namespace:n,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(c),"function"==typeof this.parameterMacro){const e=new qE({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=new BE({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=new UE({options:t});r.push(e)}const l=HE(r,{nodeTypeGetter:Ux}),u=await VE(a.rootRef.value,l,{keyMap:Vx,nodeTypeGetter:Ux});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new Qx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),i.clean(),u}},GE=e=>{const t=hc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new ua.Sh({$ref:t},Ya(r.meta),Ya(r.attributes))},JE=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:h=null,mode:f="non-strict"}=e;try{const{cache:d}=JE,m=Yi(eo())?eo():p,y=Dr(e),g=to(m,y);let v;d.has(t)?v=d.get(t):(v=av.refract(t),v.classes.push("result"),d.set(t,v));const b=new xa([v]),x=Qc(o),w=""===x?"":`#${x}`,E=El(x,v),j=new Qx({uri:g,value:b}),O=new Zx({refs:[j]});""!==x&&(O.rootRef=void 0);const S=[new Set([E])],A=[],P=await(async(e,t={})=>{const r=lw(ew,t);return yw(e,r)})(E,{resolve:{baseURI:`${g}${w}`,resolvers:[new Ww({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[new Ew]},parse:{mediaType:Xx.latest(),parsers:[new Zw({allowEmpty:!1,sourceMap:!1}),new eE({allowEmpty:!1,sourceMap:!1}),new Xw({allowEmpty:!1,sourceMap:!1}),new Qw({allowEmpty:!1,sourceMap:!1}),new xw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new zE({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:h,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:A},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?ew.dereference.circularReplacer:GE}}),$=((e,t,r)=>new Kc({element:r}).transclude(e,t))(E,P,v),T=l?$:Uw($);return{spec:hc(T),errors:A}}catch(e){if(e instanceof vl||e instanceof wl)return{spec:null,errors:[]};throw e}};JE.cache=new WeakMap;const KE=JE,WE={name:"openapi-3-1-apidom",match:({spec:e})=>Ko(e),normalize:({spec:e})=>Bw(Uw)(e),resolve:async e=>KE(e)};function YE(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 XE=()=>null,QE={mapTagOperations:function({spec:e,cb:t=XE,defaultTag:r="default",v2OperationIdCompatibilityMode:n}){const s={},i={};return YE(e,(({pathName:o,method:a,operation:c})=>{var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=Uo(c,o,a,{v2OperationIdCompatibilityMode:n}),p=t({spec:e,pathName:o,method:a,operation:c,operationId:u});if(s[u])s[u]+=1,l[`${u}${s[u]}`]=p;else if(void 0!==l[u]){const e=s[u]||1;s[u]=e+1,l[`${u}${s[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p}))})),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:n})=>(s,i={})=>{const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:t,method:r,parameters:s,operationId:n,...i})}}};var ZE=r(7427);function ej(e){return"[object Object]"===Object.prototype.toString.call(e)}function tj(e){var t,r;return!1!==ej(e)&&(void 0===(t=e.constructor)||!1!==ej(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const rj=function(){const e=ij,t=sj,r=this,n="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let s,i,o,a,c,l,u,p=0,h=0,f=0,d=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(g,v,x,w)=>{const E=`${n}parse(): `;p=0,h=0,f=0,d=0,m=0,s=void 0,i=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(x),s=g.rules,i=g.udts;const j=v.toLowerCase();let O;for(const e in s)if(j===s[e].lower){O=s[e].index;break}if(void 0===O)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<s.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const n in r.callbacks){if(t=a.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=r.callbacks[n]?r.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<s.length?c[t]=o:l[t-s.length]=o}})(),r.trace&&r.trace.init(s,i,a),r.stats&&r.stats.init(s,i),r.ast&&r.ast.init(s,i,a),u=w,o=[{type:e.RNM,index:O}],b(0,0),o=void 0;let S=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:S,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:f,nodeHits:d}};const g=(t,r,s,i)=>{if(r.phraseLength>s){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,c)=>{let h,f,d;const m=o[t],g=i[m.index];y.UdtIndex=g.index,p||(d=r.ast&&r.ast.udtDefined(m.index),d&&(f=s.length+m.index,h=r.ast.getLength(),r.ast.down(f,g.name)));const v=a.length-c;l[m.index](y,a,c,u),((t,r,s)=>{if(r.phraseLength>s){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(g,y,v),p||d&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(f,g.name,c,y.phraseLength))},b=(t,i)=>{const l=`${n}opExecute(): `,x=o[t];switch(d+=1,h>f&&(f=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const n=o[t];for(let t=0;t<n.children.length&&(b(n.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let s,i,a,c;const l=o[t];r.ast&&(i=r.ast.getLength()),s=!0,a=n,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){s=!1;break}a+=y.phraseLength,c+=y.phraseLength}s?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let s,i,c,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,c=0,l=0,r.ast&&(s=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(s))})(t,i);break;case e.RNM:((t,n)=>{let i,l,h;const f=o[t],d=s[f.index],m=c[d.index];if(p||(l=r.ast&&r.ast.ruleDefined(f.index),l&&(i=r.ast.getLength(),r.ast.down(f.index,s[f.index].name))),m){const t=a.length-n;m(y,a,n,u),g(d,y,t,!0),y.state===e.ACTIVE&&(h=o,o=d.opcodes,b(0,n),o=h,m(y,a,n,u),g(d,y,t,!1))}else h=o,o=d.opcodes,b(0,n,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(f.index,d.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const n=o[t];y.state=e.NOMATCH,r<a.length&&n.min<=a[r]&&a[r]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const n=o[t],s=n.string.length;if(y.state=e.NOMATCH,r+s<=a.length){for(let e=0;e<s;e+=1)if(a[r+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=s}})(t,i);break;case e.TLS:((t,r)=>{let n;const s=o[t];y.state=e.NOMATCH;const i=s.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(n=a[r+e],n>=65&&n<=90&&(n+=32),n!==s.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:v(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>m&&(m=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},nj=function(){const e=ij,t=sj,r=this;let n,s,i,o=0;const a=[],c=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;c.length=0,l.length=0,o=0,n=e,s=t,i=u;const h=[];for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(o=n.length+s.length,p=0;p<o;p+=1)a[p]=void 0;for(const e in r.callbacks){const t=e.toLowerCase();if(p=h.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[p]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[n.length+e],r.down=(t,r)=>{const n=l.length;return c.push(n),l.push({name:r,thisIndex:n,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),n},r.up=(t,r,n,s)=>{const i=l.length,o=c.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:c.length}),l[o].thatIndex=i,l[o].phraseIndex=n,l[o].phraseLength=s,i},r.translate=t=>{let r,n;for(let s=0;s<l.length;s+=1)n=l[s],r=a[n.callbackIndex],r&&(n.state===e.SEM_PRE?r(e.SEM_PRE,i,n.phraseIndex,n.phraseLength,t):r&&r(e.SEM_POST,i,n.phraseIndex,n.phraseLength,t))},r.setLength=e=>{l.length=e,c.length=e>0?l[e-1].stack:0},r.getLength=()=>l.length,r.toXml=()=>{let r="",n=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(n+2),r+=t.charsToString(i),r+="\n",l.forEach((s=>{s.state===e.SEM_PRE?(n+=1,r+=u(n),r+=`<node name="${s.name}" index="${s.phraseIndex}" length="${s.phraseLength}">\n`,r+=u(n+2),r+=t.charsToString(i,s.phraseIndex,s.phraseLength),r+="\n"):(r+=u(n),r+=`</node>\x3c!-- name="${s.name}" --\x3e\n`,n-=1)})),r+="</root>\n",r}},sj={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===r){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},ij={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case ij.ALT:return"ALT";case ij.CAT:return"CAT";case ij.REP:return"REP";case ij.RNM:return"RNM";case ij.TRG:return"TRG";case ij.TBS:return"TBS";case ij.TLS:return"TLS";case ij.UDT:return"UDT";case ij.AND:return"AND";case ij.NOT:return"NOT";case ij.ACTIVE:return"ACTIVE";case ij.EMPTY:return"EMPTY";case ij.MATCH:return"MATCH";case ij.NOMATCH:return"NOMATCH";case ij.SEM_PRE:return"SEM_PRE";case ij.SEM_POST:return"SEM_POST";case ij.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const oj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["slash",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),aj=(e,t,r,n,s)=>{if(e===ij.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["path-template",sj.charsToString(t,r,n)])}return ij.SEM_OK},cj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["path",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),lj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["path-literal",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),uj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["query",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),pj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["query-marker",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),hj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["fragment",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),fj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["fragment-marker",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),dj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["template-expression",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),mj=(e,t,r,n,s)=>(e===ij.SEM_PRE?s.push(["template-expression-param-name",sj.charsToString(t,r,n)]):ij.SEM_POST,ij.SEM_OK),yj=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path",lower:"path",index:1,isBkr:!1},this.rules[2]={name:"path-segment",lower:"path-segment",index:2,isBkr:!1},this.rules[3]={name:"query",lower:"query",index:3,isBkr:!1},this.rules[4]={name:"query-literal",lower:"query-literal",index:4,isBkr:!1},this.rules[5]={name:"query-marker",lower:"query-marker",index:5,isBkr:!1},this.rules[6]={name:"fragment",lower:"fragment",index:6,isBkr:!1},this.rules[7]={name:"fragment-literal",lower:"fragment-literal",index:7,isBkr:!1},this.rules[8]={name:"fragment-marker",lower:"fragment-marker",index:8,isBkr:!1},this.rules[9]={name:"slash",lower:"slash",index:9,isBkr:!1},this.rules[10]={name:"path-literal",lower:"path-literal",index:10,isBkr:!1},this.rules[11]={name:"template-expression",lower:"template-expression",index:11,isBkr:!1},this.rules[12]={name:"template-expression-param-name",lower:"template-expression-param-name",index:12,isBkr:!1},this.rules[13]={name:"unreserved",lower:"unreserved",index:13,isBkr:!1},this.rules[14]={name:"pct-encoded",lower:"pct-encoded",index:14,isBkr:!1},this.rules[15]={name:"sub-delims",lower:"sub-delims",index:15,isBkr:!1},this.rules[16]={name:"sub-delims-no-slash",lower:"sub-delims-no-slash",index:16,isBkr:!1},this.rules[17]={name:"ALPHA",lower:"alpha",index:17,isBkr:!1},this.rules[18]={name:"DIGIT",lower:"digit",index:18,isBkr:!1},this.rules[19]={name:"HEXDIG",lower:"hexdig",index:19,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:5},this.rules[0].opcodes[5]={type:4,index:3},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:2,children:[8,9]},this.rules[0].opcodes[8]={type:4,index:8},this.rules[0].opcodes[9]={type:4,index:6},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,6]},this.rules[1].opcodes[1]={type:4,index:9},this.rules[1].opcodes[2]={type:3,min:0,max:1/0},this.rules[1].opcodes[3]={type:2,children:[4,5]},this.rules[1].opcodes[4]={type:4,index:2},this.rules[1].opcodes[5]={type:4,index:9},this.rules[1].opcodes[6]={type:3,min:0,max:1},this.rules[1].opcodes[7]={type:4,index:2},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:10},this.rules[2].opcodes[3]={type:4,index:11},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:4},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10]},this.rules[4].opcodes[2]={type:4,index:13},this.rules[4].opcodes[3]={type:4,index:14},this.rules[4].opcodes[4]={type:4,index:15},this.rules[4].opcodes[5]={type:7,string:[58]},this.rules[4].opcodes[6]={type:7,string:[64]},this.rules[4].opcodes[7]={type:7,string:[47]},this.rules[4].opcodes[8]={type:7,string:[63]},this.rules[4].opcodes[9]={type:7,string:[38]},this.rules[4].opcodes[10]={type:7,string:[61]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:7,string:[63]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:0,max:1/0},this.rules[6].opcodes[1]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:3,min:1,max:1/0},this.rules[7].opcodes[1]={type:1,children:[2,3,4,5,6,7,8]},this.rules[7].opcodes[2]={type:4,index:13},this.rules[7].opcodes[3]={type:4,index:14},this.rules[7].opcodes[4]={type:4,index:15},this.rules[7].opcodes[5]={type:7,string:[58]},this.rules[7].opcodes[6]={type:7,string:[64]},this.rules[7].opcodes[7]={type:7,string:[47]},this.rules[7].opcodes[8]={type:7,string:[63]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:7,string:[35]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:7,string:[47]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:3,min:1,max:1/0},this.rules[10].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[10].opcodes[2]={type:4,index:13},this.rules[10].opcodes[3]={type:4,index:14},this.rules[10].opcodes[4]={type:4,index:16},this.rules[10].opcodes[5]={type:7,string:[58]},this.rules[10].opcodes[6]={type:7,string:[64]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2,3]},this.rules[11].opcodes[1]={type:7,string:[123]},this.rules[11].opcodes[2]={type:4,index:12},this.rules[11].opcodes[3]={type:7,string:[125]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:1,max:1/0},this.rules[12].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[12].opcodes[3]={type:4,index:14},this.rules[12].opcodes[4]={type:4,index:16},this.rules[12].opcodes[5]={type:7,string:[58]},this.rules[12].opcodes[6]={type:7,string:[64]},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[13].opcodes[1]={type:4,index:17},this.rules[13].opcodes[2]={type:4,index:18},this.rules[13].opcodes[3]={type:7,string:[45]},this.rules[13].opcodes[4]={type:7,string:[46]},this.rules[13].opcodes[5]={type:7,string:[95]},this.rules[13].opcodes[6]={type:7,string:[126]},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3]},this.rules[14].opcodes[1]={type:7,string:[37]},this.rules[14].opcodes[2]={type:4,index:19},this.rules[14].opcodes[3]={type:4,index:19},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[15].opcodes[1]={type:7,string:[33]},this.rules[15].opcodes[2]={type:7,string:[36]},this.rules[15].opcodes[3]={type:7,string:[38]},this.rules[15].opcodes[4]={type:7,string:[39]},this.rules[15].opcodes[5]={type:7,string:[40]},this.rules[15].opcodes[6]={type:7,string:[41]},this.rules[15].opcodes[7]={type:7,string:[42]},this.rules[15].opcodes[8]={type:7,string:[43]},this.rules[15].opcodes[9]={type:7,string:[44]},this.rules[15].opcodes[10]={type:7,string:[59]},this.rules[15].opcodes[11]={type:7,string:[61]},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[36]},this.rules[16].opcodes[3]={type:7,string:[38]},this.rules[16].opcodes[4]={type:7,string:[39]},this.rules[16].opcodes[5]={type:7,string:[40]},this.rules[16].opcodes[6]={type:7,string:[41]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[44]},this.rules[16].opcodes[10]={type:7,string:[59]},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2]},this.rules[17].opcodes[1]={type:5,min:65,max:90},this.rules[17].opcodes[2]={type:5,min:97,max:122},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:5,min:48,max:57},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[19].opcodes[1]={type:4,index:18},this.rules[19].opcodes[2]={type:7,string:[97]},this.rules[19].opcodes[3]={type:7,string:[98]},this.rules[19].opcodes[4]={type:7,string:[99]},this.rules[19].opcodes[5]={type:7,string:[100]},this.rules[19].opcodes[6]={type:7,string:[101]},this.rules[19].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="path-template = path [ query-marker query ] [ fragment-marker fragment ]\n",e+="path = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+="query = *( query-literal )\n",e+='query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n',e+='query-marker = "?"\n',e+="fragment = *( fragment-literal )\n",e+='fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n',e+='fragment-marker = "#"\n',e+='slash = "/"\n',e+='path-literal = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\n',e+='template-expression = "{" template-expression-param-name "}"\n',e+='template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\n',e+="\n",e+="; Characters definitions (from RFC 3986)\n",e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+='sub-delims-no-slash = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";"\n',e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims-no-slash / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nsub-delims-no-slash = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";"\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}},gj=e=>{const t=new rj;t.ast=new nj,t.ast.callbacks["path-template"]=aj,t.ast.callbacks.path=cj,t.ast.callbacks.query=uj,t.ast.callbacks["query-marker"]=pj,t.ast.callbacks.fragment=hj,t.ast.callbacks["fragment-marker"]=fj,t.ast.callbacks.slash=oj,t.ast.callbacks["path-literal"]=lj,t.ast.callbacks["template-expression"]=dj,t.ast.callbacks["template-expression-param-name"]=mj;return{result:t.parse(yj,"path-template",e),ast:t.ast}},vj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch(e){return!1}})(e)?e:encodeURIComponent(e),bj=["slash","path-literal","query-marker","query-literal","template-expression-param-name"],xj=(e,t={},r={})=>{const n={...{encoder:vj},...r},s=gj(e);if(!s.result.success)return e;const i=[];s.ast.translate(i);const o=i.filter((([e])=>bj.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?n.encoder(t[r]):`{${r}}`:r));return o.join("")},wj={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:n}){if(void 0!==t){const s=e.url.replace(n,""),i=xj(s,{[r.name]:t});e.url=n+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function Ej(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}function jj({req:e,value:t,parameter:r,baseURL:n}){const{name:s,style:i,explode:o,content:a}=r;if(void 0===t)return;const c=e.url.replace(n,"");let l;if(a){const e=Object.keys(a)[0];l=xj(c,{[s]:t},{encoder:t=>P(Ej(t,e))})}else l=xj(c,{[s]:t},{encoder:e=>$({key:r.name,value:e,style:i||"simple",explode:o||!1,escape:"reserved"})});e.url=n+l}function Oj({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const n=Ej(t,Object.keys(r.content)[0]);if(n)e.query[r.name]=n;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:n,explode:s,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:s,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const Sj=["accept","authorization","content-type"];function Aj({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Sj.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=Ej(r,n)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=$({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function Pj({req:e,parameter:t,value:r}){e.headers=e.headers||{};const n=typeof r;if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${Ej(r,n)}`}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const s="object"===n&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=s+$({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}}const $j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Tj}=$j,kj=Tj;function _j(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:i={}}=t,o=r.security||n.security||[],a=i&&!!Object.keys(i).length,c=n?.components?.securitySchemes||{};if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!a||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e],r=c[e];if(!t)return;const n=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(s.query[r.name]=n),"header"===r.in&&(s.headers[r.name]=n),"cookie"===r.in&&(s.cookies[r.name]=n);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=kj(`${e}:${t}`);s.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(s.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),s.headers.Authorization=`${i} ${n}`}}))})),s}({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,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&tj(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.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=>{let s;try{s=JSON.parse(n[r])}catch{s=n[r]}t.form[r]={value:s,encoding:e[r]||{}}}))}else if("string"==typeof n){const e=c.content[a]?.encoding??{};try{t.form={};const r=JSON.parse(n);Object.entries(r).forEach((([r,n])=>{t.form[r]={value:n,encoding:e[r]||{}}}))}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function Mj(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,c=i&&!!Object.keys(i).length,l=n.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!c||!a||Array.isArray(r.security)&&!r.security.length)return e;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,n=t.value||t,o=l[e],{type:a}=o,c=o["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";s[e]=s[e]||{},s[e][o.name]=n}else if("basic"===a)if(n.header)s.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=kj(`${e}:${t}`),s.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",s.headers.authorization=`${p} ${u}`)}))})),s}({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 Cj(e,t){return`${t.toLowerCase()}-${e}`}function Ij(e,t){return e&&e.paths?function(e,t){return YE(e,t,!0)||null}(e,(({pathName:e,method:r,operation:n})=>{if(!n||"object"!=typeof n)return!1;const s=n.operationId;return[Uo(n,e,r),Cj(e,r),s].some((e=>e&&e===t))})):null}const Rj=e=>Array.isArray(e)?e:[],Fj=e=>{try{return new URL(e)}catch{const t=new URL(e,p),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class Dj extends Ln{}const Nj={buildRequest:Lj};function Lj(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:d,parameterBuilders:m}=e;const y=Wo(t);m||(m=y?l:wj);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=Ij(t,r);if(!v)throw new Dj(`Operation ${r} not found`);const{operation:b={},method:x,pathName:w}=v,E=Bj({spec:t,scheme:s,contextUrl:a,server:u,serverVariables:p,pathName:w,method:x});if(g.url+=E,!r)return delete g.cookies,g;g.url+=w,g.method=`${x}`.toUpperCase(),d=d||{};const j=t.paths[w]||{};n&&(g.headers.accept=n);const O=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(Rj(b.parameters)).concat(Rj(j.parameters)));O.forEach((e=>{const r=m[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=d),n=e&&e.name&&d[e.name],void 0===n?n=e&&e.name&&d[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(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,baseURL:E})}}));const S={...e,operation:b};if(g=y?_j(S,g):Mj(S,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?"&":"")+ZE.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,R(g)}const qj=e=>e?e.replace(/\W/g,""):null;function Bj(e){return Wo(e.spec)?function({spec:e,pathName:t,method:r,server:n,contextUrl:s,serverVariables:i={}}){let o,a=[],c="";const l=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,u=e?.paths?.[t]?.servers,p=e?.servers;a=Uj(l)?l:Uj(u)?u:Uj(p)?p:[h],n&&(o=a.find((e=>e.url===n)),o&&(c=n));c||([o]=a,c=o.url);if(c.includes("{")){(function(e){const t=e.matchAll(/\{([^{}]+)}|([^{}]+)/g);return Array.from(t,(([,e])=>e)).filter(Boolean)})(c).forEach((e=>{if(o.variables&&o.variables[e]){const t=o.variables[e],r=i[e]||t.default,n=new RegExp(`{${qi(e)}}`,"g");c=c.replace(n,r)}}))}return function(e="",t=""){const r=Fj(e&&t?to(t,e):e),n=Fj(t),s=qj(r.protocol)||qj(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,s)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const n=Fj(r),s=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||s||qj(n.protocol)||"http",o=e.host||n.host||"",a=e.basePath||"";let c;c=i&&o?`${i}://${o+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}const Uj=e=>Array.isArray(e)&&e.length>0;const{isHttpUrl:Vj}=s,Hj=Vj;function zj(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof zj))return new zj(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,zj.makeApisTagOperation(this)),this)));return r.client=this,r}zj.http=Rr,zj.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),n=R(n),n=t(n),r(e(n)))}.bind(null,zj.http),zj.resolveStrategies={"openapi-3-1-apidom":WE,"openapi-3-0":Xo,"openapi-2-0":Yo,generic:zo},zj.resolve=Qo({strategies:[zj.resolveStrategies["openapi-3-1-apidom"],zj.resolveStrategies["openapi-3-0"],zj.resolveStrategies["openapi-2-0"],zj.resolveStrategies.generic]}),zj.resolveSubtree=ea({strategies:[zj.resolveStrategies["openapi-3-1-apidom"],zj.resolveStrategies["openapi-3-0"],zj.resolveStrategies["openapi-2-0"],zj.resolveStrategies.generic]}),zj.execute=function({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:a,...c}){const l=e||t||Rr;s&&i&&!n&&(n=Cj(s,i));const u=Nj.buildRequest({spec:r,operationId:n,parameters:o,securities:a,http:l,...c});return u.body&&(tj(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},zj.serializeRes=Ir,zj.serializeHeaders=Cr,zj.clearCache=function(){qo.refs.clearCache()},zj.makeApisTagOperation=function(e={}){const t=QE.makeExecute(e);return{apis:QE.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},zj.buildRequest=Lj,zj.helpers={opId:Uo},zj.getBaseUrl=Bj,zj.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:Ww}},parse:{parsers:{JsonParser:Xw,YamlParser:Qw,OpenApiJson3_1Parser:Zw,OpenApiYaml3_1Parser:eE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:zE}}},zj.prototype={http:Rr,execute(e){return this.applyDefaults(),zj.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return zj.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},zj.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Go(e)&&Hj(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(Wo(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[h])}};const{helpers:Gj}=zj,Jj=zj})(),n=n.default})()));
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|