/*! For license information please see swagger-client.browser.min.js.LICENSE.txt */ !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={2768:(e,t,r)=>{"use strict";var n=r(6604),s=r(4572),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}},4572:(e,t,r)=>{"use strict";var n=r(268),s=r(6604),i=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),a=s("%Reflect.apply%",!0)||n.call(o,i),c=s("%Object.getOwnPropertyDescriptor%",!0),u=s("%Object.defineProperty%",!0),l=s("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=a(n,o,arguments);c&&u&&(c(t,"length").configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))}));return t};var p=function(){return a(n,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},8916:(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{"use strict";var n=r(2120);e.exports=n},1288:(e,t,r)=>{"use strict";r(5344),r(6331),r(6544),r(176),r(2336);var n=r(2204);e.exports=n.AggregateError},4256:(e,t,r)=>{"use strict";e.exports=r(2780)},2780:(e,t,r)=>{"use strict";r(6332);var n=r(9608);e.exports=n},7568:(e,t,r)=>{"use strict";var n=r(824),s=r(2112),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},1456:(e,t,r)=>{"use strict";var n=r(824),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")}},1654:e=>{"use strict";e.exports=function(){}},6080:(e,t,r)=>{"use strict";var n=r(6884),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},9748:(e,t,r)=>{"use strict";var n=r(8709),s=r(9940),i=r(9868),o=function(e){return function(t,r,o){var a,c=n(t),u=i(c),l=s(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},8:(e,t,r)=>{"use strict";var n=r(4800),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},1980:(e,t,r)=>{"use strict";var n=r(8168),s=r(824),i=r(8),o=r(6868)("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}},9495:(e,t,r)=>{"use strict";var n=r(1328),s=r(7312),i=r(2200),o=r(752);e.exports=function(e,t,r){for(var a=s(t),c=o.f,u=i.f,l=0;l{"use strict";var n=r(6688);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2428:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},7180:(e,t,r)=>{"use strict";var n=r(512),s=r(752),i=r(8216);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},8216:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9152:(e,t,r)=>{"use strict";var n=r(7180);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},8616:(e,t,r)=>{"use strict";var n=r(5624),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}},512:(e,t,r)=>{"use strict";var n=r(6688);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8672:e=>{"use strict";var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},728:(e,t,r)=>{"use strict";var n=r(5624),s=r(6884),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},7700: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}},6748:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3928:(e,t,r)=>{"use strict";var n,s,i=r(5624),o=r(6748),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.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},7768:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},536:(e,t,r)=>{"use strict";var n=r(4800),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}},3452:(e,t,r)=>{"use strict";var n=r(7180),s=r(536),i=r(496),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},496:(e,t,r)=>{"use strict";var n=r(6688),s=r(8216);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9596:(e,t,r)=>{"use strict";var n=r(5624),s=r(720),i=r(8936),o=r(824),a=r(2200).f,c=r(9280),u=r(2204),l=r(1524),p=r(7180),h=r(1328),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?u:u[w]||p(u,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?l(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(u,m=w+"Prototype")||p(u,m,{}),p(u[m],d,y),e.real&&A&&(r||!A[d])&&p(A,d,y)))}},6688:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},720:(e,t,r)=>{"use strict";var n=r(1568),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)})},1524:(e,t,r)=>{"use strict";var n=r(8936),s=r(7568),i=r(1568),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)}}},1568:(e,t,r)=>{"use strict";var n=r(6688);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1816:(e,t,r)=>{"use strict";var n=r(1568),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4307:(e,t,r)=>{"use strict";var n=r(512),s=r(1328),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},1480:(e,t,r)=>{"use strict";var n=r(4800),s=r(7568);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},8936:(e,t,r)=>{"use strict";var n=r(8),s=r(4800);e.exports=function(e){if("Function"===n(e))return s(e)}},4800:(e,t,r)=>{"use strict";var n=r(1568),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)}}},7724:(e,t,r)=>{"use strict";var n=r(2204),s=r(5624),i=r(824),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]}},5632:(e,t,r)=>{"use strict";var n=r(1980),s=r(4092),i=r(5340),o=r(2936),a=r(6868)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},5208:(e,t,r)=>{"use strict";var n=r(1816),s=r(7568),i=r(6080),o=r(2112),a=r(5632),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")}},4092:(e,t,r)=>{"use strict";var n=r(7568),s=r(5340);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},5624: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")()},1328:(e,t,r)=>{"use strict";var n=r(4800),s=r(320),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},7248:e=>{"use strict";e.exports={}},2648:(e,t,r)=>{"use strict";var n=r(7724);e.exports=n("document","documentElement")},8776:(e,t,r)=>{"use strict";var n=r(512),s=r(6688),i=r(728);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9928:(e,t,r)=>{"use strict";var n=r(4800),s=r(6688),i=r(8),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},2680:(e,t,r)=>{"use strict";var n=r(824),s=r(6884),i=r(5504);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}},3976:(e,t,r)=>{"use strict";var n=r(6884),s=r(7180);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},4880:(e,t,r)=>{"use strict";var n,s,i,o=r(8299),a=r(5624),c=r(6884),u=r(7180),l=r(1328),p=r(2980),h=r(9136),f=r(7248),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(l(e,v))throw d(m);return t.facade=e,u(e,v,t),t},s=function(e){return l(e,v)?e[v]:{}},i=function(e){return l(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}}}},1740:(e,t,r)=>{"use strict";var n=r(6868),s=r(2936),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},824:(e,t,r)=>{"use strict";var n=r(8672),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},9280:(e,t,r)=>{"use strict";var n=r(6688),s=r(824),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5340:e=>{"use strict";e.exports=function(e){return null==e}},6884:(e,t,r)=>{"use strict";var n=r(824),s=r(8672),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)}},9304:e=>{"use strict";e.exports=!0},360:(e,t,r)=>{"use strict";var n=r(7724),s=r(824),i=r(8416),o=r(8116),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))}},3704:(e,t,r)=>{"use strict";var n=r(1524),s=r(1816),i=r(6080),o=r(2112),a=r(1740),c=r(9868),u=r(8416),l=r(5208),p=r(5632),h=r(3736),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]))&&u(d,x))return x;return new m(!1)}y=l(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&&u(d,x))return x}return new m(!1)}},3736:(e,t,r)=>{"use strict";var n=r(1816),s=r(6080),i=r(4092);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}},6528:(e,t,r)=>{"use strict";var n=r(5184).IteratorPrototype,s=r(3576),i=r(8216),o=r(3600),a=r(2936),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},6548:(e,t,r)=>{"use strict";var n=r(9596),s=r(1816),i=r(9304),o=r(4307),a=r(824),c=r(6528),u=r(5528),l=r(5504),p=r(3600),h=r(7180),f=r(9152),m=r(6868),d=r(2936),y=r(5184),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 T)return T[e];switch(e){case E:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},M=t+" Iterator",I=!1,T=e.prototype,C=T[w]||T["@@iterator"]||m&&T[m],R=!x&&C||k(m),F="Array"===t&&T.entries||C;if(F&&(A=u(F.call(new e)))!==Object.prototype&&A.next&&(i||u(A)===b||(l?l(A,b):a(A[w])||f(A,w,S)),p(A,M,!0,!0),i&&(d[M]=S)),g&&m===j&&C&&C.name!==j&&(!i&&v?h(T,"name",j):(I=!0,R=function(){return s(C,this)})),m)if($={values:k(j),keys:y?R:k(E),entries:k(O)},P)for(_ in $)(x||I||!(_ in T))&&f(T,_,$[_]);else n({target:t,proto:!0,forced:x||I},$);return i&&!P||T[w]===R||f(T,w,R,{name:m}),d[t]=R,$}},5184:(e,t,r)=>{"use strict";var n,s,i,o=r(6688),a=r(824),c=r(6884),u=r(3576),l=r(5528),p=r(9152),h=r(6868),f=r(9304),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:f&&(n=u(n)),a(n[m])||p(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2936:e=>{"use strict";e.exports={}},9868:(e,t,r)=>{"use strict";var n=r(2912);e.exports=function(e){return n(e.length)}},2880: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)}},6832:(e,t,r)=>{"use strict";var n=r(4552);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},3576:(e,t,r)=>{"use strict";var n,s=r(6080),i=r(7308),o=r(7768),a=r(7248),c=r(2648),u=r(728),l=r(9136),p="prototype",h="script",f=l("IE_PROTO"),m=function(){},d=function(e){return"<"+h+">"+e+""},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=u("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)}},7308:(e,t,r)=>{"use strict";var n=r(512),s=r(9708),i=r(752),o=r(6080),a=r(8709),c=r(1248);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},752:(e,t,r)=>{"use strict";var n=r(512),s=r(8776),i=r(9708),o=r(6080),a=r(8960),c=TypeError,u=Object.defineProperty,l=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=l(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 u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return u(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}},2200:(e,t,r)=>{"use strict";var n=r(512),s=r(1816),i=r(1632),o=r(8216),a=r(8709),c=r(8960),u=r(1328),l=r(8776),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},7728:(e,t,r)=>{"use strict";var n=r(6008),s=r(7768).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},8576:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},5528:(e,t,r)=>{"use strict";var n=r(1328),s=r(824),i=r(320),o=r(9136),a=r(2744),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.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 u?l:null}},8416:(e,t,r)=>{"use strict";var n=r(4800);e.exports=n({}.isPrototypeOf)},6008:(e,t,r)=>{"use strict";var n=r(4800),s=r(1328),i=r(8709),o=r(9748).indexOf,a=r(7248),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},1248:(e,t,r)=>{"use strict";var n=r(6008),s=r(7768);e.exports=Object.keys||function(e){return n(e,s)}},1632:(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},5504:(e,t,r)=>{"use strict";var n=r(1480),s=r(6080),i=r(1456);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)},7832:(e,t,r)=>{"use strict";var n=r(8168),s=r(1980);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},4644:(e,t,r)=>{"use strict";var n=r(1816),s=r(824),i=r(6884),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")}},7312:(e,t,r)=>{"use strict";var n=r(7724),s=r(4800),i=r(7728),o=r(8576),a=r(6080),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}},2204:e=>{"use strict";e.exports={}},4328:(e,t,r)=>{"use strict";var n=r(752).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}})}},7020:(e,t,r)=>{"use strict";var n=r(5340),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},3600:(e,t,r)=>{"use strict";var n=r(8168),s=r(752).f,i=r(7180),o=r(1328),a=r(7832),c=r(6868)("toStringTag");e.exports=function(e,t,r,u){if(e){var l=r?e:e.prototype;o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a)}}},9136:(e,t,r)=>{"use strict";var n=r(8792),s=r(987),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},2980:(e,t,r)=>{"use strict";var n=r(5624),s=r(8616),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8792:(e,t,r)=>{"use strict";var n=r(9304),s=r(2980);(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"})},3784:(e,t,r)=>{"use strict";var n=r(4800),s=r(3880),i=r(4552),o=r(7020),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,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||(l=c(p,h+1))<56320||l>57343?e?a(p,h):n:e?u(p,h,h+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},9336:(e,t,r)=>{"use strict";var n=r(3928),s=r(6688),i=r(5624).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9940:(e,t,r)=>{"use strict";var n=r(3880),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)}},8709:(e,t,r)=>{"use strict";var n=r(9928),s=r(7020);e.exports=function(e){return n(s(e))}},3880:(e,t,r)=>{"use strict";var n=r(2880);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},2912:(e,t,r)=>{"use strict";var n=r(3880),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},320:(e,t,r)=>{"use strict";var n=r(7020),s=Object;e.exports=function(e){return s(n(e))}},4352:(e,t,r)=>{"use strict";var n=r(1816),s=r(6884),i=r(360),o=r(4092),a=r(4644),c=r(6868),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},8960:(e,t,r)=>{"use strict";var n=r(4352),s=r(360);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},8168:(e,t,r)=>{"use strict";var n={};n[r(6868)("toStringTag")]="z",e.exports="[object z]"===String(n)},4552:(e,t,r)=>{"use strict";var n=r(1980),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},2112:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},987:(e,t,r)=>{"use strict";var n=r(4800),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},8116:(e,t,r)=>{"use strict";var n=r(9336);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9708:(e,t,r)=>{"use strict";var n=r(512),s=r(6688);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8299:(e,t,r)=>{"use strict";var n=r(5624),s=r(824),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},6868:(e,t,r)=>{"use strict";var n=r(5624),s=r(8792),i=r(1328),o=r(987),a=r(9336),c=r(8116),u=n.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},5032:(e,t,r)=>{"use strict";var n=r(7724),s=r(1328),i=r(7180),o=r(8416),a=r(5504),c=r(9495),u=r(4328),l=r(2680),p=r(6832),h=r(3976),f=r(3452),m=r(512),d=r(9304);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)&&l(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&&(u(O,w,g),u(O,w,"prepareStackTrace")),c(O,w),!d)try{E.name!==x&&i(E,"name",x),E.constructor=O}catch(e){}return O}}},6544:(e,t,r)=>{"use strict";var n=r(9596),s=r(7724),i=r(720),o=r(6688),a=r(5032),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},9112:(e,t,r)=>{"use strict";var n=r(9596),s=r(8416),i=r(5528),o=r(5504),a=r(9495),c=r(3576),u=r(7180),l=r(8216),p=r(3976),h=r(3452),f=r(3704),m=r(6832),d=r(6868)("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),u(r,d,"Error")),void 0!==t&&u(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}),u(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:l(1,v),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:v})},6331:(e,t,r)=>{"use strict";r(9112)},176:(e,t,r)=>{"use strict";var n=r(8709),s=r(1654),i=r(2936),o=r(4880),a=r(752).f,c=r(6548),u=r(2428),l=r(9304),p=r(512),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,u(void 0,!0);switch(r){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},5344:(e,t,r)=>{"use strict";var n=r(9596),s=r(5624),i=r(720),o=r(5032),a="WebAssembly",c=s[a],u=7!==Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("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)}}))},2336:(e,t,r)=>{"use strict";var n=r(3784).charAt,s=r(4552),i=r(4880),o=r(6548),a=r(2428),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(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))}))},6332:(e,t,r)=>{"use strict";r(6331)},9796:(e,t,r)=>{"use strict";r(176);var n=r(7700),s=r(5624),i=r(1980),o=r(7180),a=r(2936),c=r(6868)("toStringTag");for(var u in n){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},2120:(e,t,r)=>{"use strict";r(6332);var n=r(1288);r(9796),e.exports=n},8084: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 u=c;e.exports=u},7840:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(7840);e.exports=Function.prototype.bind||n},6604:(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 u=function(){throw new o},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,p=r(4308)(),h=r(7636)(),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%":l,"%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(268),w=r(5359),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,u=i.value,l=!1,p=i.alias;p&&(n=p[0],j(r,E([0,1],p)));for(var h=1,f=!0;h=r.length){var v=c(u,m);u=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[m]}else f=w(u,m),u=u[m];f&&!l&&(y[a]=u)}}return u}},7636:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},4308:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(1968);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},1968: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}},5359:(e,t,r)=>{"use strict";var n=r(268);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},6032:(e,t,r)=>{var n=r(7892)(r(7188),"DataView");e.exports=n},1276:(e,t,r)=>{var n=r(4212),s=r(2688),i=r(3916),o=r(6952),a=r(1016);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(5968),s=r(3740),i=r(4996),o=r(2600),a=r(7336);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7892)(r(7188),"Map");e.exports=n},1476:(e,t,r)=>{var n=r(8720),s=r(4760),i=r(88),o=r(9776),a=r(8619);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7892)(r(7188),"Promise");e.exports=n},6920:(e,t,r)=>{var n=r(7892)(r(7188),"Set");e.exports=n},6152:(e,t,r)=>{var n=r(1476),s=r(9516),i=r(3504);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(3040),s=r(5643),i=r(3368),o=r(636),a=r(3012),c=r(3388);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},7128:(e,t,r)=>{var n=r(7188).Symbol;e.exports=n},9704:(e,t,r)=>{var n=r(7188).Uint8Array;e.exports=n},5200:(e,t,r)=>{var n=r(7892)(r(7188),"WeakMap");e.exports=n},8640:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r{var n=r(736),s=r(348),i=r(2488),o=r(7684),a=r(1188),c=r(6700),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),p=!r&&!l&&o(e),h=!r&&!l&&!p&&c(e),f=r||l||p||h,m=f?n(e.length,String):[],d=m.length;for(var y in e)!t&&!u.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}},1168:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(864);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4668:(e,t,r)=>{var n=r(1168),s=r(2488);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},6944:(e,t,r)=>{var n=r(7128),s=r(5664),i=r(3168),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)}},3432:(e,t,r)=>{var n=r(6944),s=r(2892);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},9184:(e,t,r)=>{var n=r(4840),s=r(2892);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))}},4840:(e,t,r)=>{var n=r(520),s=r(9124),i=r(9972),o=r(8608),a=r(3871),c=r(2488),u=r(7684),l=r(6700),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&&u(e)){if(!u(t))return!1;v=!0,E=!1}if(O&&!E)return g||(g=new n),v||l(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))}},7200:(e,t,r)=>{var n=r(7920),s=r(6084),i=r(8940),o=r(7456),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.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))}},7160:(e,t,r)=>{var n=r(6944),s=r(9024),i=r(2892),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)]}},5552:(e,t,r)=>{var n=r(1004),s=r(3320),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}},736:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{e.exports=function(e){return function(t){return e(t)}}},968:e=>{e.exports=function(e,t){return e.has(t)}},5280:(e,t,r)=>{var n=r(7188)["__core-js_shared__"];e.exports=n},9124:(e,t,r)=>{var n=r(6152),s=r(5600),i=r(968);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))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{var n=r(7128),s=r(9704),i=r(864),o=r(9124),a=r(3152),c=r(2060),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,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,u,p,h);return h.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8608:(e,t,r)=>{var n=r(1096),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var p=l;p--;){var h=u[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{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},1096:(e,t,r)=>{var n=r(4668),s=r(3520),i=r(5160);e.exports=function(e){return n(e,i,s)}},6068:(e,t,r)=>{var n=r(6096);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},7892:(e,t,r)=>{var n=r(7200),s=r(5692);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},5664:(e,t,r)=>{var n=r(7128),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}},3520:(e,t,r)=>{var n=r(8640),s=r(872),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},3871:(e,t,r)=>{var n=r(6032),s=r(420),i=r(404),o=r(6920),a=r(5200),c=r(6944),u=r(7456),l="[object Map]",p="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",d=u(n),y=u(s),g=u(i),v=u(o),b=u(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=m||s&&x(new s)!=l||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?u(r):"";if(n)switch(n){case d:return m;case y:return l;case g:return p;case v:return h;case b:return f}return t}),e.exports=x},5692:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},4212:(e,t,r)=>{var n=r(5604);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},2688:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},3916:(e,t,r)=>{var n=r(5604),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}},6952:(e,t,r)=>{var n=r(5604),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},1016:(e,t,r)=>{var n=r(5604);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}},1188: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{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},6084:(e,t,r)=>{var n,s=r(5280),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},1004:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},5968:e=>{e.exports=function(){this.__data__=[],this.size=0}},3740:(e,t,r)=>{var n=r(6600),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)}},4996:(e,t,r)=>{var n=r(6600);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},2600:(e,t,r)=>{var n=r(6600);e.exports=function(e){return n(this.__data__,e)>-1}},7336:(e,t,r)=>{var n=r(6600);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}},8720:(e,t,r)=>{var n=r(1276),s=r(3040),i=r(420);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},4760:(e,t,r)=>{var n=r(6068);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(6068);e.exports=function(e){return n(this,e).get(e)}},9776:(e,t,r)=>{var n=r(6068);e.exports=function(e){return n(this,e).has(e)}},8619:(e,t,r)=>{var n=r(6068);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}},3152:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},5604:(e,t,r)=>{var n=r(7892)(Object,"create");e.exports=n},3320:(e,t,r)=>{var n=r(1304)(Object.keys,Object);e.exports=n},9180:(e,t,r)=>{e=r.nmd(e);var n=r(4848),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},3168:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},1304:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7188:(e,t,r)=>{var n=r(4848),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},9516:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},3504:e=>{e.exports=function(e){return this.__data__.has(e)}},2060:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},5643:(e,t,r)=>{var n=r(3040);e.exports=function(){this.__data__=new n,this.size=0}},3368:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},636:e=>{e.exports=function(e){return this.__data__.get(e)}},3012:e=>{e.exports=function(e){return this.__data__.has(e)}},3388:(e,t,r)=>{var n=r(3040),s=r(420),i=r(1476);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}},7456: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""}},864:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},348:(e,t,r)=>{var n=r(3432),s=r(2892),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},2488:e=>{var t=Array.isArray;e.exports=t},4900:(e,t,r)=>{var n=r(7920),s=r(9024);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},7e3:(e,t,r)=>{var n=r(6944),s=r(2892);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},7684:(e,t,r)=>{e=r.nmd(e);var n=r(7188),s=r(6448),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},948:(e,t,r)=>{var n=r(9184);e.exports=function(e,t){return n(e,t)}},7920:(e,t,r)=>{var n=r(6944),s=r(8940);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}},9024:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6756:e=>{e.exports=function(e){return null===e}},568:(e,t,r)=>{var n=r(6944),s=r(2892);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},8940:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2892:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6384:(e,t,r)=>{var n=r(6944),s=r(2488),i=r(2892);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},6700:(e,t,r)=>{var n=r(7160),s=r(9165),i=r(9180),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},5160:(e,t,r)=>{var n=r(7640),s=r(5552),i=r(4900);e.exports=function(e){return i(e)?n(e):s(e)}},2548: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)}}},872:e=>{e.exports=function(){return[]}},6448:e=>{e.exports=function(){return!1}},8440:(e,t,r)=>{const n=r(2548);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},8032: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},3280:(e,t,r)=>{const n=r(6756),s=r(6384),i=r(568),o=r(7e3),a=r(8940),c=r(5472),u=r(6508);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.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",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.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{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=l,e.exports=l},4512:(e,t,r)=>{const n=r(2548),s=r(8440);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},6508:(e,t,r)=>{const n=r(7928),s=r(5448),i=r(5052),o=r(6236),a=r(6416),c=r(7352),u=r(4036),l=r(4408),p=r(7080),h=r(3552),f=r(8440),m=r(4512),d=r(8032);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 l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=h,n.prototype.MemberElement=u,n.prototype.refract=y,f.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:y,ArraySlice:f,ObjectSlice:m,KeyValuePair:d}},7080:(e,t,r)=>{const n=r(7928);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)}}},3552:(e,t,r)=>{const n=r(7928);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)}}},784:(e,t,r)=>{const n=r(3280),s=r(6508);t.MH=n,t.KeyValuePair=r(8032),t.eW=s.ArraySlice,t.wL=s.ObjectSlice,t.gr=s.Element,t.M$=s.StringElement,t.wH=s.NumberElement,t.Ar=s.BooleanElement,t.WM=s.NullElement,t.uQ=s.ArrayElement,t.We=s.ObjectElement,t.u6=s.MemberElement,t.eE=s.RefElement,t.UH=s.LinkElement,t.WG=s.refract,r(5472),r(344)},7352:(e,t,r)=>{const n=r(2548),s=r(7928),i=r(8440);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{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},6416:(e,t,r)=>{const n=r(7928);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},7928:(e,t,r)=>{const n=r(948),s=r(8032),i=r(8440);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},4036:(e,t,r)=>{const n=r(8032),s=r(7928);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)}}},5448:(e,t,r)=>{const n=r(7928);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")}}},6236:(e,t,r)=>{const n=r(7928);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},4408:(e,t,r)=>{const n=r(2548),s=r(8940),i=r(7352),o=r(4036),a=r(4512);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)))}}},5052:(e,t,r)=>{const n=r(7928);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}}},344:(e,t,r)=>{const n=r(5472);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]))}))}}},5472: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]))}))}}},7872:(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,u=a&&c&&"function"==typeof c.get?c.get:null,l=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,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(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(6204),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]"!==z(e)||M&&"object"==typeof e&&M in e)}function B(e){return!("[object RegExp]"!==z(e)||M&&"object"==typeof e&&M 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(W(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(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=!W(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(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(W(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 J(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return d?C(t,x):x}if("bigint"==typeof t){var E=String(t)+"n";return d?C(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(H(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 W(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),G=Z(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(G.length>0?" { "+O.call(G,", ")+" }":"")}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"}if(L(t)){if(0===t.length)return"[]";var se=Z(t,F);return $&&!function(e){for(var t=0;t=0)return!1;return!0}(se)?"["+X(se,$)+"]":"[ "+O.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||M&&"object"==typeof e&&M 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{u.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))})),Y("Map",i.call(t),oe,$)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return l&&l.call(t,(function(e){ae.push(F(e,t))})),Y("Set",u.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 Q("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 Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==z(e)||M&&"object"==typeof e&&M 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]"!==z(e)||M&&"object"==typeof e&&M in e)}(t))return K(m.call(t));if(function(e){return!("[object String]"!==z(e)||M&&"object"==typeof e&&M in e)}(t))return K(F(String(t)));if(!function(e){return!("[object Date]"!==z(e)||M&&"object"==typeof e&&M in e)}(t)&&!B(t)){var ce=Z(t,F),ue=T?T(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",pe=!ue&&M&&Object(t)===t&&M in t?v.call(z(t),8,-1):le?"Object":"",he=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||le?"["+O.call(j.call([],pe||[],le||[]),": ")+"] ":"");return 0===ce.length?he+"{}":$?he+"{"+X(ce,$)+"}":he+"{ "+O.call(ce,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function z(e){return d.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(v.call(e,0,t.maxStringLength),t)+n}return N(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(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 Q(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):O.call(r,", "))+"}"}function X(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{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=[],u=!1,l=-1;function p(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&h())}function h(){if(!u){var e=o(p);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l1)for(var r=1;r{"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}},7392:(e,t,r)=>{"use strict";var n=r(4368),s=r(4812),i=r(6515);e.exports={formats:i,parse:s,stringify:n}},4812:(e,t,r)=>{"use strict";var n=r(5872),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},u=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=a?i.slice(0,a.index):i,l=[];if(u){if(!r.plainObjects&&s.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var p=0;r.depth>0&&null!==(a=o.exec(i))&&p=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[])[l]=s:"__proto__"!==u&&(o[u]=s):o={0:s}}s=o}return s}(l,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 l="string"==typeof e?function(e,t){var r,u={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=l.split(t.delimiter,p),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=i(y)?[y]:y),s.call(u,d)?u[d]=n.combine(u[d],y):u[d]=y}return u}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(l),f=0;f{"use strict";var n=r(7223),s=r(5872),i=r(6515),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,u=Array.prototype.push,l=function(e,t){u.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,u,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 M=Object.keys(O);_=d?M.sort(d):M}for(var I=o&&c(O)&&1===O.length?r+"[]":r,T=0;T<_.length;++T){var C=_[T],R="object"==typeof C&&void 0!==C.value?C.value:O[C];if(!u||null!==R){var F=c(O)?"function"==typeof i?i(I,C):I:I+(y?"."+C:"["+C+"]");E.set(t,P);var D=n();D.set(m,E),l(k,e(R,F,i,o,a,u,"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,u=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 u.filter?s=(0,u.filter)("",s):c(u.filter)&&(r=u.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)),u.sort&&r.sort(u.sort);for(var g=n(),v=0;v0?w+x:""}},5872:(e,t,r)=>{"use strict";var n=r(6515),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;n1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.RFC1738&&(40===l||41===l)?c+=a.charAt(u):l<128?c+=o[l]:l<2048?c+=o[192|l>>6]+o[128|63&l]:l<55296||l>=57344?c+=o[224|l>>12]+o[128|l>>6&63]+o[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(u)),c+=o[240|l>>18]+o[128|l>>12&63]+o[128|l>>6&63]+o[128|63&l])}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{"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),u={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(u,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>l,default:()=>m});var l=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:l,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?tthis.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||l)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||l)=>{let t,r,n;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",n=0;nthis.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=u,((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)},7223:(e,t,r)=>{"use strict";var n=r(6604),s=r(2768),i=r(7872),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),u=s("WeakMap.prototype.get",!0),l=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 u(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),l(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}},3200:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="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{"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{},944:(e,t,r)=>{e.exports=r(4256)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d(n,{default:()=>Jj});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Xr,_areEquals:()=>un,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,{qk:()=>Qi,k9:()=>Wi,Yx:()=>Gi,GU:()=>zi,isHttpUrl:()=>Hi,WI:()=>Yi,Ok:()=>Xi,Md:()=>Ki,C2:()=>Zi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ja,includesClasses:()=>Ka,includesSymbols:()=>Ga,isAnnotationElement:()=>Ua,isArrayElement:()=>Na,isBooleanElement:()=>Fa,isCommentElement:()=>Va,isElement:()=>Ia,isLinkElement:()=>La,isMemberElement:()=>qa,isNullElement:()=>Ra,isNumberElement:()=>Ca,isObjectElement:()=>Da,isParseResultElement:()=>Wa,isPrimitiveElement:()=>Ha,isRefElement:()=>Ba,isSourceMapElement:()=>za,isStringElement:()=>Ta});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Xp,isJSONSchemaElement:()=>Yp,isLinkDescriptionElement:()=>eh,isMediaElement:()=>Zp});var a={};r.r(a),r.d(a,{isOpenApiExtension:()=>Wh,isReferenceLikeElement:()=>Bh,isServerLikeElement:()=>Uh,isTagLikeElement:()=>Vh});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>Yf,isCallbackElement:()=>Mf,isComponentsElement:()=>If,isContactElement:()=>Tf,isExampleElement:()=>Cf,isExternalDocumentationElement:()=>Rf,isHeaderElement:()=>Ff,isInfoElement:()=>Df,isLicenseElement:()=>Nf,isLinkElement:()=>qf,isMediaTypeElement:()=>tm,isOpenApi3_0Element:()=>Bf,isOpenapiElement:()=>Lf,isOperationElement:()=>Uf,isParameterElement:()=>Vf,isPathItemElement:()=>Wf,isPathsElement:()=>zf,isReferenceElement:()=>Hf,isRequestBodyElement:()=>Jf,isResponseElement:()=>Gf,isResponsesElement:()=>Kf,isSchemaElement:()=>Qf,isSecurityRequirementElement:()=>Xf,isServerElement:()=>Zf,isServerVariableElement:()=>em,isServersElement:()=>rm});var u={};r.r(u),r.d(u,{isBooleanJsonSchemaElement:()=>Ab,isCallbackElement:()=>sb,isComponentsElement:()=>ib,isContactElement:()=>ob,isExampleElement:()=>ab,isExternalDocumentationElement:()=>cb,isHeaderElement:()=>ub,isInfoElement:()=>lb,isJsonSchemaDialectElement:()=>pb,isLicenseElement:()=>hb,isLinkElement:()=>fb,isMediaTypeElement:()=>Mb,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 l={};r.r(l),r.d(l,{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(7392),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;ra&&(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,u="",l=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+l+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),u=g.repeat(" ",t.indent)+E((e.line-a+1).toString(),l)+" | "+c.str+"\n"+u;for(c=w(e.buffer,s[o],i[o],e.position,p),u+=g.repeat(" ",t.indent)+E((e.line+1).toString(),l)+" | "+c.str+"\n",u+=g.repeat("-",t.indent+l+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),u+=g.repeat(" ",t.indent)+E((e.line+a+1).toString(),l)+" | "+c.str+"\n";return u.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=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=T.extend({implicit:[C,R,N,B]}),V=U,W=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 P("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==W.exec(e)||null!==z.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,u=0,l=null;if(null===(t=W.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(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),c=new Date(Date.UTC(r,n,s,i,o,a,u)),l&&c.setTime(c.getTime()-l),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var J=new P("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),G="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=G;for(r=0;r64)){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>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>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}}),Q=Object.prototype.hasOwnProperty,Y=Object.prototype.toString;var X=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>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 Me(e,t){e.onWarning&&e.onWarning.call(null,_e(e,t))}var Ie={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&&Me(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 Te(e,t,r,n){var s,i,o,a;if(t1&&(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.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndentt?m=1:e.lineIndent===t?m=0:e.lineIndentt)&&(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),u=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==u)ke(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===s?ke(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ke(e,"repeat of an indentation width identifier"):(l=t+s-1,u=!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);(!u||e.lineIndentl&&(l=e.lineIndent),ve(i))p++;else{if(e.lineIndent0){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)?(Te(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,u,l,p=e.kind,h=e.result;if(xe(l=e.input.charCodeAt(e.position))||we(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(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!==l;){if(58===l){if(xe(n=e.input.charCodeAt(e.position+1))||r&&we(n))break}else if(35===l){if(xe(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ne(e)||r&&we(l))break;if(ve(l)){if(a=e.line,c=e.lineStart,u=e.lineIndent,De(e,!1,-1),e.lineIndent>=t){o=!0,l=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=u;break}}o&&(Te(e,s,i,!1),qe(e,e.line-a),s=i=e.position,o=!1),be(l)||(i=e.position+1),l=e.input.charCodeAt(++e.position)}return Te(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,u=e.implicitTypes.length;c"),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 We(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(Ie,r)?Ie[r](e,r,n):Me(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))&&Me(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=55296&&n<=56319&&t+1=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Ct(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,u,l=0,p=null,h=!1,f=!1,m=-1!==n,d=-1,y=kt(u=Tt(e,0))&&u!==Ke&&!_t(u)&&u!==ct&&u!==ht&&u!==ut&&u!==at&&u!==mt&&u!==dt&&u!==gt&&u!==bt&&u!==rt&&u!==st&&u!==ot&&u!==et&&u!==vt&&u!==lt&&u!==pt&&u!==it&&u!==tt&&u!==nt&&u!==ft&&u!==yt&&function(e){return!_t(e)&&e!==ut}(Tt(e,e.length-1));if(t||o)for(c=0;c=65536?c+=2:c++){if(!kt(l=Tt(e,c)))return qt;y=y&&It(l,p,a),p=l}else{for(c=0;c=65536?c+=2:c++){if((l=Tt(e,c))===Ye)h=!0,m&&(f=f||c-d-1>n&&" "!==e[d+1],d=c);else if(!kt(l))return qt;y=y&&It(l,p,a),p=l}f=f||m&&c-d-1>n&&" "!==e[d+1]}return h||f?r>9&&Ct(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"+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,Wt(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;n=s.exec(e);){var c=n[1],u=n[2];r=" "===u[0],i+=c+(o||r||""===u?"":"\n")+Wt(u,t),o=r}return i}(t,o),i));case qt:return'"'+function(e){for(var t,r="",n=0,s=0;s=65536?s+=2:s++)n=Tt(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=Ct(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 Wt(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 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),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var l,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(l=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(s=!1),p&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(h&&p&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,a,c,u,l="",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;s1024)&&(e.dump&&Ye===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,c&&(u+=$t(e,t)),Jt(e,t+1,a,!0,c)&&(e.dump&&Ye===e.dump.charCodeAt(0)?u+=":":u+=": ",l+=u+=e.dump));e.tag=p,e.dump=l||"{}"}(e,t,e.dump,s),p&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,s,i,o,a,c="",u=e.tag,l=Object.keys(r);for(n=0,s=l.length;n1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Jt(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=u,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+l+" "+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_"+l+e.dump)):(!function(e,t,r){var n,s,i,o="",a=e.tag;for(n=0,s=r.length;n",e.dump=a+" "+e.dump)}return!0}function Gt(e,t){var r,n,s=[],i=[];for(Kt(e,s,i),r=0,n=i.length;r":/?#[]@!$&'()*+,;=".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:"|"},Mr={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class Ir extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Tr(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),u=c(e);if(void 0===a&&s)return[[u,""]];if($r(a)||_r(a))return[[u,a]];if(i)return Cr(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:n,allowReserved:s}=o;return Cr(e,a,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[u,new Ir(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[u,new Ir(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[u,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[u,a.map(c).join(",")]]:[[u,c(JSON.stringify(a))]]}return"object"!=typeof a?[[u,c(a)]]:Array.isArray(a)?"multi"===n?[[u,a.map(c)]]:[[u,a.map(c).join(Mr[n||"csv"])]]:[[u,""]]}function Cr(e,t,r,n){const s=n.style||"form",i=void 0===n.explode?"form"===s:n.explode,o=!r&&(n&&n.allowReserved?"unsafe":"reserved"),a=e=>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 Tr(r,e[r]))t[n]=s instanceof Ir?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 Tr(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 Wr(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;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 Kr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t0&&"constructor"==a[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[h]?p=a.slice(0,u).join("/"):u==l-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),u++,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(u>=l){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=tn[t.op].call(t,c,h,e)).test)throw new Xr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(u>=l){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}if(c=c[h],r&&u0)throw new Xr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Xr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Xr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Kr(e.value))throw new Xr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var s=e.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new Xr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new Xr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=cn([{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 cn(e,t,r){try{if(!Array.isArray(e))throw new Xr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)sn(zr(t),zr(e),r||!0);else{r=r||an;for(var n=0;n0&&(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=Wr(t),o=Wr(e),a=!1,c=o.length-1;c>=0;c--){var u=e[p=o[c]];if(!Vr(t,p)||void 0===t[p]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+Jr(p),value:zr(u)}),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 l=t[p];"object"==typeof u&&null!=u&&"object"==typeof l&&null!=l&&Array.isArray(u)===Array.isArray(l)?yn(u,l,r,n+"/"+Jr(p),s):u!==l&&(!0,s&&r.push({op:"test",path:n+"/"+Jr(p),value:zr(u)}),r.push({op:"replace",path:n+"/"+Jr(p),value:zr(l)}))}}if(a||i.length!=o.length)for(c=0;cvoid 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&&Tn(t)&&(Array.isArray(t.value)||_n(t.value))&&(n={...n,...t.meta}),e=n}else if(sn(e,[t]),r.allowMetaPatches&&t.meta&&Tn(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(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(Tn).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 Mn(e){if(Cn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function In(e){return Mn(e)||Cn(e)&&"mutation"===e.type}function Tn(e){return In(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Cn(e){return e&&"object"==typeof e}function Rn(e,t){try{return rn(e,t)}catch(e){return console.error(e),{}}}var Fn=r(6512);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 Wn=qn((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s=0;)Qn(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=Gn(e);function i(e,t){return cs(e,t,r.slice(),n.slice())}return!Kn((function(e,t){return!Kn(i,t,e)}),Gn(t),s)}function cs(e,t,r,n){if(Yn(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||!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&&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 u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!Qn(p,t)||!cs(t[p],e[p],u,l))return!1;a-=1}return!0}const us=qn((function(e,t){return cs(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=0}function ps(e,t){for(var r=0,n=t.length,s=Array(n);r=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":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 Jn(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,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ms(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Is=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 Ts="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Cs(e,t,r){return function(n,s,i){if(Is(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[Ts])return r(n,s,i[Ts]());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=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),Ys(e,n,r))}}const Xs=qn((function(e,t){return 1===e?Nn(t):ks(e,Ys(e,[],t))}));const Zs=Nn((function(e){return Xs(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 Xs(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 Ws(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 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)}))}))(qn(ls));const ui=Zs((function(e,t){return Hs(ri(""),oi(ci(e)),ai(""))(t)}));function li(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=Cs(ys,pi,li);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 Xs(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;rt!=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(Gs(e),t)}));const Si=Nn((function(e){return Xs(Us(ji,0,Oi("length",e)),(function(){for(var t=0,r=e.length;tHn(_s(/^win/),["platform"],Fn),Vi=e=>{try{const t=new URL(e);return ui(":",t.protocol)}catch{return}},Wi=(Hs(Vi,Ei),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),zi=e=>{if(Fn.browser)return!1;const t=Vi(e);return wi(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Hi=e=>{const t=Vi(e);return"http"===t||"https"===t},Ji=(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{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},Qi=()=>{if(Fn.browser)return Ki(globalThis.location.href);const e=Fn.cwd(),t=Qs(e);return["/","\\"].includes(t)?e:e+(Ui()?"\\":"/")},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;Ui()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;ezi(e)?Ji(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(4600),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(Hi(s))o=Yi(s,i);else{const e=Yi(h,s),t=Yi(e,i).replace(h,"");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const uo=/^([a-z]+:\/\/|\/\/)/i,lo=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 lo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=xo(e),c=a[0],u=a[1]||"";let l,p,h;try{l=o||c?vo(c,o):null}catch(t){return bo(t,{pointer:u,$ref:e,basePath:l,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||""}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&$o(a,e))return!0;let u="";const l=r.some((e=>(u=`${u}/${Po(e)}`,s[u]&&s[u].some((e=>$o(e,o)||$o(o,e))))));if(l)return!0;return void(s[a]=(s[a]||[]).concat(o))}(u,l,i,n)&&!s.useCircularStructures){const t=co(e,l);return e===t?null:xn.replace(r,t)}if(null==l?(h=Oo(u),p=n.get(h),void 0===p&&(p=new lo(`Could not resolve reference: ${e}`,{pointer:u,$ref:e,baseDoc:o,fullPath:r}))):(p=wo(l,u),p=null!=p.__value?p.__value:p.catch((t=>{throw bo(t,{pointer:u,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[xn.remove(r),p];const f=co(e,l),m=xn.replace(i,p,{$$ref:f});if(l&&l!==o)return[m,xn.context(i,{baseDoc:l})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),n(t.value);function n(e){return 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:lo,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(!uo.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 bo(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 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 lo(`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{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 Io{constructor(e){this.root=To(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Co(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Co(s[n],t,r):s[n]=To(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,n=this.root;for(let s=0;s{if(!e)return e;const{children:n}=e;return!n[r]&&t&&(n[r]=To(null,e)),n[r]}),this.root)}}function To(e,t){return Co({children:{}},e,t)}function Co(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]=Co(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 Io,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 u=a.length-1,l=a[u],p=a.indexOf("properties"),h="properties"===l&&u===p,f=s.allowMetaPatches&&i[n.$$ref];for(const u of Object.keys(n)){const l=n[u],p=a.concat(u),m=xn.isObject(l),d=n.$$ref;if(f||m&&(s.allowMetaPatches&&d&&(i[d]=!0),yield*o(l,p,c)),!h&&u===e.key){const n=t(r,a);r&&!n||(yield e.plugin(l,u,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:Mo},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:u,useCircularStructures:l}=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:l},new Fo(f).dispatch()).then(u?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}},Wo=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=>Wo(e)||zo(e),Jo={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 Go={name:"openapi-3-0",match:({spec:e})=>Wo(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}),Qo=Ko({strategies:[Go,Jo,Uo]}),Yo=e=>async(t,r,n={})=>(async(e,t,r={})=>{const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:u,strategies:l}=r,p={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:u,strategies:l},h=l.find((e=>e.match(p))).normalize(p),f=await Qo({...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,Uo]});var Xo=r(784);class Zo extends Xo.M${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 Xo.M${constructor(e,t,r){super(e,t,r),this.element="comment"}}const ra=ta;class na extends Xo.uQ{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 Xo.uQ{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.uQ([e.start.row,e.start.column,e.start.char]),r=new Xo.uQ([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||{})Qn(n,t)&&(s[n]=Qn(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)Qn(n,r)&&!Qn(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 ua=qn((function(e,t){return ca((function(e,t,r){return r}),e,t)}));const la=Ws(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&&us(e,ya(e))}));const va=Xs(1,ki(Array.isArray)?Array.isArray:Hs(os,Ai("Array")));const ba=ma(va,ga);var xa=Xs(3,(function(e,t,r){var n=zn(e,r),s=zn(la(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"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 Xo.uQ)&&t.classes.includes(e),ka=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Ma=e=>e({hasMethod:Pa,hasBasicElementProps:Aa,primitiveEq:$a,isElementType:ka,hasClass:_a}),Ia=Ma((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.gr||e(r)&&t(void 0,r))),Ta=Ma((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.M$||e(r)&&t("string",r))),Ca=Ma((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.wH||e(r)&&t("number",r))),Ra=Ma((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.WM||e(r)&&t("null",r))),Fa=Ma((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.Ar||e(r)&&t("boolean",r))),Da=Ma((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Xo.We||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Na=Ma((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Xo.uQ&&!(n instanceof Xo.We)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),qa=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xo.u6||e(n)&&t("member",n)&&r(void 0,n))),La=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xo.UH||e(n)&&t("link",n)&&r(void 0,n))),Ba=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xo.eE||e(n)&&t("ref",n)&&r(void 0,n))),Ua=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ea||e(n)&&t("annotation",n)&&r("array",n))),Va=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ra||e(n)&&t("comment",n)&&r("string",n))),Wa=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sa||e(n)&&t("parseResult",n)&&r("array",n))),za=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oa||e(n)&&t("sourceMap",n)&&r("array",n))),Ha=e=>ka("object",e)||ka("array",e)||ka("boolean",e)||ka("number",e)||ka("string",e)||ka("null",e)||ka("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!!Na(r)&&Sa(ci(r.toValue()),e)},Ka=(e,t)=>0===e.length||Sa(ci(t.classes.toValue()),e);const Qa=us(null);const Ya=vi(Qa);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 Za=function(e){return"object"===Xa(e)};const ec=Xs(1,ma(Ya,Za));var tc=Hs(os,Ai("Object")),rc=Hs(As,us(As(Object))),nc=Hn(ma(ki,rc),["constructor"]);const sc=Xs(1,(function(e){if(!ec(e)||!tc(e))return!1;var t=Object.getPrototypeOf(e);return!!Qa(t)||nc(t)}));class ic extends Xo.MH{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,uc=()=>({predicates:{...i},namespace:cc});const lc=function(){return!1};var pc=r(944);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(u,...l){let p=u,h=!1;for(let f=0;f{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=l(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(!u(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(!u(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:u=bc,nodeCloneFn:l=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=l(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(!u(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(!u(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 Xo.KeyValuePair){const{key:t,value:s}=e,i=Ia(t)?Pc(t,n):t,o=Ia(s)?Pc(s,n):s,a=new Xo.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Xo.wL){const t=e=>Pc(e,n),s=[...e].map(t),i=new Xo.wL(s);return r.set(e,i),i}if(e instanceof Xo.eW){const t=e=>Pc(e,n),s=[...e].map(t),i=new Xo.eW(s);return r.set(e,i),i}if(Ia(e)){const t=_c(e);if(r.set(e,t),e.content)if(Ia(e.content))t.content=Pc(e.content,n);else if(e.content instanceof Xo.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 Xo.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)),Ia(e.content)){const r=e.content;t.content=$c(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Xo.KeyValuePair?t.content=Ac(e.content):t.content=e.content;return t},_c=e=>{if(e instanceof Xo.KeyValuePair)return Ac(e);if(e instanceof Xo.wL)return(e=>{const t=[...e];return new Xo.wL(t)})(e);if(e instanceof Xo.eW)return(e=>{const t=[...e];return new Xo.eW(t)})(e);if(Ia(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":Ta(e)?"StringElement":Fa(e)?"BooleanElement":Ca(e)?"NumberElement":Ra(e)?"NullElement":La(e)?"LinkElement":Ba(e)?"RefElement":void 0,Mc=e=>Ia(e)?_c(e):xc(e),Ic=Hs(kc,Ri),Tc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Cc{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 Rc=(e,t,{keyMap:r=Tc,...n}={})=>Ec(e,t,{keyMap:r,nodeTypeGetter:kc,nodePredicate:Ic,nodeCloneFn:Mc,...n});Rc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Tc,...n}={})=>Ec[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:kc,nodePredicate:Ic,nodeCloneFn:Mc,...n});const Fc={toolboxCreator:uc,visitorOptions:{nodeTypeGetter:kc,exposeEdits:!0}},Dc=(e,t,r={})=>{if(0===t.length)return e;const n=ua(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 u=Rc(e,c,i);return a.forEach(wa(["post"],[])),u},Nc=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Dc(n,r,{toolboxCreator:uc,visitorOptions:{nodeTypeGetter:kc}})},qc=e=>(t,r={})=>Nc(t,{...r,Type:e});Xo.We.refract=qc(Xo.We),Xo.uQ.refract=qc(Xo.uQ),Xo.M$.refract=qc(Xo.M$),Xo.Ar.refract=qc(Xo.Ar),Xo.WM.refract=qc(Xo.WM),Xo.wH.refract=qc(Xo.wH),Xo.UH.refract=qc(Xo.UH),Xo.eE.refract=qc(Xo.eE),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),Wc={EphemeralObject:["content"],EphemeralArray:["content"],...Tc},zc=(e,t,{keyMap:r=Wc,...n}={})=>Rc(e,t,{keyMap:r,nodeTypeGetter:Vc,nodePredicate:Uc,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=Wc,...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 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 Kc=e=>Ia(e)?Ta(e)||Ca(e)||Fa(e)||Ra(e)?e.toValue():zc(e,new Gc):e,Qc=Hs(Ii(/~/g,"~0"),Ii(/\//g,"~1"),encodeURIComponent);const Yc=class extends dc{};const Xc=class extends Yc{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Zc=e=>{try{return 0===e.length?"":`/${e.map(Qc).join("/")}`}catch(t){throw new Xc("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var eu=qn((function(e,t){return Xs(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 tu=eu;function ru(e){return e}const nu=Nn(ru);var su=ma(Xs(1,Hs(os,Ai("Number"))),isFinite);var iu=Xs(1,su);var ou=ma(ki(Number.isFinite)?Xs(1,Fs(Number.isFinite,Number)):iu,tu(us,[Math.floor,nu]));var au=Xs(1,ou);const cu=ki(Number.isInteger)?Xs(1,Fs(Number.isInteger,Number)):au;var uu=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 lu(e){return function(t){return new uu(e,t)}}const pu=qn(vs(["take"],lu,(function(e,t){return Ws(0,e<0?1/0:e,t)})));const hu=qn((function(e,t){return us(pu(e.length,t),e)}));const fu=us("");var mu=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 du(e){return function(t){return new mu(e,t)}}const yu=qn(vs(["dropWhile"],du,(function(e,t){for(var r=0,n=t.length;r{try{return decodeURIComponent(e)}catch{return e}}));const bu=class extends Yc{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},xu=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return gu("#",t)},wu=e=>{if(fu(e))return[];if(!hu("/",e))throw new bu(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Hs(ri("/"),mi(vu))(e);return zs(t)}catch(t){throw new bu(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const Eu=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)}},ju=(e,t)=>{let r;try{r=wu(e)}catch(r){throw new Eu(`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 Eu(`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)||!cu(Number(n)))throw new Eu(`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 Eu(`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 Ou extends Xo.We{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Su=Ou;class Pu extends Xo.We{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 Au=Pu;class $u extends Xo.We{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 _u=$u;class ku extends Xo.We{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Mu=ku;class Iu extends Xo.We{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 Tu=Iu;class Cu extends Xo.We{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 Ru=Cu;class Fu extends Xo.We{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 Du=Fu;class Nu extends Xo.We{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Xo.Ar(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Xo.Ar(!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 qu=Nu;class Lu extends Xo.We{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 Bu=Lu;class Uu extends Xo.We{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 Vu=Uu;class Wu extends Xo.We{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 Ta(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ta(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 zu=Wu;class Hu extends Xo.We{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 Ju=Hu;class Gu extends Xo.We{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 Ku=Gu;class Qu extends Xo.We{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 Yu=Qu;class Xu extends Xo.M${constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Zu=Xu;class el extends Xo.We{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 tl=el;class rl extends Xo.We{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.Ar(!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 nl=rl;class sl extends Xo.We{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.Ar(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Xo.Ar(!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(sl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const il=sl;class ol extends Xo.We{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 al=ol;class cl extends Xo.We{constructor(e,t,r){super(e,t,r),this.element="paths"}}const ul=cl;class ll extends Xo.We{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 pl=ll;class hl extends Xo.We{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.Ar(!1)}set required(e){this.set("required",e)}}const fl=hl;class ml extends Xo.We{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 dl=ml;class yl extends Xo.We{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 gl=yl;const vl=class extends mc{};class bl extends Xo.We{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 xl=bl;class wl extends Xo.We{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 El=wl;class jl extends Xo.We{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 Ol=jl;class Sl extends Xo.We{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 Pl=Sl;const Al=qn((function(e,t){return ys((function(r,n){return r[n]=e(t[n],n,t),r}),{},is(t))}));const $l=Nn((function(e){return null==e}));const _l=qn((function(e,t){if(0===e.length||$l(t))return!1;for(var r=t,n=0;n{const r=Js(e,t);return Al((e=>{if(sc(e)&&Ml("$ref",e)&&Il(Ri,"$ref",e)){const t=zn(["$ref"],e),n=gu("#/",t);return zn(n.split("/"),r)}return sc(e)?Tl(e,r):e}),e)};var Cl=r(3200);const Rl=Cl({props:{element:null},methods:{copyMetaAndAttributes(e,t){Ja(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Fl=Rl,Dl=Cl(Fl,{methods:{enter(e){return this.element=Pc(e),gc}}});const Nl=bi(xi());const ql=qn((function(e,t){for(var r={},n=0;n{if(Ta(n)&&r.includes(Kc(n))&&!this.ignoredFields.includes(Kc(n))){const r=this.toRefractedElement([...t,"fixedFields",Kc(n)],e),i=new Xo.u6(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}}}),Ul=Cl(Bl,Dl,{props:{specPath:bi(["document","objects","JSONSchema"])},init(){this.element=new xl}}),Vl=Dl,Wl=Dl,zl=Dl,Hl=Dl,Jl=Dl,Gl=Dl,Kl=Dl,Ql=Dl,Yl=Dl,Xl=Dl,Zl=Cl({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ep=e=>Da(e)&&e.hasKey("$ref"),tp=Cl(Ll,Zl,Dl,{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 Xo.uQ,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=Dl,np=Dl,sp=Dl,ip=Dl,op=Dl,ap=Cl(Dl,{methods:{ArrayElement(e){return this.element=Pc(e),this.element.classes.push("json-schema-required"),gc}}});const cp=Nn((function(e){return Xs(Us(ji,0,Oi("length",e)),(function(){for(var t=0,r=e.length;t{if(!this.ignoredFields.includes(Kc(t))&&this.fieldPatternPredicate(Kc(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Xo.u6(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=Cl(fp,{props:{fieldPatternPredicate:hp}}),dp=Cl(mp,Zl,Dl,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.We,this.element.classes.push("json-schema-properties")}}),yp=Cl(mp,Zl,Dl,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.We,this.element.classes.push("json-schema-patternProperties")}}),gp=Cl(mp,Zl,Dl,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.We,this.element.classes.push("json-schema-dependencies")}}),vp=Cl(Dl,{methods:{ArrayElement(e){return this.element=Pc(e),this.element.classes.push("json-schema-enum"),gc}}}),bp=Cl(Dl,{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=Cl(Ll,Zl,Dl,{init(){this.element=new Xo.uQ,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=Cl(Ll,Zl,Dl,{init(){this.element=new Xo.uQ,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=Cl(Ll,Zl,Dl,{init(){this.element=new Xo.uQ,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=Cl(mp,Zl,Dl,{props:{specPath:e=>ep(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Xo.We,this.element.classes.push("json-schema-definitions")}}),Op=Dl,Sp=Dl,Pp=Dl,Ap=Dl,$p=Dl,_p=Cl(Ll,Zl,Dl,{init(){this.element=new Xo.uQ,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=Dl,Mp=Cl(Bl,Dl,{props:{specPath:bi(["document","objects","JSONReference"])},init(){this.element=new El},methods:{ObjectElement(e){const t=Bl.compose.methods.ObjectElement.call(this,e);return Ta(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Ip=Cl(Dl,{methods:{StringElement(e){return this.element=Pc(e),this.element.classes.push("reference-value"),gc}}});const Tp=Ln((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 Cp=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($l);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);rt.length}))),Dp,Gs("length")),Wp=Zs((function(e,t,r){var n=r.apply(void 0,Bp(e));return qp(n)?Np(n):t}));const zp=Tp(Lp,(function(e){var t=Vp(e);return Xs(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;nTp(e,bi(t),xi))),r=zp(t)(e);return this.element=this.toRefractedElement(r,e),gc}}}),Jp=Cl(Hp,{props:{alternator:[{predicate:ep,specPath:["document","objects","JSONReference"]},{predicate:Uc,specPath:["document","objects","JSONSchema"]}]}}),Gp={visitors:{value:Dl,JSONSchemaOrJSONReferenceVisitor:Jp,document:{objects:{JSONSchema:{$visitor:Ul,fixedFields:{id:Vl,$schema:Wl,multipleOf:zl,maximum:Hl,exclusiveMaximum:Jl,minimum:Gl,exclusiveMinimum:Kl,maxLength:Ql,minLength:Yl,pattern:Xl,additionalItems:Jp,items:tp,maxItems:rp,minItems:np,uniqueItems:sp,maxProperties:ip,minProperties:op,required:ap,properties:dp,additionalProperties:Jp,patternProperties:yp,dependencies:gp,enum:vp,type:bp,allOf:xp,anyOf:wp,oneOf:Ep,not:Jp,definitions:jp,title:Op,description:Sp,default:Pp,format:Ap,base:$p,links:_p,media:{$ref:"#/visitors/document/objects/Media"},readOnly:kp}},JSONReference:{$visitor:Mp,fixedFields:{$ref:Ip}},Media:{$visitor:Cl(Bl,Dl,{props:{specPath:bi(["document","objects","Media"])},init(){this.element=new Ol}}),fixedFields:{binaryEncoding:Dl,type:Dl}},LinkDescription:{$visitor:Cl(Bl,Dl,{props:{specPath:bi(["document","objects","LinkDescription"])},init(){this.element=new Pl}}),fixedFields:{href:Dl,rel:Dl,title:Dl,targetSchema:Jp,mediaType:Dl,method:Dl,encType:Dl,schema:Jp}}}}}},Kp=e=>{if(Ia(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Qp={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Tc},Yp=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xl||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Xp=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof El||e(n)&&t("JSONReference",n)&&r("object",n))),Zp=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ol||e(n)&&t("media",n)&&r("object",n))),eh=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pl||e(n)&&t("linkDescription",n)&&r("object",n))),th={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",xl),t.register("jSONReference",El),t.register("media",Ol),t.register("linkDescription",Pl),t}},rh=()=>{const e=ac(th);return{predicates:{...o,isStringElement:Ta},namespace:e}},nh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Gp}={})=>{const s=(0,Xo.WG)(e),i=Tl(n),o=wa(t,[],i);return Rc(s,o,{state:{specObj:i}}),Dc(o.element,r,{toolboxCreator:rh,visitorOptions:{keyMap:Qp,nodeTypeGetter:Kp}})},sh=e=>(t,r={})=>nh(t,{specPath:e,...r});xl.refract=sh(["visitors","document","objects","JSONSchema","$visitor"]),El.refract=sh(["visitors","document","objects","JSONReference","$visitor"]),Ol.refract=sh(["visitors","document","objects","Media","$visitor"]),Pl.refract=sh(["visitors","document","objects","LinkDescription","$visitor"]);const ih=class extends xl{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new vl("idProp getter in Schema class is not not supported.")}set idProp(e){throw new vl("idProp setter in Schema class is not not supported.")}get $schema(){throw new vl("$schema getter in Schema class is not not supported.")}set $schema(e){throw new vl("$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 vl("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new vl("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new vl("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new vl("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 vl("definitions getter in Schema class is not not supported.")}set definitions(e){throw new vl("definitions setter in Schema class is not not supported.")}get base(){throw new vl("base getter in Schema class is not not supported.")}set base(e){throw new vl("base setter in Schema class is not not supported.")}get links(){throw new vl("links getter in Schema class is not not supported.")}set links(e){throw new vl("links setter in Schema class is not not supported.")}get media(){throw new vl("media getter in Schema class is not not supported.")}set media(e){throw new vl("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 Xo.We{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const ah=oh;class ch extends Xo.We{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 uh=ch;class lh extends Xo.We{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=lh;class hh extends Xo.We{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 Xo.We{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 Xo.We{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},Mh=(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:{})}},Ih=(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:Mh(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:Mh(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Th=new Map,Ch=(...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=>Th.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Ih(e,t)))},Rh=e=>{let t=Th.get(e);return t||(t={},Th.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 u=o;if("none"!==Ah){const s="deep"===Ah?Ch(...e):((...e)=>{const t=e.map((e=>Rh(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Ih(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Dh(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),Dh(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,p;return l=u,p=e,$h.set(l,p),u}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){Ja(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 ql(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(ki,["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 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,Wh=e=>Ta(e.key)&&hu("x-",Kc(e.key));const zh=class extends Lh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Wh;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(Ta(n)&&r.includes(Kc(n))&&!this.ignoredFields.includes(Kc(n))){const r=this.toRefractedElement([...t,"fixedFields",Kc(n)],e),i=new Xo.u6(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 Hh extends(Fh(zh,qh)){constructor(e){super(e),this.element=new tl,this.specPath=bi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return zh.prototype.ObjectElement.call(this,e)}}const Jh=Hh;class Gh extends(Fh(Lh,qh)){StringElement(e){const t=new Zu(Kc(e));return this.copyMetaAndAttributes(e,t),this.element=t,gc}}const Kh=Gh;const Qh=class extends Lh{MemberElement(e){return this.element=Pc(e),this.element.classes.push("specification-extension"),gc}};class Yh extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Bu,this.specPath=bi(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Xh=Yh;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(zh,qh)){constructor(e){super(e),this.element=new _u,this.specPath=bi(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const tf=ef;class rf extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Vu,this.specPath=bi(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const nf=rf;class sf extends(Fh(zh,qh)){constructor(e){super(e),this.element=new zu,this.specPath=bi(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return(Ta(this.element.operationId)||Ta(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 uf=class extends Lh{specPath;ignoredFields;fieldPatternPredicate=lc;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Wh;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 Xo.u6(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 lf=class extends uf{constructor(e){super(e),this.fieldPatternPredicate=hp}};class pf extends Xo.We{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(pf.primaryClass)}}const hf=pf;class ff extends(Fh(lf,qh)){constructor(e){super(e),this.element=new hf,this.specPath=bi(["value"])}}const mf=ff;class df extends(Fh(zh,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 Xo.uQ{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(zh,qh)){constructor(e){super(e),this.element=new fh,this.specPath=bi(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const jf=Ef;class Of extends Xo.We{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Of.primaryClass)}}const Sf=Of;class Pf extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Sf,this.specPath=bi(["document","objects","ServerVariable"])}}const Af=Pf;class $f extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Ju,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})=>Tp(e,bi(t),xi))),r=zp(t)(e);return this.element=this.toRefractedElement(r,e),gc}},Mf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Su||e(n)&&t("callback",n)&&r("object",n))),If=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Au||e(n)&&t("components",n)&&r("object",n))),Tf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _u||e(n)&&t("contact",n)&&r("object",n))),Cf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ru||e(n)&&t("example",n)&&r("object",n))),Rf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Du||e(n)&&t("externalDocumentation",n)&&r("object",n))),Ff=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qu||e(n)&&t("header",n)&&r("object",n))),Df=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bu||e(n)&&t("info",n)&&r("object",n))),Nf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vu||e(n)&&t("license",n)&&r("object",n))),qf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zu||e(n)&&t("link",n)&&r("object",n))),Lf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zu||e(n)&&t("openapi",n)&&r("string",n))),Bf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof tl||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),Uf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nl||e(n)&&t("operation",n)&&r("object",n))),Vf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof il||e(n)&&t("parameter",n)&&r("object",n))),Wf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof al||e(n)&&t("pathItem",n)&&r("object",n))),zf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ul||e(n)&&t("paths",n)&&r("object",n))),Hf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pl||e(n)&&t("reference",n)&&r("object",n))),Jf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fl||e(n)&&t("requestBody",n)&&r("object",n))),Gf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dl||e(n)&&t("response",n)&&r("object",n))),Kf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gl||e(n)&&t("responses",n)&&r("object",n))),Qf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ih||e(n)&&t("schema",n)&&r("object",n))),Yf=e=>Fa(e)&&e.classes.includes("boolean-json-schema"),Xf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ah||e(n)&&t("securityRequirement",n)&&r("object",n))),Zf=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ph||e(n)&&t("server",n)&&r("object",n))),em=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fh||e(n)&&t("serverVariable",n)&&r("object",n))),tm=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ju||e(n)&&t("mediaType",n)&&r("object",n))),rm=Ma((({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 Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const sm=nm;class im extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Xo.We,this.element.classes.push("examples"),this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const om=im;class am extends Xo.We{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 um=class extends om{constructor(e){super(e),this.element=new cm}};class lm extends Xo.We{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(lm.primaryClass)}}const pm=lm;class hm extends(Fh(lf,qh)){constructor(e){super(e),this.element=new pm,this.specPath=bi(["document","objects","Encoding"])}}const fm=hm;class mm extends(Fh(lf,qh)){constructor(e){super(e),this.element=new ah,this.specPath=bi(["value"])}}const dm=mm;class ym extends Xo.uQ{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(zh,qh)){constructor(e){super(e),this.element=new Au,this.specPath=bi(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const wm=xm;class Em extends(Fh(zh,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(zh,qh)){constructor(e){super(e),this.element=new pl,this.specPath=bi(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return Ta(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(zh,qh)){constructor(e){super(e),this.element=new il,this.specPath=bi(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.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 Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const km=_m;class Mm extends(Fh(zh,qh)){constructor(e){super(e),this.element=new qu,this.specPath=bi(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Im=Mm;class Tm 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 Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Cm=Tm;class Rm extends Xo.We{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(lf,qh)){constructor(e){super(e),this.element=new Xo.We,this.element.classes.push("content"),this.specPath=bi(["document","objects","MediaType"])}}const qm=Nm;class Lm extends Xo.We{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(zh,qh)){constructor(e){super(e),this.element=new ih,this.specPath=bi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Wm=Vm,{allOf:zm}=Gp.visitors.document.objects.JSONSchema.fixedFields,Hm=zm.compose({methods:{ArrayElement(e){const t=zm.compose.methods.ArrayElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Jm}=Gp.visitors.document.objects.JSONSchema.fixedFields,Gm=Jm.compose({methods:{ArrayElement(e){const t=Jm.compose.methods.ArrayElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Km}=Gp.visitors.document.objects.JSONSchema.fixedFields,Qm=Km.compose({methods:{ArrayElement(e){const t=Km.compose.methods.ArrayElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Ym}=Gp.visitors.document.objects.JSONSchema.fixedFields,Xm=Ym.compose({methods:{ObjectElement(e){const t=Ym.compose.methods.ObjectElement.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=Pc(e),gc}}}),{properties:Zm}=Gp.visitors.document.objects.JSONSchema.fixedFields,ed=Zm.compose({methods:{ObjectElement(e){const t=Zm.compose.methods.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:td}=Gp.visitors.document.objects.JSONSchema.fixedFields,rd=td.compose({methods:{ArrayElement(e){return this.element=Pc(e),gc}}}),{JSONSchemaOrJSONReferenceVisitor:nd}=Gp.visitors,sd=nd.compose({methods:{ObjectElement(e){const t=nd.compose.methods.enter.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class id extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Mu,this.specPath=bi(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const od=id;class ad extends Xo.We{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(ad.primaryClass)}}const cd=ad;class ud extends(Fh(lf,qh)){constructor(e){super(e),this.element=new cd,this.specPath=bi(["value"])}}const ld=ud;class pd extends(Fh(zh,qh)){constructor(e){super(e),this.element=new gh,this.specPath=bi(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const hd=pd;class fd extends Xo.We{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 Xo.We{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 Xo.We{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(bd.primaryClass)}}const xd=bd;class wd extends(Fh(lf,qh)){constructor(e){super(e),this.element=new xd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ed=wd;class jd extends Xo.We{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(jd.primaryClass)}}const Od=jd;class Sd extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Od,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Gf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Kc(t))})),t}}const Pd=Sd;class Ad extends Xo.We{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(lf,qh)){constructor(e){super(e),this.element=new $d,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const kd=_d;class Md extends Xo.We{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Md.primaryClass),this.classes.push("examples")}}const Id=Md;class Td extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Id,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Cd=Td;class Rd extends Xo.We{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(lf,qh)){constructor(e){super(e),this.element=new Fd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Nd=Dd;class qd extends Xo.We{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(qd.primaryClass)}}const Ld=qd;class Bd extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Ld,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).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 Xo.We{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Vd.primaryClass)}}const Wd=Vd;class zd extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Wd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Hd=zd;class Jd extends Xo.We{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Jd.primaryClass)}}const Gd=Jd;class Kd extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Gd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Qd=Kd;class Yd extends Xo.We{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Yd.primaryClass)}}const Xd=Yd;class Zd extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Xd,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const ey=Zd;class ty extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Ru,this.specPath=bi(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return Ta(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(zh,qh)){constructor(e){super(e),this.element=new Du,this.specPath=bi(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const iy=sy;class oy extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Tu,this.specPath=bi(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.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 Xo.We{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(cy.primaryClass)}}const uy=cy;class ly extends(Fh(lf,qh)){constructor(e){super(e),this.element=new uy,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).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=ly;class hy extends(Fh(uf,qh)){constructor(e){super(e),this.element=new ul,this.specPath=bi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Uc}ObjectElement(e){const t=uf.prototype.ObjectElement.call(this,e);return this.element.filter(Wf).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(zh,qh)){constructor(e){super(e),this.element=new fl,this.specPath=bi(["document","objects","RequestBody"])}ObjectElement(e){const t=zh.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 Xo.We{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(uf,qh)){constructor(e){super(e),this.element=new Su,this.specPath=bi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Wf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Kc(t))})),t}}const xy=by;class wy extends(Fh(zh,qh)){constructor(e){super(e),this.element=new dl,this.specPath=bi(["document","objects","Response"])}ObjectElement(e){const t=zh.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 Xo.We{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(jy.primaryClass)}}const Oy=jy;class Sy extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Oy,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).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 Xo.We{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 Xo.We{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(ky.primaryClass)}}const My=ky;class Iy extends(Fh(lf,qh)){constructor(e){super(e),this.element=new My,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Ty=Iy;function Cy(e){return"[object Number]"===Object.prototype.toString.call(e)}var Ry=qn((function(e,t){if(!Cy(e)||!Cy(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;nBh(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(Hf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Gf).forEach(((e,t)=>{const r=Pc(t);this.fieldPatternPredicate(Kc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const Wy=Vy;class zy 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 Hf(this.element)?this.element.setMetaProperty("referenced-element","response"):Gf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Hy=zy;class Jy extends(Fh(zh,qh)){constructor(e){super(e),this.element=new nl,this.specPath=bi(["document","objects","Operation"])}}const Gy=Jy;class Ky extends Xo.uQ{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Ky.primaryClass)}}const Qy=Ky;const Yy=class extends qh{constructor(e){super(e),this.element=new Qy}ArrayElement(e){return this.element=this.element.concat(Pc(e)),gc}};class Xy extends Xo.uQ{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Xy.primaryClass),this.classes.push("parameters")}}const Zy=Xy;class eg extends(Fh(Lh,qh)){constructor(e){super(e),this.element=new Xo.uQ,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);Hf(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 Hf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class sg extends Xo.We{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(sg.primaryClass)}}const ig=sg;class og extends(Fh(lf,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=lf.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const ag=og;class cg extends Xo.uQ{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(cg.primaryClass),this.classes.push("security")}}const ug=cg;class lg extends(Fh(Lh,qh)){constructor(e){super(e),this.element=new ug}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=lg;class hg extends Xo.uQ{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(zh,qh)){constructor(e){super(e),this.element=new al,this.specPath=bi(["document","objects","PathItem"])}ObjectElement(e){const t=zh.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)})),Ta(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 Xo.uQ{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 Xo.uQ{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(zh,qh)){constructor(e){super(e),this.element=new uh,this.specPath=bi(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Sg=Og;class Pg extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Yu,this.specPath=bi(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Ag=Pg;class $g extends(Fh(zh,qh)){constructor(e){super(e),this.element=new Ku,this.specPath=bi(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const _g=$g;class kg extends Xo.We{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(kg.primaryClass)}}const Mg=kg;class Ig extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Mg,this.specPath=bi(["value"])}}const Tg=Ig;class Cg extends Xo.uQ{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Cg.primaryClass)}}const Rg=Cg;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}=Gp.visitors.document.objects.JSONSchema,qg={visitors:{value:qh,document:{objects:{OpenApi:{$visitor:Jh,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:Xh,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:Cd,requestBodies:Nd,headers:Ud,securitySchemes:Hd,links:Qd,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:Gy,fixedFields:{tags:Yy,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:um,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:Wy,fixedFields:{default:Hy}},Response:{$visitor:Ey,fixedFields:{description:{$ref:"#/visitors/value"},headers:Py,content:_y,links:Ty}},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:Im,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:Cm,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:Wm,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:Hm,anyOf:Gm,oneOf:Qm,not:sd,items:Xm,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:ld}},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:Tg}},SecurityRequirement:{$visitor:dm}},extension:{$visitor:Qh}}}},Lg=e=>{if(Ia(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"],...Tc},Ug={namespace:e=>{const{base:t}=e;return t.register("callback",Su),t.register("components",Au),t.register("contact",_u),t.register("discriminator",Mu),t.register("encoding",Tu),t.register("example",Ru),t.register("externalDocumentation",Du),t.register("header",qu),t.register("info",Bu),t.register("license",Vu),t.register("link",zu),t.register("mediaType",Ju),t.register("oAuthFlow",Ku),t.register("oAuthFlows",Yu),t.register("openapi",Zu),t.register("openApi3_0",tl),t.register("operation",nl),t.register("parameter",il),t.register("pathItem",al),t.register("paths",ul),t.register("reference",pl),t.register("requestBody",fl),t.register("response",dl),t.register("responses",gl),t.register("schema",ih),t.register("securityRequirement",ah),t.register("securityScheme",uh),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:Ta},namespace:e}},Wg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Xo.WG)(e),s=Tl(qg),i=new(zn(t,s))({specObj:s});return Rc(n,i),Dc(i.element,r,{toolboxCreator:Vg,visitorOptions:{keyMap:Bg,nodeTypeGetter:Lg}})},zg=e=>(t,r={})=>Wg(t,{specPath:e,...r});Su.refract=zg(["visitors","document","objects","Callback","$visitor"]),Au.refract=zg(["visitors","document","objects","Components","$visitor"]),_u.refract=zg(["visitors","document","objects","Contact","$visitor"]),Ru.refract=zg(["visitors","document","objects","Example","$visitor"]),Mu.refract=zg(["visitors","document","objects","Discriminator","$visitor"]),Tu.refract=zg(["visitors","document","objects","Encoding","$visitor"]),Du.refract=zg(["visitors","document","objects","ExternalDocumentation","$visitor"]),qu.refract=zg(["visitors","document","objects","Header","$visitor"]),Bu.refract=zg(["visitors","document","objects","Info","$visitor"]),Vu.refract=zg(["visitors","document","objects","License","$visitor"]),zu.refract=zg(["visitors","document","objects","Link","$visitor"]),Ju.refract=zg(["visitors","document","objects","MediaType","$visitor"]),Ku.refract=zg(["visitors","document","objects","OAuthFlow","$visitor"]),Yu.refract=zg(["visitors","document","objects","OAuthFlows","$visitor"]),Zu.refract=zg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),tl.refract=zg(["visitors","document","objects","OpenApi","$visitor"]),nl.refract=zg(["visitors","document","objects","Operation","$visitor"]),il.refract=zg(["visitors","document","objects","Parameter","$visitor"]),al.refract=zg(["visitors","document","objects","PathItem","$visitor"]),ul.refract=zg(["visitors","document","objects","Paths","$visitor"]),pl.refract=zg(["visitors","document","objects","Reference","$visitor"]),fl.refract=zg(["visitors","document","objects","RequestBody","$visitor"]),dl.refract=zg(["visitors","document","objects","Response","$visitor"]),gl.refract=zg(["visitors","document","objects","Responses","$visitor"]),ih.refract=zg(["visitors","document","objects","Schema","$visitor"]),ah.refract=zg(["visitors","document","objects","SecurityRequirement","$visitor"]),uh.refract=zg(["visitors","document","objects","SecurityScheme","$visitor"]),ph.refract=zg(["visitors","document","objects","Server","$visitor"]),fh.refract=zg(["visitors","document","objects","ServerVariable","$visitor"]),dh.refract=zg(["visitors","document","objects","Tag","$visitor"]),gh.refract=zg(["visitors","document","objects","XML","$visitor"]);const Hg=class extends Su{};const Jg=class extends Au{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Gg=class extends _u{};const Kg=class extends Mu{};const Qg=class extends Tu{};const Yg=class extends Ru{};const Xg=class extends Du{};const Zg=class extends qu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ev=class extends Bu{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 Xo.M${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 Vu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const sv=class extends zu{};const iv=class extends Ju{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ov=class extends Ku{};const av=class extends Yu{};const cv=class extends Zu{};class uv extends Xo.We{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 lv=uv;const pv=class extends nl{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const hv=class extends il{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const fv=class extends al{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 ul{};class dv extends pl{}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 fl{};const vv=class extends dl{};const bv=class extends gl{};class xv extends Xo.We{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 uh{};const Ov=class extends ph{};const Sv=class extends fh{};const Pv=class extends dh{};const Av=class extends gh{};class $v extends(Fh(zh,qh)){constructor(e){super(e),this.element=new lv,this.specPath=bi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,zh.prototype.ObjectElement.call(this,e)}}const _v=$v,{visitors:{document:{objects:{Info:{$visitor:kv}}}}}=qg;const Mv=class extends kv{constructor(e){super(e),this.element=new ev}},{visitors:{document:{objects:{Contact:{$visitor:Iv}}}}}=qg;const Tv=class extends Iv{constructor(e){super(e),this.element=new Gg}},{visitors:{document:{objects:{License:{$visitor:Cv}}}}}=qg;const Rv=class extends Cv{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:Wv}}}}}=qg;const zv=class extends Wv{constructor(e){super(e),this.element=new iv}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:Hv}}}}}=qg;const Jv=class extends Hv{constructor(e){super(e),this.element=new Ev}},{visitors:{document:{objects:{Components:{$visitor:Gv}}}}}=qg;const Kv=class extends Gv{constructor(e){super(e),this.element=new Jg}},{visitors:{document:{objects:{Tag:{$visitor:Qv}}}}}=qg;const Yv=class extends Qv{constructor(e){super(e),this.element=new Pv}},{visitors:{document:{objects:{Reference:{$visitor:Xv}}}}}=qg;const Zv=class extends Xv{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=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hg||e(n)&&t("callback",n)&&r("object",n))),ib=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jg||e(n)&&t("components",n)&&r("object",n))),ob=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gg||e(n)&&t("contact",n)&&r("object",n))),ab=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yg||e(n)&&t("example",n)&&r("object",n))),cb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xg||e(n)&&t("externalDocumentation",n)&&r("object",n))),ub=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zg||e(n)&&t("header",n)&&r("object",n))),lb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ev||e(n)&&t("info",n)&&r("object",n))),pb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rv||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),hb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nv||e(n)&&t("license",n)&&r("object",n))),fb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sv||e(n)&&t("link",n)&&r("object",n))),mb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cv||e(n)&&t("openapi",n)&&r("string",n))),db=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof lv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),yb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pv||e(n)&&t("operation",n)&&r("object",n))),gb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hv||e(n)&&t("parameter",n)&&r("object",n))),vb=Ma((({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(!Ta(e.$ref))return!1;const t=Kc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("paths",n)&&r("object",n))),wb=Ma((({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(!Ta(e.$ref))return!1;const t=Kc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},jb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gv||e(n)&&t("requestBody",n)&&r("object",n))),Ob=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vv||e(n)&&t("response",n)&&r("object",n))),Sb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("responses",n)&&r("object",n))),Pb=Ma((({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=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("securityRequirement",n)&&r("object",n))),_b=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ov||e(n)&&t("server",n)&&r("object",n))),kb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sv||e(n)&&t("serverVariable",n)&&r("object",n))),Mb=Ma((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iv||e(n)&&t("mediaType",n)&&r("object",n)));const Ib=class{parent;constructor({parent:e}){this.parent=e}};class Tb extends(Fh(zh,Ib,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=zh.prototype.ObjectElement.call(this,e);return Ta(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&&Ta(this.openApiGenericElement.get("jsonSchemaDialect"))?Kc(this.openApiGenericElement.get("jsonSchemaDialect")):Kc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(wi(this.parent)&&!Ta(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(Pb(this.parent)&&!Ta(e.get("$schema"))){const e=Js(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 Xo.uQ,r=Kc(e.get("$id"));hp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const Cb=Tb;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(lf,Ib,qh)){constructor(e){super(e),this.element=new Xo.We,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,Ib,qh)){constructor(e){super(e),this.element=new Xo.uQ,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,Ib,qh)){constructor(e){super(e),this.element=new Xo.uQ,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,Ib,qh)){constructor(e){super(e),this.element=new Xo.uQ,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 Wb=Vb;class zb extends(Fh(lf,Ib,qh)){constructor(e){super(e),this.element=new Xo.We,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=bi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Hb=zb;class Jb extends(Fh(Lh,Ib,qh)){constructor(e){super(e),this.element=new Xo.uQ,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 Gb=Jb;class Kb extends(Fh(lf,Ib,qh)){constructor(e){super(e),this.element=new Xo.We,this.element.classes.push("json-schema-properties"),this.specPath=bi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Qb=Kb;class Yb extends(Fh(lf,Ib,qh)){constructor(e){super(e),this.element=new Xo.We,this.element.classes.push("json-schema-patternProperties"),this.specPath=bi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Xb=Yb;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(lf,qh)){constructor(e){super(e),this.element=new xd,this.specPath=bi(["document","objects","Schema"])}}const cx=ax;class ux extends Xo.We{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(ux.primaryClass)}}const lx=ux;class px extends(Fh(lf,qh)){constructor(e){super(e),this.element=new lx,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=lf.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 Yg}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:dx}}}}}=qg;const yx=class extends dx{constructor(e){super(e),this.element=new Xg}},{visitors:{document:{objects:{Encoding:{$visitor:gx}}}}}=qg;const vx=class extends gx{constructor(e){super(e),this.element=new Qg}},{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 Hg,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:Mx}}}}}=qg;const Ix=class extends Mx{constructor(e){super(e),this.element=new fv}},{visitors:{document:{objects:{SecurityScheme:{$visitor:Tx}}}}}=qg;const Cx=class extends Tx{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 Xo.We{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(qx.primaryClass)}}const Lx=qx;class Bx extends(Fh(lf,qh)){constructor(e){super(e),this.element=new Lx,this.specPath=e=>Bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=lf.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:Mv,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:Tv,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:Ix,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:zv,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:Yv,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:Cb,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:Wb,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:Hb,prefixItems:Gb,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Qb,patternProperties:Xb,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:Cx,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:Jv}},extension:{$visitor:qg.visitors.document.extension.$visitor}}}},Wx=e=>{if(Ia(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},zx={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"],...Tc},Hx={namespace:e=>{const{base:t}=e;return t.register("callback",Hg),t.register("components",Jg),t.register("contact",Gg),t.register("discriminator",Kg),t.register("encoding",Qg),t.register("example",Yg),t.register("externalDocumentation",Xg),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",lv),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}},Jx=()=>{const e=ac(Hx);return{predicates:{...u,isElement:Ia,isStringElement:Ta,isArrayElement:Na,isObjectElement:Da,isMemberElement:qa,isServersElement:rm,includesClasses:Ka},namespace:e}},Gx=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Xo.WG)(e),s=Tl(Vx),i=new(zn(t,s))({specObj:s});return Rc(n,i),Dc(i.element,r,{toolboxCreator:Jx,visitorOptions:{keyMap:zx,nodeTypeGetter:Wx}})},Kx=e=>(t,r={})=>Gx(t,{specPath:e,...r});Hg.refract=Kx(["visitors","document","objects","Callback","$visitor"]),Jg.refract=Kx(["visitors","document","objects","Components","$visitor"]),Gg.refract=Kx(["visitors","document","objects","Contact","$visitor"]),Yg.refract=Kx(["visitors","document","objects","Example","$visitor"]),Kg.refract=Kx(["visitors","document","objects","Discriminator","$visitor"]),Qg.refract=Kx(["visitors","document","objects","Encoding","$visitor"]),Xg.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"]),lv.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 Qx=class extends vl{};const Yx=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Qx("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Qx("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Qx("latest method in MediaTypes class is not yet implemented.")}};class Xx extends Yx{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 Qs(this.filterByFormat(e))}}const Zx=new Xx("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=Cl({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 us(e,Gs(t,r))})),rw=Cl({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=!$l(n)&&Qn(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))}}},uw=Ln((function(e,t,r){return e((function(e){return cw(t(e))}))(r).value}));const lw=uw,pw=iw(zn(["resolve","baseURI"]),aw(["resolve","baseURI"])),hw=e=>fu(e)?Qi():e,fw=Cl({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)?Wi(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(!Wa(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=ua(e,t);return lw(pw,hw,r)})(sw,t);return bw(e,r)};const ww=class extends mc{};const Ew=class extends ww{},jw=Cl({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 Qx("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new Qx("parse method in Parser stamp is not yet implemented.")}}}),Ow=jw,Sw=Cl(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 Xo.M$(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}}}),Pw=Cl({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Qx("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{const r=fw({uri:Xi(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 Mw(`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 Cc({predicate:e});return Rc(t,r),new Xo.eW(r.result)};const qw=Ln((function(e,t,r){return Js(e,zn(t,r))})),Lw=(e,t)=>{const r=new Cc({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}".`)}},Ww=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),zw=e=>{const t=Gi(e);return gu("#",t)},Hw=(e,t)=>{const r=(e=>{if(!Ww(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},Jw=(e,t)=>{if(void 0===t.$ref)return;const r=Gi(Kc(t.$ref)),n=Kc(t.meta.get("inherited$id"));return`${Us(((e,t)=>Yi(e,Xi(Ki(t)))),e,[...n,Kc(t.$ref)])}${"#"===r?"":r}`},Gw=e=>{if(Gw.cache.has(e))return Gw.cache.get(e);const t=wv.refract(e);return Gw.cache.set(e,t),t};Gw.cache=new WeakMap;const Kw=e=>Ha(e)?Gw(e):e,Qw=(e,t)=>{const{cache:r}=Qw,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)=>Yi(e,Xi(Ki(t)))),e,[...r,Kc(t.$id)])})(n,e)===n));if(wi(i))throw new Cw(`Evaluation failed on URI: "${e}"`);let o,a;return Ww(zw(e))?(o=Hw,a=zw(e)):(o=ju,a=xu(e)),o(a,i)};Qw.cache=new WeakMap;const Yw=Rc[Symbol.for("nodejs.util.promisify.custom")],Xw=Cl({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(Ki(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Iw(`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;Ml(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},PathItemElement(e){if(!Ta(e.$ref))return;const t=Kc(e.$ref),r=this.toBaseURI(t);(this.options.resolve.external||Ki(this.reference.uri)===r)&&(Ml(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e))},LinkElement(e){if(!Ta(e.operationRef)&&!Ta(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(Ta(e.operationRef)&&Ta(e.operationId))throw new mc("LinkElement operationRef and operationId are mutually exclusive.");n&&(Ml(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))}},ExampleElement(e){if(!Ta(e.externalValue))return;if(e.hasKey("value")&&Ta(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)&&(Ml(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!Ta(e.$ref))return void this.visited.add(e);const t=await this.toReference(Zi(this.reference.uri));let{uri:r}=t;const n=Jw(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(!Ml(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 Cw))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=xu(Kc(e.$ref));let n=ju(r,t.value.result);if(Ha(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=Xw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Yw(n,s,{keyMap:zx,nodeTypeGetter:Wx}),await s.crawl(),this.indirections.pop()},async crawlPathItemElement(e){const t=await this.toReference(Kc(e.$ref));this.indirections.push(e);const r=xu(Kc(e.$ref));let n=ju(r,t.value.result);if(Ha(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=Xw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Yw(n,s,{keyMap:zx,nodeTypeGetter:Wx}),await s.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(Zi(this.reference.uri)),{uri:r}=t;const n=Jw(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 u;this.indirections.push(e);try{if(o||a){u=Qw(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=xu(n);u=Kw(ju(e,t.value.result))}}catch(e){if(!(a&&e instanceof Cw))throw e;if(Ww(zw(n))){if(r=this.toBaseURI(Kc(n)),!this.options.resolve.external&&c(r))return;t=await this.toReference(Zi(n));const e=zw(n);u=Hw(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=xu(n);u=Kw(ju(e,t.value.result))}}if(this.visited.add(e),this.indirections.includes(u))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 l=Xw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await Yw(u,l,{keyMap:zx,nodeTypeGetter:Wx}),await l.crawl(),this.indirections.pop()},async crawl(){await Hs($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=Xw,eE=Rc[Symbol.for("nodejs.util.promisify.custom")],tE=Cl(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(Hx),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:zx,nodeTypeGetter:Wx}),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 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 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;te.replace(/\s/g,""),uE=e=>e.replace(/\W/gi,"_"),lE=(e,t,r)=>{const n=cE(e);return n.length>0?uE(n):((e,t)=>`${uE(cE(t.toLowerCase()))}${uE(cE(e))}`)(t,r)},pE=({operationIdNormalizer:e=lE}={})=>({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=Js("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=Qs(n),a=Js("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({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=Qs(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 ug(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),u=c&&0===t.servers.length;if(e.isOpenApi3_1Element(o)){var l;const e=null===(l=o.servers)||void 0===l?void 0:l.content,r=null!=e?e:[];a||!c?t.servers=new bg(r):c&&u&&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),u=c&&0===t.servers.length;if(e.isPathItemElement(o)){var l;const e=null===(l=o.servers)||void 0===l?void 0:l.content,r=null!=e?e:[];a||!c?t.servers=new fg(r):c&&u&&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=lv.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:Jx,visitorOptions:{keyMap:zx,nodeTypeGetter:Wx}});return r.set("$$normalized",!0),r},EE=Cl({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Qx("read method in Resolver stamp is not yet implemented.")}}}),jE=Cl(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=>Hi(e.uri),async read(){throw new Qx("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new Qx("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)&&Ml("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 Xx(...Zx.filterByFormat("generic"),...Zx.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?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=lv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new Ew(`Error parsing "${e.uri}"`,{cause:t})}}}}),ME=Ow.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new Xx(...Zx.filterByFormat("generic"),...Zx.filterByFormat("yaml")),detectionRegExp:/(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?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=lv.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=Cl({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Qx("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var TE=r(8504);const CE=class extends dc{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}},RE=Cl({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new TE({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!Ia(e))throw new CE("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ta(e.meta.id)&&!e.meta.id.equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new Xo.M$(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(Ia(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=Cl({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 Yi(this.reference.uri,Xi(Ki(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Iw(`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(Ia));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)),u=Yi(a,Kc(e.$ref));this.indirections.push(e);const l=xu(u);let p=ju(l,c.value.result);if(Ha(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:zx,nodeTypeGetter:Wx}),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(!Ta(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)),u=Yi(a,Kc(e.$ref));this.indirections.push(e);const l=xu(u);let p=ju(l,c.value.result);if(Ha(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:zx,nodeTypeGetter:Wx}),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(!Ta(e.operationRef)&&!Ta(e.operationId))return;if(Ta(e.operationRef)&&Ta(e.operationId))throw new mc("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(Ta(e.operationRef)){var r;const n=xu(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=ju(n,i.value.result),Ha(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(Ta(e.operationId)){var n;const r=Kc(e.operationId),s=await this.toReference(Zi(this.reference.uri));if(t=Lw((e=>yb(e)&&Ia(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(!Ta(e.externalValue))return;if(i.includesCycle(e))return!1;if(e.hasKey("value")&&Ta(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 u=_c(e);return u.value=c,u},async SchemaElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Ta(e.$ref))return;if(i.includesCycle(e))return!1;let a=await this.toReference(Zi(this.reference.uri)),{uri:c}=a;const u=Jw(c,e),l=Ki(u),p=fw({uri:l}),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=Qw(u,Kw(a.value.result))}else{if(c=this.toBaseURI(Kc(u)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Zi(u));const e=xu(u);d=Kw(ju(e,a.value.result))}}catch(e){if(!(f&&e instanceof Cw))throw e;if(Ww(zw(u))){if(c=this.toBaseURI(Kc(u)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Zi(u));const e=zw(u);d=Hw(e,Kw(a.value.result))}else{if(c=this.toBaseURI(Kc(u)),!this.options.resolve.external&&m(c))return;a=await this.toReference(Zi(u));const e=xu(u);d=Kw(ju(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:zx,nodeTypeGetter:Wx}),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=Cl(IE,{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(Hx),n=Js(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:zx,nodeTypeGetter:Wx});return null===t.dereference.refSet&&n.clean(),o}}}),WE=VE,zE=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}),[])},HE=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},JE=eo("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:GE}=go,KE=Rc[Symbol.for("nodejs.util.promisify.custom")],QE=RE(),YE=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Kc(QE.identify(e))),XE=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=Yi(a,Kc(e.$ref));this.indirections.push(e);const u=xu(c);let l=ju(u,o.value.result);if(Ha(l)){const t=Kc(e.meta.get("referenced-element"));if(Bh(l))l=yv.refract(l),l.setMetaProperty("referenced-element",t);else{l=this.namespace.getElementClass(t).refract(l)}}if(this.indirections.includes(l))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(l)){if(Hi(a)||zi(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=XE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...zE([...s,r,e]),"$ref"]});l=await KE(l,p,{keyMap:zx,nodeTypeGetter:Wx}),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(QE.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=Yi(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(l)){const s=n.findItem(YE(e))??h(l);return qa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(l)}catch(t){const n=HE(t),i=GE(n,{baseDoc:this.reference.uri,$ref:Kc(e.$ref),pointer:xu(Kc(e.$ref)),fullPath:this.basePath??[...zE([...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(!Ta(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=Yi(a,Kc(e.$ref));this.indirections.push(e);const u=xu(c);let l=ju(u,o.value.result);if(Ha(l)&&(l=fv.refract(l)),this.indirections.includes(l))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(l)){if(Hi(a)||zi(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=XE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...zE([...s,r,e]),"$ref"]});l=await KE(l,p,{keyMap:zx,nodeTypeGetter:Wx}),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(QE.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(l)){const s=n.findItem(YE(e))??h(l);return qa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(l)}catch(t){const n=HE(t),i=GE(n,{baseDoc:this.reference.uri,$ref:Kc(e.$ref),pointer:xu(Kc(e.$ref)),fullPath:this.basePath??[...zE([...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(!Ta(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=Jw(a,e),u=Ki(c),l=fw({uri:u}),p=!this.options.resolve.resolvers.some((e=>e.canRead(l))),h=!p,f=h&&a!==u;if(!this.options.resolve.external&&f)return;let m;this.indirections.push(e);try{if(p||h){m=Qw(c,Kw(o.value.result))}else{o=await this.toReference(Zi(c)),a=o.uri;const e=xu(c);m=Kw(ju(e,o.value.result))}}catch(e){if(!(h&&e instanceof Cw))throw e;if(Ww(zw(c))){o=await this.toReference(Zi(c)),a=o.uri;const e=zw(c);m=Hw(e,Kw(o.value.result))}else{o=await this.toReference(Zi(c)),a=o.uri;const e=xu(c);m=Kw(ju(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(Hi(a)||zi(a)){const t=Yi(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=XE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...zE([...s,r,e]),"$ref"]});if(m=await KE(m,d,{keyMap:zx,nodeTypeGetter:Wx}),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(QE.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(QE.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(YE(e))??y(m);return qa(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return y(m)}catch(t){const n=HE(t),i=new JE(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:Kc(e.$ref),fullPath:this.basePath??[...zE([...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=HE(t),i=GE(n,{baseDoc:this.reference.uri,externalValue:Kc(e.externalValue),fullPath:this.basePath??[...zE([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),ZE=XE,ej=WE.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=zE([...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=[...zE([...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 Xo.We: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=[...zE([...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=[...zE([...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}}}}),uj=Rc[Symbol.for("nodejs.util.promisify.custom")],lj=WE.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(Hx),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:Wx}),c=await uj(s.rootRef.value,a,{keyMap:zx,nodeTypeGetter:Wx});return null===t.dereference.refSet&&s.clean(),c}}}),pj=lj,hj=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:u=!1,parameterMacro:l=null,modelPropertyMacro:p=null,mode:f="non-strict"}=e;try{const{cache:m}=hj,d=Hi(Qi())?Qi():h,y=Nr(e),g=Yi(d,y);let v;m.has(t)?v=m.get(t):(v=lv.refract(t),v.classes.push("result"),m.set(t,v));const b=new sa([v]),x=Zc(o),w=""===x?"":`#${x}`,E=ju(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}),ME({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:l,modelPropertyMacro:p,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:P}}}),v),$=u?A:wE(A);return{spec:Kc($),errors:P}}catch(e){if(e instanceof bu||e instanceof Eu)return{spec:null,errors:[]};throw e}};hj.cache=new WeakMap;const fj=hj,mj={name:"openapi-3-1-apidom",match:({spec:e})=>zo(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 u;(c.tags?(u=c.tags,Array.isArray(u)?u:[u]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const u=i[r],l=qo(c,o,a,{v2OperationIdCompatibilityMode:n}),p=t({spec:e,pathName:o,method:a,operation:c,operationId:l});if(s[l])s[l]+=1,u[`${l}${s[l]}`]=p;else if(void 0!==u[l]){const e=s[l]||1;s[l]=e+1,u[`${l}${s[l]}`]=p;const t=u[l];delete u[l],u[`${l}${e}`]=t}else u[l]=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(8916);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 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=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||{},u=Object.keys(c.content||{}),l=a&&u.indexOf(a)>-1;if(n||o){if(a&&l)t.headers["Content-Type"]=a;else if(!a){const e=u[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&l&&(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(u.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 Ij(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,u=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=u[e],{type:a}=o,c=o["x-tokenName"]||"access_token",l=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&&l&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",s.headers.authorization=`${p} ${l}`)}))})),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 Tj(e,t){return`${t.toLowerCase()}-${e}`}function Cj(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),Tj(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:u,serverVariables:p,http:h,signal:f}=e;let{parameters:m,parameterBuilders:d}=e;const y=Ho(t);d||(d=y?l:wj);let g={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(g.signal=f),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),c&&(g.userFetch=c);const v=Cj(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: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(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?Mj(O,g):Ij(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 Ho(e.spec)?function({spec:e,pathName:t,method:r,server:n,contextUrl:s,serverVariables:i={}}){let o,a=[],c="";const u=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,l=e?.paths?.[t]?.servers,p=e?.servers;a=Uj(u)?u:Uj(l)?l: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?Yi(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,Wj=Vj;function zj(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof zj))return new zj(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,zj.makeApisTagOperation(this)),this)));return r.client=this,r}zj.http=Or,zj.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,zj.http),zj.resolveStrategies={"openapi-3-1-apidom":mj,"openapi-3-0":Go,"openapi-2-0":Jo,generic:Uo},zj.resolve=Ko({strategies:[zj.resolveStrategies["openapi-3-1-apidom"],zj.resolveStrategies["openapi-3-0"],zj.resolveStrategies["openapi-2-0"],zj.resolveStrategies.generic]}),zj.resolveSubtree=Yo({strategies:[zj.resolveStrategies["openapi-3-1-apidom"],zj.resolveStrategies["openapi-3-0"],zj.resolveStrategies["openapi-2-0"],zj.resolveStrategies.generic]}),zj.execute=function({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:a,...c}){const u=e||t||Or;s&&i&&!n&&(n=Tj(s,i));const l=Nj.buildRequest({spec:r,operationId:n,parameters:o,securities:a,http:u,...c});return l.body&&(xj(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),u(l)},zj.serializeRes=Pr,zj.serializeHeaders=Ar,zj.clearCache=function(){Do.refs.clearCache()},zj.makeApisTagOperation=function(e={}){const t=gj.makeExecute(e);return{apis:gj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},zj.buildRequest=qj,zj.helpers={opId:qo},zj.getBaseUrl=Bj,zj.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:PE}},parse:{parsers:{JsonParser:$E,YamlParser:_E,OpenApiJson3_1Parser:kE,OpenApiYaml3_1Parser:ME}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:pj}}},zj.prototype={http:Or,execute(e){return this.applyDefaults(),zj.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return zj.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},zj.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Vo(e)&&Wj(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=[f])}};const{helpers:Hj}=zj,Jj=zj})(),n=n.default})())); //# sourceMappingURL=swagger-client.browser.min.js.map