swagger-client 3.25.2 → 3.25.4
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.
|
@@ -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=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),a=s("%Reflect.apply%",!0)||n.call(o,i),c=s("%Object.getOwnPropertyDescriptor%",!0),l=s("%Object.defineProperty%",!0),u=s("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(n,o,arguments);c&&l&&(c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return a(n,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},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,m,d,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,P=E?l:l[w]||p(l,w,{})[w],A=P.prototype;for(d in t)s=!(r=c(E?d:w+(j?".":"#")+d,e.forced))&&S&&h(S,d),g=P[d],s&&(v=e.dontCallGetSet?(x=a(S,d))&&x.value:S[d]),y=s&&v?v:t[d],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),O&&(h(l,m=w+"Prototype")||p(l,m,{}),p(l[m],d,y),e.real&&A&&(r||!A[d])&&p(A,d,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),m="Object already initialized",d=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw d(m);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");f[v]=!0,n=function(e,t){if(u(e,v))throw d(m);return t.facade=e,l(e,v,t),t},s=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},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,m=function(e,t){this.stopped=e,this.result=t},d=m.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),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=n(t,j),_=function(e){return y&&h(y,"normal",e),new m(!0,e)},k=function(e){return O?(i(e),A?$(e[0],e[1],_):$(e[0],e[1])):A?$(e,_):$(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw f(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=k(e[v]))&&l(d,x))return x;return new m(!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(d,x))return x}return new m(!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),m=r(6615),d=r(1113),y=r(2373),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=m("iterator"),E="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,P){c(r,t,o);var A,$,_,k=function(e){if(e===m&&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)}},I=t+" Iterator",T=!1,C=e.prototype,M=C[w]||C["@@iterator"]||m&&C[m],R=!x&&M||k(m),F="Array"===t&&C.entries||M;if(F&&(A=l(F.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[w])||f(A,w,S)),p(A,I,!0,!0),i&&(d[I]=S)),g&&m===j&&M&&M.name!==j&&(!i&&v?h(C,"name",j):(T=!0,R=function(){return s(M,this)})),m)if($={values:k(j),keys:y?R:k(E),entries:k(O)},P)for(_ in $)(x||T||!(_ in C))&&f(C,_,$[_]);else n({target:t,proto:!0,forced:x||T},$);return i&&!P||C[w]===R||f(C,w,R,{name:m}),d[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),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[m])||p(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},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)}},9383:(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"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=s(e),r=new m,m[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},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(9383),h=r(60),f=r(927),m=r(5560),d=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(!d&&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}):m&&g in w&&(l(O,w,g),l(O,w,"prepareStackTrace")),c(O,w),!d)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),m=r(9383),d=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,d,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return f(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:v})},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,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;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 d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},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},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=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=r(4039)(),h=r(24)(),f=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),m={},d="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&f&&(r=f(s.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=r(6743),w=r(9030),E=x.call(Function.call,Array.prototype.concat),j=x.call(Function.apply,Array.prototype.splice),O=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),P=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,_=function(e,t){var r,n=e;if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(y,n)){var i=y[n];if(i===m&&(i=v(n)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,A,(function(e,t,r,s){n[n.length]=r?O(s,$,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=_("%"+n+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(n=p[0],j(r,E([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var m=r[h],d=S(m,0,1),g=S(m,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),w(y,a="%"+(n+="."+m)+"%"))l=y[a];else if(null!=l){if(!(m in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var v=c(l,m);l=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[m]}else f=w(l,m),l=l[m];f&&!u&&(y[a]=l)}}return l}},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}},9030:(e,t,r)=>{"use strict";var n=r(6743);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},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,m=f?n(e.length,String):[],d=m.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,d))||m.push(y);return m}},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]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,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,d,y,g):i(e,t,x,r,d,y,g);if(!(1&r)){var S=E&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new n),y(A,$,r,d,g)}}return!!O&&(g||(g=new n),o(e,t,r,d,y,g))}},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 m=-1,d=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},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 m=1&n;if(f||(f=c),e.size!=t.size&&!m)return!1;var d=h.get(e);if(d)return d==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),m=a.get(t);if(f&&m)return f==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var 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||(d=!1)}return a.delete(e),a.delete(t),d}},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]",m="[object DataView]",d=l(n),y=l(s),g=l(i),v=l(o),b=l(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=m||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 d:return m;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),m=r(866),d=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:m,KeyValuePair:d}},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,m=Boolean.prototype.valueOf,d=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,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(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?-P(-e):P(e);if(n!==e){var s=String(n),i=v.call(t,s.length+1);return b.call(s,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var 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 q(e){return b.call(String(e),/"/g,""")}function L(e){return!("[object Array]"!==H(e)||I&&"object"==typeof e&&I in e)}function B(e){return!("[object RegExp]"!==H(e)||I&&"object"==typeof e&&I 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||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,s){var a=r||{};if(z(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!z(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return d?M(t,x):x}if("bigint"==typeof t){var E=String(t)+"n";return d?M(t,E):E}var P=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var $=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(a,n);if(void 0===s)s=[];else if(J(s,t)>=0)return"[Circular]";function F(t,r,i){if(r&&(s=S.call(s)).push(r),i){var o={depth:a.depth};return z(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,n+1,s)}return e(t,a,n+1,s)}if("function"==typeof t&&!B(t)){var V=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),W=Z(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(W.length>0?" { "+O.call(W,", ")+" }":"")}if(U(t)){var ee=k?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||k?ee:K(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+w.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+N(q(re[ne].value),"double",a);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+w.call(String(t.nodeName))+">"}if(L(t)){if(0===t.length)return"[]";var se=Z(t,F);return $&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,$)+"]":"[ "+O.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||I&&"object"==typeof e&&I in e)}(t)){var ie=Z(t,F);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ie,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+F(t.cause),ie),", ")+" }"}if("object"==typeof t&&c){if(D&&"function"==typeof t[D]&&R)return R(t,{depth:P-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var oe=[];return o&&o.call(t,(function(e,r){oe.push(F(r,t,!0)+" => "+F(e,t))})),X("Map",i.call(t),oe,$)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return u&&u.call(t,(function(e){ae.push(F(e,t))})),X("Set",l.call(t),ae,$)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==H(e)||I&&"object"==typeof e&&I in e)}(t))return K(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return K(F(A.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||I&&"object"==typeof e&&I in e)}(t))return K(m.call(t));if(function(e){return!("[object String]"!==H(e)||I&&"object"==typeof e&&I in e)}(t))return K(F(String(t)));if(!function(e){return!("[object Date]"!==H(e)||I&&"object"==typeof e&&I in e)}(t)&&!B(t)){var ce=Z(t,F),le=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!le&&I&&Object(t)===t&&I in t?v.call(H(t),8,-1):ue?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+O.call(j.call([],pe||[],ue||[]),": ")+"] ":"");return 0===ce.length?he+"{}":$?he+"{"+Q(ce,$)+"}":he+"{ "+O.call(ce,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function H(e){return d.call(e)}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return N(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):O.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=L(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=z(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(k){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||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++)T.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 m(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||l||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},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,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,u=[];if(l){if(!r.plainObjects&&s.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var p=0;r.depth>0&&null!==(a=o.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:c(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=s:"__proto__"!==l&&(o[l]=s):o={0:s}}s=o}return s}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,p),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?m="utf-8":"utf8=%26%2310003%3B"===h[r]&&(m="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var d,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(d=t.decoder(g,o.decoder,m,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(g.slice(0,b),o.decoder,m,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(l,d)?l[d]=n.combine(l[d],y):l[d]=y}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var m=h[f],d=l(m,u[m],r,"string"==typeof e);p=n.merge(p,d,r)}return!0===r.allowSparse?p:n.compact(p)}},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,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},m={},d=function e(t,r,i,o,a,l,p,h,d,y,g,v,b,x,w,E){for(var j,O=t,S=E,P=0,A=!1;void 0!==(S=S.get(m))&&!A;){var $=S.get(t);if(P+=1,void 0!==$){if($===P)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(m)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=g(O):"comma"===i&&c(O)&&(O=s.maybeMap(O,(function(e){return e instanceof Date?g(e):e}))),null===O){if(a)return p&&!x?p(r,f.encoder,w,"key",v):r;O=""}if("string"==typeof(j=O)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||s.isBuffer(O))return p?[b(x?r:p(r,f.encoder,w,"key",v))+"="+b(p(O,f.encoder,w,"value",v))]:[b(r)+"="+b(String(O))];var _,k=[];if(void 0===O)return k;if("comma"===i&&c(O))x&&p&&(O=s.maybeMap(O,p)),_=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(h))_=h;else{var I=Object.keys(O);_=d?I.sort(d):I}for(var T=o&&c(O)&&1===O.length?r+"[]":r,C=0;C<_.length;++C){var M=_[C],R="object"==typeof M&&void 0!==M.value?M.value:O[M];if(!l||null!==R){var F=c(O)?"function"==typeof i?i(T,M):T:T+(y?"."+M:"["+M+"]");E.set(t,P);var D=n();D.set(m,E),u(k,e(R,F,i,o,a,l,"comma"===i&&x&&c(O)?null:p,h,d,y,g,v,b,x,w,D))}}return k};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=f.filter;return("function"==typeof e.filter||c(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?s=(0,l.filter)("",s):c(l.filter)&&(r=l.filter);var p,h=[];if("object"!=typeof s||null===s)return"";p=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===m&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var g=n(),v=0;v<r.length;++v){var b=r[v];l.skipNulls&&null===s[b]||u(h,d(s[b],b,m,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var x=h.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},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};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],u=o[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},8068: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:()=>m});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,m=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=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=s("WeakMap.prototype.get",!0),u=s("WeakMap.prototype.set",!0),p=s("WeakMap.prototype.has",!0),h=s("Map.prototype.get",!0),f=s("Map.prototype.set",!0),m=s("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){var r=d(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return m(t,n)}else if(r)return function(e,t){return!!d(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,s)):c?(t||(t=new c),f(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},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",m="deepProps",d="deepStatics",y="deepConf",g="initializers",v="methods",b="composers",x="compose";function w(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var j=E.bind(0,(function(e,t){if(t)for(var r=w(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function O(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||O(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var A=E.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!P(n))return n;for(var s,i,o=w(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(P(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function $(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return O(e)&&r.indexOf(e)===t}))).length?r:t}function _(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,A),n(c),n(l),n(u,A),n(p),n(h),n(f,A),s(g),s(b)),e}function k(){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&&A(l,h),(h=i[o])&&j(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)O(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&A(r,n),(n=e[l])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=O(r[x])?r[x]:k,j(r[x]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(_,{}))}function I(e){return O(e)&&O(e[x])}var T={};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)}}T[v]=C(v,j),T[o]=T.props=C(o,j),T[g]=T.init=C(g,$),T[b]=C(b,$),T[a]=T[m]=C(a,A),T[l]=T.statics=C(l,j),T[u]=T[d]=C(u,A),T[h]=T.conf=C(h,j),T[f]=T[y]=C(f,A),T[c]=C(c,j),T[p]=C(p,j),n=T[x]=j((function(){for(var e,w,E=0,O=[],P=arguments,_=this;E<P.length;)S(e=P[E++])&&O.push(I(e)?e:((s={})[v]=(w=e)[v]||t,n=w.props,s[o]=S((r=w[o])||n)?j({},n,r):t,s[g]=$(w.init,w[g]),s[b]=$(w[b]),n=w[m],s[a]=S((r=w[a])||n)?A({},n,r):t,s[c]=w[c],n=w.statics,s[l]=S((r=w[l])||n)?j({},n,r):t,n=w[d],s[u]=S((r=w[u])||n)?A({},n,r):t,r=w[p],s[p]=S((n=w.name&&{name:{value:w.name}})||r)?j({},r,n):t,n=w.conf,s[h]=S((r=w[h])||n)?j({},n,r):t,n=w[y],s[f]=S((r=w[f])||n)?A({},n,r):t,s));if(e=k.apply(_||i,O),_&&O.unshift(_),Array.isArray(P=e[x][b]))for(E=0;E<P.length;)e=I(_=P[E++]({stamp:e,composables:O}))?_:e;return e}),T),T.create=function(){return this.apply(t,arguments)},(s={})[l]=T,i=k(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={},m=!0,d={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){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(m=!1)},delete:function(e){delete d.parent.node[d.key],e&&(m=!1)},remove:function(e){r(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(m=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return d;function y(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=a(d.node)),d.isLeaf=0===d.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===p){d.circular=o[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}y();var g=t.call(d,d.node);return void 0!==g&&d.update&&d.update(g),f.before&&f.before.call(d,d.node),m?("object"!=typeof d.node||null===d.node||d.circular||(o.push(d),y(),n(d.keys,(function(t,r){i.push(t),f.pre&&f.pre.call(d,d.node[t],t);var n=e(d.node[t]);s&&c.call(d.node,t)&&(d.node[t]=n.node),n.isLast=r===d.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(d,n),i.pop()})),o.pop()),f.after&&f.after.call(d,d.node),d):d}(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:()=>Gj});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Qr,_areEquals:()=>ln,applyOperation:()=>nn,applyPatch:()=>sn,applyReducer:()=>on,deepClone:()=>Zr,getValueByPointer:()=>rn,validate:()=>cn,validator:()=>an});var t={};r.r(t),r.d(t,{compare:()=>gn,generate:()=>dn,observe:()=>mn,unobserve:()=>fn});var s={};r.r(s),r.d(s,{bJ:()=>Yi,uQ:()=>zi,Zd:()=>Wi,LH:()=>Hi,isHttpUrl:()=>Ji,hd:()=>Xi,aj:()=>Qi,z9:()=>Ki,zj:()=>Zi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ga,includesClasses:()=>Ka,includesSymbols:()=>Wa,isAnnotationElement:()=>Ua,isArrayElement:()=>Na,isBooleanElement:()=>Fa,isCommentElement:()=>Va,isElement:()=>Ta,isLinkElement:()=>La,isMemberElement:()=>qa,isNullElement:()=>Ra,isNumberElement:()=>Ma,isObjectElement:()=>Da,isParseResultElement:()=>za,isPrimitiveElement:()=>Ja,isRefElement:()=>Ba,isSourceMapElement:()=>Ha,isStringElement:()=>Ca});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Qp,isJSONSchemaElement:()=>Xp,isLinkDescriptionElement:()=>eh,isMediaElement:()=>Zp});var a={};r.r(a),r.d(a,{isOpenApiExtension:()=>zh,isReferenceLikeElement:()=>Bh,isServerLikeElement:()=>Uh,isTagLikeElement:()=>Vh});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>Xf,isCallbackElement:()=>If,isComponentsElement:()=>Tf,isContactElement:()=>Cf,isExampleElement:()=>Mf,isExternalDocumentationElement:()=>Rf,isHeaderElement:()=>Ff,isInfoElement:()=>Df,isLicenseElement:()=>Nf,isLinkElement:()=>qf,isMediaTypeElement:()=>tm,isOpenApi3_0Element:()=>Bf,isOpenapiElement:()=>Lf,isOperationElement:()=>Uf,isParameterElement:()=>Vf,isPathItemElement:()=>zf,isPathsElement:()=>Hf,isReferenceElement:()=>Jf,isRequestBodyElement:()=>Gf,isResponseElement:()=>Wf,isResponsesElement:()=>Kf,isSchemaElement:()=>Yf,isSecurityRequirementElement:()=>Qf,isServerElement:()=>Zf,isServerVariableElement:()=>em,isServersElement:()=>rm});var l={};r.r(l),r.d(l,{isBooleanJsonSchemaElement:()=>Ab,isCallbackElement:()=>sb,isComponentsElement:()=>ib,isContactElement:()=>ob,isExampleElement:()=>ab,isExternalDocumentationElement:()=>cb,isHeaderElement:()=>lb,isInfoElement:()=>ub,isJsonSchemaDialectElement:()=>pb,isLicenseElement:()=>hb,isLinkElement:()=>fb,isMediaTypeElement:()=>Ib,isOpenApi3_1Element:()=>db,isOpenapiElement:()=>mb,isOperationElement:()=>yb,isParameterElement:()=>gb,isPathItemElement:()=>vb,isPathItemElementExternal:()=>bb,isPathsElement:()=>xb,isReferenceElement:()=>wb,isReferenceElementExternal:()=>Eb,isRequestBodyElement:()=>jb,isResponseElement:()=>Ob,isResponsesElement:()=>Sb,isSchemaElement:()=>Pb,isSecurityRequirementElement:()=>$b,isServerElement:()=>_b,isServerVariableElement:()=>kb});var u={};r.r(u),r.d(u,{cookie:()=>Aj,header:()=>Pj,path:()=>jj,query:()=>Oj});const p="application/json, application/yaml",h="https://swagger.io",f=Object.freeze({url:"/"});var m=r(5373),d=r.n(m);function y(e){return null==e}var g={isNothing:y,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:y(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 v(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 b(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=v(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b.prototype.toString=function(e){return this.name+": "+v(this,e)};var x=b;function w(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function E(e,t){return g.repeat(" ",t-e.length)+e}var j=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=w(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=g.repeat(" ",t.indent)+E((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=w(e.buffer,s[o],i[o],e.position,p),l+=g.repeat(" ",t.indent)+E((e.line+1).toString(),u)+" | "+c.str+"\n",l+=g.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=w(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=g.repeat(" ",t.indent)+E((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},O=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],S=["scalar","sequence","mapping"];var P=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===O.indexOf(t))throw new x('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===S.indexOf(this.kind))throw new x('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function A(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 $(e){return this.extend(e)}$.prototype.extend=function(e){var t=[],r=[];if(e instanceof P)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 x("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 P))throw new x("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new x("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 x("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 P))throw new x("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create($.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=A(n,"implicit"),n.compiledExplicit=A(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 _=$,k=new P("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),I=new P("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),T=new P("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),C=new _({explicit:[k,I,T]});var M=new P("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var R=new P("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 F(e){return 48<=e&&e<=55}function D(e){return 48<=e&&e<=57}var N=new P("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(!F(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!D(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&&!g.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"]}}),q=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var L=/^[-+]?[0-9]+e/;var B=new P("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!q.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||g.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(g.isNegativeZero(e))return"-0.0";return r=e.toString(10),L.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),U=C.extend({implicit:[M,R,N,B]}),V=U,z=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),H=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 J=new P("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==z.exec(e)||null!==H.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=z.exec(e))&&(t=H.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 G=new P("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var K=new P("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=W;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=W,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=W;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}}),Y=Object.prototype.hasOwnProperty,X=Object.prototype.toString;var Q=new P("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]"!==X.call(n))return!1;for(s in n)if(Y.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:[]}}),Z=Object.prototype.toString;var ee=new P("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]"!==Z.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}}),te=Object.prototype.hasOwnProperty;var re=new P("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(te.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),ne=V.extend({implicit:[J,G],explicit:[K,Q,ee,re]}),se=Object.prototype.hasOwnProperty,ie=1,oe=2,ae=3,ce=4,le=1,ue=2,pe=3,he=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,fe=/[\x85\u2028\u2029]/,me=/[,\[\]\{\}]/,de=/^(?:!|!!|![a-z\-]+!)$/i,ye=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ge(e){return Object.prototype.toString.call(e)}function ve(e){return 10===e||13===e}function be(e){return 9===e||32===e}function xe(e){return 9===e||32===e||10===e||13===e}function we(e){return 44===e||91===e||93===e||123===e||125===e}function Ee(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function je(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 Oe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Se=new Array(256),Pe=new Array(256),Ae=0;Ae<256;Ae++)Se[Ae]=je(Ae)?1:0,Pe[Ae]=je(Ae);function $e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||ne,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 _e(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=j(r),new x(t,r)}function ke(e,t){throw _e(e,t)}function Ie(e,t){e.onWarning&&e.onWarning.call(null,_e(e,t))}var Te={YAML:function(e,t,r){var n,s,i;null!==e.version&&ke(e,"duplication of %YAML directive"),1!==r.length&&ke(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&ke(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&ke(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Ie(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&ke(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],de.test(n)||ke(e,"ill-formed tag handle (first argument) of the TAG directive"),se.call(e.tagMap,n)&&ke(e,'there is a previously declared suffix for "'+n+'" tag handle'),ye.test(s)||ke(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){ke(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Ce(e,t,r,n){var s,i,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,i=a.length;s<i;s+=1)9===(o=a.charCodeAt(s))||32<=o&&o<=1114111||ke(e,"expected valid JSON character");else he.test(a)&&ke(e,"the stream contains non-printable characters");e.result+=a}}function Me(e,t,r,n){var s,i,o,a;for(g.isObject(r)||ke(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],se.call(t,i)||(t[i]=r[i],n[i]=!0)}function Re(e,t,r,n,s,i,o,a,c){var l,u;if(Array.isArray(s))for(l=0,u=(s=Array.prototype.slice.call(s)).length;l<u;l+=1)Array.isArray(s[l])&&ke(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===ge(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===ge(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Me(e,t,i[l],r);else Me(e,t,i,r);else e.json||se.call(r,s)||!se.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,ke(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 Fe(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):ke(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function De(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;be(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!ve(s))break;for(Fe(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&&Ie(e,"deficient indentation"),n}function Ne(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))&&!xe(t)))}function qe(e,t){1===t?e.result+=" ":t>1&&(e.result+=g.repeat("\n",t-1))}function Le(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,ke(e,"tab characters must not be used in indentation")),45===n)&&xe(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,De(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Ve(e,t,ae,!1,!0),o.push(e.result),De(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)ke(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 Be(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&ke(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)):ke(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!xe(s);)33===s&&(o?ke(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),de.test(r)||ke(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),me.test(n)&&ke(e,"tag suffix cannot contain flow indicator characters")}n&&!ye.test(n)&&ke(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){ke(e,"tag name is malformed: "+n)}return i?e.tag=n:se.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:ke(e,'undeclared tag handle "'+r+'"'),!0}function Ue(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&ke(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!xe(r)&&!we(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ke(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Ve(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,m=1,d=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=ce===r||ae===r,n&&De(e,!0,-1)&&(d=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;Be(e)||Ue(e);)De(e,!0,-1)?(d=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=d||s),1!==m&&ce!==r||(h=ie===r||oe===r?t:t+1,f=e.position-e.lineStart,1===m?a&&(Le(e,f)||function(e,t,r){var n,s,i,o,a,c,l,u=e.tag,p=e.anchor,h={},f=Object.create(null),m=null,d=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,ke(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!xe(n)){if(o=e.line,a=e.lineStart,c=e.position,!Ve(e,r,oe,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);be(l);)l=e.input.charCodeAt(++e.position);if(58===l)xe(l=e.input.charCodeAt(++e.position))||ke(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Re(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!1,s=!1,m=e.tag,d=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;ke(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;ke(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Re(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):ke(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),Ve(e,t,ce,!0,s)&&(g?d=e.result:y=e.result),g||(Re(e,h,f,m,d,y,o,a,c),m=d=y=null),De(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)ke(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Re(e,h,f,m,d,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,f,h))||function(e,t){var r,n,s,i,o,a,c,l,u,p,h,f,m=!0,d=e.tag,y=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==f)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(De(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=d,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===f&&ke(e,"expected the node content, but found ','"):ke(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&xe(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,De(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,Ve(e,t,ie,!1,!0),p=e.tag,u=e.result,De(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),De(e,!0,t),Ve(e,t,ie,!1,!0),h=e.result),l?Re(e,i,g,p,u,h,r,n,s):a?i.push(Re(e,null,g,p,u,h,r,n,s)):i.push(u),De(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}ke(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=le,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)le===a?a=43===i?pe:ue:ke(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?ke(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?ke(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(be(i)){do{i=e.input.charCodeAt(++e.position)}while(be(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ve(i)&&0!==i)}for(;0!==i;){for(Fe(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),ve(i))p++;else{if(e.lineIndent<u){a===pe?e.result+=g.repeat("\n",c?1+p:p):a===le&&c&&(e.result+="\n");break}for(n?be(i)?(h=!0,e.result+=g.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=g.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=g.repeat("\n",p):e.result+=g.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!ve(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ce(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,n,s;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Ce(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else ve(r)?(Ce(e,n,s,!0),qe(e,De(e,!1,t)),n=s=e.position):e.position===e.lineStart&&Ne(e)?ke(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);ke(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,s,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ce(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ce(e,r,e.position,!0),ve(a=e.input.charCodeAt(++e.position)))De(e,!1,t);else if(a<256&&Se[a])e.result+=Pe[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(s=o,i=0;s>0;s--)(o=Ee(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:ke(e,"expected hexadecimal character");e.result+=Oe(i),e.position++}else ke(e,"unknown escape sequence");r=n=e.position}else ve(a)?(Ce(e,r,n,!0),qe(e,De(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ne(e)?ke(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ke(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&&!xe(n)&&!we(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ke(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),se.call(e.anchorMap,r)||ke(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],De(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(xe(u=e.input.charCodeAt(e.position))||we(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)&&(xe(n=e.input.charCodeAt(e.position+1))||r&&we(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(xe(n=e.input.charCodeAt(e.position+1))||r&&we(n))break}else if(35===u){if(xe(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ne(e)||r&&we(u))break;if(ve(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,De(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ce(e,s,i,!1),qe(e,e.line-a),s=i=e.position,o=!1),be(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ce(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,ie===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||ke(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&Le(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&&ke(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(se.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||ke(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&ke(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)):ke(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 ze(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))&&(De(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&&!xe(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&ke(e,"directive name must not be less than one character in length");0!==s;){for(;be(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!ve(s));break}if(ve(s))break;for(t=e.position;0!==s&&!xe(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&Fe(e),se.call(Te,r)?Te[r](e,r,n):Ie(e,'unknown document directive "'+r+'"')}De(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,De(e,!0,-1)):o&&ke(e,"directives end mark is expected"),Ve(e,e.lineIndent-1,ce,!1,!0),De(e,!0,-1),e.checkLineBreaks&&fe.test(e.input.slice(i,e.position))&&Ie(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ne(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,De(e,!0,-1)):e.position<e.length-1&&ke(e,"end of the stream or a document separator is expected")}function He(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 $e(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,ke(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;)ze(r);return r.documents}var Je={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=He(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=He(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new x("expected a single document in the stream, but found more")}}},Ge=Object.prototype.toString,We=Object.prototype.hasOwnProperty,Ke=65279,Ye=9,Xe=10,Qe=13,Ze=32,et=33,tt=34,rt=35,nt=37,st=38,it=39,ot=42,at=44,ct=45,lt=58,ut=61,pt=62,ht=63,ft=64,mt=91,dt=93,yt=96,gt=123,vt=124,bt=125,xt={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"},wt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Et=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function jt(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 x("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+g.repeat("0",n-t.length)+t}var Ot=1,St=2;function Pt(e){this.schema=e.schema||ne,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=g.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])&&We.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?St:Ot,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 At(e,t){for(var r,n=g.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 $t(e,t){return"\n"+g.repeat(" ",e.indent*t)}function _t(e){return e===Ze||e===Ye}function kt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Ke||65536<=e&&e<=1114111}function It(e){return kt(e)&&e!==Ke&&e!==Qe&&e!==Xe}function Tt(e,t,r){var n=It(e),s=n&&!_t(e);return(r?n:n&&e!==at&&e!==mt&&e!==dt&&e!==gt&&e!==bt)&&e!==rt&&!(t===lt&&!s)||It(t)&&!_t(t)&&e===rt||t===lt&&s}function Ct(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Mt(e){return/^\n* /.test(e)}var Rt=1,Ft=2,Dt=3,Nt=4,qt=5;function Lt(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,m=-1!==n,d=-1,y=kt(l=Ct(e,0))&&l!==Ke&&!_t(l)&&l!==ct&&l!==ht&&l!==lt&&l!==at&&l!==mt&&l!==dt&&l!==gt&&l!==bt&&l!==rt&&l!==st&&l!==ot&&l!==et&&l!==vt&&l!==ut&&l!==pt&&l!==it&&l!==tt&&l!==nt&&l!==ft&&l!==yt&&function(e){return!_t(e)&&e!==lt}(Ct(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!kt(u=Ct(e,c)))return qt;y=y&&Tt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Ct(e,c))===Xe)h=!0,m&&(f=f||c-d-1>n&&" "!==e[d+1],d=c);else if(!kt(u))return qt;y=y&&Tt(u,p,a),p=u}f=f||m&&c-d-1>n&&" "!==e[d+1]}return h||f?r>9&&Mt(e)?qt:o?i===St?qt:Ft:f?Nt:Dt:!y||o||s(e)?i===St?qt:Ft:Rt}function Bt(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===St?'""':"''";if(!e.noCompatMode&&(-1!==wt.indexOf(t)||Et.test(t)))return e.quotingType===St?'"'+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(Lt(t,a,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,s)){case Rt:return t;case Ft:return"'"+t.replace(/'/g,"''")+"'";case Dt:return"|"+Ut(t,e.indent)+Vt(At(t,i));case Nt:return">"+Ut(t,e.indent)+Vt(At(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,zt(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")+zt(l,t),o=r}return i}(t,o),i));case qt:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Ct(e,s),!(t=xt[n])&&kt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||jt(n);return r}(t)+'"';default:throw new x("impossible error: invalid scalar style")}}()}function Ut(e,t){var r=Mt(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function Vt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function zt(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 Ht(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)),(Gt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Gt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=$t(e,t)),e.dump&&Xe===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Jt(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]"===Ge.call(a.represent))n=a.represent(t,c);else{if(!We.call(a.represent,c))throw new x("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function Gt(e,t,r,n,s,i,o){e.tag=null,e.dump=r,Jt(e,r,!1)||Jt(e,r,!0);var a,c=Ge.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 x("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=$t(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),Gt(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Xe===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=$t(e,t)),Gt(e,t+1,a,!0,c)&&(e.dump&&Xe===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)),Gt(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Gt(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?Ht(e,t-1,e.dump,s):Ht(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)),(Gt(e,t,i,!1,!1)||void 0===i&&Gt(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 x("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Bt(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 Wt(e,t){var r,n,s=[],i=[];for(Kt(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function Kt(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)Kt(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)Kt(e[n[s]],t,r)}function Yt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Xt=P,Qt=_,Zt=C,er=U,tr=V,rr=ne,nr=Je.load,sr=Je.loadAll,ir={dump:function(e,t){var r=new Pt(t=t||{});r.noRefs||Wt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Gt(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,or=x,ar={binary:K,float:B,map:T,null:M,pairs:ee,set:re,timestamp:J,bool:R,int:N,merge:G,omap:Q,seq:I,str:k},cr=Yt("safeLoad","load"),lr=Yt("safeLoadAll","loadAll"),ur=Yt("safeDump","dump");const pr={Type:Xt,Schema:Qt,FAILSAFE_SCHEMA:Zt,JSON_SCHEMA:er,CORE_SCHEMA:tr,DEFAULT_SCHEMA:rr,load:nr,loadAll:sr,dump:ir,YAMLException:or,types:ar,safeLoad:cr,safeLoadAll:lr,safeDump:ur},{fetch:hr,Response:fr,Headers:mr,Request:dr,FormData:yr,File:gr,Blob:vr}=globalThis;void 0===globalThis.fetch&&(globalThis.fetch=hr),void 0===globalThis.Headers&&(globalThis.Headers=mr),void 0===globalThis.Request&&(globalThis.Request=dr),void 0===globalThis.Response&&(globalThis.Response=fr),void 0===globalThis.FormData&&(globalThis.FormData=yr),void 0===globalThis.File&&(globalThis.File=gr),void 0===globalThis.Blob&&(globalThis.Blob=vr);const br=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,xr=e=>/^[a-z0-9\-._~]+$/i.test(e);function wr(e,{escape:t}={},r){return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):[...e].map((e=>{if(xr(e))return e;if(br(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join(""):e}function Er(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:n,escape:s}){const i=e=>wr(e,{escape:s});if("simple"===r)return t.map((e=>i(e))).join(",");if("label"===r)return`.${t.map((e=>i(e))).join(".")}`;if("matrix"===r)return t.map((e=>i(e))).reduce(((t,r)=>!t||n?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=n?`&${e}=`:",";return t.map((e=>i(e))).join(r)}if("spaceDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>i(e))).join(` ${r}`)}if("pipeDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>i(e))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:n,escape:s}){const i=e=>wr(e,{escape:s}),o=Object.keys(t);if("simple"===r)return o.reduce(((e,r)=>{const s=i(t[r]);return`${e?`${e},`:""}${r}${n?"=":","}${s}`}),"");if("label"===r)return o.reduce(((e,r)=>{const s=i(t[r]);return`${e?`${e}.`:"."}${r}${n?"=":"."}${s}`}),"");if("matrix"===r&&n)return o.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${i(t[r])}`),"");if("matrix"===r)return o.reduce(((r,n)=>{const s=i(t[n]);return`${r?`${r},`:`;${e}=`}${n},${s}`}),"");if("form"===r)return o.reduce(((e,r)=>{const s=i(t[r]);return`${e?`${e}${n?"&":","}`:""}${r}${n?"=":","}${s}`}),"");return}(e):function({key:e,value:t,style:r,escape:n}){const s=e=>wr(e,{escape:n});if("simple"===r)return s(t);if("label"===r)return`.${s(t)}`;if("matrix"===r)return`;${e}=${s(t)}`;if("form"===r)return s(t);if("deepObject"===r)return s(t,{},!0);return}(e)}const jr={serializeRes:Pr,mergeInQueryOrForm:Fr};async function Or(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},jr.mergeInQueryOrForm(t),t.headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await jr.serializeRes(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}const Sr=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Pr(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Ar(e.headers)},s=n.headers["content-type"],i=r||Sr(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):pr.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}function Ar(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 $r(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 _r(e,t){return Array.isArray(e)&&e.some((e=>$r(e,t)))}const kr={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Ir={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class Tr extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Cr(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($r(a)||_r(a))return[[l,a]];if(i)return Mr(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 Mr(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 Tr(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new Tr(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(Ir[n||"csv"])]]:[[l,""]]}function Mr(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=>wr(e,{escape:o}),c=r?e=>e:e=>wr(e,{escape:o});return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(kr[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 Rr(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Cr(r,e[r]))t[n]=s instanceof Tr?s.valueOf():s;return t}),{});return d().stringify(t,{encode:!1,indices:!1})||""}function Fr(e={}){const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return $r(t)||_r(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 Cr(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=Rr(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=d().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=d().stringify(e,{encode:!0})}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,Rr(r));e.url=n+o,delete e.query}return e}function Dr(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:p},credentials:s}).then((e=>e.body))}const Nr=e=>{const{baseDoc:t,url:r}=e,n=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(n,globalThis.document.baseURI)):n},qr=e=>{const{fetch:t,http:r}=e;return t||r||Or};var Lr,Br=(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)}),Ur=Object.prototype.hasOwnProperty;function Vr(e,t){return Ur.call(e,t)}function zr(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var s in e)Vr(e,s)&&n.push(s);return n}function Hr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Jr(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 Wr(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=zr(e),s=n.length,i=0;i<s;i++)if(Kr(e[n[i]]))return!0;return!1}function Yr(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 Xr=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,Yr(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=Yr(t,{name:r,index:n,operation:s,tree:i}),a}return Br(t,e),t}(Error),Qr=Xr,Zr=Hr,en={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=rn(r,this.path);n&&(n=Hr(n));var s=nn(r,{op:"remove",path:this.from}).removed;return nn(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=rn(r,this.from);return nn(r,{op:"add",path:this.path,value:Hr(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:ln(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},tn={add:function(e,t,r){return Jr(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:en.move,copy:en.copy,test:en.test,_get:en._get};function rn(e,t){if(""==t)return e;var r={op:"_get",path:t};return nn(e,r),r.value}function nn(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):an(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=rn(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=ln(e,t.value),!1===o.test)throw new Qr("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 Qr("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:an;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Wr(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&&!Jr(h))throw new Qr("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);Jr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Qr("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=tn[t.op].call(t,c,h,e)).test)throw new Qr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=en[t.op].call(t,c,h,e)).test)throw new Qr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Qr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function sn(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new Qr("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]=nn(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function on(e,t,r){var n=nn(e,t);if(!1===n.test)throw new Qr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function an(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Qr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!en[e.op])throw new Qr("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 Qr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Qr('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 Qr("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 Qr("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 Qr("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 Qr("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 Qr("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=cn([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Qr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function cn(e,t,r){try{if(!Array.isArray(e))throw new Qr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)sn(Hr(t),Hr(e),r||!0);else{r=r||an;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Qr)return e;throw e}}function ln(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(!ln(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(!ln(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var un=new WeakMap,pn=function(e){this.observers=new Map,this.obj=e},hn=function(e,t){this.callback=e,this.observer=t};function fn(e,t){t.unobserve()}function mn(e,t){var r,n=function(e){return un.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new pn(e),un.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 hn(t,r)),r}function dn(e,t){void 0===t&&(t=!1);var r=un.get(e.object);yn(r.value,e.object,e.patches,"",t),e.patches.length&&sn(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function yn(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=zr(t),o=zr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!Vr(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+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)?yn(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;Vr(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+Gr(p),value:Hr(t[p])})}}}function gn(e,t,r){void 0===r&&(r=!1);var n=[];return yn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:Xr,deepClone:Hr,escapePathComponent:Gr,unescapePathComponent:Wr});var vn=r(4744),bn=r.n(vn);const xn={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&&wn(t.path)}).op){const r=Rn(e,t.path);Object.assign(r,t.value),sn(e,[En(t.path,r)])}else if("mergeDeep"===t.op){const r=Rn(e,t.path),n=bn()(r,t.value);e=sn(e,[En(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&_n(t.value)){sn(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${wn(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Cn(t)&&(Array.isArray(t.value)||_n(t.value))&&(n={...n,...t.meta}),e=n}else if(sn(e,[t]),r.allowMetaPatches&&t.meta&&Cn(t)&&(Array.isArray(t.value)||_n(t.value))){const r={...Rn(e,t.path),...t.meta};sn(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 $n(An(Pn(e)))},normalizeArray:Pn,isPromise:function(e){return _n(e)&&kn(e.then)},forEachNew:function(e,t){try{return jn(e,Sn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return jn(e,On,t)}catch(e){return e}},isJsonPatch:In,isContextPatch:function(e){return Mn(e)&&"context"===e.type},isPatch:Mn,isMutation:Tn,isAdditiveMutation:Cn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:kn,isObject:_n,isError:function(e){return e instanceof Error}};function wn(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 jn(e,t,r){return $n(An(e.filter(Cn).map((e=>t(e.value,r,e.path)))||[]))}function On(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>On(e,t,r.concat(n)))):_n(e)?Object.keys(e).map((n=>On(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function Sn(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)=>Sn(e,t,r.concat(n))));s&&(n=n.concat(s))}else if(_n(e)){const s=Object.keys(e).map((n=>Sn(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=An(n),n}function Pn(e){return Array.isArray(e)?e:[e]}function An(e){return[].concat(...e.map((e=>Array.isArray(e)?An(e):e)))}function $n(e){return e.filter((e=>void 0!==e))}function _n(e){return e&&"object"==typeof e}function kn(e){return e&&"function"==typeof e}function In(e){if(Mn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Tn(e){return In(e)||Mn(e)&&"mutation"===e.type}function Cn(e){return Tn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Mn(e){return e&&"object"==typeof e}function Rn(e,t){try{return rn(e,t)}catch(e){return console.error(e),{}}}var Fn=r(5606);function Dn(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Nn(e){return function t(r){return 0===arguments.length||Dn(r)?t:e.apply(this,arguments)}}function qn(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Dn(r)?t:Nn((function(t){return e(r,t)}));default:return Dn(r)&&Dn(n)?t:Dn(r)?Nn((function(t){return e(t,n)})):Dn(n)?Nn((function(t){return e(r,t)})):e(r,n)}}}function Ln(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Dn(r)?t:qn((function(t,n){return e(r,t,n)}));case 2:return Dn(r)&&Dn(n)?t:Dn(r)?qn((function(t,r){return e(t,n,r)})):Dn(n)?qn((function(t,n){return e(r,t,n)})):Nn((function(t){return e(r,n,t)}));default:return Dn(r)&&Dn(n)&&Dn(s)?t:Dn(r)&&Dn(n)?qn((function(t,r){return e(t,r,s)})):Dn(r)&&Dn(s)?qn((function(t,r){return e(t,n,r)})):Dn(n)&&Dn(s)?qn((function(t,n){return e(r,t,n)})):Dn(r)?Nn((function(t){return e(t,n,s)})):Dn(n)?Nn((function(t){return e(r,t,s)})):Dn(s)?Nn((function(t){return e(r,n,t)})):e(r,n,s)}}}const Bn=Number.isInteger||function(e){return e<<0===e};function Un(e){return"[object String]"===Object.prototype.toString.call(e)}const Vn=qn((function(e,t){var r=e<0?t.length+e:e;return Un(t)?t.charAt(r):t[r]}));const zn=qn((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=Bn(r)?Vn(r,n):n[r],s+=1}return n}))}));const Hn=qn((function(e,t){return zn([e],t)[0]}));const Jn=Ln((function(e,t,r){return e(Hn(t,r))}));function Gn(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 Wn(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Kn(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function Yn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Xn="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Qn=Object.prototype.toString;const Zn=function(){return"[object Arguments]"===Qn.call(arguments)?function(e){return"[object Arguments]"===Qn.call(e)}:function(e){return Yn("callee",e)}}();var es=!{toString:null}.propertyIsEnumerable("toString"),ts=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],rs=function(){return arguments.propertyIsEnumerable("length")}(),ns=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},ss="function"!=typeof Object.keys||rs?Nn((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=rs&&Zn(e);for(t in e)!Yn(t,e)||s&&"length"===t||(n[n.length]=t);if(es)for(r=ts.length-1;r>=0;)Yn(t=ts[r],e)&&!ns(n,t)&&(n[n.length]=t),r-=1;return n})):Nn((function(e){return Object(e)!==e?[]:Object.keys(e)}));const is=ss;const os=Nn((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function as(e,t,r,n){var s=Wn(e);function i(e,t){return cs(e,t,r.slice(),n.slice())}return!Kn((function(e,t){return!Kn(i,t,e)}),Wn(t),s)}function cs(e,t,r,n){if(Xn(e,t))return!0;var s,i,o=os(e);if(o!==os(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||!Xn(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Xn(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&&as(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&as(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=is(e);if(c.length!==is(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(!Yn(p,t)||!cs(t[p],e[p],l,u))return!1;a-=1}return!0}const ls=qn((function(e,t){return cs(e,t,[],[])}));function us(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(ls(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ps(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function hs(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 fs=function(e){return(e<10?"0":"")+e};const ms="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+fs(e.getUTCMonth()+1)+"-"+fs(e.getUTCDate())+"T"+fs(e.getUTCHours())+":"+fs(e.getUTCMinutes())+":"+fs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ds(e){return function(){return!e.apply(this,arguments)}}function ys(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const gs=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function vs(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!gs(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 bs(e){return"[object Object]"===Object.prototype.toString.call(e)}const xs=function(){return this.xf["@@transducer/init"]()},ws=function(e){return this.xf["@@transducer/result"](e)};var Es=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=xs,e.prototype["@@transducer/result"]=ws,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function js(e){return function(t){return new Es(e,t)}}const Os=qn(vs(["fantasy-land/filter","filter"],js,(function(e,t){return bs(t)?ys((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},is(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 Ss=qn((function(e,t){return Os(ds(e),t)}));function Ps(e,t){var r=function(r){var n=t.concat([e]);return us(r,n)?"<Circular>":Ps(r,n)},n=function(e,t){return ps((function(t){return hs(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ps(r,e).join(", ")+"))";case"[object Array]":return"["+ps(r,e).concat(n(e,Ss((function(e){return/^\d+$/.test(e)}),is(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):hs(ms(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())+")":hs(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,is(e)).join(", ")+"}"}}const As=Nn((function(e){return Ps(e,[])}));var $s=qn((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 "+As(e));var r;return Gn(e).test(t)}));const _s=$s;function ks(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 Is(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Ts=Nn((function(e){return!!gs(e)||!!e&&("object"==typeof e&&(!Un(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Cs="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ms(e,t,r){return function(n,s,i){if(Ts(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[Cs])return r(n,s,i[Cs]());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 Rs(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 Fs=qn((function(e,t){return ks(e.length,(function(){return e.apply(t,arguments)}))}));function Ds(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 Ns(e,t,r,n){return e["@@transducer/result"](r[n](Fs(e["@@transducer/step"],e),t))}const qs=Ms(Rs,Ns,Ds);var Ls=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 Bs(e){return new Ls(e)}const Us=Ln((function(e,t,r){return qs("function"==typeof e?Bs(e):e,t,r)}));function Vs(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return gs(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const zs=Ln(Vs("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Hs=Nn(Vs("tail",zs(1,1/0)));function Js(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return ks(arguments[0].length,Us(Is,arguments[0],Hs(arguments)))}const Gs=qn((function(e,t){return null==t||t!=t?e:t}));const Ws=qn((function(e,t){if(null!=t)return Bn(e)?Vn(e,t):t[e]}));const Ks=Ln((function(e,t,r){return Gs(e,Ws(t,r))}));const Ys=Vn(-1);function Xs(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&&(!Dn(t[o])||s>=arguments.length)?c=t[o]:(c=arguments[s],s+=1),n[o]=c,Dn(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):ks(Math.max(0,i),Xs(e,n,r))}}const Qs=qn((function(e,t){return 1===e?Nn(t):ks(e,Xs(e,[],t))}));const Zs=Nn((function(e){return Qs(e.length,e)}));function ei(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ti=qn((function(e,t){return Qs(e+1,(function(){var r=arguments[e];if(null!=r&&ei(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(As(r)+' does not have a method named "'+t+'"')}))}));const ri=ti(1,"split");function ni(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return zs(0,r+1,t)}var si=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=xs,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=qs(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 ii(e){return function(t){return new si(e,t)}}const oi=qn(vs([],ii,ni));const ai=ti(1,"join");const ci=Nn((function(e){return Qs(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}))(qn(us));const li=Zs((function(e,t){return Js(ri(""),oi(ci(e)),ai(""))(t)}));function ui(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function pi(e,t,r,n){return r[n](e,t)}const hi=Ms(ys,pi,ui);var fi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=xs,e.prototype["@@transducer/result"]=ws,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const mi=qn(vs(["fantasy-land/map","map"],(function(e){return function(t){return new fi(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Qs(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return ys((function(r,n){return r[n]=e(t[n]),r}),{},is(t));default:return ps(e,t)}})));const di=qn((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))}:hi((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,mi(r,t))}),[],e)}));const yi=qn((function(e,t){var r=Qs(e,t);return Qs(e,(function(){return ys(di,mi(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const gi=Nn((function(e){return yi(e.length,e)}));const vi=gi(Nn((function(e){return!e})));const bi=Nn((function(e){return function(){return e}}));const xi=bi(void 0);const wi=ls(xi());const Ei=vi(wi);const ji=qn((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=As(e),o=r(i,As(t));return void 0!==o&&o===i?e:t}));const Oi=qn((function(e,t){return mi(Ws(e),t)}));const Si=Nn((function(e){return Qs(Us(ji,0,Oi("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 Pi=function(e,t){switch(arguments.length){case 0:return Pi;case 1:return function t(r){return 0===arguments.length?t:Xn(e,r)};default:return Xn(e,t)}};const Ai=Pi;const $i=Qs(1,Js(os,Ai("GeneratorFunction")));const _i=Qs(1,Js(os,Ai("AsyncFunction")));const ki=Si([Js(os,Ai("Function")),$i,_i]);var Ii=Ln((function(e,t,r){return r.replace(e,t)}));const Ti=Ii;const Ci=Qs(1,Js(os,Ai("RegExp")));const Mi=Ln((function(e,t,r){return e(r)?t(r):r}));const Ri=Qs(1,Js(os,Ai("String")));const Fi=Mi(Ri,Ti(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Di=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const Ni=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),Di(r,"str"),Di(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(Ci(e)?e:Fi(e),"g");return Ti(n,t,r)};var qi=Qs(3,Ni),Li=ti(2,"replaceAll");const Bi=ki(String.prototype.replaceAll)?Li:qi,Ui=()=>Jn(_s(/^win/),["platform"],Fn),Vi=e=>{try{const t=new URL(e);return li(":",t.protocol)}catch{return}},zi=(Js(Vi,Ei),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Hi=e=>{if(Fn.browser)return!1;const t=Vi(e);return wi(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Ji=e=>{const t=Vi(e);return"http"===t||"https"===t},Gi=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Ks(!1,"keepFileProtocol",t),s=Ks(Ui,"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=Bi("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Wi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Ki=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Yi=()=>{if(Fn.browser)return Ki(globalThis.location.href);const e=Fn.cwd(),t=Ys(e);return["/","\\"].includes(t)?e:e+(Ui()?"\\":"/")},Xi=(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()},Qi=e=>{if(Hi(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Ui()&&(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})(Gi(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Zi=e=>Hi(e)?Gi(e):decodeURI(e);function eo(e,t){function r(...e){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,[this.message]=e,t&&t.apply(this,e)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var to=r(6623),ro=r.n(to);const no=["properties"],so=["properties"],io=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],oo=["schema/example","items/example"];function ao(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return no.indexOf(t)>-1&&-1===so.indexOf(r)||io.indexOf(n)>-1||oo.some((e=>n.indexOf(e)>-1))}function co(e,t){const[r,n]=e.split("#"),s=t??"",i=r??"";let o;if(Ji(s))o=Xi(s,i);else{const e=Xi(h,s),t=Xi(e,i).replace(h,"");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const lo=/^([a-z]+:\/\/|\/\/)/i,uo=eo("JSONRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),po={},ho=new WeakMap,fo=[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]],mo={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(ao(i)||(e=>fo.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new uo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=xo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?vo(c,o):null}catch(t){return bo(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=ho.get(n);s||(s={},ho.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(Po).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}/${Po(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=co(e,u);return e===t?null:xn.replace(r,t)}if(null==u?(h=Oo(l),p=n.get(h),void 0===p&&(p=new uo(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=wo(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw bo(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[xn.remove(r),p];const f=co(e,u),m=xn.replace(i,p,{$$ref:f});if(u&&u!==o)return[m,xn.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 xn.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,m)||s.useCircularStructures)return m}catch(e){return null}}},yo=Object.assign(mo,{docCache:po,absoluteify:vo,clearCache:function(e){void 0!==e?delete po[e]:Object.keys(po).forEach((e=>{delete po[e]}))},JSONRefError:uo,wrapError:bo,getDoc:Eo,split:xo,extractFromDoc:wo,fetchJSON:function(e){return fetch(e,{headers:{Accept:p},loadSpec:!0}).then((e=>e.text())).then((e=>pr.load(e)))},extract:jo,jsonPointerToArray:Oo,unescapeJsonPointerToken:So}),go=yo;function vo(e,t){if(!lo.test(e)){if(!t)throw new uo(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Xi(t,e)}return e}function bo(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new uo(`Could not resolve reference: ${r}`,t,e)}function xo(e){return(e+"").split("#")}function wo(e,t){const r=po[e];if(r&&!xn.isPromise(r))try{const e=jo(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return Eo(e).then((e=>jo(t,e)))}function Eo(e){const t=po[e];return t?xn.isPromise(t)?t:Promise.resolve(t):(po[e]=yo.fetchJSON(e).then((t=>(po[e]=t,t))),po[e])}function jo(e,t){const r=Oo(e);if(r.length<1)return t;const n=xn.getIn(t,r);if(void 0===n)throw new uo(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function Oo(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(So)}function So(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Po(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const Ao=e=>!e||"/"===e||"#"===e;function $o(e,t){if(Ao(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const _o={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(ao(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 ro()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=co(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}},ko={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i={...xn.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 xn.replace(r,t)}return xn.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 xn.replace(r,s)}};class To{constructor(e){this.root=Co(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Mo(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Mo(s[n],t,r):s[n]=Co(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]=Co(null,e)),n[r]}),this.root)}}function Co(e,t){return Mo({children:{}},e,t)}function Mo(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]=Mo(r,r.value,e)})),e}const Ro=()=>{};class Fo{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 To,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),xn,{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(xn.isFunction),this.patches.push(xn.add([],this.spec)),this.patches.push(xn.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]):xn.isFunction(e)?n=e:xn.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const i={};for(const e of n.filter(xn.isAdditiveMutation))yield*o(e.value,e.path,e);function*o(n,a,c){if(xn.isObject(n)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,f=s.allowMetaPatches&&i[n.$$ref];for(const l of Object.keys(n)){const u=n[l],p=a.concat(l),m=xn.isObject(u),d=n.$$ref;if(f||m&&(s.allowMetaPatches&&d&&(i[d]=!0),yield*o(u,p,c)),!h&&l===e.key){const n=t(r,a);r&&!n||(yield e.plugin(u,l,p,s,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:xn.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){xn.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!xn.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),xn.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(xn.isContextPatch(e))return void this.setContext(e.path,e.value);xn.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=xn.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 xn.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||{},e.pluginCount[t]=(e.pluginCount[t]||0)+1,e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(Ro,Ro)))).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=xn.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const Do={refs:go,allOf:_o,parameters:ko,properties:Io},No=e=>e.replace(/\W/gi,"_");function qo(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?No(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()}${No(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function Lo(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=qo(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 Bo(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=Nr(e),h=qr(e);return function(e){p&&(Do.refs.docCache[p]=e);Do.refs.fetchJSON=Dr(h,{requestInterceptor:a,responseInterceptor:c});const t=[Do.refs];"function"==typeof o&&t.push(Do.parameters);"function"==typeof i&&t.push(Do.properties);"strict"!==r&&t.push(Do.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Fo(f).dispatch()).then(l?async e=>e:Lo);var f}(t)}const Uo={name:"generic",match:()=>!0,normalize({spec:e}){const{spec:t}=Lo({spec:e});return t},resolve:async e=>Bo(e)};const Vo=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},zo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Ho=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Jo=e=>zo(e)||Ho(e),Go={name:"openapi-2",match:({spec:e})=>Vo(e),normalize({spec:e}){const{spec:t}=Lo({spec:e});return t},resolve:async e=>async function(e){return Bo(e)}(e)};const Wo={name:"openapi-3-0",match:({spec:e})=>zo(e),normalize({spec:e}){const{spec:t}=Lo({spec:e});return t},resolve:async e=>async function(e){return Bo(e)}(e)},Ko=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=Nr(e),i=qr(e),o=t||await Dr(i,{requestInterceptor:r,responseInterceptor:n})(s),a={...e,spec:o};return e.strategies.find((e=>e.match(a))).resolve(a)})({...e,...t}),Yo=Ko({strategies:[Wo,Go,Uo]}),Xo=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 Yo({...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});Xo({strategies:[Wo,Go,Uo]});var Qo=r(4035);class Zo extends Qo.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 ea=Zo;class ta extends Qo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const ra=ta;class na extends Qo.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(wi(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const sa=na;class ia extends Qo.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 Qo.wE([e.start.row,e.start.column,e.start.char]),r=new Qo.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const oa=ia;const aa=Ln((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})Yn(n,t)&&(s[n]=Yn(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)Yn(n,r)&&!Yn(n,s)&&(s[n]=r[n]);return s}));const ca=Ln((function e(t,r,n){return aa((function(r,n,s){return bs(n)&&bs(s)?e(t,n,s):t(r,n,s)}),r,n)}));const la=qn((function(e,t){return ca((function(e,t,r){return r}),e,t)}));const ua=zs(0,-1);const pa=qn((function(e,t){return e.apply(this,t)}));const ha=vi(ki);const fa=qn((function(e,t){return e&&t}));const ma=qn((function(e,t){return ei(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:gi(fa)(e,t)}));var da=Nn((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():gs(e)?[]:Un(e)?"":bs(e)?{}:Zn(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 ya=da;const ga=Nn((function(e){return null!=e&&ls(e,ya(e))}));const va=Qs(1,ki(Array.isArray)?Array.isArray:Js(os,Ai("Array")));const ba=ma(va,ga);var xa=Qs(3,(function(e,t,r){var n=Hn(e,r),s=Hn(ua(e),r);if(!ha(n)&&!ba(e)){var i=Fs(n,s);return pa(i,t)}}));const wa=xa;function Ea(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var ja=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=xs,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=Ea(this.xf["@@transducer/step"](e,!1))),e},e}();function Oa(e){return function(t){return new ja(e,t)}}const Sa=qn(vs(["all"],Oa,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),Pa=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Aa=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,$a=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),_a=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Qo.wE)&&t.classes.includes(e),ka=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Ia=e=>e({hasMethod:Pa,hasBasicElementProps:Aa,primitiveEq:$a,isElementType:ka,hasClass:_a}),Ta=Ia((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Qo.Hg||e(r)&&t(void 0,r))),Ca=Ia((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Qo.Om||e(r)&&t("string",r))),Ma=Ia((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Qo.kT||e(r)&&t("number",r))),Ra=Ia((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Qo.Os||e(r)&&t("null",r))),Fa=Ia((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Qo.bd||e(r)&&t("boolean",r))),Da=Ia((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Qo.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Na=Ia((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Qo.wE&&!(n instanceof Qo.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),qa=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qo.Pr||e(n)&&t("member",n)&&r(void 0,n))),La=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qo.Ft||e(n)&&t("link",n)&&r(void 0,n))),Ba=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qo.sI||e(n)&&t("ref",n)&&r(void 0,n))),Ua=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ea||e(n)&&t("annotation",n)&&r("array",n))),Va=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ra||e(n)&&t("comment",n)&&r("string",n))),za=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sa||e(n)&&t("parseResult",n)&&r("array",n))),Ha=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oa||e(n)&&t("sourceMap",n)&&r("array",n))),Ja=e=>ka("object",e)||ka("array",e)||ka("boolean",e)||ka("number",e)||ka("string",e)||ka("null",e)||ka("member",e),Ga=e=>Ha(e.meta.get("sourceMap")),Wa=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Na(r)&&Sa(ci(r.toValue()),e)},Ka=(e,t)=>0===e.length||Sa(ci(t.classes.toValue()),e);const Ya=ls(null);const Xa=vi(Ya);function Qa(e){return Qa="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},Qa(e)}const Za=function(e){return"object"===Qa(e)};const ec=Qs(1,ma(Xa,Za));var tc=Js(os,Ai("Object")),rc=Js(As,ls(As(Object))),nc=Jn(ma(ki,rc),["constructor"]);const sc=Qs(1,(function(e){if(!ec(e)||!tc(e))return!1;var t=Object.getPrototypeOf(e);return!!Ya(t)||nc(t)}));class ic extends Qo.g${constructor(){super(),this.register("annotation",ea),this.register("comment",ra),this.register("parseResult",sa),this.register("sourceMap",oa)}}const oc=new ic,ac=e=>{const t=new ic;return sc(e)&&t.use(e),t},cc=oc,lc=()=>({predicates:{...i},namespace:cc});const uc=function(){return!1};var pc=r(8675);const hc=class extends pc{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 fc extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(hc,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 mc=fc;const dc=class extends mc{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},yc=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},gc={},vc=e=>null==e?void 0:e.type,bc=e=>"string"==typeof vc(e),xc=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),wc=(e,{visitFnGetter:t=yc,nodeTypeGetter:r=vc,breakSymbol:n=gc,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(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(t===n)c[l]=n;else if(void 0!==t&&t!==i)return t}}else c[l]===s&&(c[l]=a)}}},Ec=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=gc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=yc,nodeTypeGetter:c=vc,nodePredicate:l=bc,nodeCloneFn:u=xc,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=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=m,m=w.pop(),j)if(d){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,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new dc(`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=i.call(t,b,r,m,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:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(E=h[c(b)])&&void 0!==E?E:[],g=-1,v=[],m!==i&&void 0!==m&&w.push(m),m=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};Ec[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=gc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=yc,nodeTypeGetter:c=vc,nodePredicate:l=bc,nodeCloneFn:u=xc,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=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=m,m=w.pop(),j)if(d){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,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new dc(`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,m,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:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(E=h[c(b)])&&void 0!==E?E:[],g=-1,v=[],m!==i&&void 0!==m&&w.push(m),m=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};const jc=class extends dc{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Oc=class extends jc{};const Sc=class extends jc{},Pc=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Qo.KeyValuePair){const{key:t,value:s}=e,i=Ta(t)?Pc(t,n):t,o=Ta(s)?Pc(s,n):s,a=new Qo.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Qo.ot){const t=e=>Pc(e,n),s=[...e].map(t),i=new Qo.ot(s);return r.set(e,i),i}if(e instanceof Qo.G6){const t=e=>Pc(e,n),s=[...e].map(t),i=new Qo.G6(s);return r.set(e,i),i}if(Ta(e)){const t=_c(e);if(r.set(e,t),e.content)if(Ta(e.content))t.content=Pc(e.content,n);else if(e.content instanceof Qo.KeyValuePair)t.content=Pc(e.content,n);else if(Array.isArray(e.content)){const r=e=>Pc(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Oc("Value provided to cloneDeep function couldn't be cloned",{value:e})};Pc.safe=e=>{try{return Pc(e)}catch{return e}};const Ac=e=>{const{key:t,value:r}=e;return new Qo.KeyValuePair(t,r)},$c=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Pc(e.meta)),e.attributes.length>0&&(t._attributes=Pc(e.attributes)),Ta(e.content)){const r=e.content;t.content=$c(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Qo.KeyValuePair?t.content=Ac(e.content):t.content=e.content;return t},_c=e=>{if(e instanceof Qo.KeyValuePair)return Ac(e);if(e instanceof Qo.ot)return(e=>{const t=[...e];return new Qo.ot(t)})(e);if(e instanceof Qo.G6)return(e=>{const t=[...e];return new Qo.G6(t)})(e);if(Ta(e))return $c(e);throw new Sc("Value provided to cloneShallow function couldn't be cloned",{value:e})};_c.safe=e=>{try{return _c(e)}catch{return e}};const kc=e=>Da(e)?"ObjectElement":Na(e)?"ArrayElement":qa(e)?"MemberElement":Ca(e)?"StringElement":Fa(e)?"BooleanElement":Ma(e)?"NumberElement":Ra(e)?"NullElement":La(e)?"LinkElement":Ba(e)?"RefElement":void 0,Ic=e=>Ta(e)?_c(e):xc(e),Tc=Js(kc,Ri),Cc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Mc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=uc,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 Rc=(e,t,{keyMap:r=Cc,...n}={})=>Ec(e,t,{keyMap:r,nodeTypeGetter:kc,nodePredicate:Tc,nodeCloneFn:Ic,...n});Rc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Cc,...n}={})=>Ec[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:kc,nodePredicate:Tc,nodeCloneFn:Ic,...n});const Fc={toolboxCreator:lc,visitorOptions:{nodeTypeGetter:kc,exposeEdits:!0}},Dc=(e,t,r={})=>{if(0===t.length)return e;const n=la(Fc,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=wc(a.map(Ks({},"visitor")),{...i});a.forEach(wa(["pre"],[]));const l=Rc(e,c,i);return a.forEach(wa(["post"],[])),l},Nc=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Dc(n,r,{toolboxCreator:lc,visitorOptions:{nodeTypeGetter:kc}})},qc=e=>(t,r={})=>Nc(t,{...r,Type:e});Qo.Sh.refract=qc(Qo.Sh),Qo.wE.refract=qc(Qo.wE),Qo.Om.refract=qc(Qo.Om),Qo.bd.refract=qc(Qo.bd),Qo.Os.refract=qc(Qo.Os),Qo.kT.refract=qc(Qo.kT),Qo.Ft.refract=qc(Qo.Ft),Qo.sI.refract=qc(Qo.sI),ea.refract=qc(ea),ra.refract=qc(ra),sa.refract=qc(sa),oa.refract=qc(oa);const Lc=(e,t=new WeakMap)=>(qa(e)?(t.set(e.key,e),Lc(e.key,t),t.set(e.value,e),Lc(e.value,t)):e.children.forEach((r=>{t.set(r,e),Lc(r,t)})),t);const Bc=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:Lc(this.element);const n=this.edges.get(e);return wi(n)?void 0:(Da(n)?((e,t,r)=>{const n=r.get(e);Da(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(e,t,this.edges):Na(n)?((e,t,r)=>{const n=r.get(e);Na(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(e,t,this.edges):qa(n)&&((e,t,r)=>{const n=r.get(e);qa(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(e,t,this.edges),this.element)}};const Uc=function(){return!0},Vc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:kc(e),zc={EphemeralObject:["content"],EphemeralArray:["content"],...Cc},Hc=(e,t,{keyMap:r=zc,...n}={})=>Rc(e,t,{keyMap:r,nodeTypeGetter:Vc,nodePredicate:Uc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Hc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=zc,...r}={})=>Rc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Vc,nodePredicate:Uc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Jc=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 Gc=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 Wc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Gc(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 Jc(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}}const Kc=e=>Ta(e)?Ca(e)||Ma(e)||Fa(e)||Ra(e)?e.toValue():Hc(e,new Wc):e,Yc=Js(Ti(/~/g,"~0"),Ti(/\//g,"~1"),encodeURIComponent);const Xc=class extends dc{};const Qc=class extends Xc{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Zc=e=>{try{return 0===e.length?"":`/${e.map(Yc).join("/")}`}catch(t){throw new Qc("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var el=qn((function(e,t){return Qs(Us(ji,0,Oi("length",t)),(function(){var r=arguments,n=this;return e.apply(n,ps((function(e){return e.apply(n,r)}),t))}))}));const tl=el;function rl(e){return e}const nl=Nn(rl);var sl=ma(Qs(1,Js(os,Ai("Number"))),isFinite);var il=Qs(1,sl);var ol=ma(ki(Number.isFinite)?Qs(1,Fs(Number.isFinite,Number)):il,tl(ls,[Math.floor,nl]));var al=Qs(1,ol);const cl=ki(Number.isInteger)?Qs(1,Fs(Number.isInteger,Number)):al;var ll=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=xs,e.prototype["@@transducer/result"]=ws,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?Ea(r):r},e}();function ul(e){return function(t){return new ll(e,t)}}const pl=qn(vs(["take"],ul,(function(e,t){return zs(0,e<0?1/0:e,t)})));const hl=qn((function(e,t){return ls(pl(e.length,t),e)}));const fl=ls("");var ml=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=xs,e.prototype["@@transducer/result"]=ws,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 ml(e,t)}}const yl=qn(vs(["dropWhile"],dl,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return zs(r,1/0,t)})));const gl=Zs((function(e,t){return Js(ri(""),yl(ci(e)),ai(""))(t)})),vl=Js(Ti(/~1/g,"/"),Ti(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const bl=class extends Xc{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},xl=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return gl("#",t)},wl=e=>{if(fl(e))return[];if(!hl("/",e))throw new bl(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Js(ri("/"),mi(vl))(e);return Hs(t)}catch(t){throw new bl(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const El=class extends Xc{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)}},jl=(e,t)=>{let r;try{r=wl(e)}catch(r){throw new El(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Pc(t),cause:r})}return r.reduce(((t,n,s)=>{if(Da(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:Pc(t)});return t.get(n)}if(Na(t)){if(!(n in t.content)||!cl(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:Pc(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:Pc(t)})}),t)};class Ol extends Qo.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Sl=Ol;class Pl extends Qo.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=Pl;class $l extends Qo.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=$l;class kl extends Qo.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 Il=kl;class Tl extends Qo.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 Cl=Tl;class Ml extends Qo.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 Rl=Ml;class Fl extends Qo.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 Dl=Fl;class Nl extends Qo.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Qo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Qo.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(Nl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ql=Nl;class Ll extends Qo.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 Bl=Ll;class Ul extends Qo.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 Vl=Ul;class zl extends Qo.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 Ca(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ca(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=zl;class Jl extends Qo.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=Jl;class Wl extends Qo.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=Wl;class Yl extends Qo.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 Xl=Yl;class Ql extends Qo.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Zl=Ql;class eu extends Qo.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 tu=eu;class ru extends Qo.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 Qo.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 nu=ru;class su extends Qo.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 Qo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Qo.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(su.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const iu=su;class ou extends Qo.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 au=ou;class cu extends Qo.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const lu=cu;class uu extends Qo.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 pu=uu;class hu extends Qo.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 Qo.bd(!1)}set required(e){this.set("required",e)}}const fu=hu;class mu extends Qo.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=mu;class yu extends Qo.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 gu=yu;const vu=class extends mc{};class bu extends Qo.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 xu=bu;class wu extends Qo.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=wu;class ju extends Qo.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 Ou=ju;class Su extends Qo.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 Pu=Su;const Au=qn((function(e,t){return ys((function(r,n){return r[n]=e(t[n],n,t),r}),{},is(t))}));const $u=Nn((function(e){return null==e}));const _u=qn((function(e,t){if(0===e.length||$u(t))return!1;for(var r=t,n=0;n<e.length;){if($u(r)||!Yn(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));var ku=qn((function(e,t){return _u([e],t)}));const Iu=ku;const Tu=Ln((function(e,t,r){return e(Ws(t,r))})),Cu=(e,t)=>{const r=Gs(e,t);return Au((e=>{if(sc(e)&&Iu("$ref",e)&&Tu(Ri,"$ref",e)){const t=Hn(["$ref"],e),n=gl("#/",t);return Hn(n.split("/"),r)}return sc(e)?Cu(e,r):e}),e)};var Mu=r(2646);const Ru=Mu({props:{element:null},methods:{copyMetaAndAttributes(e,t){Ga(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Fu=Ru,Du=Mu(Fu,{methods:{enter(e){return this.element=Pc(e),gc}}});const Nu=bi(xi());const qu=qn((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})),Lu=Mu(Fu,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return qu(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=Hn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Jn(ki,["visitors",...e],this.specObj)?Hn(["visitors",...e],this.specObj):Hn(["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),s=Object.getPrototypeOf(n);return wi(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?Pc(t):(Rc(t,n,r),n.element)}}}),Bu=Mu(Lu,{props:{specPath:Nu,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Ca(n)&&r.includes(Kc(n))&&!this.ignoredFields.includes(Kc(n))){const r=this.toRefractedElement([...t,"fixedFields",Kc(n)],e),i=new Qo.Pr(Pc(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Kc(n))||this.element.content.push(Pc(s))})),this.copyMetaAndAttributes(e,this.element),gc}}}),Uu=Mu(Bu,Du,{props:{specPath:bi(["document","objects","JSONSchema"])},init(){this.element=new xu}}),Vu=Du,zu=Du,Hu=Du,Ju=Du,Gu=Du,Wu=Du,Ku=Du,Yu=Du,Xu=Du,Qu=Du,Zu=Mu({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ep=e=>Da(e)&&e.hasKey("$ref"),tp=Mu(Lu,Zu,Du,{methods:{ObjectElement(e){const t=ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),gc},ArrayElement(e){return this.element=new Qo.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}}),rp=Du,np=Du,sp=Du,ip=Du,op=Du,ap=Mu(Du,{methods:{ArrayElement(e){return this.element=Pc(e),this.element.classes.push("json-schema-required"),gc}}});const cp=Nn((function(e){return Qs(Us(ji,0,Oi("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 lp=qn((function(e,t){return e||t}));const up=vi(Qs(1,ma(Xa,qn((function(e,t){return ei(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:gi(lp)(e,t)}))(Za,ki))));const pp=vi(ga);const hp=cp([Ri,up,pp]),fp=Mu(Lu,{props:{fieldPatternPredicate:uc,specPath:Nu,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Kc(t))&&this.fieldPatternPredicate(Kc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Qo.Pr(Pc(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Kc(t))||this.element.content.push(Pc(r))})),this.copyMetaAndAttributes(e,this.element),gc}}}),mp=Mu(fp,{props:{fieldPatternPredicate:hp}}),dp=Mu(mp,Zu,Du,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Qo.Sh,this.element.classes.push("json-schema-properties")}}),yp=Mu(mp,Zu,Du,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Qo.Sh,this.element.classes.push("json-schema-patternProperties")}}),gp=Mu(mp,Zu,Du,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Qo.Sh,this.element.classes.push("json-schema-dependencies")}}),vp=Mu(Du,{methods:{ArrayElement(e){return this.element=Pc(e),this.element.classes.push("json-schema-enum"),gc}}}),bp=Mu(Du,{methods:{StringElement(e){return this.element=Pc(e),this.element.classes.push("json-schema-type"),gc},ArrayElement(e){return this.element=Pc(e),this.element.classes.push("json-schema-type"),gc}}}),xp=Mu(Lu,Zu,Du,{init(){this.element=new Qo.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}}),wp=Mu(Lu,Zu,Du,{init(){this.element=new Qo.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}}),Ep=Mu(Lu,Zu,Du,{init(){this.element=new Qo.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}}),jp=Mu(mp,Zu,Du,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Qo.Sh,this.element.classes.push("json-schema-definitions")}}),Op=Du,Sp=Du,Pp=Du,Ap=Du,$p=Du,_p=Mu(Lu,Zu,Du,{init(){this.element=new Qo.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),gc}}}),kp=Du,Ip=Mu(Bu,Du,{props:{specPath:bi(["document","objects","JSONReference"])},init(){this.element=new Eu},methods:{ObjectElement(e){const t=Bu.compose.methods.ObjectElement.call(this,e);return Ca(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Tp=Mu(Du,{methods:{StringElement(e){return this.element=Pc(e),this.element.classes.push("reference-value"),gc}}});const Cp=Ln((function(e,t,r){return Qs(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Mp=Nn((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Rp=qn((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Fp=Rp;const Dp=Vn(0);const Np=Nn(Ea);const qp=vi($u);const Lp=ma(va,pp);function Bp(e){return function(e){if(Array.isArray(e))return Up(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 Up(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 Up(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 Up(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 Vp=Js(Fp(Mp((function(e,t){return e.length>t.length}))),Dp,Ws("length")),zp=Zs((function(e,t,r){var n=r.apply(void 0,Bp(e));return qp(n)?Np(n):t}));const Hp=Cp(Lp,(function(e){var t=Vp(e);return Qs(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Us(zp(r),void 0,e)}))}),xi),Jp=Mu(Lu,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Cp(e,bi(t),xi))),r=Hp(t)(e);return this.element=this.toRefractedElement(r,e),gc}}}),Gp=Mu(Jp,{props:{alternator:[{predicate:ep,specPath:["document","objects","JSONReference"]},{predicate:Uc,specPath:["document","objects","JSONSchema"]}]}}),Wp={visitors:{value:Du,JSONSchemaOrJSONReferenceVisitor:Gp,document:{objects:{JSONSchema:{$visitor:Uu,fixedFields:{id:Vu,$schema:zu,multipleOf:Hu,maximum:Ju,exclusiveMaximum:Gu,minimum:Wu,exclusiveMinimum:Ku,maxLength:Yu,minLength:Xu,pattern:Qu,additionalItems:Gp,items:tp,maxItems:rp,minItems:np,uniqueItems:sp,maxProperties:ip,minProperties:op,required:ap,properties:dp,additionalProperties:Gp,patternProperties:yp,dependencies:gp,enum:vp,type:bp,allOf:xp,anyOf:wp,oneOf:Ep,not:Gp,definitions:jp,title:Op,description:Sp,default:Pp,format:Ap,base:$p,links:_p,media:{$ref:"#/visitors/document/objects/Media"},readOnly:kp}},JSONReference:{$visitor:Ip,fixedFields:{$ref:Tp}},Media:{$visitor:Mu(Bu,Du,{props:{specPath:bi(["document","objects","Media"])},init(){this.element=new Ou}}),fixedFields:{binaryEncoding:Du,type:Du}},LinkDescription:{$visitor:Mu(Bu,Du,{props:{specPath:bi(["document","objects","LinkDescription"])},init(){this.element=new Pu}}),fixedFields:{href:Du,rel:Du,title:Du,targetSchema:Gp,mediaType:Du,method:Du,encType:Du,schema:Gp}}}}}},Kp=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Yp={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Cc},Xp=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Qp=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Eu||e(n)&&t("JSONReference",n)&&r("object",n))),Zp=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ou||e(n)&&t("media",n)&&r("object",n))),eh=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pu||e(n)&&t("linkDescription",n)&&r("object",n))),th={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",xu),t.register("jSONReference",Eu),t.register("media",Ou),t.register("linkDescription",Pu),t}},rh=()=>{const e=ac(th);return{predicates:{...o,isStringElement:Ca},namespace:e}},nh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Wp}={})=>{const s=(0,Qo.e)(e),i=Cu(n),o=wa(t,[],i);return Rc(s,o,{state:{specObj:i}}),Dc(o.element,r,{toolboxCreator:rh,visitorOptions:{keyMap:Yp,nodeTypeGetter:Kp}})},sh=e=>(t,r={})=>nh(t,{specPath:e,...r});xu.refract=sh(["visitors","document","objects","JSONSchema","$visitor"]),Eu.refract=sh(["visitors","document","objects","JSONReference","$visitor"]),Ou.refract=sh(["visitors","document","objects","Media","$visitor"]),Pu.refract=sh(["visitors","document","objects","LinkDescription","$visitor"]);const ih=class extends xu{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new vu("idProp getter in Schema class is not not supported.")}set idProp(e){throw new vu("idProp setter in Schema class is not not supported.")}get $schema(){throw new vu("$schema getter in Schema class is not not supported.")}set $schema(e){throw new vu("$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 vu("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new vu("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new vu("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new vu("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 vu("definitions getter in Schema class is not not supported.")}set definitions(e){throw new vu("definitions setter in Schema class is not not supported.")}get base(){throw new vu("base getter in Schema class is not not supported.")}set base(e){throw new vu("base setter in Schema class is not not supported.")}get links(){throw new vu("links getter in Schema class is not not supported.")}set links(e){throw new vu("links setter in Schema class is not not supported.")}get media(){throw new vu("media getter in Schema class is not not supported.")}set media(e){throw new vu("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 oh extends Qo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const ah=oh;class ch extends Qo.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 lh=ch;class uh extends Qo.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=uh;class hh extends Qo.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 fh=hh;class mh extends Qo.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 dh=mh;class yh extends Qo.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 gh=yh,vh=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},bh=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:bh(r,[...t,r])},xh=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>bh(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=bh(s);for(let t of e){let e=bh(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(vh(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},wh=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Eh=(e,t)=>{const r=t.map((e=>bh(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++}},jh=(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(Eh(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==Eh(n,e)||void 0!==t[n],get:(r,n)=>(Eh(n,e)||t)[n],set(t,r,n){const s=Eh(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)))))}),Oh=null,Sh="copy",Ph="copy",Ah="deep",$h=new Map,_h=e=>$h.get(e),kh=(e,t)=>{var r,n;const s=wh([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=wh([...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},Ih=(e,t)=>{var r,n,s,i;return{property:kh(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:kh(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Th=(e,t)=>{var r,n,s,i,o,a;return{class:wh([...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:Ih(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:Ih(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ch=new Map,Mh=(...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=[...bh(e.prototype).map((e=>e.constructor)),...null!==(t=_h(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=>Ch.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Th(e,t)))},Rh=e=>{let t=Ch.get(e);return t||(t={},Ch.set(e,t)),t};function Fh(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=Oh;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)vh(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Ph?xh(s,o):(a=s,c=o,jh([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Sh?xh(e,null,["prototype"]):jh(e,Function.prototype));let l=o;if("none"!==Ah){const s="deep"===Ah?Mh(...e):((...e)=>{const t=e.map((e=>Rh(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Th(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)}Dh(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},l),Dh(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,$h.set(u,p),l}const Dh=(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 Nh=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){Ga(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}};const qh=class extends Nh{enter(e){return this.element=Pc(e),gc}};const Lh=class extends Nh{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 qu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Hn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Jn(ki,["visitors",...e],this.specObj)?Hn(["visitors",...e],this.specObj):Hn(["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 qh&&(null==n?void 0:n.constructor)===qh?Pc(t):(Rc(t,n,r),n.element)}},Bh=e=>Da(e)&&e.hasKey("$ref"),Uh=Da,Vh=Da,zh=e=>Ca(e.key)&&hl("x-",Kc(e.key));const Hh=class extends Lh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=zh;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(Ca(n)&&r.includes(Kc(n))&&!this.ignoredFields.includes(Kc(n))){const r=this.toRefractedElement([...t,"fixedFields",Kc(n)],e),i=new Qo.Pr(Pc(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(Kc(n))||this.element.content.push(Pc(s))})),this.copyMetaAndAttributes(e,this.element),gc}};class Jh extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new tu,this.specPath=bi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Hh.prototype.ObjectElement.call(this,e)}}const Gh=Jh;class Wh extends(Fh(Lh,qh)){StringElement(e){const t=new Zl(Kc(e));return this.copyMetaAndAttributes(e,t),this.element=t,gc}}const Kh=Wh;const Yh=class extends Lh{MemberElement(e){return this.element=Pc(e),this.element.classes.push("specification-extension"),gc}};class Xh extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Bl,this.specPath=bi(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Qh=Xh;const Zh=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class ef extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new _l,this.specPath=bi(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const tf=ef;class rf extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Vl,this.specPath=bi(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const nf=rf;class sf extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Hl,this.specPath=bi(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return(Ca(this.element.operationId)||Ca(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const of=sf;const af=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const cf=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const lf=class extends Lh{specPath;ignoredFields;fieldPatternPredicate=uc;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=zh;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(Kc(t))&&this.fieldPatternPredicate(Kc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Qo.Pr(Pc(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Kc(t))||this.element.content.push(Pc(r))})),this.copyMetaAndAttributes(e,this.element),gc}};const uf=class extends lf{constructor(e){super(e),this.fieldPatternPredicate=hp}};class pf extends Qo.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(pf.primaryClass)}}const hf=pf;class ff extends(Fh(uf,qh)){constructor(e){super(e),this.element=new hf,this.specPath=bi(["value"])}}const mf=ff;class df extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new ph,this.specPath=bi(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const yf=df;const gf=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class vf extends Qo.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(vf.primaryClass)}}const bf=vf;class xf extends(Fh(Lh,qh)){constructor(e){super(e),this.element=new bf}ArrayElement(e){return e.forEach((e=>{const t=Uh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}const wf=xf;class Ef extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new fh,this.specPath=bi(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const jf=Ef;class Of extends Qo.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Of.primaryClass)}}const Sf=Of;class Pf extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Sf,this.specPath=bi(["document","objects","ServerVariable"])}}const Af=Pf;class $f extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Gl,this.specPath=bi(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const _f=$f;const kf=class extends Lh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Cp(e,bi(t),xi))),r=Hp(t)(e);return this.element=this.toRefractedElement(r,e),gc}},If=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sl||e(n)&&t("callback",n)&&r("object",n))),Tf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Al||e(n)&&t("components",n)&&r("object",n))),Cf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _l||e(n)&&t("contact",n)&&r("object",n))),Mf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rl||e(n)&&t("example",n)&&r("object",n))),Rf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dl||e(n)&&t("externalDocumentation",n)&&r("object",n))),Ff=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ql||e(n)&&t("header",n)&&r("object",n))),Df=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bl||e(n)&&t("info",n)&&r("object",n))),Nf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vl||e(n)&&t("license",n)&&r("object",n))),qf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("link",n)&&r("object",n))),Lf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zl||e(n)&&t("openapi",n)&&r("string",n))),Bf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof tu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),Uf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nu||e(n)&&t("operation",n)&&r("object",n))),Vf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iu||e(n)&&t("parameter",n)&&r("object",n))),zf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof au||e(n)&&t("pathItem",n)&&r("object",n))),Hf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lu||e(n)&&t("paths",n)&&r("object",n))),Jf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pu||e(n)&&t("reference",n)&&r("object",n))),Gf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fu||e(n)&&t("requestBody",n)&&r("object",n))),Wf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof du||e(n)&&t("response",n)&&r("object",n))),Kf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gu||e(n)&&t("responses",n)&&r("object",n))),Yf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ih||e(n)&&t("schema",n)&&r("object",n))),Xf=e=>Fa(e)&&e.classes.includes("boolean-json-schema"),Qf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ah||e(n)&&t("securityRequirement",n)&&r("object",n))),Zf=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ph||e(n)&&t("server",n)&&r("object",n))),em=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fh||e(n)&&t("serverVariable",n)&&r("object",n))),tm=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("mediaType",n)&&r("object",n))),rm=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof bf||e(s)&&t("array",s)&&r("array",s)&&n("servers",s)));class nm extends(Fh(kf,qh)){constructor(e){super(e),this.alternator=[{predicate:Bh,specPath:["document","objects","Reference"]},{predicate:Uc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=kf.prototype.enter.call(this,e);return Jf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const sm=nm;class im extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Qo.Sh,this.element.classes.push("examples"),this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const om=im;class am extends Qo.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(am.primaryClass),this.classes.push("examples")}}const cm=am;const lm=class extends om{constructor(e){super(e),this.element=new cm}};class um extends Qo.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(um.primaryClass)}}const pm=um;class hm extends(Fh(uf,qh)){constructor(e){super(e),this.element=new pm,this.specPath=bi(["document","objects","Encoding"])}}const fm=hm;class mm extends(Fh(uf,qh)){constructor(e){super(e),this.element=new ah,this.specPath=bi(["value"])}}const dm=mm;class ym extends Qo.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(ym.primaryClass)}}const gm=ym;class vm extends(Fh(Lh,qh)){constructor(e){super(e),this.element=new gm}ArrayElement(e){return e.forEach((e=>{if(Da(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Pc(e))})),this.copyMetaAndAttributes(e,this.element),gc}}const bm=vm;class xm extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Al,this.specPath=bi(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const wm=xm;class Em extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new dh,this.specPath=bi(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const jm=Em;class Om extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new pu,this.specPath=bi(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Ca(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Sm=Om;const Pm=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Am extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new iu,this.specPath=bi(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Da(this.element.contentProp)&&this.element.contentProp.filter(tm).forEach(((e,t)=>{e.setMetaProperty("media-type",Kc(t))})),t}}const $m=Am;class _m extends(Fh(kf,qh)){constructor(e){super(e),this.alternator=[{predicate:Bh,specPath:["document","objects","Reference"]},{predicate:Uc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=kf.prototype.enter.call(this,e);return Jf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const km=_m;class Im extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new ql,this.specPath=bi(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Tm=Im;class Cm extends(Fh(kf,qh)){constructor(e){super(e),this.alternator=[{predicate:Bh,specPath:["document","objects","Reference"]},{predicate:Uc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=kf.prototype.enter.call(this,e);return Jf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Mm=Cm;class Rm extends Qo.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Rm.primaryClass),this.classes.push("examples")}}const Fm=Rm;const Dm=class extends om{constructor(e){super(e),this.element=new Fm}};class Nm extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Qo.Sh,this.element.classes.push("content"),this.specPath=bi(["document","objects","MediaType"])}}const qm=Nm;class Lm extends Qo.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Lm.primaryClass),this.classes.push("content")}}const Bm=Lm;const Um=class extends qm{constructor(e){super(e),this.element=new Bm}};class Vm extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new ih,this.specPath=bi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const zm=Vm,{allOf:Hm}=Wp.visitors.document.objects.JSONSchema.fixedFields,Jm=Hm.compose({methods:{ArrayElement(e){const t=Hm.compose.methods.ArrayElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Gm}=Wp.visitors.document.objects.JSONSchema.fixedFields,Wm=Gm.compose({methods:{ArrayElement(e){const t=Gm.compose.methods.ArrayElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Km}=Wp.visitors.document.objects.JSONSchema.fixedFields,Ym=Km.compose({methods:{ArrayElement(e){const t=Km.compose.methods.ArrayElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Xm}=Wp.visitors.document.objects.JSONSchema.fixedFields,Qm=Xm.compose({methods:{ObjectElement(e){const t=Xm.compose.methods.ObjectElement.call(this,e);return Jf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=Pc(e),gc}}}),{properties:Zm}=Wp.visitors.document.objects.JSONSchema.fixedFields,ed=Zm.compose({methods:{ObjectElement(e){const t=Zm.compose.methods.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:td}=Wp.visitors.document.objects.JSONSchema.fixedFields,rd=td.compose({methods:{ArrayElement(e){return this.element=Pc(e),gc}}}),{JSONSchemaOrJSONReferenceVisitor:nd}=Wp.visitors,sd=nd.compose({methods:{ObjectElement(e){const t=nd.compose.methods.enter.call(this,e);return Jf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class id extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Il,this.specPath=bi(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const od=id;class ad extends Qo.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(ad.primaryClass)}}const cd=ad;class ld extends(Fh(uf,qh)){constructor(e){super(e),this.element=new cd,this.specPath=bi(["value"])}}const ud=ld;class pd extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new gh,this.specPath=bi(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const hd=pd;class fd extends Qo.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(fd.primaryClass),this.classes.push("examples")}}const md=fd;const dd=class extends om{constructor(e){super(e),this.element=new md}};class yd extends Qo.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(yd.primaryClass),this.classes.push("content")}}const gd=yd;const vd=class extends qm{constructor(e){super(e),this.element=new gd}};class bd extends Qo.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(bd.primaryClass)}}const xd=bd;class wd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new xd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ed=wd;class jd extends Qo.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(jd.primaryClass)}}const Od=jd;class Sd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Od,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Wf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Kc(t))})),t}}const Pd=Sd;class Ad extends Qo.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ad.primaryClass),this.classes.push("parameters")}}const $d=Ad;class _d extends(Fh(uf,qh)){constructor(e){super(e),this.element=new $d,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const kd=_d;class Id extends Qo.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Id.primaryClass),this.classes.push("examples")}}const Td=Id;class Cd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Td,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Md=Cd;class Rd extends Qo.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Rd.primaryClass)}}const Fd=Rd;class Dd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Fd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Nd=Dd;class qd extends Qo.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(qd.primaryClass)}}const Ld=qd;class Bd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Ld,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Ff).forEach(((e,t)=>{e.setMetaProperty("header-name",Kc(t))})),t}}const Ud=Bd;class Vd extends Qo.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Vd.primaryClass)}}const zd=Vd;class Hd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new zd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Jd=Hd;class Gd extends Qo.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Gd.primaryClass)}}const Wd=Gd;class Kd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Wd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Yd=Kd;class Xd extends Qo.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Xd.primaryClass)}}const Qd=Xd;class Zd extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Qd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const ey=Zd;class ty extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Rl,this.specPath=bi(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Ca(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const ry=ty;const ny=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class sy extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Dl,this.specPath=bi(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const iy=sy;class oy extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Cl,this.specPath=bi(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Da(this.element.headers)&&this.element.headers.filter(Ff).forEach(((e,t)=>{e.setMetaProperty("header-name",Kc(t))})),t}}const ay=oy;class cy extends Qo.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(cy.primaryClass)}}const ly=cy;class uy extends(Fh(uf,qh)){constructor(e){super(e),this.element=new ly,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ff(e))return;const r=Kc(t);e.setMetaProperty("headerName",r)})),t}}const py=uy;class hy extends(Fh(lf,qh)){constructor(e){super(e),this.element=new lu,this.specPath=bi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Uc}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(zf).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Pc(t))})),t}}const fy=hy;class my extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new fu,this.specPath=bi(["document","objects","RequestBody"])}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Da(this.element.contentProp)&&this.element.contentProp.filter(tm).forEach(((e,t)=>{e.setMetaProperty("media-type",Kc(t))})),t}}const dy=my;class yy extends Qo.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(yy.primaryClass),this.classes.push("content")}}const gy=yy;const vy=class extends qm{constructor(e){super(e),this.element=new gy}};class by extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Sl,this.specPath=bi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(zf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Kc(t))})),t}}const xy=by;class wy extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new du,this.specPath=bi(["document","objects","Response"])}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Da(this.element.contentProp)&&this.element.contentProp.filter(tm).forEach(((e,t)=>{e.setMetaProperty("media-type",Kc(t))})),Da(this.element.headers)&&this.element.headers.filter(Ff).forEach(((e,t)=>{e.setMetaProperty("header-name",Kc(t))})),t}}const Ey=wy;class jy extends Qo.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(jy.primaryClass)}}const Oy=jy;class Sy extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Oy,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ff(e))return;const r=Kc(t);e.setMetaProperty("header-name",r)})),t}}const Py=Sy;class Ay extends Qo.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ay.primaryClass),this.classes.push("content")}}const $y=Ay;const _y=class extends qm{constructor(e){super(e),this.element=new $y}};class ky extends Qo.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(ky.primaryClass)}}const Iy=ky;class Ty extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Iy,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Cy=Ty;function My(e){return"[object Number]"===Object.prototype.toString.call(e)}var Ry=qn((function(e,t){if(!My(e)||!My(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const Fy=Ry;function Dy(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?!!us(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?!!us(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Ny=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Dy(e,!0,this)},e.prototype.has=function(e){return Dy(e,!1,this)},e}();var qy=qn((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Ny,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 Ly=qy;class By extends(Fh(Hh,lf)){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,...Ly(e.keys(),t)],Hh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,lf.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return gc}}const Uy=By;class Vy extends(Fh(Uy,qh)){constructor(e){super(e),this.element=new gu,this.specPathFixedFields=bi(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Fy(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Uy.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Wf).forEach(((e,t)=>{const r=Pc(t);this.fieldPatternPredicate(Kc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const zy=Vy;class Hy extends(Fh(kf,qh)){constructor(e){super(e),this.alternator=[{predicate:Bh,specPath:["document","objects","Reference"]},{predicate:Uc,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=kf.prototype.enter.call(this,e);return Jf(this.element)?this.element.setMetaProperty("referenced-element","response"):Wf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Jy=Hy;class Gy extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new nu,this.specPath=bi(["document","objects","Operation"])}}const Wy=Gy;class Ky extends Qo.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Ky.primaryClass)}}const Yy=Ky;const Xy=class extends qh{constructor(e){super(e),this.element=new Yy}ArrayElement(e){return this.element=this.element.concat(Pc(e)),gc}};class Qy extends Qo.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Qy.primaryClass),this.classes.push("parameters")}}const Zy=Qy;class eg extends(Fh(Lh,qh)){constructor(e){super(e),this.element=new Qo.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Bh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Jf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}const tg=eg;const rg=class extends tg{constructor(e){super(e),this.element=new Zy}};const ng=class extends kf{constructor(e){super(e),this.alternator=[{predicate:Bh,specPath:["document","objects","Reference"]},{predicate:Uc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=kf.prototype.enter.call(this,e);return Jf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class sg extends Qo.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(sg.primaryClass)}}const ig=sg;class og extends(Fh(uf,qh)){specPath;constructor(e){super(e),this.element=new ig,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const ag=og;class cg extends Qo.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(cg.primaryClass),this.classes.push("security")}}const lg=cg;class ug extends(Fh(Lh,qh)){constructor(e){super(e),this.element=new lg}ArrayElement(e){return e.forEach((e=>{const t=Da(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}const pg=ug;class hg extends Qo.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(hg.primaryClass),this.classes.push("servers")}}const fg=hg;const mg=class extends wf{constructor(e){super(e),this.element=new fg}};class dg extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new au,this.specPath=bi(["document","objects","PathItem"])}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return this.element.filter(Uf).forEach(((e,t)=>{const r=Pc(t);r.content=Kc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Ca(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const yg=dg;const gg=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class vg extends Qo.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(vg.primaryClass),this.classes.push("servers")}}const bg=vg;const xg=class extends wf{constructor(e){super(e),this.element=new bg}};class wg extends Qo.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(wg.primaryClass),this.classes.push("parameters")}}const Eg=wg;const jg=class extends tg{constructor(e){super(e),this.element=new Eg}};class Og extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new lh,this.specPath=bi(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Sg=Og;class Pg extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Xl,this.specPath=bi(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Ag=Pg;class $g extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new Kl,this.specPath=bi(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const _g=$g;class kg extends Qo.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(kg.primaryClass)}}const Ig=kg;class Tg extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Ig,this.specPath=bi(["value"])}}const Cg=Tg;class Mg extends Qo.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Mg.primaryClass)}}const Rg=Mg;class Fg extends(Fh(Lh,qh)){constructor(e){super(e),this.element=new Rg}ArrayElement(e){return e.forEach((e=>{const t=Vh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gc}}const Dg=Fg,{fixedFields:Ng}=Wp.visitors.document.objects.JSONSchema,qg={visitors:{value:qh,document:{objects:{OpenApi:{$visitor:Gh,fixedFields:{openapi:Kh,info:{$ref:"#/visitors/document/objects/Info"},servers:wf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:bm,tags:Dg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Qh,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:Zh}},Contact:{$visitor:tf,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:nf,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:yf,fixedFields:{url:gf,description:{$ref:"#/visitors/value"},variables:Af}},ServerVariable:{$visitor:jf,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:wm,fixedFields:{schemas:Ed,responses:Pd,parameters:kd,examples:Md,requestBodies:Nd,headers:Ud,securitySchemes:Jd,links:Yd,callbacks:ey}},Paths:{$visitor:fy},PathItem:{$visitor:yg,fixedFields:{$ref:gg,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:xg,parameters:jg}},Operation:{$visitor:Wy,fixedFields:{tags:Xy,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:rg,requestBody:ng,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ag,deprecated:{$ref:"#/visitors/value"},security:pg,servers:mg}},ExternalDocumentation:{$visitor:iy,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:$m,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:km,example:{$ref:"#/visitors/value"},examples:dd,content:vd}},RequestBody:{$visitor:dy,fixedFields:{description:{$ref:"#/visitors/value"},content:vy,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:_f,fixedFields:{schema:sm,example:{$ref:"#/visitors/value"},examples:lm,encoding:fm}},Encoding:{$visitor:ay,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:py,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:zy,fixedFields:{default:Jy}},Response:{$visitor:Ey,fixedFields:{description:{$ref:"#/visitors/value"},headers:Py,content:_y,links:Cy}},Callback:{$visitor:xy},Example:{$visitor:ry,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ny}},Link:{$visitor:of,fixedFields:{operationRef:af,operationId:cf,parameters:mf,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Tm,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:Mm,example:{$ref:"#/visitors/value"},examples:Dm,content:Um}},Tag:{$visitor:jm,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Sm,fixedFields:{$ref:Pm}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:zm,fixedFields:{title:Ng.title,multipleOf:Ng.multipleOf,maximum:Ng.maximum,exclusiveMaximum:Ng.exclusiveMaximum,minimum:Ng.minimum,exclusiveMinimum:Ng.exclusiveMinimum,maxLength:Ng.maxLength,minLength:Ng.minLength,pattern:Ng.pattern,maxItems:Ng.maxItems,minItems:Ng.minItems,uniqueItems:Ng.uniqueItems,maxProperties:Ng.maxProperties,minProperties:Ng.minProperties,required:Ng.required,enum:Ng.enum,type:rd,allOf:Jm,anyOf:Wm,oneOf:Ym,not:sd,items:Qm,properties:ed,additionalProperties:sd,description:Ng.description,format:Ng.format,default:Ng.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:od,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:ud}},XML:{$visitor:hd,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Sg,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:Ag,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:_g,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Cg}},SecurityRequirement:{$visitor:dm}},extension:{$visitor:Yh}}}},Lg=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Bg={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"],...Cc},Ug={namespace:e=>{const{base:t}=e;return t.register("callback",Sl),t.register("components",Al),t.register("contact",_l),t.register("discriminator",Il),t.register("encoding",Cl),t.register("example",Rl),t.register("externalDocumentation",Dl),t.register("header",ql),t.register("info",Bl),t.register("license",Vl),t.register("link",Hl),t.register("mediaType",Gl),t.register("oAuthFlow",Kl),t.register("oAuthFlows",Xl),t.register("openapi",Zl),t.register("openApi3_0",tu),t.register("operation",nu),t.register("parameter",iu),t.register("pathItem",au),t.register("paths",lu),t.register("reference",pu),t.register("requestBody",fu),t.register("response",du),t.register("responses",gu),t.register("schema",ih),t.register("securityRequirement",ah),t.register("securityScheme",lh),t.register("server",ph),t.register("serverVariable",fh),t.register("tag",dh),t.register("xml",gh),t}},Vg=()=>{const e=ac(Ug);return{predicates:{...a,...c,isStringElement:Ca},namespace:e}},zg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Qo.e)(e),s=Cu(qg),i=new(Hn(t,s))({specObj:s});return Rc(n,i),Dc(i.element,r,{toolboxCreator:Vg,visitorOptions:{keyMap:Bg,nodeTypeGetter:Lg}})},Hg=e=>(t,r={})=>zg(t,{specPath:e,...r});Sl.refract=Hg(["visitors","document","objects","Callback","$visitor"]),Al.refract=Hg(["visitors","document","objects","Components","$visitor"]),_l.refract=Hg(["visitors","document","objects","Contact","$visitor"]),Rl.refract=Hg(["visitors","document","objects","Example","$visitor"]),Il.refract=Hg(["visitors","document","objects","Discriminator","$visitor"]),Cl.refract=Hg(["visitors","document","objects","Encoding","$visitor"]),Dl.refract=Hg(["visitors","document","objects","ExternalDocumentation","$visitor"]),ql.refract=Hg(["visitors","document","objects","Header","$visitor"]),Bl.refract=Hg(["visitors","document","objects","Info","$visitor"]),Vl.refract=Hg(["visitors","document","objects","License","$visitor"]),Hl.refract=Hg(["visitors","document","objects","Link","$visitor"]),Gl.refract=Hg(["visitors","document","objects","MediaType","$visitor"]),Kl.refract=Hg(["visitors","document","objects","OAuthFlow","$visitor"]),Xl.refract=Hg(["visitors","document","objects","OAuthFlows","$visitor"]),Zl.refract=Hg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),tu.refract=Hg(["visitors","document","objects","OpenApi","$visitor"]),nu.refract=Hg(["visitors","document","objects","Operation","$visitor"]),iu.refract=Hg(["visitors","document","objects","Parameter","$visitor"]),au.refract=Hg(["visitors","document","objects","PathItem","$visitor"]),lu.refract=Hg(["visitors","document","objects","Paths","$visitor"]),pu.refract=Hg(["visitors","document","objects","Reference","$visitor"]),fu.refract=Hg(["visitors","document","objects","RequestBody","$visitor"]),du.refract=Hg(["visitors","document","objects","Response","$visitor"]),gu.refract=Hg(["visitors","document","objects","Responses","$visitor"]),ih.refract=Hg(["visitors","document","objects","Schema","$visitor"]),ah.refract=Hg(["visitors","document","objects","SecurityRequirement","$visitor"]),lh.refract=Hg(["visitors","document","objects","SecurityScheme","$visitor"]),ph.refract=Hg(["visitors","document","objects","Server","$visitor"]),fh.refract=Hg(["visitors","document","objects","ServerVariable","$visitor"]),dh.refract=Hg(["visitors","document","objects","Tag","$visitor"]),gh.refract=Hg(["visitors","document","objects","XML","$visitor"]);const Jg=class extends Sl{};const Gg=class extends Al{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Wg=class extends _l{};const Kg=class extends Il{};const Yg=class extends Cl{};const Xg=class extends Rl{};const Qg=class extends Dl{};const Zg=class extends ql{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ev=class extends Bl{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 tv extends Qo.Om{static default=new tv("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const rv=tv;const nv=class extends Vl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const sv=class extends Hl{};const iv=class extends Gl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ov=class extends Kl{};const av=class extends Xl{};const cv=class extends Zl{};class lv extends Qo.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 uv=lv;const pv=class extends nu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const hv=class extends iu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const fv=class extends au{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 mv=class extends lu{};class dv extends pu{}Object.defineProperty(dv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(dv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const yv=dv;const gv=class extends fu{};const vv=class extends du{};const bv=class extends gu{};class xv extends Qo.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 wv=xv;const Ev=class extends ah{};const jv=class extends lh{};const Ov=class extends ph{};const Sv=class extends fh{};const Pv=class extends dh{};const Av=class extends gh{};class $v extends(Fh(Hh,qh)){constructor(e){super(e),this.element=new uv,this.specPath=bi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Hh.prototype.ObjectElement.call(this,e)}}const _v=$v,{visitors:{document:{objects:{Info:{$visitor:kv}}}}}=qg;const Iv=class extends kv{constructor(e){super(e),this.element=new ev}},{visitors:{document:{objects:{Contact:{$visitor:Tv}}}}}=qg;const Cv=class extends Tv{constructor(e){super(e),this.element=new Wg}},{visitors:{document:{objects:{License:{$visitor:Mv}}}}}=qg;const Rv=class extends Mv{constructor(e){super(e),this.element=new nv}},{visitors:{document:{objects:{Link:{$visitor:Fv}}}}}=qg;const Dv=class extends Fv{constructor(e){super(e),this.element=new sv}};class Nv extends(Fh(Lh,qh)){StringElement(e){const t=new rv(Kc(e));return this.copyMetaAndAttributes(e,t),this.element=t,gc}}const qv=Nv,{visitors:{document:{objects:{Server:{$visitor:Lv}}}}}=qg;const Bv=class extends Lv{constructor(e){super(e),this.element=new Ov}},{visitors:{document:{objects:{ServerVariable:{$visitor:Uv}}}}}=qg;const Vv=class extends Uv{constructor(e){super(e),this.element=new Sv}},{visitors:{document:{objects:{MediaType:{$visitor:zv}}}}}=qg;const Hv=class extends zv{constructor(e){super(e),this.element=new iv}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:Jv}}}}}=qg;const Gv=class extends Jv{constructor(e){super(e),this.element=new Ev}},{visitors:{document:{objects:{Components:{$visitor:Wv}}}}}=qg;const Kv=class extends Wv{constructor(e){super(e),this.element=new Gg}},{visitors:{document:{objects:{Tag:{$visitor:Yv}}}}}=qg;const Xv=class extends Yv{constructor(e){super(e),this.element=new Pv}},{visitors:{document:{objects:{Reference:{$visitor:Qv}}}}}=qg;const Zv=class extends Qv{constructor(e){super(e),this.element=new yv}},{visitors:{document:{objects:{Parameter:{$visitor:eb}}}}}=qg;const tb=class extends eb{constructor(e){super(e),this.element=new hv}},{visitors:{document:{objects:{Header:{$visitor:rb}}}}}=qg;const nb=class extends rb{constructor(e){super(e),this.element=new Zg}},sb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jg||e(n)&&t("callback",n)&&r("object",n))),ib=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gg||e(n)&&t("components",n)&&r("object",n))),ob=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wg||e(n)&&t("contact",n)&&r("object",n))),ab=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xg||e(n)&&t("example",n)&&r("object",n))),cb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qg||e(n)&&t("externalDocumentation",n)&&r("object",n))),lb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zg||e(n)&&t("header",n)&&r("object",n))),ub=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ev||e(n)&&t("info",n)&&r("object",n))),pb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rv||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),hb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nv||e(n)&&t("license",n)&&r("object",n))),fb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sv||e(n)&&t("link",n)&&r("object",n))),mb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cv||e(n)&&t("openapi",n)&&r("string",n))),db=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof uv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),yb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pv||e(n)&&t("operation",n)&&r("object",n))),gb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hv||e(n)&&t("parameter",n)&&r("object",n))),vb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fv||e(n)&&t("pathItem",n)&&r("object",n))),bb=e=>{if(!vb(e))return!1;if(!Ca(e.$ref))return!1;const t=Kc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("paths",n)&&r("object",n))),wb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yv||e(n)&&t("reference",n)&&r("object",n))),Eb=e=>{if(!wb(e))return!1;if(!Ca(e.$ref))return!1;const t=Kc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},jb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gv||e(n)&&t("requestBody",n)&&r("object",n))),Ob=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vv||e(n)&&t("response",n)&&r("object",n))),Sb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("responses",n)&&r("object",n))),Pb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wv||e(n)&&t("schema",n)&&r("object",n))),Ab=e=>Fa(e)&&e.classes.includes("boolean-json-schema"),$b=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("securityRequirement",n)&&r("object",n))),_b=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ov||e(n)&&t("server",n)&&r("object",n))),kb=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sv||e(n)&&t("serverVariable",n)&&r("object",n))),Ib=Ia((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iv||e(n)&&t("mediaType",n)&&r("object",n)));const Tb=class{parent;constructor({parent:e}){this.parent=e}};class Cb extends(Fh(Hh,Tb,qh)){constructor(e){super(e),this.element=new wv,this.specPath=bi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=rv.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=Hh.prototype.ObjectElement.call(this,e);return Ca(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&&pb(this.openApiSemanticElement.jsonSchemaDialect)?Kc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ca(this.openApiGenericElement.get("jsonSchemaDialect"))?Kc(this.openApiGenericElement.get("jsonSchemaDialect")):Kc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(wi(this.parent)&&!Ca(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(Pb(this.parent)&&!Ca(e.get("$schema"))){const e=Gs(Kc(this.parent.meta.get("inherited$schema")),Kc(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Pc(this.parent.getMetaProperty("inherited$id",[])):new Qo.wE,r=Kc(e.get("$id"));hp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const Mb=Cb;const Rb=class extends qh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Fb=class extends qh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Db extends(Fh(uf,Tb,qh)){constructor(e){super(e),this.element=new Qo.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=bi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Nb=Db;class qb extends(Fh(Lh,Tb,qh)){constructor(e){super(e),this.element=new Qo.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Da(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Pc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),gc}}const Lb=qb;class Bb extends(Fh(Lh,Tb,qh)){constructor(e){super(e),this.element=new Qo.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Da(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Pc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),gc}}const Ub=Bb;class Vb extends(Fh(Lh,Tb,qh)){constructor(e){super(e),this.element=new Qo.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Da(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Pc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),gc}}const zb=Vb;class Hb extends(Fh(uf,Tb,qh)){constructor(e){super(e),this.element=new Qo.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=bi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Jb=Hb;class Gb extends(Fh(Lh,Tb,qh)){constructor(e){super(e),this.element=new Qo.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Da(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Pc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),gc}}const Wb=Gb;class Kb extends(Fh(uf,Tb,qh)){constructor(e){super(e),this.element=new Qo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=bi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Yb=Kb;class Xb extends(Fh(uf,Tb,qh)){constructor(e){super(e),this.element=new Qo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=bi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Qb=Xb;const Zb=class extends qh{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 ex=class extends qh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const tx=class extends qh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const rx=class extends qh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:nx}}}}}=qg;const sx=class extends nx{constructor(e){super(e),this.element=new Kg,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:ix}}}}}=qg;const ox=class extends ix{constructor(e){super(e),this.element=new Av}};class ax extends(Fh(uf,qh)){constructor(e){super(e),this.element=new xd,this.specPath=bi(["document","objects","Schema"])}}const cx=ax;class lx extends Qo.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(lx.primaryClass)}}const ux=lx;class px extends(Fh(uf,qh)){constructor(e){super(e),this.element=new ux,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(wb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const hx=px,{visitors:{document:{objects:{Example:{$visitor:fx}}}}}=qg;const mx=class extends fx{constructor(e){super(e),this.element=new Xg}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:dx}}}}}=qg;const yx=class extends dx{constructor(e){super(e),this.element=new Qg}},{visitors:{document:{objects:{Encoding:{$visitor:gx}}}}}=qg;const vx=class extends gx{constructor(e){super(e),this.element=new Yg}},{visitors:{document:{objects:{Paths:{$visitor:bx}}}}}=qg;const xx=class extends bx{constructor(e){super(e),this.element=new mv}},{visitors:{document:{objects:{RequestBody:{$visitor:wx}}}}}=qg;const Ex=class extends wx{constructor(e){super(e),this.element=new gv}},{visitors:{document:{objects:{Callback:{$visitor:jx}}}}}=qg;const Ox=class extends jx{constructor(e){super(e),this.element=new Jg,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=jx.prototype.ObjectElement.call(this,e);return this.element.filter(wb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:Sx}}}}}=qg;const Px=class extends Sx{constructor(e){super(e),this.element=new vv}},{visitors:{document:{objects:{Responses:{$visitor:Ax}}}}}=qg;const $x=class extends Ax{constructor(e){super(e),this.element=new bv}},{visitors:{document:{objects:{Operation:{$visitor:_x}}}}}=qg;const kx=class extends _x{constructor(e){super(e),this.element=new pv}},{visitors:{document:{objects:{PathItem:{$visitor:Ix}}}}}=qg;const Tx=class extends Ix{constructor(e){super(e),this.element=new fv}},{visitors:{document:{objects:{SecurityScheme:{$visitor:Cx}}}}}=qg;const Mx=class extends Cx{constructor(e){super(e),this.element=new jv}},{visitors:{document:{objects:{OAuthFlows:{$visitor:Rx}}}}}=qg;const Fx=class extends Rx{constructor(e){super(e),this.element=new av}},{visitors:{document:{objects:{OAuthFlow:{$visitor:Dx}}}}}=qg;const Nx=class extends Dx{constructor(e){super(e),this.element=new ov}};class qx extends Qo.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(qx.primaryClass)}}const Lx=qx;class Bx extends(Fh(uf,qh)){constructor(e){super(e),this.element=new Lx,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(wb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(vb).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Kc(t))})),t}}const Ux=Bx,Vx={visitors:{value:qg.visitors.value,document:{objects:{OpenApi:{$visitor:_v,fixedFields:{openapi:qg.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:qv,servers:qg.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Ux,components:{$ref:"#/visitors/document/objects/Components"},security:qg.visitors.document.objects.OpenApi.fixedFields.security,tags:qg.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Iv,fixedFields:{title:qg.visitors.document.objects.Info.fixedFields.title,description:qg.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:qg.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:qg.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Cv,fixedFields:{name:qg.visitors.document.objects.Contact.fixedFields.name,url:qg.visitors.document.objects.Contact.fixedFields.url,email:qg.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Rv,fixedFields:{name:qg.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:qg.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Bv,fixedFields:{url:qg.visitors.document.objects.Server.fixedFields.url,description:qg.visitors.document.objects.Server.fixedFields.description,variables:qg.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Vv,fixedFields:{enum:qg.visitors.document.objects.ServerVariable.fixedFields.enum,default:qg.visitors.document.objects.ServerVariable.fixedFields.default,description:qg.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Kv,fixedFields:{schemas:cx,responses:qg.visitors.document.objects.Components.fixedFields.responses,parameters:qg.visitors.document.objects.Components.fixedFields.parameters,examples:qg.visitors.document.objects.Components.fixedFields.examples,requestBodies:qg.visitors.document.objects.Components.fixedFields.requestBodies,headers:qg.visitors.document.objects.Components.fixedFields.headers,securitySchemes:qg.visitors.document.objects.Components.fixedFields.securitySchemes,links:qg.visitors.document.objects.Components.fixedFields.links,callbacks:qg.visitors.document.objects.Components.fixedFields.callbacks,pathItems:hx}},Paths:{$visitor:xx},PathItem:{$visitor:Tx,fixedFields:{$ref:qg.visitors.document.objects.PathItem.fixedFields.$ref,summary:qg.visitors.document.objects.PathItem.fixedFields.summary,description:qg.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:qg.visitors.document.objects.PathItem.fixedFields.servers,parameters:qg.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:kx,fixedFields:{tags:qg.visitors.document.objects.Operation.fixedFields.tags,summary:qg.visitors.document.objects.Operation.fixedFields.summary,description:qg.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:qg.visitors.document.objects.Operation.fixedFields.operationId,parameters:qg.visitors.document.objects.Operation.fixedFields.parameters,requestBody:qg.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:qg.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:qg.visitors.document.objects.Operation.fixedFields.deprecated,security:qg.visitors.document.objects.Operation.fixedFields.security,servers:qg.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:yx,fixedFields:{description:qg.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:qg.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:tb,fixedFields:{name:qg.visitors.document.objects.Parameter.fixedFields.name,in:qg.visitors.document.objects.Parameter.fixedFields.in,description:qg.visitors.document.objects.Parameter.fixedFields.description,required:qg.visitors.document.objects.Parameter.fixedFields.required,deprecated:qg.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:qg.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:qg.visitors.document.objects.Parameter.fixedFields.style,explode:qg.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:qg.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:qg.visitors.document.objects.Parameter.fixedFields.example,examples:qg.visitors.document.objects.Parameter.fixedFields.examples,content:qg.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Ex,fixedFields:{description:qg.visitors.document.objects.RequestBody.fixedFields.description,content:qg.visitors.document.objects.RequestBody.fixedFields.content,required:qg.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Hv,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:qg.visitors.document.objects.MediaType.fixedFields.example,examples:qg.visitors.document.objects.MediaType.fixedFields.examples,encoding:qg.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:vx,fixedFields:{contentType:qg.visitors.document.objects.Encoding.fixedFields.contentType,headers:qg.visitors.document.objects.Encoding.fixedFields.headers,style:qg.visitors.document.objects.Encoding.fixedFields.style,explode:qg.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:qg.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:$x,fixedFields:{default:qg.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Px,fixedFields:{description:qg.visitors.document.objects.Response.fixedFields.description,headers:qg.visitors.document.objects.Response.fixedFields.headers,content:qg.visitors.document.objects.Response.fixedFields.content,links:qg.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Ox},Example:{$visitor:mx,fixedFields:{summary:qg.visitors.document.objects.Example.fixedFields.summary,description:qg.visitors.document.objects.Example.fixedFields.description,value:qg.visitors.document.objects.Example.fixedFields.value,externalValue:qg.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Dv,fixedFields:{operationRef:qg.visitors.document.objects.Link.fixedFields.operationRef,operationId:qg.visitors.document.objects.Link.fixedFields.operationId,parameters:qg.visitors.document.objects.Link.fixedFields.parameters,requestBody:qg.visitors.document.objects.Link.fixedFields.requestBody,description:qg.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:nb,fixedFields:{description:qg.visitors.document.objects.Header.fixedFields.description,required:qg.visitors.document.objects.Header.fixedFields.required,deprecated:qg.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:qg.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:qg.visitors.document.objects.Header.fixedFields.style,explode:qg.visitors.document.objects.Header.fixedFields.explode,allowReserved:qg.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:qg.visitors.document.objects.Header.fixedFields.example,examples:qg.visitors.document.objects.Header.fixedFields.examples,content:qg.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Xv,fixedFields:{name:qg.visitors.document.objects.Tag.fixedFields.name,description:qg.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Zv,fixedFields:{$ref:qg.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:Mb,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:Rb,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:Fb,$defs:Nb,$comment:{$ref:"#/visitors/value"},allOf:Lb,anyOf:Ub,oneOf:zb,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:Jb,prefixItems:Wb,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Yb,patternProperties:Qb,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:Zb,enum:ex,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:tx,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:rx,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:sx,fixedFields:{propertyName:qg.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:qg.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:ox,fixedFields:{name:qg.visitors.document.objects.XML.fixedFields.name,namespace:qg.visitors.document.objects.XML.fixedFields.namespace,prefix:qg.visitors.document.objects.XML.fixedFields.prefix,attribute:qg.visitors.document.objects.XML.fixedFields.attribute,wrapped:qg.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Mx,fixedFields:{type:qg.visitors.document.objects.SecurityScheme.fixedFields.type,description:qg.visitors.document.objects.SecurityScheme.fixedFields.description,name:qg.visitors.document.objects.SecurityScheme.fixedFields.name,in:qg.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:qg.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:qg.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:qg.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Fx,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Nx,fixedFields:{authorizationUrl:qg.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:qg.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:qg.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:qg.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Gv}},extension:{$visitor:qg.visitors.document.extension.$visitor}}}},zx=e=>{if(Ta(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Hx={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"],...Cc},Jx={namespace:e=>{const{base:t}=e;return t.register("callback",Jg),t.register("components",Gg),t.register("contact",Wg),t.register("discriminator",Kg),t.register("encoding",Yg),t.register("example",Xg),t.register("externalDocumentation",Qg),t.register("header",Zg),t.register("info",ev),t.register("jsonSchemaDialect",rv),t.register("license",nv),t.register("link",sv),t.register("mediaType",iv),t.register("oAuthFlow",ov),t.register("oAuthFlows",av),t.register("openapi",cv),t.register("openApi3_1",uv),t.register("operation",pv),t.register("parameter",hv),t.register("pathItem",fv),t.register("paths",mv),t.register("reference",yv),t.register("requestBody",gv),t.register("response",vv),t.register("responses",bv),t.register("schema",wv),t.register("securityRequirement",Ev),t.register("securityScheme",jv),t.register("server",Ov),t.register("serverVariable",Sv),t.register("tag",Pv),t.register("xml",Av),t}},Gx=()=>{const e=ac(Jx);return{predicates:{...l,isElement:Ta,isStringElement:Ca,isArrayElement:Na,isObjectElement:Da,isMemberElement:qa,isServersElement:rm,includesClasses:Ka},namespace:e}},Wx=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Qo.e)(e),s=Cu(Vx),i=new(Hn(t,s))({specObj:s});return Rc(n,i),Dc(i.element,r,{toolboxCreator:Gx,visitorOptions:{keyMap:Hx,nodeTypeGetter:zx}})},Kx=e=>(t,r={})=>Wx(t,{specPath:e,...r});Jg.refract=Kx(["visitors","document","objects","Callback","$visitor"]),Gg.refract=Kx(["visitors","document","objects","Components","$visitor"]),Wg.refract=Kx(["visitors","document","objects","Contact","$visitor"]),Xg.refract=Kx(["visitors","document","objects","Example","$visitor"]),Kg.refract=Kx(["visitors","document","objects","Discriminator","$visitor"]),Yg.refract=Kx(["visitors","document","objects","Encoding","$visitor"]),Qg.refract=Kx(["visitors","document","objects","ExternalDocumentation","$visitor"]),Zg.refract=Kx(["visitors","document","objects","Header","$visitor"]),ev.refract=Kx(["visitors","document","objects","Info","$visitor"]),rv.refract=Kx(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),nv.refract=Kx(["visitors","document","objects","License","$visitor"]),sv.refract=Kx(["visitors","document","objects","Link","$visitor"]),iv.refract=Kx(["visitors","document","objects","MediaType","$visitor"]),ov.refract=Kx(["visitors","document","objects","OAuthFlow","$visitor"]),av.refract=Kx(["visitors","document","objects","OAuthFlows","$visitor"]),cv.refract=Kx(["visitors","document","objects","OpenApi","fixedFields","openapi"]),uv.refract=Kx(["visitors","document","objects","OpenApi","$visitor"]),pv.refract=Kx(["visitors","document","objects","Operation","$visitor"]),hv.refract=Kx(["visitors","document","objects","Parameter","$visitor"]),fv.refract=Kx(["visitors","document","objects","PathItem","$visitor"]),mv.refract=Kx(["visitors","document","objects","Paths","$visitor"]),yv.refract=Kx(["visitors","document","objects","Reference","$visitor"]),gv.refract=Kx(["visitors","document","objects","RequestBody","$visitor"]),vv.refract=Kx(["visitors","document","objects","Response","$visitor"]),bv.refract=Kx(["visitors","document","objects","Responses","$visitor"]),wv.refract=Kx(["visitors","document","objects","Schema","$visitor"]),Ev.refract=Kx(["visitors","document","objects","SecurityRequirement","$visitor"]),jv.refract=Kx(["visitors","document","objects","SecurityScheme","$visitor"]),Ov.refract=Kx(["visitors","document","objects","Server","$visitor"]),Sv.refract=Kx(["visitors","document","objects","ServerVariable","$visitor"]),Pv.refract=Kx(["visitors","document","objects","Tag","$visitor"]),Av.refract=Kx(["visitors","document","objects","XML","$visitor"]);const Yx=class extends vu{};const Xx=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Yx("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Yx("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Yx("latest method in MediaTypes class is not yet implemented.")}};class Qx extends Xx{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 Ys(this.filterByFormat(e))}}const Zx=new Qx("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"),ew=Mu({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 tw=Ln((function(e,t,r){return ls(e,Ws(t,r))})),rw=Mu({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=Ri(e)?e:e.uri;return Ei(this.find(tw(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),nw=rw,sw={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const iw=qn((function(e,t){return function(r){return function(n){return mi((function(e){return t(e,n)}),r(e(n)))}}}));var ow=Ln((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!$u(n)&&Yn(s,n)&&"object"==typeof n[s]?n[s]:Bn(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Bn(e)&&gs(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 aw=ow;var cw=function(e){return{value:e,map:function(t){return cw(t(e))}}},lw=Ln((function(e,t,r){return e((function(e){return cw(t(e))}))(r).value}));const uw=lw,pw=iw(Hn(["resolve","baseURI"]),aw(["resolve","baseURI"])),hw=e=>fl(e)?Yi():e,fw=Mu({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 Ri(this.uri)?zi(this.uri):""},toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(os(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});const mw=class extends mc{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},dw=async(e,t,r)=>{const n=await Promise.all(r.map(wa([e],[t])));return r.filter(((e,t)=>n[t]))},yw=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 mw("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const gw=class extends mc{};const vw=class extends gw{},bw=async(e,t)=>{let r=e,n=!1;if(!za(e)){const t=_c(e);t.classes.push("result"),r=new sa([t]),n=!0}const s=fw({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await dw("canDereference",s,t.dereference.strategies);if(ga(i))throw new vw(s.uri);try{const{result:e}=await yw("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new gw(`Error while dereferencing file "${s.uri}"`,{cause:e})}},xw=async(e,t={})=>{const r=((e,t)=>{const r=la(e,t);return uw(pw,hw,r)})(sw,t);return bw(e,r)};const ww=class extends mc{};const Ew=class extends ww{},jw=Mu({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 Yx("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new Yx("parse method in Parser stamp is not yet implemented.")}}}),Ow=jw,Sw=Mu(Ow,{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 sa;if(0!==r.length){const e=new Qo.Om(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}}}),Pw=Mu({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Yx("resolve method in ResolveStrategy stamp is not yet implemented.")}}});const Aw=qn((function(e,t){return Sa(ds(e),t)}));const $w=Nn((function(e){for(var t=is(e),r=t.length,n=[],s=0;s<r;)n[s]=e[t[s]],s+=1;return n}));const _w=Qs(1,Fs(Promise.all,Promise));const kw=class extends gw{};const Iw=class extends mc{};const Tw=class extends Iw{};const Cw=class extends mc{};const Mw=class extends Cw{};const Rw=class extends Iw{};const Fw=class extends Rw{},Dw=async(e,t)=>{const r=fw({uri:Qi(Ki(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 dw("canRead",e,r);if(ga(n))throw new Fw(e.uri);try{const{result:t}=await yw("read",[e],n);return t}catch(t){throw new Iw(`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 dw("canParse",e,r);if(ga(n))throw new Fw(e.uri);try{const{plugin:t,result:r}=await yw("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new ww(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new ww(`Error while parsing file "${e.uri}"`,{cause:t})}})(fw({...r,data:n}),t)},Nw=(e,t)=>{const r=new Mc({predicate:e});return Rc(t,r),new Qo.G6(r.result)};const qw=Ln((function(e,t,r){return Gs(e,Hn(t,r))})),Lw=(e,t)=>{const r=new Mc({predicate:e,returnOnTrue:gc});return Rc(t,r),qw(void 0,[0],r.result)};const Bw=class extends mc{};const Uw=class extends Bw{};const Vw=class extends Bw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},zw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Hw=e=>{const t=Wi(e);return gl("#",t)},Jw=(e,t)=>{const r=(e=>{if(!zw(e))throw new Vw(e);return e})(e),n=Lw((e=>Pb(e)&&Kc(e.$anchor)===r),t);if(wi(n))throw new Uw(`Evaluation failed on token: "${r}"`);return n},Gw=(e,t)=>{if(void 0===t.$ref)return;const r=Wi(Kc(t.$ref)),n=Kc(t.meta.get("inherited$id"));return`${Us(((e,t)=>Xi(e,Qi(Ki(t)))),e,[...n,Kc(t.$ref)])}${"#"===r?"":r}`},Ww=e=>{if(Ww.cache.has(e))return Ww.cache.get(e);const t=wv.refract(e);return Ww.cache.set(e,t),t};Ww.cache=new WeakMap;const Kw=e=>Ja(e)?Ww(e):e,Yw=(e,t)=>{const{cache:r}=Yw,n=Ki(e),s=e=>Pb(e)&&void 0!==e.$id;if(!r.has(t)){const e=Nw(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=Kc(t.meta.get("inherited$id"));return Us(((e,t)=>Xi(e,Qi(Ki(t)))),e,[...r,Kc(t.$id)])})(n,e)===n));if(wi(i))throw new Mw(`Evaluation failed on URI: "${e}"`);let o,a;return zw(Hw(e))?(o=Jw,a=Hw(e)):(o=jl,a=xl(e)),o(a,i)};Yw.cache=new WeakMap;const Xw=Rc[Symbol.for("nodejs.util.promisify.custom")],Qw=Mu({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:n=new WeakSet,options:s}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=s},methods:{toBaseURI(e){return Xi(this.reference.uri,Qi(Ki(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Tw(`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(tw(t,"uri"));const n=await Dw(Zi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=ew({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){const t=Kc(e.$ref),r=this.toBaseURI(t);if(!this.options.resolve.external&&Ki(this.reference.uri)!==r)return!1;Iu(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},PathItemElement(e){if(!Ca(e.$ref))return;const t=Kc(e.$ref),r=this.toBaseURI(t);(this.options.resolve.external||Ki(this.reference.uri)===r)&&(Iu(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e))},LinkElement(e){if(!Ca(e.operationRef)&&!Ca(e.operationId))return;const t=Kc(e.operationRef),r=this.toBaseURI(t),n=Ki(this.reference.uri)!==r;if(this.options.resolve.external||!n){if(Ca(e.operationRef)&&Ca(e.operationId))throw new mc("LinkElement operationRef and operationId are mutually exclusive.");n&&(Iu(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))}},ExampleElement(e){if(!Ca(e.externalValue))return;if(e.hasKey("value")&&Ca(e.externalValue))throw new mc("ExampleElement value and externalValue fields are mutually exclusive.");const t=Kc(e.externalValue),r=this.toBaseURI(t);(this.options.resolve.external||Ki(this.reference.uri)===r)&&(Iu(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!Ca(e.$ref))return void this.visited.add(e);const t=await this.toReference(Zi(this.reference.uri));let{uri:r}=t;const n=Gw(r,e),s=Ki(n),i=fw({uri:s}),o=Aw((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=e=>Ki(this.reference.uri)!==e;if(!Iu(s,this.crawlingMap))try{if(o||a)this.crawlingMap[s]=t;else{if(r=this.toBaseURI(Kc(n)),!this.options.resolve.external&&c(r))return void this.visited.add(e);this.crawlingMap[s]=this.toReference(Zi(n))}}catch(t){if(!(a&&t instanceof Mw))throw t;if(r=this.toBaseURI(Zi(n)),!this.options.resolve.external&&c(r))return void this.visited.add(e);this.crawlingMap[s]=this.toReference(Zi(n))}this.crawledElements.push(e)},async crawlReferenceElement(e){const t=await this.toReference(Kc(e.$ref));this.indirections.push(e);const r=xl(Kc(e.$ref));let n=jl(r,t.value.result);if(Ja(n)){const t=Kc(e.meta.get("referenced-element"));if(Bh(n))n=yv.refract(n),n.setMetaProperty("referenced-element",t);else{n=this.namespace.getElementClass(t).refract(n)}}if(this.indirections.includes(n))throw new mc("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=Qw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Xw(n,s,{keyMap:Hx,nodeTypeGetter:zx}),await s.crawl(),this.indirections.pop()},async crawlPathItemElement(e){const t=await this.toReference(Kc(e.$ref));this.indirections.push(e);const r=xl(Kc(e.$ref));let n=jl(r,t.value.result);if(Ja(n)&&(n=fv.refract(n)),this.indirections.includes(n))throw new mc("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=Qw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Xw(n,s,{keyMap:Hx,nodeTypeGetter:zx}),await s.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(Zi(this.reference.uri)),{uri:r}=t;const n=Gw(r,e),s=Ki(n),i=fw({uri:s}),o=Aw((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=e=>Ki(this.reference.uri)!==e;let l;this.indirections.push(e);try{if(o||a){l=Yw(n,Kw(t.value.result))}else{if(r=this.toBaseURI(Kc(n)),!this.options.resolve.external&&c(r))return;t=await this.toReference(Zi(n));const e=xl(n);l=Kw(jl(e,t.value.result))}}catch(e){if(!(a&&e instanceof Mw))throw e;if(zw(Hw(n))){if(r=this.toBaseURI(Kc(n)),!this.options.resolve.external&&c(r))return;t=await this.toReference(Zi(n));const e=Hw(n);l=Jw(e,Kw(t.value.result))}else{if(r=this.toBaseURI(Kc(n)),!this.options.resolve.external&&c(r))return;t=await this.toReference(Zi(n));const e=xl(n);l=Kw(jl(e,t.value.result))}}if(this.visited.add(e),this.indirections.includes(l))throw new mc("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const u=Qw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await Xw(l,u,{keyMap:Hx,nodeTypeGetter:zx}),await u.crawl(),this.indirections.pop()},async crawl(){await Js($w,_w)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)wb(e)?await this.crawlReferenceElement(e):Pb(e)?await this.crawlSchemaElement(e):vb(e)&&await this.crawlPathItemElement(e)}}}),Zw=Qw,eE=Rc[Symbol.for("nodejs.util.promisify.custom")],tE=Mu(Pw,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?Zx.includes(e.mediaType):db(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=ac(Jx),n=ew({uri:e.uri,value:e.parseResult}),s=Zw({reference:n,namespace:r,options:t}),i=nw();return i.add(n),await eE(i.rootRef.value,s,{keyMap:Hx,nodeTypeGetter:zx}),await s.crawl(),i}}}),rE=tE;function nE(e,t,r){if(r||(r=new sE),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?nE(e[i],!0,r):e[i]);return n};switch(os(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return Gn(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 sE=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}(),iE=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"]=xs,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Yn(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,nE(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function oE(e,t,r){return function(n){return new iE(e,t,r,n)}}const aE=qn(Vs("groupBy",Xs(4,[],vs([],oE,(function(e,t,r,n){var s=Bs((function(n,s){var i=r(s),o=e(Yn(i,n)?n[i]:nE(t,!1),s);return o&&o["@@transducer/reduced"]?Ea(n):(n[i]=o,n)}));return qs(s,{},n)})))((function(e,t){return e.push(t),e}),[]))),cE=e=>e.replace(/\s/g,""),lE=e=>e.replace(/\W/gi,"_"),uE=(e,t,r)=>{const n=cE(e);return n.length>0?lE(n):((e,t)=>`${lE(cE(t.toLowerCase()))}${lE(cE(e))}`)(t,r)},pE=({operationIdNormalizer:e=uE}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=aE((e=>Kc(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(Kc(e.operationId)),r=s.find((e=>Kc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Pc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=Gs("path",Kc(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(Kc(t.operationId)),o=Ys(n),a=Gs("method",Kc(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)}}}}};var hE=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=xs,e.prototype["@@transducer/result"]=ws,e.prototype["@@transducer/step"]=function(e,t){return Kn(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function fE(e){return function(t){return new hE(e,t)}}const mE=qn(vs([],fE,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)Kn(e,r=t[n],i)||(i[i.length]=r),n+=1;return i}))),dE=()=>({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)&&(Kc(t.name)===Kc(r.name)&&Kc(t.in)===Kc(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=Ys(r);if(!Array.isArray(n)||0===n.length)return;const s=qw([],["parameters","content"],e),i=mE(t,[...s,...n]);e.parameters=new Zy(i)}}}}},yE=()=>({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 lg(null===(a=t)||void 0===a?void 0:a.content))}}}}},gE=()=>({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 bf([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 bg(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 fg(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=>Pc.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",[Pc(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Pc(t.example)))}}}}}),bE=()=>({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=>Pc.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",[Pc(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Pc(t.example)))}}}}}),xE=e=>t=>{if(t?.$$normalized)return t;if(xE.cache.has(t))return xE.cache.get(t);const r=uv.refract(t),n=e(r),s=Kc(n);return xE.cache.set(t,s),s};xE.cache=new WeakMap;const wE=e=>{if(!Da(e))return e;if(e.hasKey("$$normalized"))return e;const t=[pE({operationIdNormalizer:(e,t,r)=>qo({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),dE(),yE(),gE(),vE(),bE()],r=Dc(e,t,{toolboxCreator:Gx,visitorOptions:{keyMap:Hx,nodeTypeGetter:zx}});return r.set("$$normalized",!0),r},EE=Mu({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Yx("read method in Resolver stamp is not yet implemented.")}}}),jE=Mu(EE,{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=>Ji(e.uri),async read(){throw new Yx("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new Yx("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),{AbortController:OE,AbortSignal:SE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=OE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=SE);const PE=jE.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Or,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 Rw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),AE=(e,t=cc)=>{if(Ri(e))try{return t.fromRefract(JSON.parse(e))}catch{}return sc(e)&&Iu("element",e)?t.fromRefract(e):t.toElement(e)},$E=Ow.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 Ew("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new sa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=AE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}}}),_E=Ow.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 pr.load(e.toString(),{schema:er}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new Ew("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new sa,r=e.toString();try{const e=pr.load(r,{schema:er});if(this.allowEmpty&&void 0===e)return t;const n=AE(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}}}),kE=Ow.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new Qx(...Zx.filterByFormat("generic"),...Zx.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 Ew("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new sa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=uv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}}}),IE=Ow.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new Qx(...Zx.filterByFormat("generic"),...Zx.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 pr.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new Ew("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new sa,r=e.toString();try{const e=pr.load(r,{schema:er});if(this.allowEmpty&&void 0===e)return t;const n=uv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}}}),TE=Mu({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Yx("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var CE=r(8068);const ME=class extends dc{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}},RE=Mu({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new CE({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!Ta(e))throw new ME("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ca(e.meta.id)&&!e.meta.id.equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new Qo.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()}}});RE({length:6});class FE 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 DE=Rc[Symbol.for("nodejs.util.promisify.custom")],NE=RE(),qE=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Kc(NE.identify(e))),LE=Mu({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:n,ancestors:s=new FE}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new FE(...s)},methods:{toBaseURI(e){return Xi(this.reference.uri,Qi(Ki(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Tw(`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(tw(t,"uri"));const n=await Dw(Zi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=ew({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},toAncestorLineage(e){const t=new Set(e.filter(Ta));return[new FE(...this.ancestors,t),t]},async ReferenceElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(i.includesCycle(e))return!1;const a=this.toBaseURI(Kc(e.$ref));if(!this.options.resolve.external&&Ki(this.reference.uri)!==a)return!1;const c=await this.toReference(Kc(e.$ref)),l=Xi(a,Kc(e.$ref));this.indirections.push(e);const u=xl(l);let p=jl(u,c.value.result);if(Ja(p)){const t=Kc(e.meta.get("referenced-element"));if(Bh(p))p=yv.refract(p),p.setMetaProperty("referenced-element",t);else{p=this.namespace.getElementClass(t).refract(p)}}if(this.indirections.includes(p))throw new mc("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=LE({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});p=await DE(p,h,{keyMap:Hx,nodeTypeGetter:zx}),o.delete(e),this.indirections.pop();const f=t=>{const r=_c(t);return r.setMetaProperty("ref-fields",{$ref:Kc(e.$ref),description:Kc(e.description),summary:Kc(e.summary)}),r.setMetaProperty("ref-origin",c.uri),r.setMetaProperty("ref-referencing-element-id",Pc(NE.identify(e))),Da(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),r};if(i.includes(e)||i.includes(p)){var m;const n=null!==(m=i.findItem(qE(e)))&&void 0!==m?m:f(p);return qa(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return f(p)},async PathItemElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Ca(e.$ref))return;if(i.includesCycle(e))return!1;const a=this.toBaseURI(Kc(e.$ref));if(!this.options.resolve.external&&Ki(this.reference.uri)!==a)return;const c=await this.toReference(Kc(e.$ref)),l=Xi(a,Kc(e.$ref));this.indirections.push(e);const u=xl(l);let p=jl(u,c.value.result);if(Ja(p)&&(p=fv.refract(p)),this.indirections.includes(p))throw new mc("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=LE({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});p=await DE(p,h,{keyMap:Hx,nodeTypeGetter:zx}),o.delete(e),this.indirections.pop();const f=t=>{const r=new fv([...t.content],Pc(t.meta),Pc(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Kc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Kc(e.$ref)}),r.setMetaProperty("ref-origin",c.uri),r.setMetaProperty("ref-referencing-element-id",Pc(NE.identify(e))),r};if(i.includes(e)||i.includes(p)){var m;const n=null!==(m=i.findItem(qE(e)))&&void 0!==m?m:f(p);return qa(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return f(p)},async LinkElement(e){if(!Ca(e.operationRef)&&!Ca(e.operationId))return;if(Ca(e.operationRef)&&Ca(e.operationId))throw new mc("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(Ca(e.operationRef)){var r;const n=xl(Kc(e.operationRef)),s=this.toBaseURI(Kc(e.operationRef));if(!this.options.resolve.external&&Ki(this.reference.uri)!==s)return;const i=await this.toReference(Kc(e.operationRef));t=jl(n,i.value.result),Ja(t)&&(t=pv.refract(t)),t=_c(t),t.setMetaProperty("ref-origin",i.uri);const o=_c(e);return null===(r=o.operationRef)||void 0===r||r.meta.set("operation",t),o}if(Ca(e.operationId)){var n;const r=Kc(e.operationId),s=await this.toReference(Zi(this.reference.uri));if(t=Lw((e=>yb(e)&&Ta(e.operationId)&&e.operationId.equals(r)),s.value.result),wi(t))throw new mc(`OperationElement(operationId=${r}) not found.`);const i=_c(e);return null===(n=i.operationId)||void 0===n||n.meta.set("operation",t),i}},async ExampleElement(e,t,r,n,s){const[i]=this.toAncestorLineage([...s,r]);if(!Ca(e.externalValue))return;if(i.includesCycle(e))return!1;if(e.hasKey("value")&&Ca(e.externalValue))throw new mc("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Kc(e.externalValue));if(!this.options.resolve.external&&Ki(this.reference.uri)!==o)return;const a=await this.toReference(Kc(e.externalValue)),c=_c(a.value.result);c.setMetaProperty("ref-origin",a.uri);const l=_c(e);return l.value=c,l},async SchemaElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Ca(e.$ref))return;if(i.includesCycle(e))return!1;let a=await this.toReference(Zi(this.reference.uri)),{uri:c}=a;const l=Gw(c,e),u=Ki(l),p=fw({uri:u}),h=Aw((e=>e.canRead(p)),this.options.resolve.resolvers),f=!h,m=e=>Ki(this.reference.uri)!==e;let d;this.indirections.push(e);try{if(h||f){d=Yw(l,Kw(a.value.result))}else{if(c=this.toBaseURI(Kc(l)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Zi(l));const e=xl(l);d=Kw(jl(e,a.value.result))}}catch(e){if(!(f&&e instanceof Mw))throw e;if(zw(Hw(l))){if(c=this.toBaseURI(Kc(l)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Zi(l));const e=Hw(l);d=Jw(e,Kw(a.value.result))}else{if(c=this.toBaseURI(Kc(l)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Zi(l));const e=xl(l);d=Kw(jl(e,a.value.result))}}if(this.indirections.includes(d))throw new mc("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const y=LE({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});if(d=await DE(d,y,{keyMap:Hx,nodeTypeGetter:zx}),o.delete(e),this.indirections.pop(),Ab(d)){const t=Pc(d);return t.setMetaProperty("ref-fields",{$ref:Kc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Pc(NE.identify(e))),t}const g=t=>{const r=new wv([...t.content],Pc(t.meta),Pc(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Kc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Kc(e.$ref)}),r.setMetaProperty("ref-origin",a.uri),r.setMetaProperty("ref-referencing-element-id",Pc(NE.identify(e))),r};if(i.includes(e)||i.includes(d)){var v;const n=null!==(v=i.findItem(qE(e)))&&void 0!==v?v:g(d);return qa(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return g(d)}}}),BE=LE,UE=Rc[Symbol.for("nodejs.util.promisify.custom")],VE=Mu(TE,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?Zx.includes(e.mediaType):db(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=ac(Jx),n=Gs(nw(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(tw(e.uri,"uri")):(s=ew({uri:e.uri,value:e.parseResult}),n.add(s));const i=BE({reference:s,namespace:r,options:t}),o=await UE(n.rootRef.value,i,{keyMap:Hx,nodeTypeGetter:zx});return null===t.dereference.refSet&&n.clean(),o}}}),zE=VE,HE=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(qa(r)){const t=String(Kc(r.key));e.push(t)}else if(Na(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},JE=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},GE=eo("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:WE}=go,KE=Rc[Symbol.for("nodejs.util.promisify.custom")],YE=RE(),XE=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Kc(YE.identify(e))),QE=BE.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{const[n,i]=this.toAncestorLineage([...s,r]);if(Ka(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&Eb(e))return!1;const o=await this.toReference(Kc(e.$ref)),{uri:a}=o,c=Xi(a,Kc(e.$ref));this.indirections.push(e);const l=xl(c);let u=jl(l,o.value.result);if(Ja(u)){const t=Kc(e.meta.get("referenced-element"));if(Bh(u))u=yv.refract(u),u.setMetaProperty("referenced-element",t);else{u=this.namespace.getElementClass(t).refract(u)}}if(this.indirections.includes(u))throw new mc("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u)){if(Ji(a)||Hi(a)){const t=new yv({$ref:c},Pc(e.meta),Pc(e.attributes));return t.get("$ref").classes.push("cycle"),t}return!1}}i.add(e);const p=QE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...HE([...s,r,e]),"$ref"]});u=await KE(u,p,{keyMap:Hx,nodeTypeGetter:zx}),i.delete(e),this.indirections.pop();const h=t=>{const r=_c(t);if(r.setMetaProperty("ref-fields",{$ref:Kc(e.$ref),description:Kc(e.description),summary:Kc(e.summary)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",Pc(YE.identify(e))),Da(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),this.allowMetaPatches&&Da(r)&&!r.hasKey("$$ref")){const e=Xi(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(u)){const s=n.findItem(XE(e))??h(u);return qa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(u)}catch(t){const n=JE(t),i=WE(n,{baseDoc:this.reference.uri,$ref:Kc(e.$ref),pointer:xl(Kc(e.$ref)),fullPath:this.basePath??[...HE([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Ca(e.$ref))return;if(Ka(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&bb(e))return;const o=await this.toReference(Kc(e.$ref)),{uri:a}=o,c=Xi(a,Kc(e.$ref));this.indirections.push(e);const l=xl(c);let u=jl(l,o.value.result);if(Ja(u)&&(u=fv.refract(u)),this.indirections.includes(u))throw new mc("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u)){if(Ji(a)||Hi(a)){const t=new fv({$ref:c},Pc(e.meta),Pc(e.attributes));return t.get("$ref").classes.push("cycle"),t}return!1}}i.add(e);const p=QE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...HE([...s,r,e]),"$ref"]});u=await KE(u,p,{keyMap:Hx,nodeTypeGetter:zx}),i.delete(e),this.indirections.pop();const h=t=>{const r=new fv([...t.content],Pc(t.meta),Pc(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Kc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Kc(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",Pc(YE.identify(e))),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=Xi(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(u)){const s=n.findItem(XE(e))??h(u);return qa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(u)}catch(t){const n=JE(t),i=WE(n,{baseDoc:this.reference.uri,$ref:Kc(e.$ref),pointer:xl(Kc(e.$ref)),fullPath:this.basePath??[...HE([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Ca(e.$ref))return;if(Ka(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;let o=await this.toReference(Zi(this.reference.uri)),{uri:a}=o;const c=Gw(a,e),l=Ki(c),u=fw({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p,f=h&&a!==l;if(!this.options.resolve.external&&f)return;let m;this.indirections.push(e);try{if(p||h){m=Yw(c,Kw(o.value.result))}else{o=await this.toReference(Zi(c)),a=o.uri;const e=xl(c);m=Kw(jl(e,o.value.result))}}catch(e){if(!(h&&e instanceof Mw))throw e;if(zw(Hw(c))){o=await this.toReference(Zi(c)),a=o.uri;const e=Hw(c);m=Jw(e,Kw(o.value.result))}else{o=await this.toReference(Zi(c)),a=o.uri;const e=xl(c);m=Kw(jl(e,o.value.result))}}if(this.indirections.includes(m))throw new mc("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new kw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(m)){if(Ji(a)||Hi(a)){const t=Xi(a,c),r=new wv({$ref:t},Pc(e.meta),Pc(e.attributes));return r.get("$ref").classes.push("cycle"),r}return!1}}i.add(e);const d=QE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...HE([...s,r,e]),"$ref"]});if(m=await KE(m,d,{keyMap:Hx,nodeTypeGetter:zx}),i.delete(e),this.indirections.pop(),Ab(m)){const t=Pc(m);return t.setMetaProperty("ref-fields",{$ref:Kc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Pc(YE.identify(e))),t}const y=t=>{const r=new wv([...t.content],Pc(t.meta),Pc(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Kc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Kc(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",Pc(YE.identify(e))),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=Xi(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(m)){const s=n.findItem(XE(e))??y(m);return qa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return y(m)}catch(t){const n=JE(t),i=new GE(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:Kc(e.$ref),fullPath:this.basePath??[...HE([...s,r,e]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await BE.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=JE(t),i=WE(n,{baseDoc:this.reference.uri,externalValue:Kc(e.externalValue),fullPath:this.basePath??[...HE([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),ZE=QE,ej=zE.compose.bind(),tj=ej({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:Kc(this.macroOperation),o=Kc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=HE([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),rj=ej({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&&Da(e.properties)&&e.properties.forEach((t=>{if(Da(t))try{const e=this.modelPropertyMacro(Kc(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...HE([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}}),nj=e=>{const t=Pc(e.meta),r=Pc(e.attributes);return new e.constructor(void 0,t,r)},sj=(e,t)=>t.clone&&t.isMergeableElement(e)?aj(nj(e),e,t):e,ij=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>sj(e,r))),oj=(e,t,r)=>{const n=Da(e)?nj(e):nj(t);return Da(e)&&e.forEach(((e,t,s)=>{const i=_c(s);i.value=sj(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=Kc(s);let a;if(Da(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=_c(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return aj;const r=t.customMerge(e,t);return"function"==typeof r?r:aj})(s,r)(n,t)}else a=_c(i),a.value=sj(t,r);n.remove(o),n.content.push(a)})),n};function aj(e,t,r){var n,s,i;const o={clone:!0,isMergeableElement:e=>Da(e)||Na(e),arrayElementMerge:ij,objectElementMerge:oj,customMerge:void 0},a={...o,...r};a.isMergeableElement=null!==(n=a.isMergeableElement)&&void 0!==n?n:o.isMergeableElement,a.arrayElementMerge=null!==(s=a.arrayElementMerge)&&void 0!==s?s:o.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:o.objectElementMerge;const c=Na(t);return c===Na(e)?c&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a):sj(t,a)}aj.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Qo.Sh:e.reduce(((e,r)=>aj(e,r,t)),nj(e[0]))};const cj=ej({init({options:e}){this.options=e},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!Na(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...HE([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new wv(e.content.filter((e=>"allOf"!==Kc(e.key))),Pc(e.meta),Pc(e.attributes));if(!e.allOf.content.every(Pb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...HE([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=aj.all([...e.allOf.content,e]);if(e.hasKey("$$ref")||i.remove("$$ref"),e.hasKey("example")){i.getMember("example").value=e.get("example")}if(e.hasKey("examples")){i.getMember("examples").value=e.get("examples")}return i.remove("allOf"),i}}}}),lj=Rc[Symbol.for("nodejs.util.promisify.custom")],uj=zE.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init({useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:s=this.mode,ancestors:i=[]}={}){this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]},methods:{async dereference(e,t){const r=[],n=ac(Jx),s=t.dereference.refSet??nw();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=ew({uri:e.uri,value:e.parseResult}),s.add(i));const o=ZE({reference:i,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(o),"function"==typeof this.parameterMacro){const e=tj({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=rj({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=cj({options:t});r.push(e)}const a=wc(r,{nodeTypeGetter:zx}),c=await lj(s.rootRef.value,a,{keyMap:Hx,nodeTypeGetter:zx});return null===t.dereference.refSet&&s.clean(),c}}}),pj=uj,hj=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:f="non-strict"}=e;try{const{cache:m}=hj,d=Ji(Yi())?Yi():h,y=Nr(e),g=Xi(d,y);let v;m.has(t)?v=m.get(t):(v=uv.refract(t),v.classes.push("result"),m.set(t,v));const b=new sa([v]),x=Zc(o),w=""===x?"":`#${x}`,E=jl(x,v),j=ew({uri:g,value:b}),O=nw({refs:[j]});""!==x&&(O.rootRef=null);const S=[new Set([E])],P=[],A=((e,t,r)=>new Bc({element:r}).transclude(e,t))(E,await xw(E,{resolve:{baseURI:`${g}${w}`,resolvers:[PE({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[rE()]},parse:{mediaType:Zx.latest(),parsers:[kE({allowEmpty:!1,sourceMap:!1}),IE({allowEmpty:!1,sourceMap:!1}),$E({allowEmpty:!1,sourceMap:!1}),_E({allowEmpty:!1,sourceMap:!1}),Sw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[pj({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:P}}}),v),$=l?A:wE(A);return{spec:Kc($),errors:P}}catch(e){if(e instanceof bl||e instanceof El)return{spec:null,errors:[]};throw e}};hj.cache=new WeakMap;const fj=hj,mj={name:"openapi-3-1-apidom",match:({spec:e})=>Ho(e),normalize:({spec:e})=>xE(wE)(e),resolve:async e=>fj(e)};function dj(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:n}=e;for(const s in n)for(const i in n[s]){if("PARAMETERS"===i.toUpperCase())continue;const o=n[s][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:s,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const yj=()=>null,gj={mapTagOperations:function({spec:e,cb:t=yj,defaultTag:r="default",v2OperationIdCompatibilityMode:n}){const s={},i={};return dj(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=qo(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 vj=r(7427);function bj(e){return"[object Object]"===Object.prototype.toString.call(e)}function xj(e){var t,r;return!1!==bj(e)&&(void 0===(t=e.constructor)||!1!==bj(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const wj={body:function({req:e,value: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}){e.url=e.url.split(`{${r.name}}`).join(encodeURIComponent(t))},formData:function({req:e,value:t,parameter:r}){(t||r.allowEmptyValue)&&(e.form=e.form||{},e.form[r.name]={value:t,allowEmptyValue:r.allowEmptyValue,collectionFormat:r.collectionFormat})}};function Ej(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}function jj({req:e,value:t,parameter:r}){const{name:n,style:s,explode:i,content:o}=r;if(o){const r=Object.keys(o)[0];return void(e.url=e.url.split(`{${n}}`).join(wr(Ej(t,r),{escape:!0})))}const a=Er({key:r.name,value:t,style:s||"simple",explode:i||!1,escape:!0});e.url=e.url.split(`{${n}}`).join(a)}function Oj({req:e,value:t,parameter:r}){if(e.query=e.query||{},r.content){const n=Ej(t,Object.keys(r.content)[0]);if(n)e.query[r.name]=n;else if(r.allowEmptyValue&&void 0!==t){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 Pj({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Sj.indexOf(t.name.toLowerCase())>-1))if(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]=Er({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function Aj({req:e,parameter:t,value:r}){e.headers=e.headers||{};const n=typeof r;if(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+Er({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:_j}=$j,kj=_j;function Ij(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&&xj(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=>{t.form[r]={value:n[r],encoding:e[r]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function Tj(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 Mj(e,t){return e&&e.paths?function(e,t){return dj(e,t,!0)||null}(e,(({pathName:e,method:r,operation:n})=>{if(!n||"object"!=typeof n)return!1;const s=n.operationId;return[qo(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,h),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}}},Dj=eo("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),Nj={buildRequest:qj};function qj(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:l,serverVariables:p,http:h,signal:f}=e;let{parameters:m,parameterBuilders:d}=e;const y=Jo(t);d||(d=y?u: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=Mj(t,r);if(!v)throw new Dj(`Operation ${r} not found`);const{operation:b={},method:x,pathName:w}=v;if(g.url+=Bj({spec:t,scheme:s,contextUrl:a,server:l,serverVariables:p,pathName:w,method:x}),!r)return delete g.cookies,g;g.url+=w,g.method=`${x}`.toUpperCase(),m=m||{};const E=t.paths[w]||{};n&&(g.headers.accept=n);const j=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(Rj(b.parameters)).concat(Rj(E.parameters)));j.forEach((e=>{const r=d[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=m),n=e&&e.name&&m[e.name],void 0===n?n=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,j).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(y&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:g,parameter:e,value:n,operation:b,spec:t})}}));const O={...e,operation:b};if(g=y?Ij(O,g):Tj(O,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+vj.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,Fr(g),g}const Lj=e=>e?e.replace(/\W/g,""):null;function Bj(e){return Jo(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:[f],n&&(o=a.find((e=>e.url===n)),o&&(c=n));c||([o]=a,c=o.url);if(c.includes("{")){const e=function(e){const t=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(e);)t.push(n[1]);return t}(c);e.forEach((e=>{if(o.variables&&o.variables[e]){const t=o.variables[e],r=i[e]||t.default,n=new RegExp(`{${e}}`,"g");c=c.replace(n,r)}}))}return function(e="",t=""){const r=Fj(e&&t?Xi(t,e):e),n=Fj(t),s=Lj(r.protocol)||Lj(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||Lj(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,zj=Vj;function Hj(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof Hj))return new Hj(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,Hj.makeApisTagOperation(this)),this)));return r.client=this,r}Hj.http=Or,Hj.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),jr.mergeInQueryOrForm(n),n=t(n),r(e(n)))}.bind(null,Hj.http),Hj.resolveStrategies={"openapi-3-1-apidom":mj,"openapi-3-0":Wo,"openapi-2-0":Go,generic:Uo},Hj.resolve=Ko({strategies:[Hj.resolveStrategies["openapi-3-1-apidom"],Hj.resolveStrategies["openapi-3-0"],Hj.resolveStrategies["openapi-2-0"],Hj.resolveStrategies.generic]}),Hj.resolveSubtree=Xo({strategies:[Hj.resolveStrategies["openapi-3-1-apidom"],Hj.resolveStrategies["openapi-3-0"],Hj.resolveStrategies["openapi-2-0"],Hj.resolveStrategies.generic]}),Hj.execute=function({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:a,...c}){const l=e||t||Or;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&&(xj(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},Hj.serializeRes=Pr,Hj.serializeHeaders=Ar,Hj.clearCache=function(){Do.refs.clearCache()},Hj.makeApisTagOperation=function(e={}){const t=gj.makeExecute(e);return{apis:gj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},Hj.buildRequest=qj,Hj.helpers={opId:qo},Hj.getBaseUrl=Bj,Hj.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:PE}},parse:{parsers:{JsonParser:$E,YamlParser:_E,OpenApiJson3_1Parser:kE,OpenApiYaml3_1Parser:IE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:pj}}},Hj.prototype={http:Or,execute(e){return this.applyDefaults(),Hj.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 Hj.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)))}},Hj.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Vo(e)&&zj(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(Jo(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[f])}};const{helpers:Jj}=Hj,Gj=Hj})(),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=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),a=s("%Reflect.apply%",!0)||n.call(o,i),c=s("%Object.getOwnPropertyDescriptor%",!0),l=s("%Object.defineProperty%",!0),u=s("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(n,o,arguments);c&&l&&(c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return a(n,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},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,m,d,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,P=E?l:l[w]||p(l,w,{})[w],A=P.prototype;for(d in t)s=!(r=c(E?d:w+(j?".":"#")+d,e.forced))&&S&&h(S,d),g=P[d],s&&(v=e.dontCallGetSet?(x=a(S,d))&&x.value:S[d]),y=s&&v?v:t[d],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),O&&(h(l,m=w+"Prototype")||p(l,m,{}),p(l[m],d,y),e.real&&A&&(r||!A[d])&&p(A,d,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),m="Object already initialized",d=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw d(m);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");f[v]=!0,n=function(e,t){if(u(e,v))throw d(m);return t.facade=e,l(e,v,t),t},s=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},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,m=function(e,t){this.stopped=e,this.result=t},d=m.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),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=n(t,j),_=function(e){return y&&h(y,"normal",e),new m(!0,e)},k=function(e){return O?(i(e),A?$(e[0],e[1],_):$(e[0],e[1])):A?$(e,_):$(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw f(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=k(e[v]))&&l(d,x))return x;return new m(!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(d,x))return x}return new m(!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),m=r(6615),d=r(1113),y=r(2373),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=m("iterator"),E="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,P){c(r,t,o);var A,$,_,k=function(e){if(e===m&&R)return R;if(!x&&e&&e in M)return M[e];switch(e){case E:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",I=!1,M=e.prototype,T=M[w]||M["@@iterator"]||m&&M[m],R=!x&&T||k(m),F="Array"===t&&M.entries||T;if(F&&(A=l(F.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[w])||f(A,w,S)),p(A,C,!0,!0),i&&(d[C]=S)),g&&m===j&&T&&T.name!==j&&(!i&&v?h(M,"name",j):(I=!0,R=function(){return s(T,this)})),m)if($={values:k(j),keys:y?R:k(E),entries:k(O)},P)for(_ in $)(x||I||!(_ in M))&&f(M,_,$[_]);else n({target:t,proto:!0,forced:x||I},$);return i&&!P||M[w]===R||f(M,w,R,{name:m}),d[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),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[m])||p(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},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)}},9383:(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"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=s(e),r=new m,m[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},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(9383),h=r(60),f=r(927),m=r(5560),d=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(!d&&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}):m&&g in w&&(l(O,w,g),l(O,w,"prepareStackTrace")),c(O,w),!d)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),m=r(9383),d=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,d,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return f(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:v})},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,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;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 d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},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},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=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=r(4039)(),h=r(24)(),f=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),m={},d="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&f&&(r=f(s.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=r(6743),w=r(9030),E=x.call(Function.call,Array.prototype.concat),j=x.call(Function.apply,Array.prototype.splice),O=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),P=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,_=function(e,t){var r,n=e;if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(y,n)){var i=y[n];if(i===m&&(i=v(n)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,A,(function(e,t,r,s){n[n.length]=r?O(s,$,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=_("%"+n+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(n=p[0],j(r,E([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var m=r[h],d=S(m,0,1),g=S(m,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),w(y,a="%"+(n+="."+m)+"%"))l=y[a];else if(null!=l){if(!(m in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var v=c(l,m);l=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[m]}else f=w(l,m),l=l[m];f&&!u&&(y[a]=l)}}return l}},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}},9030:(e,t,r)=>{"use strict";var n=r(6743);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},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,m=f?n(e.length,String):[],d=m.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,d))||m.push(y);return m}},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]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,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,d,y,g):i(e,t,x,r,d,y,g);if(!(1&r)){var S=E&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new n),y(A,$,r,d,g)}}return!!O&&(g||(g=new n),o(e,t,r,d,y,g))}},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 m=-1,d=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},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 m=1&n;if(f||(f=c),e.size!=t.size&&!m)return!1;var d=h.get(e);if(d)return d==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),m=a.get(t);if(f&&m)return f==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var 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||(d=!1)}return a.delete(e),a.delete(t),d}},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]",m="[object DataView]",d=l(n),y=l(s),g=l(i),v=l(o),b=l(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=m||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 d:return m;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),m=r(866),d=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:m,KeyValuePair:d}},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,m=Boolean.prototype.valueOf,d=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,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(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?-P(-e):P(e);if(n!==e){var s=String(n),i=v.call(t,s.length+1);return b.call(s,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var 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 q(e){return b.call(String(e),/"/g,""")}function L(e){return!("[object Array]"!==H(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==H(e)||C&&"object"==typeof e&&C 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||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,s){var a=r||{};if(z(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!z(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return d?T(t,x):x}if("bigint"==typeof t){var E=String(t)+"n";return d?T(t,E):E}var P=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var $=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(a,n);if(void 0===s)s=[];else if(J(s,t)>=0)return"[Circular]";function F(t,r,i){if(r&&(s=S.call(s)).push(r),i){var o={depth:a.depth};return z(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,n+1,s)}return e(t,a,n+1,s)}if("function"==typeof t&&!B(t)){var V=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),W=Z(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(W.length>0?" { "+O.call(W,", ")+" }":"")}if(U(t)){var ee=k?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||k?ee:K(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+w.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+N(q(re[ne].value),"double",a);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+w.call(String(t.nodeName))+">"}if(L(t)){if(0===t.length)return"[]";var se=Z(t,F);return $&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,$)+"]":"[ "+O.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)){var ie=Z(t,F);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ie,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+F(t.cause),ie),", ")+" }"}if("object"==typeof t&&c){if(D&&"function"==typeof t[D]&&R)return R(t,{depth:P-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var oe=[];return o&&o.call(t,(function(e,r){oe.push(F(r,t,!0)+" => "+F(e,t))})),X("Map",i.call(t),oe,$)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return u&&u.call(t,(function(e){ae.push(F(e,t))})),X("Set",l.call(t),ae,$)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return K(F(A.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(m.call(t));if(function(e){return!("[object String]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(F(String(t)));if(!function(e){return!("[object Date]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var ce=Z(t,F),le=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!le&&C&&Object(t)===t&&C in t?v.call(H(t),8,-1):ue?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+O.call(j.call([],pe||[],ue||[]),": ")+"] ":"");return 0===ce.length?he+"{}":$?he+"{"+Q(ce,$)+"}":he+"{ "+O.call(ce,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function H(e){return d.call(e)}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return N(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):O.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=L(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=z(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(k){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||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++)I.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 m(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||l||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},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,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,u=[];if(l){if(!r.plainObjects&&s.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var p=0;r.depth>0&&null!==(a=o.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:c(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=s:"__proto__"!==l&&(o[l]=s):o={0:s}}s=o}return s}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,p),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?m="utf-8":"utf8=%26%2310003%3B"===h[r]&&(m="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var d,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(d=t.decoder(g,o.decoder,m,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(g.slice(0,b),o.decoder,m,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(l,d)?l[d]=n.combine(l[d],y):l[d]=y}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var m=h[f],d=l(m,u[m],r,"string"==typeof e);p=n.merge(p,d,r)}return!0===r.allowSparse?p:n.compact(p)}},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,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},m={},d=function e(t,r,i,o,a,l,p,h,d,y,g,v,b,x,w,E){for(var j,O=t,S=E,P=0,A=!1;void 0!==(S=S.get(m))&&!A;){var $=S.get(t);if(P+=1,void 0!==$){if($===P)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(m)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=g(O):"comma"===i&&c(O)&&(O=s.maybeMap(O,(function(e){return e instanceof Date?g(e):e}))),null===O){if(a)return p&&!x?p(r,f.encoder,w,"key",v):r;O=""}if("string"==typeof(j=O)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||s.isBuffer(O))return p?[b(x?r:p(r,f.encoder,w,"key",v))+"="+b(p(O,f.encoder,w,"value",v))]:[b(r)+"="+b(String(O))];var _,k=[];if(void 0===O)return k;if("comma"===i&&c(O))x&&p&&(O=s.maybeMap(O,p)),_=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(h))_=h;else{var C=Object.keys(O);_=d?C.sort(d):C}for(var I=o&&c(O)&&1===O.length?r+"[]":r,M=0;M<_.length;++M){var T=_[M],R="object"==typeof T&&void 0!==T.value?T.value:O[T];if(!l||null!==R){var F=c(O)?"function"==typeof i?i(I,T):I:I+(y?"."+T:"["+T+"]");E.set(t,P);var D=n();D.set(m,E),u(k,e(R,F,i,o,a,l,"comma"===i&&x&&c(O)?null:p,h,d,y,g,v,b,x,w,D))}}return k};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=f.filter;return("function"==typeof e.filter||c(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?s=(0,l.filter)("",s):c(l.filter)&&(r=l.filter);var p,h=[];if("object"!=typeof s||null===s)return"";p=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===m&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var g=n(),v=0;v<r.length;++v){var b=r[v];l.skipNulls&&null===s[b]||u(h,d(s[b],b,m,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var x=h.join(l.delimiter),w=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},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};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],u=o[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},8068: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:()=>m});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,m=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=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=s("WeakMap.prototype.get",!0),u=s("WeakMap.prototype.set",!0),p=s("WeakMap.prototype.has",!0),h=s("Map.prototype.get",!0),f=s("Map.prototype.set",!0),m=s("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){var r=d(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return m(t,n)}else if(r)return function(e,t){return!!d(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,s)):c?(t||(t=new c),f(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},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",m="deepProps",d="deepStatics",y="deepConf",g="initializers",v="methods",b="composers",x="compose";function w(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var j=E.bind(0,(function(e,t){if(t)for(var r=w(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function O(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||O(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var A=E.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!P(n))return n;for(var s,i,o=w(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(P(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function $(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return O(e)&&r.indexOf(e)===t}))).length?r:t}function _(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,A),n(c),n(l),n(u,A),n(p),n(h),n(f,A),s(g),s(b)),e}function k(){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&&A(l,h),(h=i[o])&&j(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)O(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&A(r,n),(n=e[l])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=O(r[x])?r[x]:k,j(r[x]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(_,{}))}function C(e){return O(e)&&O(e[x])}var I={};function M(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[x]||n).call(r,s)}}I[v]=M(v,j),I[o]=I.props=M(o,j),I[g]=I.init=M(g,$),I[b]=M(b,$),I[a]=I[m]=M(a,A),I[l]=I.statics=M(l,j),I[u]=I[d]=M(u,A),I[h]=I.conf=M(h,j),I[f]=I[y]=M(f,A),I[c]=M(c,j),I[p]=M(p,j),n=I[x]=j((function(){for(var e,w,E=0,O=[],P=arguments,_=this;E<P.length;)S(e=P[E++])&&O.push(C(e)?e:((s={})[v]=(w=e)[v]||t,n=w.props,s[o]=S((r=w[o])||n)?j({},n,r):t,s[g]=$(w.init,w[g]),s[b]=$(w[b]),n=w[m],s[a]=S((r=w[a])||n)?A({},n,r):t,s[c]=w[c],n=w.statics,s[l]=S((r=w[l])||n)?j({},n,r):t,n=w[d],s[u]=S((r=w[u])||n)?A({},n,r):t,r=w[p],s[p]=S((n=w.name&&{name:{value:w.name}})||r)?j({},r,n):t,n=w.conf,s[h]=S((r=w[h])||n)?j({},n,r):t,n=w[y],s[f]=S((r=w[f])||n)?A({},n,r):t,s));if(e=k.apply(_||i,O),_&&O.unshift(_),Array.isArray(P=e[x][b]))for(E=0;E<P.length;)e=C(_=P[E++]({stamp:e,composables:O}))?_:e;return e}),I),I.create=function(){return this.apply(t,arguments)},(s={})[l]=I,i=k(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={},m=!0,d={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){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(m=!1)},delete:function(e){delete d.parent.node[d.key],e&&(m=!1)},remove:function(e){r(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(m=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return d;function y(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=a(d.node)),d.isLeaf=0===d.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===p){d.circular=o[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}y();var g=t.call(d,d.node);return void 0!==g&&d.update&&d.update(g),f.before&&f.before.call(d,d.node),m?("object"!=typeof d.node||null===d.node||d.circular||(o.push(d),y(),n(d.keys,(function(t,r){i.push(t),f.pre&&f.pre.call(d,d.node[t],t);var n=e(d.node[t]);s&&c.call(d.node,t)&&(d.node[t]=n.node),n.isLast=r===d.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(d,n),i.pop()})),o.pop()),f.after&&f.after.call(d,d.node),d):d}(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:()=>Kj});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:()=>mn,observe:()=>fn,unobserve:()=>hn});var s={};r.r(s),r.d(s,{bJ:()=>Ki,uQ:()=>Vi,Zd:()=>Gi,LH:()=>zi,isHttpUrl:()=>Hi,hd:()=>Yi,aj:()=>Xi,z9:()=>Wi,zj:()=>Qi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ja,includesClasses:()=>Wa,includesSymbols:()=>Ga,isAnnotationElement:()=>Ba,isArrayElement:()=>Da,isBooleanElement:()=>Ra,isCommentElement:()=>Ua,isElement:()=>Ca,isLinkElement:()=>qa,isMemberElement:()=>Na,isNullElement:()=>Ta,isNumberElement:()=>Ma,isObjectElement:()=>Fa,isParseResultElement:()=>Va,isPrimitiveElement:()=>Ha,isRefElement:()=>La,isSourceMapElement:()=>za,isStringElement:()=>Ia});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>nh,isJSONSchemaElement:()=>rh,isLinkDescriptionElement:()=>ih,isMediaElement:()=>sh});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>rm,isCallbackElement:()=>Ff,isComponentsElement:()=>Df,isContactElement:()=>Nf,isExampleElement:()=>qf,isExternalDocumentationElement:()=>Lf,isHeaderElement:()=>Bf,isInfoElement:()=>Uf,isLicenseElement:()=>Vf,isLinkElement:()=>zf,isMediaTypeElement:()=>am,isOpenApi3_0Element:()=>Jf,isOpenapiElement:()=>Hf,isOperationElement:()=>Gf,isParameterElement:()=>Wf,isPathItemElement:()=>Kf,isPathsElement:()=>Yf,isReferenceElement:()=>Xf,isRequestBodyElement:()=>Qf,isResponseElement:()=>Zf,isResponsesElement:()=>em,isSchemaElement:()=>tm,isSecurityRequirementElement:()=>nm,isSecuritySchemeElement:()=>sm,isServerElement:()=>im,isServerVariableElement:()=>om,isServersElement:()=>cm});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>Mb,isCallbackElement:()=>ub,isComponentsElement:()=>pb,isContactElement:()=>hb,isExampleElement:()=>fb,isExternalDocumentationElement:()=>mb,isHeaderElement:()=>db,isInfoElement:()=>yb,isJsonSchemaDialectElement:()=>gb,isLicenseElement:()=>vb,isLinkElement:()=>bb,isMediaTypeElement:()=>Nb,isOpenApi3_1Element:()=>wb,isOpenapiElement:()=>xb,isOperationElement:()=>Eb,isParameterElement:()=>jb,isPathItemElement:()=>Ob,isPathItemElementExternal:()=>Sb,isPathsElement:()=>Pb,isReferenceElement:()=>Ab,isReferenceElementExternal:()=>$b,isRequestBodyElement:()=>_b,isResponseElement:()=>kb,isResponsesElement:()=>Cb,isSchemaElement:()=>Ib,isSecurityRequirementElement:()=>Tb,isSecuritySchemeElement:()=>Rb,isServerElement:()=>Fb,isServerVariableElement:()=>Db});var l={};r.r(l),r.d(l,{cookie:()=>_j,header:()=>$j,path:()=>Sj,query:()=>Pj});const u="application/json, application/yaml",p="https://swagger.io",h=Object.freeze({url:"/"});var f=r(5373),m=r.n(f);function d(e){return null==e}var y={isNothing:d,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:d(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 g(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 v(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=g(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}v.prototype=Object.create(Error.prototype),v.prototype.constructor=v,v.prototype.toString=function(e){return this.name+": "+g(this,e)};var b=v;function x(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 w(e,t){return y.repeat(" ",t-e.length)+e}var E=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=x(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=y.repeat(" ",t.indent)+w((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=x(e.buffer,s[o],i[o],e.position,p),l+=y.repeat(" ",t.indent)+w((e.line+1).toString(),u)+" | "+c.str+"\n",l+=y.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=x(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=y.repeat(" ",t.indent)+w((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},j=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],O=["scalar","sequence","mapping"];var S=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===j.indexOf(t))throw new b('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===O.indexOf(this.kind))throw new b('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function P(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 A(e){return this.extend(e)}A.prototype.extend=function(e){var t=[],r=[];if(e instanceof S)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 b("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 S))throw new b("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new b("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 b("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 S))throw new b("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(A.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=P(n,"implicit"),n.compiledExplicit=P(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var $=A,_=new S("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),k=new S("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),C=new S("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),I=new $({explicit:[_,k,C]});var M=new S("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 T=new S("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 R(e){return 48<=e&&e<=55}function F(e){return 48<=e&&e<=57}var D=new S("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(!R(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!F(e.charCodeAt(s)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!y.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),N=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var q=/^[-+]?[0-9]+e/;var L=new S("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!N.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||y.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(y.isNegativeZero(e))return"-0.0";return r=e.toString(10),q.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),B=I.extend({implicit:[M,T,D,L]}),U=B,V=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),z=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 H=new S("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==V.exec(e)||null!==z.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=V.exec(e))&&(t=z.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,n,s,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var J=new S("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var W=new S("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=G;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=G,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=G;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}}),K=Object.prototype.hasOwnProperty,Y=Object.prototype.toString;var X=new S("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]"!==Y.call(n))return!1;for(s in n)if(K.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:[]}}),Q=Object.prototype.toString;var Z=new S("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]"!==Q.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 te=new S("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:{}}}),re=U.extend({implicit:[H,J],explicit:[W,X,Z,te]}),ne=Object.prototype.hasOwnProperty,se=1,ie=2,oe=3,ae=4,ce=1,le=2,ue=3,pe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,he=/[\x85\u2028\u2029]/,fe=/[,\[\]\{\}]/,me=/^(?:!|!!|![a-z\-]+!)$/i,de=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ye(e){return Object.prototype.toString.call(e)}function ge(e){return 10===e||13===e}function ve(e){return 9===e||32===e}function be(e){return 9===e||32===e||10===e||13===e}function xe(e){return 44===e||91===e||93===e||123===e||125===e}function we(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ee(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function je(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Oe=new Array(256),Se=new Array(256),Pe=0;Pe<256;Pe++)Oe[Pe]=Ee(Pe)?1:0,Se[Pe]=Ee(Pe);function Ae(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||re,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 $e(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=E(r),new b(t,r)}function _e(e,t){throw $e(e,t)}function ke(e,t){e.onWarning&&e.onWarning.call(null,$e(e,t))}var Ce={YAML:function(e,t,r){var n,s,i;null!==e.version&&_e(e,"duplication of %YAML directive"),1!==r.length&&_e(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&_e(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&_e(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&ke(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&_e(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],me.test(n)||_e(e,"ill-formed tag handle (first argument) of the TAG directive"),ne.call(e.tagMap,n)&&_e(e,'there is a previously declared suffix for "'+n+'" tag handle'),de.test(s)||_e(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){_e(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Ie(e,t,r,n){var s,i,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,i=a.length;s<i;s+=1)9===(o=a.charCodeAt(s))||32<=o&&o<=1114111||_e(e,"expected valid JSON character");else pe.test(a)&&_e(e,"the stream contains non-printable characters");e.result+=a}}function Me(e,t,r,n){var s,i,o,a;for(y.isObject(r)||_e(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(s=Object.keys(r)).length;o<a;o+=1)i=s[o],ne.call(t,i)||(t[i]=r[i],n[i]=!0)}function Te(e,t,r,n,s,i,o,a,c){var l,u;if(Array.isArray(s))for(l=0,u=(s=Array.prototype.slice.call(s)).length;l<u;l+=1)Array.isArray(s[l])&&_e(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===ye(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===ye(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Me(e,t,i[l],r);else Me(e,t,i,r);else e.json||ne.call(r,s)||!ne.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,_e(e,"duplicated mapping key")),"__proto__"===s?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete r[s];return t}function Re(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):_e(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Fe(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;ve(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(!ge(s))break;for(Re(e),s=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&ke(e,"deficient indentation"),n}function De(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!be(t)))}function Ne(e,t){1===t?e.result+=" ":t>1&&(e.result+=y.repeat("\n",t-1))}function qe(e,t){var r,n,s=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,_e(e,"tab characters must not be used in indentation")),45===n)&&be(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Fe(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Ue(e,t,oe,!1,!0),o.push(e.result),Fe(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)_e(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=s,e.anchor=i,e.kind="sequence",e.result=o,!0)}function Le(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&_e(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(o=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):_e(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!be(s);)33===s&&(o?_e(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),me.test(r)||_e(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),fe.test(n)&&_e(e,"tag suffix cannot contain flow indicator characters")}n&&!de.test(n)&&_e(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){_e(e,"tag name is malformed: "+n)}return i?e.tag=n:ne.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:_e(e,'undeclared tag handle "'+r+'"'),!0}function Be(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&_e(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!be(r)&&!xe(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&_e(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Ue(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,m=1,d=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=ae===r||oe===r,n&&Fe(e,!0,-1)&&(d=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;Le(e)||Be(e);)Fe(e,!0,-1)?(d=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=d||s),1!==m&&ae!==r||(h=se===r||ie===r?t:t+1,f=e.position-e.lineStart,1===m?a&&(qe(e,f)||function(e,t,r){var n,s,i,o,a,c,l,u=e.tag,p=e.anchor,h={},f=Object.create(null),m=null,d=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,_e(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!be(n)){if(o=e.line,a=e.lineStart,c=e.position,!Ue(e,r,ie,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);ve(l);)l=e.input.charCodeAt(++e.position);if(58===l)be(l=e.input.charCodeAt(++e.position))||_e(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Te(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!1,s=!1,m=e.tag,d=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;_e(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;_e(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Te(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):_e(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),Ue(e,t,ae,!0,s)&&(g?d=e.result:y=e.result),g||(Te(e,h,f,m,d,y,o,a,c),m=d=y=null),Fe(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)_e(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Te(e,h,f,m,d,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,f,h))||function(e,t){var r,n,s,i,o,a,c,l,u,p,h,f,m=!0,d=e.tag,y=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==f)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(Fe(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=d,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===f&&_e(e,"expected the node content, but found ','"):_e(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&be(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,Fe(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,Ue(e,t,se,!1,!0),p=e.tag,u=e.result,Fe(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),Fe(e,!0,t),Ue(e,t,se,!1,!0),h=e.result),l?Te(e,i,g,p,u,h,r,n,s):a?i.push(Te(e,null,g,p,u,h,r,n,s)):i.push(u),Fe(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}_e(e,"unexpected end of the stream within a flow collection")}(e,h)?g=!0:(o&&function(e,t){var r,n,s,i,o,a=ce,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)ce===a?a=43===i?ue:le:_e(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?_e(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?_e(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(ve(i)){do{i=e.input.charCodeAt(++e.position)}while(ve(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ge(i)&&0!==i)}for(;0!==i;){for(Re(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),ge(i))p++;else{if(e.lineIndent<u){a===ue?e.result+=y.repeat("\n",c?1+p:p):a===ce&&c&&(e.result+="\n");break}for(n?ve(i)?(h=!0,e.result+=y.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=y.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=y.repeat("\n",p):e.result+=y.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!ge(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ie(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(Ie(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else ge(r)?(Ie(e,n,s,!0),Ne(e,Fe(e,!1,t)),n=s=e.position):e.position===e.lineStart&&De(e)?_e(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);_e(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,s,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ie(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ie(e,r,e.position,!0),ge(a=e.input.charCodeAt(++e.position)))Fe(e,!1,t);else if(a<256&&Oe[a])e.result+=Se[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=we(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:_e(e,"expected hexadecimal character");e.result+=je(i),e.position++}else _e(e,"unknown escape sequence");r=n=e.position}else ge(a)?(Ie(e,r,n,!0),Ne(e,Fe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&De(e)?_e(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}_e(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?g=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!be(n)&&!xe(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&_e(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ne.call(e.anchorMap,r)||_e(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Fe(e,!0,-1),!0}(e)?function(e,t,r){var n,s,i,o,a,c,l,u,p=e.kind,h=e.result;if(be(u=e.input.charCodeAt(e.position))||xe(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)&&(be(n=e.input.charCodeAt(e.position+1))||r&&xe(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(be(n=e.input.charCodeAt(e.position+1))||r&&xe(n))break}else if(35===u){if(be(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&De(e)||r&&xe(u))break;if(ge(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,Fe(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ie(e,s,i,!1),Ne(e,e.line-a),s=i=e.position,o=!1),ve(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ie(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,se===r)&&(g=!0,null===e.tag&&(e.tag="?")):(g=!0,null===e.tag&&null===e.anchor||_e(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(g=a&&qe(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&_e(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ne.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||_e(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&_e(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):_e(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function Ve(e){var t,r,n,s,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(Fe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(o=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!be(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&_e(e,"directive name must not be less than one character in length");0!==s;){for(;ve(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!ge(s));break}if(ge(s))break;for(t=e.position;0!==s&&!be(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&Re(e),ne.call(Ce,r)?Ce[r](e,r,n):ke(e,'unknown document directive "'+r+'"')}Fe(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Fe(e,!0,-1)):o&&_e(e,"directives end mark is expected"),Ue(e,e.lineIndent-1,ae,!1,!0),Fe(e,!0,-1),e.checkLineBreaks&&he.test(e.input.slice(i,e.position))&&ke(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&De(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Fe(e,!0,-1)):e.position<e.length-1&&_e(e,"end of the stream or a document separator is expected")}function ze(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 Ae(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,_e(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ve(r);return r.documents}var He={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=ze(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=ze(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new b("expected a single document in the stream, but found more")}}},Je=Object.prototype.toString,Ge=Object.prototype.hasOwnProperty,We=65279,Ke=9,Ye=10,Xe=13,Qe=32,Ze=33,et=34,tt=35,rt=37,nt=38,st=39,it=42,ot=44,at=45,ct=58,lt=61,ut=62,pt=63,ht=64,ft=91,mt=93,dt=96,yt=123,gt=124,vt=125,bt={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"},xt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],wt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Et(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 b("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+y.repeat("0",n-t.length)+t}var jt=1,Ot=2;function St(e){this.schema=e.schema||re,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=y.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])&&Ge.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?Ot:jt,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 Pt(e,t){for(var r,n=y.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 At(e,t){return"\n"+y.repeat(" ",e.indent*t)}function $t(e){return e===Qe||e===Ke}function _t(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==We||65536<=e&&e<=1114111}function kt(e){return _t(e)&&e!==We&&e!==Xe&&e!==Ye}function Ct(e,t,r){var n=kt(e),s=n&&!$t(e);return(r?n:n&&e!==ot&&e!==ft&&e!==mt&&e!==yt&&e!==vt)&&e!==tt&&!(t===ct&&!s)||kt(t)&&!$t(t)&&e===tt||t===ct&&s}function It(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Mt(e){return/^\n* /.test(e)}var Tt=1,Rt=2,Ft=3,Dt=4,Nt=5;function qt(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,m=-1!==n,d=-1,y=_t(l=It(e,0))&&l!==We&&!$t(l)&&l!==at&&l!==pt&&l!==ct&&l!==ot&&l!==ft&&l!==mt&&l!==yt&&l!==vt&&l!==tt&&l!==nt&&l!==it&&l!==Ze&&l!==gt&&l!==lt&&l!==ut&&l!==st&&l!==et&&l!==rt&&l!==ht&&l!==dt&&function(e){return!$t(e)&&e!==ct}(It(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!_t(u=It(e,c)))return Nt;y=y&&Ct(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=It(e,c))===Ye)h=!0,m&&(f=f||c-d-1>n&&" "!==e[d+1],d=c);else if(!_t(u))return Nt;y=y&&Ct(u,p,a),p=u}f=f||m&&c-d-1>n&&" "!==e[d+1]}return h||f?r>9&&Mt(e)?Nt:o?i===Ot?Nt:Rt:f?Dt:Ft:!y||o||s(e)?i===Ot?Nt:Rt:Tt}function Lt(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===Ot?'""':"''";if(!e.noCompatMode&&(-1!==xt.indexOf(t)||wt.test(t)))return e.quotingType===Ot?'"'+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(qt(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 Tt:return t;case Rt:return"'"+t.replace(/'/g,"''")+"'";case Ft:return"|"+Bt(t,e.indent)+Ut(Pt(t,i));case Dt:return">"+Bt(t,e.indent)+Ut(Pt(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,Vt(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")+Vt(l,t),o=r}return i}(t,o),i));case Nt:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=It(e,s),!(t=bt[n])&&_t(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Et(n);return r}(t)+'"';default:throw new b("impossible error: invalid scalar style")}}()}function Bt(e,t){var r=Mt(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function Ut(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Vt(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 zt(e,t,r,n){var s,i,o,a="",c=e.tag;for(s=0,i=r.length;s<i;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(Jt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Jt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=At(e,t)),e.dump&&Ye===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Ht(e,t,r){var n,s,i,o,a,c;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=s[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===Je.call(a.represent))n=a.represent(t,c);else{if(!Ge.call(a.represent,c))throw new b("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function Jt(e,t,r,n,s,i,o){e.tag=null,e.dump=r,Ht(e,r,!1)||Ht(e,r,!0);var a,c=Je.call(e.dump),l=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(s=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new b("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=At(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),Jt(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Ye===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=At(e,t)),Jt(e,t+1,a,!0,c)&&(e.dump&&Ye===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o,a,c="",l=e.tag,u=Object.keys(r);for(n=0,s=u.length;n<s;n+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[n]],e.replacer&&(o=e.replacer.call(r,i,o)),Jt(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Jt(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?zt(e,t-1,e.dump,s):zt(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o="",a=e.tag;for(n=0,s=r.length;n<s;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(Jt(e,t,i,!1,!1)||void 0===i&&Jt(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new b("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Lt(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 Gt(e,t){var r,n,s=[],i=[];for(Wt(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function Wt(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)Wt(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)Wt(e[n[s]],t,r)}function Kt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Yt=S,Xt=$,Qt=I,Zt=B,er=U,tr=re,rr=He.load,nr=He.loadAll,sr={dump:function(e,t){var r=new St(t=t||{});r.noRefs||Gt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Jt(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,ir=b,or={binary:W,float:L,map:C,null:M,pairs:Z,set:te,timestamp:H,bool:T,int:D,merge:J,omap:X,seq:k,str:_},ar=Kt("safeLoad","load"),cr=Kt("safeLoadAll","loadAll"),lr=Kt("safeDump","dump");const ur={Type:Yt,Schema:Xt,FAILSAFE_SCHEMA:Qt,JSON_SCHEMA:Zt,CORE_SCHEMA:er,DEFAULT_SCHEMA:tr,load:rr,loadAll:nr,dump:sr,YAMLException:ir,types:or,safeLoad:ar,safeLoadAll:cr,safeDump:lr},{fetch:pr,Response:hr,Headers:fr,Request:mr,FormData:dr,File:yr,Blob:gr}=globalThis;void 0===globalThis.fetch&&(globalThis.fetch=pr),void 0===globalThis.Headers&&(globalThis.Headers=fr),void 0===globalThis.Request&&(globalThis.Request=mr),void 0===globalThis.Response&&(globalThis.Response=hr),void 0===globalThis.FormData&&(globalThis.FormData=dr),void 0===globalThis.File&&(globalThis.File=yr),void 0===globalThis.Blob&&(globalThis.Blob=gr);const vr=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,br=e=>/^[a-z0-9\-._~]+$/i.test(e);function xr(e,{escape:t}={},r){return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):[...e].map((e=>{if(br(e))return e;if(vr(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join(""):e}function wr(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:n,escape:s}){const i=e=>xr(e,{escape:s});if("simple"===r)return t.map((e=>i(e))).join(",");if("label"===r)return`.${t.map((e=>i(e))).join(".")}`;if("matrix"===r)return t.map((e=>i(e))).reduce(((t,r)=>!t||n?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=n?`&${e}=`:",";return t.map((e=>i(e))).join(r)}if("spaceDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>i(e))).join(` ${r}`)}if("pipeDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>i(e))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:n,escape:s}){const i=e=>xr(e,{escape:s}),o=Object.keys(t);if("simple"===r)return o.reduce(((e,r)=>{const s=i(t[r]);return`${e?`${e},`:""}${r}${n?"=":","}${s}`}),"");if("label"===r)return o.reduce(((e,r)=>{const s=i(t[r]);return`${e?`${e}.`:"."}${r}${n?"=":"."}${s}`}),"");if("matrix"===r&&n)return o.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${i(t[r])}`),"");if("matrix"===r)return o.reduce(((r,n)=>{const s=i(t[n]);return`${r?`${r},`:`;${e}=`}${n},${s}`}),"");if("form"===r)return o.reduce(((e,r)=>{const s=i(t[r]);return`${e?`${e}${n?"&":","}`:""}${r}${n?"=":","}${s}`}),"");return}(e):function({key:e,value:t,style:r,escape:n}){const s=e=>xr(e,{escape:n});if("simple"===r)return s(t);if("label"===r)return`.${s(t)}`;if("matrix"===r)return`;${e}=${s(t)}`;if("form"===r)return s(t);if("deepObject"===r)return s(t,{},!0);return}(e)}const Er={serializeRes:Sr,mergeInQueryOrForm:Rr};async function jr(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},Er.mergeInQueryOrForm(t),t.headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Er.serializeRes(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}const Or=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Sr(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Pr(e.headers)},s=n.headers["content-type"],i=r||Or(s);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(n.text=e,n.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):ur.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}function Pr(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 Ar(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 $r(e,t){return Array.isArray(e)&&e.some((e=>Ar(e,t)))}const _r={form:",",spaceDelimited:"%20",pipeDelimited:"|"},kr={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class Cr extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Ir(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(Ar(a)||$r(a))return[[l,a]];if(i)return Mr(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 Mr(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 Cr(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new Cr(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(kr[n||"csv"])]]:[[l,""]]}function Mr(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=>xr(e,{escape:o}),c=r?e=>e:e=>xr(e,{escape:o});return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(_r[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 Tr(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Ir(r,e[r]))t[n]=s instanceof Cr?s.valueOf():s;return t}),{});return m().stringify(t,{encode:!1,indices:!1})||""}function Rr(e={}){const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return Ar(t)||$r(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 Ir(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=Tr(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=m().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=m().stringify(e,{encode:!0})}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,Tr(r));e.url=n+o,delete e.query}return e}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||jr};var qr,Lr=(qr=function(e,t){return qr=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])},qr(e,t)},function(e,t){function r(){this.constructor=e}qr(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 zr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Hr(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Jr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Gr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Wr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Wr(e[t]))return!0}else if("object"==typeof e)for(var n=Vr(e),s=n.length,i=0;i<s;i++)if(Wr(e[n[i]]))return!0;return!1}function Kr(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,Kr(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=Kr(t,{name:r,index:n,operation:s,tree:i}),a}return Lr(t,e),t}(Error),Xr=Yr,Qr=zr,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=zr(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:zr(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 Hr(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=zr(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=Gr(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&&!Hr(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);Hr(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=zr(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)&&Wr(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(zr(t),zr(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=zr(e),t){r.callback=t,r.next=null;var i=function(){mn(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(){mn(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 mn(e,t){void 0===t&&(t=!1);var r=ln.get(e.object);dn(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 dn(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+"/"+Jr(p),value:zr(l)}),r.push({op:"remove",path:n+"/"+Jr(p)}),a=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?dn(l,u,r,n+"/"+Jr(p),s):l!==u&&(!0,s&&r.push({op:"test",path:n+"/"+Jr(p),value:zr(l)}),r.push({op:"replace",path:n+"/"+Jr(p),value:zr(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+"/"+Jr(p),value:zr(t[p])})}}}function yn(e,t,r){void 0===r&&(r=!1);var n=[];return dn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:Yr,deepClone:zr,escapePathComponent:Jr,unescapePathComponent:Gr});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=Tn(e,t.path);Object.assign(r,t.value),nn(e,[wn(t.path,r)])}else if("mergeDeep"===t.op){const r=Tn(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&&In(t)&&(Array.isArray(t.value)||$n(t.value))&&(n={...n,...t.meta}),e=n}else if(nn(e,[t]),r.allowMetaPatches&&t.meta&&In(t)&&(Array.isArray(t.value)||$n(t.value))){const r={...Tn(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:Pn,fullyNormalizeArray:function(e){return An(Pn(Sn(e)))},normalizeArray:Sn,isPromise:function(e){return $n(e)&&_n(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 Mn(e)&&"context"===e.type},isPatch:Mn,isMutation:Cn,isAdditiveMutation:In,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:_n,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 An(Pn(e.filter(In).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=Pn(n),n}function Sn(e){return Array.isArray(e)?e:[e]}function Pn(e){return[].concat(...e.map((e=>Array.isArray(e)?Pn(e):e)))}function An(e){return e.filter((e=>void 0!==e))}function $n(e){return e&&"object"==typeof e}function _n(e){return e&&"function"==typeof e}function kn(e){if(Mn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Cn(e){return kn(e)||Mn(e)&&"mutation"===e.type}function In(e){return Cn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Mn(e){return e&&"object"==typeof e}function Tn(e,t){try{return tn(e,t)}catch(e){return console.error(e),{}}}var Rn=r(5606);function Fn(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Dn(e){return function t(r){return 0===arguments.length||Fn(r)?t:e.apply(this,arguments)}}function Nn(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Fn(r)?t:Dn((function(t){return e(r,t)}));default:return Fn(r)&&Fn(n)?t:Fn(r)?Dn((function(t){return e(t,n)})):Fn(n)?Dn((function(t){return e(r,t)})):e(r,n)}}}function qn(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Fn(r)?t:Nn((function(t,n){return e(r,t,n)}));case 2:return Fn(r)&&Fn(n)?t:Fn(r)?Nn((function(t,r){return e(t,n,r)})):Fn(n)?Nn((function(t,n){return e(r,t,n)})):Dn((function(t){return e(r,n,t)}));default:return Fn(r)&&Fn(n)&&Fn(s)?t:Fn(r)&&Fn(n)?Nn((function(t,r){return e(t,r,s)})):Fn(r)&&Fn(s)?Nn((function(t,r){return e(t,n,r)})):Fn(n)&&Fn(s)?Nn((function(t,n){return e(r,t,n)})):Fn(r)?Dn((function(t){return e(t,n,s)})):Fn(n)?Dn((function(t){return e(r,t,s)})):Fn(s)?Dn((function(t){return e(r,n,t)})):e(r,n,s)}}}const Ln=Number.isInteger||function(e){return e<<0===e};function Bn(e){return"[object String]"===Object.prototype.toString.call(e)}const Un=Nn((function(e,t){var r=e<0?t.length+e:e;return Bn(t)?t.charAt(r):t[r]}));const Vn=Nn((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=Ln(r)?Un(r,n):n[r],s+=1}return n}))}));const zn=Nn((function(e,t){return Vn([e],t)[0]}));const Hn=qn((function(e,t,r){return e(zn(t,r))}));function Jn(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 Gn(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Wn(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function Kn(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Yn="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Xn=Object.prototype.toString;const Qn=function(){return"[object Arguments]"===Xn.call(arguments)?function(e){return"[object Arguments]"===Xn.call(e)}:function(e){return Kn("callee",e)}}();var Zn=!{toString:null}.propertyIsEnumerable("toString"),es=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ts=function(){return arguments.propertyIsEnumerable("length")}(),rs=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},ns="function"!=typeof Object.keys||ts?Dn((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=ts&&Qn(e);for(t in e)!Kn(t,e)||s&&"length"===t||(n[n.length]=t);if(Zn)for(r=es.length-1;r>=0;)Kn(t=es[r],e)&&!rs(n,t)&&(n[n.length]=t),r-=1;return n})):Dn((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ss=ns;const is=Dn((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function os(e,t,r,n){var s=Gn(e);function i(e,t){return as(e,t,r.slice(),n.slice())}return!Wn((function(e,t){return!Wn(i,t,e)}),Gn(t),s)}function as(e,t,r,n){if(Yn(e,t))return!0;var s,i,o=is(e);if(o!==is(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||!Yn(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Yn(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&&os(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&os(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=ss(e);if(c.length!==ss(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(!Kn(p,t)||!as(t[p],e[p],l,u))return!1;a-=1}return!0}const cs=Nn((function(e,t){return as(e,t,[],[])}));function ls(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(cs(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function us(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function ps(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 hs=function(e){return(e<10?"0":"")+e};const fs="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+hs(e.getUTCMonth()+1)+"-"+hs(e.getUTCDate())+"T"+hs(e.getUTCHours())+":"+hs(e.getUTCMinutes())+":"+hs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ms(e){return function(){return!e.apply(this,arguments)}}function ds(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const ys=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function gs(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!ys(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 vs(e){return"[object Object]"===Object.prototype.toString.call(e)}const bs=function(){return this.xf["@@transducer/init"]()},xs=function(e){return this.xf["@@transducer/result"](e)};var ws=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=bs,e.prototype["@@transducer/result"]=xs,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Es(e){return function(t){return new ws(e,t)}}const js=Nn(gs(["fantasy-land/filter","filter"],Es,(function(e,t){return vs(t)?ds((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},ss(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 Os=Nn((function(e,t){return js(ms(e),t)}));function Ss(e,t){var r=function(r){var n=t.concat([e]);return ls(r,n)?"<Circular>":Ss(r,n)},n=function(e,t){return us((function(t){return ps(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+us(r,e).join(", ")+"))";case"[object Array]":return"["+us(r,e).concat(n(e,Os((function(e){return/^\d+$/.test(e)}),ss(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):ps(fs(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())+")":ps(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,ss(e)).join(", ")+"}"}}const Ps=Dn((function(e){return Ss(e,[])}));var As=Nn((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 "+Ps(e));var r;return Jn(e).test(t)}));const $s=As;function _s(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 ks(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Cs=Dn((function(e){return!!ys(e)||!!e&&("object"==typeof e&&(!Bn(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Is="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ms(e,t,r){return function(n,s,i){if(Cs(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[Is])return r(n,s,i[Is]());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 Ts(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 Rs=Nn((function(e,t){return _s(e.length,(function(){return e.apply(t,arguments)}))}));function Fs(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 Ds(e,t,r,n){return e["@@transducer/result"](r[n](Rs(e["@@transducer/step"],e),t))}const Ns=Ms(Ts,Ds,Fs);var qs=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 Ls(e){return new qs(e)}const Bs=qn((function(e,t,r){return Ns("function"==typeof e?Ls(e):e,t,r)}));function Us(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return ys(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Vs=qn(Us("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const zs=Dn(Us("tail",Vs(1,1/0)));function Hs(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return _s(arguments[0].length,Bs(ks,arguments[0],zs(arguments)))}const Js=Nn((function(e,t){return null==t||t!=t?e:t}));const Gs=Nn((function(e,t){if(null!=t)return Ln(e)?Un(e,t):t[e]}));const Ws=qn((function(e,t,r){return Js(e,Gs(t,r))}));const Ks=Un(-1);function Ys(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&&(!Fn(t[o])||s>=arguments.length)?c=t[o]:(c=arguments[s],s+=1),n[o]=c,Fn(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):_s(Math.max(0,i),Ys(e,n,r))}}const Xs=Nn((function(e,t){return 1===e?Dn(t):_s(e,Ys(e,[],t))}));const Qs=Dn((function(e){return Xs(e.length,e)}));function Zs(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ei=Nn((function(e,t){return Xs(e+1,(function(){var r=arguments[e];if(null!=r&&Zs(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ps(r)+' does not have a method named "'+t+'"')}))}));const ti=ei(1,"split");function ri(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Vs(0,r+1,t)}var ni=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=bs,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=Ns(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 si(e){return function(t){return new ni(e,t)}}const ii=Nn(gs([],si,ri));const oi=ei(1,"join");const ai=Dn((function(e){return Xs(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}))(Nn(ls));const ci=Qs((function(e,t){return Hs(ti(""),ii(ai(e)),oi(""))(t)}));function li(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function ui(e,t,r,n){return r[n](e,t)}const pi=Ms(ds,ui,li);var hi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=bs,e.prototype["@@transducer/result"]=xs,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const fi=Nn(gs(["fantasy-land/map","map"],(function(e){return function(t){return new hi(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Xs(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return ds((function(r,n){return r[n]=e(t[n]),r}),{},ss(t));default:return us(e,t)}})));const mi=Nn((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))}:pi((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,fi(r,t))}),[],e)}));const di=Nn((function(e,t){var r=Xs(e,t);return Xs(e,(function(){return ds(mi,fi(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const yi=Dn((function(e){return di(e.length,e)}));const gi=yi(Dn((function(e){return!e})));const vi=Dn((function(e){return function(){return e}}));const bi=vi(void 0);const xi=cs(bi());const wi=gi(xi);const Ei=Nn((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=Ps(e),o=r(i,Ps(t));return void 0!==o&&o===i?e:t}));const ji=Nn((function(e,t){return fi(Gs(e),t)}));const Oi=Dn((function(e){return Xs(Bs(Ei,0,ji("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 Si=function(e,t){switch(arguments.length){case 0:return Si;case 1:return function t(r){return 0===arguments.length?t:Yn(e,r)};default:return Yn(e,t)}};const Pi=Si;const Ai=Xs(1,Hs(is,Pi("GeneratorFunction")));const $i=Xs(1,Hs(is,Pi("AsyncFunction")));const _i=Oi([Hs(is,Pi("Function")),Ai,$i]);var ki=qn((function(e,t,r){return r.replace(e,t)}));const Ci=ki;const Ii=Xs(1,Hs(is,Pi("RegExp")));const Mi=qn((function(e,t,r){return e(r)?t(r):r}));const Ti=Xs(1,Hs(is,Pi("String")));const Ri=Mi(Ti,Ci(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Fi=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const Di=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),Fi(r,"str"),Fi(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(Ii(e)?e:Ri(e),"g");return Ci(n,t,r)};var Ni=Xs(3,Di),qi=ei(2,"replaceAll");const Li=_i(String.prototype.replaceAll)?qi:Ni,Bi=()=>Hn($s(/^win/),["platform"],Rn),Ui=e=>{try{const t=new URL(e);return ci(":",t.protocol)}catch{return}},Vi=(Hs(Ui,wi),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),zi=e=>{if(Rn.browser)return!1;const t=Ui(e);return xi(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Hi=e=>{const t=Ui(e);return"http"===t||"https"===t},Ji=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Ws(!1,"keepFileProtocol",t),s=Ws(Bi,"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=Li("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Gi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Wi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Ki=()=>{if(Rn.browser)return Wi(globalThis.location.href);const e=Rn.cwd(),t=Ks(e);return["/","\\"].includes(t)?e:e+(Bi()?"\\":"/")},Yi=(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()},Xi=e=>{if(zi(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Bi()&&(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})(Ji(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Qi=e=>zi(e)?Ji(e):decodeURI(e);function Zi(e,t){function r(...e){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,[this.message]=e,t&&t.apply(this,e)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var eo=r(6623),to=r.n(eo);const ro=["properties"],no=["properties"],so=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],io=["schema/example","items/example"];function oo(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return ro.indexOf(t)>-1&&-1===no.indexOf(r)||so.indexOf(n)>-1||io.some((e=>n.indexOf(e)>-1))}function ao(e,t){const[r,n]=e.split("#"),s=t??"",i=r??"";let o;if(Hi(s))o=Yi(s,i);else{const e=Yi(p,s),t=Yi(e,i).replace(p,"");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const co=/^([a-z]+:\/\/|\/\/)/i,lo=Zi("JSONRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),uo={},po=new WeakMap,ho=[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]],fo={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(oo(i)||(e=>ho.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new lo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=bo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?go(c,o):null}catch(t){return vo(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=po.get(n);s||(s={},po.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(So).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&Ao(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${So(e)}`,s[l]&&s[l].some((e=>Ao(e,o)||Ao(o,e))))));if(u)return!0;return void(s[a]=(s[a]||[]).concat(o))}(l,u,i,n)&&!s.useCircularStructures){const t=ao(e,u);return e===t?null:bn.replace(r,t)}if(null==u?(h=jo(l),p=n.get(h),void 0===p&&(p=new lo(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=xo(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw vo(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[bn.remove(r),p];const f=ao(e,u),m=bn.replace(i,p,{$$ref:f});if(u&&u!==o)return[m,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,m)||s.useCircularStructures)return m}catch(e){return null}}},mo=Object.assign(fo,{docCache:uo,absoluteify:go,clearCache:function(e){void 0!==e?delete uo[e]:Object.keys(uo).forEach((e=>{delete uo[e]}))},JSONRefError:lo,wrapError:vo,getDoc:wo,split:bo,extractFromDoc:xo,fetchJSON:function(e){return fetch(e,{headers:{Accept:u},loadSpec:!0}).then((e=>e.text())).then((e=>ur.load(e)))},extract:Eo,jsonPointerToArray:jo,unescapeJsonPointerToken:Oo}),yo=mo;function go(e,t){if(!co.test(e)){if(!t)throw new lo(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Yi(t,e)}return e}function vo(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new lo(`Could not resolve reference: ${r}`,t,e)}function bo(e){return(e+"").split("#")}function xo(e,t){const r=uo[e];if(r&&!bn.isPromise(r))try{const e=Eo(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return wo(e).then((e=>Eo(t,e)))}function wo(e){const t=uo[e];return t?bn.isPromise(t)?t:Promise.resolve(t):(uo[e]=mo.fetchJSON(e).then((t=>(uo[e]=t,t))),uo[e])}function Eo(e,t){const r=jo(e);if(r.length<1)return t;const n=bn.getIn(t,r);if(void 0===n)throw new lo(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function jo(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(Oo)}function Oo(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function So(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const Po=e=>!e||"/"===e||"#"===e;function Ao(e,t){if(Po(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const $o={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(oo(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 to()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=ao(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}},_o={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)}},ko={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 Co{constructor(e){this.root=Io(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Mo(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Mo(s[n],t,r):s[n]=Io(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]=Io(null,e)),n[r]}),this.root)}}function Io(e,t){return Mo({children:{}},e,t)}function Mo(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]=Mo(r,r.value,e)})),e}const To=()=>{};class Ro{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 Co,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),m=bn.isObject(u),d=n.$$ref;if(f||m&&(s.allowMetaPatches&&d&&(i[d]=!0),yield*o(u,p,c)),!h&&l===e.key){const n=t(r,a);r&&!n||(yield e.plugin(u,l,p,s,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator: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(To,To)))).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 Fo={refs:yo,allOf:$o,parameters:_o,properties:ko},Do=e=>e.replace(/\W/gi,"_");function No(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Do(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()}${Do(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function qo(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=No(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 Lo(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&&(Fo.refs.docCache[p]=e);Fo.refs.fetchJSON=Fr(h,{requestInterceptor:a,responseInterceptor:c});const t=[Fo.refs];"function"==typeof o&&t.push(Fo.parameters);"function"==typeof i&&t.push(Fo.properties);"strict"!==r&&t.push(Fo.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Ro(f).dispatch()).then(l?async e=>e:qo);var f}(t)}const Bo={name:"generic",match:()=>!0,normalize({spec:e}){const{spec:t}=qo({spec:e});return t},resolve:async e=>Lo(e)};const Uo=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},Vo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},zo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Ho=e=>Vo(e)||zo(e),Jo={name:"openapi-2",match:({spec:e})=>Uo(e),normalize({spec:e}){const{spec:t}=qo({spec:e});return t},resolve:async e=>async function(e){return Lo(e)}(e)};const Go={name:"openapi-3-0",match:({spec:e})=>Vo(e),normalize({spec:e}){const{spec:t}=qo({spec:e});return t},resolve:async e=>async function(e){return Lo(e)}(e)},Wo=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}),Ko=Wo({strategies:[Go,Jo,Bo]}),Yo=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 Ko({...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});Yo({strategies:[Go,Jo,Bo]});var Xo=r(4035);class Qo extends Xo.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 Zo=Qo;class ea extends Xo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const ta=ea;class ra extends Xo.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(xi(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const na=ra;class sa extends Xo.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 Xo.wE([e.start.row,e.start.column,e.start.char]),r=new Xo.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const ia=sa;const oa=qn((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})Kn(n,t)&&(s[n]=Kn(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)Kn(n,r)&&!Kn(n,s)&&(s[n]=r[n]);return s}));const aa=qn((function e(t,r,n){return oa((function(r,n,s){return vs(n)&&vs(s)?e(t,n,s):t(r,n,s)}),r,n)}));const ca=Nn((function(e,t){return aa((function(e,t,r){return r}),e,t)}));const la=Vs(0,-1);const ua=Nn((function(e,t){return e.apply(this,t)}));const pa=gi(_i);const ha=Nn((function(e,t){return e&&t}));const fa=Nn((function(e,t){return Zs(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:yi(ha)(e,t)}));var ma=Dn((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():ys(e)?[]:Bn(e)?"":vs(e)?{}:Qn(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 da=ma;const ya=Dn((function(e){return null!=e&&cs(e,da(e))}));const ga=Xs(1,_i(Array.isArray)?Array.isArray:Hs(is,Pi("Array")));const va=fa(ga,ya);var ba=Xs(3,(function(e,t,r){var n=zn(e,r),s=zn(la(e),r);if(!pa(n)&&!va(e)){var i=Rs(n,s);return ua(i,t)}}));const xa=ba;function wa(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Ea=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=bs,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=wa(this.xf["@@transducer/step"](e,!1))),e},e}();function ja(e){return function(t){return new Ea(e,t)}}const Oa=Nn(gs(["all"],ja,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),Sa=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Pa=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Aa=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),$a=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Xo.wE)&&t.classes.includes(e),_a=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ka=e=>e({hasMethod:Sa,hasBasicElementProps:Pa,primitiveEq:Aa,isElementType:_a,hasClass:$a}),Ca=ka((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.Hg||e(r)&&t(void 0,r))),Ia=ka((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.Om||e(r)&&t("string",r))),Ma=ka((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.kT||e(r)&&t("number",r))),Ta=ka((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.Os||e(r)&&t("null",r))),Ra=ka((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.bd||e(r)&&t("boolean",r))),Fa=ka((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Xo.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Da=ka((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Xo.wE&&!(n instanceof Xo.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Na=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xo.Pr||e(n)&&t("member",n)&&r(void 0,n))),qa=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xo.Ft||e(n)&&t("link",n)&&r(void 0,n))),La=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xo.sI||e(n)&&t("ref",n)&&r(void 0,n))),Ba=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zo||e(n)&&t("annotation",n)&&r("array",n))),Ua=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ta||e(n)&&t("comment",n)&&r("string",n))),Va=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof na||e(n)&&t("parseResult",n)&&r("array",n))),za=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ia||e(n)&&t("sourceMap",n)&&r("array",n))),Ha=e=>_a("object",e)||_a("array",e)||_a("boolean",e)||_a("number",e)||_a("string",e)||_a("null",e)||_a("member",e),Ja=e=>za(e.meta.get("sourceMap")),Ga=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Da(r)&&Oa(ai(r.toValue()),e)},Wa=(e,t)=>0===e.length||Oa(ai(t.classes.toValue()),e);const Ka=cs(null);const Ya=gi(Ka);function Xa(e){return Xa="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},Xa(e)}const Qa=function(e){return"object"===Xa(e)};const Za=Xs(1,fa(Ya,Qa));var ec=Hs(is,Pi("Object")),tc=Hs(Ps,cs(Ps(Object))),rc=Hn(fa(_i,tc),["constructor"]);const nc=Xs(1,(function(e){if(!Za(e)||!ec(e))return!1;var t=Object.getPrototypeOf(e);return!!Ka(t)||rc(t)}));class sc extends Xo.g${constructor(){super(),this.register("annotation",Zo),this.register("comment",ta),this.register("parseResult",na),this.register("sourceMap",ia)}}const ic=new sc,oc=e=>{const t=new sc;return nc(e)&&t.use(e),t},ac=ic,cc=()=>({predicates:{...i},namespace:ac});const lc=function(){return!1};var uc=r(8675);const pc=class extends uc{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 hc extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(pc,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 fc=hc;const mc=class extends fc{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},dc=(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},yc={},gc=e=>null==e?void 0:e.type,vc=e=>"string"==typeof gc(e),bc=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),xc=(e,{visitFnGetter:t=dc,nodeTypeGetter:r=gc,breakSymbol:n=yc,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(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(t===n)c[l]=n;else if(void 0!==t&&t!==i)return t}}else c[l]===s&&(c[l]=a)}}},wc=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=yc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=dc,nodeTypeGetter:c=gc,nodePredicate:l=vc,nodeCloneFn:u=bc,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=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=m,m=w.pop(),j)if(d){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,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new mc(`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=i.call(t,b,r,m,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:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(E=h[c(b)])&&void 0!==E?E:[],g=-1,v=[],m!==i&&void 0!==m&&w.push(m),m=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};wc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=yc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=dc,nodeTypeGetter:c=gc,nodePredicate:l=vc,nodeCloneFn:u=bc,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=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=m,m=w.pop(),j)if(d){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,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new mc(`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,m,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:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(E=h[c(b)])&&void 0!==E?E:[],g=-1,v=[],m!==i&&void 0!==m&&w.push(m),m=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};const Ec=class extends mc{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const jc=class extends Ec{};const Oc=class extends Ec{},Sc=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Xo.KeyValuePair){const{key:t,value:s}=e,i=Ca(t)?Sc(t,n):t,o=Ca(s)?Sc(s,n):s,a=new Xo.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Xo.ot){const t=e=>Sc(e,n),s=[...e].map(t),i=new Xo.ot(s);return r.set(e,i),i}if(e instanceof Xo.G6){const t=e=>Sc(e,n),s=[...e].map(t),i=new Xo.G6(s);return r.set(e,i),i}if(Ca(e)){const t=$c(e);if(r.set(e,t),e.content)if(Ca(e.content))t.content=Sc(e.content,n);else if(e.content instanceof Xo.KeyValuePair)t.content=Sc(e.content,n);else if(Array.isArray(e.content)){const r=e=>Sc(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new jc("Value provided to cloneDeep function couldn't be cloned",{value:e})};Sc.safe=e=>{try{return Sc(e)}catch{return e}};const Pc=e=>{const{key:t,value:r}=e;return new Xo.KeyValuePair(t,r)},Ac=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Sc(e.meta)),e.attributes.length>0&&(t._attributes=Sc(e.attributes)),Ca(e.content)){const r=e.content;t.content=Ac(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Xo.KeyValuePair?t.content=Pc(e.content):t.content=e.content;return t},$c=e=>{if(e instanceof Xo.KeyValuePair)return Pc(e);if(e instanceof Xo.ot)return(e=>{const t=[...e];return new Xo.ot(t)})(e);if(e instanceof Xo.G6)return(e=>{const t=[...e];return new Xo.G6(t)})(e);if(Ca(e))return Ac(e);throw new Oc("Value provided to cloneShallow function couldn't be cloned",{value:e})};$c.safe=e=>{try{return $c(e)}catch{return e}};const _c=e=>Fa(e)?"ObjectElement":Da(e)?"ArrayElement":Na(e)?"MemberElement":Ia(e)?"StringElement":Ra(e)?"BooleanElement":Ma(e)?"NumberElement":Ta(e)?"NullElement":qa(e)?"LinkElement":La(e)?"RefElement":void 0,kc=e=>Ca(e)?$c(e):bc(e),Cc=Hs(_c,Ti),Ic={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Mc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=lc,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 Tc=(e,t,{keyMap:r=Ic,...n}={})=>wc(e,t,{keyMap:r,nodeTypeGetter:_c,nodePredicate:Cc,nodeCloneFn:kc,...n});Tc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Ic,...n}={})=>wc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:_c,nodePredicate:Cc,nodeCloneFn:kc,...n});const Rc={toolboxCreator:cc,visitorOptions:{nodeTypeGetter:_c,exposeEdits:!0}},Fc=(e,t,r={})=>{if(0===t.length)return e;const n=ca(Rc,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=xc(a.map(Ws({},"visitor")),{...i});a.forEach(xa(["pre"],[]));const l=Tc(e,c,i);return a.forEach(xa(["post"],[])),l},Dc=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Ca(e)&&(e.meta.length>0&&(n.meta=Sc(e.meta)),e.attributes.length>0&&(n.attributes=Sc(e.attributes))),Fc(n,r,{toolboxCreator:cc,visitorOptions:{nodeTypeGetter:_c}})},Nc=e=>(t,r={})=>Dc(t,{...r,Type:e});Xo.Sh.refract=Nc(Xo.Sh),Xo.wE.refract=Nc(Xo.wE),Xo.Om.refract=Nc(Xo.Om),Xo.bd.refract=Nc(Xo.bd),Xo.Os.refract=Nc(Xo.Os),Xo.kT.refract=Nc(Xo.kT),Xo.Ft.refract=Nc(Xo.Ft),Xo.sI.refract=Nc(Xo.sI),Zo.refract=Nc(Zo),ta.refract=Nc(ta),na.refract=Nc(na),ia.refract=Nc(ia);const qc=(e,t=new WeakMap)=>(Na(e)?(t.set(e.key,e),qc(e.key,t),t.set(e.value,e),qc(e.value,t)):e.children.forEach((r=>{t.set(r,e),qc(r,t)})),t);const Lc=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:qc(this.element);const n=this.edges.get(e);return xi(n)?void 0:(Fa(n)?((e,t,r)=>{const n=r.get(e);Fa(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(e,t,this.edges):Da(n)?((e,t,r)=>{const n=r.get(e);Da(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(e,t,this.edges):Na(n)&&((e,t,r)=>{const n=r.get(e);Na(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(e,t,this.edges),this.element)}};const Bc=function(){return!0},Uc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:_c(e),Vc={EphemeralObject:["content"],EphemeralArray:["content"],...Ic},zc=(e,t,{keyMap:r=Vc,...n}={})=>Tc(e,t,{keyMap:r,nodeTypeGetter:Uc,nodePredicate:Bc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});zc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Vc,...r}={})=>Tc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Uc,nodePredicate:Bc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Hc=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 Jc=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 Gc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Jc(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 Hc(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}}const Wc=e=>Ca(e)?Ia(e)||Ma(e)||Ra(e)||Ta(e)?e.toValue():zc(e,new Gc):e,Kc=Hs(Ci(/~/g,"~0"),Ci(/\//g,"~1"),encodeURIComponent);const Yc=class extends mc{};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(Kc).join("/")}`}catch(t){throw new Xc("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var Zc=Nn((function(e,t){return Xs(Bs(Ei,0,ji("length",t)),(function(){var r=arguments,n=this;return e.apply(n,us((function(e){return e.apply(n,r)}),t))}))}));const el=Zc;function tl(e){return e}const rl=Dn(tl);var nl=fa(Xs(1,Hs(is,Pi("Number"))),isFinite);var sl=Xs(1,nl);var il=fa(_i(Number.isFinite)?Xs(1,Rs(Number.isFinite,Number)):sl,el(cs,[Math.floor,rl]));var ol=Xs(1,il);const al=_i(Number.isInteger)?Xs(1,Rs(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"]=bs,e.prototype["@@transducer/result"]=xs,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?wa(r):r},e}();function ll(e){return function(t){return new cl(e,t)}}const ul=Nn(gs(["take"],ll,(function(e,t){return Vs(0,e<0?1/0:e,t)})));const pl=Nn((function(e,t){return cs(ul(e.length,t),e)}));const hl=cs("");var fl=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=bs,e.prototype["@@transducer/result"]=xs,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 ml(e){return function(t){return new fl(e,t)}}const dl=Nn(gs(["dropWhile"],ml,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Vs(r,1/0,t)})));const yl=Qs((function(e,t){return Hs(ti(""),dl(ai(e)),oi(""))(t)})),gl=Hs(Ci(/~1/g,"/"),Ci(/~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=Hs(ti("/"),fi(gl))(e);return zs(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:Sc(t),cause:r})}return r.reduce(((t,n,s)=>{if(Fa(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:Sc(t)});return t.get(n)}if(Da(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:Sc(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:Sc(t)})}),t)};class jl extends Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ol=jl;class Sl extends Xo.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 Pl=Sl;class Al extends Xo.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=Al;class _l extends Xo.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=_l;class Cl extends Xo.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 Il=Cl;class Ml extends Xo.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 Tl=Ml;class Rl extends Xo.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 Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Xo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Xo.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 ql extends Xo.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 Ll=ql;class Bl extends Xo.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 Xo.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 Ia(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ia(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 zl=Vl;class Hl extends Xo.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 Jl=Hl;class Gl extends Xo.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 Wl=Gl;class Kl extends Xo.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=Kl;class Xl extends Xo.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 Xo.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 Xo.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 Xo.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 Xo.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 Xo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Xo.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 Xo.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 Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const cu=au;class lu extends Xo.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 Xo.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 Xo.bd(!1)}set required(e){this.set("required",e)}}const hu=pu;class fu extends Xo.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 mu=fu;class du extends Xo.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=du;const gu=class extends fc{};class vu extends Xo.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 Xo.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 Xo.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 Xo.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 Pu=Nn((function(e,t){return ds((function(r,n){return r[n]=e(t[n],n,t),r}),{},ss(t))}));const Au=Dn((function(e){return null==e}));const $u=Nn((function(e,t){if(0===e.length||Au(t))return!1;for(var r=t,n=0;n<e.length;){if(Au(r)||!Kn(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));var _u=Nn((function(e,t){return $u([e],t)}));const ku=_u;const Cu=qn((function(e,t,r){return e(Gs(t,r))})),Iu=(e,t)=>{const r=Js(e,t);return Pu((e=>{if(nc(e)&&ku("$ref",e)&&Cu(Ti,"$ref",e)){const t=zn(["$ref"],e),n=yl("#/",t);return zn(n.split("/"),r)}return nc(e)?Iu(e,r):e}),e)};var Mu=r(2646);const Tu=e=>{const t=e.meta.length>0?Sc(e.meta):void 0,r=e.attributes.length>0?Sc(e.attributes):void 0;return new e.constructor(void 0,t,r)},Ru=(e,t)=>t.clone&&t.isMergeableElement(e)?qu(Tu(e),e,t):e,Fu=e=>"function"!=typeof e.customMetaMerge?e=>Sc(e):e.customMetaMerge,Du=e=>"function"!=typeof e.customAttributesMerge?e=>Sc(e):e.customAttributesMerge,Nu={clone:!0,isMergeableElement:e=>Fa(e)||Da(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Ru(e,r))),objectElementMerge:(e,t,r)=>{const n=Fa(e)?Tu(e):Tu(t);return Fa(e)&&e.forEach(((e,t,s)=>{const i=$c(s);i.value=Ru(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=Wc(s);let a;if(Fa(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=$c(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return qu;const r=t.customMerge(e,t);return"function"==typeof r?r:qu})(s,r)(n,t)}else a=$c(i),a.value=Ru(t,r);n.remove(o),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function qu(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=Da(t);if(!(a===Da(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}qu.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Xo.Sh:e.reduce(((e,r)=>qu(e,r,t)),Tu(e[0]))};const Lu=Mu({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=qu(t.meta,e.meta),Ja(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=qu(t.attributes,e.attributes))}}}),Bu=Lu,Uu=Mu(Bu,{methods:{enter(e){return this.element=Sc(e),yc}}});const Vu=vi(bi());const zu=Nn((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})),Hu=Mu(Bu,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return zu(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=zn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Hn(_i,["visitors",...e],this.specObj)?zn(["visitors",...e],this.specObj):zn(["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),s=Object.getPrototypeOf(n);return xi(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?Sc(t):(Tc(t,n,r),n.element)}}}),Ju=Mu(Hu,{props:{specPath:Vu,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Ia(n)&&r.includes(Wc(n))&&!this.ignoredFields.includes(Wc(n))){const r=this.toRefractedElement([...t,"fixedFields",Wc(n)],e),i=new Xo.Pr(Sc(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Wc(n))||this.element.content.push(Sc(s))})),this.copyMetaAndAttributes(e,this.element),yc}}}),Gu=Mu(Ju,Uu,{props:{specPath:vi(["document","objects","JSONSchema"])},init(){this.element=new bu}}),Wu=Uu,Ku=Uu,Yu=Uu,Xu=Uu,Qu=Uu,Zu=Uu,ep=Uu,tp=Uu,rp=Uu,np=Uu,sp=Mu({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ip=e=>Fa(e)&&e.hasKey("$ref"),op=Mu(Hu,sp,Uu,{methods:{ObjectElement(e){const t=ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),yc},ArrayElement(e){return this.element=new Xo.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}}),ap=Uu,cp=Uu,lp=Uu,up=Uu,pp=Uu,hp=Mu(Uu,{methods:{ArrayElement(e){return this.element=Sc(e),this.element.classes.push("json-schema-required"),yc}}});const fp=Dn((function(e){return Xs(Bs(Ei,0,ji("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 mp=Nn((function(e,t){return e||t}));const dp=gi(Xs(1,fa(Ya,Nn((function(e,t){return Zs(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:yi(mp)(e,t)}))(Qa,_i))));const yp=gi(ya);const gp=fp([Ti,dp,yp]),vp=Mu(Hu,{props:{fieldPatternPredicate:lc,specPath:Vu,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Wc(t))&&this.fieldPatternPredicate(Wc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Xo.Pr(Sc(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Wc(t))||this.element.content.push(Sc(r))})),this.copyMetaAndAttributes(e,this.element),yc}}}),bp=Mu(vp,{props:{fieldPatternPredicate:gp}}),xp=Mu(bp,sp,Uu,{props:{specPath:e=>ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.Sh,this.element.classes.push("json-schema-properties")}}),wp=Mu(bp,sp,Uu,{props:{specPath:e=>ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.Sh,this.element.classes.push("json-schema-patternProperties")}}),Ep=Mu(bp,sp,Uu,{props:{specPath:e=>ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.Sh,this.element.classes.push("json-schema-dependencies")}}),jp=Mu(Uu,{methods:{ArrayElement(e){return this.element=Sc(e),this.element.classes.push("json-schema-enum"),yc}}}),Op=Mu(Uu,{methods:{StringElement(e){return this.element=Sc(e),this.element.classes.push("json-schema-type"),yc},ArrayElement(e){return this.element=Sc(e),this.element.classes.push("json-schema-type"),yc}}}),Sp=Mu(Hu,sp,Uu,{init(){this.element=new Xo.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}}),Pp=Mu(Hu,sp,Uu,{init(){this.element=new Xo.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}}),Ap=Mu(Hu,sp,Uu,{init(){this.element=new Xo.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}}),$p=Mu(bp,sp,Uu,{props:{specPath:e=>ip(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.Sh,this.element.classes.push("json-schema-definitions")}}),_p=Uu,kp=Uu,Cp=Uu,Ip=Uu,Mp=Uu,Tp=Mu(Hu,sp,Uu,{init(){this.element=new Xo.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),yc}}}),Rp=Uu,Fp=Mu(Ju,Uu,{props:{specPath:vi(["document","objects","JSONReference"])},init(){this.element=new wu},methods:{ObjectElement(e){const t=Ju.compose.methods.ObjectElement.call(this,e);return Ia(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Dp=Mu(Uu,{methods:{StringElement(e){return this.element=Sc(e),this.element.classes.push("reference-value"),yc}}});const Np=qn((function(e,t,r){return Xs(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const qp=Dn((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Lp=Nn((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Bp=Lp;const Up=Un(0);const Vp=Dn(wa);const zp=gi(Au);const Hp=fa(ga,yp);function Jp(e){return function(e){if(Array.isArray(e))return Gp(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 Gp(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 Gp(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 Gp(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 Wp=Hs(Bp(qp((function(e,t){return e.length>t.length}))),Up,Gs("length")),Kp=Qs((function(e,t,r){var n=r.apply(void 0,Jp(e));return zp(n)?Vp(n):t}));const Yp=Np(Hp,(function(e){var t=Wp(e);return Xs(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Bs(Kp(r),void 0,e)}))}),bi),Xp=Mu(Hu,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Np(e,vi(t),bi))),r=Yp(t)(e);return this.element=this.toRefractedElement(r,e),yc}}}),Qp=Mu(Xp,{props:{alternator:[{predicate:ip,specPath:["document","objects","JSONReference"]},{predicate:Bc,specPath:["document","objects","JSONSchema"]}]}}),Zp={visitors:{value:Uu,JSONSchemaOrJSONReferenceVisitor:Qp,document:{objects:{JSONSchema:{$visitor:Gu,fixedFields:{id:Wu,$schema:Ku,multipleOf:Yu,maximum:Xu,exclusiveMaximum:Qu,minimum:Zu,exclusiveMinimum:ep,maxLength:tp,minLength:rp,pattern:np,additionalItems:Qp,items:op,maxItems:ap,minItems:cp,uniqueItems:lp,maxProperties:up,minProperties:pp,required:hp,properties:xp,additionalProperties:Qp,patternProperties:wp,dependencies:Ep,enum:jp,type:Op,allOf:Sp,anyOf:Pp,oneOf:Ap,not:Qp,definitions:$p,title:_p,description:kp,default:Cp,format:Ip,base:Mp,links:Tp,media:{$ref:"#/visitors/document/objects/Media"},readOnly:Rp}},JSONReference:{$visitor:Fp,fixedFields:{$ref:Dp}},Media:{$visitor:Mu(Ju,Uu,{props:{specPath:vi(["document","objects","Media"])},init(){this.element=new ju}}),fixedFields:{binaryEncoding:Uu,type:Uu}},LinkDescription:{$visitor:Mu(Ju,Uu,{props:{specPath:vi(["document","objects","LinkDescription"])},init(){this.element=new Su}}),fixedFields:{href:Uu,rel:Uu,title:Uu,targetSchema:Qp,mediaType:Uu,method:Uu,encType:Uu,schema:Qp}}}}}},eh=e=>{if(Ca(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},th={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Ic},rh=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),nh=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wu||e(n)&&t("JSONReference",n)&&r("object",n))),sh=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ju||e(n)&&t("media",n)&&r("object",n))),ih=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Su||e(n)&&t("linkDescription",n)&&r("object",n))),oh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",bu),t.register("jSONReference",wu),t.register("media",ju),t.register("linkDescription",Su),t}},ah=()=>{const e=oc(oh);return{predicates:{...o,isStringElement:Ia},namespace:e}},ch=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Zp}={})=>{const s=(0,Xo.e)(e),i=Iu(n),o=xa(t,[],i);return Tc(s,o,{state:{specObj:i}}),Fc(o.element,r,{toolboxCreator:ah,visitorOptions:{keyMap:th,nodeTypeGetter:eh}})},lh=e=>(t,r={})=>ch(t,{specPath:e,...r});bu.refract=lh(["visitors","document","objects","JSONSchema","$visitor"]),wu.refract=lh(["visitors","document","objects","JSONReference","$visitor"]),ju.refract=lh(["visitors","document","objects","Media","$visitor"]),Su.refract=lh(["visitors","document","objects","LinkDescription","$visitor"]);const uh=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 ph extends Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const hh=ph;class fh extends Xo.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 mh=fh;class dh extends Xo.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 yh=dh;class gh extends Xo.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 vh=gh;class bh extends Xo.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 xh=bh;class wh extends Xo.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 Eh=wh,jh=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},Oh=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Oh(r,[...t,r])},Sh=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Oh(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=Oh(s);for(let t of e){let e=Oh(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(jh(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},Ph=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Ah=(e,t)=>{const r=t.map((e=>Oh(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++}},$h=(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(Ah(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==Ah(n,e)||void 0!==t[n],get:(r,n)=>(Ah(n,e)||t)[n],set(t,r,n){const s=Ah(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)))))}),_h=null,kh="copy",Ch="copy",Ih="deep",Mh=new Map,Th=e=>Mh.get(e),Rh=(e,t)=>{var r,n;const s=Ph([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Ph([...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},Fh=(e,t)=>{var r,n,s,i;return{property:Rh(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:Rh(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Dh=(e,t)=>{var r,n,s,i,o,a;return{class:Ph([...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:Fh(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:Fh(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Nh=new Map,qh=(...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=[...Oh(e.prototype).map((e=>e.constructor)),...null!==(t=Th(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=>Nh.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Dh(e,t)))},Lh=e=>{let t=Nh.get(e);return t||(t={},Nh.set(e,t)),t};function Bh(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=_h;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)jh(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Ch?Sh(s,o):(a=s,c=o,$h([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===kh?Sh(e,null,["prototype"]):$h(e,Function.prototype));let l=o;if("none"!==Ih){const s="deep"===Ih?qh(...e):((...e)=>{const t=e.map((e=>Lh(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Dh(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)}Uh(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},l),Uh(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},l.prototype)}var u,p;return u=l,p=e,Mh.set(u,p),l}const Uh=(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 Vh=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=qu(t.meta,e.meta),Ja(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=qu(t.attributes,e.attributes))}};const zh=class extends Vh{enter(e){return this.element=Sc(e),yc}};const Hh=class extends Vh{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 zu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=zn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Hn(_i,["visitors",...e],this.specObj)?zn(["visitors",...e],this.specObj):zn(["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 zh&&(null==n?void 0:n.constructor)===zh?Sc(t):(Tc(t,n,r),n.element)}},Jh=e=>Fa(e)&&e.hasKey("$ref"),Gh=Fa,Wh=Fa,Kh=e=>Ia(e.key)&&pl("x-",Wc(e.key));const Yh=class extends Hh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Kh;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(Ia(n)&&r.includes(Wc(n))&&!this.ignoredFields.includes(Wc(n))){const r=this.toRefractedElement([...t,"fixedFields",Wc(n)],e),i=new Xo.Pr(Sc(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(Wc(n))||this.element.content.push(Sc(s))})),this.copyMetaAndAttributes(e,this.element),yc}};class Xh extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new eu,this.specPath=vi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Yh.prototype.ObjectElement.call(this,e)}}const Qh=Xh;class Zh extends(Bh(Hh,zh)){StringElement(e){const t=new Ql(Wc(e));return this.copyMetaAndAttributes(e,t),this.element=t,yc}}const ef=Zh;const tf=class extends Hh{MemberElement(e){return this.element=Sc(e),this.element.classes.push("specification-extension"),yc}};class rf extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Ll,this.specPath=vi(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const nf=rf;const sf=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class of extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new $l,this.specPath=vi(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const af=of;class cf extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Ul,this.specPath=vi(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const lf=cf;class uf extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new zl,this.specPath=vi(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return(Ia(this.element.operationId)||Ia(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const pf=uf;const hf=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const ff=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const mf=class extends Hh{specPath;ignoredFields;fieldPatternPredicate=lc;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Kh;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(Wc(t))&&this.fieldPatternPredicate(Wc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Xo.Pr(Sc(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Wc(t))||this.element.content.push(Sc(r))})),this.copyMetaAndAttributes(e,this.element),yc}};const df=class extends mf{constructor(e){super(e),this.fieldPatternPredicate=gp}};class yf extends Xo.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(yf.primaryClass)}}const gf=yf;class vf extends(Bh(df,zh)){constructor(e){super(e),this.element=new gf,this.specPath=vi(["value"])}}const bf=vf;class xf extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new yh,this.specPath=vi(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const wf=xf;const Ef=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class jf extends Xo.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(jf.primaryClass)}}const Of=jf;class Sf extends(Bh(Hh,zh)){constructor(e){super(e),this.element=new Of}ArrayElement(e){return e.forEach((e=>{const t=Gh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}const Pf=Sf;class Af extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new vh,this.specPath=vi(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const $f=Af;class _f extends Xo.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(_f.primaryClass)}}const kf=_f;class Cf extends(Bh(df,zh)){constructor(e){super(e),this.element=new kf,this.specPath=vi(["document","objects","ServerVariable"])}}const If=Cf;class Mf extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Jl,this.specPath=vi(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Tf=Mf;const Rf=class extends Hh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Np(e,vi(t),bi))),r=Yp(t)(e);return this.element=this.toRefractedElement(r,e),yc}},Ff=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ol||e(n)&&t("callback",n)&&r("object",n))),Df=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pl||e(n)&&t("components",n)&&r("object",n))),Nf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $l||e(n)&&t("contact",n)&&r("object",n))),qf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tl||e(n)&&t("example",n)&&r("object",n))),Lf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fl||e(n)&&t("externalDocumentation",n)&&r("object",n))),Bf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nl||e(n)&&t("header",n)&&r("object",n))),Uf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ll||e(n)&&t("info",n)&&r("object",n))),Vf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ul||e(n)&&t("license",n)&&r("object",n))),zf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zl||e(n)&&t("link",n)&&r("object",n))),Hf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("openapi",n)&&r("string",n))),Jf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof eu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),Gf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ru||e(n)&&t("operation",n)&&r("object",n))),Wf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof su||e(n)&&t("parameter",n)&&r("object",n))),Kf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ou||e(n)&&t("pathItem",n)&&r("object",n))),Yf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cu||e(n)&&t("paths",n)&&r("object",n))),Xf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uu||e(n)&&t("reference",n)&&r("object",n))),Qf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hu||e(n)&&t("requestBody",n)&&r("object",n))),Zf=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mu||e(n)&&t("response",n)&&r("object",n))),em=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yu||e(n)&&t("responses",n)&&r("object",n))),tm=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uh||e(n)&&t("schema",n)&&r("object",n))),rm=e=>Ra(e)&&e.classes.includes("boolean-json-schema"),nm=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hh||e(n)&&t("securityRequirement",n)&&r("object",n))),sm=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mh||e(n)&&t("securityScheme",n)&&r("object",n))),im=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yh||e(n)&&t("server",n)&&r("object",n))),om=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vh||e(n)&&t("serverVariable",n)&&r("object",n))),am=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jl||e(n)&&t("mediaType",n)&&r("object",n))),cm=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Of||e(s)&&t("array",s)&&r("array",s)&&n("servers",s)));class lm extends(Bh(Rf,zh)){constructor(e){super(e),this.alternator=[{predicate:Jh,specPath:["document","objects","Reference"]},{predicate:Bc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Rf.prototype.enter.call(this,e);return Xf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const um=lm;class pm extends(Bh(df,zh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("examples"),this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const hm=pm;class fm extends Xo.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(fm.primaryClass),this.classes.push("examples")}}const mm=fm;const dm=class extends hm{constructor(e){super(e),this.element=new mm}};class ym extends Xo.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(ym.primaryClass)}}const gm=ym;class vm extends(Bh(df,zh)){constructor(e){super(e),this.element=new gm,this.specPath=vi(["document","objects","Encoding"])}}const bm=vm;class xm extends(Bh(df,zh)){constructor(e){super(e),this.element=new hh,this.specPath=vi(["value"])}}const wm=xm;class Em extends Xo.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Em.primaryClass)}}const jm=Em;class Om extends(Bh(Hh,zh)){constructor(e){super(e),this.element=new jm}ArrayElement(e){return e.forEach((e=>{if(Fa(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Sc(e))})),this.copyMetaAndAttributes(e,this.element),yc}}const Sm=Om;class Pm extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Pl,this.specPath=vi(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Am=Pm;class $m extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new xh,this.specPath=vi(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const _m=$m;class km extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new uu,this.specPath=vi(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return Ia(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Cm=km;const Im=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Mm extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new su,this.specPath=vi(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return Fa(this.element.contentProp)&&this.element.contentProp.filter(am).forEach(((e,t)=>{e.setMetaProperty("media-type",Wc(t))})),t}}const Tm=Mm;class Rm extends(Bh(Rf,zh)){constructor(e){super(e),this.alternator=[{predicate:Jh,specPath:["document","objects","Reference"]},{predicate:Bc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Rf.prototype.enter.call(this,e);return Xf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Fm=Rm;class Dm extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Nl,this.specPath=vi(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Nm=Dm;class qm extends(Bh(Rf,zh)){constructor(e){super(e),this.alternator=[{predicate:Jh,specPath:["document","objects","Reference"]},{predicate:Bc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Rf.prototype.enter.call(this,e);return Xf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Lm=qm;class Bm extends Xo.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Bm.primaryClass),this.classes.push("examples")}}const Um=Bm;const Vm=class extends hm{constructor(e){super(e),this.element=new Um}};class zm extends(Bh(df,zh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("content"),this.specPath=vi(["document","objects","MediaType"])}}const Hm=zm;class Jm extends Xo.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Jm.primaryClass),this.classes.push("content")}}const Gm=Jm;const Wm=class extends Hm{constructor(e){super(e),this.element=new Gm}};class Km extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new uh,this.specPath=vi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Ym=Km,{allOf:Xm}=Zp.visitors.document.objects.JSONSchema.fixedFields,Qm=Xm.compose({methods:{ArrayElement(e){const t=Xm.compose.methods.ArrayElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Zm}=Zp.visitors.document.objects.JSONSchema.fixedFields,ed=Zm.compose({methods:{ArrayElement(e){const t=Zm.compose.methods.ArrayElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:td}=Zp.visitors.document.objects.JSONSchema.fixedFields,rd=td.compose({methods:{ArrayElement(e){const t=td.compose.methods.ArrayElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:nd}=Zp.visitors.document.objects.JSONSchema.fixedFields,sd=nd.compose({methods:{ObjectElement(e){const t=nd.compose.methods.ObjectElement.call(this,e);return Xf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=Sc(e),yc}}}),{properties:id}=Zp.visitors.document.objects.JSONSchema.fixedFields,od=id.compose({methods:{ObjectElement(e){const t=id.compose.methods.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:ad}=Zp.visitors.document.objects.JSONSchema.fixedFields,cd=ad.compose({methods:{ArrayElement(e){return this.element=Sc(e),yc}}}),{JSONSchemaOrJSONReferenceVisitor:ld}=Zp.visitors,ud=ld.compose({methods:{ObjectElement(e){const t=ld.compose.methods.enter.call(this,e);return Xf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class pd extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new kl,this.specPath=vi(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const hd=pd;class fd extends Xo.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(fd.primaryClass)}}const md=fd;class dd extends(Bh(df,zh)){constructor(e){super(e),this.element=new md,this.specPath=vi(["value"])}}const yd=dd;class gd extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Eh,this.specPath=vi(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const vd=gd;class bd extends Xo.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(bd.primaryClass),this.classes.push("examples")}}const xd=bd;const wd=class extends hm{constructor(e){super(e),this.element=new xd}};class Ed extends Xo.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ed.primaryClass),this.classes.push("content")}}const jd=Ed;const Od=class extends Hm{constructor(e){super(e),this.element=new jd}};class Sd extends Xo.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Sd.primaryClass)}}const Pd=Sd;class Ad extends(Bh(df,zh)){constructor(e){super(e),this.element=new Pd,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const $d=Ad;class _d extends Xo.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(_d.primaryClass)}}const kd=_d;class Cd extends(Bh(df,zh)){constructor(e){super(e),this.element=new kd,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Zf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Wc(t))})),t}}const Id=Cd;class Md extends Xo.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Md.primaryClass),this.classes.push("parameters")}}const Td=Md;class Rd extends(Bh(df,zh)){constructor(e){super(e),this.element=new Td,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const Fd=Rd;class Dd extends Xo.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Dd.primaryClass),this.classes.push("examples")}}const Nd=Dd;class qd extends(Bh(df,zh)){constructor(e){super(e),this.element=new Nd,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Ld=qd;class Bd extends Xo.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Bd.primaryClass)}}const Ud=Bd;class Vd extends(Bh(df,zh)){constructor(e){super(e),this.element=new Ud,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const zd=Vd;class Hd extends Xo.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Hd.primaryClass)}}const Jd=Hd;class Gd extends(Bh(df,zh)){constructor(e){super(e),this.element=new Jd,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Bf).forEach(((e,t)=>{e.setMetaProperty("header-name",Wc(t))})),t}}const Wd=Gd;class Kd extends Xo.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Kd.primaryClass)}}const Yd=Kd;class Xd extends(Bh(df,zh)){constructor(e){super(e),this.element=new Yd,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Qd=Xd;class Zd extends Xo.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Zd.primaryClass)}}const ey=Zd;class ty extends(Bh(df,zh)){constructor(e){super(e),this.element=new ey,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const ry=ty;class ny extends Xo.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(ny.primaryClass)}}const sy=ny;class iy extends(Bh(df,zh)){constructor(e){super(e),this.element=new sy,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const oy=iy;class ay extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Tl,this.specPath=vi(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return Ia(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const cy=ay;const ly=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class uy extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Fl,this.specPath=vi(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const py=uy;class hy extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Il,this.specPath=vi(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return Fa(this.element.headers)&&this.element.headers.filter(Bf).forEach(((e,t)=>{e.setMetaProperty("header-name",Wc(t))})),t}}const fy=hy;class my extends Xo.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(my.primaryClass)}}const dy=my;class yy extends(Bh(df,zh)){constructor(e){super(e),this.element=new dy,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Bf(e))return;const r=Wc(t);e.setMetaProperty("headerName",r)})),t}}const gy=yy;class vy extends(Bh(mf,zh)){constructor(e){super(e),this.element=new cu,this.specPath=vi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Bc}ObjectElement(e){const t=mf.prototype.ObjectElement.call(this,e);return this.element.filter(Kf).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Sc(t))})),t}}const by=vy;class xy extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new hu,this.specPath=vi(["document","objects","RequestBody"])}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return Fa(this.element.contentProp)&&this.element.contentProp.filter(am).forEach(((e,t)=>{e.setMetaProperty("media-type",Wc(t))})),t}}const wy=xy;class Ey extends Xo.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ey.primaryClass),this.classes.push("content")}}const jy=Ey;const Oy=class extends Hm{constructor(e){super(e),this.element=new jy}};class Sy extends(Bh(mf,zh)){constructor(e){super(e),this.element=new Ol,this.specPath=vi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Kf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Wc(t))})),t}}const Py=Sy;class Ay extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new mu,this.specPath=vi(["document","objects","Response"])}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return Fa(this.element.contentProp)&&this.element.contentProp.filter(am).forEach(((e,t)=>{e.setMetaProperty("media-type",Wc(t))})),Fa(this.element.headers)&&this.element.headers.filter(Bf).forEach(((e,t)=>{e.setMetaProperty("header-name",Wc(t))})),t}}const $y=Ay;class _y extends Xo.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(_y.primaryClass)}}const ky=_y;class Cy extends(Bh(df,zh)){constructor(e){super(e),this.element=new ky,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Bf(e))return;const r=Wc(t);e.setMetaProperty("header-name",r)})),t}}const Iy=Cy;class My extends Xo.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(My.primaryClass),this.classes.push("content")}}const Ty=My;const Ry=class extends Hm{constructor(e){super(e),this.element=new Ty}};class Fy extends Xo.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(Fy.primaryClass)}}const Dy=Fy;class Ny extends(Bh(df,zh)){constructor(e){super(e),this.element=new Dy,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const qy=Ny;function Ly(e){return"[object Number]"===Object.prototype.toString.call(e)}var By=Nn((function(e,t){if(!Ly(e)||!Ly(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const Uy=By;function Vy(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?!!ls(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?!!ls(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const zy=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Vy(e,!0,this)},e.prototype.has=function(e){return Vy(e,!1,this)},e}();var Hy=Nn((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new zy,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 Jy=Hy;class Gy extends(Bh(Yh,mf)){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,...Jy(e.keys(),t)],Yh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,mf.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return yc}}const Wy=Gy;class Ky extends(Bh(Wy,zh)){constructor(e){super(e),this.element=new yu,this.specPathFixedFields=vi(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Uy(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Wy.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Zf).forEach(((e,t)=>{const r=Sc(t);this.fieldPatternPredicate(Wc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const Yy=Ky;class Xy extends(Bh(Rf,zh)){constructor(e){super(e),this.alternator=[{predicate:Jh,specPath:["document","objects","Reference"]},{predicate:Bc,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Rf.prototype.enter.call(this,e);return Xf(this.element)?this.element.setMetaProperty("referenced-element","response"):Zf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Qy=Xy;class Zy extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new ru,this.specPath=vi(["document","objects","Operation"])}}const eg=Zy;class tg extends Xo.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(tg.primaryClass)}}const rg=tg;const ng=class extends zh{constructor(e){super(e),this.element=new rg}ArrayElement(e){return this.element=this.element.concat(Sc(e)),yc}};class sg extends Xo.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(sg.primaryClass),this.classes.push("parameters")}}const ig=sg;class og extends(Bh(Hh,zh)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Jh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Xf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}const ag=og;const cg=class extends ag{constructor(e){super(e),this.element=new ig}};const lg=class extends Rf{constructor(e){super(e),this.alternator=[{predicate:Jh,specPath:["document","objects","Reference"]},{predicate:Bc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Rf.prototype.enter.call(this,e);return Xf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class ug extends Xo.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(ug.primaryClass)}}const pg=ug;class hg extends(Bh(df,zh)){specPath;constructor(e){super(e),this.element=new pg,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Xf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const fg=hg;class mg extends Xo.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(mg.primaryClass),this.classes.push("security")}}const dg=mg;class yg extends(Bh(Hh,zh)){constructor(e){super(e),this.element=new dg}ArrayElement(e){return e.forEach((e=>{const t=Fa(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}const gg=yg;class vg extends Xo.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(vg.primaryClass),this.classes.push("servers")}}const bg=vg;const xg=class extends Pf{constructor(e){super(e),this.element=new bg}};class wg extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new ou,this.specPath=vi(["document","objects","PathItem"])}ObjectElement(e){const t=Yh.prototype.ObjectElement.call(this,e);return this.element.filter(Gf).forEach(((e,t)=>{const r=Sc(t);r.content=Wc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Ia(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Eg=wg;const jg=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Og extends Xo.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Og.primaryClass),this.classes.push("servers")}}const Sg=Og;const Pg=class extends Pf{constructor(e){super(e),this.element=new Sg}};class Ag extends Xo.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ag.primaryClass),this.classes.push("parameters")}}const $g=Ag;const _g=class extends ag{constructor(e){super(e),this.element=new $g}};class kg extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new mh,this.specPath=vi(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Cg=kg;class Ig extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Yl,this.specPath=vi(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Mg=Ig;class Tg extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new Wl,this.specPath=vi(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Rg=Tg;class Fg extends Xo.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Fg.primaryClass)}}const Dg=Fg;class Ng extends(Bh(df,zh)){constructor(e){super(e),this.element=new Dg,this.specPath=vi(["value"])}}const qg=Ng;class Lg extends Xo.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Lg.primaryClass)}}const Bg=Lg;class Ug extends(Bh(Hh,zh)){constructor(e){super(e),this.element=new Bg}ArrayElement(e){return e.forEach((e=>{const t=Wh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yc}}const Vg=Ug,{fixedFields:zg}=Zp.visitors.document.objects.JSONSchema,Hg={visitors:{value:zh,document:{objects:{OpenApi:{$visitor:Qh,fixedFields:{openapi:ef,info:{$ref:"#/visitors/document/objects/Info"},servers:Pf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Sm,tags:Vg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:nf,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:sf}},Contact:{$visitor:af,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:lf,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:wf,fixedFields:{url:Ef,description:{$ref:"#/visitors/value"},variables:If}},ServerVariable:{$visitor:$f,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Am,fixedFields:{schemas:$d,responses:Id,parameters:Fd,examples:Ld,requestBodies:zd,headers:Wd,securitySchemes:Qd,links:ry,callbacks:oy}},Paths:{$visitor:by},PathItem:{$visitor:Eg,fixedFields:{$ref:jg,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:Pg,parameters:_g}},Operation:{$visitor:eg,fixedFields:{tags:ng,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:cg,requestBody:lg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:fg,deprecated:{$ref:"#/visitors/value"},security:gg,servers:xg}},ExternalDocumentation:{$visitor:py,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Tm,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:Fm,example:{$ref:"#/visitors/value"},examples:wd,content:Od}},RequestBody:{$visitor:wy,fixedFields:{description:{$ref:"#/visitors/value"},content:Oy,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Tf,fixedFields:{schema:um,example:{$ref:"#/visitors/value"},examples:dm,encoding:bm}},Encoding:{$visitor:fy,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:gy,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Yy,fixedFields:{default:Qy}},Response:{$visitor:$y,fixedFields:{description:{$ref:"#/visitors/value"},headers:Iy,content:Ry,links:qy}},Callback:{$visitor:Py},Example:{$visitor:cy,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ly}},Link:{$visitor:pf,fixedFields:{operationRef:hf,operationId:ff,parameters:bf,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Nm,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:Lm,example:{$ref:"#/visitors/value"},examples:Vm,content:Wm}},Tag:{$visitor:_m,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Cm,fixedFields:{$ref:Im}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Ym,fixedFields:{title:zg.title,multipleOf:zg.multipleOf,maximum:zg.maximum,exclusiveMaximum:zg.exclusiveMaximum,minimum:zg.minimum,exclusiveMinimum:zg.exclusiveMinimum,maxLength:zg.maxLength,minLength:zg.minLength,pattern:zg.pattern,maxItems:zg.maxItems,minItems:zg.minItems,uniqueItems:zg.uniqueItems,maxProperties:zg.maxProperties,minProperties:zg.minProperties,required:zg.required,enum:zg.enum,type:cd,allOf:Qm,anyOf:ed,oneOf:rd,not:ud,items:sd,properties:od,additionalProperties:ud,description:zg.description,format:zg.format,default:zg.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:hd,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:yd}},XML:{$visitor:vd,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Cg,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:Mg,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:Rg,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:qg}},SecurityRequirement:{$visitor:wm}},extension:{$visitor:tf}}}},Jg=e=>{if(Ca(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gg={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"],...Ic},Wg={namespace:e=>{const{base:t}=e;return t.register("callback",Ol),t.register("components",Pl),t.register("contact",$l),t.register("discriminator",kl),t.register("encoding",Il),t.register("example",Tl),t.register("externalDocumentation",Fl),t.register("header",Nl),t.register("info",Ll),t.register("license",Ul),t.register("link",zl),t.register("mediaType",Jl),t.register("oAuthFlow",Wl),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",mu),t.register("responses",yu),t.register("schema",uh),t.register("securityRequirement",hh),t.register("securityScheme",mh),t.register("server",yh),t.register("serverVariable",vh),t.register("tag",xh),t.register("xml",Eh),t}},Kg=()=>{const e=oc(Wg);return{predicates:{...a,isElement:Ca,isStringElement:Ia,isArrayElement:Da,isObjectElement:Fa,isMemberElement:Na,includesClasses:Wa,hasElementSourceMap:Ja},namespace:e}},Yg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Xo.e)(e),s=Iu(Hg),i=new(zn(t,s))({specObj:s});return Tc(n,i),Fc(i.element,r,{toolboxCreator:Kg,visitorOptions:{keyMap:Gg,nodeTypeGetter:Jg}})},Xg=e=>(t,r={})=>Yg(t,{specPath:e,...r});Ol.refract=Xg(["visitors","document","objects","Callback","$visitor"]),Pl.refract=Xg(["visitors","document","objects","Components","$visitor"]),$l.refract=Xg(["visitors","document","objects","Contact","$visitor"]),Tl.refract=Xg(["visitors","document","objects","Example","$visitor"]),kl.refract=Xg(["visitors","document","objects","Discriminator","$visitor"]),Il.refract=Xg(["visitors","document","objects","Encoding","$visitor"]),Fl.refract=Xg(["visitors","document","objects","ExternalDocumentation","$visitor"]),Nl.refract=Xg(["visitors","document","objects","Header","$visitor"]),Ll.refract=Xg(["visitors","document","objects","Info","$visitor"]),Ul.refract=Xg(["visitors","document","objects","License","$visitor"]),zl.refract=Xg(["visitors","document","objects","Link","$visitor"]),Jl.refract=Xg(["visitors","document","objects","MediaType","$visitor"]),Wl.refract=Xg(["visitors","document","objects","OAuthFlow","$visitor"]),Yl.refract=Xg(["visitors","document","objects","OAuthFlows","$visitor"]),Ql.refract=Xg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),eu.refract=Xg(["visitors","document","objects","OpenApi","$visitor"]),ru.refract=Xg(["visitors","document","objects","Operation","$visitor"]),su.refract=Xg(["visitors","document","objects","Parameter","$visitor"]),ou.refract=Xg(["visitors","document","objects","PathItem","$visitor"]),cu.refract=Xg(["visitors","document","objects","Paths","$visitor"]),uu.refract=Xg(["visitors","document","objects","Reference","$visitor"]),hu.refract=Xg(["visitors","document","objects","RequestBody","$visitor"]),mu.refract=Xg(["visitors","document","objects","Response","$visitor"]),yu.refract=Xg(["visitors","document","objects","Responses","$visitor"]),uh.refract=Xg(["visitors","document","objects","Schema","$visitor"]),hh.refract=Xg(["visitors","document","objects","SecurityRequirement","$visitor"]),mh.refract=Xg(["visitors","document","objects","SecurityScheme","$visitor"]),yh.refract=Xg(["visitors","document","objects","Server","$visitor"]),vh.refract=Xg(["visitors","document","objects","ServerVariable","$visitor"]),xh.refract=Xg(["visitors","document","objects","Tag","$visitor"]),Eh.refract=Xg(["visitors","document","objects","XML","$visitor"]);const Qg=class extends Ol{};const Zg=class extends Pl{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const ev=class extends $l{};const tv=class extends kl{};const rv=class extends Il{};const nv=class extends Tl{};const sv=class extends Fl{};const iv=class extends Nl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ov=class extends Ll{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class av extends Xo.Om{static default=new av("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const cv=av;const lv=class extends Ul{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const uv=class extends zl{};const pv=class extends Jl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const hv=class extends Wl{};const fv=class extends Yl{};const mv=class extends Ql{};class dv extends Xo.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 yv=dv;const gv=class extends ru{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const vv=class extends su{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const bv=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 xv=class extends cu{};class wv extends uu{}Object.defineProperty(wv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(wv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Ev=wv;const jv=class extends hu{};const Ov=class extends mu{};const Sv=class extends yu{};class Pv extends Xo.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 Av=Pv;const $v=class extends hh{};const _v=class extends mh{};const kv=class extends yh{};const Cv=class extends vh{};const Iv=class extends xh{};const Mv=class extends Eh{};class Tv extends(Bh(Yh,zh)){constructor(e){super(e),this.element=new yv,this.specPath=vi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Yh.prototype.ObjectElement.call(this,e)}}const Rv=Tv,{visitors:{document:{objects:{Info:{$visitor:Fv}}}}}=Hg;const Dv=class extends Fv{constructor(e){super(e),this.element=new ov}},{visitors:{document:{objects:{Contact:{$visitor:Nv}}}}}=Hg;const qv=class extends Nv{constructor(e){super(e),this.element=new ev}},{visitors:{document:{objects:{License:{$visitor:Lv}}}}}=Hg;const Bv=class extends Lv{constructor(e){super(e),this.element=new lv}},{visitors:{document:{objects:{Link:{$visitor:Uv}}}}}=Hg;const Vv=class extends Uv{constructor(e){super(e),this.element=new uv}};class zv extends(Bh(Hh,zh)){StringElement(e){const t=new cv(Wc(e));return this.copyMetaAndAttributes(e,t),this.element=t,yc}}const Hv=zv,{visitors:{document:{objects:{Server:{$visitor:Jv}}}}}=Hg;const Gv=class extends Jv{constructor(e){super(e),this.element=new kv}},{visitors:{document:{objects:{ServerVariable:{$visitor:Wv}}}}}=Hg;const Kv=class extends Wv{constructor(e){super(e),this.element=new Cv}},{visitors:{document:{objects:{MediaType:{$visitor:Yv}}}}}=Hg;const Xv=class extends Yv{constructor(e){super(e),this.element=new pv}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:Qv}}}}}=Hg;const Zv=class extends Qv{constructor(e){super(e),this.element=new $v}},{visitors:{document:{objects:{Components:{$visitor:eb}}}}}=Hg;const tb=class extends eb{constructor(e){super(e),this.element=new Zg}},{visitors:{document:{objects:{Tag:{$visitor:rb}}}}}=Hg;const nb=class extends rb{constructor(e){super(e),this.element=new Iv}},{visitors:{document:{objects:{Reference:{$visitor:sb}}}}}=Hg;const ib=class extends sb{constructor(e){super(e),this.element=new Ev}},{visitors:{document:{objects:{Parameter:{$visitor:ob}}}}}=Hg;const ab=class extends ob{constructor(e){super(e),this.element=new vv}},{visitors:{document:{objects:{Header:{$visitor:cb}}}}}=Hg;const lb=class extends cb{constructor(e){super(e),this.element=new iv}},ub=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qg||e(n)&&t("callback",n)&&r("object",n))),pb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zg||e(n)&&t("components",n)&&r("object",n))),hb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ev||e(n)&&t("contact",n)&&r("object",n))),fb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nv||e(n)&&t("example",n)&&r("object",n))),mb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sv||e(n)&&t("externalDocumentation",n)&&r("object",n))),db=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iv||e(n)&&t("header",n)&&r("object",n))),yb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ov||e(n)&&t("info",n)&&r("object",n))),gb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cv||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),vb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lv||e(n)&&t("license",n)&&r("object",n))),bb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uv||e(n)&&t("link",n)&&r("object",n))),xb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("openapi",n)&&r("string",n))),wb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof yv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),Eb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gv||e(n)&&t("operation",n)&&r("object",n))),jb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vv||e(n)&&t("parameter",n)&&r("object",n))),Ob=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("pathItem",n)&&r("object",n))),Sb=e=>{if(!Ob(e))return!1;if(!Ia(e.$ref))return!1;const t=Wc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Pb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xv||e(n)&&t("paths",n)&&r("object",n))),Ab=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("reference",n)&&r("object",n))),$b=e=>{if(!Ab(e))return!1;if(!Ia(e.$ref))return!1;const t=Wc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},_b=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jv||e(n)&&t("requestBody",n)&&r("object",n))),kb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ov||e(n)&&t("response",n)&&r("object",n))),Cb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sv||e(n)&&t("responses",n)&&r("object",n))),Ib=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Av||e(n)&&t("schema",n)&&r("object",n))),Mb=e=>Ra(e)&&e.classes.includes("boolean-json-schema"),Tb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $v||e(n)&&t("securityRequirement",n)&&r("object",n))),Rb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _v||e(n)&&t("securityScheme",n)&&r("object",n))),Fb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kv||e(n)&&t("server",n)&&r("object",n))),Db=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cv||e(n)&&t("serverVariable",n)&&r("object",n))),Nb=ka((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pv||e(n)&&t("mediaType",n)&&r("object",n)));const qb=class{parent;constructor({parent:e}){this.parent=e}};class Lb extends(Bh(Yh,qb,zh)){constructor(e){super(e),this.element=new Av,this.specPath=vi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=cv.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=Yh.prototype.ObjectElement.call(this,e);return Ia(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&&gb(this.openApiSemanticElement.jsonSchemaDialect)?Wc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ia(this.openApiGenericElement.get("jsonSchemaDialect"))?Wc(this.openApiGenericElement.get("jsonSchemaDialect")):Wc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(xi(this.parent)&&!Ia(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(Ib(this.parent)&&!Ia(e.get("$schema"))){const e=Js(Wc(this.parent.meta.get("inherited$schema")),Wc(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Sc(this.parent.getMetaProperty("inherited$id",[])):new Xo.wE,r=Wc(e.get("$id"));gp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const Bb=Lb;const Ub=class extends zh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Vb=class extends zh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class zb extends(Bh(df,qb,zh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=vi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Hb=zb;class Jb extends(Bh(Hh,qb,zh)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Fa(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Sc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yc}}const Gb=Jb;class Wb extends(Bh(Hh,qb,zh)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Fa(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Sc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yc}}const Kb=Wb;class Yb extends(Bh(Hh,qb,zh)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Fa(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Sc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yc}}const Xb=Yb;class Qb extends(Bh(df,qb,zh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=vi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Zb=Qb;class ex extends(Bh(Hh,qb,zh)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Fa(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Sc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yc}}const tx=ex;class rx extends(Bh(df,qb,zh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=vi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const nx=rx;class sx extends(Bh(df,qb,zh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=vi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const ix=sx;const ox=class extends zh{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 ax=class extends zh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const cx=class extends zh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const lx=class extends zh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:ux}}}}}=Hg;const px=class extends ux{constructor(e){super(e),this.element=new tv,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:hx}}}}}=Hg;const fx=class extends hx{constructor(e){super(e),this.element=new Mv}};class mx extends(Bh(df,zh)){constructor(e){super(e),this.element=new Pd,this.specPath=vi(["document","objects","Schema"])}}const dx=mx;class yx extends Xo.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(yx.primaryClass)}}const gx=yx;class vx extends(Bh(df,zh)){constructor(e){super(e),this.element=new gx,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Ab).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const bx=vx,{visitors:{document:{objects:{Example:{$visitor:xx}}}}}=Hg;const wx=class extends xx{constructor(e){super(e),this.element=new nv}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Ex}}}}}=Hg;const jx=class extends Ex{constructor(e){super(e),this.element=new sv}},{visitors:{document:{objects:{Encoding:{$visitor:Ox}}}}}=Hg;const Sx=class extends Ox{constructor(e){super(e),this.element=new rv}},{visitors:{document:{objects:{Paths:{$visitor:Px}}}}}=Hg;const Ax=class extends Px{constructor(e){super(e),this.element=new xv}},{visitors:{document:{objects:{RequestBody:{$visitor:$x}}}}}=Hg;const _x=class extends $x{constructor(e){super(e),this.element=new jv}},{visitors:{document:{objects:{Callback:{$visitor:kx}}}}}=Hg;const Cx=class extends kx{constructor(e){super(e),this.element=new Qg,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=kx.prototype.ObjectElement.call(this,e);return this.element.filter(Ab).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:Ix}}}}}=Hg;const Mx=class extends Ix{constructor(e){super(e),this.element=new Ov}},{visitors:{document:{objects:{Responses:{$visitor:Tx}}}}}=Hg;const Rx=class extends Tx{constructor(e){super(e),this.element=new Sv}},{visitors:{document:{objects:{Operation:{$visitor:Fx}}}}}=Hg;const Dx=class extends Fx{constructor(e){super(e),this.element=new gv}},{visitors:{document:{objects:{PathItem:{$visitor:Nx}}}}}=Hg;const qx=class extends Nx{constructor(e){super(e),this.element=new bv}},{visitors:{document:{objects:{SecurityScheme:{$visitor:Lx}}}}}=Hg;const Bx=class extends Lx{constructor(e){super(e),this.element=new _v}},{visitors:{document:{objects:{OAuthFlows:{$visitor:Ux}}}}}=Hg;const Vx=class extends Ux{constructor(e){super(e),this.element=new fv}},{visitors:{document:{objects:{OAuthFlow:{$visitor:zx}}}}}=Hg;const Hx=class extends zx{constructor(e){super(e),this.element=new hv}};class Jx extends Xo.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(Jx.primaryClass)}}const Gx=Jx;class Wx extends(Bh(df,zh)){constructor(e){super(e),this.element=new Gx,this.specPath=e=>Jh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Ab).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Ob).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Wc(t))})),t}}const Kx=Wx,Yx={visitors:{value:Hg.visitors.value,document:{objects:{OpenApi:{$visitor:Rv,fixedFields:{openapi:Hg.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Hv,servers:Hg.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Kx,components:{$ref:"#/visitors/document/objects/Components"},security:Hg.visitors.document.objects.OpenApi.fixedFields.security,tags:Hg.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Dv,fixedFields:{title:Hg.visitors.document.objects.Info.fixedFields.title,description:Hg.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Hg.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Hg.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:qv,fixedFields:{name:Hg.visitors.document.objects.Contact.fixedFields.name,url:Hg.visitors.document.objects.Contact.fixedFields.url,email:Hg.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Bv,fixedFields:{name:Hg.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Hg.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Gv,fixedFields:{url:Hg.visitors.document.objects.Server.fixedFields.url,description:Hg.visitors.document.objects.Server.fixedFields.description,variables:Hg.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Kv,fixedFields:{enum:Hg.visitors.document.objects.ServerVariable.fixedFields.enum,default:Hg.visitors.document.objects.ServerVariable.fixedFields.default,description:Hg.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:tb,fixedFields:{schemas:dx,responses:Hg.visitors.document.objects.Components.fixedFields.responses,parameters:Hg.visitors.document.objects.Components.fixedFields.parameters,examples:Hg.visitors.document.objects.Components.fixedFields.examples,requestBodies:Hg.visitors.document.objects.Components.fixedFields.requestBodies,headers:Hg.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Hg.visitors.document.objects.Components.fixedFields.securitySchemes,links:Hg.visitors.document.objects.Components.fixedFields.links,callbacks:Hg.visitors.document.objects.Components.fixedFields.callbacks,pathItems:bx}},Paths:{$visitor:Ax},PathItem:{$visitor:qx,fixedFields:{$ref:Hg.visitors.document.objects.PathItem.fixedFields.$ref,summary:Hg.visitors.document.objects.PathItem.fixedFields.summary,description:Hg.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:Hg.visitors.document.objects.PathItem.fixedFields.servers,parameters:Hg.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Dx,fixedFields:{tags:Hg.visitors.document.objects.Operation.fixedFields.tags,summary:Hg.visitors.document.objects.Operation.fixedFields.summary,description:Hg.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Hg.visitors.document.objects.Operation.fixedFields.operationId,parameters:Hg.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Hg.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Hg.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Hg.visitors.document.objects.Operation.fixedFields.deprecated,security:Hg.visitors.document.objects.Operation.fixedFields.security,servers:Hg.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:jx,fixedFields:{description:Hg.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Hg.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:ab,fixedFields:{name:Hg.visitors.document.objects.Parameter.fixedFields.name,in:Hg.visitors.document.objects.Parameter.fixedFields.in,description:Hg.visitors.document.objects.Parameter.fixedFields.description,required:Hg.visitors.document.objects.Parameter.fixedFields.required,deprecated:Hg.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Hg.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Hg.visitors.document.objects.Parameter.fixedFields.style,explode:Hg.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Hg.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Hg.visitors.document.objects.Parameter.fixedFields.example,examples:Hg.visitors.document.objects.Parameter.fixedFields.examples,content:Hg.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:_x,fixedFields:{description:Hg.visitors.document.objects.RequestBody.fixedFields.description,content:Hg.visitors.document.objects.RequestBody.fixedFields.content,required:Hg.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Xv,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Hg.visitors.document.objects.MediaType.fixedFields.example,examples:Hg.visitors.document.objects.MediaType.fixedFields.examples,encoding:Hg.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Sx,fixedFields:{contentType:Hg.visitors.document.objects.Encoding.fixedFields.contentType,headers:Hg.visitors.document.objects.Encoding.fixedFields.headers,style:Hg.visitors.document.objects.Encoding.fixedFields.style,explode:Hg.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Hg.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Rx,fixedFields:{default:Hg.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Mx,fixedFields:{description:Hg.visitors.document.objects.Response.fixedFields.description,headers:Hg.visitors.document.objects.Response.fixedFields.headers,content:Hg.visitors.document.objects.Response.fixedFields.content,links:Hg.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Cx},Example:{$visitor:wx,fixedFields:{summary:Hg.visitors.document.objects.Example.fixedFields.summary,description:Hg.visitors.document.objects.Example.fixedFields.description,value:Hg.visitors.document.objects.Example.fixedFields.value,externalValue:Hg.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Vv,fixedFields:{operationRef:Hg.visitors.document.objects.Link.fixedFields.operationRef,operationId:Hg.visitors.document.objects.Link.fixedFields.operationId,parameters:Hg.visitors.document.objects.Link.fixedFields.parameters,requestBody:Hg.visitors.document.objects.Link.fixedFields.requestBody,description:Hg.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:lb,fixedFields:{description:Hg.visitors.document.objects.Header.fixedFields.description,required:Hg.visitors.document.objects.Header.fixedFields.required,deprecated:Hg.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Hg.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Hg.visitors.document.objects.Header.fixedFields.style,explode:Hg.visitors.document.objects.Header.fixedFields.explode,allowReserved:Hg.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Hg.visitors.document.objects.Header.fixedFields.example,examples:Hg.visitors.document.objects.Header.fixedFields.examples,content:Hg.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:nb,fixedFields:{name:Hg.visitors.document.objects.Tag.fixedFields.name,description:Hg.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ib,fixedFields:{$ref:Hg.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:Bb,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:Ub,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:Vb,$defs:Hb,$comment:{$ref:"#/visitors/value"},allOf:Gb,anyOf:Kb,oneOf:Xb,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:Zb,prefixItems:tx,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:nx,patternProperties:ix,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:ox,enum:ax,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:cx,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:lx,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:px,fixedFields:{propertyName:Hg.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Hg.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:fx,fixedFields:{name:Hg.visitors.document.objects.XML.fixedFields.name,namespace:Hg.visitors.document.objects.XML.fixedFields.namespace,prefix:Hg.visitors.document.objects.XML.fixedFields.prefix,attribute:Hg.visitors.document.objects.XML.fixedFields.attribute,wrapped:Hg.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Bx,fixedFields:{type:Hg.visitors.document.objects.SecurityScheme.fixedFields.type,description:Hg.visitors.document.objects.SecurityScheme.fixedFields.description,name:Hg.visitors.document.objects.SecurityScheme.fixedFields.name,in:Hg.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Hg.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Hg.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Hg.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Vx,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:Hx,fixedFields:{authorizationUrl:Hg.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Hg.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Hg.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Hg.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Zv}},extension:{$visitor:Hg.visitors.document.extension.$visitor}}}},Xx=e=>{if(Ca(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Qx={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"],...Ic},Zx={namespace:e=>{const{base:t}=e;return t.register("callback",Qg),t.register("components",Zg),t.register("contact",ev),t.register("discriminator",tv),t.register("encoding",rv),t.register("example",nv),t.register("externalDocumentation",sv),t.register("header",iv),t.register("info",ov),t.register("jsonSchemaDialect",cv),t.register("license",lv),t.register("link",uv),t.register("mediaType",pv),t.register("oAuthFlow",hv),t.register("oAuthFlows",fv),t.register("openapi",mv),t.register("openApi3_1",yv),t.register("operation",gv),t.register("parameter",vv),t.register("pathItem",bv),t.register("paths",xv),t.register("reference",Ev),t.register("requestBody",jv),t.register("response",Ov),t.register("responses",Sv),t.register("schema",Av),t.register("securityRequirement",$v),t.register("securityScheme",_v),t.register("server",kv),t.register("serverVariable",Cv),t.register("tag",Iv),t.register("xml",Mv),t}},ew=()=>{const e=oc(Zx);return{predicates:{...c,isElement:Ca,isStringElement:Ia,isArrayElement:Da,isObjectElement:Fa,isMemberElement:Na,isServersElement:cm,includesClasses:Wa,hasElementSourceMap:Ja},namespace:e}},tw=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Xo.e)(e),s=Iu(Yx),i=new(zn(t,s))({specObj:s});return Tc(n,i),Fc(i.element,r,{toolboxCreator:ew,visitorOptions:{keyMap:Qx,nodeTypeGetter:Xx}})},rw=e=>(t,r={})=>tw(t,{specPath:e,...r});Qg.refract=rw(["visitors","document","objects","Callback","$visitor"]),Zg.refract=rw(["visitors","document","objects","Components","$visitor"]),ev.refract=rw(["visitors","document","objects","Contact","$visitor"]),nv.refract=rw(["visitors","document","objects","Example","$visitor"]),tv.refract=rw(["visitors","document","objects","Discriminator","$visitor"]),rv.refract=rw(["visitors","document","objects","Encoding","$visitor"]),sv.refract=rw(["visitors","document","objects","ExternalDocumentation","$visitor"]),iv.refract=rw(["visitors","document","objects","Header","$visitor"]),ov.refract=rw(["visitors","document","objects","Info","$visitor"]),cv.refract=rw(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),lv.refract=rw(["visitors","document","objects","License","$visitor"]),uv.refract=rw(["visitors","document","objects","Link","$visitor"]),pv.refract=rw(["visitors","document","objects","MediaType","$visitor"]),hv.refract=rw(["visitors","document","objects","OAuthFlow","$visitor"]),fv.refract=rw(["visitors","document","objects","OAuthFlows","$visitor"]),mv.refract=rw(["visitors","document","objects","OpenApi","fixedFields","openapi"]),yv.refract=rw(["visitors","document","objects","OpenApi","$visitor"]),gv.refract=rw(["visitors","document","objects","Operation","$visitor"]),vv.refract=rw(["visitors","document","objects","Parameter","$visitor"]),bv.refract=rw(["visitors","document","objects","PathItem","$visitor"]),xv.refract=rw(["visitors","document","objects","Paths","$visitor"]),Ev.refract=rw(["visitors","document","objects","Reference","$visitor"]),jv.refract=rw(["visitors","document","objects","RequestBody","$visitor"]),Ov.refract=rw(["visitors","document","objects","Response","$visitor"]),Sv.refract=rw(["visitors","document","objects","Responses","$visitor"]),Av.refract=rw(["visitors","document","objects","Schema","$visitor"]),$v.refract=rw(["visitors","document","objects","SecurityRequirement","$visitor"]),_v.refract=rw(["visitors","document","objects","SecurityScheme","$visitor"]),kv.refract=rw(["visitors","document","objects","Server","$visitor"]),Cv.refract=rw(["visitors","document","objects","ServerVariable","$visitor"]),Iv.refract=rw(["visitors","document","objects","Tag","$visitor"]),Mv.refract=rw(["visitors","document","objects","XML","$visitor"]);const nw=class extends gu{};const sw=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new nw("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new nw("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new nw("latest method in MediaTypes class is not yet implemented.")}};class iw extends sw{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 Ks(this.filterByFormat(e))}}const ow=new iw("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"),aw=Mu({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 cw=qn((function(e,t,r){return cs(e,Gs(t,r))})),lw=Mu({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=Ti(e)?e:e.uri;return wi(this.find(cw(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),uw=lw,pw={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const hw=Nn((function(e,t){return function(r){return function(n){return fi((function(e){return t(e,n)}),r(e(n)))}}}));var fw=qn((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!Au(n)&&Kn(s,n)&&"object"==typeof n[s]?n[s]:Ln(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ln(e)&&ys(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 mw=fw;var dw=function(e){return{value:e,map:function(t){return dw(t(e))}}},yw=qn((function(e,t,r){return e((function(e){return dw(t(e))}))(r).value}));const gw=yw,vw=hw(zn(["resolve","baseURI"]),mw(["resolve","baseURI"])),bw=e=>hl(e)?Ki():e,xw=Mu({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 Ti(this.uri)?Vi(this.uri):""},toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(is(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});const ww=class extends fc{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},Ew=async(e,t,r)=>{const n=await Promise.all(r.map(xa([e],[t])));return r.filter(((e,t)=>n[t]))},jw=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 ww("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const Ow=class extends fc{};const Sw=class extends Ow{},Pw=async(e,t)=>{let r=e,n=!1;if(!Va(e)){const t=$c(e);t.classes.push("result"),r=new na([t]),n=!0}const s=xw({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await Ew("canDereference",s,t.dereference.strategies);if(ya(i))throw new Sw(s.uri);try{const{result:e}=await jw("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new Ow(`Error while dereferencing file "${s.uri}"`,{cause:e})}},Aw=async(e,t={})=>{const r=((e,t)=>{const r=ca(e,t);return gw(vw,bw,r)})(pw,t);return Pw(e,r)};const $w=class extends fc{};const _w=class extends $w{},kw=Mu({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 nw("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new nw("parse method in Parser stamp is not yet implemented.")}}}),Cw=kw,Iw=Mu(Cw,{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 na;if(0!==r.length){const e=new Xo.Om(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new _w(`Error parsing "${e.uri}"`,{cause:t})}}}}),Mw=Mu({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new nw("resolve method in ResolveStrategy stamp is not yet implemented.")}}});const Tw=Nn((function(e,t){return Oa(ms(e),t)}));const Rw=Dn((function(e){for(var t=ss(e),r=t.length,n=[],s=0;s<r;)n[s]=e[t[s]],s+=1;return n}));const Fw=Xs(1,Rs(Promise.all,Promise));const Dw=class extends Ow{};const Nw=class extends fc{};const qw=class extends Nw{};const Lw=class extends fc{};const Bw=class extends Lw{};const Uw=class extends Nw{};const Vw=class extends Uw{},zw=async(e,t)=>{const r=xw({uri:Xi(Wi(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 Ew("canRead",e,r);if(ya(n))throw new Vw(e.uri);try{const{result:t}=await jw("read",[e],n);return t}catch(t){throw new Nw(`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 Ew("canParse",e,r);if(ya(n))throw new Vw(e.uri);try{const{plugin:t,result:r}=await jw("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new $w(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new $w(`Error while parsing file "${e.uri}"`,{cause:t})}})(xw({...r,data:n}),t)},Hw=(e,t)=>{const r=new Mc({predicate:e});return Tc(t,r),new Xo.G6(r.result)};const Jw=qn((function(e,t,r){return Js(e,zn(t,r))})),Gw=(e,t)=>{const r=new Mc({predicate:e,returnOnTrue:yc});return Tc(t,r),Jw(void 0,[0],r.result)};const Ww=class extends fc{};const Kw=class extends Ww{};const Yw=class extends Ww{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},Xw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Qw=e=>{const t=Gi(e);return yl("#",t)},Zw=(e,t)=>{const r=(e=>{if(!Xw(e))throw new Yw(e);return e})(e),n=Gw((e=>Ib(e)&&Wc(e.$anchor)===r),t);if(xi(n))throw new Kw(`Evaluation failed on token: "${r}"`);return n},eE=(e,t)=>{if(void 0===t.$ref)return;const r=Gi(Wc(t.$ref)),n=Wc(t.meta.get("inherited$id"));return`${Bs(((e,t)=>Yi(e,Xi(Wi(t)))),e,[...n,Wc(t.$ref)])}${"#"===r?"":r}`},tE=e=>{if(tE.cache.has(e))return tE.cache.get(e);const t=Av.refract(e);return tE.cache.set(e,t),t};tE.cache=new WeakMap;const rE=e=>Ha(e)?tE(e):e,nE=(e,t)=>{const{cache:r}=nE,n=Wi(e),s=e=>Ib(e)&&void 0!==e.$id;if(!r.has(t)){const e=Hw(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=Wc(t.meta.get("inherited$id"));return Bs(((e,t)=>Yi(e,Xi(Wi(t)))),e,[...r,Wc(t.$id)])})(n,e)===n));if(xi(i))throw new Bw(`Evaluation failed on URI: "${e}"`);let o,a;return Xw(Qw(e))?(o=Zw,a=Qw(e)):(o=El,a=bl(e)),o(a,i)};nE.cache=new WeakMap;const sE=Tc[Symbol.for("nodejs.util.promisify.custom")],iE=Mu({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:n=new WeakSet,options:s}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=s},methods:{toBaseURI(e){return Yi(this.reference.uri,Xi(Wi(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new qw(`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(cw(t,"uri"));const n=await zw(Qi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=aw({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){const t=Wc(e.$ref),r=this.toBaseURI(t);if(!this.options.resolve.external&&Wi(this.reference.uri)!==r)return!1;ku(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},PathItemElement(e){if(!Ia(e.$ref))return;const t=Wc(e.$ref),r=this.toBaseURI(t);(this.options.resolve.external||Wi(this.reference.uri)===r)&&(ku(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e))},LinkElement(e){if(!Ia(e.operationRef)&&!Ia(e.operationId))return;const t=Wc(e.operationRef),r=this.toBaseURI(t),n=Wi(this.reference.uri)!==r;if(this.options.resolve.external||!n){if(Ia(e.operationRef)&&Ia(e.operationId))throw new fc("LinkElement operationRef and operationId are mutually exclusive.");n&&(ku(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))}},ExampleElement(e){if(!Ia(e.externalValue))return;if(e.hasKey("value")&&Ia(e.externalValue))throw new fc("ExampleElement value and externalValue fields are mutually exclusive.");const t=Wc(e.externalValue),r=this.toBaseURI(t);(this.options.resolve.external||Wi(this.reference.uri)===r)&&(ku(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!Ia(e.$ref))return void this.visited.add(e);const t=await this.toReference(Qi(this.reference.uri));let{uri:r}=t;const n=eE(r,e),s=Wi(n),i=xw({uri:s}),o=Tw((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=e=>Wi(this.reference.uri)!==e;if(!ku(s,this.crawlingMap))try{if(o||a)this.crawlingMap[s]=t;else{if(r=this.toBaseURI(Wc(n)),!this.options.resolve.external&&c(r))return void this.visited.add(e);this.crawlingMap[s]=this.toReference(Qi(n))}}catch(t){if(!(a&&t instanceof Bw))throw t;if(r=this.toBaseURI(Qi(n)),!this.options.resolve.external&&c(r))return void this.visited.add(e);this.crawlingMap[s]=this.toReference(Qi(n))}this.crawledElements.push(e)},async crawlReferenceElement(e){const t=await this.toReference(Wc(e.$ref));this.indirections.push(e);const r=bl(Wc(e.$ref));let n=El(r,t.value.result);if(Ha(n)){const t=Wc(e.meta.get("referenced-element"));if(Jh(n))n=Ev.refract(n),n.setMetaProperty("referenced-element",t);else{n=this.namespace.getElementClass(t).refract(n)}}if(this.indirections.includes(n))throw new fc("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=iE({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await sE(n,s,{keyMap:Qx,nodeTypeGetter:Xx}),await s.crawl(),this.indirections.pop()},async crawlPathItemElement(e){const t=await this.toReference(Wc(e.$ref));this.indirections.push(e);const r=bl(Wc(e.$ref));let n=El(r,t.value.result);if(Ha(n)&&(n=bv.refract(n)),this.indirections.includes(n))throw new fc("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=iE({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await sE(n,s,{keyMap:Qx,nodeTypeGetter:Xx}),await s.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(Qi(this.reference.uri)),{uri:r}=t;const n=eE(r,e),s=Wi(n),i=xw({uri:s}),o=Tw((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=e=>Wi(this.reference.uri)!==e;let l;this.indirections.push(e);try{if(o||a){l=nE(n,rE(t.value.result))}else{if(r=this.toBaseURI(Wc(n)),!this.options.resolve.external&&c(r))return;t=await this.toReference(Qi(n));const e=bl(n);l=rE(El(e,t.value.result))}}catch(e){if(!(a&&e instanceof Bw))throw e;if(Xw(Qw(n))){if(r=this.toBaseURI(Wc(n)),!this.options.resolve.external&&c(r))return;t=await this.toReference(Qi(n));const e=Qw(n);l=Zw(e,rE(t.value.result))}else{if(r=this.toBaseURI(Wc(n)),!this.options.resolve.external&&c(r))return;t=await this.toReference(Qi(n));const e=bl(n);l=rE(El(e,t.value.result))}}if(this.visited.add(e),this.indirections.includes(l))throw new fc("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const u=iE({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await sE(l,u,{keyMap:Qx,nodeTypeGetter:Xx}),await u.crawl(),this.indirections.pop()},async crawl(){await Hs(Rw,Fw)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)Ab(e)?await this.crawlReferenceElement(e):Ib(e)?await this.crawlSchemaElement(e):Ob(e)&&await this.crawlPathItemElement(e)}}}),oE=iE,aE=Tc[Symbol.for("nodejs.util.promisify.custom")],cE=Mu(Mw,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?ow.includes(e.mediaType):wb(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=oc(Zx),n=aw({uri:e.uri,value:e.parseResult}),s=oE({reference:n,namespace:r,options:t}),i=uw();return i.add(n),await aE(i.rootRef.value,s,{keyMap:Qx,nodeTypeGetter:Xx}),await s.crawl(),i}}}),lE=cE;function uE(e,t,r){if(r||(r=new pE),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?uE(e[i],!0,r):e[i]);return n};switch(is(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return Jn(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 pE=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}(),hE=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"]=bs,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Kn(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,uE(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function fE(e,t,r){return function(n){return new hE(e,t,r,n)}}const mE=Nn(Us("groupBy",Ys(4,[],gs([],fE,(function(e,t,r,n){var s=Ls((function(n,s){var i=r(s),o=e(Kn(i,n)?n[i]:uE(t,!1),s);return o&&o["@@transducer/reduced"]?wa(n):(n[i]=o,n)}));return Ns(s,{},n)})))((function(e,t){return e.push(t),e}),[]))),dE=e=>e.replace(/\s/g,""),yE=e=>e.replace(/\W/gi,"_"),gE=(e,t,r)=>{const n=dE(e);return n.length>0?yE(n):((e,t)=>`${yE(dE(t.toLowerCase()))}${yE(dE(e))}`)(t,r)},vE=({operationIdNormalizer:e=gE}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=mE((e=>Wc(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(Wc(e.operationId)),r=s.find((e=>Wc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Sc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=Js("path",Wc(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(Wc(t.operationId)),o=Ks(n),a=Js("method",Wc(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)}}}}};var bE=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=bs,e.prototype["@@transducer/result"]=xs,e.prototype["@@transducer/step"]=function(e,t){return Wn(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function xE(e){return function(t){return new bE(e,t)}}const wE=Nn(gs([],xE,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)Wn(e,r=t[n],i)||(i[i.length]=r),n+=1;return i}))),EE=()=>({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)&&(Wc(t.name)===Wc(r.name)&&Wc(t.in)===Wc(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=Ks(r);if(!Array.isArray(n)||0===n.length)return;const s=Jw([],["parameters","content"],e),i=wE(t,[...s,...n]);e.parameters=new ig(i)}}}}},jE=()=>({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 dg(null===(a=t)||void 0===a?void 0:a.content))}}}}},OE=()=>({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 Of([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 Sg(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 bg(r):c&&l&&r.forEach((e=>{t.servers.push(e)}))}}}}),SE=()=>({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=>Sc.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",[Sc(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Sc(t.example)))}}}}}),PE=()=>({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=>Sc.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",[Sc(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Sc(t.example)))}}}}}),AE=e=>t=>{if(t?.$$normalized)return t;if(AE.cache.has(t))return AE.cache.get(t);const r=yv.refract(t),n=e(r),s=Wc(n);return AE.cache.set(t,s),s};AE.cache=new WeakMap;const $E=e=>{if(!Fa(e))return e;if(e.hasKey("$$normalized"))return e;const t=[vE({operationIdNormalizer:(e,t,r)=>No({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),EE(),jE(),OE(),SE(),PE()],r=Fc(e,t,{toolboxCreator:ew,visitorOptions:{keyMap:Qx,nodeTypeGetter:Xx}});return r.set("$$normalized",!0),r},_E=Mu({props:{name:null},methods:{canRead:()=>!1,async read(){throw new nw("read method in Resolver stamp is not yet implemented.")}}}),kE=Mu(_E,{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=>Hi(e.uri),async read(){throw new nw("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new nw("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),{AbortController:CE,AbortSignal:IE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=CE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=IE);const ME=kE.compose({props:{name:"http-swagger-client",swaggerHTTPClient:jr,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 Uw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),TE=(e,t=ac)=>{if(Ti(e))try{return t.fromRefract(JSON.parse(e))}catch{}return nc(e)&&ku("element",e)?t.fromRefract(e):t.toElement(e)},RE=Cw.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 _w("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new na,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=TE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new _w(`Error parsing "${e.uri}"`,{cause:t})}}}}),FE=Cw.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return ur.load(e.toString(),{schema:Zt}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new _w("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new na,r=e.toString();try{const e=ur.load(r,{schema:Zt});if(this.allowEmpty&&void 0===e)return t;const n=TE(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new _w(`Error parsing "${e.uri}"`,{cause:t})}}}}),DE=Cw.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new iw(...ow.filterByFormat("generic"),...ow.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 _w("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new na,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=yv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new _w(`Error parsing "${e.uri}"`,{cause:t})}}}}),NE=Cw.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new iw(...ow.filterByFormat("generic"),...ow.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return ur.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new _w("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new na,r=e.toString();try{const e=ur.load(r,{schema:Zt});if(this.allowEmpty&&void 0===e)return t;const n=yv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new _w(`Error parsing "${e.uri}"`,{cause:t})}}}}),qE=Mu({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new nw("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var LE=r(8068);const BE=class extends mc{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}},UE=Mu({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new LE({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!Ca(e))throw new BE("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ia(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 Xo.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()}}});UE({length:6});class VE 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(Ca(r)&&e(r))return r}}const zE=Tc[Symbol.for("nodejs.util.promisify.custom")],HE=UE(),JE=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Wc(HE.identify(e))),GE=Mu({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 VE,refractCache:i=new Map}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new VE(...s),this.refractCache=i},methods:{toBaseURI(e){return Yi(this.reference.uri,Xi(Wi(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new qw(`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(cw(t,"uri"));const n=await zw(Qi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=aw({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},toAncestorLineage(e){const t=new Set(e.filter(Ca));return[new VE(...this.ancestors,t),t]},async ReferenceElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(i.includesCycle(e))return!1;const a=this.toBaseURI(Wc(e.$ref));if(!this.options.resolve.external&&Wi(this.reference.uri)!==a)return!1;const c=await this.toReference(Wc(e.$ref)),l=Yi(a,Wc(e.$ref));this.indirections.push(e);const u=bl(l);let p=El(u,c.value.result);if(Ha(p)){const t=Wc(e.meta.get("referenced-element")),r=`${t}-${Wc(HE.identify(p))}`;if(this.refractCache.has(r))p=this.refractCache.get(r);else if(Jh(p))p=Ev.refract(p),p.setMetaProperty("referenced-element",t),this.refractCache.set(r,p);else{p=this.namespace.getElementClass(t).refract(p),this.refractCache.set(r,p)}}if(this.indirections.includes(p))throw new fc("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=GE({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i,refractCache:this.refractCache});p=await zE(p,h,{keyMap:Qx,nodeTypeGetter:Xx}),o.delete(e),this.indirections.pop();const f=t=>{const r=$c(t);return r.setMetaProperty("ref-fields",{$ref:Wc(e.$ref),description:Wc(e.description),summary:Wc(e.summary)}),r.setMetaProperty("ref-origin",c.uri),r.setMetaProperty("ref-referencing-element-id",Sc(HE.identify(e))),Fa(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),r};if(i.includes(e)||i.includes(p)){var m;const n=null!==(m=i.findItem(JE(e)))&&void 0!==m?m:f(p);return Na(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return f(p)},async PathItemElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Ia(e.$ref))return;if(i.includesCycle(e))return!1;const a=this.toBaseURI(Wc(e.$ref));if(!this.options.resolve.external&&Wi(this.reference.uri)!==a)return;const c=await this.toReference(Wc(e.$ref)),l=Yi(a,Wc(e.$ref));this.indirections.push(e);const u=bl(l);let p=El(u,c.value.result);if(Ha(p)){const e=`pathItem-${Wc(HE.identify(p))}`;this.refractCache.has(e)?p=this.refractCache.get(e):(p=bv.refract(p),this.refractCache.set(e,p))}if(this.indirections.includes(p))throw new fc("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=GE({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i,refractCache:this.refractCache});p=await zE(p,h,{keyMap:Qx,nodeTypeGetter:Xx}),o.delete(e),this.indirections.pop();const f=t=>{const r=new bv([...t.content],Sc(t.meta),Sc(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Wc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Wc(e.$ref)}),r.setMetaProperty("ref-origin",c.uri),r.setMetaProperty("ref-referencing-element-id",Sc(HE.identify(e))),r};if(i.includes(e)||i.includes(p)){var m;const n=null!==(m=i.findItem(JE(e)))&&void 0!==m?m:f(p);return Na(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return f(p)},async LinkElement(e){if(!Ia(e.operationRef)&&!Ia(e.operationId))return;if(Ia(e.operationRef)&&Ia(e.operationId))throw new fc("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(Ia(e.operationRef)){var r;const n=bl(Wc(e.operationRef)),s=this.toBaseURI(Wc(e.operationRef));if(!this.options.resolve.external&&Wi(this.reference.uri)!==s)return;const i=await this.toReference(Wc(e.operationRef));if(t=El(n,i.value.result),Ha(t)){const e=`operation-${Wc(HE.identify(t))}`;this.refractCache.has(e)?t=this.refractCache.get(e):(t=gv.refract(t),this.refractCache.set(e,t))}t=$c(t),t.setMetaProperty("ref-origin",i.uri);const o=$c(e);return null===(r=o.operationRef)||void 0===r||r.meta.set("operation",t),o}if(Ia(e.operationId)){var n;const r=Wc(e.operationId),s=await this.toReference(Qi(this.reference.uri));if(t=Gw((e=>Eb(e)&&Ca(e.operationId)&&e.operationId.equals(r)),s.value.result),xi(t))throw new fc(`OperationElement(operationId=${r}) not found.`);const i=$c(e);return null===(n=i.operationId)||void 0===n||n.meta.set("operation",t),i}},async ExampleElement(e,t,r,n,s){const[i]=this.toAncestorLineage([...s,r]);if(!Ia(e.externalValue))return;if(i.includesCycle(e))return!1;if(e.hasKey("value")&&Ia(e.externalValue))throw new fc("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Wc(e.externalValue));if(!this.options.resolve.external&&Wi(this.reference.uri)!==o)return;const a=await this.toReference(Wc(e.externalValue)),c=$c(a.value.result);c.setMetaProperty("ref-origin",a.uri);const l=$c(e);return l.value=c,l},async SchemaElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Ia(e.$ref))return;if(i.includesCycle(e))return!1;let a=await this.toReference(Qi(this.reference.uri)),{uri:c}=a;const l=eE(c,e),u=Wi(l),p=xw({uri:u}),h=Tw((e=>e.canRead(p)),this.options.resolve.resolvers),f=!h,m=e=>Wi(this.reference.uri)!==e;let d;this.indirections.push(e);try{if(h||f){d=nE(l,rE(a.value.result))}else{if(c=this.toBaseURI(Wc(l)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Qi(l));const e=bl(l);d=rE(El(e,a.value.result))}}catch(e){if(!(f&&e instanceof Bw))throw e;if(Xw(Qw(l))){if(c=this.toBaseURI(Wc(l)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Qi(l));const e=Qw(l);d=Zw(e,rE(a.value.result))}else{if(c=this.toBaseURI(Wc(l)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Qi(l));const e=bl(l);d=rE(El(e,a.value.result))}}if(this.indirections.includes(d))throw new fc("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const y=GE({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});if(d=await zE(d,y,{keyMap:Qx,nodeTypeGetter:Xx}),o.delete(e),this.indirections.pop(),Mb(d)){const t=Sc(d);return t.setMetaProperty("ref-fields",{$ref:Wc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Sc(HE.identify(e))),t}const g=t=>{const r=new Av([...t.content],Sc(t.meta),Sc(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Wc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Wc(e.$ref)}),r.setMetaProperty("ref-origin",a.uri),r.setMetaProperty("ref-referencing-element-id",Sc(HE.identify(e))),r};if(i.includes(e)||i.includes(d)){var v;const n=null!==(v=i.findItem(JE(e)))&&void 0!==v?v:g(d);return Na(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return g(d)}}}),WE=GE,KE=Tc[Symbol.for("nodejs.util.promisify.custom")],YE=Mu(qE,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?ow.includes(e.mediaType):wb(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=oc(Zx),n=Js(uw(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(cw(e.uri,"uri")):(s=aw({uri:e.uri,value:e.parseResult}),n.add(s));const i=WE({reference:s,namespace:r,options:t}),o=await KE(n.rootRef.value,i,{keyMap:Qx,nodeTypeGetter:Xx});return null===t.dereference.refSet&&n.clean(),o}}}),XE=YE,QE=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(Na(r)){const t=String(Wc(r.key));e.push(t)}else if(Da(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},ZE=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},ej=Zi("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:tj}=yo,rj=Tc[Symbol.for("nodejs.util.promisify.custom")],nj=UE(),sj=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Wc(nj.identify(e))),ij=WE.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{const[n,i]=this.toAncestorLineage([...s,r]);if(Wa(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&$b(e))return!1;const o=await this.toReference(Wc(e.$ref)),{uri:a}=o,c=Yi(a,Wc(e.$ref));this.indirections.push(e);const l=bl(c);let u=El(l,o.value.result);if(Ha(u)){const t=Wc(e.meta.get("referenced-element"));if(Jh(u))u=Ev.refract(u),u.setMetaProperty("referenced-element",t);else{u=this.namespace.getElementClass(t).refract(u)}}if(this.indirections.includes(u))throw new fc("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u)){if(Hi(a)||zi(a)){const t=new Ev({$ref:c},Sc(e.meta),Sc(e.attributes));return t.get("$ref").classes.push("cycle"),t}return!1}}i.add(e);const p=ij({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...QE([...s,r,e]),"$ref"]});u=await rj(u,p,{keyMap:Qx,nodeTypeGetter:Xx}),i.delete(e),this.indirections.pop();const h=t=>{const r=$c(t);if(r.setMetaProperty("ref-fields",{$ref:Wc(e.$ref),description:Wc(e.description),summary:Wc(e.summary)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",Sc(nj.identify(e))),Fa(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),this.allowMetaPatches&&Fa(r)&&!r.hasKey("$$ref")){const e=Yi(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(u)){const s=n.findItem(sj(e))??h(u);return Na(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(u)}catch(t){const n=ZE(t),i=tj(n,{baseDoc:this.reference.uri,$ref:Wc(e.$ref),pointer:bl(Wc(e.$ref)),fullPath:this.basePath??[...QE([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Ia(e.$ref))return;if(Wa(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&Sb(e))return;const o=await this.toReference(Wc(e.$ref)),{uri:a}=o,c=Yi(a,Wc(e.$ref));this.indirections.push(e);const l=bl(c);let u=El(l,o.value.result);if(Ha(u)&&(u=bv.refract(u)),this.indirections.includes(u))throw new fc("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u)){if(Hi(a)||zi(a)){const t=new bv({$ref:c},Sc(e.meta),Sc(e.attributes));return t.get("$ref").classes.push("cycle"),t}return!1}}i.add(e);const p=ij({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...QE([...s,r,e]),"$ref"]});u=await rj(u,p,{keyMap:Qx,nodeTypeGetter:Xx}),i.delete(e),this.indirections.pop();const h=t=>{const r=new bv([...t.content],Sc(t.meta),Sc(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Wc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Wc(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",Sc(nj.identify(e))),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=Yi(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(u)){const s=n.findItem(sj(e))??h(u);return Na(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(u)}catch(t){const n=ZE(t),i=tj(n,{baseDoc:this.reference.uri,$ref:Wc(e.$ref),pointer:bl(Wc(e.$ref)),fullPath:this.basePath??[...QE([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Ia(e.$ref))return;if(Wa(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;let o=await this.toReference(Qi(this.reference.uri)),{uri:a}=o;const c=eE(a,e),l=Wi(c),u=xw({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p,f=h&&a!==l;if(!this.options.resolve.external&&f)return;let m;this.indirections.push(e);try{if(p||h){m=nE(c,rE(o.value.result))}else{o=await this.toReference(Qi(c)),a=o.uri;const e=bl(c);m=rE(El(e,o.value.result))}}catch(e){if(!(h&&e instanceof Bw))throw e;if(Xw(Qw(c))){o=await this.toReference(Qi(c)),a=o.uri;const e=Qw(c);m=Zw(e,rE(o.value.result))}else{o=await this.toReference(Qi(c)),a=o.uri;const e=bl(c);m=rE(El(e,o.value.result))}}if(this.indirections.includes(m))throw new fc("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Dw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(m)){if(Hi(a)||zi(a)){const t=Yi(a,c),r=new Av({$ref:t},Sc(e.meta),Sc(e.attributes));return r.get("$ref").classes.push("cycle"),r}return!1}}i.add(e);const d=ij({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...QE([...s,r,e]),"$ref"]});if(m=await rj(m,d,{keyMap:Qx,nodeTypeGetter:Xx}),i.delete(e),this.indirections.pop(),Mb(m)){const t=Sc(m);return t.setMetaProperty("ref-fields",{$ref:Wc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Sc(nj.identify(e))),t}const y=t=>{const r=new Av([...t.content],Sc(t.meta),Sc(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Wc(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Wc(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",Sc(nj.identify(e))),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=Yi(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(m)){const s=n.findItem(sj(e))??y(m);return Na(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return y(m)}catch(t){const n=ZE(t),i=new ej(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:Wc(e.$ref),fullPath:this.basePath??[...QE([...s,r,e]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await WE.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=ZE(t),i=tj(n,{baseDoc:this.reference.uri,externalValue:Wc(e.externalValue),fullPath:this.basePath??[...QE([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),oj=ij,aj=XE.compose.bind(),cj=aj({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:Wc(this.macroOperation),o=Wc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=QE([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),lj=aj({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&&Fa(e.properties)&&e.properties.forEach((t=>{if(Fa(t))try{const e=this.modelPropertyMacro(Wc(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...QE([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}}),uj=aj({init({options:e}){this.options=e},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!Da(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...QE([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new Av(e.content.filter((e=>"allOf"!==Wc(e.key))),Sc(e.meta),Sc(e.attributes));if(!e.allOf.content.every(Ib)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...QE([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=qu.all([...e.allOf.content,e]);if(e.hasKey("$$ref")||i.remove("$$ref"),e.hasKey("example")){i.getMember("example").value=e.get("example")}if(e.hasKey("examples")){i.getMember("examples").value=e.get("examples")}return i.remove("allOf"),i}}}}),pj=Tc[Symbol.for("nodejs.util.promisify.custom")],hj=XE.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init({useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:s=this.mode,ancestors:i=[]}={}){this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]},methods:{async dereference(e,t){const r=[],n=oc(Zx),s=t.dereference.refSet??uw();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=aw({uri:e.uri,value:e.parseResult}),s.add(i));const o=oj({reference:i,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(o),"function"==typeof this.parameterMacro){const e=cj({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=lj({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=uj({options:t});r.push(e)}const a=xc(r,{nodeTypeGetter:Xx}),c=await pj(s.rootRef.value,a,{keyMap:Qx,nodeTypeGetter:Xx});return null===t.dereference.refSet&&s.clean(),c}}}),fj=hj,mj=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:m}=mj,d=Hi(Ki())?Ki():p,y=Dr(e),g=Yi(d,y);let v;m.has(t)?v=m.get(t):(v=yv.refract(t),v.classes.push("result"),m.set(t,v));const b=new na([v]),x=Qc(o),w=""===x?"":`#${x}`,E=El(x,v),j=aw({uri:g,value:b}),O=uw({refs:[j]});""!==x&&(O.rootRef=null);const S=[new Set([E])],P=[],A=((e,t,r)=>new Lc({element:r}).transclude(e,t))(E,await Aw(E,{resolve:{baseURI:`${g}${w}`,resolvers:[ME({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[lE()]},parse:{mediaType:ow.latest(),parsers:[DE({allowEmpty:!1,sourceMap:!1}),NE({allowEmpty:!1,sourceMap:!1}),RE({allowEmpty:!1,sourceMap:!1}),FE({allowEmpty:!1,sourceMap:!1}),Iw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[fj({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:h,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:P}}}),v),$=l?A:$E(A);return{spec:Wc($),errors:P}}catch(e){if(e instanceof vl||e instanceof wl)return{spec:null,errors:[]};throw e}};mj.cache=new WeakMap;const dj=mj,yj={name:"openapi-3-1-apidom",match:({spec:e})=>zo(e),normalize:({spec:e})=>AE($E)(e),resolve:async e=>dj(e)};function gj(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 vj=()=>null,bj={mapTagOperations:function({spec:e,cb:t=vj,defaultTag:r="default",v2OperationIdCompatibilityMode:n}){const s={},i={};return gj(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=No(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 xj=r(7427);function wj(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ej(e){var t,r;return!1!==wj(e)&&(void 0===(t=e.constructor)||!1!==wj(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const jj={body:function({req:e,value: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}){e.url=e.url.split(`{${r.name}}`).join(encodeURIComponent(t))},formData:function({req:e,value:t,parameter:r}){(t||r.allowEmptyValue)&&(e.form=e.form||{},e.form[r.name]={value:t,allowEmptyValue:r.allowEmptyValue,collectionFormat:r.collectionFormat})}};function Oj(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}function Sj({req:e,value:t,parameter:r}){const{name:n,style:s,explode:i,content:o}=r;if(o){const r=Object.keys(o)[0];return void(e.url=e.url.split(`{${n}}`).join(xr(Oj(t,r),{escape:!0})))}const a=wr({key:r.name,value:t,style:s||"simple",explode:i||!1,escape:!0});e.url=e.url.split(`{${n}}`).join(a)}function Pj({req:e,value:t,parameter:r}){if(e.query=e.query||{},r.content){const n=Oj(t,Object.keys(r.content)[0]);if(n)e.query[r.name]=n;else if(r.allowEmptyValue&&void 0!==t){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 Aj=["accept","authorization","content-type"];function $j({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Aj.indexOf(t.name.toLowerCase())>-1))if(t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=Oj(r,n)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=wr({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function _j({req:e,parameter:t,value:r}){e.headers=e.headers||{};const n=typeof r;if(t.content){const n=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${Oj(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+wr({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}}const kj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Cj}=kj,Ij=Cj;function Mj(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=Ij(`${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&&Ej(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=>{t.form[r]={value:n[r],encoding:e[r]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function Tj(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=Ij(`${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 Rj(e,t){return`${t.toLowerCase()}-${e}`}function Fj(e,t){return e&&e.paths?function(e,t){return gj(e,t,!0)||null}(e,(({pathName:e,method:r,operation:n})=>{if(!n||"object"!=typeof n)return!1;const s=n.operationId;return[No(n,e,r),Rj(e,r),s].some((e=>e&&e===t))})):null}const Dj=e=>Array.isArray(e)?e:[],Nj=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}}},qj=Zi("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),Lj={buildRequest:Bj};function Bj(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:u,serverVariables:p,http:h,signal:f}=e;let{parameters:m,parameterBuilders:d}=e;const y=Ho(t);d||(d=y?l:jj);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=Fj(t,r);if(!v)throw new qj(`Operation ${r} not found`);const{operation:b={},method:x,pathName:w}=v;if(g.url+=Vj({spec:t,scheme:s,contextUrl:a,server:u,serverVariables:p,pathName:w,method:x}),!r)return delete g.cookies,g;g.url+=w,g.method=`${x}`.toUpperCase(),m=m||{};const E=t.paths[w]||{};n&&(g.headers.accept=n);const j=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(Dj(b.parameters)).concat(Dj(E.parameters)));j.forEach((e=>{const r=d[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=m),n=e&&e.name&&m[e.name],void 0===n?n=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,j).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(y&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:g,parameter:e,value:n,operation:b,spec:t})}}));const O={...e,operation:b};if(g=y?Mj(O,g):Tj(O,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+xj.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,Rr(g),g}const Uj=e=>e?e.replace(/\W/g,""):null;function Vj(e){return Ho(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=zj(l)?l:zj(u)?u:zj(p)?p:[h],n&&(o=a.find((e=>e.url===n)),o&&(c=n));c||([o]=a,c=o.url);if(c.includes("{")){const e=function(e){const t=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(e);)t.push(n[1]);return t}(c);e.forEach((e=>{if(o.variables&&o.variables[e]){const t=o.variables[e],r=i[e]||t.default,n=new RegExp(`{${e}}`,"g");c=c.replace(n,r)}}))}return function(e="",t=""){const r=Nj(e&&t?Yi(t,e):e),n=Nj(t),s=Uj(r.protocol)||Uj(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=Nj(r),s=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||s||Uj(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 zj=e=>Array.isArray(e)&&e.length>0;const{isHttpUrl:Hj}=s,Jj=Hj;function Gj(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof Gj))return new Gj(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,Gj.makeApisTagOperation(this)),this)));return r.client=this,r}Gj.http=jr,Gj.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),Er.mergeInQueryOrForm(n),n=t(n),r(e(n)))}.bind(null,Gj.http),Gj.resolveStrategies={"openapi-3-1-apidom":yj,"openapi-3-0":Go,"openapi-2-0":Jo,generic:Bo},Gj.resolve=Wo({strategies:[Gj.resolveStrategies["openapi-3-1-apidom"],Gj.resolveStrategies["openapi-3-0"],Gj.resolveStrategies["openapi-2-0"],Gj.resolveStrategies.generic]}),Gj.resolveSubtree=Yo({strategies:[Gj.resolveStrategies["openapi-3-1-apidom"],Gj.resolveStrategies["openapi-3-0"],Gj.resolveStrategies["openapi-2-0"],Gj.resolveStrategies.generic]}),Gj.execute=function({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:a,...c}){const l=e||t||jr;s&&i&&!n&&(n=Rj(s,i));const u=Lj.buildRequest({spec:r,operationId:n,parameters:o,securities:a,http:l,...c});return u.body&&(Ej(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},Gj.serializeRes=Sr,Gj.serializeHeaders=Pr,Gj.clearCache=function(){Fo.refs.clearCache()},Gj.makeApisTagOperation=function(e={}){const t=bj.makeExecute(e);return{apis:bj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},Gj.buildRequest=Bj,Gj.helpers={opId:No},Gj.getBaseUrl=Vj,Gj.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:ME}},parse:{parsers:{JsonParser:RE,YamlParser:FE,OpenApiJson3_1Parser:DE,OpenApiYaml3_1Parser:NE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:fj}}},Gj.prototype={http:jr,execute(e){return this.applyDefaults(),Gj.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 Gj.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)))}},Gj.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Uo(e)&&Jj(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(Ho(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[h])}};const{helpers:Wj}=Gj,Kj=Gj})(),n=n.default})()));
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|