swagger-client 3.37.8 → 3.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see swagger-client.browser.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,()=>(()=>{var e={4744(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map(function(e){return s(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 c(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach(function(t){n[t]=s(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])?n[i]=function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))}),n}function a(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=s;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):c(e,r,i):s(r,i)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})};var l=a;e.exports=l},5580(e,t,r){var s=r(6110)(r(9325),"DataView");e.exports=s},1549(e,t,r){var s=r(2032),n=r(3862),i=r(6721),o=r(2749),c=r(5749);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},79(e,t,r){var s=r(3702),n=r(80),i=r(4739),o=r(8655),c=r(3556);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},8223(e,t,r){var s=r(6110)(r(9325),"Map");e.exports=s},3661(e,t,r){var s=r(3040),n=r(7670),i=r(289),o=r(4509),c=r(2949);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},2804(e,t,r){var s=r(6110)(r(9325),"Promise");e.exports=s},6545(e,t,r){var s=r(6110)(r(9325),"Set");e.exports=s},8859(e,t,r){var s=r(3661),n=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},7217(e,t,r){var s=r(79),n=r(1420),i=r(938),o=r(3605),c=r(9817),a=r(945);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=c,l.prototype.set=a,e.exports=l},1873(e,t,r){var s=r(9325).Symbol;e.exports=s},7828(e,t,r){var s=r(9325).Uint8Array;e.exports=s},8303(e,t,r){var s=r(6110)(r(9325),"WeakMap");e.exports=s},7389(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},695(e,t,r){var s=r(8096),n=r(2428),i=r(6449),o=r(3656),c=r(361),a=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&a(e),d=r||u||p||h,m=d?s(e.length,String):[],f=m.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,f))||m.push(y);return m}},4528(e){e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},4248(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6025(e,t,r){var s=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},2199(e,t,r){var s=r(4528),n=r(6449);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},2552(e,t,r){var s=r(1873),n=r(659),i=r(9350),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7534(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},270(e,t,r){var s=r(7068),n=r(346);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,c))}},7068(e,t,r){var s=r(7217),n=r(5911),i=r(1986),o=r(689),c=r(5861),a=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,v){var g=a(e),b=a(t),x=g?h:c(e),E=b?h:c(t),w=(x=x==p?d:x)==d,j=(E=E==p?d:E)==d,S=x==E;if(S&&l(e)){if(!l(t))return!1;g=!0,w=!1}if(S&&!w)return v||(v=new s),g||u(e)?n(e,t,r,f,y,v):i(e,t,x,r,f,y,v);if(!(1&r)){var O=w&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(O||P){var $=O?e.value():e,A=P?t.value():t;return v||(v=new s),y($,A,r,f,v)}}return!!S&&(v||(v=new s),o(e,t,r,f,y,v))}},5083(e,t,r){var s=r(1882),n=r(7296),i=r(3805),o=r(7473),c=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:c).test(o(e))}},4901(e,t,r){var s=r(2552),n=r(294),i=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},8984(e,t,r){var s=r(5527),n=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096(e){e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},7301(e){e.exports=function(e){return function(t){return e(t)}}},9219(e){e.exports=function(e,t){return e.has(t)}},5481(e,t,r){var s=r(9325)["__core-js_shared__"];e.exports=s},5911(e,t,r){var s=r(8859),n=r(4248),i=r(9219);e.exports=function(e,t,r,o,c,a){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var m=-1,f=!0,y=2&r?new s:void 0;for(a.set(e,t),a.set(t,e);++m<u;){var v=e[m],g=t[m];if(o)var b=l?o(g,v,m,t,e,a):o(v,g,m,e,t,a);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!n(t,function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)})){f=!1;break}}else if(v!==g&&!c(v,g,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}},1986(e,t,r){var s=r(1873),n=r(7828),i=r(5288),o=r(5911),c=r(317),a=r(4247),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(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 d=c;case"[object Set]":var m=1&s;if(d||(d=a),e.size!=t.size&&!m)return!1;var f=h.get(e);if(f)return f==t;s|=2,h.set(e,t);var y=o(d(e),d(t),s,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689(e,t,r){var s=r(2),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!a)return!1;for(var p=u;p--;){var h=l[p];if(!(a?h in t:n.call(t,h)))return!1}var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var f=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<u;){var v=e[h=l[p]],g=t[h];if(i)var b=a?i(g,v,h,t,e,c):i(v,g,h,e,t,c);if(!(void 0===b?v===g||o(v,g,r,i,c):b)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(f=!1)}return c.delete(e),c.delete(t),f}},2459(e,t,r){var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2(e,t,r){var s=r(2199),n=r(4664),i=r(5950);e.exports=function(e){return s(e,i,n)}},2651(e,t,r){var s=r(4218);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110(e,t,r){var s=r(5083),n=r(392);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},659(e,t,r){var s=r(1873),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,c=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[c]=r:delete e[c]),n}},4664(e,t,r){var s=r(7389),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),s(o(e),function(t){return i.call(e,t)}))}:n;e.exports=c},5861(e,t,r){var s=r(5580),n=r(8223),i=r(2804),o=r(6545),c=r(8303),a=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",f=l(s),y=l(n),v=l(i),g=l(o),b=l(c),x=a;(s&&x(new s(new ArrayBuffer(1)))!=m||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||c&&x(new c)!=d)&&(x=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case f:return m;case y:return u;case v:return p;case g:return h;case b:return d}return t}),e.exports=x},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032(e,t,r){var s=r(5804);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},2749(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5749(e,t,r){var s=r(5804);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var s,n=r(5481),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var s=r(6025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4739(e,t,r){var s=r(6025);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var s=r(6025);e.exports=function(e){return s(this.__data__,e)>-1}},3556(e,t,r){var s=r(6025);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3040(e,t,r){var s=r(1549),n=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},7670(e,t,r){var s=r(2651);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).get(e)}},4509(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).has(e)}},2949(e,t,r){var s=r(2651);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,s){r[++t]=[s,e]}),r}},5804(e,t,r){var s=r(6110)(Object,"create");e.exports=s},3650(e,t,r){var s=r(4335)(Object.keys,Object);e.exports=s},6009(e,t,r){e=r.nmd(e);var s=r(2459),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var s=r(2459),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},1420(e,t,r){var s=r(79);e.exports=function(){this.__data__=new s,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var s=r(79),n=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var s=r(7534),n=r(346),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var s=r(1882),n=r(294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},3812(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3656(e,t,r){e=r.nmd(e);var s=r(9325),n=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?s.Buffer:void 0,a=(c?c.isBuffer:void 0)||n;e.exports=a},2404(e,t,r){var s=r(270);e.exports=function(e,t){return s(e,t)}},1882(e,t,r){var s=r(2552),n=r(3805);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187(e){e.exports=function(e){return null===e}},8023(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},5015(e,t,r){var s=r(2552),n=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},7167(e,t,r){var s=r(4901),n=r(7301),i=r(6009),o=i&&i.isTypedArray,c=o?n(o):s;e.exports=c},5950(e,t,r){var s=r(695),n=r(8984),i=r(4894);e.exports=function(e){return i(e)?s(e):n(e)}},6048(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},2340(e,t,r){const s=r(6048);function n(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(s=>{const n=e.bind(t)(s);n&&r.push(n)}),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some(t=>t.equals(e))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},5973(e){class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},3110(e,t,r){const s=r(5187),n=r(5015),i=r(8023),o=r(3812),c=r(3805),a=r(5105),l=r(6804);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(s,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(c,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=u,e.exports=u},866(e,t,r){const s=r(6048),n=r(2340);class i extends n{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(s(e.bind(t)))}forEach(e,t){return this.elements.forEach((r,s)=>{e.bind(t)(r.value,r.key,r,s)})}keys(){return this.map((e,t)=>t.toValue())}values(){return this.map(e=>e.toValue())}}e.exports=i},6804(e,t,r){const s=r(316),n=r(1067),i=r(1167),o=r(239),c=r(2242),a=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),d=r(2340),m=r(866),f=r(5973);function y(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new n;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,d.prototype.refract=y,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:d,ObjectSlice:m,KeyValuePair:f}},6303(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},4540(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},4035(e,t,r){const s=r(3110),n=r(6804);t.g$=s,t.KeyValuePair=r(5973),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(5105),r(5147)},6233(e,t,r){const s=r(6048),n=r(316),i=r(2340);class o extends n{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(s=>{const n=e.bind(t)(s);n&&r.push(n)}),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach((r,s)=>{e.bind(t)(r,this.refract(s))})}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||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)}),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>t.classes.includes(e))}getById(e){return this.find(t=>t.id.toValue()===e).first}includes(e){return this.content.some(t=>t.equals(e))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map(t=>e(t),this).reduce((e,t)=>e.concat(t),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2242(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316(e,t,r){const s=r(2404),n=r(5973),i=r(2340);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(e=>{e.parent=this,e.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map(e=>e.clone()):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{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 s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(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 s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0})),r}set(e){return this.content=e,this}equals(e){return s(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 n)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 n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach(t=>{e.push(t),t.recursiveChildren.forEach(t=>{e.push(t)})}),e}}e.exports=o},7726(e,t,r){const s=r(5973),n=r(316);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},1067(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},239(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045(e,t,r){const s=r(6048),n=r(3805),i=r(6233),o=r(7726),c=r(866);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this.content.filter(r=>r.key.toValue()!==e||(t=r,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach(t=>{this.set(t,e[t])}),this;const r=e,s=this.getMember(r);return s?s.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((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)}),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach(r=>e.bind(t)(r.value,r.key,r))}}},1167(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},5147(e,t,r){const s=r(5105);e.exports=class extends s{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 s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)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 s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}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([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach(e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")}),e.content&&0!==r.length&&n.unshift(e.content),n=n.map(e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content])),n.length&&t.set("samples",n),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 s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach(s=>{s.forEach(s=>{const n=new t(s);n.element=r.element,e.push(n)})});const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);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 s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}}),t}deserialiseObject(e,t){Object.keys(e).forEach(r=>{t.set(r,this.deserialise(e[r]))})}}},5105(e){e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(r=>{t.set(r,this.deserialise(e[r]))})}}},8068(e){"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,c=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},a=(e,t,r)=>o(e,"symbol"!=typeof t?t+"":t,r),l={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>m});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){a(this,"counter"),a(this,"debug"),a(this,"dict"),a(this,"version"),a(this,"dictIndex",0),a(this,"dictRange",[]),a(this,"lowerBound",0),a(this,"upperBound",0),a(this,"dictLength",0),a(this,"uuidLength"),a(this,"_digit_first_ascii",48),a(this,"_digit_last_ascii",58),a(this,"_alpha_lower_first_ascii",97),a(this,"_alpha_lower_last_ascii",123),a(this,"_hex_last_ascii",103),a(this,"_alpha_upper_first_ascii",65),a(this,"_alpha_upper_last_ascii",91),a(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),a(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]}),a(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(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]}),a(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]}),a(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]}),a(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),a(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}),a(this,"log",(...e)=>{const t=[...e];t[0]="[short-unique-id] ".concat(e[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...t)}),a(this,"_normalizeDictionary",(e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{r=[],this.dictIndex=0;const t="_".concat(e,"_dict_ranges"),s=this._dict_ranges[t];let n=0;for(const[,e]of Object.entries(s)){const[t,r]=e;n+=Math.abs(r-t)}r=new Array(n);let i=0;for(const[,e]of Object.entries(s)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const t=this.lowerBound<=this.upperBound,s=this.lowerBound,n=this.upperBound;if(t)for(let e=s;e<n;e++)r[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=s;e>n;e--)r[i++]=String.fromCharCode(e),this.dictIndex=e}r.length=i}if(t){for(let e=r.length-1;e>0;e--){const t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}}return r}),a(this,"setDictionary",(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),a(this,"seq",()=>this.sequentialUUID()),a(this,"sequentialUUID",()=>{const e=this.dictLength,t=this.dict;let r=this.counter;const s=[];do{const n=r%e;r=Math.trunc(r/e),s.push(t[n])}while(0!==r);const n=s.join("");return this.counter+=1,n}),a(this,"rnd",(e=this.uuidLength||u)=>this.randomUUID(e)),a(this,"randomUUID",(e=this.uuidLength||u)=>{if(null==e||e<1)throw new Error("Invalid UUID Length Provided");const t=new Array(e),r=this.dictLength,s=this.dict;for(let n=0;n<e;n++){const e=Math.floor(Math.random()*r);t[n]=s[e]}return t.join("")}),a(this,"fmt",(e,t)=>this.formattedUUID(e,t)),a(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 s=e.slice(0,2),n=Number.parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)})}),a(this,"availableUUIDs",(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),a(this,"_collisionCache",new Map),a(this,"approxMaxBeforeCollision",(e=this.availableUUIDs(this.uuidLength))=>{const t=e,r=this._collisionCache.get(t);if(void 0!==r)return r;const s=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,s),s}),a(this,"collisionProbability",(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),a(this,"uniqueness",(e=this.availableUUIDs(this.uuidLength))=>{const t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),a(this,"getVersion",()=>this.version),a(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 s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return"".concat(i.substring(0,n)).concat(r).concat(i.substring(n)).concat(n.toString(16))}),a(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),s=Number.parseInt(e.slice(2),10);return t[r](s)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,r,s)=>e.substring(r.length,r.length+s.length)):e;if(8===r.length)return new Date(1e3*Number.parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=Number.parseInt(r.substring(r.length-1),16);return new Date(1e3*Number.parseInt(r.substring(s,s+8),16))}),a(this,"setCounter",e=>{this.counter=e}),a(this,"validate",(e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every(e=>r.includes(e))});const t=c(c({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:r,shuffle:s,length:n,counter:i}=t;this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(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)}};a(h,"default",h);var d,m=h;return d=l,((s,i,o,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of r(i))n.call(s,a)||a===o||e(s,a,{get:()=>i[a],enumerable:!(c=t(i,a))||c.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},8628(e,t,r){e.exports=r(6343)},8675(e,t,r){e.exports=r(850)},8623(e,t,r){"use strict";var s=r(694);e.exports=s},7257(e,t,r){"use strict";r(6605),r(4502),r(6371),r(9363),r(7057);var s=r(2046);e.exports=s.AggregateError},1362(e,t,r){"use strict";r(9748);var s=r(1747);e.exports=s("Array","includes")},6880(e,t,r){"use strict";var s=r(8280),n=r(1362),i=r(4378),o=Array.prototype,c=String.prototype;e.exports=function(e){var t=e.includes;return e===o||s(o,e)&&t===o.includes?n:"string"==typeof e||e===c||s(c,e)&&t===c.includes?i:t}},4378(e,t,r){"use strict";r(9770);var s=r(1747);e.exports=s("String","includes")},850(e,t,r){"use strict";e.exports=r(6076)},6076(e,t,r){"use strict";r(1599);var s=r(8623);e.exports=s},2159(e,t,r){"use strict";var s=r(2250),n=r(4640),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},43(e,t,r){"use strict";var s=r(4018),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2156(e){"use strict";e.exports=function(){}},6624(e,t,r){"use strict";var s=r(6285),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},4436(e,t,r){"use strict";var s=r(7374),n=r(4849),i=r(575),o=function(e){return function(t,r,o){var c=s(t),a=i(c);if(0===a)return!e&&-1;var l,u=n(o,a);if(e&&r!=r){for(;a>u;)if((l=c[u++])!=l)return!0}else for(;a>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5807(e,t,r){"use strict";var s=r(1907),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},3948(e,t,r){"use strict";var s=r(2623),n=r(2250),i=r(5807),o=r(6264)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},9595(e,t,r){"use strict";var s=r(9724),n=r(1042),i=r(3846),o=r(4284);e.exports=function(e,t,r){for(var c=n(t),a=o.f,l=i.f,u=0;u<c.length;u++){var p=c[u];s(e,p)||r&&s(r,p)||a(e,p,l(t,p))}}},5735(e,t,r){"use strict";var s=r(6264)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[s]=!1,"/./"[e](t)}catch(e){}}return!1}},7382(e,t,r){"use strict";var s=r(8828);e.exports=!s(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},9550(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},1626(e,t,r){"use strict";var s=r(9447),n=r(4284),i=r(5817);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5817(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8055(e,t,r){"use strict";var s=r(1626);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},2532(e,t,r){"use strict";var s=r(5951),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},9447(e,t,r){"use strict";var s=r(8828);e.exports=!s(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9552(e,t,r){"use strict";var s=r(5951),n=r(6285),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9287(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}},376(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6794(e,t,r){"use strict";var s=r(5951).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},798(e,t,r){"use strict";var s,n,i=r(5951),o=r(6794),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.version,u=l&&l.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5762(e,t,r){"use strict";var s=r(1907),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},5884(e,t,r){"use strict";var s=r(1626),n=r(5762),i=r(3888),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):s(e,"stack",n(r,c)))}},3888(e,t,r){"use strict";var s=r(8828),n=r(5817);e.exports=!s(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)})},1091(e,t,r){"use strict";var s=r(5951),n=r(6024),i=r(2361),o=r(2250),c=r(3846).f,a=r(7463),l=r(2046),u=r(8311),p=r(1626),h=r(9724);r(6128);var d=function(e){var t=function(r,s,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,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,m,f,y,v,g,b,x,E=e.target,w=e.global,j=e.stat,S=e.proto,O=w?s:j?s[E]:s[E]&&s[E].prototype,P=w?l:l[E]||p(l,E,{})[E],$=P.prototype;for(f in t)n=!(r=a(w?f:E+(j?".":"#")+f,e.forced))&&O&&h(O,f),v=P[f],n&&(g=e.dontCallGetSet?(x=c(O,f))&&x.value:O[f]),y=n&&g?g:t[f],(r||S||typeof v!=typeof y)&&(b=e.bind&&n?u(y,s):e.wrap&&n?d(y):S&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&p(b,"sham",!0),p(P,f,b),S&&(h(l,m=E+"Prototype")||p(l,m,{}),p(l[m],f,y),e.real&&$&&(r||!$[f])&&p($,f,y)))}},8828(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6024(e,t,r){"use strict";var s=r(1505),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},8311(e,t,r){"use strict";var s=r(2361),n=r(2159),i=r(1505),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1505(e,t,r){"use strict";var s=r(8828);e.exports=!s(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},3930(e,t,r){"use strict";var s=r(1505),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},6833(e,t,r){"use strict";var s=r(9447),n=r(9724),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,c=n(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:l}},1871(e,t,r){"use strict";var s=r(1907),n=r(2159);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2361(e,t,r){"use strict";var s=r(5807),n=r(1907);e.exports=function(e){if("Function"===s(e))return n(e)}},1907(e,t,r){"use strict";var s=r(1505),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},1747(e,t,r){"use strict";var s=r(5951),n=r(2046);e.exports=function(e,t){var r=n[e+"Prototype"],i=r&&r[t];if(i)return i;var o=s[e],c=o&&o.prototype;return c&&c[t]}},5582(e,t,r){"use strict";var s=r(2046),n=r(5951),i=r(2250),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},3448(e,t,r){"use strict";var s=r(3948),n=r(9367),i=r(7136),o=r(3742),c=r(6264)("iterator");e.exports=function(e){if(!i(e))return n(e,c)||n(e,"@@iterator")||o[s(e)]}},300(e,t,r){"use strict";var s=r(3930),n=r(2159),i=r(6624),o=r(4640),c=r(3448),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(n(r))return i(s(r,e));throw new a(o(e)+" is not iterable")}},9367(e,t,r){"use strict";var s=r(2159),n=r(7136);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},5951(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724(e,t,r){"use strict";var s=r(1907),n=r(9298),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},8530(e){"use strict";e.exports={}},2416(e,t,r){"use strict";var s=r(5582);e.exports=s("document","documentElement")},3648(e,t,r){"use strict";var s=r(9447),n=r(8828),i=r(9552);e.exports=!s&&!n(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},6946(e,t,r){"use strict";var s=r(1907),n=r(8828),i=r(5807),o=Object,c=s("".split);e.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?c(e,""):o(e)}:o},4084(e,t,r){"use strict";var s=r(2250),n=r(6285),i=r(9192);e.exports=function(e,t,r){var o,c;return i&&s(o=t.constructor)&&o!==r&&n(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},9259(e,t,r){"use strict";var s=r(6285),n=r(1626);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},4932(e,t,r){"use strict";var s,n,i,o=r(551),c=r(5951),a=r(6285),l=r(1626),u=r(9724),p=r(6128),h=r(2522),d=r(8530),m="Object already initialized",f=c.TypeError,y=c.WeakMap;if(o||p.state){var v=p.state||(p.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,s=function(e,t){if(v.has(e))throw new f(m);return t.facade=e,v.set(e,t),t},n=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var g=h("state");d[g]=!0,s=function(e,t){if(u(e,g))throw new f(m);return t.facade=e,l(e,g,t),t},n=function(e){return u(e,g)?e[g]:{}},i=function(e){return u(e,g)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},7812(e,t,r){"use strict";var s=r(6264),n=r(3742),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2250(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},7463(e,t,r){"use strict";var s=r(8828),n=r(2250),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===u||r!==l&&(n(t)?s(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},7136(e){"use strict";e.exports=function(e){return null==e}},6285(e,t,r){"use strict";var s=r(2250);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},4018(e,t,r){"use strict";var s=r(6285);e.exports=function(e){return s(e)||null===e}},7376(e){"use strict";e.exports=!0},2087(e,t,r){"use strict";var s=r(6285),n=r(5807),i=r(6264)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===n(e))}},5594(e,t,r){"use strict";var s=r(5582),n=r(2250),i=r(8280),o=r(1175),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,c(e))}},4823(e,t,r){"use strict";var s=r(8311),n=r(3930),i=r(6624),o=r(4640),c=r(7812),a=r(575),l=r(8280),u=r(300),p=r(3448),h=r(154),d=TypeError,m=function(e,t){this.stopped=e,this.result=t},f=m.prototype;e.exports=function(e,t,r){var y,v,g,b,x,E,w,j=r&&r.that,S=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),$=!(!r||!r.INTERRUPTED),A=s(t,j),k=function(e){var t=y;return y=void 0,t&&h(t,"normal"),new m(!0,e)},T=function(e){return S?(i(e),$?A(e[0],e[1],k):A(e[0],e[1])):$?A(e,k):A(e)};if(O)y=e.iterator;else if(P)y=e;else{if(!(v=p(e)))throw new d(o(e)+" is not iterable");if(c(v)){for(g=0,b=a(e);b>g;g++)if((x=T(e[g]))&&l(f,x))return x;return new m(!1)}y=u(e,v)}for(E=O?e.next:y.next;!(w=n(E,y)).done;){var C=w.value;try{x=T(C)}catch(e){if(!y)throw e;h(y,"throw",e)}if("object"==typeof x&&x&&l(f,x))return x}return new m(!1)}},154(e,t,r){"use strict";var s=r(3930),n=r(6624),i=r(9367);e.exports=function(e,t,r){var o,c;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return n(o),r}},7181(e,t,r){"use strict";var s=r(5116).IteratorPrototype,n=r(8075),i=r(5817),o=r(4840),c=r(3742),a=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),c[u]=a,e}},183(e,t,r){"use strict";var s=r(1091),n=r(3930),i=r(7376),o=r(6833),c=r(2250),a=r(7181),l=r(5972),u=r(9192),p=r(4840),h=r(1626),d=r(8055),m=r(6264),f=r(3742),y=r(5116),v=o.PROPER,g=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),w="keys",j="values",S="entries",O=function(){return this};e.exports=function(e,t,r,o,m,y,P){a(r,t,o);var $,A,k,T=function(e){if(e===m&&R)return R;if(!x&&e&&e in M)return M[e];switch(e){case w:case j:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",F=!1,M=e.prototype,I=M[E]||M["@@iterator"]||m&&M[m],R=!x&&I||T(m),D="Array"===t&&M.entries||I;if(D&&($=l(D.call(new e)))!==Object.prototype&&$.next&&(i||l($)===b||(u?u($,b):c($[E])||d($,E,O)),p($,C,!0,!0),i&&(f[C]=O)),v&&m===j&&I&&I.name!==j&&(!i&&g?h(M,"name",j):(F=!0,R=function(){return n(I,this)})),m)if(A={values:T(j),keys:y?R:T(w),entries:T(S)},P)for(k in A)(x||F||!(k in M))&&d(M,k,A[k]);else s({target:t,proto:!0,forced:x||F},A);return i&&!P||M[E]===R||d(M,E,R,{name:m}),f[t]=R,A}},5116(e,t,r){"use strict";var s,n,i,o=r(8828),c=r(2250),a=r(6285),l=r(8075),u=r(5972),p=r(8055),h=r(6264),d=r(7376),m=h("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):f=!0),!a(s)||o(function(){var e={};return s[m].call(e)!==e})?s={}:d&&(s=l(s)),c(s[m])||p(s,m,function(){return this}),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:f}},3742(e){"use strict";e.exports={}},575(e,t,r){"use strict";var s=r(3121);e.exports=function(e){return s(e.length)}},1176(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},2096(e,t,r){"use strict";var s=r(160);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},2074(e,t,r){"use strict";var s=r(2087),n=TypeError;e.exports=function(e){if(s(e))throw new n("The method doesn't accept regular expressions");return e}},8075(e,t,r){"use strict";var s,n=r(6624),i=r(2220),o=r(376),c=r(8530),a=r(2416),l=r(9552),u=r(2522),p="prototype",h="script",d=u("IE_PROTO"),m=function(){},f=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&s?y(s):(t=l("iframe"),r="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(s);for(var n=o.length;n--;)delete v[p][o[n]];return v()};c[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=n(e),r=new m,m[p]=null,r[d]=e):r=v(),void 0===t?r:i.f(r,t)}},2220(e,t,r){"use strict";var s=r(9447),n=r(8661),i=r(4284),o=r(6624),c=r(7374),a=r(2875);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=c(t),n=a(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],s[r]);return e}},4284(e,t,r){"use strict";var s=r(9447),n=r(3648),i=r(8661),o=r(6624),c=r(470),a=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=s?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var s=u(e,t);s&&s[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=c(t),o(r),n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3846(e,t,r){"use strict";var s=r(9447),n=r(3930),i=r(2574),o=r(5817),c=r(7374),a=r(470),l=r(9724),u=r(3648),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=c(e),t=a(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4443(e,t,r){"use strict";var s=r(3045),n=r(376).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7170(e,t){"use strict";t.f=Object.getOwnPropertySymbols},5972(e,t,r){"use strict";var s=r(9724),n=r(2250),i=r(9298),o=r(2522),c=r(7382),a=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=i(e);if(s(t,a))return t[a];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8280(e,t,r){"use strict";var s=r(1907);e.exports=s({}.isPrototypeOf)},3045(e,t,r){"use strict";var s=r(1907),n=r(9724),i=r(7374),o=r(4436).indexOf,c=r(8530),a=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(c,r)&&n(s,r)&&a(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||a(u,r));return u}},2875(e,t,r){"use strict";var s=r(3045),n=r(376);e.exports=Object.keys||function(e){return s(e,n)}},2574(e,t){"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},9192(e,t,r){"use strict";var s=r(1871),n=r(6285),i=r(4239),o=r(43);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return i(r),o(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},4878(e,t,r){"use strict";var s=r(2623),n=r(3948);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},581(e,t,r){"use strict";var s=r(3930),n=r(2250),i=r(6285),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&n(r=e.toString)&&!i(c=s(r,e)))return c;if(n(r=e.valueOf)&&!i(c=s(r,e)))return c;if("string"!==t&&n(r=e.toString)&&!i(c=s(r,e)))return c;throw new o("Can't convert object to primitive value")}},1042(e,t,r){"use strict";var s=r(5582),n=r(1907),i=r(4443),o=r(7170),c=r(6624),a=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},2046(e){"use strict";e.exports={}},4829(e,t,r){"use strict";var s=r(4284).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4239(e,t,r){"use strict";var s=r(7136),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},4840(e,t,r){"use strict";var s=r(2623),n=r(4284).f,i=r(1626),o=r(9724),c=r(4878),a=r(6264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(o(u,a)||n(u,a,{configurable:!0,value:t}),l&&!s&&i(u,"toString",c))}},2522(e,t,r){"use strict";var s=r(5816),n=r(6499),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},6128(e,t,r){"use strict";var s=r(7376),n=r(5951),i=r(2532),o="__core-js_shared__",c=e.exports=n[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.49.0",mode:s?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5816(e,t,r){"use strict";var s=r(6128);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},1470(e,t,r){"use strict";var s=r(1907),n=r(5482),i=r(160),o=r(4239),c=s("".charAt),a=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),h=n(r),d=p.length;return h<0||h>=d?e?"":void 0:(s=a(p,h))<55296||s>56319||h+1===d||(u=a(p,h+1))<56320||u>57343?e?c(p,h):s:e?l(p,h,h+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},9846(e,t,r){"use strict";var s=r(798),n=r(8828),i=r(5951).String;e.exports=!!Object.getOwnPropertySymbols&&!n(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41})},4849(e,t,r){"use strict";var s=r(5482),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},7374(e,t,r){"use strict";var s=r(6946),n=r(4239);e.exports=function(e){return s(n(e))}},5482(e,t,r){"use strict";var s=r(1176);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},3121(e,t,r){"use strict";var s=r(5482),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},9298(e,t,r){"use strict";var s=r(4239),n=Object;e.exports=function(e){return n(s(e))}},6028(e,t,r){"use strict";var s=r(3930),n=r(6285),i=r(5594),o=r(9367),c=r(581),a=r(6264),l=TypeError,u=a("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,a=o(e,u);if(a){if(void 0===t&&(t="default"),r=s(a,e,t),!n(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},470(e,t,r){"use strict";var s=r(6028),n=r(5594);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},2623(e,t,r){"use strict";var s={};s[r(6264)("toStringTag")]="z",e.exports="[object z]"===String(s)},160(e,t,r){"use strict";var s=r(3948),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},4640(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6499(e,t,r){"use strict";var s=r(1907),n=0,i=Math.random(),o=s(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1175(e,t,r){"use strict";var s=r(9846);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661(e,t,r){"use strict";var s=r(9447),n=r(8828);e.exports=s&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},551(e,t,r){"use strict";var s=r(5951),n=r(2250),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},6264(e,t,r){"use strict";var s=r(5951),n=r(5816),i=r(9724),o=r(6499),c=r(9846),a=r(1175),l=s.Symbol,u=n("wks"),p=a?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=c&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},9358(e,t,r){"use strict";var s=r(5582),n=r(9724),i=r(1626),o=r(8280),c=r(9192),a=r(9595),l=r(4829),u=r(4084),p=r(2096),h=r(9259),d=r(5884),m=r(9447),f=r(7376);e.exports=function(e,t,r,y){var v="stackTraceLimit",g=y?2:1,b=e.split("."),x=b[b.length-1],E=s.apply(null,b);if(E){var w=E.prototype;if(!f&&n(w,"cause")&&delete w.cause,!r)return E;var j=s("Error"),S=t(function(e,t){var r=p(y?t:e,void 0),s=y?new E(e):new E;return void 0!==r&&i(s,"message",r),d(s,S,s.stack,2),this&&o(w,this)&&u(s,this,S),arguments.length>g&&h(s,arguments[g]),s});if(S.prototype=w,"Error"!==x?c?c(S,j):a(S,j,{name:!0}):m&&v in E&&(l(S,E,v),l(S,E,"prepareStackTrace")),a(S,E),!f)try{w.name!==x&&i(w,"name",x),w.constructor=S}catch(e){}return S}}},6371(e,t,r){"use strict";var s=r(1091),n=r(5582),i=r(6024),o=r(8828),c=r(9358),a="AggregateError",l=n(a),u=!o(function(){return 1!==l([1]).errors[0]})&&o(function(){return 7!==l([1],a,{cause:7}).cause});s({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:c(a,function(e){return function(t,r){return i(e,this,arguments)}},u,!0)})},2048(e,t,r){"use strict";var s=r(1091),n=r(8280),i=r(5972),o=r(9192),c=r(9595),a=r(8075),l=r(1626),u=r(5817),p=r(9259),h=r(5884),d=r(4823),m=r(2096),f=r(6264)("toStringTag"),y=Error,v=[].push,g=function(e,t){var r,s=n(b,this);o?r=o(new y,s?i(this):b):(r=s?this:a(b),l(r,f,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var c=[];return d(e,v,{that:c}),l(r,"errors",c),r};o?o(g,y):c(g,y,{name:!0});var b=g.prototype=a(y.prototype,{constructor:u(1,g),message:u(1,""),name:u(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:g})},4502(e,t,r){"use strict";r(2048)},9748(e,t,r){"use strict";var s=r(1091),n=r(4436).includes,i=r(8828),o=r(2156),c=i(function(){return!Array(1).includes()}),a=i(function(){return[,1].includes(void 0,1)});s({target:"Array",proto:!0,forced:c||a},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},9363(e,t,r){"use strict";var s=r(7374),n=r(2156),i=r(3742),o=r(4932),c=r(4284).f,a=r(183),l=r(9550),u=r(7376),p=r(9447),h="Array Iterator",d=o.set,m=o.getterFor(h);e.exports=a(Array,"Array",function(e,t){d(this,{type:h,target:s(e),index:0,kind:t})},function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==f.name)try{c(f,"name",{value:"values"})}catch(e){}},6605(e,t,r){"use strict";var s=r(1091),n=r(5951),i=r(6024),o=r(9358),c="WebAssembly",a=n[c],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),s({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,l),s({target:c,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",function(e){return function(t){return i(e,this,arguments)}}),u("EvalError",function(e){return function(t){return i(e,this,arguments)}}),u("RangeError",function(e){return function(t){return i(e,this,arguments)}}),u("ReferenceError",function(e){return function(t){return i(e,this,arguments)}}),u("SyntaxError",function(e){return function(t){return i(e,this,arguments)}}),u("TypeError",function(e){return function(t){return i(e,this,arguments)}}),u("URIError",function(e){return function(t){return i(e,this,arguments)}}),p("CompileError",function(e){return function(t){return i(e,this,arguments)}}),p("LinkError",function(e){return function(t){return i(e,this,arguments)}}),p("RuntimeError",function(e){return function(t){return i(e,this,arguments)}})},9770(e,t,r){"use strict";var s=r(1091),n=r(1907),i=r(2074),o=r(4239),c=r(160),a=r(5735),l=n("".indexOf);s({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~l(c(o(this)),c(i(e)),arguments.length>1?arguments[1]:void 0)}})},7057(e,t,r){"use strict";var s=r(1470).charAt,n=r(160),i=r(4932),o=r(183),c=r(9550),a="String Iterator",l=i.set,u=i.getterFor(a);o(String,"String",function(e){l(this,{type:a,string:n(e),index:0})},function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?c(void 0,!0):(e=s(r,n),t.index+=e.length,c(e,!1))})},1599(e,t,r){"use strict";r(4502)},2560(e,t,r){"use strict";r(9363);var s=r(9287),n=r(5951),i=r(4840),o=r(3742);for(var c in s)i(n[c],c),o[c]=o.Array},694(e,t,r){"use strict";r(1599);var s=r(7257);r(2560),e.exports=s},6343(e,t,r){"use strict";var s=r(6880);e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].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 s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s={};return(()=>{"use strict";r.d(s,{default:()=>sk});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Rt,_areEquals:()=>Ht,applyOperation:()=>Bt,applyPatch:()=>qt,applyReducer:()=>Ut,deepClone:()=>Dt,getValueByPointer:()=>Lt,validate:()=>Jt,validator:()=>Vt});var t={};r.r(t),r.d(t,{compare:()=>Zt,generate:()=>Xt,observe:()=>Yt,unobserve:()=>Kt});var n={};r.r(n),r.d(n,{bJ:()=>Cn,uQ:()=>On,Zd:()=>kn,q$:()=>$n,hd:()=>Fn,aj:()=>Mn,z9:()=>Tn,zj:()=>In});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Wo,includesClasses:()=>Yo,includesSymbols:()=>Ko,isAnnotationElement:()=>Jo,isArrayElement:()=>Bo,isBooleanElement:()=>No,isCommentElement:()=>Ho,isElement:()=>Io,isLinkElement:()=>Uo,isMemberElement:()=>qo,isNullElement:()=>_o,isNumberElement:()=>Do,isObjectElement:()=>Lo,isParseResultElement:()=>zo,isPrimitiveElement:()=>Go,isRefElement:()=>Vo,isStringElement:()=>Ro});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Ru,isJSONSchemaElement:()=>Iu,isLinkDescriptionElement:()=>_u,isMediaElement:()=>Du});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>md,isCallbackElement:()=>Wh,isComponentsElement:()=>Kh,isContactElement:()=>Yh,isDiscriminatorElement:()=>Ed,isExampleElement:()=>Xh,isExternalDocumentationElement:()=>Qh,isHeaderElement:()=>Zh,isInfoElement:()=>ed,isLicenseElement:()=>td,isLinkElement:()=>rd,isMediaTypeElement:()=>bd,isOpenApi3_0Element:()=>nd,isOpenapiElement:()=>sd,isOperationElement:()=>id,isParameterElement:()=>od,isPathItemElement:()=>cd,isPathsElement:()=>ad,isReferenceElement:()=>ld,isRequestBodyElement:()=>ud,isResponseElement:()=>pd,isResponsesElement:()=>hd,isSchemaElement:()=>dd,isSecurityRequirementElement:()=>fd,isSecuritySchemeElement:()=>yd,isServerElement:()=>vd,isServerVariableElement:()=>gd,isServersElement:()=>xd});var a={};r.r(a),r.d(a,{isJSONReferenceElement:()=>Ru,isJSONSchemaElement:()=>eg,isLinkDescriptionElement:()=>tg,isMediaElement:()=>Du});var l={};r.r(l),r.d(l,{isJSONReferenceElement:()=>Ru,isJSONSchemaElement:()=>hg,isLinkDescriptionElement:()=>dg});var u={};r.r(u),r.d(u,{isJSONSchemaElement:()=>Vg,isLinkDescriptionElement:()=>Jg});var p={};r.r(p),r.d(p,{isJSONSchemaElement:()=>sb,isLinkDescriptionElement:()=>nb});var h={};r.r(h),r.d(h,{isBooleanJsonSchemaElement:()=>fx,isCallbackElement:()=>zb,isComponentsElement:()=>Gb,isContactElement:()=>Wb,isExampleElement:()=>Kb,isExternalDocumentationElement:()=>Yb,isHeaderElement:()=>Xb,isInfoElement:()=>Qb,isJsonSchemaDialectElement:()=>Zb,isLicenseElement:()=>ex,isLinkElement:()=>tx,isMediaTypeElement:()=>xx,isOpenApi3_1Element:()=>sx,isOpenapiElement:()=>rx,isOperationElement:()=>nx,isParameterElement:()=>ix,isPathItemElement:()=>ox,isPathItemElementExternal:()=>cx,isPathsElement:()=>ax,isReferenceElement:()=>lx,isReferenceElementExternal:()=>ux,isRequestBodyElement:()=>px,isResponseElement:()=>hx,isResponsesElement:()=>dx,isSchemaElement:()=>mx,isSecurityRequirementElement:()=>yx,isSecuritySchemeElement:()=>vx,isServerElement:()=>gx,isServerVariableElement:()=>bx});var d={};r.r(d),r.d(d,{isBooleanJsonSchemaElement:()=>vO,isCallbackElement:()=>GS,isComponentsElement:()=>WS,isContactElement:()=>KS,isDiscriminatorElement:()=>YS,isExampleElement:()=>XS,isExternalDocumentationElement:()=>QS,isHeaderElement:()=>ZS,isInfoElement:()=>eO,isJsonSchemaDialectElement:()=>tO,isLicenseElement:()=>rO,isLinkElement:()=>sO,isMediaTypeElement:()=>wO,isOpenApi3_2Element:()=>iO,isOpenapiElement:()=>nO,isOperationElement:()=>oO,isParameterElement:()=>cO,isPathItemElement:()=>aO,isPathItemElementExternal:()=>lO,isPathsElement:()=>uO,isReferenceElement:()=>pO,isReferenceElementExternal:()=>hO,isRequestBodyElement:()=>dO,isResponseElement:()=>mO,isResponsesElement:()=>fO,isSchemaElement:()=>yO,isSecurityRequirementElement:()=>gO,isSecuritySchemeElement:()=>bO,isServerElement:()=>xO,isServerVariableElement:()=>EO});var m={};r.r(m),r.d(m,{cookie:()=>RA,header:()=>IA,path:()=>CA,query:()=>FA});const f="application/json, application/yaml",y="https://swagger.io",v=Object.freeze({url:"/"}),g=3e3;function b(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 x(e,t){return Array.isArray(e)&&e.some(e=>b(e,t))}class E extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const w=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,j=e=>/^[a-z0-9\-._~]+$/i.test(e);function S(e,t="reserved"){return[...e].map(e=>{if(j(e))return e;if(w(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map(e=>`0${e.toString(16).toUpperCase()}`.slice(-2)).map(e=>`%${e}`).join("")}).join("")}function O(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:s,escape:n}){if("simple"===r)return t.map(e=>P(e,n)).join(",");if("label"===r)return`.${t.map(e=>P(e,n)).join(".")}`;if("matrix"===r)return t.map(e=>P(e,n)).reduce((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`,"");if("form"===r){const r=s?`&${e}=`:",";return t.map(e=>P(e,n)).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map(e=>P(e,n)).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map(e=>P(e,n)).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:s,escape:n}){const i=Object.keys(t);if("simple"===r)return i.reduce((e,r)=>{const i=P(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`},"");if("label"===r)return i.reduce((e,r)=>{const i=P(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`},"");if("matrix"===r&&s)return i.reduce((e,r)=>`${e?`${e};`:";"}${r}=${P(t[r],n)}`,"");if("matrix"===r)return i.reduce((r,s)=>{const i=P(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`},"");if("form"===r)return i.reduce((e,r)=>{const i=P(t[r],n);return`${e?`${e}${s?"&":","}`:""}${r}${s?"=":","}${i}`},"");return}(e):function({key:e,value:t,style:r,escape:s}){if("simple"===r)return P(t,s);if("label"===r)return`.${P(t,s)}`;if("matrix"===r)return`;${e}=${P(t,s)}`;if("form"===r)return P(t,s);if("deepObject"===r)return P(t,s);return}(e)}function P(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&"string"==typeof e&&e.length>0?S(e,t):e??""}const $={form:",",spaceDelimited:"%20",pipeDelimited:"|"},A={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function k(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=t,c="object"!=typeof t||Array.isArray(t)?t:t.value,a=r?e=>e.toString():e=>encodeURIComponent(e),l=a(e);if(void 0===c&&n)return[[l,""]];if(b(c)||x(c))return[[l,c]];if(i)return T(e,c,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some(e=>"undefined"!==e)){const{style:t,explode:s,allowReserved:n}=o;return T(e,c,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=a("string"==typeof c?c:JSON.stringify(c));return[[l,new E(e,"blob",{type:o.contentType})]]}const e=a(String(c));return[[l,new E(e,"blob",{type:o.contentType})]]}return"object"!=typeof c?[[l,a(c)]]:Array.isArray(c)&&c.every(e=>"object"!=typeof e)?[[l,c.map(a).join(",")]]:[[l,a(JSON.stringify(c))]]}return"object"!=typeof c?[[l,a(c)]]:Array.isArray(c)?"multi"===s?[[l,c.map(a)]]:[[l,c.map(a).join(A[s||"csv"])]]:[[l,""]]}function T(e,t,r,s){const n=s.style||"form",i=void 0===s.explode?"form"===n:s.explode,o=!r&&(s&&s.allowReserved?"unsafe":"reserved"),c=e=>P(e,o),a=r?e=>e:e=>c(e);return"object"!=typeof t?[[a(e),c(t)]]:Array.isArray(t)?i?[[a(e),t.map(c)]]:[[a(e),t.map(c).join($[n])]]:"deepObject"===n?Object.keys(t).map(r=>[a(`${e}[${r}]`),c(t[r])]):i?Object.keys(t).map(e=>[a(e),c(t[e])]):[[a(e),Object.keys(t).map(e=>[`${a(e)},${c(t[e])}`]).join(",")]]}function C(e){return((e,{encode:t=!0}={})=>{const r=(e,t,s)=>(Array.isArray(s)?s.reduce((s,n)=>r(e,t,n),e):s instanceof Date?e.append(t,s.toISOString()):"object"==typeof s?Object.entries(s).reduce((s,[n,i])=>r(e,`${t}[${n}]`,i),e):e.append(t,s),e),s=Object.entries(e).reduce((e,[t,s])=>r(e,t,s),new URLSearchParams),n=String(s);return t?n:decodeURIComponent(n)})(Object.keys(e).reduce((t,r)=>{for(const[s,n]of k(r,e[r]))t[s]=n instanceof E?n.valueOf():n;return t},{}),{encode:!1})}function F(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some(e=>{const{value:t}=s[e];return b(t)||x(t)}),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(n=e.form,Object.entries(n).reduce((e,[t,r])=>{for(const[s,n]of k(t,r,!0))if(Array.isArray(n))for(const t of n)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(s,r)}else e.append(s,t);else if(ArrayBuffer.isView(n)){const t=new Blob([n]);e.append(s,t)}else e.append(s,n);return e},new FormData));e.formdata=t,e.body=t}else e.body=C(s);delete e.form}var n;if(r){const[s,n]=t.split("?");let i="";if(n){const e=new URLSearchParams(n);Object.keys(r).forEach(t=>e.delete(t)),i=String(e)}const o=((...e)=>{const t=e.filter(e=>e).join("&");return t?`?${t}`:""})(i,C(r));e.url=s+o,delete e.query}return e}var M=r(8628),I=r.n(M);function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D,_,N,L,B,q,U,V,J,H,z,G,W,K,Y,X,Q,Z,ee,te,re,se,ne,ie,oe,ce,ae,le,ue,pe,he,de,me,fe,ye,ve,ge,be,xe,Ee,we,je,Se,Oe,Pe={},$e={},Ae={};function ke(){if(D)return Ae;function e(e){return null==e}return D=1,Ae.isNothing=e,Ae.isObject=function(e){return"object"==typeof e&&null!==e},Ae.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},Ae.repeat=function(e,t){let r="";for(let s=0;s<t;s+=1)r+=e;return r},Ae.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},Ae.extend=function(e,t){if(t){const r=Object.keys(t);for(let s=0,n=r.length;s<n;s+=1){const n=r[s];e[n]=t[n]}}return e},Ae}function Te(){if(N)return _;function e(e,t){let r="";const s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),s+" "+r):s}function t(t,r){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=r,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return N=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},_=t}function Ce(){if(U)return q;U=1;const e=Te(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];return q=function(s,n){if(n=n||{},Object.keys(n).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+s+'" YAML type.')}),this.options=n,this.tag=s,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(e){return e},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=function(e){const t={};return null!==e&&Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})}),t}(n.styleAliases||null),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')},q}function Fe(){if(J)return V;J=1;const e=Te(),t=Ce();function r(e,t){const r=[];return e[t].forEach(function(e){let t=r.length;r.forEach(function(r,s){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=s)}),r[t]=e}),r}function s(e){return this.extend(e)}return s.prototype.extend=function(n){let i=[],o=[];if(n instanceof t)o.push(n);else if(Array.isArray(n))o=o.concat(n);else{if(!n||!Array.isArray(n.implicit)&&!Array.isArray(n.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(o=o.concat(n.explicit))}i.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const c=Object.create(s.prototype);return c.implicit=(this.implicit||[]).concat(i),c.explicit=(this.explicit||[]).concat(o),c.compiledImplicit=r(c,"implicit"),c.compiledExplicit=r(c,"explicit"),c.compiledTypeMap=function(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(t);return e}(c.compiledImplicit,c.compiledExplicit),c},V=s}function Me(){if(z)return H;z=1;const e=Ce();return H=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function Ie(){if(W)return G;W=1;const e=Ce();return G=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function Re(){if(Y)return K;Y=1;const e=Ce();return K=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function De(){if(Q)return X;Q=1;const e=Fe();return X=new e({explicit:[Me(),Ie(),Re()]})}function _e(){if(ee)return Z;ee=1;const e=Ce();return Z=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;const t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),Z}function Ne(){if(re)return te;re=1;const e=Ce();return te=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),te}function Le(){if(ne)return se;ne=1;const e=ke(),t=Ce();function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function s(e){return e>=48&&e<=55}function n(e){return e>=48&&e<=57}function i(e){let t=e,r=1,s=t[0];if("-"!==s&&"+"!==s||("-"===s&&(r=-1),t=t.slice(1),s=t[0]),"0"===t)return 0;if("0"===s){if("b"===t[1])return r*parseInt(t.slice(2),2);if("x"===t[1])return r*parseInt(t.slice(2),16);if("o"===t[1])return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}return se=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;let o=0,c=!1;if(!t)return!1;let a=e[o];if("-"!==a&&"+"!==a||(a=e[++o]),"0"===a){if(o+1===t)return!0;if(a=e[++o],"b"===a){for(o++;o<t;o++){if(a=e[o],"0"!==a&&"1"!==a)return!1;c=!0}return c&&isFinite(i(e))}if("x"===a){for(o++;o<t;o++){if(!r(e.charCodeAt(o)))return!1;c=!0}return c&&isFinite(i(e))}if("o"===a){for(o++;o<t;o++){if(!s(e.charCodeAt(o)))return!1;c=!0}return c&&isFinite(i(e))}}for(;o<t;o++){if(!n(e.charCodeAt(o)))return!1;c=!0}return!!c&&isFinite(i(e))},construct:function(e){return i(e)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),se}function Be(){if(oe)return ie;oe=1;const e=ke(),t=Ce(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");const n=/^[-+]?[0-9]+e/;return ie=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&(!!r.test(e)&&(!!isFinite(parseFloat(e,10))||s.test(e)))},construct:function(e){let t=e.toLowerCase();const r="-"===t[0]?-1:1;return"+-".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(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";const s=t.toString(10);return n.test(s)?s.replace("e",".e"):s},defaultStyle:"lowercase"})}function qe(){return ae?ce:(ae=1,ce=De().extend({implicit:[_e(),Ne(),Le(),Be()]}))}function Ue(){return ue?le:(ue=1,le=qe())}function Ve(){if(he)return pe;he=1;const e=Ce(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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]))?))?$");return pe=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){let s=0,n=null,i=t.exec(e);if(null===i&&(i=r.exec(e)),null===i)throw new Error("Date resolve error");const o=+i[1],c=+i[2]-1,a=+i[3];if(!i[4])return new Date(Date.UTC(o,c,a));const l=+i[4],u=+i[5],p=+i[6];if(i[7]){for(s=i[7].slice(0,3);s.length<3;)s+="0";s=+s}if(i[9]){n=6e4*(60*+i[10]+ +(i[11]||0)),"-"===i[9]&&(n=-n)}const h=new Date(Date.UTC(o,c,a,l,u,p,s));return n&&h.setTime(h.getTime()-n),h},instanceOf:Date,represent:function(e){return e.toISOString()}})}function Je(){if(me)return de;me=1;const e=Ce();return de=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function He(){if(ye)return fe;ye=1;const e=Ce(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return fe=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let r=0;const s=e.length,n=t;for(let t=0;t<s;t++){const s=n.indexOf(e.charAt(t));if(!(s>64)){if(s<0)return!1;r+=6}}return r%8==0},construct:function(e){const r=e.replace(/[\r\n=]/g,""),s=r.length,n=t;let i=0;const o=[];for(let e=0;e<s;e++)e%4==0&&e&&(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)),i=i<<6|n.indexOf(r.charAt(e));const c=s%4*6;return 0===c?(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)):18===c?(o.push(i>>10&255),o.push(i>>2&255)):12===c&&o.push(i>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let r="",s=0;const n=e.length,i=t;for(let t=0;t<n;t++)t%3==0&&t&&(r+=i[s>>18&63],r+=i[s>>12&63],r+=i[s>>6&63],r+=i[63&s]),s=(s<<8)+e[t];const o=n%3;return 0===o?(r+=i[s>>18&63],r+=i[s>>12&63],r+=i[s>>6&63],r+=i[63&s]):2===o?(r+=i[s>>10&63],r+=i[s>>4&63],r+=i[s<<2&63],r+=i[64]):1===o&&(r+=i[s>>2&63],r+=i[s<<4&63],r+=i[64],r+=i[64]),r}}),fe}function ze(){if(ge)return ve;ge=1;const e=Ce(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return ve=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;const s=[],n=e;for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o,c=!1;if("[object Object]"!==r.call(i))return!1;for(o in i)if(t.call(i,o)){if(c)return!1;c=!0}if(!c)return!1;if(-1!==s.indexOf(o))return!1;s.push(o)}return!0},construct:function(e){return null!==e?e:[]}})}function Ge(){if(xe)return be;xe=1;const e=Ce(),t=Object.prototype.toString;return be=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;const r=e,s=new Array(r.length);for(let e=0,n=r.length;e<n;e+=1){const n=r[e];if("[object Object]"!==t.call(n))return!1;const i=Object.keys(n);if(1!==i.length)return!1;s[e]=[i[0],n[i[0]]]}return!0},construct:function(e){if(null===e)return[];const t=e,r=new Array(t.length);for(let e=0,s=t.length;e<s;e+=1){const s=t[e],n=Object.keys(s);r[e]=[n[0],s[n[0]]]}return r}}),be}function We(){if(we)return Ee;we=1;const e=Ce(),t=Object.prototype.hasOwnProperty;return Ee=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;const r=e;for(const e in r)if(t.call(r,e)&&null!==r[e])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function Ke(){return Se?je:(Se=1,je=Ue().extend({implicit:[Ve(),Je()],explicit:[He(),ze(),Ge(),We()]}))}function Ye(){if(Oe)return $e;Oe=1;const e=ke(),t=Te(),r=function(){if(B)return L;B=1;const e=ke();function t(e,t,r,s,n){let i="",o="";const c=Math.floor(n/2)-1;return s-t>c&&(i=" ... ",t=s-c+i.length),r-s>c&&(o=" ...",r=s+c-o.length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function r(t,r){return e.repeat(" ",r-t.length)+t}return L=function(s,n){if(n=Object.create(n||null),!s.buffer)return null;n.maxLength||(n.maxLength=79),"number"!=typeof n.indent&&(n.indent=1),"number"!=typeof n.linesBefore&&(n.linesBefore=3),"number"!=typeof n.linesAfter&&(n.linesAfter=2);const i=/\r?\n|\r|\0/g,o=[0],c=[];let a,l=-1;for(;a=i.exec(s.buffer);)c.push(a.index),o.push(a.index+a[0].length),s.position<=a.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u="";const p=Math.min(s.line+n.linesAfter,c.length).toString().length,h=n.maxLength-(n.indent+p+3);for(let i=1;i<=n.linesBefore&&!(l-i<0);i++){const a=t(s.buffer,o[l-i],c[l-i],s.position-(o[l]-o[l-i]),h);u=e.repeat(" ",n.indent)+r((s.line-i+1).toString(),p)+" | "+a.str+"\n"+u}const d=t(s.buffer,o[l],c[l],s.position,h);u+=e.repeat(" ",n.indent)+r((s.line+1).toString(),p)+" | "+d.str+"\n",u+=e.repeat("-",n.indent+p+3+d.pos)+"^\n";for(let i=1;i<=n.linesAfter&&!(l+i>=c.length);i++){const a=t(s.buffer,o[l+i],c[l+i],s.position-(o[l]-o[l+i]),h);u+=e.repeat(" ",n.indent)+r((s.line+i+1).toString(),p)+" | "+a.str+"\n"}return u.replace(/\n$/,"")}}(),s=Ke(),n=Object.prototype.hasOwnProperty,i=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,c=/[,\[\]{}]/,a=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function p(e){return 10===e||13===e}function h(e){return 9===e||32===e}function d(e){return 9===e||32===e||10===e||13===e}function m(e){return 44===e||91===e||93===e||123===e||125===e}function f(e){if(e>=48&&e<=57)return e-48;const t=32|e;return t>=97&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function v(e){return e>=48&&e<=57?e-48:-1}function g(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function x(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}const E=new Array(256),w=new Array(256);for(let e=0;e<256;e++)E[e]=g(e)?1:0,w[e]=g(e);function j(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function S(e,s){const n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=r(n),new t(s,n)}function O(e,t){throw S(e,t)}function P(e,t){e.onWarning&&e.onWarning.call(null,S(e,t))}function $(e,t,r){const s=e.anchorMapTransactions;if(0!==s.length){const r=s[s.length-1];n.call(r,t)||(r[t]={existed:n.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=r}function A(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function k(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}const T={YAML:function(e,t,r){null!==e.version&&O(e,"duplication of %YAML directive"),1!==r.length&&O(e,"YAML directive accepts exactly one argument");const s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===s&&O(e,"ill-formed argument of the YAML directive");const n=parseInt(s[1],10),i=parseInt(s[2],10);1!==n&&O(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&P(e,"unsupported YAML version of the document")},TAG:function(e,t,r){let s;2!==r.length&&O(e,"TAG directive accepts exactly two arguments");const i=r[0];s=r[1],a.test(i)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),n.call(e.tagMap,i)&&O(e,'there is a previously declared suffix for "'+i+'" tag handle'),l.test(s)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){O(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function C(e,t,r,s){if(t<r){const n=e.input.slice(t,r);if(s)for(let t=0,r=n.length;t<r;t+=1){const r=n.charCodeAt(t);9===r||r>=32&&r<=1114111||O(e,"expected valid JSON character")}else i.test(n)&&O(e,"the stream contains non-printable characters");e.result+=n}}function F(t,r,s,i){e.isObject(s)||O(t,"cannot merge mappings; the provided source object is unacceptable");const o=Object.keys(s);for(let e=0,c=o.length;e<c;e+=1){const c=o[e];-1!==t.maxTotalMergeKeys&&++t.totalMergeKeys>t.maxTotalMergeKeys&&O(t,"merge keys exceeded maxTotalMergeKeys ("+t.maxTotalMergeKeys+")"),n.call(r,c)||(x(r,c,s[c]),i[c]=!0)}}function M(e,t,r,s,i,o,c,a,l){if(Array.isArray(i))for(let t=0,r=(i=Array.prototype.slice.call(i)).length;t<r;t+=1)Array.isArray(i[t])&&O(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===u(i[t])&&(i[t]="[object Object]");if("object"==typeof i&&"[object Object]"===u(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(o))for(let s=0,n=o.length;s<n;s+=1)F(e,t,o[s],r);else F(e,t,o,r);else e.json||n.call(r,i)||!n.call(t,i)||(e.line=c||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,O(e,"duplicated mapping key")),x(t,i,o),delete r[i];return t}function I(e){const t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):O(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function R(e,t,r){let s=0,n=e.input.charCodeAt(e.position);for(;0!==n;){for(;h(n);)9===n&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!p(n))break;for(I(e),n=e.input.charCodeAt(e.position),s++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==s&&e.lineIndent<r&&P(e,"deficient indentation"),s}function D(e){let t=e.position,r=e.input.charCodeAt(t);return!(45!==r&&46!==r||r!==e.input.charCodeAt(t+1)||r!==e.input.charCodeAt(t+2)||(t+=3,r=e.input.charCodeAt(t),0!==r&&!d(r)))}function _(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function N(e,t){const r=e.tag,s=e.anchor,n=[];let i=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&$(e,e.anchor,n);let o=e.input.charCodeAt(e.position);for(;0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,O(e,"tab characters must not be used in indentation")),45===o);){if(!d(e.input.charCodeAt(e.position+1)))break;if(i=!0,e.position++,R(e,!0,-1)&&e.lineIndent<=t){n.push(null),o=e.input.charCodeAt(e.position);continue}const r=e.line;if(H(e,t,3,!1,!0),n.push(e.result),R(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==o)O(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!i&&(e.tag=r,e.anchor=s,e.kind="sequence",e.result=n,!0)}function q(e,t,r){let s,n,i,o;const c=e.tag,a=e.anchor,l={},u=Object.create(null);let p=null,m=null,f=null,y=!1,v=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&$(e,e.anchor,l);let g=e.input.charCodeAt(e.position);for(;0!==g;){y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,O(e,"tab characters must not be used in indentation"));const b=e.input.charCodeAt(e.position+1),x=e.line;if(63!==g&&58!==g||!d(b)){if(n=e.line,i=e.lineStart,o=e.position,!H(e,r,2,!1,!0))break;if(e.line===x){for(g=e.input.charCodeAt(e.position);h(g);)g=e.input.charCodeAt(++e.position);if(58===g)g=e.input.charCodeAt(++e.position),d(g)||O(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(M(e,l,u,p,m,null,n,i,o),p=m=f=null),v=!0,y=!1,s=!1,p=e.tag,m=e.result;else{if(!v)return e.tag=c,e.anchor=a,!0;O(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=c,e.anchor=a,!0;O(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===g?(y&&(M(e,l,u,p,m,null,n,i,o),p=m=f=null),v=!0,y=!0,s=!0):y?(y=!1,s=!0):O(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=b;if((e.line===x||e.lineIndent>t)&&(y&&(n=e.line,i=e.lineStart,o=e.position),H(e,t,4,!0,s)&&(y?m=e.result:f=e.result),y||(M(e,l,u,p,m,f,n,i,o),p=m=f=null),R(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===x||e.lineIndent>t)&&0!==g)O(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&M(e,l,u,p,m,null,n,i,o),v&&(e.tag=c,e.anchor=a,e.kind="mapping",e.result=l),v}function U(e){let t,r,s=!1,i=!1,o=e.input.charCodeAt(e.position);if(33!==o)return!1;null!==e.tag&&O(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),60===o?(s=!0,o=e.input.charCodeAt(++e.position)):33===o?(i=!0,t="!!",o=e.input.charCodeAt(++e.position)):t="!";let u=e.position;if(s){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):O(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!d(o);)33===o&&(i?O(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(u-1,e.position+1),a.test(t)||O(e,"named tag handle cannot contain such characters"),i=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(u,e.position),c.test(r)&&O(e,"tag suffix cannot contain flow indicator characters")}r&&!l.test(r)&&O(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){O(e,"tag name is malformed: "+r)}return s?e.tag=r:n.call(e.tagMap,t)?e.tag=e.tagMap[t]+r:"!"===t?e.tag="!"+r:"!!"===t?e.tag="tag:yaml.org,2002:"+r:O(e,'undeclared tag handle "'+t+'"'),!0}function V(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&O(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);const r=e.position;for(;0!==t&&!d(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&O(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function J(e,t,r,s){const i=A(e);return function(e){e.anchorMapTransactions.push(Object.create(null))}(e),k(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,q(e,r,s)&&"mapping"===e.kind?(function(e){const t=e.anchorMapTransactions.pop(),r=e.anchorMapTransactions;if(0===r.length)return;const s=r[r.length-1],i=Object.keys(t);for(let e=0,r=i.length;e<r;e+=1){const r=i[e];n.call(s,r)||(s[r]=t[r])}}(e),!0):(function(e){const t=e.anchorMapTransactions.pop(),r=Object.keys(t);for(let s=r.length-1;s>=0;s-=1){const n=t[r[s]];n.existed?e.anchorMap[r[s]]=n.value:delete e.anchorMap[r[s]]}}(e),k(e,i),!1)}function H(t,r,s,i,o){let c,a,l,u,g,x=1,j=!1,S=!1,P=null;t.depth>=t.maxDepth&&O(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;const k=c=a=4===s||3===s;if(i&&R(t,!0,-1)&&(j=!0,t.lineIndent>r?x=1:t.lineIndent===r?x=0:t.lineIndent<r&&(x=-1)),1===x)for(;;){const e=t.input.charCodeAt(t.position),s=A(t);if(j&&(33===e&&null!==t.tag||38===e&&null!==t.anchor))break;if(!U(t)&&!V(t))break;null===P&&(P=s),R(t,!0,-1)?(j=!0,a=k,t.lineIndent>r?x=1:t.lineIndent===r?x=0:t.lineIndent<r&&(x=-1)):a=!1}if(a&&(a=j||o),1===x||4===s)if(u=1===s||2===s?r:r+1,g=t.position-t.lineStart,1===x)if(a&&(N(t,g)||q(t,g,u))||function(e,t){let r,s,n,i=!0;const o=e.tag;let c;const a=e.anchor;let l,u,p,h;const m=Object.create(null);let f,y,v,g=e.input.charCodeAt(e.position);if(91===g)l=93,h=!1,c=[];else{if(123!==g)return!1;l=125,h=!0,c={}}for(null!==e.anchor&&$(e,e.anchor,c),g=e.input.charCodeAt(++e.position);0!==g;){if(R(e,!0,t),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=o,e.anchor=a,e.kind=h?"mapping":"sequence",e.result=c,!0;i?44===g&&O(e,"expected the node content, but found ','"):O(e,"missed comma between flow collection entries"),y=f=v=null,u=p=!1,63===g&&d(e.input.charCodeAt(e.position+1))&&(u=p=!0,e.position++,R(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,H(e,t,1,!1,!0),y=e.tag,f=e.result,R(e,!0,t),g=e.input.charCodeAt(e.position),!p&&e.line!==r||58!==g||(u=!0,g=e.input.charCodeAt(++e.position),R(e,!0,t),H(e,t,1,!1,!0),v=e.result),h?M(e,c,m,y,f,v,r,s,n):u?c.push(M(e,null,m,y,f,v,r,s,n)):c.push(f),R(e,!0,t),g=e.input.charCodeAt(e.position),44===g?(i=!0,g=e.input.charCodeAt(++e.position)):i=!1}O(e,"unexpected end of the stream within a flow collection")}(t,u))S=!0;else{const r=t.input.charCodeAt(t.position);null!==P&&k&&!a&&124!==r&&62!==r&&J(t,P,P.position-P.lineStart,u)||c&&function(t,r){let s,n,i=1,o=!1,c=!1,a=r,l=0,u=!1,d=t.input.charCodeAt(t.position);if(124===d)s=!1;else{if(62!==d)return!1;s=!0}for(t.kind="scalar",t.result="";0!==d;)if(d=t.input.charCodeAt(++t.position),43===d||45===d)1===i?i=43===d?3:2:O(t,"repeat of a chomping mode identifier");else{if(!((n=v(d))>=0))break;0===n?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?O(t,"repeat of an indentation width identifier"):(a=r+n-1,c=!0)}if(h(d)){do{d=t.input.charCodeAt(++t.position)}while(h(d));if(35===d)do{d=t.input.charCodeAt(++t.position)}while(!p(d)&&0!==d)}for(;0!==d;){for(I(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!c||t.lineIndent<a)&&32===d;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>a&&(a=t.lineIndent),p(d)){l++;continue}if(c||0!==a||O(t,"missing indentation for block scalar"),t.lineIndent<a){3===i?t.result+=e.repeat("\n",o?1+l:l):1===i&&o&&(t.result+="\n");break}s?h(d)?(u=!0,t.result+=e.repeat("\n",o?1+l:l)):u?(u=!1,t.result+=e.repeat("\n",l+1)):0===l?o&&(t.result+=" "):t.result+=e.repeat("\n",l):t.result+=e.repeat("\n",o?1+l:l),o=!0,c=!0,l=0;const r=t.position;for(;!p(d)&&0!==d;)d=t.input.charCodeAt(++t.position);C(t,r,t.position,!1)}return!0}(t,u)||function(e,t){let r,s,n=e.input.charCodeAt(e.position);if(39!==n)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(C(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;r=e.position,e.position++,s=e.position}else p(n)?(C(e,r,s,!0),_(e,R(e,!1,t)),r=s=e.position):e.position===e.lineStart&&D(e)?O(e,"unexpected end of the document within a single quoted scalar"):(e.position++,h(n)||(s=e.position));O(e,"unexpected end of the stream within a single quoted scalar")}(t,u)||function(e,t){let r,s,n,i=e.input.charCodeAt(e.position);if(34!==i)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(i=e.input.charCodeAt(e.position));){if(34===i)return C(e,r,e.position,!0),e.position++,!0;if(92===i){if(C(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),p(i))R(e,!1,t);else if(i<256&&E[i])e.result+=w[i],e.position++;else if((n=y(i))>0){let t=n,r=0;for(;t>0;t--)i=e.input.charCodeAt(++e.position),(n=f(i))>=0?r=(r<<4)+n:O(e,"expected hexadecimal character");e.result+=b(r),e.position++}else O(e,"unknown escape sequence");r=s=e.position}else p(i)?(C(e,r,s,!0),_(e,R(e,!1,t)),r=s=e.position):e.position===e.lineStart&&D(e)?O(e,"unexpected end of the document within a double quoted scalar"):(e.position++,h(i)||(s=e.position))}O(e,"unexpected end of the stream within a double quoted scalar")}(t,u)?S=!0:!function(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);const r=e.position;for(;0!==t&&!d(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===r&&O(e,"name of an alias node must contain at least one character");const s=e.input.slice(r,e.position);return n.call(e.anchorMap,s)||O(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],R(e,!0,-1),!0}(t)?function(e,t,r){let s,n,i,o,c,a;const l=e.kind,u=e.result;let f=e.input.charCodeAt(e.position);if(d(f)||m(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if(63===f||45===f){const t=e.input.charCodeAt(e.position+1);if(d(t)||r&&m(t))return!1}for(e.kind="scalar",e.result="",s=n=e.position,i=!1;0!==f;){if(58===f){const t=e.input.charCodeAt(e.position+1);if(d(t)||r&&m(t))break}else if(35===f){if(d(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&D(e)||r&&m(f))break;if(p(f)){if(o=e.line,c=e.lineStart,a=e.lineIndent,R(e,!1,-1),e.lineIndent>=t){i=!0,f=e.input.charCodeAt(e.position);continue}e.position=n,e.line=o,e.lineStart=c,e.lineIndent=a;break}}i&&(C(e,s,n,!1),_(e,e.line-o),s=n=e.position,i=!1),h(f)||(n=e.position+1),f=e.input.charCodeAt(++e.position)}return C(e,s,n,!1),!!e.result||(e.kind=l,e.result=u,!1)}(t,u,1===s)&&(S=!0,null===t.tag&&(t.tag="?")):(S=!0,null===t.tag&&null===t.anchor||O(t,"alias node should not have any properties")),null!==t.anchor&&$(t,t.anchor,t.result)}else 0===x&&(S=a&&N(t,g));if(null===t.tag)null!==t.anchor&&$(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e<r;e+=1)if(l=t.implicitTypes[e],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&$(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(n.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;const e=t.typeMap.multi[t.kind||"fallback"];for(let r=0,s=e.length;r<s;r+=1)if(t.tag.slice(0,e[r].tag.length)===e[r].tag){l=e[r];break}}l||O(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&$(t,t.anchor,t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||S}function z(e){const t=e.position;let r,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(R(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){s=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;0!==r&&!d(r);)r=e.input.charCodeAt(++e.position);const i=e.input.slice(t,e.position),o=[];for(i.length<1&&O(e,"directive name must not be less than one character in length");0!==r;){for(;h(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!p(r));break}if(p(r))break;for(t=e.position;0!==r&&!d(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&I(e),n.call(T,i)?T[i](e,i,o):P(e,'unknown document directive "'+i+'"')}R(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,R(e,!0,-1)):s&&O(e,"directives end mark is expected"),H(e,e.lineIndent-1,4,!1,!0),R(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&P(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&D(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,R(e,!0,-1)):e.position<e.length-1&&O(e,"end of the stream or a document separator is expected")}function G(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));const r=new j(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,O(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)z(r);return r.documents}return $e.loadAll=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);const s=G(e,r);if("function"!=typeof t)return s;for(let e=0,r=s.length;e<r;e+=1)t(s[e])},$e.load=function(e,r){const s=G(e,r);if(0!==s.length){if(1===s.length)return s[0];throw new t("expected a single document in the stream, but found more")}},$e}var Xe,Qe,Ze={};function et(){if(Xe)return Ze;Xe=1;const e=ke(),t=Te(),r=Ke(),s=Object.prototype.toString,n=Object.prototype.hasOwnProperty,i=65279,o={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},c=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],a=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(r){let s,n;const i=r.toString(16).toUpperCase();if(r<=255)s="x",n=2;else if(r<=65535)s="u",n=4;else{if(!(r<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");s="U",n=8}return"\\"+s+e.repeat("0",n-i.length)+i}function u(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){if(null===t)return{};const r={},s=Object.keys(t);for(let i=0,o=s.length;i<o;i+=1){let o=s[i],c=String(t[o]);"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2));const a=e.compiledTypeMap.fallback[o];a&&n.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[o]=c}return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function p(t,r){const s=e.repeat(" ",r);let n=0,i="";const o=t.length;for(;n<o;){let e;const r=t.indexOf("\n",n);-1===r?(e=t.slice(n),n=o):(e=t.slice(n,r+1),n=r+1),e.length&&"\n"!==e&&(i+=s),i+=e}return i}function h(t,r){return"\n"+e.repeat(" ",t.indent*r)}function d(e){return 32===e||9===e}function m(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==i||e>=65536&&e<=1114111}function f(e){return m(e)&&e!==i&&13!==e&&10!==e}function y(e,t,r){const s=f(e),n=s&&!d(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||f(t)&&!d(t)&&35===e||58===t&&n}function v(e,t){const r=e.charCodeAt(t);let s;return r>=55296&&r<=56319&&t+1<e.length&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?1024*(r-55296)+s-56320+65536:r}function g(e){return/^\n* /.test(e)}function b(e,t,r,s,n,o,c,a){let l,u=0,p=null,h=!1,f=!1;const b=-1!==s;let x=-1,E=m(w=v(e,0))&&w!==i&&!d(w)&&45!==w&&63!==w&&58!==w&&44!==w&&91!==w&&93!==w&&123!==w&&125!==w&&35!==w&&38!==w&&42!==w&&33!==w&&124!==w&&61!==w&&62!==w&&39!==w&&34!==w&&37!==w&&64!==w&&96!==w&&function(e){return!d(e)&&58!==e}(v(e,e.length-1));var w;if(t||c)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=v(e,l),!m(u))return 5;E=E&&y(u,p,a),p=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=v(e,l),10===u)h=!0,b&&(f=f||l-x-1>s&&" "!==e[x+1],x=l);else if(!m(u))return 5;E=E&&y(u,p,a),p=u}f=f||b&&l-x-1>s&&" "!==e[x+1]}return h||f?r>9&&g(e)?5:c?2===o?5:2:f?4:3:!E||c||n(e)?2===o?5:2:1}function x(e,r,s,n,i){e.dump=function(){if(0===r.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==c.indexOf(r)||a.test(r)))return 2===e.quotingType?'"'+r+'"':"'"+r+"'";const u=e.indent*Math.max(1,s),h=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),d=n||e.flowLevel>-1&&s>=e.flowLevel;switch(b(r,d,e.indent,h,function(t){return function(e,t){for(let r=0,s=e.implicitTypes.length;r<s;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!n,i)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+E(r,e.indent)+w(p(r,u));case 4:return">"+E(r,e.indent)+w(p(function(e,t){const r=/(\n+)([^\n]*)/g;let s,n,i=function(){let s=e.indexOf("\n");return s=-1!==s?s:e.length,r.lastIndex=s,j(e.slice(0,s),t)}(),o="\n"===e[0]||" "===e[0];for(;n=r.exec(e);){const e=n[1],r=n[2];s=" "===r[0],i+=e+(o||s||""===r?"":"\n")+j(r,t),o=s}return i}(r,h),u));case 5:return'"'+function(e){let t="",r=0;for(let s=0;s<e.length;r>=65536?s+=2:s++){r=v(e,s);const n=o[r];!n&&m(r)?(t+=e[s],r>=65536&&(t+=e[s+1])):t+=n||l(r)}return t}(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function E(e,t){const r=g(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function w(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function j(e,t){if(""===e||" "===e[0])return e;const r=/ [^ ]/g;let s,n,i=0,o=0,c=0,a="";for(;s=r.exec(e);)c=s.index,c-i>t&&(n=o>i?o:c,a+="\n"+e.slice(i,n),i=n+1),o=c;return a+="\n",e.length-i>t&&o>i?a+=e.slice(i,o)+"\n"+e.slice(o+1):a+=e.slice(i),a.slice(1)}function S(e,t,r,s){let n="";const i=e.tag;for(let i=0,o=r.length;i<o;i+=1){let o=r[i];e.replacer&&(o=e.replacer.call(r,String(i),o)),(P(e,t+1,o,!0,!0,!1,!0)||void 0===o&&P(e,t+1,null,!0,!0,!1,!0))&&(s&&""===n||(n+=h(e,t)),e.dump&&10===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump)}e.tag=i,e.dump=n||"[]"}function O(e,r,i){const o=i?e.explicitTypes:e.implicitTypes;for(let c=0,a=o.length;c<a;c+=1){const a=o[c];if((a.instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof r&&r instanceof a.instanceOf)&&(!a.predicate||a.predicate(r))){if(i?a.multi&&a.representName?e.tag=a.representName(r):e.tag=a.tag:e.tag="?",a.represent){const i=e.styleMap[a.tag]||a.defaultStyle;let o;if("[object Function]"===s.call(a.represent))o=a.represent(r,i);else{if(!n.call(a.represent,i))throw new t("!<"+a.tag+'> tag resolver accepts not "'+i+'" style');o=a.represent[i](r,i)}e.dump=o}return!0}}return!1}function P(e,r,n,i,o,c,a){e.tag=null,e.dump=n,O(e,n,!1)||O(e,n,!0);const l=s.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>r);const p="[object Object]"===l||"[object Array]"===l;let d,m;if(p&&(d=e.duplicates.indexOf(n),m=-1!==d),(null!==e.tag&&"?"!==e.tag||m||2!==e.indent&&r>0)&&(o=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(p&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),"[object Object]"===l)i&&0!==Object.keys(e.dump).length?(!function(e,r,s,n){let i="";const o=e.tag,c=Object.keys(s);if(!0===e.sortKeys)c.sort();else if("function"==typeof e.sortKeys)c.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let t=0,o=c.length;t<o;t+=1){let o="";n&&""===i||(o+=h(e,r));const a=c[t];let l=s[a];if(e.replacer&&(l=e.replacer.call(s,a,l)),!P(e,r+1,a,!0,!0,!0))continue;const u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;u&&(e.dump&&10===e.dump.charCodeAt(0)?o+="?":o+="? "),o+=e.dump,u&&(o+=h(e,r)),P(e,r+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?o+=":":o+=": ",o+=e.dump,i+=o)}e.tag=o,e.dump=i||"{}"}(e,r,e.dump,o),m&&(e.dump="&ref_"+d+e.dump)):(!function(e,t,r){let s="";const n=e.tag,i=Object.keys(r);for(let n=0,o=i.length;n<o;n+=1){let o="";""!==s&&(o+=", "),e.condenseFlow&&(o+='"');const c=i[n];let a=r[c];e.replacer&&(a=e.replacer.call(r,c,a)),P(e,t,c,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),P(e,t,a,!1,!1)&&(o+=e.dump,s+=o))}e.tag=n,e.dump="{"+s+"}"}(e,r,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if("[object Array]"===l)i&&0!==e.dump.length?(e.noArrayIndent&&!a&&r>0?S(e,r-1,e.dump,o):S(e,r,e.dump,o),m&&(e.dump="&ref_"+d+e.dump)):(!function(e,t,r){let s="";const n=e.tag;for(let n=0,i=r.length;n<i;n+=1){let i=r[n];e.replacer&&(i=e.replacer.call(r,String(n),i)),(P(e,t,i,!1,!1)||void 0===i&&P(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump)}e.tag=n,e.dump="["+s+"]"}(e,r,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&x(e,e.dump,r,c,u)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}function $(e,t){const r=[],s=[];A(e,r,s);const n=s.length;for(let e=0;e<n;e+=1)t.duplicates.push(r[s[e]]);t.usedDuplicates=new Array(n)}function A(e,t,r){if(null!==e&&"object"==typeof e){const s=t.indexOf(e);if(-1!==s)-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(let s=0,n=e.length;s<n;s+=1)A(e[s],t,r);else{const s=Object.keys(e);for(let n=0,i=s.length;n<i;n+=1)A(e[s[n]],t,r)}}}return Ze.dump=function(e,t){const r=new u(t=t||{});r.noRefs||$(e,r);let s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),P(r,0,s,!0,!0)?r.dump+"\n":""},Ze}var tt=function(){if(Qe)return Pe;Qe=1;const e=Ye(),t=et();function r(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return Pe.Type=Ce(),Pe.Schema=Fe(),Pe.FAILSAFE_SCHEMA=De(),Pe.JSON_SCHEMA=qe(),Pe.CORE_SCHEMA=Ue(),Pe.DEFAULT_SCHEMA=Ke(),Pe.load=e.load,Pe.loadAll=e.loadAll,Pe.dump=t.dump,Pe.YAMLException=Te(),Pe.types={binary:He(),float:Be(),map:Re(),null:_e(),pairs:Ge(),set:We(),timestamp:Ve(),bool:Ne(),int:Le(),merge:Je(),omap:ze(),seq:Ie(),str:Me()},Pe.safeLoad=r("safeLoad","load"),Pe.safeLoadAll=r("safeLoadAll","loadAll"),Pe.safeDump=r("safeDump","dump"),Pe}();const rt=R(tt),{Type:st,Schema:nt,FAILSAFE_SCHEMA:it,JSON_SCHEMA:ot,CORE_SCHEMA:ct,DEFAULT_SCHEMA:at,load:lt,loadAll:ut,dump:pt,YAMLException:ht,types:dt,safeLoad:mt,safeLoadAll:ft,safeDump:yt}=rt;function vt(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce((e,[t,r])=>(e[t]=function(e){return I()(e).call(e,", ")?e.split(", "):e}(r),e),{})}function gt(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:vt(e.headers)},n=s.headers["content-type"],i=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(n);return(i?e.text:e.blob||e.buffer).call(e).then(e=>{if(s.text=e,s.data=e,i)try{const t=function(e,t){if(t){if(0===t.indexOf("application/json")||t.indexOf("+json")>0)return JSON.parse(e);if(0===t.indexOf("application/xml")||t.indexOf("+xml")>0)return e}return rt.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s})}async function bt(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=F(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 s;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{s=await(t.userFetch||fetch)(t.url,t),s=await gt(s,e,t),t.responseInterceptor&&(s=await t.responseInterceptor(s)||s)}catch(e){if(!s)throw e;const t=new Error(s.statusText||`response status is ${s.status}`);throw t.status=s.status,t.statusCode=s.status,t.responseError=e,t}if(!s.ok){const e=new Error(s.statusText||`response status is ${s.status}`);throw e.status=s.status,e.statusCode=s.status,e.response=s,e}return s}function xt(e,t={}){const{requestInterceptor:r,responseInterceptor:s}=t,n=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:s,headers:{Accept:f},credentials:n}).then(e=>e.body)}const Et=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},wt=e=>{const{fetch:t,http:r}=e;return t||r||bt};var jt,St=(jt=function(e,t){return jt=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])},jt(e,t)},function(e,t){function r(){this.constructor=e}jt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Ot=Object.prototype.hasOwnProperty;function Pt(e,t){return Ot.call(e,t)}function $t(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var s=[];for(var n in e)Pt(e,n)&&s.push(n);return s}function At(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function kt(e){for(var t,r=0,s=e.length;r<s;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Tt(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ct(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ft(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Ft(e[t]))return!0}else if("object"==typeof e)for(var s=$t(e),n=s.length,i=0;i<n;i++)if(Ft(e[s[i]]))return!0;return!1}function Mt(e,t){var r=[e];for(var s in t){var n="object"==typeof t[s]?JSON.stringify(t[s],null,2):t[s];void 0!==n&&r.push(s+": "+n)}return r.join("\n")}var It=function(e){function t(t,r,s,n,i){var o=this.constructor,c=e.call(this,Mt(t,{name:r,index:s,operation:n,tree:i}))||this;return c.name=r,c.index=s,c.operation=n,c.tree=i,Object.setPrototypeOf(c,o.prototype),c.message=Mt(t,{name:r,index:s,operation:n,tree:i}),c}return St(t,e),t}(Error),Rt=It,Dt=At,_t={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var s=e[t];return delete e[t],{newDocument:r,removed:s}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:function(e,t,r){var s=Lt(r,this.path);s&&(s=At(s));var n=Bt(r,{op:"remove",path:this.from}).removed;return Bt(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=Lt(r,this.from);return Bt(r,{op:"add",path:this.path,value:At(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Ht(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Nt={add:function(e,t,r){return kt(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:_t.move,copy:_t.copy,test:_t.test,_get:_t._get};function Lt(e,t){if(""==t)return e;var r={op:"_get",path:t};return Bt(e,r),r.value}function Bt(e,t,r,s,n,i){if(void 0===r&&(r=!1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):Vt(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=Lt(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=Ht(e,t.value),!1===o.test)throw new Rt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Rt("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=At(e));var c=(t.path||"").split("/"),a=e,l=1,u=c.length,p=void 0,h=void 0,d=void 0;for(d="function"==typeof r?r:Vt;;){if((h=c[l])&&-1!=h.indexOf("~")&&(h=Ct(h)),n&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==c[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===a[h]?p=c.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&d(t,0,e,p)),l++,Array.isArray(a)){if("-"===h)h=a.length;else{if(r&&!kt(h))throw new Rt("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);kt(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>a.length)throw new Rt("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=Nt[t.op].call(t,a,h,e)).test)throw new Rt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=_t[t.op].call(t,a,h,e)).test)throw new Rt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(a=a[h],r&&l<u&&(!a||"object"!=typeof a))throw new Rt("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function qt(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new Rt("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=At(e));for(var i=new Array(t.length),o=0,c=t.length;o<c;o++)i[o]=Bt(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function Ut(e,t,r){var s=Bt(e,t);if(!1===s.test)throw new Rt("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function Vt(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new Rt("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!_t[e.op])throw new Rt("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Rt("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Rt('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 Rt("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 Rt("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)&&Ft(e.value))throw new Rt("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 n=e.path.split("/").length,i=s.split("/").length;if(n!==i+1&&n!==i)throw new Rt("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!==s)throw new Rt("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=Jt([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Rt("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Jt(e,t,r){try{if(!Array.isArray(e))throw new Rt("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)qt(At(t),At(e),r||!0);else{r=r||Vt;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof Rt)return e;throw e}}function Ht(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,n,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!==r--;)if(!Ht(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var c=Object.keys(e);if((s=c.length)!==Object.keys(t).length)return!1;for(r=s;0!==r--;)if(!t.hasOwnProperty(c[r]))return!1;for(r=s;0!==r--;)if(!Ht(e[n=c[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var zt=new WeakMap,Gt=function(e){this.observers=new Map,this.obj=e},Wt=function(e,t){this.callback=e,this.observer=t};function Kt(e,t){t.unobserve()}function Yt(e,t){var r,s=function(e){return zt.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new Gt(e),zt.set(e,s);if(r)return r;if(r={},s.value=At(e),t){r.callback=t,r.next=null;var i=function(){Xt(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){Xt(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(s,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(t,new Wt(t,r)),r}function Xt(e,t){void 0===t&&(t=!1);var r=zt.get(e.object);Qt(r.value,e.object,e.patches,"",t),e.patches.length&&qt(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function Qt(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=$t(t),o=$t(e),c=!1,a=o.length-1;a>=0;a--){var l=e[p=o[a]];if(!Pt(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:s+"/"+Tt(p),value:At(l)}),r.push({op:"remove",path:s+"/"+Tt(p)}),c=!0):(n&&r.push({op:"test",path:s,value:e}),r.push({op:"replace",path:s,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?Qt(l,u,r,s+"/"+Tt(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+Tt(p),value:At(l)}),r.push({op:"replace",path:s+"/"+Tt(p),value:At(u)}))}}if(c||i.length!=o.length)for(a=0;a<i.length;a++){var p;Pt(e,p=i[a])||void 0===t[p]||r.push({op:"add",path:s+"/"+Tt(p),value:At(t[p])})}}}function Zt(e,t,r){void 0===r&&(r=!1);var s=[];return Qt(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:It,deepClone:At,escapePathComponent:Tt,unescapePathComponent:Ct});var er=r(4744),tr=r.n(er);const rr={add:function(e,t){return{op:"add",path:e,value:t}},replace:nr,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce((e,t)=>void 0!==t&&e?e[t]:e,e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&sr(t.path)}).op){const r=vr(e,t.path);Object.assign(r,t.value),qt(e,[nr(t.path,r)])}else if("mergeDeep"===t.op){const r=vr(e,t.path),s=tr()(r,t.value,{customMerge:e=>{if("enum"===e)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:tr()(e,t)}});e=qt(e,[nr(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&pr(t.value)){qt(e,Object.keys(t.value).reduce((e,r)=>(e.push({op:"add",path:`/${sr(r)}`,value:t.value[r]}),e),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&fr(t)&&(Array.isArray(t.value)||pr(t.value))&&(s={...s,...t.meta}),e=s}else if(qt(e,[t]),r.allowMetaPatches&&t.meta&&fr(t)&&(Array.isArray(t.value)||pr(t.value))){const r={...vr(e,t.path),...t.meta};qt(e,[nr(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,s=t.length;r<s;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:lr,fullyNormalizeArray:function(e){return ur(lr(ar(e)))},normalizeArray:ar,isPromise:function(e){return pr(e)&&hr(e.then)},forEachNew:function(e,t){try{return ir(e,cr,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return ir(e,or,t)}catch(e){return e}},isJsonPatch:dr,isContextPatch:function(e){return yr(e)&&"context"===e.type},isPatch:yr,isMutation:mr,isAdditiveMutation:fr,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:hr,isObject:pr,isError:function(e){return e instanceof Error}};function sr(e){return Array.isArray(e)?e.length<1?"":`/${e.map(e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function nr(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function ir(e,t,r){return ur(lr(e.filter(fr).map(e=>t(e.value,r,e.path))||[]))}function or(e,t,r){return r=r||[],Array.isArray(e)?e.map((e,s)=>or(e,t,r.concat(s))):pr(e)?Object.keys(e).map(s=>or(e[s],t,r.concat(s))):t(e,r[r.length-1],r)}function cr(e,t,r){let s=[];if((r=r||[]).length>0){const n=t(e,r[r.length-1],r);n&&(s=s.concat(n))}if(Array.isArray(e)){const n=e.map((e,s)=>cr(e,t,r.concat(s)));n&&(s=s.concat(n))}else if(pr(e)){const n=Object.keys(e).map(s=>cr(e[s],t,r.concat(s)));n&&(s=s.concat(n))}return s=lr(s),s}function ar(e){return Array.isArray(e)?e:[e]}function lr(e){return[].concat(...e.map(e=>Array.isArray(e)?lr(e):e))}function ur(e){return e.filter(e=>void 0!==e)}function pr(e){return e&&"object"==typeof e}function hr(e){return e&&"function"==typeof e}function dr(e){if(yr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function mr(e){return dr(e)||yr(e)&&"mutation"===e.type}function fr(e){return mr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function yr(e){return e&&"object"==typeof e}function vr(e,t){try{return Lt(e,t)}catch(e){return console.error(e),{}}}var gr=r(8675);const br=class extends gr{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 xr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(br,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 Er=xr;const wr=class extends Er{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};function jr(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,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,c,a,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Sr(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Or(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Pr(e){return function t(r){return 0===arguments.length||Or(r)?t:e.apply(this,arguments)}}function $r(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return Or(r)?t:Pr(function(t){return e(r,t)});default:return Or(r)&&Or(s)?t:Or(r)?Pr(function(t){return e(t,s)}):Or(s)?Pr(function(t){return e(r,t)}):e(r,s)}}}function Ar(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return Or(r)?t:$r(function(t,s){return e(r,t,s)});case 2:return Or(r)&&Or(s)?t:Or(r)?$r(function(t,r){return e(t,s,r)}):Or(s)?$r(function(t,s){return e(r,t,s)}):Pr(function(t){return e(r,s,t)});default:return Or(r)&&Or(s)&&Or(n)?t:Or(r)&&Or(s)?$r(function(t,r){return e(t,r,n)}):Or(r)&&Or(n)?$r(function(t,r){return e(t,s,r)}):Or(s)&&Or(n)?$r(function(t,s){return e(r,t,s)}):Or(r)?Pr(function(t){return e(t,s,n)}):Or(s)?Pr(function(t){return e(r,t,n)}):Or(n)?Pr(function(t){return e(r,s,t)}):e(r,s,n)}}}const kr=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Tr(e){return"[object String]"===Object.prototype.toString.call(e)}const Cr=Pr(function(e){return!!kr(e)||!!e&&("object"==typeof e&&(!Tr(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Fr="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Mr(e,t,r){return function(s,n,i){if(Cr(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[Fr])return r(s,n,i[Fr]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ir(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const Rr=$r(function(e,t){return jr(e.length,function(){return e.apply(t,arguments)})});function Dr(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function _r(e,t,r,s){return e["@@transducer/result"](r[s](Rr(e["@@transducer/step"],e),t))}const Nr=Mr(Ir,_r,Dr);var Lr=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function Br(e){return new Lr(e)}const qr=Ar(function(e,t,r){return Nr("function"==typeof e?Br(e):e,t,r)});function Ur(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return kr(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const Vr=Ar(Ur("slice",function(e,t,r){return Array.prototype.slice.call(r,e,t)}));const Jr=Pr(Ur("tail",Vr(1,1/0)));function Hr(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return jr(arguments[0].length,qr(Sr,arguments[0],Jr(arguments)))}const zr=$r(function(e,t){return null==t||t!=t?e:t}),Gr=Number.isInteger||function(e){return(e|0)===e};function Wr(e,t){var r=e<0?t.length+e:e;return Tr(t)?t.charAt(r):t[r]}const Kr=$r(function(e,t){if(null!=t)return Gr(e)?Wr(e,t):t[e]});const Yr=Ar(function(e,t,r){return zr(e,Kr(t,r))});const Xr=Pr(function(e){return Wr(-1,e)});function Qr(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,c=!1;o<t.length||n<arguments.length;){var a;o<t.length&&(!Or(t[o])||n>=arguments.length)?a=t[o]:(a=arguments[n],n+=1),s[o]=a,Or(a)?c=!0:i-=1,o+=1}return!c&&i<=0?r.apply(this,s):jr(Math.max(0,i),Qr(e,s,r))}}const Zr=$r(function(e,t){return 1===e?Pr(t):jr(e,Qr(e,[],t))});const es=Pr(function(e){return Zr(e.length,e)});function ts(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function rs(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ss(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function ns(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const is="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var os=Object.prototype.toString;const cs=function(){return"[object Arguments]"===os.call(arguments)?function(e){return"[object Arguments]"===os.call(e)}:function(e){return ns("callee",e)}}();var as=!{toString:null}.propertyIsEnumerable("toString"),ls=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],us=function(){return arguments.propertyIsEnumerable("length")}(),ps=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},hs="function"!=typeof Object.keys||us?Pr(function(e){if(Object(e)!==e)return[];var t,r,s=[],n=us&&cs(e);for(t in e)!ns(t,e)||n&&"length"===t||(s[s.length]=t);if(as)for(r=ls.length-1;r>=0;)ns(t=ls[r],e)&&!ps(s,t)&&(s[s.length]=t),r-=1;return s}):Pr(function(e){return Object(e)!==e?[]:Object.keys(e)});const ds=hs;const ms=Pr(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function fs(e,t,r,s){var n=rs(e);function i(e,t){return ys(e,t,r.slice(),s.slice())}return!ss(function(e,t){return!ss(i,t,e)},rs(t),n)}function ys(e,t,r,s){if(is(e,t))return!0;var n,i,o=ms(e);if(o!==ms(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"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!is(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!is(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 c=r.length-1;c>=0;){if(r[c]===e)return s[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&fs(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&fs(e.values(),t.values(),r.concat([e]),s.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 a=ds(e);if(a.length!==ds(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!ns(p,t)||!ys(t[p],e[p],l,u))return!1;c-=1}return!0}const vs=$r(function(e,t){return ys(e,t,[],[])});function gs(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(vs(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function bs(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function xs(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Es=function(e){return(e<10?"0":"")+e};const ws="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Es(e.getUTCMonth()+1)+"-"+Es(e.getUTCDate())+"T"+Es(e.getUTCHours())+":"+Es(e.getUTCMinutes())+":"+Es(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function js(e){return function(){return!e.apply(this,arguments)}}function Ss(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function Os(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!kr(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function Ps(e){return"[object Object]"===Object.prototype.toString.call(e)}const $s=function(){return this.xf["@@transducer/init"]()},As=function(e){return this.xf["@@transducer/result"](e)};var ks=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=$s,e.prototype["@@transducer/result"]=As,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ts(e){return function(t){return new ks(e,t)}}const Cs=$r(Os(["fantasy-land/filter","filter"],Ts,function(e,t){return Ps(t)?Ss(function(r,s){return e(t[s])&&(r[s]=t[s]),r},{},ds(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)}));const Fs=$r(function(e,t){return Cs(js(e),t)});function Ms(e,t){var r=function(r){var s=t.concat([e]);return gs(r,s)?"<Circular>":Ms(r,s)},s=function(e,t){return bs(function(t){return xs(t)+": "+r(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+bs(r,e).join(", ")+"))";case"[object Array]":return"["+bs(r,e).concat(s(e,Fs(function(e){return/^\d+$/.test(e)},ds(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):xs(ws(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())+")":xs(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,ds(e)).join(", ")+"}"}}const Is=Pr(function(e){return Ms(e,[])});const Rs=$r(function(e,t){return Zr(e+1,function(){var r=arguments[e];if(null!=r&&ts(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Is(r)+' does not have a method named "'+t+'"')})});const Ds=Rs(1,"split");function _s(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Vr(0,r+1,t)}var Ns=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=$s,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=Nr(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 Ls(e){return function(t){return new Ns(e,t)}}const Bs=$r(Os([],Ls,_s));const qs=Rs(1,"join");const Us=Pr(function(e){return Zr(e.length,function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)})})($r(gs));const Vs=es(function(e,t){return Hr(Ds(""),Bs(Us(e)),qs(""))(t)});function Js(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function Hs(e,t,r,s){return r[s](e,t)}const zs=Mr(Ss,Hs,Js);var Gs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=$s,e.prototype["@@transducer/result"]=As,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ws=$r(Os(["fantasy-land/map","map"],function(e){return function(t){return new Gs(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Zr(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Ss(function(r,s){return r[s]=e(t[s]),r},{},ds(t));default:return bs(e,t)}}));const Ks=$r(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))}:zs(function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,Ws(r,t))},[],e)});const Ys=$r(function(e,t){var r=Zr(e,t);return Zr(e,function(){return Ss(Ks,Ws(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const Xs=Pr(function(e){return Ys(e.length,e)});const Qs=Xs(Pr(function(e){return!e}));const Zs=Pr(function(e){return function(){return e}});const en=Zs(void 0);const tn=vs(en());const rn=Qs(tn);const sn=$r(function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Is(e),o=r(i,Is(t));return void 0!==o&&o===i?e:t});const nn=$r(function(e,t){return Ws(Kr(e),t)});const on=Pr(function(e){return Zr(qr(sn,0,nn("length",e)),function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});var cn=function(e,t){switch(arguments.length){case 0:return cn;case 1:return function t(r){return 0===arguments.length?t:is(e,r)};default:return is(e,t)}};const an=cn;const ln=Zr(1,Hr(ms,an("GeneratorFunction")));const un=Zr(1,Hr(ms,an("AsyncFunction")));const pn=on([Hr(ms,an("Function")),ln,un]);var hn=Ar(function(e,t,r){return r.replace(e,t)});const dn=hn;const mn=Zr(1,Hr(ms,an("RegExp")));const fn=Ar(function(e,t,r){return e(r)?t(r):r});const yn=Zr(1,Hr(ms,an("String")));const vn=fn(yn,dn(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var gn=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const bn=function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),gn(r,"str"),gn(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var s=new RegExp(mn(e)?e:vn(e),"g");return dn(s,t,r)};var xn=Zr(3,bn),En=Rs(2,"replaceAll");const wn=pn(String.prototype.replaceAll)?En:xn,jn=()=>{var e,t;return/^win/.test(null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.platform)&&void 0!==e?e:"")},Sn=e=>{try{const t=new URL(e);return Vs(":",t.protocol)}catch{return}},On=(Hr(Sn,rn),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Pn=e=>{if(void 0!==globalThis.window)return!1;const t=Sn(e);return tn(t)||"file"===t||/^[a-zA-Z]$/.test(t)},$n=e=>{const t=Sn(e);return"http"===t||"https"===t},An=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=Yr(!1,"keepFileProtocol",t),n=Yr(jn,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),n()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),s?i=`file:///${i}`:(o=!1,i=n()?i:`/${i}`)),n()&&!o&&(i=wn("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},kn=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Tn=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Cn=()=>{var e,t;if(void 0!==globalThis.window)return Tn(globalThis.location.href);const r=null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.cwd())&&void 0!==e?e:"/",s=Xr(r);return["/","\\"].includes(s)?r:r+(jn()?"\\":"/")},Fn=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:s}=r;return e+t+s}return r.toString()},Mn=e=>{if(Pn(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;jn()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(An(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},In=e=>Pn(e)?An(e):decodeURI(e);function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}function Dn(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function _n(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Nn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,i=[],o=!0,c=!1;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);o=!0);}catch(e){c=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(c)throw n}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rn(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(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ln(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Bn=function(e){throw TypeError(e)},qn=function(e,t,r){return t.has(e)||Bn("Cannot "+r)},Un=function(e,t,r){return qn(e,t,"read from private field"),r?r.call(e):t.get(e)},Vn=function(e,t,r){return t.has(e)?Bn("Cannot add the same private member more than once"):_n(t,WeakSet)?t.add(e):t.set(e,r)},Jn=function(e,t,r,s){return qn(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},Hn=function(e){return Object.prototype.toString.call(e)},zn=function(e){return ArrayBuffer.isView(e)&&!_n(e,DataView)},Gn=Array.isArray,Wn=Object.getOwnPropertyDescriptor,Kn=Object.prototype.propertyIsEnumerable,Yn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty;function Qn(e){for(var t=Object.keys(e),r=Yn(e),s=0;s<r.length;s++)Kn.call(e,r[s])&&t.push(r[s]);return t}function Zn(e,t){var r;return!(null===(r=Wn(e,t))||void 0===r?void 0:r.writable)}function ei(e,t){if("object"===(void 0===e?"undefined":Ln(e))&&null!==e){var r;if(Gn(e))r=[];else if("[object Date]"===Hn(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===Hn(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===Hn(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===Hn(e)}(e)||function(e){return"[object Number]"===Hn(e)}(e)||function(e){return"[object String]"===Hn(e)}(e))r=Object(e);else{if(zn(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?Qn:Object.keys,n=!0,i=!1,o=void 0;try{for(var c,a=s(e)[Symbol.iterator]();!(n=(c=a.next()).done);n=!0){var l=c.value;r[l]=e[l]}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return r}return e}var ti,ri,si={includeSymbols:!1,immutable:!1};function ni(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:si,s=[],n=[],i=!0,o=r.includeSymbols?Qn:Object.keys,c=!!r.immutable;return function e(a){var l=c?ei(a,r):a,u={},p=!0,h={node:l,node_:a,path:[].concat(s),parent:n[n.length-1],parents:n,key:s[s.length-1],isRoot:0===s.length,level:s.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){Gn(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){u.before=e},after:function(e){u.after=e},pre:function(e){u.pre=e},post:function(e){u.post=e},stop:function(){i=!1},block:function(){p=!1}};if(!i)return h;function d(){if("object"===Ln(h.node)&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=o(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<n.length;e++)if(n[e].node_===a){h.circular=n[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}d();var m=t.call(h,h.node);if(void 0!==m&&h.update&&h.update(m),u.before&&u.before.call(h,h.node),!p)return h;if("object"===Ln(h.node)&&null!==h.node&&!h.circular){var f;n.push(h),d();var y=!0,v=!1,g=void 0;try{for(var b,x=Object.entries(null!==(f=h.keys)&&void 0!==f?f:[])[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var E,w=Nn(b.value,2),j=w[0],S=w[1];s.push(S),u.pre&&u.pre.call(h,h.node[S],S);var O=e(h.node[S]);c&&Xn.call(h.node,S)&&!Zn(h.node,S)&&(h.node[S]=O.node),O.isLast=!!(null===(E=h.keys)||void 0===E?void 0:E.length)&&+j===h.keys.length-1,O.isFirst=0===+j,u.post&&u.post.call(h,O),s.pop()}}catch(e){v=!0,g=e}finally{try{y||null==x.return||x.return()}finally{if(v)throw g}}n.pop()}return u.after&&u.after.call(h,h.node),h}(e).node}var ii=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:si;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Vn(this,ti),Vn(this,ri),Jn(this,ti,t),Jn(this,ri,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=Un(this,ti),r=0;t&&r<e.length;r++){var s=e[r];if(!Xn.call(t,s)||!Un(this,ri).includeSymbols&&"symbol"===(void 0===s?"undefined":Ln(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=Un(this,ti),r=0;t&&r<e.length;r++){var s=e[r];if(!Xn.call(t,s)||!Un(this,ri).includeSymbols&&"symbol"===(void 0===s?"undefined":Ln(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=Un(this,ti),s=0;for(s=0;s<e.length-1;s++){var n=e[s];Xn.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return ni(Un(this,ti),e,{immutable:!0,includeSymbols:!!Un(this,ri).includeSymbols})}},{key:"forEach",value:function(e){return Jn(this,ti,ni(Un(this,ti),e,Un(this,ri))),Un(this,ti)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?Un(this,ti):t;return this.forEach(function(t){this.isRoot&&r||(s=e.call(this,s,t))}),s}},{key:"paths",value:function(){var e=[];return this.forEach(function(){e.push(this.path)}),e}},{key:"nodes",value:function(){var e=[];return this.forEach(function(){e.push(this.node)}),e}},{key:"clone",value:function(){var e=[],t=[],r=Un(this,ri);return zn(Un(this,ti))?Un(this,ti).slice():function s(n){for(var i=0;i<e.length;i++)if(e[i]===n)return t[i];if("object"===(void 0===n?"undefined":Ln(n))&&null!==n){var o=ei(n,r);e.push(n),t.push(o);var c=r.includeSymbols?Qn:Object.keys,a=!0,l=!1,u=void 0;try{for(var p,h=c(n)[Symbol.iterator]();!(a=(p=h.next()).done);a=!0){var d=p.value;o[d]=s(n[d])}}catch(e){l=!0,u=e}finally{try{a||null==h.return||h.return()}finally{if(l)throw u}}return e.pop(),t.pop(),o}return n}(Un(this,ti))}}],r&&Dn(t.prototype,r),s&&Dn(t,s),e}();ti=new WeakMap,ri=new WeakMap;var oi=function(e,t){return new ii(e,t)};oi.get=function(e,t,r){return new ii(e,r).get(t)},oi.set=function(e,t,r,s){return new ii(e,s).set(t,r)},oi.has=function(e,t,r){return new ii(e,r).has(t)},oi.map=function(e,t,r){return new ii(e,r).map(t)},oi.forEach=function(e,t,r){return new ii(e,r).forEach(t)},oi.reduce=function(e,t,r,s){return new ii(e,s).reduce(t,r)},oi.paths=function(e,t){return new ii(e,t).paths()},oi.nodes=function(e,t){return new ii(e,t).nodes()},oi.clone=function(e,t){return new ii(e,t).clone()};var ci=oi;const ai=["properties"],li=["properties"],ui=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],pi=["schema/example","items/example"];function hi(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return ai.indexOf(t)>-1&&-1===li.indexOf(r)||ui.indexOf(s)>-1||pi.some(e=>s.indexOf(e)>-1)}function di(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if($n(n))o=Fn(n,i);else{const e=Fn(y,n),t=Fn(e,i).replace(y,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const mi=/^([a-z]+:\/\/|\/\/)/i;class fi extends wr{}const yi={},vi=new WeakMap,gi=[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]],bi={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(hi(i)||(e=>gi.some(t=>t(e)))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new fi("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const c=Si(e),a=c[0],l=c[1]||"";let u,p,h;try{u=o||a?wi(a,o):null}catch(t){return ji(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=vi.get(s);n||(n={},vi.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(Ti).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,c=i.replace(/allOf\/\d+\/?/g,""),a=s.contextTree.get([]).baseDoc;if(t===a&&Fi(c,e))return!0;let l="";const u=r.some(e=>(l=`${l}/${Ti(e)}`,n[l]&&n[l].some(e=>Fi(e,o)||Fi(o,e))));if(u)return!0;return void(n[c]=(n[c]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=di(e,u);return e===t?null:rr.replace(r,t)}if(null==u?(h=Ai(l),p=s.get(h),void 0===p&&(p=new fi(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=Oi(u,l),p=null!=p.__value?p.__value:p.catch(t=>{throw ji(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})})),p instanceof Error)return[rr.remove(r),p];const d=di(e,u),m=rr.replace(i,p,{$$ref:d});if(u&&u!==o)return[m,rr.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce((e,t)=>(r.push(e[t]),e[t]),e),s(t.value);function s(e){return rr.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some(t=>s(e[t])))}}(s.state,m)||n.useCircularStructures)return m}catch(e){return null}}},xi=Object.assign(bi,{docCache:yi,absoluteify:wi,clearCache:function(e){void 0!==e?delete yi[e]:Object.keys(yi).forEach(e=>{delete yi[e]})},JSONRefError:fi,wrapError:ji,getDoc:Pi,split:Si,extractFromDoc:Oi,fetchJSON:function(e){return fetch(e,{headers:{Accept:f},loadSpec:!0}).then(e=>e.text()).then(e=>rt.load(e))},extract:$i,jsonPointerToArray:Ai,unescapeJsonPointerToken:ki}),Ei=xi;function wi(e,t){if(!mi.test(e)){if(!t)throw new fi(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Fn(t,e)}return e}function ji(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new fi(`Could not resolve reference: ${r}`,{...t,cause:e})}function Si(e){return(e+"").split("#")}function Oi(e,t){const r=yi[e];if(r&&!rr.isPromise(r))try{const e=$i(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return Pi(e).then(e=>$i(t,e))}function Pi(e){const t=yi[e];return t?rr.isPromise(t)?t:Promise.resolve(t):(yi[e]=xi.fetchJSON(e).then(t=>(yi[e]=t,t)),yi[e])}function $i(e,t){const r=Ai(e);if(r.length<1)return t;const s=rr.getIn(t,r);if(void 0===s)throw new fi(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function Ai(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(ki)}function ki(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Ti(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const Ci=e=>!e||"/"===e||"#"===e;function Fi(e,t){if(Ci(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const Mi={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(hi(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,c=n.value;if(i.forEach(e=>{c&&(c=c[e])}),c={...c},0===Object.keys(c).length)return;delete c.allOf;const a=[];return a.push(s.replace(i,{})),e.forEach((e,t)=>{if(!s.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,a.push(e)}a.push(s.mergeDeep(i,e));const n=function(e,t,{specmap:r,getBaseUrlForNodePath:s=e=>r.getContext([...t,...e]).baseDoc,targetKeys:n=["$ref","$$ref"]}={}){const i=[];return ci(e).forEach(function(){if(I()(n).call(n,this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=di(this.node,s(e));i.push(r.replace(n,o))}}),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>s.getContext([...r,t,...e]).baseDoc,specmap:s});a.push(...n)}),c.example&&a.push(s.remove([].concat(i,"example"))),a.push(s.mergeDeep(i,c)),c.$$ref||a.push(s.remove([].concat(i,"$$ref"))),a}},Ii={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...rr.getIn(s.spec,n)};for(let n=0;n<e.length;n+=1){const o=e[n];try{t[n].default=s.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return rr.replace(r,t)}return rr.replace(r,e)}},Ri={key:"properties",plugin:(e,t,r,s)=>{const n={...e};for(const t in e)try{n[t].default=s.modelPropertyMacro(n[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return rr.replace(r,n)}};class Di{constructor(e){this.root=_i(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Ni(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?Ni(n[s],t,r):n[s]=_i(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,s=this.root;for(let n=0;n<e.length&&(r=e[n],t=s.children,t[r]);n+=1)s=t[r];return s&&s.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce((e,r)=>{if(!e)return e;const{children:s}=e;return!s[r]&&t&&(s[r]=_i(null,e)),s[r]},this.root)}}function _i(e,t){return Ni({children:{}},e,t)}function Ni(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]=Ni(r,r.value,e)}),e}const Li=()=>{};class Bi{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 Di,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),rr,{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(rr.isFunction),this.patches.push(rr.add([],this.spec)),this.patches.push(rr.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 s,n=null;return e[this.pluginProp]?(n=e,s=e[this.pluginProp]):rr.isFunction(e)?s=e:rr.isObject(e)&&(s=function(e){const t=(e,t)=>!Array.isArray(e)||e.every((e,r)=>e===t[r]);return function*(s,n){const i={};for(const[e,t]of s.filter(rr.isAdditiveMutation).entries()){if(!(e<g))return;yield*o(t.value,t.path,t)}function*o(s,c,a){if(rr.isObject(s)){const l=c.length-1,u=c[l],p=c.indexOf("properties"),h="properties"===u&&l===p,d=n.allowMetaPatches&&i[s.$$ref];for(const l of Object.keys(s)){const u=s[l],p=c.concat(l),m=rr.isObject(u),f=s.$$ref;if(d||m&&(n.allowMetaPatches&&f&&t(r,p)&&(i[f]=!0),yield*o(u,p,a)),!h&&l===e.key){const s=t(r,c);r&&!s||(yield e.plugin(u,l,p,n,a))}}}else e.key===c[c.length-1]&&(yield e.plugin(s,e.key,c,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:rr.isGenerator(s)})}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){rr.normalizeArray(e).forEach(e=>{if(e instanceof Error)this.errors.push(e);else try{if(!rr.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),rr.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(rr.isContextPatch(e))return void this.setContext(e.path,e.value);rr.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=rr.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 rr.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then(()=>this.dispatch()).catch(()=>this.dispatch());const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map(e=>e.value);return Promise.all(e.map(e=>e.then(Li,Li))).then(()=>this.dispatch())}return function(){e.currentPlugin=t;const s=e.getCurrentMutations(),n=e.mutations.length-1;try{if(t.isGenerator)for(const n of t(s,e.getLib()))r(n);else{r(t(s,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:n})}return e.dispatch()}();function r(r){r&&(r=rr.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const qi={refs:Ei,allOf:Mi,parameters:Ii,properties:Ri};async function Ui(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:c,responseInterceptor:a,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=Et(e),d=wt(e),m=p.find(e=>e.match(t));return async function(e){h&&(qi.refs.docCache[h]=e);qi.refs.fetchJSON=xt(d,{requestInterceptor:c,responseInterceptor:a});const t=[qi.refs];"function"==typeof o&&t.push(qi.parameters);"function"==typeof i&&t.push(qi.properties);"strict"!==r&&t.push(qi.allOf);const p=await(f={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Bi(f).dispatch());var f;l||(p.spec=m.normalize(p.spec));return p}(t)}function Vi(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=Gr(n)?Wr(n,r):r[n]}return r}const Ji=Ar(function(e,t,r){return e(Vi(t,r))});const Hi=$r(function(e,t){return e&&t});const zi=$r(function(e,t){return ts(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Xs(Hi)(e,t)});const Gi=vs(null);const Wi=Qs(Gi);function Ki(e){return Ki="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},Ki(e)}const Yi=function(e){return"object"===Ki(e)};const Xi=Zr(1,zi(Wi,Yi));var Qi=Hr(ms,an("Object")),Zi=Hr(Is,vs(Is(Object))),eo=Ji(zi(pn,Zi),["constructor"]);const to=Zr(1,function(e){if(!Xi(e)||!Qi(e))return!1;var t=Object.getPrototypeOf(e);return!!Gi(t)||eo(t)}),ro=e=>e.replace(/\W/gi,"_");function so(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?ro(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()}${ro(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function no(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){var n;const o=r[e];if(null==o||!I()(n=["object","function"]).call(n,typeof o))continue;const c=o.parameters;for(const r in o){var i;const n=o[r];if(null==n||!I()(i=["object","function"]).call(i,typeof n))continue;const a=so(n,e,r);if(a){s[a]?s[a].push(n):s[a]=[n];const e=s[a];if(e.length>1)e.forEach((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`});else if(void 0!==n.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||n.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const s in t)"produces"!==s&&"consumes"!==s&&"security"!==s||(r[s]=t[s],e.push(r));if(c&&(r.parameters=c,e.push(r)),e.length)for(const t of e)for(const e in t)if(Array.isArray(n[e])){if("parameters"===e)for(const r of t[e]){n[e].some(e=>!(!to(e)&&!to(r))&&(e===r||["name","$ref","$$ref"].some(t=>"string"==typeof e[t]&&"string"==typeof r[t]&&e[t]===r[t])))||n[e].push(r)}}else n[e]=t[e]}}}return t.$$normalized=!0,e}const io={name:"generic",match:()=>!0,normalize(e){const{spec:t}=no({spec:e});return t},resolve:async e=>Ui(e)};const oo=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},co=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},ao=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},lo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},uo=e=>co(e)||ao(e)||lo(e),po={name:"openapi-2",match:e=>oo(e),normalize(e){const{spec:t}=no({spec:e});return t},resolve:async e=>async function(e){return Ui(e)}(e)};const ho={name:"openapi-3-0",match:e=>co(e),normalize(e){const{spec:t}=no({spec:e});return t},resolve:async e=>async function(e){return Ui(e)}(e)},mo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=Et(e),i=wt(e),o=t||await xt(i,{requestInterceptor:r,responseInterceptor:s})(n),c={...e,spec:o};return e.strategies.find(e=>e.match(o)).resolve(c)})({...e,...t}),fo=mo({strategies:[ho,po,io]}),yo=e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:l,strategies:u},h=u.find(t=>t.match(e)).normalize(e),d=await fo({spec:h,...p,allowMetaPatches:!0,skipNormalization:!ao(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce((e,t)=>e?.[t],d.spec)||null),d})(t,r,{...e,...s});yo({strategies:[ho,po,io]});var vo=r(4035);function go(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var bo=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=$s,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=go(this.xf["@@transducer/step"](e,!1))),e},e}();function xo(e){return function(t){return new bo(e,t)}}const Eo=$r(Os(["all"],xo,function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}));class wo extends vo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const jo=wo;class So extends vo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Oo=So;class Po extends vo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(tn(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const $o=Po,Ao=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],ko=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,To=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Co=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof vo.wE)&&t.classes.includes(e),Fo=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Mo=e=>e({hasMethod:Ao,hasBasicElementProps:ko,primitiveEq:To,isElementType:Fo,hasClass:Co}),Io=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vo.Hg||e(r)&&t(void 0,r)),Ro=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vo.Om||e(r)&&t("string",r)),Do=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vo.kT||e(r)&&t("number",r)),_o=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vo.Os||e(r)&&t("null",r)),No=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vo.bd||e(r)&&t("boolean",r)),Lo=Mo(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof vo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),Bo=Mo(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof vo.wE&&!(s instanceof vo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),qo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vo.Pr||e(s)&&t("member",s)&&r(void 0,s)),Uo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vo.Ft||e(s)&&t("link",s)&&r(void 0,s)),Vo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vo.sI||e(s)&&t("ref",s)&&r(void 0,s)),Jo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jo||e(s)&&t("annotation",s)&&r("array",s)),Ho=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Oo||e(s)&&t("comment",s)&&r("string",s)),zo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $o||e(s)&&t("parseResult",s)&&r("array",s)),Go=e=>Fo("object",e)||Fo("array",e)||Fo("boolean",e)||Fo("number",e)||Fo("string",e)||Fo("null",e)||Fo("member",e),Wo=e=>!!Io(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),Ko=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Bo(r)&&Eo(Us(r.toValue()),e)},Yo=(e,t)=>0===e.length||Eo(Us(t.classes.toValue()),e);const Xo=function(){return!0};const Qo=function(){return!1},Zo=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},ec={},tc=e=>null==e?void 0:e.type,rc=e=>"string"==typeof tc(e),sc=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),nc=(e,{visitFnGetter:t=Zo,nodeTypeGetter:r=tc,breakSymbol:s=ec,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l,u,p,h,d,m){let f=l,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],r(f),!1);if("function"==typeof c){const t=c.call(e[l],f,u,p,h,d,v);if("function"==typeof(null==t?void 0:t.then))throw new wr("Async visitor not supported in sync mode",{visitor:e[l],visitFn:c});if(t===i)a[l]=f;else if(t===s)a[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(a[n]===c){const c=t(e[n],r(d),!0);if("function"==typeof c){const t=c.call(e[n],d,o,l,u,p,m);if("function"==typeof(null==t?void 0:t.then))throw new wr("Async visitor not supported in sync mode",{visitor:e[n],visitFn:c});if(t===s)a[n]=s;else if(void 0!==t&&t!==i)return t}}else a[n]===d&&(a[n]=c)}}};nc[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Zo,nodeTypeGetter:r=tc,breakSymbol:s=ec,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(l,u,p,h,d,m){let f=l,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],r(f),!1);if("function"==typeof c){const t=await c.call(e[l],f,u,p,h,d,v);if(t===i)a[l]=f;else if(t===s)a[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},async leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(a[n]===c){const c=t(e[n],r(d),!0);if("function"==typeof c){const t=await c.call(e[n],d,o,l,u,p,m);if(t===s)a[n]=s;else if(void 0!==t&&t!==i)return t}}else a[n]===d&&(a[n]=c)}}};const ic=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=ec,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=Zo,nodeTypeGetter:a=tc,nodePredicate:l=rc,nodeCloneFn:u=sc,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),v=[e],g=-1,b=[],x=e;const E=[],w=[];do{g+=1;const e=g===v.length;let r;const O=e&&0!==b.length;if(e){if(r=0===w.length?void 0:E.pop(),x=f,f=w.pop(),O)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?g:v[g],x=f[r],x===i||void 0===x)continue;E.push(r)}let P;if(!Array.isArray(x)){var j;if(!l(x))throw new wr(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){"function"==typeof h&&h(x,r,f,E,w),E.pop();continue}const i=c(t,a(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,E,w):f&&(f[r]=t),e||(x=t)}};P=i.call(t,x,r,f,E,w,n)}if("function"==typeof(null===(j=P)||void 0===j?void 0:j.then))throw new wr("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===n)break;if(P===o){if(!e){E.pop();continue}}else if(void 0!==P&&(b.push([r,P]),!e)){if(!l(P)){E.pop();continue}x=P}}var S;if(void 0===P&&O&&b.push([r,x]),!e)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(x),v=y?x:null!==(S=d[a(x)])&&void 0!==S?S:[],g=-1,b=[],f!==i&&void 0!==f&&w.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};ic[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=ec,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=Zo,nodeTypeGetter:a=tc,nodePredicate:l=rc,nodeCloneFn:u=sc,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),v=[e],g=-1,b=[],x=e;const E=[],w=[];do{g+=1;const e=g===v.length;let r;const S=e&&0!==b.length;if(e){if(r=0===w.length?void 0:E.pop(),x=f,f=w.pop(),S)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?g:v[g],x=f[r],x===i||void 0===x)continue;E.push(r)}let O;if(!Array.isArray(x)){if(!l(x))throw new wr(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){"function"==typeof h&&h(x,r,f,E,w),E.pop();continue}const i=c(t,a(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,E,w):f&&(f[r]=t),e||(x=t)}};O=await i.call(t,x,r,f,E,w,n)}if(O===n)break;if(O===o){if(!e){E.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!l(O)){E.pop();continue}x=O}}var j;if(void 0===O&&S&&b.push([r,x]),!e)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(x),v=y?x:null!==(j=d[a(x)])&&void 0!==j?j:[],g=-1,b=[],f!==i&&void 0!==f&&w.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};const oc=class extends wr{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const cc=class extends oc{};const ac=class extends oc{};const lc=$r(function(e,t){return Ss(function(r,s){return r[s]=e(t[s],s,t),r},{},ds(t))});const uc=Pr(function(e){return null==e});var pc=$r(function(e,t){if(0===e.length||uc(t))return!1;for(var r=t,s=0;s<e.length;){if(uc(r)||!ns(e[s],r))return!1;r=r[e[s]],s+=1}return!0});const hc=pc;var dc=$r(function(e,t){return hc([e],t)});const mc=dc;const fc=Ar(function(e,t,r){return e(Kr(t,r))});const yc=$r(Vi);var vc=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=$s,e.prototype["@@transducer/result"]=As,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 gc(e){return function(t){return new vc(e,t)}}const bc=$r(Os(["dropWhile"],gc,function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return Vr(r,1/0,t)}));const xc=es(function(e,t){return Hr(Ds(""),bc(Us(e)),qs(""))(t)}),Ec=(e,t)=>{const r=zr(e,t);return lc(e=>{if(to(e)&&mc("$ref",e)&&fc(yn,"$ref",e)){const t=yc(["$ref"],e),s=xc("#/",t);return yc(s.split("/"),r)}return to(e)?Ec(e,r):e},e)},wc=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),jc=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof vo.KeyValuePair){const{key:t,value:n}=e,i=Io(t)?jc(t,s):t,o=Io(n)?jc(n,s):n,c=new vo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof vo.ot){const t=e=>jc(e,s),n=[...e].map(t),i=new vo.ot(n);return r.set(e,i),i}if(e instanceof vo.G6){const t=e=>jc(e,s),n=[...e].map(t),i=new vo.G6(n);return r.set(e,i),i}if(Io(e)){const t=Pc(e);if(r.set(e,t),e.content)if(Io(e.content))t.content=jc(e.content,s);else if(e.content instanceof vo.KeyValuePair)t.content=jc(e.content,s);else if(Array.isArray(e.content)){const r=e=>jc(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new cc("Value provided to cloneDeep function couldn't be cloned",{value:e})};jc.safe=e=>{try{return jc(e)}catch{return e}};const Sc=e=>{const{key:t,value:r}=e;return new vo.KeyValuePair(t,r)},Oc=e=>{const t=new e.constructor;if(t.element=e.element,Wo(e)&&wc(t,e),e.meta.length>0&&(t._meta=jc(e.meta)),e.attributes.length>0&&(t._attributes=jc(e.attributes)),Io(e.content)){const r=e.content;t.content=Oc(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof vo.KeyValuePair?t.content=Sc(e.content):t.content=e.content;return t},Pc=e=>{if(e instanceof vo.KeyValuePair)return Sc(e);if(e instanceof vo.ot)return(e=>{const t=[...e];return new vo.ot(t)})(e);if(e instanceof vo.G6)return(e=>{const t=[...e];return new vo.G6(t)})(e);if(Io(e))return Oc(e);throw new ac("Value provided to cloneShallow function couldn't be cloned",{value:e})};Pc.safe=e=>{try{return Pc(e)}catch{return e}};const $c=e=>Lo(e)?"ObjectElement":Bo(e)?"ArrayElement":qo(e)?"MemberElement":Ro(e)?"StringElement":No(e)?"BooleanElement":Do(e)?"NumberElement":_o(e)?"NullElement":Uo(e)?"LinkElement":Vo(e)?"RefElement":void 0,Ac=e=>Io(e)?Pc(e):sc(e),kc=Hr($c,yn),Tc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class Cc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Qo,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 Fc=(e,t,{keyMap:r=Tc,...s}={})=>ic(e,t,{keyMap:r,nodeTypeGetter:$c,nodePredicate:kc,nodeCloneFn:Ac,...s});Fc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Tc,...s}={})=>ic[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:$c,nodePredicate:kc,nodeCloneFn:Ac,...s});const Mc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:$c(e),Ic={EphemeralObject:["content"],EphemeralArray:["content"],...Tc},Rc=(e,t,{keyMap:r=Ic,...s}={})=>Fc(e,t,{keyMap:r,nodeTypeGetter:Mc,nodePredicate:Xo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Rc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Ic,...r}={})=>Fc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Mc,nodePredicate:Xo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Dc=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 _c=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 Nc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new _c(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 Dc(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ro(e.href)?e.href.toValue():""}}const Lc=e=>Io(e)?Ro(e)||Do(e)||No(e)||_o(e)?e.toValue():Rc(e,new Nc):e;const Bc=Ar(function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})ns(s,t)&&(n[s]=ns(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)ns(s,r)&&!ns(s,n)&&(n[s]=r[s]);return n});const qc=Ar(function e(t,r,s){return Bc(function(r,s,n){return Ps(s)&&Ps(n)?e(t,s,n):t(r,s,n)},r,s)});const Uc=$r(function(e,t){return qc(function(e,t,r){return r},e,t)});const Vc=Vr(0,-1);const Jc=$r(function(e,t){return e.apply(this,t)});const Hc=Qs(pn);var zc=Pr(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():kr(e)?[]:Tr(e)?"":Ps(e)?{}:cs(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 Gc=zc;const Wc=Pr(function(e){return null!=e&&vs(e,Gc(e))});const Kc=Zr(1,pn(Array.isArray)?Array.isArray:Hr(ms,an("Array")));const Yc=zi(Kc,Wc);var Xc=Zr(3,function(e,t,r){var s=yc(e,r),n=yc(Vc(e),r);if(!Hc(s)&&!Yc(e)){var i=Rr(s,n);return Jc(i,t)}});const Qc=Xc;class Zc extends vo.g${constructor(){super(),this.register("annotation",jo),this.register("comment",Oo),this.register("parseResult",$o)}}const ea=new Zc,ta=e=>{const t=new Zc;return to(e)&&t.use(e),t},ra=ea,sa=()=>({predicates:{...i},namespace:ra}),na={toolboxCreator:sa,visitorOptions:{nodeTypeGetter:$c,exposeEdits:!0}},ia=(e,t,r={})=>{if(0===t.length)return e;const s=Uc(na,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=nc(c.map(Yr({},"visitor")),{...i});c.forEach(Qc(["pre"],[]));const l=Fc(e,a,i);return c.forEach(Qc(["post"],[])),l};ia[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Uc(na,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=nc[Symbol.for("nodejs.util.promisify.custom")],l=Fc[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(Yr({},"visitor")),{...i});await Promise.allSettled(c.map(Qc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Qc(["post"],[]))),p};const oa=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Io(e)&&(e.meta.length>0&&(s.meta=jc(e.meta)),e.attributes.length>0&&(s.attributes=jc(e.attributes))),ia(s,r,{toolboxCreator:sa,visitorOptions:{nodeTypeGetter:$c}})},ca=e=>(t,r={})=>oa(t,{...r,Type:e});vo.Sh.refract=ca(vo.Sh),vo.wE.refract=ca(vo.wE),vo.Om.refract=ca(vo.Om),vo.bd.refract=ca(vo.bd),vo.Os.refract=ca(vo.Os),vo.kT.refract=ca(vo.kT),vo.Ft.refract=ca(vo.Ft),vo.sI.refract=ca(vo.sI),jo.refract=ca(jo),Oo.refract=ca(Oo),$o.refract=ca($o);const aa=(e,t=new WeakMap)=>(qo(e)?(t.set(e.key,e),aa(e.key,t),t.set(e.value,e),aa(e.value,t)):e.children.forEach(r=>{t.set(r,e),aa(r,t)}),t);const la=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:aa(this.element);const s=this.edges.get(e);return tn(s)?void 0:(Lo(s)?((e,t,r)=>{const s=r.get(e);Lo(s)&&(s.content=s.map((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o))})(e,t,this.edges):Bo(s)?((e,t,r)=>{const s=r.get(e);Bo(s)&&(s.content=s.map(n=>n===e?(r.delete(e),r.set(t,s),t):n))})(e,t,this.edges):qo(s)&&((e,t,r)=>{const s=r.get(e);qo(s)&&(s.key===e&&(s.key=t,r.delete(e),r.set(t,s)),s.value===e&&(s.value=t,r.delete(e),r.set(t,s)))})(e,t,this.edges),this.element)}};const ua=(e,t,r)=>new la({element:r}).transclude(e,t),pa=e=>{const t=e.indexOf("#");return(e=>{try{const t=e.startsWith("#")?e.slice(1):e;return decodeURIComponent(t)}catch{return e}})(-1===t?"#":e.substring(t))},ha=function(){const e=va,t=ya,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,c,a,l,u,p=0,h=0,d=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(v,g,x,E)=>{const w=`${s}parse(): `;p=0,h=0,d=0,m=0,f=0,n=void 0,i=void 0,o=void 0,c=void 0,y.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(x),n=v.rules,i=v.udts;const j=g.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&j===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${s}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<n.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<n.length;t+=1)c.push(n[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const s in r.callbacks)if(r.callbacks.hasOwnProperty(s)){if(t=c.indexOf(s.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${s}' not a rule or udt name`);if(o=r.callbacks[s]?r.callbacks[s]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${s}] must be function reference or falsy)`);t<n.length?a[t]=o:l[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,c),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,c),u=E,o=[{type:e.RNM,index:S}],b(0,0),o=void 0;let O=!1;switch(y.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=y.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:y.state,stateName:e.idName(y.state),length:c.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:d,nodeHits:m}};const v=(t,r,n,i)=>{if(r.phraseLength>n){let e=`${s}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${s}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},g=(t,a)=>{let h,d,m;const f=o[t],v=i[f.index];y.UdtIndex=v.index,p||(m=r.ast&&r.ast.udtDefined(f.index),m&&(d=n.length+f.index,h=r.ast.getLength(),r.ast.down(d,v.name)));const g=c.length-a;l[f.index](y,c,a,u),((t,r,n)=>{if(r.phraseLength>n){let e=`${s}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${s}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(v,y,g),p||m&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,v.name,a,y.phraseLength))},b=(t,i)=>{const l=`${s}opExecute(): `,x=o[t];switch(m+=1,h>d&&(d=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const s=o[t];for(let t=0;t<s.children.length&&(b(s.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,s)=>{let n,i,c,a;const l=o[t];r.ast&&(i=r.ast.getLength()),n=!0,c=s,a=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],c),y.state===e.NOMATCH){n=!1;break}c+=y.phraseLength,a+=y.phraseLength}n?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,a,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=s,a=0,l=0,r.ast&&(n=r.ast.getLength());!(i>=c.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,a+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,l,h;const d=o[t],m=n[d.index],f=a[m.index];if(p||(l=r.ast&&r.ast.ruleDefined(d.index),l&&(i=r.ast.getLength(),r.ast.down(d.index,n[d.index].name))),f){const t=c.length-s;f(y,c,s,u),v(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,b(0,s),o=h,f(y,c,s,u),v(m,y,t,!1))}else h=o,o=m.opcodes,b(0,s,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(d.index,m.name,s,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const s=o[t];y.state=e.NOMATCH,r<c.length&&s.min<=c[r]&&c[r]<=s.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const s=o[t],n=s.string.length;if(y.state=e.NOMATCH,r+n<=c.length){for(let e=0;e<n;e+=1)if(c[r+e]!==s.string[e])return;y.state=e.MATCH,y.phraseLength=n}})(t,i);break;case e.TLS:((t,r)=>{let s;const n=o[t];y.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(r+i<=c.length){for(let e=0;e<i;e+=1)if(s=c[r+e],s>=65&&s<=90&&(s+=32),s!==n.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:g(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>f&&(f=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},da=function(){const e=va,t=ya,r=this;let s,n,i,o=0;const c=[],a=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;a.length=0,l.length=0,o=0,s=e,n=t,i=u;const h=[];for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(o=s.length+n.length,p=0;p<o;p+=1)c[p]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(p=h.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);c[p]=r.callbacks[e]}},r.ruleDefined=e=>!!c[e],r.udtDefined=e=>!!c[s.length+e],r.down=(t,r)=>{const s=l.length;return a.push(s),l.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:a.length}),s},r.up=(t,r,s,n)=>{const i=l.length,o=a.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:a.length}),l[o].thatIndex=i,l[o].phraseIndex=s,l[o].phraseLength=n,i},r.translate=t=>{let r,s;for(let n=0;n<l.length;n+=1)s=l[n],r=c[s.callbackIndex],r&&(s.state===e.SEM_PRE?r(e.SEM_PRE,i,s.phraseIndex,s.phraseLength,t):r&&r(e.SEM_POST,i,s.phraseIndex,s.phraseLength,t))},r.setLength=e=>{l.length=e,a.length=e>0?l[e-1].stack:0},r.getLength=()=>l.length,r.toXml=()=>{let r="",s=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(s+2),r+=t.charsToString(i),r+="\n",l.forEach(n=>{n.state===e.SEM_PRE?(s+=1,r+=u(s),r+=`<node name="${n.name}" index="${n.phraseIndex}" length="${n.phraseLength}">\n`,r+=u(s+2),r+=t.charsToString(i,n.phraseIndex,n.phraseLength),r+="\n"):(r+=u(s),r+=`</node>\x3c!-- name="${n.name}" --\x3e\n`,s-=1)}),r+="</root>\n",r}},ma=function(){const e=va,t=ya,r="parser.js: Trace(): ";let s,n,i,o="",c=0;const a=this,l=e=>{let t="",r=0;if(e>=0)for(;e--;)r+=1,5===r?(t+="|",r=0):t+=".";return t};a.init=(e,t,r)=>{n=e,i=t,s=r};const u=s=>{let o;switch(s.type){case e.ALT:o="ALT";break;case e.CAT:o="CAT";break;case e.REP:o=s.max===1/0?`REP(${s.min},inf)`:`REP(${s.min},${s.max})`;break;case e.RNM:o=`RNM(${n[s.index].name})`;break;case e.TRG:o=`TRG(${s.min},${s.max})`;break;case e.TBS:o=s.string.length>6?`TBS(${t.charsToString(s.string,0,3)}...)`:`TBS(${t.charsToString(s.string,0,6)})`;break;case e.TLS:o=s.string.length>6?`TLS(${t.charsToString(s.string,0,3)}...)`:`TLS(${t.charsToString(s.string,0,6)})`;break;case e.UDT:o=`UDT(${i[s.index].name})`;break;case e.AND:o="AND";break;case e.NOT:o="NOT";break;default:throw new Error(`${r}Trace: opName: unrecognized opcode`)}return o};a.down=(e,r)=>{const n=l(c),i=Math.min(100,s.length-r);let a=t.charsToString(s,r,i);i<s.length-r&&(a+="..."),a=`${n}|-|[${u(e)}]${a}\n`,o+=a,c+=1},a.up=(n,i,a,p)=>{const h=`${r}trace.up: `;c-=1;const d=l(c);let m,f,y;switch(i){case e.EMPTY:y="|E|",f="''";break;case e.MATCH:y="|M|",m=Math.min(100,p),f=m<p?`'${t.charsToString(s,a,m)}...'`:`'${t.charsToString(s,a,m)}'`;break;case e.NOMATCH:y="|N|",f="";break;default:throw new Error(`${h} unrecognized state`)}f=`${d}${y}[${u(n)}]${f}\n`,o+=f},a.displayTrace=()=>o},fa=function(){const e=va;let t,r,s;const n=[],i=[],o=[];this.init=(e,s)=>{t=e,r=s,h()},this.collect=(t,r)=>{d(s,r.state,r.phraseLength),d(n[t.type],r.state,r.phraseLength),t.type===e.RNM&&d(i[t.index],r.state,r.phraseLength),t.type===e.UDT&&d(o[t.index],r.state,r.phraseLength)},this.displayStats=()=>{let t="";const r={match:0,empty:0,nomatch:0,total:0},s=(e,t,s,n,i)=>{r.match+=t,r.empty+=s,r.nomatch+=n,r.total+=i;return`${e} | ${c(t)} | ${c(s)} | ${c(n)} | ${c(i)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=s(" ALT",n[e.ALT].match,n[e.ALT].empty,n[e.ALT].nomatch,n[e.ALT].total),t+=s(" CAT",n[e.CAT].match,n[e.CAT].empty,n[e.CAT].nomatch,n[e.CAT].total),t+=s(" REP",n[e.REP].match,n[e.REP].empty,n[e.REP].nomatch,n[e.REP].total),t+=s(" RNM",n[e.RNM].match,n[e.RNM].empty,n[e.RNM].nomatch,n[e.RNM].total),t+=s(" TRG",n[e.TRG].match,n[e.TRG].empty,n[e.TRG].nomatch,n[e.TRG].total),t+=s(" TBS",n[e.TBS].match,n[e.TBS].empty,n[e.TBS].nomatch,n[e.TBS].total),t+=s(" TLS",n[e.TLS].match,n[e.TLS].empty,n[e.TLS].nomatch,n[e.TLS].total),t+=s(" UDT",n[e.UDT].match,n[e.UDT].empty,n[e.UDT].nomatch,n[e.UDT].total),t+=s(" AND",n[e.AND].match,n[e.AND].empty,n[e.AND].nomatch,n[e.AND].total),t+=s(" NOT",n[e.NOT].match,n[e.NOT].empty,n[e.NOT].nomatch,n[e.NOT].total),t+=s("TOTAL",r.match,r.empty,r.nomatch,r.total),t},this.displayHits=e=>{let t="";const r=(e,t,r,n,i)=>{s.match+=e,s.empty+=t,s.nomatch+=r,s.total+=n;return`| ${c(e)} | ${c(t)} | ${c(r)} | ${c(n)} | ${i}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(i.sort(a),o.sort(a),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(i.sort(u),o.sort(u),t+=" RULES/UDTS BY INDEX\n"):(i.sort(l),o.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<i.length;e+=1){let s=i[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.name))}for(let e=0;e<o.length;e+=1){let s=o[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.name))}return t};const c=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,a=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,l=(e,t)=>e.total<t.total?1:e.total>t.total?-1:a(e,t),u=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,p=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},h=()=>{n.length=0,s=new p,n[e.ALT]=new p,n[e.CAT]=new p,n[e.REP]=new p,n[e.RNM]=new p,n[e.TRG]=new p,n[e.TBS]=new p,n[e.TLS]=new p,n[e.UDT]=new p,n[e.AND]=new p,n[e.NOT]=new p,i.length=0;for(let e=0;e<t.length;e+=1)i.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(r.length>0){o.length=0;for(let e=0;e<r.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:r[e].name,lower:r[e].lower,index:r[e].index})}},d=(t,r)=>{switch(t.total+=1,r){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${r}`)}}},ya={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,r)=>{let s=e;for(;!(void 0===t||t<0);){if(void 0===r){s=e.slice(t);break}if(r<=0)return"";s=e.slice(t,t+r);break}return String.fromCodePoint(...s)}},va={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case va.ALT:return"ALT";case va.CAT:return"CAT";case va.REP:return"REP";case va.RNM:return"RNM";case va.TRG:return"TRG";case va.TBS:return"TBS";case va.TLS:return"TLS";case va.UDT:return"UDT";case va.AND:return"AND";case va.NOT:return"NOT";case va.ACTIVE:return"ACTIVE";case va.EMPTY:return"EMPTY";case va.MATCH:return"MATCH";case va.NOMATCH:return"NOMATCH";case va.SEM_PRE:return"SEM_PRE";case va.SEM_POST:return"SEM_POST";case va.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function ga(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class ba extends Error{constructor(e,t=void 0){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.prototype.hasOwnProperty.call(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}`)}if(null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}const xa=ba;const Ea=class extends xa{},wa=e=>(t,r,s,n,i)=>{if("object"!=typeof i||null===i||Array.isArray(i))throw new Ea("parser's user data must be an object");if(t===va.SEM_PRE){const t={type:e,text:ya.charsToString(r,s,n),start:s,length:n,children:[]};if(i.stack.length>0){i.stack[i.stack.length-1].children.push(t)}else i.root=t;i.stack.push(t)}t===va.SEM_POST&&i.stack.pop()};const ja=class extends da{constructor(){super(),this.callbacks["json-pointer"]=wa("json-pointer"),this.callbacks["reference-token"]=wa("reference-token"),this.callbacks.slash=wa("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},Sa=e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};const Oa=class extends ja{getTree(){const{root:e}=super.getTree();return e.children.filter(({type:e})=>"reference-token"===e).map(({text:e})=>Sa(e))}};const Pa=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}};const $a=class extends ma{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let r=-1;for(let s=0;s<e.length;s++){const n=e[s];if(n.includes("M|")){const e=n.match(/]'(.*)'$/);e&&e[1]&&(r=s)}if(s>r){const e=n.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new Pa(...t)}},Aa=new ga,ka=(e,{translator:t=new Oa,stats:r=!1,trace:s=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const n=new ha;t&&(n.ast=t),r&&(n.stats=new fa),s&&(n.trace=new $a);const i=n.parse(Aa,"json-pointer",e);return{result:i,tree:i.success&&t?n.ast.getTree():void 0,stats:n.stats,trace:n.trace}}catch(t){throw new Ea("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}};new ga,new ha,new ga,new ha;const Ta=new ga,Ca=new ha,Fa=e=>{if("string"!=typeof e)return!1;try{return Ca.parse(Ta,"array-index",e).success}catch{return!1}},Ma=new ga,Ia=new ha,Ra=e=>{if("string"!=typeof e)return!1;try{return Ia.parse(Ma,"array-dash",e).success}catch{return!1}},Da=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const _a=class extends xa{},Na=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Da(String(e))}).join("/")}`}catch(t){throw new _a("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const La=class{#e;#t;#r;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#r=t.realm}step({referenceToken:e,input:t,output:r,success:s=!0,reason:n}){const i=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:i,input:t,inputType:this.#r.isObject(t)?"object":this.#r.isArray(t)?"array":"unrecognized",output:r,success:s};n&&(o.reason=n),this.#e.steps.push(o),s||(this.#e.failed=!0,this.#e.failedAt=i,this.#e.message=n)}};const Ba=class{name="";isArray(e){throw new xa("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new xa("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new xa("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new xa("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new xa("Realm.evaluate(node) must be implemented in a subclass")}};const qa=class extends xa{};const Ua=class extends qa{};const Va=class extends Ba{name="json";isArray(e){return Array.isArray(e)}isObject(e){return"object"==typeof e&&null!==e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){const r=Number(t),s=r>>>0;if(r!==s)throw new Ua(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,r)}return!!this.isObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}};const Ja=class extends qa{};const Ha=class extends qa{},za=(e,t,{strictArrays:r=!0,strictObjects:s=!0,realm:n=new Va,trace:i=!0}={})=>{const{result:o,tree:c,trace:a}=ka(t,{trace:!!i}),l="object"==typeof i&&null!==i?new La(i,{jsonPointer:t,referenceTokens:c,strictArrays:r,strictObjects:s,realm:n,value:e}):null;try{let i;if(!o.success){let r=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw r+=a?`, expected ${a.inferExpectations()}`:"",new qa(r,{jsonPointer:t,currentValue:e,realm:n.name})}return c.reduce((e,o,a)=>{if(n.isArray(e)){if(Ra(o)){if(r)throw new Ua(`Invalid array index "-" at position ${a} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});return i=n.evaluate(e,String(n.sizeOf(e))),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(!Fa(o))throw new Ua(`Invalid array index "${o}" at position ${a} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});const s=Number(o);if(!Number.isSafeInteger(s))throw new Ua(`Invalid array index "${o}" at position ${a} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});if(!n.has(e,o)&&r)throw new Ua(`Invalid array index "${o}" at position ${a} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(n.isObject(e)){if(!n.has(e,o)&&s)throw new Ha(`Invalid object key "${o}" at position ${a} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}throw new Ja(`Invalid reference token "${o}" at position ${a} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name})},e)}catch(e){if(null==l||l.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof qa)throw e;throw new qa("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:c})}};const Ga=class extends Ba{name="apidom";isArray(e){return Bo(e)}isObject(e){return Lo(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const r=Number(t),s=r>>>0;if(r!==s)throw new Ua(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<this.sizeOf(e)}if(this.isObject(e)){const r=e.keys(),s=new Set(r);if(r.length!==s.size)throw new Ha(`Object key "${t}" is not unique — JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}},Wa=(e,t,r={})=>za(e,t,{...r,realm:new Ga});class Ka extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ya=Ka;class Xa extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Qa=Xa;class Za extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const el=Za;class tl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const rl=tl;class sl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const nl=sl;class il extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const ol=il;class cl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const al=cl;class ll extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new vo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vo.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(ll.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ul=ll;class pl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const hl=pl;class dl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ml=dl;class fl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Ro(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ro(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 yl=fl;class vl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const gl=vl;class bl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const xl=bl;class El extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const wl=El;class jl extends vo.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Sl=jl;class Ol extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Pl=Ol;class $l extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vo.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Al=$l;class kl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new vo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vo.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(kl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Tl=kl;class Cl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Fl=Cl;class Ml extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Il=Ml;class Rl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Dl=Rl;class _l extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new vo.bd(!1)}set required(e){this.set("required",e)}}const Nl=_l;class Ll extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Bl=Ll;class ql extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Ul=ql;const Vl=class extends Er{};class Jl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Hl=Jl;class zl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Gl=zl;class Wl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Kl=Wl;class Yl extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Xl=Yl,Ql=e=>{const t=e.meta.length>0?jc(e.meta):void 0,r=e.attributes.length>0?jc(e.attributes):void 0;return new e.constructor(void 0,t,r)},Zl=(e,t)=>t.clone&&t.isMergeableElement(e)?tu(Ql(e),e,t):e,eu={clone:!0,isMergeableElement:e=>Lo(e)||Bo(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"](e=>Zl(e,r)),objectElementMerge:(e,t,r)=>{const s=Lo(e)?Ql(e):Ql(t);return Lo(e)&&e.forEach((e,t,n)=>{const i=Pc(n);i.value=Zl(e,r),s.content.push(i)}),t.forEach((t,n,i)=>{const o=Lc(n);let c;if(Lo(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);c=Pc(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return tu;const r=t.customMerge(e,t);return"function"==typeof r?r:tu})(n,r)(s,t,r)}else c=Pc(i),c.value=Zl(t,r);s.remove(o),s.content.push(c)}),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},tu=(e,t,r)=>{var s,n,i;const o={...eu,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:eu.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:eu.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:eu.objectElementMerge;const c=Bo(t);if(!(c===Bo(e)))return Zl(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>jc(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>jc(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};tu.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new vo.Sh:e.reduce((e,r)=>tu(e,r,t),Ql(e[0]))};const ru=tu;const su=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ru(t.meta,e.meta)),Wo(e)&&wc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ru(t.attributes,e.attributes))}};const nu=class extends su{enter(e){return this.element=jc(e),ec}},iu=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},ou=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:ou(r,[...t,r])},cu=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map(e=>ou(e));for(;r.every(e=>e.length>0);){const e=r.map(e=>e.pop()),s=e[0];if(!e.every(e=>e===s))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=ou(n);for(let t of e){let e=ou(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(iu(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},au=e=>e.filter((t,r)=>e.indexOf(t)==r),lu=(e,t)=>{const r=t.map(e=>ou(e));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},uu=(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(lu(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==lu(s,e)||void 0!==t[s],get:(r,s)=>(lu(s,e)||t)[s],set(t,r,s){const n=lu(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!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)))}),pu=null,hu="copy",du="copy",mu="deep",fu=new WeakMap,yu=e=>fu.get(e),vu=(e,t)=>{var r,s;const n=au([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=au([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},gu=(e,t)=>{var r,s,n,i;return{property:vu(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:vu(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},bu=(e,t)=>{var r,s,n,i,o,c;return{class:au([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:gu(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:gu(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},xu=new Map,Eu=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...ou(e.prototype).map(e=>e.constructor),...null!==(t=yu(e))&&void 0!==t?t:[]].filter(e=>!r.has(e));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map(e=>xu.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>bu(e,t))},wu=e=>{let t=xu.get(e);return t||(t={},xu.set(e,t)),t};function ju(...e){var t,r,s;const n=e.map(e=>e.prototype),i=pu;if(null!==i){const e=n.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};n.push(r)}function o(...t){for(const r of e)iu(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===du?cu(n,o):(c=n,a=o,uu([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===hu?cu(e,null,["prototype"]):uu(e,Function.prototype));let l=o;if("none"!==mu){const n="deep"===mu?Eu(...e):((...e)=>{const t=e.map(e=>wu(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>bu(e,t))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Su(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),Su(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,fu.set(u,p),l}const Su=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Ou=Pr(function(e){return Zr(qr(sn,0,nn("length",e)),function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});const Pu=Pr(function(e){return!Wc(e)});const $u=$r(function(e,t){return e||t});var Au=Qs(Zr(1,zi(Wi,$r(function(e,t){return ts(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Xs($u)(e,t)})(Yi,pn))));const ku=Ou([yn,Au,Pu]);const Tu=$r(function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r});const Cu=class extends su{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Tu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=yc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ji(pn,["visitors",...e],this.specObj)?yc(["visitors",...e],this.specObj):yc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof nu&&(null==s?void 0:s.constructor)===nu?jc(t):(Fc(t,s,r),s.element)}};const Fu=class extends Cu{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((e,s,n)=>{if(Ro(s)&&r.includes(Lc(s))&&!this.ignoredFields.includes(Lc(s))){const r=this.toRefractedElement([...t,"fixedFields",Lc(s)],e),i=new vo.Pr(jc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Lc(s))||this.element.content.push(jc(n))}),this.copyMetaAndAttributes(e,this.element),ec}};const Mu=class{parent;constructor({parent:e}){this.parent=e}},Iu=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hl||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s)),Ru=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gl||e(s)&&t("JSONReference",s)&&r("object",s)),Du=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kl||e(s)&&t("media",s)&&r("object",s)),_u=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xl||e(s)&&t("linkDescription",s)&&r("object",s));class Nu extends(ju(Fu,Mu,nu)){constructor(e){super(e),this.element=new Hl,this.specPath=Zs(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Fu.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(tn(this.parent)&&!Ro(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Iu(this.parent)&&!Ro(e.get("$schema"))){const e=zr(Lc(this.parent.meta.get("inheritedDialectIdentifier")),Lc(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?jc(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new vo.wE,s=Lc(e.get(t));ku(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Lu=Nu,Bu=e=>Lo(e)&&e.hasKey("$ref");class qu extends(ju(Cu,Mu,nu)){ObjectElement(e){const t=Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),ec}ArrayElement(e){return this.element=new vo.wE,this.element.classes.push("json-schema-items"),e.forEach(e=>{const t=Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const Uu=qu;const Vu=class extends nu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Ju=class extends Cu{specPath;ignoredFields;fieldPatternPredicate=Qo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach((e,t,r)=>{if(!this.ignoredFields.includes(Lc(t))&&this.fieldPatternPredicate(Lc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new vo.Pr(jc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Lc(t))||this.element.content.push(jc(r))}),this.copyMetaAndAttributes(e,this.element),ec}};const Hu=class extends Ju{constructor(e){super(e),this.fieldPatternPredicate=ku}};class zu extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Gu=zu;class Wu extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ku=Wu;class Yu extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Xu=Yu;const Qu=class extends nu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Zu=class extends nu{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ep extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(e=>{const t=Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const tp=ep;class rp extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(e=>{const t=Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const sp=rp;class np extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(e=>{const t=Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const ip=np;class op extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Bu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const cp=op;class ap extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),ec}}const lp=ap;class up extends(ju(Fu,nu)){constructor(e){super(e),this.element=new Gl,this.specPath=Zs(["document","objects","JSONReference"])}ObjectElement(e){const t=Fu.prototype.ObjectElement.call(this,e);return Ro(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const pp=up;const hp=class extends nu{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const dp=Ar(function(e,t,r){return Zr(Math.max(e.length,t.length,r.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})});const mp=Pr(function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}});var fp=$r(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const yp=fp;const vp=Pr(function(e){return Wr(0,e)});const gp=Pr(go);const bp=Qs(uc);const xp=zi(Kc,Pu);function Ep(e){return function(e){if(Array.isArray(e))return wp(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){if("string"==typeof e)return wp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wp(e,t):void 0}}(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 wp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var jp=Hr(yp(mp(function(e,t){return e.length>t.length})),vp,Kr("length")),Sp=es(function(e,t,r){var s=r.apply(void 0,Ep(e));return bp(s)?gp(s):t});const Op=dp(xp,function(e){var t=jp(e);return Zr(t,function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return qr(Sp(r),void 0,e)})},en);const Pp=class extends Cu{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>dp(e,Zs(t),en)),r=Op(t)(e);return this.element=this.toRefractedElement(r,e),ec}};const $p=class extends Pp{constructor(e){super(e),this.alternator=[{predicate:Bu,specPath:["document","objects","JSONReference"]},{predicate:Xo,specPath:["document","objects","JSONSchema"]}]}};class Ap extends(ju(Fu,nu)){constructor(e){super(e),this.element=new Kl,this.specPath=Zs(["document","objects","Media"])}}const kp=Ap;class Tp extends(ju(Fu,nu)){constructor(e){super(e),this.element=new Xl,this.specPath=Zs(["document","objects","LinkDescription"])}}const Cp=Tp,Fp={visitors:{value:nu,JSONSchemaOrJSONReferenceVisitor:$p,document:{objects:{JSONSchema:{$visitor:Lu,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:$p,items:Uu,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Vu,properties:Gu,additionalProperties:$p,patternProperties:Ku,dependencies:Xu,enum:Qu,type:Zu,allOf:tp,anyOf:sp,oneOf:ip,not:$p,definitions:cp,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:lp,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:pp,fixedFields:{$ref:hp}},Media:{$visitor:kp,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Cp,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:$p,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:$p}}}}}},Mp=e=>{if(Io(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ip={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Tc},Rp={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Hl),t.register("jSONReference",Gl),t.register("media",Kl),t.register("linkDescription",Xl),t}},Dp=()=>{const e=ta(Rp);return{predicates:{...o,isStringElement:Ro},namespace:e}},_p=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Fp}={})=>{const n=(0,vo.e)(e),i=Ec(s),o=new(yc(t,i))({specObj:i});return Fc(n,o),ia(o.element,r,{toolboxCreator:Dp,visitorOptions:{keyMap:Ip,nodeTypeGetter:Mp}})},Np=e=>(t,r={})=>_p(t,{specPath:e,...r});Hl.refract=Np(["visitors","document","objects","JSONSchema","$visitor"]),Gl.refract=Np(["visitors","document","objects","JSONReference","$visitor"]),Kl.refract=Np(["visitors","document","objects","Media","$visitor"]),Xl.refract=Np(["visitors","document","objects","LinkDescription","$visitor"]);const Lp=class extends Hl{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 Bp extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const qp=Bp;class Up extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Vp=Up;class Jp extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Hp=Jp;class zp extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Gp=zp;class Wp extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Kp=Wp;class Yp extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Xp=Yp;const Qp=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ru(t.meta,e.meta)),Wo(e)&&wc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ru(t.attributes,e.attributes))}};const Zp=class extends Qp{enter(e){return this.element=jc(e),ec}};const eh=class extends Qp{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Tu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=yc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ji(pn,["visitors",...e],this.specObj)?yc(["visitors",...e],this.specObj):yc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof Zp&&(null==s?void 0:s.constructor)===Zp?jc(t):(Fc(t,s,r),s.element)}};var th=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=$s,e.prototype["@@transducer/result"]=As,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?go(r):r},e}();function rh(e){return function(t){return new th(e,t)}}const sh=$r(Os(["take"],rh,function(e,t){return Vr(0,e<0?1/0:e,t)}));const nh=$r(function(e,t){return vs(sh(e.length,t),e)}),ih=e=>Lo(e)&&e.hasKey("$ref"),oh=Lo,ch=Lo,ah=e=>Ro(e.key)&&nh("x-",Lc(e.key));const lh=class extends eh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=ah;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((e,s,n)=>{if(Ro(s)&&r.includes(Lc(s))&&!this.ignoredFields.includes(Lc(s))){const r=this.toRefractedElement([...t,"fixedFields",Lc(s)],e),i=new vo.Pr(jc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(Lc(s))||this.element.content.push(jc(n))}),this.copyMetaAndAttributes(e,this.element),ec}};class uh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Pl,this.specPath=Zs(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return lh.prototype.ObjectElement.call(this,e)}}const ph=uh;class hh extends(ju(eh,Zp)){StringElement(e){const t=new Sl(Lc(e));return this.copyMetaAndAttributes(e,t),this.element=t,ec}}const dh=hh;const mh=class extends eh{MemberElement(e){return this.element=jc(e),this.element.classes.push("specification-extension"),ec}};class fh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new hl,this.specPath=Zs(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const yh=fh;const vh=class extends Zp{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class gh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new el,this.specPath=Zs(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const bh=gh;class xh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new ml,this.specPath=Zs(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Eh=xh;class wh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new yl,this.specPath=Zs(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return(Ro(this.element.operationId)||Ro(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const jh=wh;const Sh=class extends Zp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Oh=class extends Zp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ph=class extends eh{specPath;ignoredFields;fieldPatternPredicate=Qo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=ah;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(Lc(t))&&this.fieldPatternPredicate(Lc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new vo.Pr(jc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Lc(t))||this.element.content.push(jc(r))}),this.copyMetaAndAttributes(e,this.element),ec}};const $h=class extends Ph{constructor(e){super(e),this.fieldPatternPredicate=ku}};class Ah extends vo.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ah.primaryClass)}}const kh=Ah;class Th extends(ju($h,Zp)){constructor(e){super(e),this.element=new kh,this.specPath=Zs(["value"])}}const Ch=Th;class Fh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Hp,this.specPath=Zs(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Mh=Fh;const Ih=class extends Zp{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Rh extends vo.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Rh.primaryClass)}}const Dh=Rh;class _h extends(ju(eh,Zp)){constructor(e){super(e),this.element=new Dh}ArrayElement(e){return e.forEach(e=>{const t=oh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const Nh=_h;class Lh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Gp,this.specPath=Zs(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Bh=Lh;class qh extends vo.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(qh.primaryClass)}}const Uh=qh;class Vh extends(ju($h,Zp)){constructor(e){super(e),this.element=new Uh,this.specPath=Zs(["document","objects","ServerVariable"])}}const Jh=Vh;class Hh extends(ju(lh,Zp)){constructor(e){super(e),this.element=new gl,this.specPath=Zs(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const zh=Hh;const Gh=class extends eh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>dp(e,Zs(t),en)),r=Op(t)(e);return this.element=this.toRefractedElement(r,e),ec}},Wh=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ya||e(s)&&t("callback",s)&&r("object",s)),Kh=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qa||e(s)&&t("components",s)&&r("object",s)),Yh=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof el||e(s)&&t("contact",s)&&r("object",s)),Xh=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ol||e(s)&&t("example",s)&&r("object",s)),Qh=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof al||e(s)&&t("externalDocumentation",s)&&r("object",s)),Zh=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ul||e(s)&&t("header",s)&&r("object",s)),ed=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hl||e(s)&&t("info",s)&&r("object",s)),td=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ml||e(s)&&t("license",s)&&r("object",s)),rd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yl||e(s)&&t("link",s)&&r("object",s)),sd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sl||e(s)&&t("openapi",s)&&r("string",s)),nd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Pl||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n)),id=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Al||e(s)&&t("operation",s)&&r("object",s)),od=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tl||e(s)&&t("parameter",s)&&r("object",s)),cd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fl||e(s)&&t("pathItem",s)&&r("object",s)),ad=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Il||e(s)&&t("paths",s)&&r("object",s)),ld=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dl||e(s)&&t("reference",s)&&r("object",s)),ud=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nl||e(s)&&t("requestBody",s)&&r("object",s)),pd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bl||e(s)&&t("response",s)&&r("object",s)),hd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ul||e(s)&&t("responses",s)&&r("object",s)),dd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lp||e(s)&&t("schema",s)&&r("object",s)),md=e=>No(e)&&e.classes.includes("boolean-json-schema"),fd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qp||e(s)&&t("securityRequirement",s)&&r("object",s)),yd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vp||e(s)&&t("securityScheme",s)&&r("object",s)),vd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hp||e(s)&&t("server",s)&&r("object",s)),gd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gp||e(s)&&t("serverVariable",s)&&r("object",s)),bd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gl||e(s)&&t("mediaType",s)&&r("object",s)),xd=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Dh||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)),Ed=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rl||e(s)&&t("discriminator",s)&&r("object",s));class wd extends(ju(Gh,Zp)){constructor(e){super(e),this.alternator=[{predicate:ih,specPath:["document","objects","Reference"]},{predicate:Xo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Gh.prototype.enter.call(this,e);return ld(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const jd=wd;class Sd extends(ju($h,Zp)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("examples"),this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const Od=Sd;class Pd extends vo.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Pd.primaryClass),this.classes.push("examples")}}const $d=Pd;const Ad=class extends Od{constructor(e){super(e),this.element=new $d}};class kd extends vo.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(kd.primaryClass)}}const Td=kd;class Cd extends(ju($h,Zp)){constructor(e){super(e),this.element=new Td,this.specPath=Zs(["document","objects","Encoding"])}}const Fd=Cd;class Md extends(ju($h,Zp)){constructor(e){super(e),this.element=new qp,this.specPath=Zs(["value"])}}const Id=Md;class Rd extends vo.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Rd.primaryClass)}}const Dd=Rd;class _d extends(ju(eh,Zp)){constructor(e){super(e),this.element=new Dd}ArrayElement(e){return e.forEach(e=>{if(Lo(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(jc(e))}),this.copyMetaAndAttributes(e,this.element),ec}}const Nd=_d;class Ld extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Qa,this.specPath=Zs(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Bd=Ld;class qd extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Kp,this.specPath=Zs(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Ud=qd;class Vd extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Dl,this.specPath=Zs(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return Ro(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Jd=Vd;const Hd=class extends Zp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class zd extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Tl,this.specPath=Zs(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return Lo(this.element.contentProp)&&this.element.contentProp.filter(bd).forEach((e,t)=>{e.setMetaProperty("media-type",Lc(t))}),t}}const Gd=zd;class Wd extends(ju(Gh,Zp)){constructor(e){super(e),this.alternator=[{predicate:ih,specPath:["document","objects","Reference"]},{predicate:Xo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Gh.prototype.enter.call(this,e);return ld(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Kd=Wd;class Yd extends(ju(lh,Zp)){constructor(e){super(e),this.element=new ul,this.specPath=Zs(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Xd=Yd;class Qd extends(ju(Gh,Zp)){constructor(e){super(e),this.alternator=[{predicate:ih,specPath:["document","objects","Reference"]},{predicate:Xo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Gh.prototype.enter.call(this,e);return ld(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Zd=Qd;class em extends vo.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(em.primaryClass),this.classes.push("examples")}}const tm=em;const rm=class extends Od{constructor(e){super(e),this.element=new tm}};class sm extends(ju($h,Zp)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("content"),this.specPath=Zs(["document","objects","MediaType"])}}const nm=sm;class im extends vo.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(im.primaryClass),this.classes.push("content")}}const om=im;const cm=class extends nm{constructor(e){super(e),this.element=new om}};class am extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Lp,this.specPath=Zs(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const lm=am,um=Fp.visitors.document.objects.JSONSchema.fixedFields.allOf;const pm=class extends um{ArrayElement(e){const t=um.prototype.ArrayElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},hm=Fp.visitors.document.objects.JSONSchema.fixedFields.anyOf;const dm=class extends hm{ArrayElement(e){const t=hm.prototype.ArrayElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},mm=Fp.visitors.document.objects.JSONSchema.fixedFields.oneOf;const fm=class extends mm{ArrayElement(e){const t=mm.prototype.ArrayElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},ym=Fp.visitors.document.objects.JSONSchema.fixedFields.items;const vm=class extends ym{ObjectElement(e){const t=ym.prototype.ObjectElement.call(this,e);return ld(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},gm=Fp.visitors.document.objects.JSONSchema.fixedFields.properties;const bm=class extends gm{ObjectElement(e){const t=gm.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},xm=Fp.visitors.document.objects.JSONSchema.fixedFields.type;const Em=class extends xm{ArrayElement(e){return this.enter(e)}},wm=Fp.visitors.JSONSchemaOrJSONReferenceVisitor;const jm=class extends wm{ObjectElement(e){const t=wm.prototype.enter.call(this,e);return ld(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Sm extends(ju(lh,Zp)){constructor(e){super(e),this.element=new rl,this.specPath=Zs(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Om=Sm;class Pm extends vo.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Pm.primaryClass)}}const $m=Pm;class Am extends(ju($h,Zp)){constructor(e){super(e),this.element=new $m,this.specPath=Zs(["value"])}}const km=Am;class Tm extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Xp,this.specPath=Zs(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Cm=Tm;class Fm extends vo.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Fm.primaryClass),this.classes.push("examples")}}const Mm=Fm;const Im=class extends Od{constructor(e){super(e),this.element=new Mm}};class Rm extends vo.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Rm.primaryClass),this.classes.push("content")}}const Dm=Rm;const _m=class extends nm{constructor(e){super(e),this.element=new Dm}};class Nm extends vo.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Nm.primaryClass)}}const Lm=Nm;class Bm extends(ju($h,Zp)){constructor(e){super(e),this.element=new Lm,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}}const qm=Bm;class Um extends vo.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Um.primaryClass)}}const Vm=Um;class Jm extends(ju($h,Zp)){constructor(e){super(e),this.element=new Vm,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(pd).forEach((e,t)=>{e.setMetaProperty("http-status-code",Lc(t))}),t}}const Hm=Jm;class zm extends vo.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(zm.primaryClass),this.classes.push("parameters")}}const Gm=zm;class Wm extends(ju($h,Zp)){constructor(e){super(e),this.element=new Gm,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","parameter")}),t}}const Km=Wm;class Ym extends vo.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Ym.primaryClass),this.classes.push("examples")}}const Xm=Ym;class Qm extends(ju($h,Zp)){constructor(e){super(e),this.element=new Xm,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const Zm=Qm;class ef extends vo.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(ef.primaryClass)}}const tf=ef;class rf extends(ju($h,Zp)){constructor(e){super(e),this.element=new tf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","requestBody")}),t}}const sf=rf;class nf extends vo.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(nf.primaryClass)}}const of=nf;class cf extends(ju($h,Zp)){constructor(e){super(e),this.element=new of,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.filter(Zh).forEach((e,t)=>{e.setMetaProperty("header-name",Lc(t))}),t}}const af=cf;class lf extends vo.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(lf.primaryClass)}}const uf=lf;class pf extends(ju($h,Zp)){constructor(e){super(e),this.element=new uf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","securityScheme")}),t}}const hf=pf;class df extends vo.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(df.primaryClass)}}const mf=df;class ff extends(ju($h,Zp)){constructor(e){super(e),this.element=new mf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const yf=ff;class vf extends vo.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(vf.primaryClass)}}const gf=vf;class bf extends(ju($h,Zp)){constructor(e){super(e),this.element=new gf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const xf=bf;class Ef extends(ju(lh,Zp)){constructor(e){super(e),this.element=new ol,this.specPath=Zs(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return Ro(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const wf=Ef;const jf=class extends Zp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Sf extends(ju(lh,Zp)){constructor(e){super(e),this.element=new al,this.specPath=Zs(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Of=Sf;class Pf extends(ju(lh,Zp)){constructor(e){super(e),this.element=new nl,this.specPath=Zs(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return Lo(this.element.headers)&&this.element.headers.filter(Zh).forEach((e,t)=>{e.setMetaProperty("header-name",Lc(t))}),t}}const $f=Pf;class Af extends vo.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Af.primaryClass)}}const kf=Af;class Tf extends(ju($h,Zp)){constructor(e){super(e),this.element=new kf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Zh(e))return;const r=Lc(t);e.setMetaProperty("headerName",r)}),t}}const Cf=Tf;class Ff extends(ju(Ph,Zp)){constructor(e){super(e),this.element=new Il,this.specPath=Zs(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Xo}ObjectElement(e){const t=Ph.prototype.ObjectElement.call(this,e);return this.element.filter(cd).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",jc(t))}),t}}const Mf=Ff;class If extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Nl,this.specPath=Zs(["document","objects","RequestBody"])}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return Lo(this.element.contentProp)&&this.element.contentProp.filter(bd).forEach((e,t)=>{e.setMetaProperty("media-type",Lc(t))}),t}}const Rf=If;class Df extends vo.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Df.primaryClass),this.classes.push("content")}}const _f=Df;const Nf=class extends nm{constructor(e){super(e),this.element=new _f}};class Lf extends(ju(Ph,Zp)){constructor(e){super(e),this.element=new Ya,this.specPath=Zs(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(cd).forEach((e,t)=>{e.setMetaProperty("runtime-expression",Lc(t))}),t}}const Bf=Lf;class qf extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Bl,this.specPath=Zs(["document","objects","Response"])}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return Lo(this.element.contentProp)&&this.element.contentProp.filter(bd).forEach((e,t)=>{e.setMetaProperty("media-type",Lc(t))}),Lo(this.element.headers)&&this.element.headers.filter(Zh).forEach((e,t)=>{e.setMetaProperty("header-name",Lc(t))}),t}}const Uf=qf;class Vf extends vo.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Vf.primaryClass)}}const Jf=Vf;class Hf extends(ju($h,Zp)){constructor(e){super(e),this.element=new Jf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Zh(e))return;const r=Lc(t);e.setMetaProperty("header-name",r)}),t}}const zf=Hf;class Gf extends vo.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Gf.primaryClass),this.classes.push("content")}}const Wf=Gf;const Kf=class extends nm{constructor(e){super(e),this.element=new Wf}};class Yf extends vo.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(Yf.primaryClass)}}const Xf=Yf;class Qf extends(ju($h,Zp)){constructor(e){super(e),this.element=new Xf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const Zf=Qf;function ey(e){return"[object Number]"===Object.prototype.toString.call(e)}var ty=$r(function(e,t){if(!ey(e)||!ey(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r});const ry=ty;function sy(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!gs(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!gs(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const ny=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!sy(e,!0,this)},e.prototype.has=function(e){return sy(e,!1,this)},e}();const iy=$r(function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new ny,c=0;c<i;c+=1)o.add(t[c]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r});class oy extends(ju(lh,Ph)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...iy(e.keys(),t)],lh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ph.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return ec}}const cy=oy;class ay extends(ju(cy,Zp)){constructor(e){super(e),this.element=new Ul,this.specPathFixedFields=Zs(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ih(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${ry(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=cy.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(pd).forEach((e,t)=>{const r=jc(t);this.fieldPatternPredicate(Lc(r))&&e.setMetaProperty("http-status-code",r)}),t}}const ly=ay;class uy extends(ju(Gh,Zp)){constructor(e){super(e),this.alternator=[{predicate:ih,specPath:["document","objects","Reference"]},{predicate:Xo,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Gh.prototype.enter.call(this,e);return ld(this.element)?this.element.setMetaProperty("referenced-element","response"):pd(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const py=uy;class hy extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Al,this.specPath=Zs(["document","objects","Operation"])}}const dy=hy;class my extends vo.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(my.primaryClass)}}const fy=my;const yy=class extends Zp{constructor(e){super(e),this.element=new fy}ArrayElement(e){return this.element=this.element.concat(jc(e)),ec}};class vy extends vo.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(vy.primaryClass),this.classes.push("parameters")}}const gy=vy;class by extends(ju(eh,Zp)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach(e=>{const t=ih(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);ld(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const xy=by;const Ey=class extends xy{constructor(e){super(e),this.element=new gy}};const wy=class extends Gh{constructor(e){super(e),this.alternator=[{predicate:ih,specPath:["document","objects","Reference"]},{predicate:Xo,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Gh.prototype.enter.call(this,e);return ld(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class jy extends vo.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(jy.primaryClass)}}const Sy=jy;class Oy extends(ju($h,Zp)){specPath;constructor(e){super(e),this.element=new Sy,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(ld).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const Py=Oy;class $y extends vo.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push($y.primaryClass),this.classes.push("security")}}const Ay=$y;class ky extends(ju(eh,Zp)){constructor(e){super(e),this.element=new Ay}ArrayElement(e){return e.forEach(e=>{const t=Lo(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const Ty=ky;class Cy extends vo.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Cy.primaryClass),this.classes.push("servers")}}const Fy=Cy;const My=class extends Nh{constructor(e){super(e),this.element=new Fy}};class Iy extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Fl,this.specPath=Zs(["document","objects","PathItem"])}ObjectElement(e){const t=lh.prototype.ObjectElement.call(this,e);return this.element.filter(id).forEach((e,t)=>{const r=jc(t);r.content=Lc(r).toUpperCase(),e.setMetaProperty("http-method",r)}),Ro(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ry=Iy;const Dy=class extends Zp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class _y extends vo.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(_y.primaryClass),this.classes.push("servers")}}const Ny=_y;const Ly=class extends Nh{constructor(e){super(e),this.element=new Ny}};class By extends vo.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(By.primaryClass),this.classes.push("parameters")}}const qy=By;const Uy=class extends xy{constructor(e){super(e),this.element=new qy}};class Vy extends(ju(lh,Zp)){constructor(e){super(e),this.element=new Vp,this.specPath=Zs(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Jy=Vy;class Hy extends(ju(lh,Zp)){constructor(e){super(e),this.element=new wl,this.specPath=Zs(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const zy=Hy;class Gy extends(ju(lh,Zp)){constructor(e){super(e),this.element=new xl,this.specPath=Zs(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Wy=Gy;class Ky extends vo.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Ky.primaryClass)}}const Yy=Ky;class Xy extends(ju($h,Zp)){constructor(e){super(e),this.element=new Yy,this.specPath=Zs(["value"])}}const Qy=Xy;class Zy extends vo.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Zy.primaryClass)}}const ev=Zy;class tv extends(ju(eh,Zp)){constructor(e){super(e),this.element=new ev}ArrayElement(e){return e.forEach(e=>{const t=ch(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),ec}}const rv=tv,{fixedFields:sv}=Fp.visitors.document.objects.JSONSchema,nv={visitors:{value:Zp,document:{objects:{OpenApi:{$visitor:ph,fixedFields:{openapi:dh,info:{$ref:"#/visitors/document/objects/Info"},servers:Nh,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Nd,tags:rv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:yh,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:vh}},Contact:{$visitor:bh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Eh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Mh,fixedFields:{url:Ih,description:{$ref:"#/visitors/value"},variables:Jh}},ServerVariable:{$visitor:Bh,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Bd,fixedFields:{schemas:qm,responses:Hm,parameters:Km,examples:Zm,requestBodies:sf,headers:af,securitySchemes:hf,links:yf,callbacks:xf}},Paths:{$visitor:Mf},PathItem:{$visitor:Ry,fixedFields:{$ref:Dy,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:Ly,parameters:Uy}},Operation:{$visitor:dy,fixedFields:{tags:yy,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Ey,requestBody:wy,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Py,deprecated:{$ref:"#/visitors/value"},security:Ty,servers:My}},ExternalDocumentation:{$visitor:Of,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Gd,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:Kd,example:{$ref:"#/visitors/value"},examples:Im,content:_m}},RequestBody:{$visitor:Rf,fixedFields:{description:{$ref:"#/visitors/value"},content:Nf,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:zh,fixedFields:{schema:jd,example:{$ref:"#/visitors/value"},examples:Ad,encoding:Fd}},Encoding:{$visitor:$f,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Cf,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:ly,fixedFields:{default:py}},Response:{$visitor:Uf,fixedFields:{description:{$ref:"#/visitors/value"},headers:zf,content:Kf,links:Zf}},Callback:{$visitor:Bf},Example:{$visitor:wf,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:jf}},Link:{$visitor:jh,fixedFields:{operationRef:Sh,operationId:Oh,parameters:Ch,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Xd,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:Zd,example:{$ref:"#/visitors/value"},examples:rm,content:cm}},Tag:{$visitor:Ud,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Jd,fixedFields:{$ref:Hd}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:lm,fixedFields:{title:sv.title,multipleOf:sv.multipleOf,maximum:sv.maximum,exclusiveMaximum:sv.exclusiveMaximum,minimum:sv.minimum,exclusiveMinimum:sv.exclusiveMinimum,maxLength:sv.maxLength,minLength:sv.minLength,pattern:sv.pattern,maxItems:sv.maxItems,minItems:sv.minItems,uniqueItems:sv.uniqueItems,maxProperties:sv.maxProperties,minProperties:sv.minProperties,required:sv.required,enum:sv.enum,type:Em,allOf:pm,anyOf:dm,oneOf:fm,not:jm,items:vm,properties:bm,additionalProperties:jm,description:sv.description,format:sv.format,default:sv.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:Om,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:km}},XML:{$visitor:Cm,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Jy,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:zy,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:Wy,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Qy}},SecurityRequirement:{$visitor:Id}},extension:{$visitor:mh}}}},iv=e=>{if(Io(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ov={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},cv={namespace:e=>{const{base:t}=e;return t.register("callback",Ya),t.register("components",Qa),t.register("contact",el),t.register("discriminator",rl),t.register("encoding",nl),t.register("example",ol),t.register("externalDocumentation",al),t.register("header",ul),t.register("info",hl),t.register("license",ml),t.register("link",yl),t.register("mediaType",gl),t.register("oAuthFlow",xl),t.register("oAuthFlows",wl),t.register("openapi",Sl),t.register("openApi3_0",Pl),t.register("operation",Al),t.register("parameter",Tl),t.register("pathItem",Fl),t.register("paths",Il),t.register("reference",Dl),t.register("requestBody",Nl),t.register("response",Bl),t.register("responses",Ul),t.register("schema",Lp),t.register("securityRequirement",qp),t.register("securityScheme",Vp),t.register("server",Hp),t.register("serverVariable",Gp),t.register("tag",Kp),t.register("xml",Xp),t}},av=()=>{const e=ta(cv);return{predicates:{...c,isElement:Io,isStringElement:Ro,isArrayElement:Bo,isObjectElement:Lo,isMemberElement:qo,includesClasses:Yo,hasElementSourceMap:Wo},namespace:e}},lv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,vo.e)(e),n=Ec(nv),i=new(yc(t,n))({specObj:n});return Fc(s,i),ia(i.element,r,{toolboxCreator:av,visitorOptions:{keyMap:ov,nodeTypeGetter:iv}})},uv=e=>(t,r={})=>lv(t,{specPath:e,...r});Ya.refract=uv(["visitors","document","objects","Callback","$visitor"]),Qa.refract=uv(["visitors","document","objects","Components","$visitor"]),el.refract=uv(["visitors","document","objects","Contact","$visitor"]),ol.refract=uv(["visitors","document","objects","Example","$visitor"]),rl.refract=uv(["visitors","document","objects","Discriminator","$visitor"]),nl.refract=uv(["visitors","document","objects","Encoding","$visitor"]),al.refract=uv(["visitors","document","objects","ExternalDocumentation","$visitor"]),ul.refract=uv(["visitors","document","objects","Header","$visitor"]),hl.refract=uv(["visitors","document","objects","Info","$visitor"]),ml.refract=uv(["visitors","document","objects","License","$visitor"]),yl.refract=uv(["visitors","document","objects","Link","$visitor"]),gl.refract=uv(["visitors","document","objects","MediaType","$visitor"]),xl.refract=uv(["visitors","document","objects","OAuthFlow","$visitor"]),wl.refract=uv(["visitors","document","objects","OAuthFlows","$visitor"]),Sl.refract=uv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Pl.refract=uv(["visitors","document","objects","OpenApi","$visitor"]),Al.refract=uv(["visitors","document","objects","Operation","$visitor"]),Tl.refract=uv(["visitors","document","objects","Parameter","$visitor"]),Fl.refract=uv(["visitors","document","objects","PathItem","$visitor"]),Il.refract=uv(["visitors","document","objects","Paths","$visitor"]),Dl.refract=uv(["visitors","document","objects","Reference","$visitor"]),Nl.refract=uv(["visitors","document","objects","RequestBody","$visitor"]),Bl.refract=uv(["visitors","document","objects","Response","$visitor"]),Ul.refract=uv(["visitors","document","objects","Responses","$visitor"]),Lp.refract=uv(["visitors","document","objects","Schema","$visitor"]),qp.refract=uv(["visitors","document","objects","SecurityRequirement","$visitor"]),Vp.refract=uv(["visitors","document","objects","SecurityScheme","$visitor"]),Hp.refract=uv(["visitors","document","objects","Server","$visitor"]),Gp.refract=uv(["visitors","document","objects","ServerVariable","$visitor"]),Kp.refract=uv(["visitors","document","objects","Tag","$visitor"]),Xp.refract=uv(["visitors","document","objects","XML","$visitor"]);const pv=class extends Ya{};const hv=class extends Qa{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const dv=class extends el{};const mv=class extends rl{};const fv=class extends nl{};const yv=class extends ol{};const vv=class extends al{};const gv=class extends ul{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const bv=class extends hl{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 xv extends vo.Om{static default=new xv("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Ev=xv;const wv=class extends ml{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const jv=class extends yl{};const Sv=class extends gl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ov=class extends xl{};const Pv=class extends wl{};const $v=class extends Sl{};class Av extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const kv=Av;const Tv=class extends Al{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Cv=class extends Tl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Fv=class extends Fl{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 Il{};class Iv extends Dl{}Object.defineProperty(Iv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Iv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Rv=Iv;const Dv=class extends Nl{};const _v=class extends Bl{};const Nv=class extends Ul{};const Lv=class extends Hl{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Vl("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Vl("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Bv=class extends Xl{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Vl("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Vl("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Vl("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Vl("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Vl("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Vl("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var qv=Ar(function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!uc(s)&&ns(n,s)&&"object"==typeof s[n]?s[n]:Gr(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Gr(e)&&kr(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)});const Uv=qv;const Vv=Ar(function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s});var Jv=Ar(function(e,t,r){return Uv([e],t,r)});const Hv=Jv;var zv=$r(function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Gr(e)&&kr(t))return Vv(e,1,t);var r={};for(var s in t)r[s]=t[s];return delete r[e],r}(t[0],r);default:var s=t[0],n=Array.prototype.slice.call(t,1);return null==r[s]?function(e,t){if(Gr(e)&&kr(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):Hv(s,e(n,r[s]),r)}});const Gv=zv;const Wv=class extends Lu{constructor(e){super(e),this.element=new Lv}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const Kv=class extends Uu{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ec}};const Yv=class extends nu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const Xv=class extends Cp{constructor(e){super(e),this.element=new Bv}},Qv=Hr(Uv(["visitors","document","objects","JSONSchema","$visitor"],Wv),Gv(["visitors","document","objects","JSONSchema","fixedFields","id"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","$id"],Fp.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","contains"],Fp.visitors.JSONSchemaOrJSONReferenceVisitor),Uv(["visitors","document","objects","JSONSchema","fixedFields","items"],Kv),Uv(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Fp.visitors.JSONSchemaOrJSONReferenceVisitor),Uv(["visitors","document","objects","JSONSchema","fixedFields","const"],Fp.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","examples"],Yv),Uv(["visitors","document","objects","LinkDescription","$visitor"],Xv),Uv(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Fp.visitors.JSONSchemaOrJSONReferenceVisitor),Gv(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Uv(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Fp.visitors.JSONSchemaOrJSONReferenceVisitor),Gv(["visitors","document","objects","LinkDescription","fixedFields","method"]),Gv(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Uv(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Fp.visitors.value))(Fp),Zv={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Tc},eg=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lv||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s)),tg=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bv||e(s)&&t("linkDescription",s)&&r("object",s)),rg={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Lv),t.register("jSONReference",Gl),t.register("media",Kl),t.register("linkDescription",Bv),t}},sg=()=>{const e=ta(rg);return{predicates:{...a,isStringElement:Ro},namespace:e}},ng=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Qv}={})=>{const n=(0,vo.e)(e),i=Ec(s),o=new(yc(t,i))({specObj:i});return Fc(n,o),ia(o.element,r,{toolboxCreator:sg,visitorOptions:{keyMap:Zv,nodeTypeGetter:Mp}})},ig=e=>(t,r={})=>ng(t,{specPath:e,...r});Lv.refract=ig(["visitors","document","objects","JSONSchema","$visitor"]),Bv.refract=ig(["visitors","document","objects","LinkDescription","$visitor"]);const og=class extends Lv{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",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 not(){return this.get("not")}set not(e){this.set("not",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 media(){throw new Vl('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Vl('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const cg=class extends Bv{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Vl("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Vl("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Vl("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Vl("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const ag=class extends Wv{constructor(e){super(e),this.element=new og}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const lg=class extends Xv{constructor(e){super(e),this.element=new cg}},ug=Hr(Uv(["visitors","document","objects","JSONSchema","$visitor"],ag),Uv(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Qv.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","if"],Qv.visitors.JSONSchemaOrJSONReferenceVisitor),Uv(["visitors","document","objects","JSONSchema","fixedFields","then"],Qv.visitors.JSONSchemaOrJSONReferenceVisitor),Uv(["visitors","document","objects","JSONSchema","fixedFields","else"],Qv.visitors.JSONSchemaOrJSONReferenceVisitor),Gv(["visitors","document","objects","JSONSchema","fixedFields","media"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Qv.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Qv.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Qv.visitors.value),Uv(["visitors","document","objects","LinkDescription","$visitor"],lg),Uv(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Qv.visitors.value),Uv(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Qv.visitors.value),Gv(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Uv(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Qv.visitors.value),Uv(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Qv.visitors.value),Uv(["visitors","document","objects","LinkDescription","fixedFields","description"],Qv.visitors.value),Uv(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Qv.visitors.value),Uv(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Qv.visitors.JSONSchemaOrJSONReferenceVisitor),Gv(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Uv(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Qv.visitors.value))(Qv),pg={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Tc},hg=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof og||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s)),dg=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cg||e(s)&&t("linkDescription",s)&&r("object",s)),mg={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",og),t.register("jSONReference",Gl),t.register("linkDescription",cg),t}},fg=()=>{const e=ta(mg);return{predicates:{...l,isStringElement:Ro},namespace:e}},yg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=ug}={})=>{const n=(0,vo.e)(e),i=Ec(s),o=new(yc(t,i))({specObj:i});return Fc(n,o),ia(o.element,r,{toolboxCreator:fg,visitorOptions:{keyMap:pg,nodeTypeGetter:Mp}})},vg=e=>(t,r={})=>yg(t,{specPath:e,...r});og.refract=vg(["visitors","document","objects","JSONSchema","$visitor"]),cg.refract=vg(["visitors","document","objects","LinkDescription","$visitor"]);const gg=class extends og{constructor(e,t,r){super(e,t,r),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",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 definitions(){throw new Vl("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Vl("definitions keyword from Validation vocabulary has been renamed to $defs.")}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 dependencies(){throw new Vl("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Vl("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}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 additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",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 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 dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const bg=class extends cg{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const xg=class extends ag{constructor(e){super(e),this.element=new gg}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Fu.prototype.ObjectElement.call(this,e);return Ro(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Eg=class extends nu{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const wg=class extends nu{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class jg extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=Zs(["document","objects","JSONSchema"])}}const Sg=jg;class Og extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),ec}}const Pg=Og;class $g extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),ec}}const Ag=$g;class kg extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),ec}}const Tg=kg;class Cg extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Zs(["document","objects","JSONSchema"])}}const Fg=Cg;class Mg extends(ju(Cu,Mu,nu)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ec}ArrayElement(e){return this.element=new vo.wE,this.element.classes.push("json-schema-items"),e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),ec}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ec}}const Ig=Mg;class Rg extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=Zs(["document","objects","JSONSchema"])}}const Dg=Rg;class _g extends(ju(Hu,Mu,nu)){constructor(e){super(e),this.element=new vo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=Zs(["document","objects","JSONSchema"])}}const Ng=_g;const Lg=class extends nu{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Bg=class extends lg{constructor(e){super(e),this.element=new bg}},qg=Hr(Uv(["visitors","document","objects","JSONSchema","$visitor"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Eg),Uv(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],ug.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],ug.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],ug.visitors.value),Gv(["visitors","document","objects","JSONReference","$visitor"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","$ref"],wg),Gv(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Sg),Uv(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Pg),Uv(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Ag),Uv(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Tg),Uv(["visitors","document","objects","JSONSchema","fixedFields","not"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","if"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","then"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","else"],xg),Gv(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Fg),Uv(["visitors","document","objects","JSONSchema","fixedFields","items"],Ig),Uv(["visitors","document","objects","JSONSchema","fixedFields","contains"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","properties"],Dg),Uv(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Ng),Uv(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],ug.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","minContains"],ug.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Lg),Uv(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],ug.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],xg),Uv(["visitors","document","objects","LinkDescription","$visitor"],Bg),Uv(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],xg),Uv(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],xg),Uv(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],xg),Uv(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],xg))(ug),Ug={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Tc},Vg=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gg||e(s)&&t("JSONSchema201909",s)&&r("object",s)),Jg=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bg||e(s)&&t("linkDescription",s)&&r("object",s)),Hg={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",gg),t.register("linkDescription",bg),t}},zg=()=>{const e=ta(Hg);return{predicates:{...u,isStringElement:Ro},namespace:e}},Gg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=qg}={})=>{const n=(0,vo.e)(e),i=Ec(s),o=new(yc(t,i))({specObj:i});return Fc(n,o),ia(o.element,r,{toolboxCreator:zg,visitorOptions:{keyMap:Ug,nodeTypeGetter:Mp}})},Wg=e=>(t,r={})=>Gg(t,{specPath:e,...r});gg.refract=Wg(["visitors","document","objects","JSONSchema","$visitor"]),bg.refract=Wg(["visitors","document","objects","LinkDescription","$visitor"]);const Kg=class extends gg{constructor(e,t,r){super(e,t,r),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Vl("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Vl("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Vl("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Vl("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const Yg=class extends bg{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Xg=class extends xg{constructor(e){super(e),this.element=new Kg}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class Qg extends(ju(Cu,Mu,nu)){constructor(e){super(e),this.element=new vo.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),ec}}const Zg=Qg;const eb=class extends Bg{constructor(e){super(e),this.element=new Yg}},tb=Hr(Uv(["visitors","document","objects","JSONSchema","$visitor"],Xg),Gv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],qg.visitors.value),Gv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],qg.visitors.value),Uv(["visitors","document","objects","JSONSchema","fixedFields","not"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","if"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","then"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","else"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Zg),Uv(["visitors","document","objects","JSONSchema","fixedFields","items"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","contains"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Xg),Gv(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Uv(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Xg),Uv(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Xg),Uv(["visitors","document","objects","LinkDescription","$visitor"],eb),Uv(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Xg),Uv(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Xg),Uv(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Xg),Uv(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Xg))(qg),rb={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Tc},sb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kg||e(s)&&t("JSONSchema202012",s)&&r("object",s)),nb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yg||e(s)&&t("linkDescription",s)&&r("object",s)),ib={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",Kg),t.register("linkDescription",Yg),t}},ob=()=>{const e=ta(ib);return{predicates:{...p,isStringElement:Ro},namespace:e}},cb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=tb}={})=>{const n=(0,vo.e)(e),i=Ec(s),o=new(yc(t,i))({specObj:i});return Fc(n,o),ia(o.element,r,{toolboxCreator:ob,visitorOptions:{keyMap:rb,nodeTypeGetter:Mp}})},ab=e=>(t,r={})=>cb(t,{specPath:e,...r});Kg.refract=ab(["visitors","document","objects","JSONSchema","$visitor"]),Yg.refract=ab(["visitors","document","objects","LinkDescription","$visitor"]);const lb=class extends Kg{constructor(e,t,r){super(e,t,r),this.element="schema"}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 ub=class extends qp{};const pb=class extends Vp{};const hb=class extends Hp{};const db=class extends Gp{};const mb=class extends Kp{};const fb=class extends Xp{};class yb extends(ju(lh,Zp)){constructor(e){super(e),this.element=new kv,this.specPath=Zs(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,lh.prototype.ObjectElement.call(this,e)}}const vb=yb,gb=nv.visitors.document.objects.Info.$visitor;const bb=class extends gb{constructor(e){super(e),this.element=new bv}},xb=nv.visitors.document.objects.Contact.$visitor;const Eb=class extends xb{constructor(e){super(e),this.element=new dv}},wb=nv.visitors.document.objects.License.$visitor;const jb=class extends wb{constructor(e){super(e),this.element=new wv}},Sb=nv.visitors.document.objects.Link.$visitor;const Ob=class extends Sb{constructor(e){super(e),this.element=new jv}};class Pb extends(ju(eh,Zp)){StringElement(e){const t=new Ev(Lc(e));return this.copyMetaAndAttributes(e,t),this.element=t,ec}}const $b=Pb,Ab=nv.visitors.document.objects.Server.$visitor;const kb=class extends Ab{constructor(e){super(e),this.element=new hb}},Tb=nv.visitors.document.objects.ServerVariable.$visitor;const Cb=class extends Tb{constructor(e){super(e),this.element=new db}},Fb=nv.visitors.document.objects.MediaType.$visitor;const Mb=class extends Fb{constructor(e){super(e),this.element=new Sv}},Ib=nv.visitors.document.objects.SecurityRequirement.$visitor;const Rb=class extends Ib{constructor(e){super(e),this.element=new ub}},Db=nv.visitors.document.objects.Components.$visitor;const _b=class extends Db{constructor(e){super(e),this.element=new hv}},Nb=nv.visitors.document.objects.Tag.$visitor;const Lb=class extends Nb{constructor(e){super(e),this.element=new mb}},Bb=nv.visitors.document.objects.Reference.$visitor;const qb=class extends Bb{constructor(e){super(e),this.element=new Rv}},Ub=nv.visitors.document.objects.Parameter.$visitor;const Vb=class extends Ub{constructor(e){super(e),this.element=new Cv}},Jb=nv.visitors.document.objects.Header.$visitor;const Hb=class extends Jb{constructor(e){super(e),this.element=new gv}},zb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pv||e(s)&&t("callback",s)&&r("object",s)),Gb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hv||e(s)&&t("components",s)&&r("object",s)),Wb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dv||e(s)&&t("contact",s)&&r("object",s)),Kb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yv||e(s)&&t("example",s)&&r("object",s)),Yb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vv||e(s)&&t("externalDocumentation",s)&&r("object",s)),Xb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gv||e(s)&&t("header",s)&&r("object",s)),Qb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bv||e(s)&&t("info",s)&&r("object",s)),Zb=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ev||e(s)&&t("jsonSchemaDialect",s)&&r("string",s)),ex=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wv||e(s)&&t("license",s)&&r("object",s)),tx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jv||e(s)&&t("link",s)&&r("object",s)),rx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $v||e(s)&&t("openapi",s)&&r("string",s)),sx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof kv||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n)),nx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tv||e(s)&&t("operation",s)&&r("object",s)),ix=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cv||e(s)&&t("parameter",s)&&r("object",s)),ox=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fv||e(s)&&t("pathItem",s)&&r("object",s)),cx=e=>{if(!ox(e))return!1;if(!Ro(e.$ref))return!1;const t=Lc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ax=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mv||e(s)&&t("paths",s)&&r("object",s)),lx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rv||e(s)&&t("reference",s)&&r("object",s)),ux=e=>{if(!lx(e))return!1;if(!Ro(e.$ref))return!1;const t=Lc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},px=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dv||e(s)&&t("requestBody",s)&&r("object",s)),hx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _v||e(s)&&t("response",s)&&r("object",s)),dx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nv||e(s)&&t("responses",s)&&r("object",s)),mx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lb||e(s)&&t("schema",s)&&r("object",s)),fx=e=>No(e)&&e.classes.includes("boolean-json-schema"),yx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ub||e(s)&&t("securityRequirement",s)&&r("object",s)),vx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pb||e(s)&&t("securityScheme",s)&&r("object",s)),gx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hb||e(s)&&t("server",s)&&r("object",s)),bx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof db||e(s)&&t("serverVariable",s)&&r("object",s)),xx=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sv||e(s)&&t("mediaType",s)&&r("object",s));class Ex extends(ju(lh,Mu,Zp)){constructor(e){super(e),this.element=new lb,this.specPath=Zs(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ev.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=lh.prototype.ObjectElement.call(this,e);return Ro(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return Xg.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&Zb(this.openApiSemanticElement.jsonSchemaDialect)?Lc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ro(this.openApiGenericElement.get("jsonSchemaDialect"))?Lc(this.openApiGenericElement.get("jsonSchemaDialect")):Lc(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return Xg.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return Xg.prototype.handleSchemaIdentifier.call(this,e)}}const wx=Ex;const jx=class extends Sg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Sx=class extends Pg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Ox=class extends Ag{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Px=class extends Tg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const $x=class extends Fg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Ax=class extends Zg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const kx=class extends Dg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Tx=class extends Ng{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Cx=nv.visitors.document.objects.Discriminator.$visitor;const Fx=class extends Cx{constructor(e){super(e),this.element=new mv,this.canSupportSpecificationExtensions=!0}},Mx=nv.visitors.document.objects.XML.$visitor;const Ix=class extends Mx{constructor(e){super(e),this.element=new fb}};class Rx extends(ju($h,Zp)){constructor(e){super(e),this.element=new Lm,this.specPath=Zs(["document","objects","Schema"])}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(mx).forEach((e,t)=>{e.setMetaProperty("schemaName",Lc(t))}),t}}const Dx=Rx;class _x extends vo.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(_x.primaryClass)}}const Nx=_x;class Lx extends(ju($h,Zp)){constructor(e){super(e),this.element=new Nx,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(lx).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}}const Bx=Lx,qx=nv.visitors.document.objects.Example.$visitor;const Ux=class extends qx{constructor(e){super(e),this.element=new yv}},Vx=nv.visitors.document.objects.ExternalDocumentation.$visitor;const Jx=class extends Vx{constructor(e){super(e),this.element=new vv}},Hx=nv.visitors.document.objects.Encoding.$visitor;const zx=class extends Hx{constructor(e){super(e),this.element=new fv}},Gx=nv.visitors.document.objects.Paths.$visitor;const Wx=class extends Gx{constructor(e){super(e),this.element=new Mv}},Kx=nv.visitors.document.objects.RequestBody.$visitor;const Yx=class extends Kx{constructor(e){super(e),this.element=new Dv}},Xx=nv.visitors.document.objects.Callback.$visitor;const Qx=class extends Xx{constructor(e){super(e),this.element=new pv,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Xx.prototype.ObjectElement.call(this,e);return this.element.filter(lx).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}},Zx=nv.visitors.document.objects.Response.$visitor;const eE=class extends Zx{constructor(e){super(e),this.element=new _v}},tE=nv.visitors.document.objects.Responses.$visitor;const rE=class extends tE{constructor(e){super(e),this.element=new Nv}},sE=nv.visitors.document.objects.Operation.$visitor;const nE=class extends sE{constructor(e){super(e),this.element=new Tv}},iE=nv.visitors.document.objects.PathItem.$visitor;const oE=class extends iE{constructor(e){super(e),this.element=new Fv}},cE=nv.visitors.document.objects.SecurityScheme.$visitor;const aE=class extends cE{constructor(e){super(e),this.element=new pb}},lE=nv.visitors.document.objects.OAuthFlows.$visitor;const uE=class extends lE{constructor(e){super(e),this.element=new Pv}},pE=nv.visitors.document.objects.OAuthFlow.$visitor;const hE=class extends pE{constructor(e){super(e),this.element=new Ov}};class dE extends vo.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(dE.primaryClass)}}const mE=dE;class fE extends(ju($h,Zp)){constructor(e){super(e),this.element=new mE,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(lx).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),this.element.filter(ox).forEach((e,t)=>{e.setMetaProperty("webhook-name",Lc(t))}),t}}const yE=fE,{JSONSchema:vE,LinkDescription:gE}=tb.visitors.document.objects,bE={visitors:{value:nv.visitors.value,document:{objects:{OpenApi:{$visitor:vb,fixedFields:{openapi:nv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:$b,servers:nv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:yE,components:{$ref:"#/visitors/document/objects/Components"},security:nv.visitors.document.objects.OpenApi.fixedFields.security,tags:nv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:bb,fixedFields:{title:nv.visitors.document.objects.Info.fixedFields.title,description:nv.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:nv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:nv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Eb,fixedFields:{name:nv.visitors.document.objects.Contact.fixedFields.name,url:nv.visitors.document.objects.Contact.fixedFields.url,email:nv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:jb,fixedFields:{name:nv.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:nv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:kb,fixedFields:{url:nv.visitors.document.objects.Server.fixedFields.url,description:nv.visitors.document.objects.Server.fixedFields.description,variables:nv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Cb,fixedFields:{enum:nv.visitors.document.objects.ServerVariable.fixedFields.enum,default:nv.visitors.document.objects.ServerVariable.fixedFields.default,description:nv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:_b,fixedFields:{schemas:Dx,responses:nv.visitors.document.objects.Components.fixedFields.responses,parameters:nv.visitors.document.objects.Components.fixedFields.parameters,examples:nv.visitors.document.objects.Components.fixedFields.examples,requestBodies:nv.visitors.document.objects.Components.fixedFields.requestBodies,headers:nv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:nv.visitors.document.objects.Components.fixedFields.securitySchemes,links:nv.visitors.document.objects.Components.fixedFields.links,callbacks:nv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Bx}},Paths:{$visitor:Wx},PathItem:{$visitor:oE,fixedFields:{$ref:nv.visitors.document.objects.PathItem.fixedFields.$ref,summary:nv.visitors.document.objects.PathItem.fixedFields.summary,description:nv.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:nv.visitors.document.objects.PathItem.fixedFields.servers,parameters:nv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:nE,fixedFields:{tags:nv.visitors.document.objects.Operation.fixedFields.tags,summary:nv.visitors.document.objects.Operation.fixedFields.summary,description:nv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:nv.visitors.document.objects.Operation.fixedFields.operationId,parameters:nv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:nv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:nv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:nv.visitors.document.objects.Operation.fixedFields.deprecated,security:nv.visitors.document.objects.Operation.fixedFields.security,servers:nv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Jx,fixedFields:{description:nv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:nv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Vb,fixedFields:{name:nv.visitors.document.objects.Parameter.fixedFields.name,in:nv.visitors.document.objects.Parameter.fixedFields.in,description:nv.visitors.document.objects.Parameter.fixedFields.description,required:nv.visitors.document.objects.Parameter.fixedFields.required,deprecated:nv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:nv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:nv.visitors.document.objects.Parameter.fixedFields.style,explode:nv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:nv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:nv.visitors.document.objects.Parameter.fixedFields.example,examples:nv.visitors.document.objects.Parameter.fixedFields.examples,content:nv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Yx,fixedFields:{description:nv.visitors.document.objects.RequestBody.fixedFields.description,content:nv.visitors.document.objects.RequestBody.fixedFields.content,required:nv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Mb,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:nv.visitors.document.objects.MediaType.fixedFields.example,examples:nv.visitors.document.objects.MediaType.fixedFields.examples,encoding:nv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:zx,fixedFields:{contentType:nv.visitors.document.objects.Encoding.fixedFields.contentType,headers:nv.visitors.document.objects.Encoding.fixedFields.headers,style:nv.visitors.document.objects.Encoding.fixedFields.style,explode:nv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:nv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:rE,fixedFields:{default:nv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:eE,fixedFields:{description:nv.visitors.document.objects.Response.fixedFields.description,headers:nv.visitors.document.objects.Response.fixedFields.headers,content:nv.visitors.document.objects.Response.fixedFields.content,links:nv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Qx},Example:{$visitor:Ux,fixedFields:{summary:nv.visitors.document.objects.Example.fixedFields.summary,description:nv.visitors.document.objects.Example.fixedFields.description,value:nv.visitors.document.objects.Example.fixedFields.value,externalValue:nv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Ob,fixedFields:{operationRef:nv.visitors.document.objects.Link.fixedFields.operationRef,operationId:nv.visitors.document.objects.Link.fixedFields.operationId,parameters:nv.visitors.document.objects.Link.fixedFields.parameters,requestBody:nv.visitors.document.objects.Link.fixedFields.requestBody,description:nv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Hb,fixedFields:{description:nv.visitors.document.objects.Header.fixedFields.description,required:nv.visitors.document.objects.Header.fixedFields.required,deprecated:nv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:nv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:nv.visitors.document.objects.Header.fixedFields.style,explode:nv.visitors.document.objects.Header.fixedFields.explode,allowReserved:nv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:nv.visitors.document.objects.Header.fixedFields.example,examples:nv.visitors.document.objects.Header.fixedFields.examples,content:nv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Lb,fixedFields:{name:nv.visitors.document.objects.Tag.fixedFields.name,description:nv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:qb,fixedFields:{$ref:nv.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...gE},Schema:{$visitor:wx,fixedFields:{...vE.fixedFields,$defs:jx,allOf:Sx,anyOf:Ox,oneOf:Px,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:$x,prefixItems:Ax,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:kx,patternProperties:Tx,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},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:Fx,fixedFields:{propertyName:nv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:nv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Ix,fixedFields:{name:nv.visitors.document.objects.XML.fixedFields.name,namespace:nv.visitors.document.objects.XML.fixedFields.namespace,prefix:nv.visitors.document.objects.XML.fixedFields.prefix,attribute:nv.visitors.document.objects.XML.fixedFields.attribute,wrapped:nv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:aE,fixedFields:{type:nv.visitors.document.objects.SecurityScheme.fixedFields.type,description:nv.visitors.document.objects.SecurityScheme.fixedFields.description,name:nv.visitors.document.objects.SecurityScheme.fixedFields.name,in:nv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:nv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:nv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:nv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:uE,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:hE,fixedFields:{authorizationUrl:nv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:nv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:nv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:nv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Rb}},extension:{$visitor:nv.visitors.document.extension.$visitor}}}},xE=e=>{if(Io(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},EE={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},wE={namespace:e=>{const{base:t}=e;return t.register("callback",pv),t.register("components",hv),t.register("contact",dv),t.register("discriminator",mv),t.register("encoding",fv),t.register("example",yv),t.register("externalDocumentation",vv),t.register("header",gv),t.register("info",bv),t.register("jsonSchemaDialect",Ev),t.register("license",wv),t.register("link",jv),t.register("mediaType",Sv),t.register("oAuthFlow",Ov),t.register("oAuthFlows",Pv),t.register("openapi",$v),t.register("openApi3_1",kv),t.register("operation",Tv),t.register("parameter",Cv),t.register("pathItem",Fv),t.register("paths",Mv),t.register("reference",Rv),t.register("requestBody",Dv),t.register("response",_v),t.register("responses",Nv),t.register("schema",lb),t.register("securityRequirement",ub),t.register("securityScheme",pb),t.register("server",hb),t.register("serverVariable",db),t.register("tag",mb),t.register("xml",fb),t}},jE=e=>{const t=e.reduce((t,r,s)=>{if(qo(r)){const e=String(Lc(r.key));t.push(e)}else if(Bo(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t},[]);return Na(t)},SE=()=>{const e=ta(wE);return{predicates:{...h,isElement:Io,isStringElement:Ro,isArrayElement:Bo,isObjectElement:Lo,isMemberElement:qo,isServersElement:xd,includesClasses:Yo,hasElementSourceMap:Wo},ancestorLineageToJSONPointer:jE,namespace:e}},OE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,vo.e)(e),n=Ec(bE),i=new(yc(t,n))({specObj:n});return Fc(s,i),ia(i.element,r,{toolboxCreator:SE,visitorOptions:{keyMap:EE,nodeTypeGetter:xE}})},PE=e=>(t,r={})=>OE(t,{specPath:e,...r});pv.refract=PE(["visitors","document","objects","Callback","$visitor"]),hv.refract=PE(["visitors","document","objects","Components","$visitor"]),dv.refract=PE(["visitors","document","objects","Contact","$visitor"]),yv.refract=PE(["visitors","document","objects","Example","$visitor"]),mv.refract=PE(["visitors","document","objects","Discriminator","$visitor"]),fv.refract=PE(["visitors","document","objects","Encoding","$visitor"]),vv.refract=PE(["visitors","document","objects","ExternalDocumentation","$visitor"]),gv.refract=PE(["visitors","document","objects","Header","$visitor"]),bv.refract=PE(["visitors","document","objects","Info","$visitor"]),Ev.refract=PE(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),wv.refract=PE(["visitors","document","objects","License","$visitor"]),jv.refract=PE(["visitors","document","objects","Link","$visitor"]),Sv.refract=PE(["visitors","document","objects","MediaType","$visitor"]),Ov.refract=PE(["visitors","document","objects","OAuthFlow","$visitor"]),Pv.refract=PE(["visitors","document","objects","OAuthFlows","$visitor"]),$v.refract=PE(["visitors","document","objects","OpenApi","fixedFields","openapi"]),kv.refract=PE(["visitors","document","objects","OpenApi","$visitor"]),Tv.refract=PE(["visitors","document","objects","Operation","$visitor"]),Cv.refract=PE(["visitors","document","objects","Parameter","$visitor"]),Fv.refract=PE(["visitors","document","objects","PathItem","$visitor"]),Mv.refract=PE(["visitors","document","objects","Paths","$visitor"]),Rv.refract=PE(["visitors","document","objects","Reference","$visitor"]),Dv.refract=PE(["visitors","document","objects","RequestBody","$visitor"]),_v.refract=PE(["visitors","document","objects","Response","$visitor"]),Nv.refract=PE(["visitors","document","objects","Responses","$visitor"]),lb.refract=PE(["visitors","document","objects","Schema","$visitor"]),ub.refract=PE(["visitors","document","objects","SecurityRequirement","$visitor"]),pb.refract=PE(["visitors","document","objects","SecurityScheme","$visitor"]),hb.refract=PE(["visitors","document","objects","Server","$visitor"]),db.refract=PE(["visitors","document","objects","ServerVariable","$visitor"]),mb.refract=PE(["visitors","document","objects","Tag","$visitor"]),fb.refract=PE(["visitors","document","objects","XML","$visitor"]);const $E=class extends Vl{};const AE=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new $E("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new $E("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new $E("latest method in MediaTypes class is not yet implemented.")}};class kE extends AE{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 Xr(this.filterByFormat(e))}}const TE=new kE("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");const CE=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};const FE=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===this.rootRef?e:this.rootRef,e.refSet=this),this}merge(e){for(const t of e.values())this.add(t);return this}has(e){const t=yn(e)?e:e.uri;return rn(this.find(e=>e.uri===t))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach(e=>{e.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}};function ME(e){return e}const IE=Pr(ME),RE={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:IE,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const DE=$r(function(e,t){return function(r){return function(s){return Ws(function(e){return t(e,s)},r(e(s)))}}});var _E=function(e){return{value:e,map:function(t){return _E(t(e))}}},NE=Ar(function(e,t,r){return e(function(e){return _E(t(e))})(r).value});const LE=NE;const BE=vs(""),qE=DE(yc(["resolve","baseURI"]),Uv(["resolve","baseURI"])),UE=e=>BE(e)?Cn():e,VE=(e,t)=>{const r=Uc(e,t);return LE(qE,UE,r)};const JE=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:s}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=s}get extension(){return yn(this.uri)?On(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(ms(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const HE=class extends Er{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},zE=async(e,t,r)=>{const s=await Promise.all(r.map(Qc([e],t)));return r.filter((e,t)=>s[t])},GE=async(e,t,r)=>{let s;for(const n of r)try{const r=await n[e].call(n,...t);return{plugin:n,result:r}}catch(e){s=new HE("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const WE=class extends Er{};const KE=class extends WE{};const YE=async(e,t)=>{let r=e,s=!1;if(!zo(e)){const t=Pc(e);t.classes.push("result"),r=new $o([t]),s=!0}const n=new JE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await zE("canDereference",[n,t],t.dereference.strategies);if(Wc(i))throw new KE(n.uri);try{const{result:e}=await GE("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new WE(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const XE=async(e,t={})=>{const r=VE(RE,t);return YE(e,r)};const QE=class extends Er{};const ZE=class extends QE{};const ew=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:s=[],mediaTypes:n=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=s,this.mediaTypes=n}};const tw=class extends ew{constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),s=new $o;if(0!==r.length){const e=new vo.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new ZE(`Error parsing "${e.uri}"`,{cause:t})}}};const rw=class{name;constructor({name:e}){this.name=e}};const sw=class extends rw{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find(e=>"openapi-3-1"===e.name);return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find(e=>"openapi-3-1"===e.name);if(void 0===r)throw new KE('"openapi-3-1" dereference strategy is not available.');const s=new FE,n=VE(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const nw=class{name;constructor({name:e}){this.name=e}};const iw=class extends nw{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:s=5,withCredentials:n=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=s,this.withCredentials=n}canRead(e){return $n(e.uri)}};const ow=class extends Er{};const cw=class extends ow{},{AbortController:aw,AbortSignal:lw}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=aw),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=lw);const uw=class extends iw{swaggerHTTPClient=bt;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=bt,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:s}=r,n=setTimeout(()=>{r.abort()},this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",c=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:s,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:c,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new cw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},pw=(e,t=ra)=>{if(yn(e))try{return t.fromRefract(JSON.parse(e))}catch{}return to(e)&&mc("element",e)?t.fromRefract(e):t.toElement(e)};const hw=class extends ew{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||I()(t=this.fileExtensions).call(t,e.extension),n=I()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new ZE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new $o,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=pw(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new ZE(`Error parsing "${e.uri}"`,{cause:t})}}};const dw=class extends ew{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||I()(t=this.fileExtensions).call(t,e.extension),n=I()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{return rt.load(e.toString(),{schema:ot}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new ZE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new $o,r=e.toString();try{const e=rt.load(r,{schema:ot});if(this.allowEmpty&&void 0===e)return t;const s=pw(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new ZE(`Error parsing "${e.uri}"`,{cause:t})}}};const mw=class extends ew{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new kE(...TE.filterByFormat("generic"),...TE.filterByFormat("json")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||I()(t=this.fileExtensions).call(t,e.extension),n=I()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)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 ZE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new $o,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=kv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new ZE(`Error parsing "${e.uri}"`,{cause:t})}}};const fw=class extends ew{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new kE(...TE.filterByFormat("generic"),...TE.filterByFormat("yaml")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||I()(t=this.fileExtensions).call(t,e.extension),n=I()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{const t=e.toString();return rt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new ZE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new $o,r=e.toString();try{const e=rt.load(r,{schema:ot});if(this.allowEmpty&&void 0===e)return t;const s=kv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new ZE(`Error parsing "${e.uri}"`,{cause:t})}}};const yw=Ar(function(e,t,r){return vs(e,Kr(t,r))});const vw=class{name;constructor({name:e}){this.name=e}};const gw=$r(function(e,t){return Eo(js(e),t)});var bw=r(8068);const xw=class extends wr{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class Ew{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new bw({length:e}),this.identityMap=new WeakMap}identify(e){if(!Io(e))throw new xw("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ro(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new vo.Om(this.generateId());return this.identityMap.set(e,t),t}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new Ew;const ww=Ar(function(e,t,r){return zr(e,Vi(t,r))}),jw=(e,t)=>{const r=new Cc({predicate:e,returnOnTrue:ec});return Fc(t,r),ww(void 0,[0],r.result)};const Sw=class extends Er{};const Ow=class extends Sw{};const Pw=class extends Sw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},$w=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Aw=e=>{const t=kn(e);return xc("#",t)},kw=(e,t)=>{const r=(e=>{if(!$w(e))throw new Pw(e);return e})(e),s=jw(e=>mx(e)&&Lc(e.$anchor)===r,t);if(tn(s))throw new Ow(`Evaluation failed on token: "${r}"`);return s},Tw=(e,t)=>{const r=new Cc({predicate:e});return Fc(t,r),new vo.G6(r.result)};const Cw=class extends Er{};const Fw=class extends Cw{},Mw=(e,t)=>{if(void 0===t.$ref)return;const r=kn(Lc(t.$ref)),s=Lc(t.meta.get("ancestorsSchemaIdentifiers"));return`${qr((e,t)=>Fn(e,Mn(Tn(t))),e,[...s,Lc(t.$ref)])}${"#"===r?"":r}`},Iw=e=>{if(Iw.cache.has(e))return Iw.cache.get(e);const t=lb.refract(e);return Iw.cache.set(e,t),t};Iw.cache=new WeakMap;const Rw=e=>Go(e)?Iw(e):e,Dw=(e,t)=>{const{cache:r}=Dw,s=Tn(e),n=e=>mx(e)&&void 0!==e.$id;if(!r.has(t)){const e=Tw(n,t);r.set(t,Array.from(e))}const i=r.get(t).find(e=>((e,t)=>{if(void 0===t.$id)return;const r=Lc(t.meta.get("ancestorsSchemaIdentifiers"));return qr((e,t)=>Fn(e,Mn(Tn(t))),e,r)})(s,e)===s);if(tn(i))throw new Fw(`Evaluation failed on URI: "${e}"`);return $w(Aw(e))?kw(Aw(e),i):Wa(i,pa(e))};Dw.cache=new WeakMap;const _w=class extends WE{};const Nw=class extends ow{};const Lw=class extends cw{},Bw="apidom-file-cache",qw=async({cacheKey:e,result:t,error:r,cacheTTL:s})=>{if(0!==s)try{const s={cachedResult:t,cachedError:r,timestamp:Date.now()},n=await caches.open(Bw),i=new Response(JSON.stringify(s),{headers:{"Content-Type":"application/json"}});await n.put(e,i)}catch(e){console.error("CacheStorage is not available")}},Uw=async(e,t)=>{const{cacheTTL:r=0}=t.resolve.resolverOpts,s=`read_${e.uri}`,{cachedResult:n,cachedError:i}=await(async({cacheKey:e,cacheTTL:t})=>{if(0===t)return{cachedResult:null,cachedError:null};try{const r=await caches.open(Bw),s=await r.match(e);if(s){const{cachedResult:n,cachedError:i,timestamp:o}=await s.json();if(Date.now()-o<t)return{cachedResult:n,cachedError:i};await r.delete(e)}}catch(e){return console.log("There was an error parsing the response"),{cachedResult:null,cachedError:null}}return{cachedResult:null,cachedError:null}})({cacheKey:s,cacheTTL:r});if(null!==n)return n;if(null!==i)throw new ow(`Error while reading file "${e.uri}"`,{cause:i});const o=t.resolve.resolvers.map(e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)}),c=await zE("canRead",[e,t],o);if(Wc(c))throw new Lw(e.uri);try{const{result:t}=await GE("read",[e],c),n=new JE({...e,data:t}).toString();return await qw({cacheKey:s,result:n,error:null,cacheTTL:r}),t}catch(t){var a,l,u;throw await qw({cacheKey:s,result:null,error:null!==(a=null!==(l=null==t||null===(u=t.cause)||void 0===u?void 0:u.cause)&&void 0!==l?l:null==t?void 0:t.cause)&&void 0!==a?a:t,cacheTTL:r}),new ow(`Error while reading file "${e.uri}"`,{cause:t})}},Vw=async(e,t)=>{const r=new JE({uri:Mn(Tn(e)),mediaType:t.parse.mediaType}),s=await Uw(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)}),s=await zE("canParse",[e,t],r);if(Wc(s))throw new Lw(e.uri);try{const{plugin:r,result:n}=await GE("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new QE(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new QE(`Error while parsing file "${e.uri}"`,{cause:t})}})(new JE({...r,data:s}),t)};class Jw 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(Io(r)&&e(r))return r}}const Hw=Fc[Symbol.for("nodejs.util.promisify.custom")],zw=new Ew,Gw=(e,t,r,s)=>{qo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class Ww{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new Jw,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map,errorContext:c=[],errorPropagationCache:a=new Map,pendingPropagations:l=[]}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new Jw(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o,this.errorContext=c,this.errorPropagationCache=a,this.pendingPropagations=l}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let t=this.errorContext.length-1;t>=0;t-=1)if(this.errorContext[t]===e){this.errorContext.splice(t,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach(({referencingElement:t,referencedElement:r})=>{const s=this.errorPropagationCache.get(r);Array.isArray(s)&&s.length>0&&s.forEach(r=>{const s=this.errorPropagationCache.get(t);var n;null!=s&&s.includes(r)||(null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.errors.push({error:r,refEl:t}),s?s.push(r):this.errorPropagationCache.set(t,[r]),e=!0)})}),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,t,r){var s;if(null!==(s=this.options.dereference.dereferenceOpts)&&void 0!==s&&s.continueOnError){var n,i,o;const{directAncestors:s,isExternalReference:l=!1}=null!=r?r:{},u=null!==(n=null===(i=this.options.dereference.dereferenceOpts)||void 0===i?void 0:i.skipNestedExternal)&&void 0!==n&&n,p=l&&u;if(s&&!p){for(const t of s){const r=this.errorPropagationCache.get(t);r?r.push(e):this.errorPropagationCache.set(t,[e])}const t=[...s].find(e=>Lo(e)&&e.getMetaProperty("ref-referencing-element"));var c;if(t)null===(c=this.options.dereference.dereferenceOpts)||void 0===c||c.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}if(null===(o=this.options.dereference.dereferenceOpts)||void 0===o||o.errors.push({error:e,refEl:t}),!p){const r=new Set(this.errorContext);r.delete(t),this.popErrorContext(t);for(const t of r){var a;null===(a=this.options.dereference.dereferenceOpts)||void 0===a||a.errors.push({error:e,refEl:t})}}return}throw e}getNestedVisitorOptions(e){var t,r;return{...this.options,resolve:{...this.options.resolve,external:(null===(t=this.options.dereference)||void 0===t||null===(t=t.dereferenceOpts)||void 0===t||!t.skipNestedExternal||!Lc(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...null===(r=this.options.dereference)||void 0===r?void 0:r.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return Fn(this.reference.uri,Mn(Tn(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Nw(`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(yw(t,"uri"));const s=await Vw(In(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new CE({uri:t,value:jc(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new CE({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(Io));return[new Jw(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,r,s,n,i)=>{var o,c;if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.propagateErrors(),null===(c=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===c||!c.dereferenceDiscriminatorMapping)return;const a=Pc(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,Gw),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,c;if(this.indirections.includes(e))return!1;const[a,l]=this.toAncestorLineage([...n,r]),u=this.toBaseURI(Lc(e.$ref)),p=Tn(this.reference.uri)===u,h=!p;if(!this.options.resolve.internal&&p)return!1;if(!this.options.resolve.external&&h)return!1;let d;try{d=await this.toReference(Lc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}const m=Fn(u,Lc(e.$ref));this.indirections.push(e);const f=pa(m);let y;try{y=Wa(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if(y.id=zw.identify(y),Go(y)){const t=Lc(e.meta.get("referenced-element")),r=`${t}-${Lc(zw.identify(y))}`;if(this.refractCache.has(r))y=this.refractCache.get(r);else if(ih(y))y=Rv.refract(y),y.setMetaProperty("referenced-element",t),this.refractCache.set(r,y);else{y=this.namespace.getElementClass(t).refract(y),this.refractCache.set(r,y)}}if(e===y){const t=new Er("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if(a.includes(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Er("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if("replace"===this.options.dereference.circular){var v,g;const t=new vo.sI(y.id,{type:"reference",uri:d.uri,$ref:Lc(e.$ref)}),s=(null!==(v=null===(g=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===g?void 0:g.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,Gw),!r&&s}}const b=Tn(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||lx(y)||x)&&!a.includesCycle(y)){l.add(e),this.errorContext.push(e);const t=new Ww({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await Hw(y,t,{keyMap:EE,nodeTypeGetter:xE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}l.delete(e),this.popErrorContext(e)}null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop();const E=Pc(y);return E.setMetaProperty("id",zw.generateId()),E.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),description:Lc(e.description),summary:Lc(e.summary)}),E.setMetaProperty("ref-origin",d.uri),E.setMetaProperty("ref-referencing-element-id",jc(zw.identify(e))),null!==(c=this.options.dereference.dereferenceOpts)&&void 0!==c&&c.continueOnError&&E.setMetaProperty("ref-referencing-element",e),Lo(y)&&Lo(E)&&(e.hasKey("description")&&"description"in y&&(E.remove("description"),E.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in y&&(E.remove("summary"),E.set("summary",e.get("summary")))),i.replaceWith(E,Gw),!r&&E}async PathItemElement(e,t,r,s,n,i){var o;if(!Ro(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(Lc(e.$ref)),u=Tn(this.reference.uri)===l,p=!u;if(!this.options.resolve.internal&&u)return;if(!this.options.resolve.external&&p)return;let h;try{h=await this.toReference(Lc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}const d=Fn(l,Lc(e.$ref));this.indirections.push(e);const m=pa(d);let f;try{f=Wa(h.value.result,m)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if(f.id=zw.identify(f),Go(f)){const e=`path-item-${Lc(zw.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=Fv.refract(f),this.refractCache.set(e,f))}if(e===f){const t=new Er("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if(c.includes(f)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Er("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if("replace"===this.options.dereference.circular){var y,v;const t=new vo.sI(f.id,{type:"path-item",uri:h.uri,$ref:Lc(e.$ref)}),s=(null!==(y=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==y?y:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,Gw),!r&&s}}const g=Tn(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((p||g||ox(f)&&Ro(f.$ref)||b)&&!c.includesCycle(f)){a.add(e),this.errorContext.push(e);const t=new Ww({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{f=await Hw(f,t,{keyMap:EE,nodeTypeGetter:xE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:f}),this.indirections.pop(),ox(f)){var x;const t=new Fv([...f.content],jc(f.meta),jc(f.attributes));t.setMetaProperty("id",zw.generateId()),e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",jc(zw.identify(e))),null!==(x=this.options.dereference.dereferenceOpts)&&void 0!==x&&x.continueOnError&&t.setMetaProperty("ref-referencing-element",e),f=t}return i.replaceWith(f,Gw),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!Ro(e.operationRef)&&!Ro(e.operationId))return;if(Ro(e.operationRef)&&Ro(e.operationId)){const t=new Er("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(Ro(e.operationRef)){var c;const t=pa(Lc(e.operationRef)),s=this.toBaseURI(Lc(e.operationRef)),n=Tn(this.reference.uri)===s,a=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&a)return;let l;try{l=await this.toReference(Lc(e.operationRef)),o=Wa(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:a})}if(Go(o)){const e=`operation-${Lc(zw.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=Tv.refract(o),this.refractCache.set(e,o))}o=Pc(o),o.setMetaProperty("ref-origin",l.uri);const u=Pc(e);return null===(c=u.operationRef)||void 0===c||c.meta.set("operation",o),i.replaceWith(u,Gw),r?void 0:u}if(Ro(e.operationId)){var a;const t=Lc(e.operationId);let s;try{s=await this.toReference(In(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=jw(e=>nx(e)&&Io(e.operationId)&&e.operationId.equals(t),s.value.result),tn(o)){const r=new Er(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=Pc(e);return null===(a=n.operationId)||void 0===a||a.meta.set("operation",o),i.replaceWith(n,Gw),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!Ro(e.externalValue))return;if(e.hasKey("value")&&Ro(e.externalValue)){const t=new Er("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=this.toBaseURI(Lc(e.externalValue)),c=Tn(this.reference.uri)===o,a=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&a)return;let l;try{l=await this.toReference(Lc(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:a})}const u=Pc(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=Pc(e);return p.value=u,i.replaceWith(p,Gw),r?void 0:p}async MemberElement(e,t,r,s,n,i){var o;const c=n[n.length-1];if(!Lo(c)||!c.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!Ro(e.key)||!Ro(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[a,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(mx),p=jc(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Lc(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new lb({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new Ww({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let y;try{y=await Hw(m,f,{keyMap:EE,nodeTypeGetter:xE})}catch(e){const t=!d.startsWith("#");return this.handleDereferenceError(e,m,{directAncestors:l,isExternalReference:t})}l.delete(m),this.indirections.pop();const v=Pc(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,Gw),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!Ro(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(In(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a})}let{uri:u}=l;const p=Mw(u,e),h=Tn(p),d=new JE({uri:h}),m=gw(e=>e.canRead(d),this.options.resolve.resolvers),f=!m;let y,v=Tn(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=Rw(l.value.result);if(y=Dw(e,t),y=Rw(y),y.id=zw.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=Tn(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(In(p));const e=pa(p),t=Rw(l.value.result);y=Wa(t,e),y=Rw(y),y.id=zw.identify(y)}}catch(t){if(!(f&&t instanceof Fw))return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g});if($w(Aw(p))){if(v=Tn(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(In(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=Aw(p),r=Rw(l.value.result);try{y=kw(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=Rw(y),y.id=zw.identify(y)}else{if(u=this.toBaseURI(p),v=Tn(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(In(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=pa(p),r=Rw(l.value.result);try{y=Wa(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=Rw(y),y.id=zw.identify(y)}}if(e===y){const t=new Er("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(c.includes(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Er("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if("replace"===this.options.dereference.circular){var b,x;const t=new vo.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Lc(e.$ref)}),s=(null!==(b=null===(x=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===x?void 0:x.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,Gw),!r&&s}}const E=Tn(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||mx(y)&&Ro(y.$ref)||w)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=new Ww({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await Hw(y,t,{keyMap:EE,nodeTypeGetter:xE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop(),fx(y)){const t=jc(y);return t.setMetaProperty("id",zw.generateId()),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",jc(zw.identify(e))),i.replaceWith(t,Gw),!r&&t}if(mx(y)){var j,S;const t=new lb([...y.content],jc(y.meta),jc(y.attributes));if(t.setMetaProperty("id",zw.generateId()),e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",jc(zw.identify(e))),null!==(j=this.options.dereference.dereferenceOpts)&&void 0!==j&&j.continueOnError&&t.setMetaProperty("ref-referencing-element",e),null!==(S=this.options.dereference.strategyOpts["openapi-3-1"])&&void 0!==S&&S.dereferenceDiscriminatorMapping){var O;const e=n[n.length-1],r=[...a].findLast(mx),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Lc(t.getMetaProperty("schemaName"));if(i&&s&&null!=e&&null!==(O=e.classes)&&void 0!==O&&O.contains("json-schema-allOf")){var P;const e=null!==(P=this.allOfDiscriminatorMapping.get(i))&&void 0!==P?P:[];e.push(r),this.allOfDiscriminatorMapping.set(i,e)}}y=t}return i.replaceWith(y,Gw),r?void 0:y}}const Kw=Ww,Yw=Fc[Symbol.for("nodejs.util.promisify.custom")];const Xw=class extends vw{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?TE.includes(e.mediaType):sx(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=ta(wE),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new FE,i=new FE;let o,c=n;n.has(e.uri)?o=n.find(yw(e.uri,"uri")):(o=new CE({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map(e=>new CE({...e,value:jc(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),c=i);const a=new Kw({reference:o,namespace:s,options:t}),l=await Yw(c.rootRef.value,a,{keyMap:EE,nodeTypeGetter:xE});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new CE({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>n.add(e)),null===t.dereference.refSet&&n.clean(),i.clean(),l}},Qw=e=>{const t=(e=>e.slice(2))(e);return t.reduce((e,r,s)=>{if(qo(r)){const t=String(Lc(r.key));e.push(t)}else if(Bo(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e},[])};const Zw=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Lo(e.properties)&&e.properties.forEach(t=>{if(Lo(t))try{const e=this.modelPropertyMacro(Lc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...Qw([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};var ej=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=$s,e.prototype["@@transducer/result"]=As,e.prototype["@@transducer/step"]=function(e,t){return ss(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function tj(e){return function(t){return new ej(e,t)}}const rj=$r(Os([],tj,function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)ss(e,r=t[s],i)||(i[i.length]=r),s+=1;return i}));const sj=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!Bo(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...Qw([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(mx)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...Qw([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=ru.all([...t.content,e],{customMerge:e=>"enum"===Lc(e)?(e,t)=>{if(Yo(["json-schema-enum"],e)&&Yo(["json-schema-enum"],t)){const r=(e,t)=>!(Bo(e)||Bo(t)||Lo(e)||Lo(t))&&e.equals(Lc(t)),s=Pc(e);return s.content=rj(r)([...e.content,...t.content]),s}return ru(e,t)}:ru});if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}};const nj=class{parameterMacro;options;#s;OperationElement={enter:e=>{this.#s=e},leave:()=>{this.#s=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#s?Lc(this.#s):null,o=Lc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=Qw([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},ij=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const oj=class extends wr{},{wrapError:cj}=Ei,aj=Fc[Symbol.for("nodejs.util.promisify.custom")],lj=new Ew,uj=(e,t,r,s)=>{qo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class pj extends Kw{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{var o,c;if(I()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Lc(e.$ref)),l=Tn(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(Lc(e.$ref)),h=Fn(a,Lc(e.$ref));this.indirections.push(e);const d=pa(h);let m=Wa(p.value.result,d);if(m.id=lj.identify(m),Go(m)){const t=Lc(e.meta.get("referenced-element")),r=`${t}-${Lc(lj.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(ih(m))m=Rv.refract(m),m.setMetaProperty("referenced-element",t),this.refractCache.set(r,m);else{m=this.namespace.getElementClass(t).refract(m),this.refractCache.set(r,m)}}if(e===m)throw new Er("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(I()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Er("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vo.sI(m.id,{type:"reference",uri:p.uri,$ref:Lc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,uj),!r&&s}}const f=Tn(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||lx(m)||y)&&!t.includesCycle(m)){s.add(e);const i=new pj({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Qw([...n,r,e]),"$ref"]});m=await aj(m,i,{keyMap:EE,nodeTypeGetter:xE}),s.delete(e)}this.indirections.pop();const v=Pc(m);if(v.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),description:Lc(e.description),summary:Lc(e.summary)}),v.setMetaProperty("ref-origin",p.uri),v.setMetaProperty("ref-referencing-element-id",jc(lj.identify(e))),Lo(m)&&(e.hasKey("description")&&"description"in m&&(v.remove("description"),v.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in m&&(v.remove("summary"),v.set("summary",e.get("summary")))),this.allowMetaPatches&&Lo(v)&&!v.hasKey("$$ref")){const e=Fn(a,h);v.set("$$ref",e)}return i.replaceWith(v,uj),!r&&v}catch(t){const s=ij(t),i=cj(s,{baseDoc:this.reference.uri,$ref:Lc(e.$ref),pointer:pa(Lc(e.$ref)),fullPath:this.basePath??[...Qw([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{var o,c;if(!Ro(e.$ref))return;if(I()(o=this.indirections).call(o,e))return!1;if(Yo(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Lc(e.$ref)),l=Tn(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(Lc(e.$ref)),h=Fn(a,Lc(e.$ref));this.indirections.push(e);const d=pa(h);let m=Wa(p.value.result,d);if(m.id=lj.identify(m),Go(m)){const e=`path-item-${Lc(lj.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=Fv.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Er("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(I()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Er("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vo.sI(m.id,{type:"path-item",uri:p.uri,$ref:Lc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,uj),!r&&s}}const f=Tn(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||ox(m)&&Ro(m.$ref)||y)&&!t.includesCycle(m)){s.add(e);const i=new pj({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Qw([...n,r,e]),"$ref"]});m=await aj(m,i,{keyMap:EE,nodeTypeGetter:xE}),s.delete(e)}if(this.indirections.pop(),ox(m)){const t=new Fv([...m.content],jc(m.meta),jc(m.attributes));if(e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",jc(lj.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Fn(a,h);t.set("$$ref",e)}m=t}return i.replaceWith(m,uj),r?void 0:m}catch(t){const s=ij(t),i=cj(s,{baseDoc:this.reference.uri,$ref:Lc(e.$ref),pointer:pa(Lc(e.$ref)),fullPath:this.basePath??[...Qw([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{var o,c;if(!Ro(e.$ref))return;if(I()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let a=await this.toReference(In(this.reference.uri)),{uri:l}=a;const u=Mw(l,e),p=Tn(u),h=new JE({uri:p}),d=!this.options.resolve.resolvers.some(e=>e.canRead(h)),m=!d;let f,y=Tn(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(u);const e=u,t=Rw(a.value.result);if(f=Dw(e,t),f=Rw(f),f.id=lj.identify(f),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(l=this.toBaseURI(u),y=Tn(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(In(u));const e=pa(u),t=Rw(a.value.result);f=Wa(t,e),f=Rw(f),f.id=lj.identify(f)}}catch(e){if(!(m&&e instanceof Fw))throw e;if($w(Aw(u))){if(y=Tn(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(In(u));const e=Aw(u),t=Rw(a.value.result);f=kw(e,t),f=Rw(f),f.id=lj.identify(f)}else{if(l=this.toBaseURI(Lc(u)),y=Tn(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(In(u));const e=pa(u),t=Rw(a.value.result);f=Wa(t,e),f=Rw(f),f.id=lj.identify(f)}}if(e===f)throw new Er("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(I()(t).call(t,f)){if(a.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Er("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vo.sI(f.id,{type:"json-schema",uri:a.uri,$ref:Lc(e.$ref),baseURI:Fn(l,u),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,uj),!r&&s}}const g=Tn(a.refSet.rootRef.uri)!==a.uri,b=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((v||g||mx(f)&&Ro(f.$ref)||b)&&!t.includesCycle(f)){s.add(e);const i=new pj({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...Qw([...n,r,e]),"$ref"]});f=await aj(f,i,{keyMap:EE,nodeTypeGetter:xE}),s.delete(e)}if(this.indirections.pop(),fx(f)){const t=jc(f);return t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",jc(lj.identify(e))),i.replaceWith(t,uj),!r&&t}if(mx(f)){const t=new lb([...f.content],jc(f.meta),jc(f.attributes));if(e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",jc(lj.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Fn(l,u);t.set("$$ref",e)}f=t}return i.replaceWith(f,uj),r?void 0:f}catch(t){const s=ij(t),i=new oj(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Lc(e.$ref),fullPath:this.basePath??[...Qw([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=ij(t),i=cj(s,{baseDoc:this.reference.uri,externalValue:Lc(e.externalValue),fullPath:this.basePath??[...Qw([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const hj=pj,dj=nc[Symbol.for("nodejs.util.promisify.custom")];const mj=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new hj({...n,options:s})),"function"==typeof t&&i.push(new Zw({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new sj({options:s})),"function"==typeof e&&i.push(new nj({parameterMacro:e,options:s}));const o=dj(i,{nodeTypeGetter:xE});Object.assign(this,o)}},fj=Fc[Symbol.for("nodejs.util.promisify.custom")];const yj=class extends Xw{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=ta(wE),s=t.dereference.refSet??new FE,n=new FE;let i,o=s;s.has(e.uri)?i=s.find(t=>t.uri===e.uri):(i=new CE({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map(e=>new CE({...e,value:jc(e.value)})).forEach(e=>n.add(e)),i=n.find(t=>t.uri===e.uri),o=n);const c=new mj({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),a=await fj(o.rootRef.value,c,{keyMap:EE,nodeTypeGetter:xE});return t.dereference.immutable&&n.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new CE({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>s.add(e)),null===t.dereference.refSet&&s.clean(),n.clean(),a}},vj=e=>{const t=Lc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new vo.Sh({$ref:t},jc(r.meta),jc(r.attributes))},gj=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:c=!1,useCircularStructures:a=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=e;try{const{cache:m}=gj,f=d.find(e=>e.match(t)),v=$n(Cn())?Cn():y,g=Et(e),b=Fn(v,g);let x;m.has(t)?x=m.get(t):(x=kv.refract(t),x.classes.push("result"),m.set(t,x));const E=new $o([x]),w=Na(o),j=""===w?"":`#${w}`,S=Wa(x,w),O=new CE({uri:b,value:E}),P=new FE({refs:[O]});""!==w&&(P.rootRef=void 0);const $=[new Set([S])],A=[],k=await XE(S,{resolve:{baseURI:`${b}${j}`,resolvers:[new uw({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new sw]},parse:{mediaType:TE.latest(),parsers:[new mw({allowEmpty:!1,sourceMap:!1}),new fw({allowEmpty:!1,sourceMap:!1}),new hw({allowEmpty:!1,sourceMap:!1}),new dw({allowEmpty:!1,sourceMap:!1}),new tw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new yj({allowMetaPatches:c,useCircularStructures:a,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:$})],refSet:P,dereferenceOpts:{errors:A},immutable:!1,circular:a?"ignore":"replace",circularReplacer:a?RE.dereference.circularReplacer:vj}}),T=ua(S,k,x),C=l?T:f.normalize(T);return{spec:Lc(C),errors:A}}catch(e){if(e instanceof qa)return{spec:t,errors:[]};throw e}};gj.cache=new WeakMap;const bj=gj;function xj(e,t,r){if(r||(r=new Ej),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var s,n=function(s){var n=r.get(e);if(n)return n;for(var i in r.set(e,s),e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=t?xj(e[i],!0,r):e[i]);return s};switch(ms(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return s=e,new RegExp(s.source,s.flags?s.flags:(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.sticky?"y":"")+(s.unicode?"u":"")+(s.dotAll?"s":""));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 Ej=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),s=this.map[r];s||(this.map[r]=s=[]),s.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],s=0;s<r.length;s+=1){if((i=r[s])[0]===e)return i[1]}else{var n=this.hash(e);if(r=this.map[n])for(s=0;s<r.length;s+=1){var i;if((i=r[s])[0]===e)return i[1]}}},e}(),wj=function(){function e(e,t,r,s){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=s,this.inputs={}}return e.prototype["@@transducer/init"]=$s,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(ns(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,xj(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function jj(e,t,r){return function(s){return new wj(e,t,r,s)}}const Sj=$r(Ur("groupBy",Qr(4,[],Os([],jj,function(e,t,r,s){var n=Br(function(s,n){var i=r(n),o=e(ns(i,s)?s[i]:xj(t,!1),n);return o&&o["@@transducer/reduced"]?go(s):(s[i]=o,s)});return Nr(n,{},s)}))(function(e,t){return e.push(t),e},[])));const Oj=class{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);Lo(e)||(e=new vo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Bo(t)||(t=new vo.wE,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},Pj=e=>e.replace(/\s/g,""),$j=e=>e.replace(/\W/gi,"_"),Aj=(e,t,r)=>{const s=Pj(e);return s.length>0?$j(s):((e,t)=>`${$j(Pj(t.toLowerCase()))}${$j(Pj(e))}`)(t,r)},kj=({storageField:e="x-normalized",operationIdNormalizer:t=Aj}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],c=[],a=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new Oj(t,e,"operation-ids")},leave(){const e=Sj(e=>Lc(e.operationId),c);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)}))}),a.forEach(e=>{if(void 0===e.operationId)return;const t=String(Lc(e.operationId)),r=c.find(e=>Lc(e.meta.get("originalOperationId"))===t);void 0!==r&&(e.operationId=jc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),c.length=0,a.length=0,l=void 0}},PathItemElement:{enter(e){const t=zr("path",Lc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,a,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Lc(e.operationId)),d=Xr(o),m=zr("method",Lc(e.meta.get("http-method"))),f=t(h,d,m);h!==f&&(e.operationId=new i.elements.String(f),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),c.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&a.push(e)}}}}},Tj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(Lc(e.name)===Lc(t.name)&&Lc(e.in)===Lc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new Oj(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:c}=e;r.isArrayElement(c)?i.push([...c.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,c,a){const l=Xr(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...a,r,e]);if(o.includes(u))return;const p=ww([],["parameters","content"],e),h=rj(n,[...p,...l]);e.parameters=new gy(h),o.append(u)}}}}},Cj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new Oj(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,c,a){if(a.some(r.isComponentsElement))return;const l=s([...a,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new Ay(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},Fj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new Oj(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>jc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[jc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",jc(e.example)),n.append(u)))}}}}}},Mj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new Oj(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>jc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[jc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",jc(e.example)),n.append(u)))}}}}}},Ij=e=>{if(!Lo(e))return e;const t=[kj({operationIdNormalizer:(e,t,r)=>so({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Tj(),Cj(),Fj(),Mj()];return ia(e,t,{toolboxCreator:SE,visitorOptions:{keyMap:EE,nodeTypeGetter:xE}})},Rj={name:"openapi-3-1-apidom",match:e=>ao(e),normalize(e){if(!Io(e)&&to(e)&&!e.$$normalized){const r=(t=Ij,e=>{const r=kv.refract(e);r.classes.push("result");const s=t(r),n=Lc(s);return bj.cache.set(n,s),Lc(s)})(e);return r.$$normalized=!0,r}var t;return Io(e)?Ij(e):e},resolve:async e=>bj(e)};const Dj=class extends pv{};const _j=class extends hv{get mediaTypes(){return this.get("mediaTypes")}set mediaTypes(e){this.set("mediaTypes",e)}};const Nj=class extends dv{};const Lj=class extends mv{get defaultMapping(){return this.get("defaultMapping")}set defaultMapping(e){this.set("defaultMapping",e)}};const Bj=class extends fv{get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}get prefixEncoding(){return this.get("prefixEncoding")}set prefixEncoding(e){this.set("prefixEncoding",e)}get itemEncoding(){return this.get("itemEncoding")}set itemEncoding(e){this.set("itemEncoding",e)}};const qj=class extends yv{get dataValue(){return this.get("dataValue")}set dataValue(e){this.set("dataValue",e)}get serializedValue(){return this.get("serializedValue")}set serializedValue(e){this.set("serializedValue",e)}};const Uj=class extends vv{};const Vj=class extends gv{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Jj=class extends bv{};class Hj extends vo.Om{static default=new Hj("https://spec.openapis.org/oas/3.2/dialect/2025-09-17");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const zj=Hj;const Gj=class extends wv{};const Wj=class extends jv{};const Kj=class extends Sv{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get itemSchema(){return this.get("itemSchema")}set itemSchema(e){this.set("itemSchema",e)}get prefixEncoding(){return this.get("prefixEncoding")}set prefixEncoding(e){this.set("prefixEncoding",e)}get itemEncoding(){return this.get("itemEncoding")}set itemEncoding(e){this.set("itemEncoding",e)}};const Yj=class extends Ov{get deviceAuthorizationUrl(){return this.get("deviceAuthorizationUrl")}set deviceAuthorizationUrl(e){this.set("deviceAuthorizationUrl",e)}};const Xj=class extends Pv{get deviceAuthorization(){return this.get("deviceAuthorization")}set deviceAuthorization(e){this.set("deviceAuthorization",e)}};const Qj=class extends $v{};class Zj extends vo.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_2",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 $self(){return this.get("$self")}set $self(e){this.set("$self",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 eS=Zj;const tS=class extends Tv{};const rS=class extends Cv{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const sS=class extends Fv{get QUERY(){return this.get("query")}set QUERY(e){this.set("query",e)}get additionalOperations(){return this.get("additionalOperations")}set additionalOperations(e){this.set("additionalOperations",e)}};const nS=class extends Mv{};class iS extends Rv{}Object.defineProperty(iS.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(iS.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const oS=iS;const cS=class extends Dv{};const aS=class extends _v{get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};const lS=class extends Nv{};const uS=class extends lb{};const pS=class extends ub{};const hS=class extends pb{get oauth2MetadataUrl(){return this.get("oauth2MetadataUrl")}set oauth2MetadataUrl(e){this.set("oauth2MetadataUrl",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};const dS=class extends hb{get name(){return this.get("name")}set name(e){this.set("name",e)}};const mS=class extends db{};const fS=class extends mb{get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get parentProp(){return this.get("parent")}set parentProp(e){this.set("parent",e)}get kind(){return this.get("kind")}set kind(e){this.set("kind",e)}};const yS=class extends fb{get nodeType(){return this.get("nodeType")}set nodeType(e){this.set("nodeType",e)}};class vS extends(ju(lh,Zp)){constructor(e){super(e),this.element=new eS,this.specPath=Zs(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,lh.prototype.ObjectElement.call(this,e)}}const gS=vS,bS=bE.visitors.document.objects.Info.$visitor;const xS=class extends bS{constructor(e){super(e),this.element=new Jj}},ES=bE.visitors.document.objects.Contact.$visitor;const wS=class extends ES{constructor(e){super(e),this.element=new Nj}},jS=bE.visitors.document.objects.License.$visitor;const SS=class extends jS{constructor(e){super(e),this.element=new Gj}},OS=bE.visitors.document.objects.Link.$visitor;const PS=class extends OS{constructor(e){super(e),this.element=new Wj}};class $S extends(ju(eh,Zp)){StringElement(e){const t=new zj(Lc(e));return this.copyMetaAndAttributes(e,t),this.element=t,ec}}const AS=$S,kS=bE.visitors.document.objects.Server.$visitor;const TS=class extends kS{constructor(e){super(e),this.element=new dS}},CS=bE.visitors.document.objects.ServerVariable.$visitor;const FS=class extends CS{constructor(e){super(e),this.element=new mS}},MS=bE.visitors.document.objects.MediaType.$visitor;const IS=class extends MS{constructor(e){super(e),this.element=new Kj}},RS=bE.visitors.document.objects.SecurityRequirement.$visitor;const DS=class extends RS{constructor(e){super(e),this.element=new pS}},_S=bE.visitors.document.objects.Components.$visitor;const NS=class extends _S{constructor(e){super(e),this.element=new _j}},LS=bE.visitors.document.objects.Tag.$visitor;const BS=class extends LS{constructor(e){super(e),this.element=new fS}},qS=bE.visitors.document.objects.Reference.$visitor;const US=class extends qS{constructor(e){super(e),this.element=new oS}},VS=bE.visitors.document.objects.Parameter.$visitor;const JS=class extends VS{constructor(e){super(e),this.element=new rS}},HS=bE.visitors.document.objects.Header.$visitor;const zS=class extends HS{constructor(e){super(e),this.element=new Vj}},GS=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dj||e(s)&&t("callback",s)&&r("object",s)),WS=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _j||e(s)&&t("components",s)&&r("object",s)),KS=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nj||e(s)&&t("contact",s)&&r("object",s)),YS=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lj||e(s)&&t("discriminator",s)&&r("object",s)),XS=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qj||e(s)&&t("example",s)&&r("object",s)),QS=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Uj||e(s)&&t("externalDocumentation",s)&&r("object",s)),ZS=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vj||e(s)&&t("header",s)&&r("object",s)),eO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jj||e(s)&&t("info",s)&&r("object",s)),tO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zj||e(s)&&t("jsonSchemaDialect",s)&&r("string",s)),rO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gj||e(s)&&t("license",s)&&r("object",s)),sO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wj||e(s)&&t("link",s)&&r("object",s)),nO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qj||e(s)&&t("openapi",s)&&r("string",s)),iO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof eS||e(n)&&t("openApi3_2",n)&&r("object",n)&&s("api",n)),oO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tS||e(s)&&t("operation",s)&&r("object",s)),cO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rS||e(s)&&t("parameter",s)&&r("object",s)),aO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sS||e(s)&&t("pathItem",s)&&r("object",s)),lO=e=>{if(!aO(e))return!1;if(!Ro(e.$ref))return!1;const t=Lc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},uO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nS||e(s)&&t("paths",s)&&r("object",s)),pO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oS||e(s)&&t("reference",s)&&r("object",s)),hO=e=>{if(!pO(e))return!1;if(!Ro(e.$ref))return!1;const t=Lc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},dO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cS||e(s)&&t("requestBody",s)&&r("object",s)),mO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aS||e(s)&&t("response",s)&&r("object",s)),fO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lS||e(s)&&t("responses",s)&&r("object",s)),yO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uS||e(s)&&t("schema",s)&&r("object",s)),vO=e=>No(e)&&e.classes.includes("boolean-json-schema"),gO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pS||e(s)&&t("securityRequirement",s)&&r("object",s)),bO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hS||e(s)&&t("securityScheme",s)&&r("object",s)),xO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dS||e(s)&&t("server",s)&&r("object",s)),EO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mS||e(s)&&t("serverVariable",s)&&r("object",s)),wO=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kj||e(s)&&t("mediaType",s)&&r("object",s));class jO extends(ju(lh,Mu,Zp)){constructor(e){super(e),this.element=new uS,this.specPath=Zs(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=zj.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=lh.prototype.ObjectElement.call(this,e);return Ro(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return Xg.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&tO(this.openApiSemanticElement.jsonSchemaDialect)?Lc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ro(this.openApiGenericElement.get("jsonSchemaDialect"))?Lc(this.openApiGenericElement.get("jsonSchemaDialect")):Lc(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return Xg.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return Xg.prototype.handleSchemaIdentifier.call(this,e)}}const SO=jO;const OO=class extends Sg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const PO=class extends Pg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const $O=class extends Ag{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const AO=class extends Tg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const kO=class extends Fg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const TO=class extends Zg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const CO=class extends Dg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const FO=class extends Ng{constructor(e){super(e),this.passingOptionsNames.push("parent")}},MO=bE.visitors.document.objects.Discriminator.$visitor;const IO=class extends MO{constructor(e){super(e),this.element=new Lj,this.canSupportSpecificationExtensions=!0}},RO=bE.visitors.document.objects.XML.$visitor;const DO=class extends RO{constructor(e){super(e),this.element=new yS}};class _O extends(ju($h,Zp)){constructor(e){super(e),this.element=new Lm,this.specPath=Zs(["document","objects","Schema"])}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(yO).forEach((e,t)=>{e.setMetaProperty("schemaName",Lc(t))}),t}}const NO=_O;const LO=class extends Nx{};class BO extends(ju($h,Zp)){constructor(e){super(e),this.element=new LO,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(pO).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}}const qO=BO;class UO extends vo.Sh{static primaryClass="components-media-types";constructor(e,t,r){super(e,t,r),this.classes.push(UO.primaryClass)}}const VO=UO;class JO extends(ju($h,Zp)){constructor(e){super(e),this.element=new VO,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(pO).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const HO=JO;class zO extends(ju($h,Zp)){constructor(e){super(e),this.element=new vo.Sh,this.specPath=Zs(["document","objects","Operation"])}}const GO=zO,WO=bE.visitors.document.objects.Example.$visitor;const KO=class extends WO{constructor(e){super(e),this.element=new qj}},YO=bE.visitors.document.objects.ExternalDocumentation.$visitor;const XO=class extends YO{constructor(e){super(e),this.element=new Uj}},QO=bE.visitors.document.objects.Encoding.$visitor;const ZO=class extends QO{constructor(e){super(e),this.element=new Bj}},eP=bE.visitors.document.objects.Paths.$visitor;const tP=class extends eP{constructor(e){super(e),this.element=new nS}},rP=bE.visitors.document.objects.RequestBody.$visitor;const sP=class extends rP{constructor(e){super(e),this.element=new cS}};class nP extends(ju($h,Zp)){constructor(e){super(e),this.element=new _f,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(pO).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const iP=nP,oP=bE.visitors.document.objects.Callback.$visitor;const cP=class extends oP{constructor(e){super(e),this.element=new Dj,this.specPath=Zs(["document","objects","PathItem"])}},aP=bE.visitors.document.objects.Response.$visitor;const lP=class extends aP{constructor(e){super(e),this.element=new aS}};class uP extends(ju($h,Zp)){constructor(e){super(e),this.element=new Wf,this.specPath=e=>ih(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(pO).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const pP=uP,hP=bE.visitors.document.objects.Responses.$visitor;const dP=class extends hP{constructor(e){super(e),this.element=new lS}},mP=bE.visitors.document.objects.Operation.$visitor;const fP=class extends mP{constructor(e){super(e),this.element=new tS}},yP=bE.visitors.document.objects.PathItem.$visitor;const vP=class extends yP{constructor(e){super(e),this.element=new sS}},gP=bE.visitors.document.objects.SecurityScheme.$visitor;const bP=class extends gP{constructor(e){super(e),this.element=new hS}},xP=bE.visitors.document.objects.OAuthFlows.$visitor;const EP=class extends xP{constructor(e){super(e),this.element=new Xj}},wP=bE.visitors.document.objects.OAuthFlow.$visitor;const jP=class extends wP{constructor(e){super(e),this.element=new Yj}};const SP=class extends mE{};class OP extends(ju($h,Zp)){constructor(e){super(e),this.element=new SP,this.specPath=Zs(["document","objects","PathItem"])}ObjectElement(e){const t=$h.prototype.ObjectElement.call(this,e);return this.element.filter(aO).forEach((e,t)=>{e.setMetaProperty("webhook-name",Lc(t))}),t}}const PP=OP,{JSONSchema:$P,LinkDescription:AP}=tb.visitors.document.objects,kP={visitors:{value:bE.visitors.value,document:{objects:{OpenApi:{$visitor:gS,fixedFields:{openapi:bE.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:AS,servers:bE.visitors.document.objects.OpenApi.fixedFields.servers,$self:{$ref:"#/visitors/value"},paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:PP,components:{$ref:"#/visitors/document/objects/Components"},security:bE.visitors.document.objects.OpenApi.fixedFields.security,tags:bE.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:xS,fixedFields:{title:bE.visitors.document.objects.Info.fixedFields.title,description:bE.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:bE.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:bE.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:wS,fixedFields:{name:bE.visitors.document.objects.Contact.fixedFields.name,url:bE.visitors.document.objects.Contact.fixedFields.url,email:bE.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:SS,fixedFields:{name:bE.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:bE.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:TS,fixedFields:{url:bE.visitors.document.objects.Server.fixedFields.url,description:bE.visitors.document.objects.Server.fixedFields.description,variables:bE.visitors.document.objects.Server.fixedFields.variables,name:{$ref:"#/visitors/value"}}},ServerVariable:{$visitor:FS,fixedFields:{enum:bE.visitors.document.objects.ServerVariable.fixedFields.enum,default:bE.visitors.document.objects.ServerVariable.fixedFields.default,description:bE.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:NS,fixedFields:{schemas:NO,responses:bE.visitors.document.objects.Components.fixedFields.responses,parameters:bE.visitors.document.objects.Components.fixedFields.parameters,examples:bE.visitors.document.objects.Components.fixedFields.examples,requestBodies:bE.visitors.document.objects.Components.fixedFields.requestBodies,headers:bE.visitors.document.objects.Components.fixedFields.headers,securitySchemes:bE.visitors.document.objects.Components.fixedFields.securitySchemes,links:bE.visitors.document.objects.Components.fixedFields.links,callbacks:bE.visitors.document.objects.Components.fixedFields.callbacks,pathItems:qO,mediaTypes:HO}},Paths:{$visitor:tP},PathItem:{$visitor:vP,fixedFields:{$ref:bE.visitors.document.objects.PathItem.fixedFields.$ref,summary:bE.visitors.document.objects.PathItem.fixedFields.summary,description:bE.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"},query:{$ref:"#/visitors/document/objects/Operation"},servers:bE.visitors.document.objects.PathItem.fixedFields.servers,parameters:bE.visitors.document.objects.PathItem.fixedFields.parameters,additionalOperations:GO}},Operation:{$visitor:fP,fixedFields:{tags:bE.visitors.document.objects.Operation.fixedFields.tags,summary:bE.visitors.document.objects.Operation.fixedFields.summary,description:bE.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:bE.visitors.document.objects.Operation.fixedFields.operationId,parameters:bE.visitors.document.objects.Operation.fixedFields.parameters,requestBody:bE.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:bE.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:bE.visitors.document.objects.Operation.fixedFields.deprecated,security:bE.visitors.document.objects.Operation.fixedFields.security,servers:bE.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:XO,fixedFields:{description:bE.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:bE.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:JS,fixedFields:{name:bE.visitors.document.objects.Parameter.fixedFields.name,in:bE.visitors.document.objects.Parameter.fixedFields.in,description:bE.visitors.document.objects.Parameter.fixedFields.description,required:bE.visitors.document.objects.Parameter.fixedFields.required,deprecated:bE.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:bE.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:bE.visitors.document.objects.Parameter.fixedFields.style,explode:bE.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:bE.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:bE.visitors.document.objects.Parameter.fixedFields.example,examples:bE.visitors.document.objects.Parameter.fixedFields.examples,content:bE.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:sP,fixedFields:{description:bE.visitors.document.objects.RequestBody.fixedFields.description,content:iP,required:bE.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:IS,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:bE.visitors.document.objects.MediaType.fixedFields.example,examples:bE.visitors.document.objects.MediaType.fixedFields.examples,encoding:bE.visitors.document.objects.MediaType.fixedFields.encoding,itemSchema:{$ref:"#/visitors/document/objects/Schema"},prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Encoding:{$visitor:ZO,fixedFields:{contentType:bE.visitors.document.objects.Encoding.fixedFields.contentType,headers:bE.visitors.document.objects.Encoding.fixedFields.headers,style:bE.visitors.document.objects.Encoding.fixedFields.style,explode:bE.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:bE.visitors.document.objects.Encoding.fixedFields.allowReserved,encoding:bE.visitors.document.objects.MediaType.fixedFields.encoding,prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Responses:{$visitor:dP,fixedFields:{default:bE.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:lP,fixedFields:{description:bE.visitors.document.objects.Response.fixedFields.description,headers:bE.visitors.document.objects.Response.fixedFields.headers,content:pP,links:bE.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:cP},Example:{$visitor:KO,fixedFields:{summary:bE.visitors.document.objects.Example.fixedFields.summary,description:bE.visitors.document.objects.Example.fixedFields.description,value:bE.visitors.document.objects.Example.fixedFields.value,externalValue:bE.visitors.document.objects.Example.fixedFields.externalValue,dataValue:{$ref:"#/visitors/value"},serializedValue:{$ref:"#/visitors/value"}}},Link:{$visitor:PS,fixedFields:{operationRef:bE.visitors.document.objects.Link.fixedFields.operationRef,operationId:bE.visitors.document.objects.Link.fixedFields.operationId,parameters:bE.visitors.document.objects.Link.fixedFields.parameters,requestBody:bE.visitors.document.objects.Link.fixedFields.requestBody,description:bE.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:zS,fixedFields:{description:bE.visitors.document.objects.Header.fixedFields.description,required:bE.visitors.document.objects.Header.fixedFields.required,deprecated:bE.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:bE.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:bE.visitors.document.objects.Header.fixedFields.style,explode:bE.visitors.document.objects.Header.fixedFields.explode,allowReserved:bE.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:bE.visitors.document.objects.Header.fixedFields.example,examples:bE.visitors.document.objects.Header.fixedFields.examples,content:bE.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:BS,fixedFields:{name:bE.visitors.document.objects.Tag.fixedFields.name,description:bE.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},summary:{$ref:"#/visitors/value"},parent:{$ref:"#/visitors/value"},kind:{$ref:"#/visitors/value"}}},Reference:{$visitor:US,fixedFields:{$ref:bE.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...AP},Schema:{$visitor:SO,fixedFields:{...$P.fixedFields,$defs:OO,allOf:PO,anyOf:$O,oneOf:AO,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:kO,prefixItems:TO,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:CO,patternProperties:FO,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},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:IO,fixedFields:{propertyName:bE.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:bE.visitors.document.objects.Discriminator.fixedFields.mapping,defaultMapping:{$ref:"#/visitors/value"}}},XML:{$visitor:DO,fixedFields:{name:bE.visitors.document.objects.XML.fixedFields.name,namespace:bE.visitors.document.objects.XML.fixedFields.namespace,prefix:bE.visitors.document.objects.XML.fixedFields.prefix,attribute:bE.visitors.document.objects.XML.fixedFields.attribute,wrapped:bE.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:bP,fixedFields:{type:bE.visitors.document.objects.SecurityScheme.fixedFields.type,description:bE.visitors.document.objects.SecurityScheme.fixedFields.description,name:bE.visitors.document.objects.SecurityScheme.fixedFields.name,in:bE.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:bE.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:bE.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:bE.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl,oauth2MetadataUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:EP,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"},deviceAuthorization:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:jP,fixedFields:{authorizationUrl:bE.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:bE.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:bE.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:bE.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:DS}},extension:{$visitor:bE.visitors.document.extension.$visitor}}}},TP=e=>{if(Io(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},CP={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_2Element:["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},FP={namespace:e=>{const{base:t}=e;return t.register("callback",Dj),t.register("components",_j),t.register("contact",Nj),t.register("discriminator",Lj),t.register("encoding",Bj),t.register("example",qj),t.register("externalDocumentation",Uj),t.register("header",Vj),t.register("info",Jj),t.register("jsonSchemaDialect",zj),t.register("license",Gj),t.register("link",Wj),t.register("mediaType",Kj),t.register("oAuthFlow",Yj),t.register("oAuthFlows",Xj),t.register("openapi",Qj),t.register("openApi3_2",eS),t.register("operation",tS),t.register("parameter",rS),t.register("pathItem",sS),t.register("paths",nS),t.register("reference",oS),t.register("requestBody",cS),t.register("response",aS),t.register("responses",lS),t.register("schema",uS),t.register("securityRequirement",pS),t.register("securityScheme",hS),t.register("server",dS),t.register("serverVariable",mS),t.register("tag",fS),t.register("xml",yS),t}},MP=e=>{const t=e.reduce((t,r,s)=>{if(qo(r)){const e=String(Lc(r.key));t.push(e)}else if(Bo(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t},[]);return Na(t)},IP=()=>{const e=ta(FP);return{predicates:{...d,isElement:Io,isStringElement:Ro,isArrayElement:Bo,isObjectElement:Lo,isMemberElement:qo,isServersElement:xd,includesClasses:Yo,hasElementSourceMap:Wo},ancestorLineageToJSONPointer:MP,namespace:e}},RP=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,vo.e)(e),n=Ec(kP),i=new(yc(t,n))({specObj:n});return Fc(s,i),ia(i.element,r,{toolboxCreator:IP,visitorOptions:{keyMap:CP,nodeTypeGetter:TP}})},DP=e=>(t,r={})=>RP(t,{specPath:e,...r});Dj.refract=DP(["visitors","document","objects","Callback","$visitor"]),_j.refract=DP(["visitors","document","objects","Components","$visitor"]),Nj.refract=DP(["visitors","document","objects","Contact","$visitor"]),qj.refract=DP(["visitors","document","objects","Example","$visitor"]),Lj.refract=DP(["visitors","document","objects","Discriminator","$visitor"]),Bj.refract=DP(["visitors","document","objects","Encoding","$visitor"]),Uj.refract=DP(["visitors","document","objects","ExternalDocumentation","$visitor"]),Vj.refract=DP(["visitors","document","objects","Header","$visitor"]),Jj.refract=DP(["visitors","document","objects","Info","$visitor"]),zj.refract=DP(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Gj.refract=DP(["visitors","document","objects","License","$visitor"]),Wj.refract=DP(["visitors","document","objects","Link","$visitor"]),Kj.refract=DP(["visitors","document","objects","MediaType","$visitor"]),Yj.refract=DP(["visitors","document","objects","OAuthFlow","$visitor"]),Xj.refract=DP(["visitors","document","objects","OAuthFlows","$visitor"]),Qj.refract=DP(["visitors","document","objects","OpenApi","fixedFields","openapi"]),eS.refract=DP(["visitors","document","objects","OpenApi","$visitor"]),tS.refract=DP(["visitors","document","objects","Operation","$visitor"]),rS.refract=DP(["visitors","document","objects","Parameter","$visitor"]),sS.refract=DP(["visitors","document","objects","PathItem","$visitor"]),nS.refract=DP(["visitors","document","objects","Paths","$visitor"]),oS.refract=DP(["visitors","document","objects","Reference","$visitor"]),cS.refract=DP(["visitors","document","objects","RequestBody","$visitor"]),aS.refract=DP(["visitors","document","objects","Response","$visitor"]),lS.refract=DP(["visitors","document","objects","Responses","$visitor"]),uS.refract=DP(["visitors","document","objects","Schema","$visitor"]),pS.refract=DP(["visitors","document","objects","SecurityRequirement","$visitor"]),hS.refract=DP(["visitors","document","objects","SecurityScheme","$visitor"]),dS.refract=DP(["visitors","document","objects","Server","$visitor"]),mS.refract=DP(["visitors","document","objects","ServerVariable","$visitor"]),fS.refract=DP(["visitors","document","objects","Tag","$visitor"]),yS.refract=DP(["visitors","document","objects","XML","$visitor"]);class _P extends AE{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.2.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 Xr(this.filterByFormat(e))}}const NP=new _P("application/vnd.oai.openapi;version=3.2.0","application/vnd.oai.openapi+json;version=3.2.0","application/vnd.oai.openapi+yaml;version=3.2.0");const LP=class extends ew{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.2\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-2-swagger-client",mediaTypes:new _P(...NP.filterByFormat("generic"),...NP.filterByFormat("json")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||I()(t=this.fileExtensions).call(t,e.extension),n=I()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)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 ZE("openapi-json-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new $o,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=eS.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new ZE(`Error parsing "${e.uri}"`,{cause:t})}}};const BP=class extends ew{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.2\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.2\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-2-swagger-client",mediaTypes:new _P(...NP.filterByFormat("generic"),...NP.filterByFormat("yaml")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||I()(t=this.fileExtensions).call(t,e.extension),n=I()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{const t=e.toString();return rt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new ZE("openapi-yaml-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new $o,r=e.toString();try{const e=rt.load(r,{schema:ot});if(this.allowEmpty&&void 0===e)return t;const s=eS.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new ZE(`Error parsing "${e.uri}"`,{cause:t})}}},qP=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),UP=e=>{const t=kn(e);return xc("#",t)},VP=(e,t)=>{const r=(e=>{if(!qP(e))throw new Pw(e);return e})(e),s=jw(e=>yO(e)&&Lc(e.$anchor)===r,t);if(tn(s))throw new Ow(`Evaluation failed on token: "${r}"`);return s},JP=(e,t)=>{if(void 0===t.$ref)return;const r=kn(Lc(t.$ref)),s=Lc(t.meta.get("ancestorsSchemaIdentifiers"));return`${qr((e,t)=>Fn(e,Mn(Tn(t))),e,[...s,Lc(t.$ref)])}${"#"===r?"":r}`},HP=e=>{if(HP.cache.has(e))return HP.cache.get(e);const t=uS.refract(e);return HP.cache.set(e,t),t};HP.cache=new WeakMap;const zP=e=>Go(e)?HP(e):e,GP=(e,t)=>{const{cache:r}=GP,s=Tn(e),n=e=>yO(e)&&void 0!==e.$id;if(!r.has(t)){const e=Tw(n,t);r.set(t,Array.from(e))}const i=r.get(t).find(e=>((e,t)=>{if(void 0===t.$id)return;const r=Lc(t.meta.get("ancestorsSchemaIdentifiers"));return qr((e,t)=>Fn(e,Mn(Tn(t))),e,r)})(s,e)===s);if(tn(i))throw new Fw(`Evaluation failed on URI: "${e}"`);return qP(UP(e))?VP(UP(e),i):Wa(i,pa(e))};GP.cache=new WeakMap;const WP=Fc[Symbol.for("nodejs.util.promisify.custom")],KP=new Ew,YP=e=>{try{return!!new URL(e).protocol}catch{return!1}},XP=(e,t,r,s)=>{qo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class QP{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;$selfValue;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new Jw,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map,$selfValue:c,errorContext:a=[],errorPropagationCache:l=new Map,pendingPropagations:u=[]}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new Jw(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o,this.$selfValue=c,this.errorContext=a,this.errorPropagationCache=l,this.pendingPropagations=u}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let t=this.errorContext.length-1;t>=0;t-=1)if(this.errorContext[t]===e){this.errorContext.splice(t,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach(({referencingElement:t,referencedElement:r})=>{const s=this.errorPropagationCache.get(r);Array.isArray(s)&&s.length>0&&s.forEach(r=>{const s=this.errorPropagationCache.get(t);var n;null!=s&&s.includes(r)||(null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.errors.push({error:r,refEl:t}),s?s.push(r):this.errorPropagationCache.set(t,[r]),e=!0)})}),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,t,r){var s;if(null!==(s=this.options.dereference.dereferenceOpts)&&void 0!==s&&s.continueOnError){var n,i,o;const{directAncestors:s,isExternalReference:l=!1}=null!=r?r:{},u=null!==(n=null===(i=this.options.dereference.dereferenceOpts)||void 0===i?void 0:i.skipNestedExternal)&&void 0!==n&&n,p=l&&u;if(s&&!p){for(const t of s){const r=this.errorPropagationCache.get(t);r?r.push(e):this.errorPropagationCache.set(t,[e])}const t=[...s].find(e=>Lo(e)&&e.getMetaProperty("ref-referencing-element"));var c;if(t)null===(c=this.options.dereference.dereferenceOpts)||void 0===c||c.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}if(null===(o=this.options.dereference.dereferenceOpts)||void 0===o||o.errors.push({error:e,refEl:t}),!p){const r=new Set(this.errorContext);r.delete(t),this.popErrorContext(t);for(const t of r){var a;null===(a=this.options.dereference.dereferenceOpts)||void 0===a||a.errors.push({error:e,refEl:t})}}return}throw e}getNestedVisitorOptions(e){var t,r;return{...this.options,resolve:{...this.options.resolve,external:(null===(t=this.options.dereference)||void 0===t||null===(t=t.dereferenceOpts)||void 0===t||!t.skipNestedExternal||!Lc(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...null===(r=this.options.dereference)||void 0===r?void 0:r.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return Fn(this.reference.uri,Mn(Tn(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Nw(`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(yw(t,"uri"));const s=await Vw(In(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new CE({uri:t,value:jc(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new CE({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(Io));return[new Jw(...this.ancestors,t),t]}extractSelfFromReference(e){try{const t=e.value.result;let r;if(t instanceof vo.Hg)if("openapi-3-2"===t.element)r=t;else{const e=jw(e=>"openapi-3-2"===e.element,t);e&&(r=e)}if(r&&iO(r)&&Ro(r.$self)){const t=Lc(r.$self);if(t)return YP(t)?Mn(Tn(t)):Fn(e.uri,Mn(Tn(t)))}}catch{}}OpenApi3_2Element={enter:e=>{if(Ro(e.$self)){const t=Lc(e.$self);t&&(YP(t)?this.$selfValue=Mn(Tn(t)):this.$selfValue=Fn(this.reference.uri,Mn(Tn(t))))}},leave:(e,t,r,s,n,i)=>{var o,c;if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.propagateErrors(),null===(c=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===c||!c.dereferenceDiscriminatorMapping)return;const a=Pc(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,XP),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,c;if(this.indirections.includes(e))return!1;const[a,l]=this.toAncestorLineage([...n,r]),u=Lc(e.$ref),p=this.toBaseURI(u),h=Tn(this.reference.uri)===p,d=!h;if(!this.options.resolve.internal&&h)return!1;if(!this.options.resolve.external&&d)return!1;let m;try{m=await this.toReference(Lc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}const f=Fn(p,Lc(e.$ref));this.indirections.push(e);const y=pa(f);let v;try{v=Wa(m.value.result,y)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if(v.id=KP.identify(v),Go(v)){const t=Lc(e.meta.get("referenced-element")),r=`${t}-${Lc(KP.identify(v))}`;if(this.refractCache.has(r))v=this.refractCache.get(r);else if(ih(v))v=oS.refract(v),v.setMetaProperty("referenced-element",t),this.refractCache.set(r,v);else{v=this.namespace.getElementClass(t).refract(v),this.refractCache.set(r,v)}}if(e===v){const t=new Er("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if(a.includes(v)){if(m.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Er("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if("replace"===this.options.dereference.circular){var g,b;const t=new vo.sI(v.id,{type:"reference",uri:m.uri,$ref:Lc(e.$ref)}),s=(null!==(g=null===(b=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===b?void 0:b.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,XP),!r&&s}}const x=Tn(m.refSet.rootRef.uri)!==m.uri,E=["error","replace"].includes(this.options.dereference.circular);if((d||x||pO(v)||E)&&!a.includesCycle(v)){l.add(e),this.errorContext.push(e);const t=d||x?this.extractSelfFromReference(m):this.$selfValue,r=new QP({reference:m,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{v=await WP(v,r,{keyMap:CP,nodeTypeGetter:TP})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}l.delete(e),this.popErrorContext(e)}null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:v}),this.indirections.pop();const w=Pc(v);w.setMetaProperty("id",KP.generateId()),w.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),description:Lc(e.description),summary:Lc(e.summary)});const j=d||x?this.extractSelfFromReference(m)||m.uri:this.$selfValue||m.uri;return w.setMetaProperty("ref-origin",j),w.setMetaProperty("ref-referencing-element-id",jc(KP.identify(e))),null!==(c=this.options.dereference.dereferenceOpts)&&void 0!==c&&c.continueOnError&&w.setMetaProperty("ref-referencing-element",e),Lo(v)&&Lo(w)&&(e.hasKey("description")&&"description"in v&&(w.remove("description"),w.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in v&&(w.remove("summary"),w.set("summary",e.get("summary")))),i.replaceWith(w,XP),!r&&w}async PathItemElement(e,t,r,s,n,i){var o;if(!Ro(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]),l=Lc(e.$ref),u=this.toBaseURI(l),p=Tn(this.reference.uri)===u,h=!p;if(!this.options.resolve.internal&&p)return;if(!this.options.resolve.external&&h)return;let d;try{d=await this.toReference(Lc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}const m=Fn(u,Lc(e.$ref));this.indirections.push(e);const f=pa(m);let y;try{y=Wa(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if(y.id=KP.identify(y),Go(y)){const e=`path-item-${Lc(KP.identify(y))}`;this.refractCache.has(e)?y=this.refractCache.get(e):(y=sS.refract(y),this.refractCache.set(e,y))}if(e===y){const t=new Er("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if(c.includes(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Er("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if("replace"===this.options.dereference.circular){var v,g;const t=new vo.sI(y.id,{type:"path-item",uri:d.uri,$ref:Lc(e.$ref)}),s=(null!==(v=null===(g=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===g?void 0:g.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,XP),!r&&s}}const b=Tn(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||aO(y)&&Ro(y.$ref)||x)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=h||b?this.extractSelfFromReference(d):this.$selfValue,r=new QP({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await WP(y,r,{keyMap:CP,nodeTypeGetter:TP})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop(),aO(y)){var E;const t=new sS([...y.content],jc(y.meta),jc(y.attributes));t.setMetaProperty("id",KP.generateId()),e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)});const r=h||b?this.extractSelfFromReference(d)||d.uri:this.$selfValue||d.uri;t.setMetaProperty("ref-origin",r),t.setMetaProperty("ref-referencing-element-id",jc(KP.identify(e))),null!==(E=this.options.dereference.dereferenceOpts)&&void 0!==E&&E.continueOnError&&t.setMetaProperty("ref-referencing-element",e),y=t}return i.replaceWith(y,XP),r?void 0:y}async LinkElement(e,t,r,s,n,i){if(!Ro(e.operationRef)&&!Ro(e.operationId))return;if(Ro(e.operationRef)&&Ro(e.operationId)){const t=new Er("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(Ro(e.operationRef)){var c;const t=Lc(e.operationRef),s=pa(t),n=this.toBaseURI(t),a=Tn(this.reference.uri)===n,l=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&l)return;let u;try{u=await this.toReference(Lc(e.operationRef)),o=Wa(u.value.result,s)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:l})}if(!o){const t=new Er("OperationElement could not be resolved.");return this.handleDereferenceError(t,e,{isExternalReference:l})}let p=o;if(Go(p)){const e=`operation-${Lc(KP.identify(p))}`;this.refractCache.has(e)?p=this.refractCache.get(e):(p=tS.refract(p),this.refractCache.set(e,p))}p=Pc(p);const h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=Pc(e);return null===(c=d.operationRef)||void 0===c||c.meta.set("operation",p),i.replaceWith(d,XP),r?void 0:d}if(Ro(e.operationId)){var a;const t=Lc(e.operationId);let s;try{s=await this.toReference(In(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=jw(e=>oO(e)&&Io(e.operationId)&&e.operationId.equals(t),s.value.result),tn(o)){const r=new Er(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=Pc(e);return null===(a=n.operationId)||void 0===a||a.meta.set("operation",o),i.replaceWith(n,XP),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!Ro(e.externalValue))return;if(e.hasKey("value")&&Ro(e.externalValue)){const t=new Er("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=Lc(e.externalValue),c=this.toBaseURI(o),a=Tn(this.reference.uri)===c,l=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&l)return;let u;try{u=await this.toReference(Lc(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:l})}const p=Pc(u.value.result),h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=Pc(e);return d.value=p,i.replaceWith(d,XP),r?void 0:d}async MemberElement(e,t,r,s,n,i){var o;const c=n[n.length-1];if(!Lo(c)||!c.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!Ro(e.key)||!Ro(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[a,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(yO),p=jc(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Lc(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new uS({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new QP({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:this.$selfValue});let y;try{y=await WP(m,f,{keyMap:CP,nodeTypeGetter:TP})}catch(t){const r=!d.startsWith("#");return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:r})}l.delete(m),this.indirections.pop();const v=Pc(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,XP),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!Ro(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(In(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a})}let{uri:u}=l;const p=JP(u,e),h=Tn(p),d=new JE({uri:h}),m=gw(e=>e.canRead(d),this.options.resolve.resolvers),f=!m;let y,v=Tn(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=zP(l.value.result);if(y=GP(e,t),y=zP(y),y.id=KP.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=Tn(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(In(p));const e=pa(p),t=zP(l.value.result);y=Wa(t,e),y=zP(y),y.id=KP.identify(y)}}catch(t){if(!(f&&t instanceof Fw))return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g});if(qP(UP(p))){if(v=Tn(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(In(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=UP(p),r=zP(l.value.result);try{y=VP(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=zP(y),y.id=KP.identify(y)}else{if(u=this.toBaseURI(p),v=Tn(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(In(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=pa(p),r=zP(l.value.result);try{y=Wa(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=zP(y),y.id=KP.identify(y)}}if(e===y){const t=new Er("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(c.includes(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Er("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if("replace"===this.options.dereference.circular){var b,x;const t=new vo.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Lc(e.$ref)}),s=(null!==(b=null===(x=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===x?void 0:x.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,XP),!r&&s}}const E=Tn(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||yO(y)&&Ro(y.$ref)||w)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=g||E?this.extractSelfFromReference(l):this.$selfValue,r=new QP({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await WP(y,r,{keyMap:CP,nodeTypeGetter:TP})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop(),vO(y)){const t=jc(y);t.setMetaProperty("id",KP.generateId()),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),$refBaseURI:p});const s=g?this.extractSelfFromReference(l)||l.uri:this.$selfValue||l.uri;return t.setMetaProperty("ref-origin",s),t.setMetaProperty("ref-referencing-element-id",jc(KP.identify(e))),i.replaceWith(t,XP),!r&&t}if(yO(y)){var j,S;const t=new uS([...y.content],jc(y.meta),jc(y.attributes));t.setMetaProperty("id",KP.generateId()),e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),$refBaseURI:p});const r=g?this.extractSelfFromReference(l)||l.uri:this.$selfValue||l.uri;if(t.setMetaProperty("ref-origin",r),t.setMetaProperty("ref-referencing-element-id",jc(KP.identify(e))),null!==(j=this.options.dereference.dereferenceOpts)&&void 0!==j&&j.continueOnError&&t.setMetaProperty("ref-referencing-element",e),null!==(S=this.options.dereference.strategyOpts["openapi-3-2"])&&void 0!==S&&S.dereferenceDiscriminatorMapping){var O;const e=n[n.length-1],r=[...a].findLast(yO),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Lc(t.getMetaProperty("schemaName"));if(i&&s&&null!=e&&null!==(O=e.classes)&&void 0!==O&&O.contains("json-schema-allOf")){var P;const e=null!==(P=this.allOfDiscriminatorMapping.get(i))&&void 0!==P?P:[];e.push(r),this.allOfDiscriminatorMapping.set(i,e)}}y=t}return i.replaceWith(y,XP),r?void 0:y}}const ZP=QP,e$=Fc[Symbol.for("nodejs.util.promisify.custom")];const t$=class extends vw{constructor(e){super({...null!=e?e:{},name:"openapi-3-2"})}canDereference(e){var t;return"text/plain"!==e.mediaType?NP.includes(e.mediaType):iO(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=ta(FP),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new FE,i=new FE;let o,c=n;n.has(e.uri)?o=n.find(yw(e.uri,"uri")):(o=new CE({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map(e=>new CE({...e,value:jc(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),c=i);const a=new ZP({reference:o,namespace:s,options:t}),l=await e$(c.rootRef.value,a,{keyMap:CP,nodeTypeGetter:TP});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new CE({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>n.add(e)),null===t.dereference.refSet&&n.clean(),i.clean(),l}},r$=e=>{const t=(e=>e.slice(2))(e);return t.reduce((e,r,s)=>{if(qo(r)){const t=String(Lc(r.key));e.push(t)}else if(Bo(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e},[])};const s$=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Lo(e.properties)&&e.properties.forEach(t=>{if(Lo(t))try{const e=this.modelPropertyMacro(Lc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...r$([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const n$=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!Bo(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...r$([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(yO)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...r$([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=ru.all([...t.content,e],{customMerge:e=>"enum"===Lc(e)?(e,t)=>{if(Yo(["json-schema-enum"],e)&&Yo(["json-schema-enum"],t)){const r=(e,t)=>!(Bo(e)||Bo(t)||Lo(e)||Lo(t))&&e.equals(Lc(t)),s=Pc(e);return s.content=rj(r)([...e.content,...t.content]),s}return ru(e,t)}:ru});if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}};const i$=class{parameterMacro;options;#s;OperationElement={enter:e=>{this.#s=e},leave:()=>{this.#s=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#s?Lc(this.#s):null,o=Lc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=r$([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},o$=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const c$=class extends wr{},{wrapError:a$}=Ei,l$=Fc[Symbol.for("nodejs.util.promisify.custom")],u$=new Ew,p$=(e,t,r,s)=>{qo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class h$ extends ZP{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{var o,c;if(I()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Lc(e.$ref)),l=Tn(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(Lc(e.$ref)),h=Fn(a,Lc(e.$ref));this.indirections.push(e);const d=pa(h);let m=Wa(p.value.result,d);if(m.id=u$.identify(m),Go(m)){const t=Lc(e.meta.get("referenced-element")),r=`${t}-${Lc(u$.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(ih(m))m=oS.refract(m),m.setMetaProperty("referenced-element",t),this.refractCache.set(r,m);else{m=this.namespace.getElementClass(t).refract(m),this.refractCache.set(r,m)}}if(e===m)throw new Er("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(I()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Er("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vo.sI(m.id,{type:"reference",uri:p.uri,$ref:Lc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,p$),!r&&s}}const f=Tn(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||pO(m)||y)&&!t.includesCycle(m)){s.add(e);const i=new h$({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...r$([...n,r,e]),"$ref"]});m=await l$(m,i,{keyMap:CP,nodeTypeGetter:TP}),s.delete(e)}this.indirections.pop();const v=Pc(m);if(v.setMetaProperty("ref-fields",{$ref:Lc(e.$ref),description:Lc(e.description),summary:Lc(e.summary)}),v.setMetaProperty("ref-origin",p.uri),v.setMetaProperty("ref-referencing-element-id",jc(u$.identify(e))),Lo(m)&&(e.hasKey("description")&&"description"in m&&(v.remove("description"),v.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in m&&(v.remove("summary"),v.set("summary",e.get("summary")))),this.allowMetaPatches&&Lo(v)&&!v.hasKey("$$ref")){const e=Fn(a,h);v.set("$$ref",e)}return i.replaceWith(v,p$),!r&&v}catch(t){const s=o$(t),i=a$(s,{baseDoc:this.reference.uri,$ref:Lc(e.$ref),pointer:pa(Lc(e.$ref)),fullPath:this.basePath??[...r$([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{var o,c;if(!Ro(e.$ref))return;if(I()(o=this.indirections).call(o,e))return!1;if(Yo(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Lc(e.$ref)),l=Tn(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(Lc(e.$ref)),h=Fn(a,Lc(e.$ref));this.indirections.push(e);const d=pa(h);let m=Wa(p.value.result,d);if(m.id=u$.identify(m),Go(m)){const e=`path-item-${Lc(u$.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=sS.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Er("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(I()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Er("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vo.sI(m.id,{type:"path-item",uri:p.uri,$ref:Lc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,p$),!r&&s}}const f=Tn(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||aO(m)&&Ro(m.$ref)||y)&&!t.includesCycle(m)){s.add(e);const i=new h$({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...r$([...n,r,e]),"$ref"]});m=await l$(m,i,{keyMap:CP,nodeTypeGetter:TP}),s.delete(e)}if(this.indirections.pop(),aO(m)){const t=new sS([...m.content],jc(m.meta),jc(m.attributes));if(e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",jc(u$.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Fn(a,h);t.set("$$ref",e)}m=t}return i.replaceWith(m,p$),r?void 0:m}catch(t){const s=o$(t),i=a$(s,{baseDoc:this.reference.uri,$ref:Lc(e.$ref),pointer:pa(Lc(e.$ref)),fullPath:this.basePath??[...r$([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{var o,c;if(!Ro(e.$ref))return;if(I()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let a=await this.toReference(In(this.reference.uri)),{uri:l}=a;const u=JP(l,e),p=Tn(u),h=new JE({uri:p}),d=!this.options.resolve.resolvers.some(e=>e.canRead(h)),m=!d;let f,y=Tn(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(u);const e=u,t=zP(a.value.result);if(f=GP(e,t),f=zP(f),f.id=u$.identify(f),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(l=this.toBaseURI(u),y=Tn(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(In(u));const e=pa(u),t=zP(a.value.result);f=Wa(t,e),f=zP(f),f.id=u$.identify(f)}}catch(e){if(!(m&&e instanceof Fw))throw e;if(qP(UP(u))){if(y=Tn(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(In(u));const e=UP(u),t=zP(a.value.result);f=VP(e,t),f=zP(f),f.id=u$.identify(f)}else{if(l=this.toBaseURI(Lc(u)),y=Tn(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(In(u));const e=pa(u),t=zP(a.value.result);f=Wa(t,e),f=zP(f),f.id=u$.identify(f)}}if(e===f)throw new Er("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new _w(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(I()(t).call(t,f)){if(a.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Er("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vo.sI(f.id,{type:"json-schema",uri:a.uri,$ref:Lc(e.$ref),baseURI:Fn(l,u),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,p$),!r&&s}}const g=Tn(a.refSet.rootRef.uri)!==a.uri,b=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((v||g||yO(f)&&Ro(f.$ref)||b)&&!t.includesCycle(f)){s.add(e);const i=new h$({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...r$([...n,r,e]),"$ref"]});f=await l$(f,i,{keyMap:CP,nodeTypeGetter:TP}),s.delete(e)}if(this.indirections.pop(),vO(f)){const t=jc(f);return t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",jc(u$.identify(e))),i.replaceWith(t,p$),!r&&t}if(yO(f)){const t=new uS([...f.content],jc(f.meta),jc(f.attributes));if(e.forEach((e,r,s)=>{t.remove(Lc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Lc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",jc(u$.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Fn(l,u);t.set("$$ref",e)}f=t}return i.replaceWith(f,p$),r?void 0:f}catch(t){const s=o$(t),i=new c$(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Lc(e.$ref),fullPath:this.basePath??[...r$([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=o$(t),i=a$(s,{baseDoc:this.reference.uri,externalValue:Lc(e.externalValue),fullPath:this.basePath??[...r$([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const d$=h$,m$=nc[Symbol.for("nodejs.util.promisify.custom")];const f$=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new d$({...n,options:s})),"function"==typeof t&&i.push(new s$({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new n$({options:s})),"function"==typeof e&&i.push(new i$({parameterMacro:e,options:s}));const o=m$(i,{nodeTypeGetter:TP});Object.assign(this,o)}},y$=Fc[Symbol.for("nodejs.util.promisify.custom")];const v$=class extends t${allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-2-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=ta(FP),s=t.dereference.refSet??new FE,n=new FE;let i,o=s;s.has(e.uri)?i=s.find(t=>t.uri===e.uri):(i=new CE({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map(e=>new CE({...e,value:jc(e.value)})).forEach(e=>n.add(e)),i=n.find(t=>t.uri===e.uri),o=n);const c=new f$({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),a=await y$(o.rootRef.value,c,{keyMap:CP,nodeTypeGetter:TP});return t.dereference.immutable&&n.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new CE({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>s.add(e)),null===t.dereference.refSet&&s.clean(),n.clean(),a}},g$=e=>{const t=Lc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new vo.Sh({$ref:t},jc(r.meta),jc(r.attributes))},b$=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:c=!1,useCircularStructures:a=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=e;try{const{cache:m}=b$,f=d.find(e=>e.match(t)),v=$n(Cn())?Cn():y,g=Et(e),b=Fn(v,g);let x;m.has(t)?x=m.get(t):(x=eS.refract(t),x.classes.push("result"),m.set(t,x));const E=new $o([x]),w=Na(o),j=""===w?"":`#${w}`,S=Wa(x,w),O=new CE({uri:b,value:E}),P=new FE({refs:[O]});""!==w&&(P.rootRef=void 0);const $=[new Set([S])],A=[],k=await XE(S,{resolve:{baseURI:`${b}${j}`,resolvers:[new uw({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new sw]},parse:{mediaType:NP.latest(),parsers:[new LP({allowEmpty:!1,sourceMap:!1}),new BP({allowEmpty:!1,sourceMap:!1}),new hw({allowEmpty:!1,sourceMap:!1}),new dw({allowEmpty:!1,sourceMap:!1}),new tw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new v$({allowMetaPatches:c,useCircularStructures:a,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:$})],refSet:P,dereferenceOpts:{errors:A},immutable:!1,circular:a?"ignore":"replace",circularReplacer:a?RE.dereference.circularReplacer:g$}}),T=ua(S,k,x),C=l?T:f.normalize(T);return{spec:Lc(C),errors:A}}catch(e){if(e instanceof qa)return{spec:t,errors:[]};throw e}};b$.cache=new WeakMap;const x$=b$;const E$=class{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);Lo(e)||(e=new vo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Bo(t)||(t=new vo.wE,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},w$=e=>e.replace(/\s/g,""),j$=e=>e.replace(/\W/gi,"_"),S$=(e,t,r)=>{const s=w$(e);return s.length>0?j$(s):((e,t)=>`${j$(w$(t.toLowerCase()))}${j$(w$(e))}`)(t,r)},O$=({storageField:e="x-normalized",operationIdNormalizer:t=S$}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],c=[],a=[];let l;return{visitor:{OpenApi3_2Element:{enter(t){l=new E$(t,e,"operation-ids")},leave(){const e=Sj(e=>Lc(e.operationId),c);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)}))}),a.forEach(e=>{if(void 0===e.operationId)return;const t=String(Lc(e.operationId)),r=c.find(e=>Lc(e.meta.get("originalOperationId"))===t);void 0!==r&&(e.operationId=jc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),c.length=0,a.length=0,l=void 0}},PathItemElement:{enter(e){const t=zr("path",Lc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,a,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Lc(e.operationId)),d=Xr(o),m=zr("method",Lc(e.meta.get("http-method"))),f=t(h,d,m);h!==f&&(e.operationId=new i.elements.String(f),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),c.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&a.push(e)}}}}},P$=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(Lc(e.name)===Lc(t.name)&&Lc(e.in)===Lc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_2Element:{enter(t){o=new E$(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:c}=e;r.isArrayElement(c)?i.push([...c.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,c,a){const l=Xr(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...a,r,e]);if(o.includes(u))return;const p=ww([],["parameters","content"],e),h=rj(n,[...p,...l]);e.parameters=new gy(h),o.append(u)}}}}},$$=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_2Element:{enter(t){i=new E$(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,c,a){if(a.some(r.isComponentsElement))return;const l=s([...a,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new Ay(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},A$=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new E$(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>jc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[jc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",jc(e.example)),n.append(u)))}}}}}},k$=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new E$(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>jc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[jc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",jc(e.example)),n.append(u)))}}}}}},T$=e=>{if(!Lo(e))return e;const t=[O$({operationIdNormalizer:(e,t,r)=>so({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),P$(),$$(),A$(),k$()];return ia(e,t,{toolboxCreator:IP,visitorOptions:{keyMap:CP,nodeTypeGetter:TP}})},C$={name:"openapi-3-2-apidom",match:e=>lo(e),normalize(e){if(!Io(e)&&to(e)&&!e.$$normalized){const r=(t=T$,e=>{const r=eS.refract(e);r.classes.push("result");const s=t(r),n=Lc(s);return x$.cache.set(n,s),Lc(s)})(e);return r.$$normalized=!0,r}var t;return Io(e)?T$(e):e},resolve:async e=>x$(e)};function F$(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:s}=e;for(const n in s)for(const i in s[n]){if("PARAMETERS"===i.toUpperCase())continue;const o=s[n][i];if(!o||"object"!=typeof o)continue;const c={spec:e,pathName:n,method:i.toUpperCase(),operation:o},a=t(c);if(r&&a)return c}}const M$=()=>null,I$={mapTagOperations:function({spec:e,cb:t=M$,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return F$(e,({pathName:o,method:c,operation:a})=>{var l;(a.tags?(l=a.tags,Array.isArray(l)?l:[l]):[r]).forEach(r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=so(a,o,c,{v2OperationIdCompatibilityMode:s}),p=t({spec:e,pathName:o,method:c,operation:a,operationId:u});if(n[u])n[u]+=1,l[`${u}${n[u]}`]=p;else if(void 0!==l[u]){const e=n[u]||1;n[u]=e+1,l[`${u}${n[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p})}),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:s})=>(n,i={})=>{const{requestInterceptor:o,responseInterceptor:c,userFetch:a}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:c,userFetch:a,pathName:t,method:r,parameters:n,operationId:s,...i})}}};const R$=(e,t,r,s,n)=>{if(e===va.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",ya.charsToString(t,r,s)])}return va.SEM_OK},D$=(e,t,r,s,n)=>{if(e===va.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",ya.charsToString(t,r,s)])}return va.SEM_OK},_$=(e,t,r,s,n)=>{if(e===va.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",ya.charsToString(t,r,s)])}return va.SEM_OK},N$=(e,t,r,s,n)=>{if(e===va.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",ya.charsToString(t,r,s)])}return va.SEM_OK},L$=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\n",e+='server-variable = "{" server-variable-name "}"\n',e+="server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n",e+="; https://www.rfc-editor.org/errata/eid6937\n",e+="literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n',e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n; https://www.rfc-editor.org/errata/eid6937\nliterals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},B$=e=>{const t=new ha;t.ast=new da,t.ast.callbacks["server-url-template"]=R$,t.ast.callbacks["server-variable"]=D$,t.ast.callbacks["server-variable-name"]=_$,t.ast.callbacks.literals=N$;return{result:t.parse(L$,"server-url-template",e),ast:t.ast}},q$=(e,{strict:t=!1}={})=>{try{const r=B$(e);if(!r.result.success)return!1;const s=[];r.ast.translate(s);const n=s.some(([e])=>"server-variable"===e);if(!t&&!n)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||n}catch{return!1}},U$=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),V$=["literals","server-variable-name"],J$=(e,t,r={})=>{const s={...{encoder:U$},...r},n=B$(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter(([e])=>V$.includes(e)).map(([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r);return o.join("")};function H$(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+="path-template = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+='slash = "/"\n',e+="path-literal = 1*pchar\n",e+='template-expression = "{" template-expression-param-name "}"\n',e+="template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+='pchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\n",e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\n; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npath-template = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nslash = "/"\npath-literal = 1*pchar\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\npct-encoded = "%" HEXDIG HEXDIG\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}}const z$=(e,t,r,s,n)=>(e===va.SEM_PRE?n.push(["slash",ya.charsToString(t,r,s)]):va.SEM_POST,va.SEM_OK),G$=(e,t,r,s,n)=>{if(e===va.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",ya.charsToString(t,r,s)])}return va.SEM_OK},W$=(e,t,r,s,n)=>(e===va.SEM_PRE?n.push(["path-literal",ya.charsToString(t,r,s)]):va.SEM_POST,va.SEM_OK),K$=(e,t,r,s,n)=>(e===va.SEM_PRE?n.push(["template-expression",ya.charsToString(t,r,s)]):va.SEM_POST,va.SEM_OK),Y$=(e,t,r,s,n)=>(e===va.SEM_PRE?n.push(["template-expression-param-name",ya.charsToString(t,r,s)]):va.SEM_POST,va.SEM_OK),X$=new H$,Q$=e=>{const t=new ha;t.ast=new da,t.ast.callbacks["path-template"]=G$,t.ast.callbacks.slash=z$,t.ast.callbacks["path-literal"]=W$,t.ast.callbacks["template-expression"]=K$,t.ast.callbacks["template-expression-param-name"]=Y$;return{result:t.parse(X$,"path-template",e),ast:t.ast}};const Z$=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),eA=["slash","path-literal","template-expression-param-name"],tA=(e,t,r={})=>{const s={...{encoder:Z$},...r},n=Q$(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter(([e])=>eA.includes(e)).map(([e,r])=>"template-expression-param-name"===e?Object.prototype.hasOwnProperty.call(t,r)?s.encoder(t[r],r):`{${r}}`:r);return o.join("")};new H$,new ha;const rA={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:s}){if(void 0!==t){const n=e.url.replace(s,""),i=tA(n,{[r.name]:t});e.url=s+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function sA(e,t){return I()(t).call(t,"application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map(e=>{try{return JSON.parse(e)}catch(t){return e}})),JSON.stringify(e)):String(e)}function nA(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e="";return e+="; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\n',e+="lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\n",e+='lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\n',e+='lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\n',e+='lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\n',e+="lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\n",e+="lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\n",e+="lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\n",e+="lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n",e+=" ; Allow all printable characters except CTLs, semicolon and SP\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='cookie-string = cookie-pair *( ";" SP cookie-pair )\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n",e+="; https://www.rfc-editor.org/errata/eid5518\n",e+='cookie-pair = cookie-name "=" cookie-value\n',e+="cookie-name = token\n",e+="cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n",e+=" ; https://www.rfc-editor.org/errata/eid8242\n",e+="cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n",e+=" ; US-ASCII characters excluding CTLs,\n",e+=" ; whitespace, DQUOTE, comma, semicolon,\n",e+=" ; and backslash\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\n",e+='OWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\n",e+="token = 1*(tchar)\n",e+='tchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n',e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=" / DIGIT / ALPHA\n",e+=" ; any VCHAR, except delimiters\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\n",e+="CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\n",e+="CTL = %x00-1F / %x7F ; any US-ASCII control character\n",e+='separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\n',e+="SP = %x20 ; US-ASCII SP, space (32)\n",e+="HT = %x09 ; US-ASCII HT, horizontal-tab (9)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='DQUOTE = %x22 ; " (Double Quote)\n',e+="WSP = SP / HTAB ; white space\n",e+="HTAB = %x09 ; horizontal tab\n",e+="CRLF = CR LF ; Internet standard newline\n",e+="CR = %x0D ; carriage return\n",e+="LF = %x0A ; linefeed\n",'; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\nlenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\nlenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\nlenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\nlenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\nlenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\nlenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\nlenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\nlenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\nlenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n ; Allow all printable characters except CTLs, semicolon and SP\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\ncookie-string = cookie-pair *( ";" SP cookie-pair )\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n; https://www.rfc-editor.org/errata/eid5518\ncookie-pair = cookie-name "=" cookie-value\ncookie-name = token\ncookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n ; https://www.rfc-editor.org/errata/eid8242\ncookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace, DQUOTE, comma, semicolon,\n ; and backslash\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\nOWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n\n; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\ntoken = 1*(tchar)\ntchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n / DIGIT / ALPHA\n ; any VCHAR, except delimiters\n\n; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\nCHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\nCTL = %x00-1F / %x7F ; any US-ASCII control character\nseparators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\nSP = %x20 ; US-ASCII SP, space (32)\nHT = %x09 ; US-ASCII HT, horizontal-tab (9)\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nDQUOTE = %x22 ; " (Double Quote)\nWSP = SP / HTAB ; white space\nHTAB = %x09 ; horizontal tab\nCRLF = CR LF ; Internet standard newline\nCR = %x0D ; carriage return\nLF = %x0A ; linefeed\n'}}new nA;const iA=e=>{if("string"!=typeof e||1!==[...e].length)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},oA=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),cA=e=>oA(e)?e.slice(1,-1):e,aA=e=>`"${e}"`,lA=e=>e,uA=new ha,pA=new nA,hA=(e,{strict:t=!0,quoted:r=null}={})=>{try{const s=t?"cookie-value":"lenient-cookie-value",n=uA.parse(pA,s,e);return"boolean"==typeof r?n.success&&r===oA(e):n.success}catch{return!1}},dA=e=>{const t=(new TextEncoder).encode(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)},mA=(e,t=dA)=>{const r=String(e);if(hA(r))return r;const s=oA(r),n=t(s?cA(r):r);return s?aA(n):n},fA=e=>dA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),yA=e=>mA(e,fA),vA=new ha,gA=new nA,bA=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return vA.parse(gA,r,e).success}catch{return!1}},xA=e=>{if(!bA(e))throw new TypeError(`Invalid cookie name: ${e}`)},EA=e=>{if(!hA(e))throw new TypeError(`Invalid cookie value: ${e}`)},wA={encoders:{name:lA,value:yA},validators:{name:xA,value:EA}},jA=(e,t,r={})=>{const s={...wA,...r,encoders:{...wA.encoders,...r.encoders},validators:{...wA.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},SA=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map(([e,r])=>jA(e,r,t)).join("; ");const OA=new ha,PA=new nA,$A=e=>{const t=String(e);if(hA(t))return t;const r=oA(t),s=r?cA(t):t;let n="";for(const e of s)n+=OA.parse(PA,"cookie-octet",e).success?e:iA(e);return r?aA(n):n};new ha,new nA;const AA=e=>{if(!bA(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const kA=e=>$A(e).replace(/[=&]/gu,e=>"="===e?"%3D":"%26"),TA=(e,t={})=>SA(e,Uc({encoders:{name:lA,value:kA},validators:{name:AA,value:EA}},t));function CA({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:c}=r;if(void 0===t)return;const a=e.url.replace(s,"");let l;if(c){const e=Object.keys(c)[0];l=tA(a,{[n]:t},{encoder:t=>S(sA(t,e))})}else l=tA(a,{[n]:t},{encoder:e=>O({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function FA({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=sA(t,Object.keys(r.content)[0]);if(s)e.query[r.name]=s;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}return}if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:s,explode:n,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:s,explode:n,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 MA=["accept","authorization","content-type"];function IA({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(MA.indexOf(t.name.toLowerCase())>-1)){if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];return void(e.headers[t.name]=sA(r,s))}void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=O({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}}function RA({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=sA(r,Object.keys(t.content)[0]);return void(e.headers.Cookie=TA({[s]:n}))}if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n=O({key:t.name,value:r,escape:!1,style:t.style||"form",explode:t.explode??!1}),i=Array.isArray(r)&&t.explode?`${s}=${n}`:n;e.headers.Cookie=TA({[s]:i})}}const DA="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:_A}=DA,NA=_A;function LA(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:c}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={}}=t,o=r.security||s.security||[],c=i&&!!Object.keys(i).length,a=s?.components?.securitySchemes||{};if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!c||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach(e=>{Object.keys(e).forEach(e=>{const t=i[e],r=a[e];if(!t)return;const s=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(n.query[r.name]=s),"header"===r.in&&(n.headers[r.name]=s),"cookie"===r.in&&(n.cookies[r.name]=s);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=s.username||"",t=s.password||"",r=NA(`${e}:${t}`);n.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(n.headers.Authorization=`Bearer ${s}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},s=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),n.headers.Authorization=`${i} ${s}`}})}),n}({request:t,securities:n,operation:r,spec:i});const a=r.requestBody||{},l=Object.keys(a.content||{}),u=c&&l.indexOf(c)>-1;if(s||o){if(c&&u)t.headers["Content-Type"]=c;else if(!c){const e=l[0];e&&(t.headers["Content-Type"]=e,c=e)}}else c&&u&&(t.headers["Content-Type"]=c);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter(([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&to(t.content)}).reduce((e,[,t])=>e.concat(Object.keys(t.content)),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(c){if(l.indexOf(c)>-1)if("application/x-www-form-urlencoded"===c||"multipart/form-data"===c)if("object"==typeof s){const e=a.content[c]?.encoding??{};t.form={},Object.keys(s).forEach(r=>{let n;try{n=JSON.parse(s[r])}catch{n=s[r]}t.form[r]={value:n,encoding:e[r]||{}}})}else if("string"==typeof s){const e=a.content[c]?.encoding??{};try{t.form={};const r=JSON.parse(s);Object.entries(r).forEach(([r,s])=>{t.form[r]={value:s,encoding:e[r]||{}}})}catch{t.form=s}}else t.form=s;else t.body=s}else t.body=s;return t}function BA(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:c}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,c=r.security||o,a=i&&!!Object.keys(i).length,l=s.securityDefinitions;if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!a||!c||Array.isArray(r.security)&&!r.security.length)return e;return c.forEach(e=>{Object.keys(e).forEach(e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=l[e],{type:c}=o,a=o["x-tokenName"]||"access_token",u=r&&r[a];let p=r&&r.token_type;if(t)if("apiKey"===c){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===c)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=NA(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===c&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",n.headers.authorization=`${p} ${u}`)})}),n}({request:t,securities:n,operation:s,spec:r}),t.body||t.form||c)i?t.headers["Content-Type"]=i:Array.isArray(s.consumes)?[t.headers["Content-Type"]]=s.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:s.parameters&&s.parameters.filter(e=>"file"===e.type).length?t.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter(e=>"formData"===e.in).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=s.parameters&&s.parameters.filter(e=>"body"===e.in).length>0,r=s.parameters&&s.parameters.filter(e=>"formData"===e.in).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(s.produces)&&s.produces.length>0&&(t.headers.accept=s.produces.join(", ")),t}function qA(e,t){return`${t.toLowerCase()}-${e}`}function UA(e,t){return e&&e.paths?function(e,t){return F$(e,t,!0)||null}(e,({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[so(s,e,r),qA(e,r),n].some(e=>e&&e===t)}):null}const VA=e=>Array.isArray(e)?e:[],JA=(e,{recurse:t=!0,depth:r=1}={})=>{var s,n;if(to(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(I()(s=e.type).call(s,"object")||I()(n=e.type).call(n,"array")))return e;if(!(r>g)&&t){const s=Array.isArray(e.oneOf)?e.oneOf.find(e=>JA(e,{recurse:t,depth:r+1})):void 0;if(s)return s;const n=Array.isArray(e.anyOf)?e.anyOf.find(e=>JA(e,{recurse:t,depth:r+1})):void 0;if(n)return n}}},HA=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(to(r)||Array.isArray(r))return r;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},zA=e=>{try{return new URL(e)}catch{const t=new URL(e,y),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class GA extends wr{}const WA={buildRequest:KA};function KA(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:c,userFetch:a,server:l,serverVariables:u,http:p,signal:h,serverVariableEncoder:d}=e;let{parameters:f,parameterBuilders:y,baseURL:v}=e;const g=uo(t);y||(y=g?m:rA);let b={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(b.signal=h),i&&(b.requestInterceptor=i),o&&(b.responseInterceptor=o),a&&(b.userFetch=a);const x=UA(t,r);if(!x)throw new GA(`Operation ${r} not found`);const{operation:E={},method:w,pathName:j}=x;if(v=v??XA({spec:t,scheme:n,contextUrl:c,server:l,serverVariables:u,pathName:j,method:w,serverVariableEncoder:d}),b.url+=v,!r)return delete b.cookies,b;b.url+=j,b.method=`${w}`.toUpperCase(),f=f||{};const S=t.paths[j]||{};s&&(b.headers.accept=s);const O=(e=>{const t={};e.forEach(e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});const r=[];return Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(s=>{r.push(t[e][s])})}),r})([].concat(VA(E.parameters)).concat(VA(S.parameters)));O.forEach(e=>{const r=y[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=f),s=e&&e.name&&f[e.name],void 0===s?s=e&&e.name&&f[`${e.in}.${e.name}`]:((e,t)=>t.filter(t=>t.name===e))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==s){if(void 0!==e.default&&void 0===s&&(s=e.default),void 0===s&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);g&&"string"==typeof s&&(mc("type",e.schema)&&"string"==typeof e.schema.type&&JA(e.schema,{recurse:!1})?s=HA({value:s,silentFail:!1}):(mc("type",e.schema)&&Array.isArray(e.schema.type)&&JA(e.schema,{recurse:!1})||!mc("type",e.schema)&&JA(e.schema,{recurse:!0}))&&(s=HA({value:s,silentFail:!0}))),r&&r({req:b,parameter:e,value:s,operation:E,spec:t,baseURL:v})}});const P={...e,operation:E};if(b=g?LA(P,b):BA(P,b),b.cookies&&Object.keys(b.cookies).length>0){const e=TA(b.cookies);ku(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,F(b)}const YA=e=>e?e.replace(/\W/g,""):null;function XA(e){return uo(e.spec)?function({spec:e,pathName:t,method:r,server:s,contextUrl:n,serverVariables:i={},serverVariableEncoder:o}){let c,a=[],l="";const u=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,p=e?.paths?.[t]?.servers,h=e?.servers;a=QA(u)?u:QA(p)?p:QA(h)?h:[v],s&&(c=a.find(e=>e.url===s),c&&(l=s));l||([c]=a,l=c.url);if(q$(l,{strict:!0})){const e=Object.entries({...c.variables}).reduce((e,[t,r])=>(e[t]=r.default,e),{});l=J$(l,{...e,...i},{encoder:"function"==typeof o?o:IE})}return function(e="",t=""){const r=zA(e&&t?Fn(t,e):e),s=zA(t),n=YA(r.protocol)||YA(s.protocol),i=r.host||s.host,o=r.pathname;let c;c=n&&i?`${n}://${i+o}`:o;return"/"===c[c.length-1]?c.slice(0,-1):c}(l,n)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=zA(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||YA(s.protocol)||"http",o=e.host||s.host||"",c=e.basePath||"";let a;a=i&&o?`${i}://${o+c}`:c;return"/"===a[a.length-1]?a.slice(0,-1):a}(e)}const QA=e=>Array.isArray(e)&&e.length>0;const{q$:ZA}=n,ek=ZA;function tk(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof tk))return new tk(t);Object.assign(this,t);const r=this.resolve().then(()=>(this.disableInterfaces||Object.assign(this,tk.makeApisTagOperation(this)),this));return r.client=this,r}tk.http=bt,tk.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=F(s),s=t(s),r(e(s)))}.bind(null,tk.http),tk.resolveStrategies={"openapi-3-2-apidom":C$,"openapi-3-1-apidom":Rj,"openapi-3-0":ho,"openapi-2-0":po,generic:io},tk.resolve=mo({strategies:[tk.resolveStrategies["openapi-3-2-apidom"],tk.resolveStrategies["openapi-3-1-apidom"],tk.resolveStrategies["openapi-3-0"],tk.resolveStrategies["openapi-2-0"],tk.resolveStrategies.generic]}),tk.resolveSubtree=yo({strategies:[tk.resolveStrategies["openapi-3-2-apidom"],tk.resolveStrategies["openapi-3-1-apidom"],tk.resolveStrategies["openapi-3-0"],tk.resolveStrategies["openapi-2-0"],tk.resolveStrategies.generic]}),tk.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:c,...a}){const l=e||t||bt;n&&i&&!s&&(s=qA(n,i));const u=WA.buildRequest({spec:r,operationId:s,parameters:o,securities:c,http:l,...a});return u.body&&(to(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},tk.serializeRes=gt,tk.serializeHeaders=vt,tk.clearCache=function(){qi.refs.clearCache()},tk.makeApisTagOperation=function(e={}){const t=I$.makeExecute(e);return{apis:I$.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},tk.buildRequest=KA,tk.helpers={opId:so},tk.getBaseUrl=XA,tk.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:uw}},parse:{parsers:{JsonParser:hw,YamlParser:dw,OpenApiJson3_1Parser:mw,OpenApiYaml3_1Parser:fw,OpenApiJson3_2Parser:LP,OpenApiYaml3_2Parser:BP}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:yj,OpenApi3_2SwaggerClientDereferenceStrategy:v$}}},tk.prototype={http:bt,execute(e){return this.applyDefaults(),tk.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 tk.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,pathDiscriminator:this.pathDiscriminator||[],skipNormalization:this.skipNormalization||!1,...e}).then(e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this))}},tk.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(oo(e)&&ek(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(uo(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[v])}};const{helpers:rk}=tk,sk=tk})(),s=s.default})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,()=>(()=>{var e={4744(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map(function(e){return s(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 c(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach(function(t){n[t]=s(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])?n[i]=function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))}),n}function a(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=s;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):c(e,r,i):s(r,i)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})};var l=a;e.exports=l},5580(e,t,r){var s=r(6110)(r(9325),"DataView");e.exports=s},1549(e,t,r){var s=r(2032),n=r(3862),i=r(6721),o=r(2749),c=r(5749);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},79(e,t,r){var s=r(3702),n=r(80),i=r(4739),o=r(8655),c=r(3556);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},8223(e,t,r){var s=r(6110)(r(9325),"Map");e.exports=s},3661(e,t,r){var s=r(3040),n=r(7670),i=r(289),o=r(4509),c=r(2949);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},2804(e,t,r){var s=r(6110)(r(9325),"Promise");e.exports=s},6545(e,t,r){var s=r(6110)(r(9325),"Set");e.exports=s},8859(e,t,r){var s=r(3661),n=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},7217(e,t,r){var s=r(79),n=r(1420),i=r(938),o=r(3605),c=r(9817),a=r(945);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=c,l.prototype.set=a,e.exports=l},1873(e,t,r){var s=r(9325).Symbol;e.exports=s},7828(e,t,r){var s=r(9325).Uint8Array;e.exports=s},8303(e,t,r){var s=r(6110)(r(9325),"WeakMap");e.exports=s},7389(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},695(e,t,r){var s=r(8096),n=r(2428),i=r(6449),o=r(3656),c=r(361),a=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&a(e),d=r||u||p||h,m=d?s(e.length,String):[],f=m.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,f))||m.push(y);return m}},4528(e){e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},4248(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6025(e,t,r){var s=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},2199(e,t,r){var s=r(4528),n=r(6449);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},2552(e,t,r){var s=r(1873),n=r(659),i=r(9350),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7534(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},270(e,t,r){var s=r(7068),n=r(346);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,c))}},7068(e,t,r){var s=r(7217),n=r(5911),i=r(1986),o=r(689),c=r(5861),a=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,v){var g=a(e),b=a(t),x=g?h:c(e),E=b?h:c(t),w=(x=x==p?d:x)==d,j=(E=E==p?d:E)==d,S=x==E;if(S&&l(e)){if(!l(t))return!1;g=!0,w=!1}if(S&&!w)return v||(v=new s),g||u(e)?n(e,t,r,f,y,v):i(e,t,x,r,f,y,v);if(!(1&r)){var O=w&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(O||P){var A=O?e.value():e,$=P?t.value():t;return v||(v=new s),y(A,$,r,f,v)}}return!!S&&(v||(v=new s),o(e,t,r,f,y,v))}},5083(e,t,r){var s=r(1882),n=r(7296),i=r(3805),o=r(7473),c=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:c).test(o(e))}},4901(e,t,r){var s=r(2552),n=r(294),i=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},8984(e,t,r){var s=r(5527),n=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096(e){e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},7301(e){e.exports=function(e){return function(t){return e(t)}}},9219(e){e.exports=function(e,t){return e.has(t)}},5481(e,t,r){var s=r(9325)["__core-js_shared__"];e.exports=s},5911(e,t,r){var s=r(8859),n=r(4248),i=r(9219);e.exports=function(e,t,r,o,c,a){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var m=-1,f=!0,y=2&r?new s:void 0;for(a.set(e,t),a.set(t,e);++m<u;){var v=e[m],g=t[m];if(o)var b=l?o(g,v,m,t,e,a):o(v,g,m,e,t,a);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!n(t,function(e,t){if(!i(y,t)&&(v===e||c(v,e,r,o,a)))return y.push(t)})){f=!1;break}}else if(v!==g&&!c(v,g,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}},1986(e,t,r){var s=r(1873),n=r(7828),i=r(5288),o=r(5911),c=r(317),a=r(4247),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(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 d=c;case"[object Set]":var m=1&s;if(d||(d=a),e.size!=t.size&&!m)return!1;var f=h.get(e);if(f)return f==t;s|=2,h.set(e,t);var y=o(d(e),d(t),s,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689(e,t,r){var s=r(2),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!a)return!1;for(var p=u;p--;){var h=l[p];if(!(a?h in t:n.call(t,h)))return!1}var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var f=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<u;){var v=e[h=l[p]],g=t[h];if(i)var b=a?i(g,v,h,t,e,c):i(v,g,h,e,t,c);if(!(void 0===b?v===g||o(v,g,r,i,c):b)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(f=!1)}return c.delete(e),c.delete(t),f}},2459(e,t,r){var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2(e,t,r){var s=r(2199),n=r(4664),i=r(5950);e.exports=function(e){return s(e,i,n)}},2651(e,t,r){var s=r(4218);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110(e,t,r){var s=r(5083),n=r(392);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},659(e,t,r){var s=r(1873),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,c=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[c]=r:delete e[c]),n}},4664(e,t,r){var s=r(7389),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),s(o(e),function(t){return i.call(e,t)}))}:n;e.exports=c},5861(e,t,r){var s=r(5580),n=r(8223),i=r(2804),o=r(6545),c=r(8303),a=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",f=l(s),y=l(n),v=l(i),g=l(o),b=l(c),x=a;(s&&x(new s(new ArrayBuffer(1)))!=m||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||c&&x(new c)!=d)&&(x=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case f:return m;case y:return u;case v:return p;case g:return h;case b:return d}return t}),e.exports=x},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032(e,t,r){var s=r(5804);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},2749(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5749(e,t,r){var s=r(5804);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=r??9007199254740991)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var s,n=r(5481),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var s=r(6025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4739(e,t,r){var s=r(6025);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var s=r(6025);e.exports=function(e){return s(this.__data__,e)>-1}},3556(e,t,r){var s=r(6025);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3040(e,t,r){var s=r(1549),n=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},7670(e,t,r){var s=r(2651);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).get(e)}},4509(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).has(e)}},2949(e,t,r){var s=r(2651);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,s){r[++t]=[s,e]}),r}},5804(e,t,r){var s=r(6110)(Object,"create");e.exports=s},3650(e,t,r){var s=r(4335)(Object.keys,Object);e.exports=s},6009(e,t,r){e=r.nmd(e);var s=r(2459),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var s=r(2459),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},1420(e,t,r){var s=r(79);e.exports=function(){this.__data__=new s,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var s=r(79),n=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var s=r(7534),n=r(346),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var s=r(1882),n=r(294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},3812(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3656(e,t,r){e=r.nmd(e);var s=r(9325),n=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?s.Buffer:void 0,a=(c?c.isBuffer:void 0)||n;e.exports=a},2404(e,t,r){var s=r(270);e.exports=function(e,t){return s(e,t)}},1882(e,t,r){var s=r(2552),n=r(3805);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187(e){e.exports=function(e){return null===e}},8023(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},5015(e,t,r){var s=r(2552),n=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},7167(e,t,r){var s=r(4901),n=r(7301),i=r(6009),o=i&&i.isTypedArray,c=o?n(o):s;e.exports=c},5950(e,t,r){var s=r(695),n=r(8984),i=r(4894);e.exports=function(e){return i(e)?s(e):n(e)}},6048(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},2340(e,t,r){const s=r(6048);function n(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(s=>{const n=e.bind(t)(s);n&&r.push(n)}),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some(t=>t.equals(e))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},5973(e){class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},3110(e,t,r){const s=r(5187),n=r(5015),i=r(8023),o=r(3812),c=r(3805),a=r(5105),l=r(6804);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(s,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(c,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=u,e.exports=u},866(e,t,r){const s=r(6048),n=r(2340);class i extends n{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(s(e.bind(t)))}forEach(e,t){return this.elements.forEach((r,s)=>{e.bind(t)(r.value,r.key,r,s)})}keys(){return this.map((e,t)=>t.toValue())}values(){return this.map(e=>e.toValue())}}e.exports=i},6804(e,t,r){const s=r(316),n=r(1067),i=r(1167),o=r(239),c=r(2242),a=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),d=r(2340),m=r(866),f=r(5973);function y(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new n;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,d.prototype.refract=y,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:d,ObjectSlice:m,KeyValuePair:f}},6303(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},4540(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},4035(e,t,r){const s=r(3110),n=r(6804);t.g$=s,t.KeyValuePair=r(5973),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(5105),r(5147)},6233(e,t,r){const s=r(6048),n=r(316),i=r(2340);class o extends n{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(s=>{const n=e.bind(t)(s);n&&r.push(n)}),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach((r,s)=>{e.bind(t)(r,this.refract(s))})}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||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)}),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>t.classes.includes(e))}getById(e){return this.find(t=>t.id.toValue()===e).first}includes(e){return this.content.some(t=>t.equals(e))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map(t=>e(t),this).reduce((e,t)=>e.concat(t),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2242(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316(e,t,r){const s=r(2404),n=r(5973),i=r(2340);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(e=>{e.parent=this,e.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map(e=>e.clone()):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{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 s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(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 s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0})),r}set(e){return this.content=e,this}equals(e){return s(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 n)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 n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach(t=>{e.push(t),t.recursiveChildren.forEach(t=>{e.push(t)})}),e}}e.exports=o},7726(e,t,r){const s=r(5973),n=r(316);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},1067(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},239(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045(e,t,r){const s=r(6048),n=r(3805),i=r(6233),o=r(7726),c=r(866);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this.content.filter(r=>r.key.toValue()!==e||(t=r,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach(t=>{this.set(t,e[t])}),this;const r=e,s=this.getMember(r);return s?s.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((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)}),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach(r=>e.bind(t)(r.value,r.key,r))}}},1167(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},5147(e,t,r){const s=r(5105);e.exports=class extends s{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 s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)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 s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}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([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach(e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")}),e.content&&0!==r.length&&n.unshift(e.content),n=n.map(e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content])),n.length&&t.set("samples",n),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 s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach(s=>{s.forEach(s=>{const n=new t(s);n.element=r.element,e.push(n)})});const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);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 s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}}),t}deserialiseObject(e,t){Object.keys(e).forEach(r=>{t.set(r,this.deserialise(e[r]))})}}},5105(e){e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(r=>{t.set(r,this.deserialise(e[r]))})}}},8068(e){"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,c=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},a=(e,t,r)=>o(e,"symbol"!=typeof t?t+"":t,r),l={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>m});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){a(this,"counter"),a(this,"debug"),a(this,"dict"),a(this,"version"),a(this,"dictIndex",0),a(this,"dictRange",[]),a(this,"lowerBound",0),a(this,"upperBound",0),a(this,"dictLength",0),a(this,"uuidLength"),a(this,"_digit_first_ascii",48),a(this,"_digit_last_ascii",58),a(this,"_alpha_lower_first_ascii",97),a(this,"_alpha_lower_last_ascii",123),a(this,"_hex_last_ascii",103),a(this,"_alpha_upper_first_ascii",65),a(this,"_alpha_upper_last_ascii",91),a(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),a(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]}),a(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(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]}),a(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]}),a(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]}),a(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),a(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}),a(this,"log",(...e)=>{const t=[...e];t[0]="[short-unique-id] ".concat(e[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...t)}),a(this,"_normalizeDictionary",(e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{r=[],this.dictIndex=0;const t="_".concat(e,"_dict_ranges"),s=this._dict_ranges[t];let n=0;for(const[,e]of Object.entries(s)){const[t,r]=e;n+=Math.abs(r-t)}r=new Array(n);let i=0;for(const[,e]of Object.entries(s)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const t=this.lowerBound<=this.upperBound,s=this.lowerBound,n=this.upperBound;if(t)for(let e=s;e<n;e++)r[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=s;e>n;e--)r[i++]=String.fromCharCode(e),this.dictIndex=e}r.length=i}if(t){for(let e=r.length-1;e>0;e--){const t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}}return r}),a(this,"setDictionary",(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),a(this,"seq",()=>this.sequentialUUID()),a(this,"sequentialUUID",()=>{const e=this.dictLength,t=this.dict;let r=this.counter;const s=[];do{const n=r%e;r=Math.trunc(r/e),s.push(t[n])}while(0!==r);const n=s.join("");return this.counter+=1,n}),a(this,"rnd",(e=this.uuidLength||u)=>this.randomUUID(e)),a(this,"randomUUID",(e=this.uuidLength||u)=>{if(null==e||e<1)throw new Error("Invalid UUID Length Provided");const t=new Array(e),r=this.dictLength,s=this.dict;for(let n=0;n<e;n++){const e=Math.floor(Math.random()*r);t[n]=s[e]}return t.join("")}),a(this,"fmt",(e,t)=>this.formattedUUID(e,t)),a(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 s=e.slice(0,2),n=Number.parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)})}),a(this,"availableUUIDs",(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),a(this,"_collisionCache",new Map),a(this,"approxMaxBeforeCollision",(e=this.availableUUIDs(this.uuidLength))=>{const t=e,r=this._collisionCache.get(t);if(void 0!==r)return r;const s=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,s),s}),a(this,"collisionProbability",(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),a(this,"uniqueness",(e=this.availableUUIDs(this.uuidLength))=>{const t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),a(this,"getVersion",()=>this.version),a(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 s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return"".concat(i.substring(0,n)).concat(r).concat(i.substring(n)).concat(n.toString(16))}),a(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),s=Number.parseInt(e.slice(2),10);return t[r](s)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,r,s)=>e.substring(r.length,r.length+s.length)):e;if(8===r.length)return new Date(1e3*Number.parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=Number.parseInt(r.substring(r.length-1),16);return new Date(1e3*Number.parseInt(r.substring(s,s+8),16))}),a(this,"setCounter",e=>{this.counter=e}),a(this,"validate",(e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every(e=>r.includes(e))});const t=c(c({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:r,shuffle:s,length:n,counter:i}=t;this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(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)}};a(h,"default",h);var d,m=h;return d=l,((s,i,o,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of r(i))n.call(s,a)||a===o||e(s,a,{get:()=>i[a],enumerable:!(c=t(i,a))||c.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},8628(e,t,r){e.exports=r(6343)},8675(e,t,r){e.exports=r(850)},8623(e,t,r){"use strict";var s=r(694);e.exports=s},7257(e,t,r){"use strict";r(6605),r(4502),r(6371),r(9363),r(7057);var s=r(2046);e.exports=s.AggregateError},1362(e,t,r){"use strict";r(9748);var s=r(1747);e.exports=s("Array","includes")},6880(e,t,r){"use strict";var s=r(8280),n=r(1362),i=r(4378),o=Array.prototype,c=String.prototype;e.exports=function(e){var t=e.includes;return e===o||s(o,e)&&t===o.includes?n:"string"==typeof e||e===c||s(c,e)&&t===c.includes?i:t}},4378(e,t,r){"use strict";r(9770);var s=r(1747);e.exports=s("String","includes")},850(e,t,r){"use strict";e.exports=r(6076)},6076(e,t,r){"use strict";r(1599);var s=r(8623);e.exports=s},2159(e,t,r){"use strict";var s=r(2250),n=r(4640),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},43(e,t,r){"use strict";var s=r(4018),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2156(e){"use strict";e.exports=function(){}},6624(e,t,r){"use strict";var s=r(6285),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},4436(e,t,r){"use strict";var s=r(7374),n=r(4849),i=r(575),o=function(e){return function(t,r,o){var c=s(t),a=i(c);if(0===a)return!e&&-1;var l,u=n(o,a);if(e&&r!=r){for(;a>u;)if((l=c[u++])!=l)return!0}else for(;a>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5807(e,t,r){"use strict";var s=r(1907),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},3948(e,t,r){"use strict";var s=r(2623),n=r(2250),i=r(5807),o=r(6264)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},9595(e,t,r){"use strict";var s=r(9724),n=r(1042),i=r(3846),o=r(4284);e.exports=function(e,t,r){for(var c=n(t),a=o.f,l=i.f,u=0;u<c.length;u++){var p=c[u];s(e,p)||r&&s(r,p)||a(e,p,l(t,p))}}},5735(e,t,r){"use strict";var s=r(6264)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[s]=!1,"/./"[e](t)}catch(e){}}return!1}},7382(e,t,r){"use strict";var s=r(8828);e.exports=!s(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},9550(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},1626(e,t,r){"use strict";var s=r(9447),n=r(4284),i=r(5817);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5817(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8055(e,t,r){"use strict";var s=r(1626);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},2532(e,t,r){"use strict";var s=r(5951),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},9447(e,t,r){"use strict";var s=r(8828);e.exports=!s(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},9552(e,t,r){"use strict";var s=r(5951),n=r(6285),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9287(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}},376(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6794(e,t,r){"use strict";var s=r(5951).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},798(e,t,r){"use strict";var s,n,i=r(5951),o=r(6794),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.version,u=l&&l.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5762(e,t,r){"use strict";var s=r(1907),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},5884(e,t,r){"use strict";var s=r(1626),n=r(5762),i=r(3888),o=Error.captureStackTrace;e.exports=function(e,t,r,c){i&&(o?o(e,t):s(e,"stack",n(r,c)))}},3888(e,t,r){"use strict";var s=r(8828),n=r(5817);e.exports=!s(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)})},1091(e,t,r){"use strict";var s=r(5951),n=r(6024),i=r(2361),o=r(2250),c=r(3846).f,a=r(7463),l=r(2046),u=r(8311),p=r(1626),h=r(9724);r(6128);var d=function(e){var t=function(r,s,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,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,m,f,y,v,g,b,x,E=e.target,w=e.global,j=e.stat,S=e.proto,O=w?s:j?s[E]:s[E]&&s[E].prototype,P=w?l:l[E]||p(l,E,{})[E],A=P.prototype;for(f in t)n=!(r=a(w?f:E+(j?".":"#")+f,e.forced))&&O&&h(O,f),v=P[f],n&&(g=e.dontCallGetSet?(x=c(O,f))&&x.value:O[f]),y=n&&g?g:t[f],(r||S||typeof v!=typeof y)&&(b=e.bind&&n?u(y,s):e.wrap&&n?d(y):S&&o(y)?i(y):y,(e.sham||y&&y.sham||v&&v.sham)&&p(b,"sham",!0),p(P,f,b),S&&(h(l,m=E+"Prototype")||p(l,m,{}),p(l[m],f,y),e.real&&A&&(r||!A[f])&&p(A,f,y)))}},8828(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6024(e,t,r){"use strict";var s=r(1505),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},8311(e,t,r){"use strict";var s=r(2361),n=r(2159),i=r(1505),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1505(e,t,r){"use strict";var s=r(8828);e.exports=!s(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},3930(e,t,r){"use strict";var s=r(1505),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},6833(e,t,r){"use strict";var s=r(9447),n=r(9724),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,c=n(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:l}},1871(e,t,r){"use strict";var s=r(1907),n=r(2159);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2361(e,t,r){"use strict";var s=r(5807),n=r(1907);e.exports=function(e){if("Function"===s(e))return n(e)}},1907(e,t,r){"use strict";var s=r(1505),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},1747(e,t,r){"use strict";var s=r(5951),n=r(2046);e.exports=function(e,t){var r=n[e+"Prototype"],i=r&&r[t];if(i)return i;var o=s[e],c=o&&o.prototype;return c&&c[t]}},5582(e,t,r){"use strict";var s=r(2046),n=r(5951),i=r(2250),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},3448(e,t,r){"use strict";var s=r(3948),n=r(9367),i=r(7136),o=r(3742),c=r(6264)("iterator");e.exports=function(e){if(!i(e))return n(e,c)||n(e,"@@iterator")||o[s(e)]}},300(e,t,r){"use strict";var s=r(3930),n=r(2159),i=r(6624),o=r(4640),c=r(3448),a=TypeError;e.exports=function(e,t){var r=arguments.length<2?c(e):t;if(n(r))return i(s(r,e));throw new a(o(e)+" is not iterable")}},9367(e,t,r){"use strict";var s=r(2159),n=r(7136);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},5951(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724(e,t,r){"use strict";var s=r(1907),n=r(9298),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},8530(e){"use strict";e.exports={}},2416(e,t,r){"use strict";var s=r(5582);e.exports=s("document","documentElement")},3648(e,t,r){"use strict";var s=r(9447),n=r(8828),i=r(9552);e.exports=!s&&!n(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},6946(e,t,r){"use strict";var s=r(1907),n=r(8828),i=r(5807),o=Object,c=s("".split);e.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?c(e,""):o(e)}:o},4084(e,t,r){"use strict";var s=r(2250),n=r(6285),i=r(9192);e.exports=function(e,t,r){var o,c;return i&&s(o=t.constructor)&&o!==r&&n(c=o.prototype)&&c!==r.prototype&&i(e,c),e}},9259(e,t,r){"use strict";var s=r(6285),n=r(1626);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},4932(e,t,r){"use strict";var s,n,i,o=r(551),c=r(5951),a=r(6285),l=r(1626),u=r(9724),p=r(6128),h=r(2522),d=r(8530),m="Object already initialized",f=c.TypeError,y=c.WeakMap;if(o||p.state){var v=p.state||(p.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,s=function(e,t){if(v.has(e))throw new f(m);return t.facade=e,v.set(e,t),t},n=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var g=h("state");d[g]=!0,s=function(e,t){if(u(e,g))throw new f(m);return t.facade=e,l(e,g,t),t},n=function(e){return u(e,g)?e[g]:{}},i=function(e){return u(e,g)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},7812(e,t,r){"use strict";var s=r(6264),n=r(3742),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2250(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},7463(e,t,r){"use strict";var s=r(8828),n=r(2250),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r===u||r!==l&&(n(t)?s(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},7136(e){"use strict";e.exports=function(e){return null==e}},6285(e,t,r){"use strict";var s=r(2250);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},4018(e,t,r){"use strict";var s=r(6285);e.exports=function(e){return s(e)||null===e}},7376(e){"use strict";e.exports=!0},2087(e,t,r){"use strict";var s=r(6285),n=r(5807),i=r(6264)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===n(e))}},5594(e,t,r){"use strict";var s=r(5582),n=r(2250),i=r(8280),o=r(1175),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,c(e))}},4823(e,t,r){"use strict";var s=r(8311),n=r(3930),i=r(6624),o=r(4640),c=r(7812),a=r(575),l=r(8280),u=r(300),p=r(3448),h=r(154),d=TypeError,m=function(e,t){this.stopped=e,this.result=t},f=m.prototype;e.exports=function(e,t,r){var y,v,g,b,x,E,w,j=r&&r.that,S=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=s(t,j),k=function(e){var t=y;return y=void 0,t&&h(t,"normal"),new m(!0,e)},T=function(e){return S?(i(e),A?$(e[0],e[1],k):$(e[0],e[1])):A?$(e,k):$(e)};if(O)y=e.iterator;else if(P)y=e;else{if(!(v=p(e)))throw new d(o(e)+" is not iterable");if(c(v)){for(g=0,b=a(e);b>g;g++)if((x=T(e[g]))&&l(f,x))return x;return new m(!1)}y=u(e,v)}for(E=O?e.next:y.next;!(w=n(E,y)).done;){var M=w.value;try{x=T(M)}catch(e){if(!y)throw e;h(y,"throw",e)}if("object"==typeof x&&x&&l(f,x))return x}return new m(!1)}},154(e,t,r){"use strict";var s=r(3930),n=r(6624),i=r(9367);e.exports=function(e,t,r){var o,c;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw r;if(c)throw o;return n(o),r}},7181(e,t,r){"use strict";var s=r(5116).IteratorPrototype,n=r(8075),i=r(5817),o=r(4840),c=r(3742),a=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),c[u]=a,e}},183(e,t,r){"use strict";var s=r(1091),n=r(3930),i=r(7376),o=r(6833),c=r(2250),a=r(7181),l=r(5972),u=r(9192),p=r(4840),h=r(1626),d=r(8055),m=r(6264),f=r(3742),y=r(5116),v=o.PROPER,g=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),w="keys",j="values",S="entries",O=function(){return this};e.exports=function(e,t,r,o,m,y,P){a(r,t,o);var A,$,k,T=function(e){if(e===m&&R)return R;if(!x&&e&&e in F)return F[e];switch(e){case w:case j:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},M=t+" Iterator",C=!1,F=e.prototype,I=F[E]||F["@@iterator"]||m&&F[m],R=!x&&I||T(m),_="Array"===t&&F.entries||I;if(_&&(A=l(_.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):c(A[E])||d(A,E,O)),p(A,M,!0,!0),i&&(f[M]=O)),v&&m===j&&I&&I.name!==j&&(!i&&g?h(F,"name",j):(C=!0,R=function(){return n(I,this)})),m)if($={values:T(j),keys:y?R:T(w),entries:T(S)},P)for(k in $)(x||C||!(k in F))&&d(F,k,$[k]);else s({target:t,proto:!0,forced:x||C},$);return i&&!P||F[E]===R||d(F,E,R,{name:m}),f[t]=R,$}},5116(e,t,r){"use strict";var s,n,i,o=r(8828),c=r(2250),a=r(6285),l=r(8075),u=r(5972),p=r(8055),h=r(6264),d=r(7376),m=h("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):f=!0),!a(s)||o(function(){var e={};return s[m].call(e)!==e})?s={}:d&&(s=l(s)),c(s[m])||p(s,m,function(){return this}),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:f}},3742(e){"use strict";e.exports={}},575(e,t,r){"use strict";var s=r(3121);e.exports=function(e){return s(e.length)}},1176(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},2096(e,t,r){"use strict";var s=r(160);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},2074(e,t,r){"use strict";var s=r(2087),n=TypeError;e.exports=function(e){if(s(e))throw new n("The method doesn't accept regular expressions");return e}},8075(e,t,r){"use strict";var s,n=r(6624),i=r(2220),o=r(376),c=r(8530),a=r(2416),l=r(9552),u=r(2522),p="prototype",h="script",d=u("IE_PROTO"),m=function(){},f=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="undefined"!=typeof document?document.domain&&s?y(s):(t=l("iframe"),r="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(s);for(var n=o.length;n--;)delete v[p][o[n]];return v()};c[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=n(e),r=new m,m[p]=null,r[d]=e):r=v(),void 0===t?r:i.f(r,t)}},2220(e,t,r){"use strict";var s=r(9447),n=r(8661),i=r(4284),o=r(6624),c=r(7374),a=r(2875);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=c(t),n=a(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],s[r]);return e}},4284(e,t,r){"use strict";var s=r(9447),n=r(3648),i=r(8661),o=r(6624),c=r(470),a=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=s?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var s=u(e,t);s&&s[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=c(t),o(r),n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3846(e,t,r){"use strict";var s=r(9447),n=r(3930),i=r(2574),o=r(5817),c=r(7374),a=r(470),l=r(9724),u=r(3648),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=c(e),t=a(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4443(e,t,r){"use strict";var s=r(3045),n=r(376).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7170(e,t){"use strict";t.f=Object.getOwnPropertySymbols},5972(e,t,r){"use strict";var s=r(9724),n=r(2250),i=r(9298),o=r(2522),c=r(7382),a=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=i(e);if(s(t,a))return t[a];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8280(e,t,r){"use strict";var s=r(1907);e.exports=s({}.isPrototypeOf)},3045(e,t,r){"use strict";var s=r(1907),n=r(9724),i=r(7374),o=r(4436).indexOf,c=r(8530),a=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(c,r)&&n(s,r)&&a(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||a(u,r));return u}},2875(e,t,r){"use strict";var s=r(3045),n=r(376);e.exports=Object.keys||function(e){return s(e,n)}},2574(e,t){"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},9192(e,t,r){"use strict";var s=r(1871),n=r(6285),i=r(4239),o=r(43);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return i(r),o(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},4878(e,t,r){"use strict";var s=r(2623),n=r(3948);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},581(e,t,r){"use strict";var s=r(3930),n=r(2250),i=r(6285),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&n(r=e.toString)&&!i(c=s(r,e)))return c;if(n(r=e.valueOf)&&!i(c=s(r,e)))return c;if("string"!==t&&n(r=e.toString)&&!i(c=s(r,e)))return c;throw new o("Can't convert object to primitive value")}},1042(e,t,r){"use strict";var s=r(5582),n=r(1907),i=r(4443),o=r(7170),c=r(6624),a=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(c(e)),r=o.f;return r?a(t,r(e)):t}},2046(e){"use strict";e.exports={}},4829(e,t,r){"use strict";var s=r(4284).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4239(e,t,r){"use strict";var s=r(7136),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},4840(e,t,r){"use strict";var s=r(2623),n=r(4284).f,i=r(1626),o=r(9724),c=r(4878),a=r(6264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(o(u,a)||n(u,a,{configurable:!0,value:t}),l&&!s&&i(u,"toString",c))}},2522(e,t,r){"use strict";var s=r(5816),n=r(6499),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},6128(e,t,r){"use strict";var s=r(7376),n=r(5951),i=r(2532),o="__core-js_shared__",c=e.exports=n[o]||i(o,{});(c.versions||(c.versions=[])).push({version:"3.49.0",mode:s?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5816(e,t,r){"use strict";var s=r(6128);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},1470(e,t,r){"use strict";var s=r(1907),n=r(5482),i=r(160),o=r(4239),c=s("".charAt),a=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),h=n(r),d=p.length;return h<0||h>=d?e?"":void 0:(s=a(p,h))<55296||s>56319||h+1===d||(u=a(p,h+1))<56320||u>57343?e?c(p,h):s:e?l(p,h,h+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},9846(e,t,r){"use strict";var s=r(798),n=r(8828),i=r(5951).String;e.exports=!!Object.getOwnPropertySymbols&&!n(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41})},4849(e,t,r){"use strict";var s=r(5482),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},7374(e,t,r){"use strict";var s=r(6946),n=r(4239);e.exports=function(e){return s(n(e))}},5482(e,t,r){"use strict";var s=r(1176);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},3121(e,t,r){"use strict";var s=r(5482),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},9298(e,t,r){"use strict";var s=r(4239),n=Object;e.exports=function(e){return n(s(e))}},6028(e,t,r){"use strict";var s=r(3930),n=r(6285),i=r(5594),o=r(9367),c=r(581),a=r(6264),l=TypeError,u=a("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,a=o(e,u);if(a){if(void 0===t&&(t="default"),r=s(a,e,t),!n(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},470(e,t,r){"use strict";var s=r(6028),n=r(5594);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},2623(e,t,r){"use strict";var s={};s[r(6264)("toStringTag")]="z",e.exports="[object z]"===String(s)},160(e,t,r){"use strict";var s=r(3948),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},4640(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6499(e,t,r){"use strict";var s=r(1907),n=0,i=Math.random(),o=s(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1175(e,t,r){"use strict";var s=r(9846);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661(e,t,r){"use strict";var s=r(9447),n=r(8828);e.exports=s&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},551(e,t,r){"use strict";var s=r(5951),n=r(2250),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},6264(e,t,r){"use strict";var s=r(5951),n=r(5816),i=r(9724),o=r(6499),c=r(9846),a=r(1175),l=s.Symbol,u=n("wks"),p=a?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=c&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},9358(e,t,r){"use strict";var s=r(5582),n=r(9724),i=r(1626),o=r(8280),c=r(9192),a=r(9595),l=r(4829),u=r(4084),p=r(2096),h=r(9259),d=r(5884),m=r(9447),f=r(7376);e.exports=function(e,t,r,y){var v="stackTraceLimit",g=y?2:1,b=e.split("."),x=b[b.length-1],E=s.apply(null,b);if(E){var w=E.prototype;if(!f&&n(w,"cause")&&delete w.cause,!r)return E;var j=s("Error"),S=t(function(e,t){var r=p(y?t:e,void 0),s=y?new E(e):new E;return void 0!==r&&i(s,"message",r),d(s,S,s.stack,2),this&&o(w,this)&&u(s,this,S),arguments.length>g&&h(s,arguments[g]),s});if(S.prototype=w,"Error"!==x?c?c(S,j):a(S,j,{name:!0}):m&&v in E&&(l(S,E,v),l(S,E,"prepareStackTrace")),a(S,E),!f)try{w.name!==x&&i(w,"name",x),w.constructor=S}catch(e){}return S}}},6371(e,t,r){"use strict";var s=r(1091),n=r(5582),i=r(6024),o=r(8828),c=r(9358),a="AggregateError",l=n(a),u=!o(function(){return 1!==l([1]).errors[0]})&&o(function(){return 7!==l([1],a,{cause:7}).cause});s({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:c(a,function(e){return function(t,r){return i(e,this,arguments)}},u,!0)})},2048(e,t,r){"use strict";var s=r(1091),n=r(8280),i=r(5972),o=r(9192),c=r(9595),a=r(8075),l=r(1626),u=r(5817),p=r(9259),h=r(5884),d=r(4823),m=r(2096),f=r(6264)("toStringTag"),y=Error,v=[].push,g=function(e,t){var r,s=n(b,this);o?r=o(new y,s?i(this):b):(r=s?this:a(b),l(r,f,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var c=[];return d(e,v,{that:c}),l(r,"errors",c),r};o?o(g,y):c(g,y,{name:!0});var b=g.prototype=a(y.prototype,{constructor:u(1,g),message:u(1,""),name:u(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:g})},4502(e,t,r){"use strict";r(2048)},9748(e,t,r){"use strict";var s=r(1091),n=r(4436).includes,i=r(8828),o=r(2156),c=i(function(){return!Array(1).includes()}),a=i(function(){return[,1].includes(void 0,1)});s({target:"Array",proto:!0,forced:c||a},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},9363(e,t,r){"use strict";var s=r(7374),n=r(2156),i=r(3742),o=r(4932),c=r(4284).f,a=r(183),l=r(9550),u=r(7376),p=r(9447),h="Array Iterator",d=o.set,m=o.getterFor(h);e.exports=a(Array,"Array",function(e,t){d(this,{type:h,target:s(e),index:0,kind:t})},function(){var e=m(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)},"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==f.name)try{c(f,"name",{value:"values"})}catch(e){}},6605(e,t,r){"use strict";var s=r(1091),n=r(5951),i=r(6024),o=r(9358),c="WebAssembly",a=n[c],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),s({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(a&&a[e]){var r={};r[e]=o(c+"."+e,t,l),s({target:c,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",function(e){return function(t){return i(e,this,arguments)}}),u("EvalError",function(e){return function(t){return i(e,this,arguments)}}),u("RangeError",function(e){return function(t){return i(e,this,arguments)}}),u("ReferenceError",function(e){return function(t){return i(e,this,arguments)}}),u("SyntaxError",function(e){return function(t){return i(e,this,arguments)}}),u("TypeError",function(e){return function(t){return i(e,this,arguments)}}),u("URIError",function(e){return function(t){return i(e,this,arguments)}}),p("CompileError",function(e){return function(t){return i(e,this,arguments)}}),p("LinkError",function(e){return function(t){return i(e,this,arguments)}}),p("RuntimeError",function(e){return function(t){return i(e,this,arguments)}})},9770(e,t,r){"use strict";var s=r(1091),n=r(1907),i=r(2074),o=r(4239),c=r(160),a=r(5735),l=n("".indexOf);s({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~l(c(o(this)),c(i(e)),arguments.length>1?arguments[1]:void 0)}})},7057(e,t,r){"use strict";var s=r(1470).charAt,n=r(160),i=r(4932),o=r(183),c=r(9550),a="String Iterator",l=i.set,u=i.getterFor(a);o(String,"String",function(e){l(this,{type:a,string:n(e),index:0})},function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?c(void 0,!0):(e=s(r,n),t.index+=e.length,c(e,!1))})},1599(e,t,r){"use strict";r(4502)},2560(e,t,r){"use strict";r(9363);var s=r(9287),n=r(5951),i=r(4840),o=r(3742);for(var c in s)i(n[c],c),o[c]=o.Array},694(e,t,r){"use strict";r(1599);var s=r(7257);r(2560),e.exports=s},6343(e,t,r){"use strict";var s=r(6880);e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].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 s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s={};return(()=>{"use strict";r.d(s,{default:()=>TR});var e={};r.r(e),r.d(e,{JsonPatchError:()=>qt,_areEquals:()=>Xt,applyOperation:()=>Gt,applyPatch:()=>zt,applyReducer:()=>Wt,deepClone:()=>Ut,getValueByPointer:()=>Ht,validate:()=>Yt,validator:()=>Kt});var t={};r.r(t),r.d(t,{compare:()=>ir,generate:()=>sr,observe:()=>rr,unobserve:()=>tr});var n={};r.r(n),r.d(n,{bJ:()=>Dn,uQ:()=>Mn,Zd:()=>Rn,q$:()=>Fn,hd:()=>Nn,aj:()=>Ln,z9:()=>_n,zj:()=>Bn});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Go,includesClasses:()=>Wo,includesSymbols:()=>zo,isAnnotationElement:()=>Uo,isArrayElement:()=>No,isBooleanElement:()=>_o,isCommentElement:()=>Vo,isElement:()=>Co,isLinkElement:()=>Bo,isMemberElement:()=>Lo,isNullElement:()=>Ro,isNumberElement:()=>Io,isObjectElement:()=>Do,isParseResultElement:()=>Jo,isPrimitiveElement:()=>Ho,isRefElement:()=>qo,isStringElement:()=>Fo});var o={};r.r(o),r.d(o,{hasElementSourceMap:()=>wl,includesClasses:()=>Sl,includesSymbols:()=>jl,isAnnotationElement:()=>gl,isArrayElement:()=>ml,isBooleanElement:()=>hl,isCommentElement:()=>bl,isElement:()=>al,isLinkElement:()=>yl,isMemberElement:()=>fl,isNullElement:()=>pl,isNumberElement:()=>ul,isObjectElement:()=>dl,isParseResultElement:()=>xl,isPrimitiveElement:()=>El,isRefElement:()=>vl,isStringElement:()=>ll});var c={};r.r(c),r.d(c,{hasElementSourceMap:()=>gp,includesClasses:()=>xp,includesSymbols:()=>bp,isAnnotationElement:()=>mp,isArrayElement:()=>up,isBooleanElement:()=>ap,isCommentElement:()=>fp,isElement:()=>np,isLinkElement:()=>hp,isMemberElement:()=>pp,isNullElement:()=>cp,isNumberElement:()=>op,isObjectElement:()=>lp,isParseResultElement:()=>yp,isPrimitiveElement:()=>vp,isRefElement:()=>dp,isStringElement:()=>ip});var a={};r.r(a),r.d(a,{isJSONReferenceElement:()=>Hh,isJSONSchemaElement:()=>Jh,isLinkDescriptionElement:()=>zh,isMediaElement:()=>Gh});var l={};r.r(l),r.d(l,{isBooleanJsonSchemaElement:()=>Df,isCallbackElement:()=>vf,isComponentsElement:()=>gf,isContactElement:()=>bf,isDiscriminatorElement:()=>Jf,isExampleElement:()=>xf,isExternalDocumentationElement:()=>Ef,isHeaderElement:()=>wf,isInfoElement:()=>jf,isLicenseElement:()=>Sf,isLinkElement:()=>Of,isMediaTypeElement:()=>Uf,isOpenApi3_0Element:()=>Af,isOpenapiElement:()=>Pf,isOperationElement:()=>$f,isParameterElement:()=>kf,isPathItemElement:()=>Tf,isPathsElement:()=>Mf,isReferenceElement:()=>Cf,isRequestBodyElement:()=>Ff,isResponseElement:()=>If,isResponsesElement:()=>Rf,isSchemaElement:()=>_f,isSecurityRequirementElement:()=>Nf,isSecuritySchemeElement:()=>Lf,isServerElement:()=>Bf,isServerVariableElement:()=>qf,isServersElement:()=>Vf});var u={};r.r(u),r.d(u,{hasElementSourceMap:()=>Qx,includesClasses:()=>eE,includesSymbols:()=>Zx,isAnnotationElement:()=>Wx,isArrayElement:()=>Jx,isBooleanElement:()=>Ux,isCommentElement:()=>Kx,isElement:()=>Nx,isLinkElement:()=>Gx,isMemberElement:()=>Hx,isNullElement:()=>qx,isNumberElement:()=>Bx,isObjectElement:()=>Vx,isParseResultElement:()=>Yx,isPrimitiveElement:()=>Xx,isRefElement:()=>zx,isStringElement:()=>Lx});var p={};r.r(p),r.d(p,{isJSONReferenceElement:()=>Hh,isJSONSchemaElement:()=>CE,isLinkDescriptionElement:()=>FE,isMediaElement:()=>Gh});var h={};r.r(h),r.d(h,{hasElementSourceMap:()=>dw,includesClasses:()=>fw,includesSymbols:()=>mw,isAnnotationElement:()=>lw,isArrayElement:()=>iw,isBooleanElement:()=>sw,isCommentElement:()=>uw,isElement:()=>ZE,isLinkElement:()=>cw,isMemberElement:()=>ow,isNullElement:()=>rw,isNumberElement:()=>tw,isObjectElement:()=>nw,isParseResultElement:()=>pw,isPrimitiveElement:()=>hw,isRefElement:()=>aw,isStringElement:()=>ew});var d={};r.r(d),r.d(d,{isJSONReferenceElement:()=>Hh,isJSONSchemaElement:()=>Nw,isLinkDescriptionElement:()=>Lw});var m={};r.r(m),r.d(m,{hasElementSourceMap:()=>bj,includesClasses:()=>Ej,includesSymbols:()=>xj,isAnnotationElement:()=>fj,isArrayElement:()=>pj,isBooleanElement:()=>lj,isCommentElement:()=>yj,isElement:()=>ij,isLinkElement:()=>dj,isMemberElement:()=>hj,isNullElement:()=>aj,isNumberElement:()=>cj,isObjectElement:()=>uj,isParseResultElement:()=>vj,isPrimitiveElement:()=>gj,isRefElement:()=>mj,isStringElement:()=>oj});var f={};r.r(f),r.d(f,{isJSONSchemaElement:()=>hS,isLinkDescriptionElement:()=>dS});var y={};r.r(y),r.d(y,{hasElementSourceMap:()=>zS,includesClasses:()=>KS,includesSymbols:()=>WS,isAnnotationElement:()=>VS,isArrayElement:()=>LS,isBooleanElement:()=>DS,isCommentElement:()=>JS,isElement:()=>FS,isLinkElement:()=>qS,isMemberElement:()=>BS,isNullElement:()=>_S,isNumberElement:()=>RS,isObjectElement:()=>NS,isParseResultElement:()=>HS,isPrimitiveElement:()=>GS,isRefElement:()=>US,isStringElement:()=>IS});var v={};r.r(v),r.d(v,{isJSONSchemaElement:()=>jO,isLinkDescriptionElement:()=>SO});var g={};r.r(g),r.d(g,{isBooleanJsonSchemaElement:()=>RP,isCallbackElement:()=>hP,isComponentsElement:()=>dP,isContactElement:()=>mP,isExampleElement:()=>fP,isExternalDocumentationElement:()=>yP,isHeaderElement:()=>vP,isInfoElement:()=>gP,isJsonSchemaDialectElement:()=>bP,isLicenseElement:()=>xP,isLinkElement:()=>EP,isMediaTypeElement:()=>BP,isOpenApi3_1Element:()=>jP,isOpenapiElement:()=>wP,isOperationElement:()=>SP,isParameterElement:()=>OP,isPathItemElement:()=>PP,isPathItemElementExternal:()=>AP,isPathsElement:()=>$P,isReferenceElement:()=>kP,isReferenceElementExternal:()=>TP,isRequestBodyElement:()=>MP,isResponseElement:()=>CP,isResponsesElement:()=>FP,isSchemaElement:()=>IP,isSecurityRequirementElement:()=>_P,isSecuritySchemeElement:()=>DP,isServerElement:()=>NP,isServerVariableElement:()=>LP});var b={};r.r(b),r.d(b,{isBooleanJsonSchemaElement:()=>VM,isCallbackElement:()=>bM,isComponentsElement:()=>xM,isContactElement:()=>EM,isDiscriminatorElement:()=>wM,isExampleElement:()=>jM,isExternalDocumentationElement:()=>SM,isHeaderElement:()=>OM,isInfoElement:()=>PM,isJsonSchemaDialectElement:()=>AM,isLicenseElement:()=>$M,isLinkElement:()=>kM,isMediaTypeElement:()=>WM,isOpenApi3_2Element:()=>MM,isOpenapiElement:()=>TM,isOperationElement:()=>CM,isParameterElement:()=>FM,isPathItemElement:()=>IM,isPathItemElementExternal:()=>RM,isPathsElement:()=>_M,isReferenceElement:()=>DM,isReferenceElementExternal:()=>NM,isRequestBodyElement:()=>LM,isResponseElement:()=>BM,isResponsesElement:()=>qM,isSchemaElement:()=>UM,isSecurityRequirementElement:()=>JM,isSecuritySchemeElement:()=>HM,isServerElement:()=>GM,isServerVariableElement:()=>zM});var x={};r.r(x),r.d(x,{cookie:()=>pR,header:()=>uR,path:()=>cR,query:()=>aR});const E="application/json, application/yaml",w="https://swagger.io",j=Object.freeze({url:"/"}),S=3e3;function O(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 P(e,t){return Array.isArray(e)&&e.some(e=>O(e,t))}class A extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const $=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,k=e=>/^[a-z0-9\-._~]+$/i.test(e);function T(e,t="reserved"){return[...e].map(e=>{if(k(e))return e;if($(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map(e=>`0${e.toString(16).toUpperCase()}`.slice(-2)).map(e=>`%${e}`).join("")}).join("")}function M(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:s,escape:n}){if("simple"===r)return t.map(e=>C(e,n)).join(",");if("label"===r)return`.${t.map(e=>C(e,n)).join(".")}`;if("matrix"===r)return t.map(e=>C(e,n)).reduce((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`,"");if("form"===r){const r=s?`&${e}=`:",";return t.map(e=>C(e,n)).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map(e=>C(e,n)).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map(e=>C(e,n)).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:s,escape:n}){const i=Object.keys(t);if("simple"===r)return i.reduce((e,r)=>{const i=C(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`},"");if("label"===r)return i.reduce((e,r)=>{const i=C(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`},"");if("matrix"===r&&s)return i.reduce((e,r)=>`${e?`${e};`:";"}${r}=${C(t[r],n)}`,"");if("matrix"===r)return i.reduce((r,s)=>{const i=C(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`},"");if("form"===r)return i.reduce((e,r)=>{const i=C(t[r],n);return`${e?`${e}${s?"&":","}`:""}${r}${s?"=":","}${i}`},"");return}(e):function({key:e,value:t,style:r,escape:s}){if("simple"===r)return C(t,s);if("label"===r)return`.${C(t,s)}`;if("matrix"===r)return`;${e}=${C(t,s)}`;if("form"===r)return C(t,s);if("deepObject"===r)return C(t,s);return}(e)}function C(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&"string"==typeof e&&e.length>0?T(e,t):e??""}const F={form:",",spaceDelimited:"%20",pipeDelimited:"|"},I={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function R(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=t,c="object"!=typeof t||Array.isArray(t)?t:t.value,a=r?e=>e.toString():e=>encodeURIComponent(e),l=a(e);if(void 0===c&&n)return[[l,""]];if(O(c)||P(c))return[[l,c]];if(i)return _(e,c,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some(e=>"undefined"!==e)){const{style:t,explode:s,allowReserved:n}=o;return _(e,c,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=a("string"==typeof c?c:JSON.stringify(c));return[[l,new A(e,"blob",{type:o.contentType})]]}const e=a(String(c));return[[l,new A(e,"blob",{type:o.contentType})]]}return"object"!=typeof c?[[l,a(c)]]:Array.isArray(c)&&c.every(e=>"object"!=typeof e)?[[l,c.map(a).join(",")]]:[[l,a(JSON.stringify(c))]]}return"object"!=typeof c?[[l,a(c)]]:Array.isArray(c)?"multi"===s?[[l,c.map(a)]]:[[l,c.map(a).join(I[s||"csv"])]]:[[l,""]]}function _(e,t,r,s){const n=s.style||"form",i=void 0===s.explode?"form"===n:s.explode,o=!r&&(s&&s.allowReserved?"unsafe":"reserved"),c=e=>C(e,o),a=r?e=>e:e=>c(e);return"object"!=typeof t?[[a(e),c(t)]]:Array.isArray(t)?i?[[a(e),t.map(c)]]:[[a(e),t.map(c).join(F[n])]]:"deepObject"===n?Object.keys(t).map(r=>[a(`${e}[${r}]`),c(t[r])]):i?Object.keys(t).map(e=>[a(e),c(t[e])]):[[a(e),Object.keys(t).map(e=>[`${a(e)},${c(t[e])}`]).join(",")]]}function D(e){return((e,{encode:t=!0}={})=>{const r=(e,t,s)=>(Array.isArray(s)?s.reduce((s,n)=>r(e,t,n),e):s instanceof Date?e.append(t,s.toISOString()):"object"==typeof s?Object.entries(s).reduce((s,[n,i])=>r(e,`${t}[${n}]`,i),e):e.append(t,s),e),s=Object.entries(e).reduce((e,[t,s])=>r(e,t,s),new URLSearchParams),n=String(s);return t?n:decodeURIComponent(n)})(Object.keys(e).reduce((t,r)=>{for(const[s,n]of R(r,e[r]))t[s]=n instanceof A?n.valueOf():n;return t},{}),{encode:!1})}function N(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some(e=>{const{value:t}=s[e];return O(t)||P(t)}),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(n=e.form,Object.entries(n).reduce((e,[t,r])=>{for(const[s,n]of R(t,r,!0))if(Array.isArray(n))for(const t of n)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(s,r)}else e.append(s,t);else if(ArrayBuffer.isView(n)){const t=new Blob([n]);e.append(s,t)}else e.append(s,n);return e},new FormData));e.formdata=t,e.body=t}else e.body=D(s);delete e.form}var n;if(r){const[s,n]=t.split("?");let i="";if(n){const e=new URLSearchParams(n);Object.keys(r).forEach(t=>e.delete(t)),i=String(e)}const o=((...e)=>{const t=e.filter(e=>e).join("&");return t?`?${t}`:""})(i,D(r));e.url=s+o,delete e.query}return e}var L=r(8628),B=r.n(L);function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U,V,J,H,G,z,W,K,Y,X,Q,Z,ee,te,re,se,ne,ie,oe,ce,ae,le,ue,pe,he,de,me,fe,ye,ve,ge,be,xe,Ee,we,je,Se,Oe,Pe,Ae,$e,ke,Te,Me,Ce={},Fe={},Ie={};function Re(){if(U)return Ie;function e(e){return null==e}return U=1,Ie.isNothing=e,Ie.isObject=function(e){return"object"==typeof e&&null!==e},Ie.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},Ie.repeat=function(e,t){let r="";for(let s=0;s<t;s+=1)r+=e;return r},Ie.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},Ie.extend=function(e,t){if(t){const r=Object.keys(t);for(let s=0,n=r.length;s<n;s+=1){const n=r[s];e[n]=t[n]}}return e},Ie}function _e(){if(J)return V;function e(e,t){let r="";const s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),s+" "+r):s}function t(t,r){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=r,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return J=1,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+": "+e(this,t)},V=t}function De(){if(W)return z;W=1;const e=_e(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];return z=function(s,n){if(n=n||{},Object.keys(n).forEach(function(r){if(-1===t.indexOf(r))throw new e('Unknown option "'+r+'" is met in definition of "'+s+'" YAML type.')}),this.options=n,this.tag=s,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(e){return e},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=function(e){const t={};return null!==e&&Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})}),t}(n.styleAliases||null),-1===r.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')},z}function Ne(){if(Y)return K;Y=1;const e=_e(),t=De();function r(e,t){const r=[];return e[t].forEach(function(e){let t=r.length;r.forEach(function(r,s){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=s)}),r[t]=e}),r}function s(e){return this.extend(e)}return s.prototype.extend=function(n){let i=[],o=[];if(n instanceof t)o.push(n);else if(Array.isArray(n))o=o.concat(n);else{if(!n||!Array.isArray(n.implicit)&&!Array.isArray(n.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(o=o.concat(n.explicit))}i.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(r){if(!(r instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const c=Object.create(s.prototype);return c.implicit=(this.implicit||[]).concat(i),c.explicit=(this.explicit||[]).concat(o),c.compiledImplicit=r(c,"implicit"),c.compiledExplicit=r(c,"explicit"),c.compiledTypeMap=function(){const e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(t);return e}(c.compiledImplicit,c.compiledExplicit),c},K=s}function Le(){if(Q)return X;Q=1;const e=De();return X=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}function Be(){if(ee)return Z;ee=1;const e=De();return Z=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}function qe(){if(re)return te;re=1;const e=De();return te=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}function Ue(){if(ne)return se;ne=1;const e=Ne();return se=new e({explicit:[Le(),Be(),qe()]})}function Ve(){if(oe)return ie;oe=1;const e=De();return ie=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;const t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),ie}function Je(){if(ae)return ce;ae=1;const e=De();return ce=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),ce}function He(){if(ue)return le;ue=1;const e=Re(),t=De();function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function s(e){return e>=48&&e<=55}function n(e){return e>=48&&e<=57}function i(e){let t=e,r=1,s=t[0];if("-"!==s&&"+"!==s||("-"===s&&(r=-1),t=t.slice(1),s=t[0]),"0"===t)return 0;if("0"===s){if("b"===t[1])return r*parseInt(t.slice(2),2);if("x"===t[1])return r*parseInt(t.slice(2),16);if("o"===t[1])return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}return le=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;let o=0,c=!1;if(!t)return!1;let a=e[o];if("-"!==a&&"+"!==a||(a=e[++o]),"0"===a){if(o+1===t)return!0;if(a=e[++o],"b"===a){for(o++;o<t;o++){if(a=e[o],"0"!==a&&"1"!==a)return!1;c=!0}return c&&isFinite(i(e))}if("x"===a){for(o++;o<t;o++){if(!r(e.charCodeAt(o)))return!1;c=!0}return c&&isFinite(i(e))}if("o"===a){for(o++;o<t;o++){if(!s(e.charCodeAt(o)))return!1;c=!0}return c&&isFinite(i(e))}}for(;o<t;o++){if(!n(e.charCodeAt(o)))return!1;c=!0}return!!c&&isFinite(i(e))},construct:function(e){return i(e)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!e.isNegativeZero(t)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),le}function Ge(){if(he)return pe;he=1;const e=Re(),t=De(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),s=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");const n=/^[-+]?[0-9]+e/;return pe=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&(!!r.test(e)&&(!!isFinite(parseFloat(e,10))||s.test(e)))},construct:function(e){let t=e.toLowerCase();const r="-"===t[0]?-1:1;return"+-".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(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,r){if(isNaN(t))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";const s=t.toString(10);return n.test(s)?s.replace("e",".e"):s},defaultStyle:"lowercase"})}function ze(){return me?de:(me=1,de=Ue().extend({implicit:[Ve(),Je(),He(),Ge()]}))}function We(){return ye?fe:(ye=1,fe=ze())}function Ke(){if(ge)return ve;ge=1;const e=De(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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]))?))?$");return ve=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==r.exec(e))},construct:function(e){let s=0,n=null,i=t.exec(e);if(null===i&&(i=r.exec(e)),null===i)throw new Error("Date resolve error");const o=+i[1],c=+i[2]-1,a=+i[3];if(!i[4])return new Date(Date.UTC(o,c,a));const l=+i[4],u=+i[5],p=+i[6];if(i[7]){for(s=i[7].slice(0,3);s.length<3;)s+="0";s=+s}if(i[9]){n=6e4*(60*+i[10]+ +(i[11]||0)),"-"===i[9]&&(n=-n)}const h=new Date(Date.UTC(o,c,a,l,u,p,s));return n&&h.setTime(h.getTime()-n),h},instanceOf:Date,represent:function(e){return e.toISOString()}})}function Ye(){if(xe)return be;xe=1;const e=De();return be=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function Xe(){if(we)return Ee;we=1;const e=De(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return Ee=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let r=0;const s=e.length,n=t;for(let t=0;t<s;t++){const s=n.indexOf(e.charAt(t));if(!(s>64)){if(s<0)return!1;r+=6}}return r%8==0},construct:function(e){const r=e.replace(/[\r\n=]/g,""),s=r.length,n=t;let i=0;const o=[];for(let e=0;e<s;e++)e%4==0&&e&&(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)),i=i<<6|n.indexOf(r.charAt(e));const c=s%4*6;return 0===c?(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)):18===c?(o.push(i>>10&255),o.push(i>>2&255)):12===c&&o.push(i>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){let r="",s=0;const n=e.length,i=t;for(let t=0;t<n;t++)t%3==0&&t&&(r+=i[s>>18&63],r+=i[s>>12&63],r+=i[s>>6&63],r+=i[63&s]),s=(s<<8)+e[t];const o=n%3;return 0===o?(r+=i[s>>18&63],r+=i[s>>12&63],r+=i[s>>6&63],r+=i[63&s]):2===o?(r+=i[s>>10&63],r+=i[s>>4&63],r+=i[s<<2&63],r+=i[64]):1===o&&(r+=i[s>>2&63],r+=i[s<<4&63],r+=i[64],r+=i[64]),r}}),Ee}function Qe(){if(Se)return je;Se=1;const e=De(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;return je=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;const s={},n=e;for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o,c=!1;if("[object Object]"!==r.call(i))return!1;for(o in i)if(t.call(i,o)){if(c)return!1;c=!0}if(!c)return!1;if(t.call(s,o))return!1;Object.defineProperty(s,o,{value:!0})}return!0},construct:function(e){return null!==e?e:[]}})}function Ze(){if(Pe)return Oe;Pe=1;const e=De(),t=Object.prototype.toString;return Oe=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;const r=e,s=new Array(r.length);for(let e=0,n=r.length;e<n;e+=1){const n=r[e];if("[object Object]"!==t.call(n))return!1;const i=Object.keys(n);if(1!==i.length)return!1;s[e]=[i[0],n[i[0]]]}return!0},construct:function(e){if(null===e)return[];const t=e,r=new Array(t.length);for(let e=0,s=t.length;e<s;e+=1){const s=t[e],n=Object.keys(s);r[e]=[n[0],s[n[0]]]}return r}}),Oe}function et(){if($e)return Ae;$e=1;const e=De(),t=Object.prototype.hasOwnProperty;return Ae=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;const r=e;for(const e in r)if(t.call(r,e)&&null!==r[e])return!1;return!0},construct:function(e){return null!==e?e:{}}})}function tt(){return Te?ke:(Te=1,ke=We().extend({implicit:[Ke(),Ye()],explicit:[Xe(),Qe(),Ze(),et()]}))}function rt(){if(Me)return Fe;Me=1;const e=Re(),t=_e(),r=function(){if(G)return H;G=1;const e=Re();function t(e,t,r,s,n){let i="",o="";const c=Math.floor(n/2)-1;return s-t>c&&(i=" ... ",t=s-c+i.length),r-s>c&&(o=" ...",r=s+c-o.length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function r(t,r){return e.repeat(" ",r-t.length)+t}return H=function(s,n){if(n=Object.create(n||null),!s.buffer)return null;n.maxLength||(n.maxLength=79),"number"!=typeof n.indent&&(n.indent=1),"number"!=typeof n.linesBefore&&(n.linesBefore=3),"number"!=typeof n.linesAfter&&(n.linesAfter=2);const i=/\r?\n|\r|\0/g,o=[0],c=[];let a,l=-1;for(;a=i.exec(s.buffer);)c.push(a.index),o.push(a.index+a[0].length),s.position<=a.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u="";const p=Math.min(s.line+n.linesAfter,c.length).toString().length,h=n.maxLength-(n.indent+p+3);for(let i=1;i<=n.linesBefore&&!(l-i<0);i++){const a=t(s.buffer,o[l-i],c[l-i],s.position-(o[l]-o[l-i]),h);u=e.repeat(" ",n.indent)+r((s.line-i+1).toString(),p)+" | "+a.str+"\n"+u}const d=t(s.buffer,o[l],c[l],s.position,h);u+=e.repeat(" ",n.indent)+r((s.line+1).toString(),p)+" | "+d.str+"\n",u+=e.repeat("-",n.indent+p+3+d.pos)+"^\n";for(let i=1;i<=n.linesAfter&&!(l+i>=c.length);i++){const a=t(s.buffer,o[l+i],c[l+i],s.position-(o[l]-o[l+i]),h);u+=e.repeat(" ",n.indent)+r((s.line+i+1).toString(),p)+" | "+a.str+"\n"}return u.replace(/\n$/,"")}}(),s=tt(),n=Object.prototype.hasOwnProperty,i=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,c=/[,\[\]{}]/,a=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function p(e){return 10===e||13===e}function h(e){return 9===e||32===e}function d(e){return 9===e||32===e||10===e||13===e}function m(e){return 44===e||91===e||93===e||123===e||125===e}function f(e){if(e>=48&&e<=57)return e-48;const t=32|e;return t>=97&&t<=102?t-97+10:-1}function y(e){return 120===e?2:117===e?4:85===e?8:0}function v(e){return e>=48&&e<=57?e-48:-1}function g(e){switch(e){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function x(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}const E=new Array(256),w=new Array(256);for(let e=0;e<256;e++)E[e]=g(e)?1:0,w[e]=g(e);function j(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:100,this.maxTotalMergeKeys="number"==typeof t.maxTotalMergeKeys?t.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function S(e,s){const n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=r(n),new t(s,n)}function O(e,t){throw S(e,t)}function P(e,t){e.onWarning&&e.onWarning.call(null,S(e,t))}function A(e,t,r){const s=e.anchorMapTransactions;if(0!==s.length){const r=s[s.length-1];n.call(r,t)||(r[t]={existed:n.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=r}function $(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function k(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}const T={YAML:function(e,t,r){null!==e.version&&O(e,"duplication of %YAML directive"),1!==r.length&&O(e,"YAML directive accepts exactly one argument");const s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===s&&O(e,"ill-formed argument of the YAML directive");const n=parseInt(s[1],10),i=parseInt(s[2],10);1!==n&&O(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&P(e,"unsupported YAML version of the document")},TAG:function(e,t,r){let s;2!==r.length&&O(e,"TAG directive accepts exactly two arguments");const i=r[0];s=r[1],a.test(i)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),n.call(e.tagMap,i)&&O(e,'there is a previously declared suffix for "'+i+'" tag handle'),l.test(s)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){O(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function M(e,t,r,s){if(t<r){const n=e.input.slice(t,r);if(s)for(let t=0,r=n.length;t<r;t+=1){const r=n.charCodeAt(t);9===r||r>=32&&r<=1114111||O(e,"expected valid JSON character")}else i.test(n)&&O(e,"the stream contains non-printable characters");e.result+=n}}function C(e){e.totalMergeKeys++,-1!==e.maxTotalMergeKeys&&e.totalMergeKeys>e.maxTotalMergeKeys&&O(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function F(t,r,s,i){e.isObject(s)||O(t,"cannot merge mappings; the provided source object is unacceptable"),C(t);const o=Object.keys(s);for(let e=0,c=o.length;e<c;e+=1){const c=o[e];C(t),n.call(r,c)||(x(r,c,s[c]),i[c]=!0)}}function I(e,t,r,s,i,o,c,a,l){if(Array.isArray(i))for(let t=0,r=(i=Array.prototype.slice.call(i)).length;t<r;t+=1)Array.isArray(i[t])&&O(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===u(i[t])&&(i[t]="[object Object]");if("object"==typeof i&&"[object Object]"===u(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(o)){o.length>100&&O(e,"abnormal merge sequence size");for(let s=0,n=o.length;s<n;s+=1)F(e,t,o[s],r)}else F(e,t,o,r);else e.json||n.call(r,i)||!n.call(t,i)||(e.line=c||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,O(e,"duplicated mapping key")),x(t,i,o),delete r[i];return t}function R(e){const t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):O(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _(e,t,r){let s=0,n=e.input.charCodeAt(e.position);for(;0!==n;){for(;h(n);)9===n&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!p(n))break;for(R(e),n=e.input.charCodeAt(e.position),s++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==s&&e.lineIndent<r&&P(e,"deficient indentation"),s}function D(e){let t=e.position,r=e.input.charCodeAt(t);return!(45!==r&&46!==r||r!==e.input.charCodeAt(t+1)||r!==e.input.charCodeAt(t+2)||(t+=3,r=e.input.charCodeAt(t),0!==r&&!d(r)))}function N(t,r){1===r?t.result+=" ":r>1&&(t.result+=e.repeat("\n",r-1))}function L(e,t){const r=e.tag,s=e.anchor,n=[];let i=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&A(e,e.anchor,n);let o=e.input.charCodeAt(e.position);for(;0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,O(e,"tab characters must not be used in indentation")),45===o);){if(!d(e.input.charCodeAt(e.position+1)))break;if(i=!0,e.position++,_(e,!0,-1)&&e.lineIndent<=t){n.push(null),o=e.input.charCodeAt(e.position);continue}const r=e.line;if(J(e,t,3,!1,!0),n.push(e.result),_(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==o)O(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!i&&(e.tag=r,e.anchor=s,e.kind="sequence",e.result=n,!0)}function B(e,t,r){let s,n,i,o;const c=e.tag,a=e.anchor,l={},u=Object.create(null);let p=null,m=null,f=null,y=!1,v=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&A(e,e.anchor,l);let g=e.input.charCodeAt(e.position);for(;0!==g;){y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,O(e,"tab characters must not be used in indentation"));const b=e.input.charCodeAt(e.position+1),x=e.line;if(63!==g&&58!==g||!d(b)){if(n=e.line,i=e.lineStart,o=e.position,!J(e,r,2,!1,!0))break;if(e.line===x){for(g=e.input.charCodeAt(e.position);h(g);)g=e.input.charCodeAt(++e.position);if(58===g)g=e.input.charCodeAt(++e.position),d(g)||O(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(I(e,l,u,p,m,null,n,i,o),p=m=f=null),v=!0,y=!1,s=!1,p=e.tag,m=e.result;else{if(!v)return e.tag=c,e.anchor=a,!0;O(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=c,e.anchor=a,!0;O(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===g?(y&&(I(e,l,u,p,m,null,n,i,o),p=m=f=null),v=!0,y=!0,s=!0):y?(y=!1,s=!0):O(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=b;if((e.line===x||e.lineIndent>t)&&(y&&(n=e.line,i=e.lineStart,o=e.position),J(e,t,4,!0,s)&&(y?m=e.result:f=e.result),y||(I(e,l,u,p,m,f,n,i,o),p=m=f=null),_(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===x||e.lineIndent>t)&&0!==g)O(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&I(e,l,u,p,m,null,n,i,o),v&&(e.tag=c,e.anchor=a,e.kind="mapping",e.result=l),v}function q(e){let t,r,s=!1,i=!1,o=e.input.charCodeAt(e.position);if(33!==o)return!1;null!==e.tag&&O(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),60===o?(s=!0,o=e.input.charCodeAt(++e.position)):33===o?(i=!0,t="!!",o=e.input.charCodeAt(++e.position)):t="!";let u=e.position;if(s){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):O(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!d(o);)33===o&&(i?O(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(u-1,e.position+1),a.test(t)||O(e,"named tag handle cannot contain such characters"),i=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(u,e.position),c.test(r)&&O(e,"tag suffix cannot contain flow indicator characters")}r&&!l.test(r)&&O(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){O(e,"tag name is malformed: "+r)}return s?e.tag=r:n.call(e.tagMap,t)?e.tag=e.tagMap[t]+r:"!"===t?e.tag="!"+r:"!!"===t?e.tag="tag:yaml.org,2002:"+r:O(e,'undeclared tag handle "'+t+'"'),!0}function U(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&O(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);const r=e.position;for(;0!==t&&!d(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&O(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function V(e,t,r,s){const i=$(e);return function(e){e.anchorMapTransactions.push(Object.create(null))}(e),k(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,B(e,r,s)&&"mapping"===e.kind?(function(e){const t=e.anchorMapTransactions.pop(),r=e.anchorMapTransactions;if(0===r.length)return;const s=r[r.length-1],i=Object.keys(t);for(let e=0,r=i.length;e<r;e+=1){const r=i[e];n.call(s,r)||(s[r]=t[r])}}(e),!0):(function(e){const t=e.anchorMapTransactions.pop(),r=Object.keys(t);for(let s=r.length-1;s>=0;s-=1){const n=t[r[s]];n.existed?e.anchorMap[r[s]]=n.value:delete e.anchorMap[r[s]]}}(e),k(e,i),!1)}function J(t,r,s,i,o){let c,a,l,u,g,x=1,j=!1,S=!1,P=null;t.depth>=t.maxDepth&&O(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;const k=c=a=4===s||3===s;if(i&&_(t,!0,-1)&&(j=!0,t.lineIndent>r?x=1:t.lineIndent===r?x=0:t.lineIndent<r&&(x=-1)),1===x)for(;;){const e=t.input.charCodeAt(t.position),s=$(t);if(j&&(33===e&&null!==t.tag||38===e&&null!==t.anchor))break;if(!q(t)&&!U(t))break;null===P&&(P=s),_(t,!0,-1)?(j=!0,a=k,t.lineIndent>r?x=1:t.lineIndent===r?x=0:t.lineIndent<r&&(x=-1)):a=!1}if(a&&(a=j||o),1===x||4===s)if(u=1===s||2===s?r:r+1,g=t.position-t.lineStart,1===x)if(a&&(L(t,g)||B(t,g,u))||function(e,t){let r,s,n,i=!0;const o=e.tag;let c;const a=e.anchor;let l,u,p,h;const m=Object.create(null);let f,y,v,g=e.input.charCodeAt(e.position);if(91===g)l=93,h=!1,c=[];else{if(123!==g)return!1;l=125,h=!0,c={}}for(null!==e.anchor&&A(e,e.anchor,c),g=e.input.charCodeAt(++e.position);0!==g;){if(_(e,!0,t),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=o,e.anchor=a,e.kind=h?"mapping":"sequence",e.result=c,!0;i?44===g&&O(e,"expected the node content, but found ','"):O(e,"missed comma between flow collection entries"),y=f=v=null,u=p=!1,63===g&&d(e.input.charCodeAt(e.position+1))&&(u=p=!0,e.position++,_(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,J(e,t,1,!1,!0),y=e.tag,f=e.result,_(e,!0,t),g=e.input.charCodeAt(e.position),!p&&e.line!==r||58!==g||(u=!0,g=e.input.charCodeAt(++e.position),_(e,!0,t),J(e,t,1,!1,!0),v=e.result),h?I(e,c,m,y,f,v,r,s,n):u?c.push(I(e,null,m,y,f,v,r,s,n)):c.push(f),_(e,!0,t),g=e.input.charCodeAt(e.position),44===g?(i=!0,g=e.input.charCodeAt(++e.position)):i=!1}O(e,"unexpected end of the stream within a flow collection")}(t,u))S=!0;else{const r=t.input.charCodeAt(t.position);null!==P&&k&&!a&&124!==r&&62!==r&&V(t,P,P.position-P.lineStart,u)||c&&function(t,r){let s,n,i=1,o=!1,c=!1,a=r,l=0,u=!1,d=t.input.charCodeAt(t.position);if(124===d)s=!1;else{if(62!==d)return!1;s=!0}for(t.kind="scalar",t.result="";0!==d;)if(d=t.input.charCodeAt(++t.position),43===d||45===d)1===i?i=43===d?3:2:O(t,"repeat of a chomping mode identifier");else{if(!((n=v(d))>=0))break;0===n?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?O(t,"repeat of an indentation width identifier"):(a=r+n-1,c=!0)}if(h(d)){do{d=t.input.charCodeAt(++t.position)}while(h(d));if(35===d)do{d=t.input.charCodeAt(++t.position)}while(!p(d)&&0!==d)}for(;0!==d;){for(R(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!c||t.lineIndent<a)&&32===d;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>a&&(a=t.lineIndent),p(d)){l++;continue}if(c||0!==a||O(t,"missing indentation for block scalar"),t.lineIndent<a){3===i?t.result+=e.repeat("\n",o?1+l:l):1===i&&o&&(t.result+="\n");break}s?h(d)?(u=!0,t.result+=e.repeat("\n",o?1+l:l)):u?(u=!1,t.result+=e.repeat("\n",l+1)):0===l?o&&(t.result+=" "):t.result+=e.repeat("\n",l):t.result+=e.repeat("\n",o?1+l:l),o=!0,c=!0,l=0;const r=t.position;for(;!p(d)&&0!==d;)d=t.input.charCodeAt(++t.position);M(t,r,t.position,!1)}return!0}(t,u)||function(e,t){let r,s,n=e.input.charCodeAt(e.position);if(39!==n)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(M(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;r=e.position,e.position++,s=e.position}else p(n)?(M(e,r,s,!0),N(e,_(e,!1,t)),r=s=e.position):e.position===e.lineStart&&D(e)?O(e,"unexpected end of the document within a single quoted scalar"):(e.position++,h(n)||(s=e.position));O(e,"unexpected end of the stream within a single quoted scalar")}(t,u)||function(e,t){let r,s,n,i=e.input.charCodeAt(e.position);if(34!==i)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(i=e.input.charCodeAt(e.position));){if(34===i)return M(e,r,e.position,!0),e.position++,!0;if(92===i){if(M(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),p(i))_(e,!1,t);else if(i<256&&E[i])e.result+=w[i],e.position++;else if((n=y(i))>0){let t=n,r=0;for(;t>0;t--)i=e.input.charCodeAt(++e.position),(n=f(i))>=0?r=(r<<4)+n:O(e,"expected hexadecimal character");e.result+=b(r),e.position++}else O(e,"unknown escape sequence");r=s=e.position}else p(i)?(M(e,r,s,!0),N(e,_(e,!1,t)),r=s=e.position):e.position===e.lineStart&&D(e)?O(e,"unexpected end of the document within a double quoted scalar"):(e.position++,h(i)||(s=e.position))}O(e,"unexpected end of the stream within a double quoted scalar")}(t,u)?S=!0:!function(e){let t=e.input.charCodeAt(e.position);if(42!==t)return!1;t=e.input.charCodeAt(++e.position);const r=e.position;for(;0!==t&&!d(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===r&&O(e,"name of an alias node must contain at least one character");const s=e.input.slice(r,e.position);return n.call(e.anchorMap,s)||O(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],_(e,!0,-1),!0}(t)?function(e,t,r){let s,n,i,o,c,a;const l=e.kind,u=e.result;let f=e.input.charCodeAt(e.position);if(d(f)||m(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if(63===f||45===f){const t=e.input.charCodeAt(e.position+1);if(d(t)||r&&m(t))return!1}for(e.kind="scalar",e.result="",s=n=e.position,i=!1;0!==f;){if(58===f){const t=e.input.charCodeAt(e.position+1);if(d(t)||r&&m(t))break}else if(35===f){if(d(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&D(e)||r&&m(f))break;if(p(f)){if(o=e.line,c=e.lineStart,a=e.lineIndent,_(e,!1,-1),e.lineIndent>=t){i=!0,f=e.input.charCodeAt(e.position);continue}e.position=n,e.line=o,e.lineStart=c,e.lineIndent=a;break}}i&&(M(e,s,n,!1),N(e,e.line-o),s=n=e.position,i=!1),h(f)||(n=e.position+1),f=e.input.charCodeAt(++e.position)}return M(e,s,n,!1),!!e.result||(e.kind=l,e.result=u,!1)}(t,u,1===s)&&(S=!0,null===t.tag&&(t.tag="?")):(S=!0,null===t.tag&&null===t.anchor||O(t,"alias node should not have any properties")),null!==t.anchor&&A(t,t.anchor,t.result)}else 0===x&&(S=a&&L(t,g));if(null===t.tag)null!==t.anchor&&A(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e<r;e+=1)if(l=t.implicitTypes[e],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&A(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(n.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;const e=t.typeMap.multi[t.kind||"fallback"];for(let r=0,s=e.length;r<s;r+=1)if(t.tag.slice(0,e[r].tag.length)===e[r].tag){l=e[r];break}}l||O(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&A(t,t.anchor,t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||S}function z(e){const t=e.position;let r,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(_(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){s=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;0!==r&&!d(r);)r=e.input.charCodeAt(++e.position);const i=e.input.slice(t,e.position),o=[];for(i.length<1&&O(e,"directive name must not be less than one character in length");0!==r;){for(;h(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!p(r));break}if(p(r))break;for(t=e.position;0!==r&&!d(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&R(e),n.call(T,i)?T[i](e,i,o):P(e,'unknown document directive "'+i+'"')}_(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,_(e,!0,-1)):s&&O(e,"directives end mark is expected"),J(e,e.lineIndent-1,4,!1,!0),_(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&P(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&D(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,_(e,!0,-1)):e.position<e.length-1&&O(e,"end of the stream or a document separator is expected")}function W(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));const r=new j(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,O(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)z(r);return r.documents}return Fe.loadAll=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);const s=W(e,r);if("function"!=typeof t)return s;for(let e=0,r=s.length;e<r;e+=1)t(s[e])},Fe.load=function(e,r){const s=W(e,r);if(0!==s.length){if(1===s.length)return s[0];throw new t("expected a single document in the stream, but found more")}},Fe}var st,nt,it={};function ot(){if(st)return it;st=1;const e=Re(),t=_e(),r=tt(),s=Object.prototype.toString,n=Object.prototype.hasOwnProperty,i=65279,o={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},c=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],a=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(r){let s,n;const i=r.toString(16).toUpperCase();if(r<=255)s="x",n=2;else if(r<=65535)s="u",n=4;else{if(!(r<=4294967295))throw new t("code point within a string may not be greater than 0xFFFFFFFF");s="U",n=8}return"\\"+s+e.repeat("0",n-i.length)+i}function u(t){this.schema=t.schema||r,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(e,t){if(null===t)return{};const r={},s=Object.keys(t);for(let i=0,o=s.length;i<o;i+=1){let o=s[i],c=String(t[o]);"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2));const a=e.compiledTypeMap.fallback[o];a&&n.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[o]=c}return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function p(t,r){const s=e.repeat(" ",r);let n=0,i="";const o=t.length;for(;n<o;){let e;const r=t.indexOf("\n",n);-1===r?(e=t.slice(n),n=o):(e=t.slice(n,r+1),n=r+1),e.length&&"\n"!==e&&(i+=s),i+=e}return i}function h(t,r){return"\n"+e.repeat(" ",t.indent*r)}function d(e){return 32===e||9===e}function m(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==i||e>=65536&&e<=1114111}function f(e){return m(e)&&e!==i&&13!==e&&10!==e}function y(e,t,r){const s=f(e),n=s&&!d(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||f(t)&&!d(t)&&35===e||58===t&&n}function v(e,t){const r=e.charCodeAt(t);let s;return r>=55296&&r<=56319&&t+1<e.length&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?1024*(r-55296)+s-56320+65536:r}function g(e){return/^\n* /.test(e)}function b(e,t,r,s,n,o,c,a){let l,u=0,p=null,h=!1,f=!1;const b=-1!==s;let x=-1,E=m(w=v(e,0))&&w!==i&&!d(w)&&45!==w&&63!==w&&58!==w&&44!==w&&91!==w&&93!==w&&123!==w&&125!==w&&35!==w&&38!==w&&42!==w&&33!==w&&124!==w&&61!==w&&62!==w&&39!==w&&34!==w&&37!==w&&64!==w&&96!==w&&function(e){return!d(e)&&58!==e}(v(e,e.length-1));var w;if(t||c)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=v(e,l),!m(u))return 5;E=E&&y(u,p,a),p=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=v(e,l),10===u)h=!0,b&&(f=f||l-x-1>s&&" "!==e[x+1],x=l);else if(!m(u))return 5;E=E&&y(u,p,a),p=u}f=f||b&&l-x-1>s&&" "!==e[x+1]}return h||f?r>9&&g(e)?5:c?2===o?5:2:f?4:3:!E||c||n(e)?2===o?5:2:1}function x(e,r,s,n,i){e.dump=function(){if(0===r.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==c.indexOf(r)||a.test(r)))return 2===e.quotingType?'"'+r+'"':"'"+r+"'";const u=e.indent*Math.max(1,s),h=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),d=n||e.flowLevel>-1&&s>=e.flowLevel;switch(b(r,d,e.indent,h,function(t){return function(e,t){for(let r=0,s=e.implicitTypes.length;r<s;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!n,i)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+E(r,e.indent)+w(p(r,u));case 4:return">"+E(r,e.indent)+w(p(function(e,t){const r=/(\n+)([^\n]*)/g;let s,n,i=function(){let s=e.indexOf("\n");return s=-1!==s?s:e.length,r.lastIndex=s,j(e.slice(0,s),t)}(),o="\n"===e[0]||" "===e[0];for(;n=r.exec(e);){const e=n[1],r=n[2];s=" "===r[0],i+=e+(o||s||""===r?"":"\n")+j(r,t),o=s}return i}(r,h),u));case 5:return'"'+function(e){let t="",r=0;for(let s=0;s<e.length;r>=65536?s+=2:s++){r=v(e,s);const n=o[r];!n&&m(r)?(t+=e[s],r>=65536&&(t+=e[s+1])):t+=n||l(r)}return t}(r)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function E(e,t){const r=g(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function w(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function j(e,t){if(""===e||" "===e[0])return e;const r=/ [^ ]/g;let s,n,i=0,o=0,c=0,a="";for(;s=r.exec(e);)c=s.index,c-i>t&&(n=o>i?o:c,a+="\n"+e.slice(i,n),i=n+1),o=c;return a+="\n",e.length-i>t&&o>i?a+=e.slice(i,o)+"\n"+e.slice(o+1):a+=e.slice(i),a.slice(1)}function S(e,t,r,s){let n="";const i=e.tag;for(let i=0,o=r.length;i<o;i+=1){let o=r[i];e.replacer&&(o=e.replacer.call(r,String(i),o)),(P(e,t+1,o,!0,!0,!1,!0)||void 0===o&&P(e,t+1,null,!0,!0,!1,!0))&&(s&&""===n||(n+=h(e,t)),e.dump&&10===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump)}e.tag=i,e.dump=n||"[]"}function O(e,r,i){const o=i?e.explicitTypes:e.implicitTypes;for(let c=0,a=o.length;c<a;c+=1){const a=o[c];if((a.instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof r&&r instanceof a.instanceOf)&&(!a.predicate||a.predicate(r))){if(i?a.multi&&a.representName?e.tag=a.representName(r):e.tag=a.tag:e.tag="?",a.represent){const i=e.styleMap[a.tag]||a.defaultStyle;let o;if("[object Function]"===s.call(a.represent))o=a.represent(r,i);else{if(!n.call(a.represent,i))throw new t("!<"+a.tag+'> tag resolver accepts not "'+i+'" style');o=a.represent[i](r,i)}e.dump=o}return!0}}return!1}function P(e,r,n,i,o,c,a){e.tag=null,e.dump=n,O(e,n,!1)||O(e,n,!0);const l=s.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>r);const p="[object Object]"===l||"[object Array]"===l;let d,m;if(p&&(d=e.duplicates.indexOf(n),m=-1!==d),(null!==e.tag&&"?"!==e.tag||m||2!==e.indent&&r>0)&&(o=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(p&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),"[object Object]"===l)i&&0!==Object.keys(e.dump).length?(!function(e,r,s,n){let i="";const o=e.tag,c=Object.keys(s);if(!0===e.sortKeys)c.sort();else if("function"==typeof e.sortKeys)c.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let t=0,o=c.length;t<o;t+=1){let o="";n&&""===i||(o+=h(e,r));const a=c[t];let l=s[a];if(e.replacer&&(l=e.replacer.call(s,a,l)),!P(e,r+1,a,!0,!0,!0))continue;const u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024;u&&(e.dump&&10===e.dump.charCodeAt(0)?o+="?":o+="? "),o+=e.dump,u&&(o+=h(e,r)),P(e,r+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?o+=":":o+=": ",o+=e.dump,i+=o)}e.tag=o,e.dump=i||"{}"}(e,r,e.dump,o),m&&(e.dump="&ref_"+d+e.dump)):(!function(e,t,r){let s="";const n=e.tag,i=Object.keys(r);for(let n=0,o=i.length;n<o;n+=1){let o="";""!==s&&(o+=", "),e.condenseFlow&&(o+='"');const c=i[n];let a=r[c];e.replacer&&(a=e.replacer.call(r,c,a)),P(e,t,c,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),P(e,t,a,!1,!1)&&(o+=e.dump,s+=o))}e.tag=n,e.dump="{"+s+"}"}(e,r,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if("[object Array]"===l)i&&0!==e.dump.length?(e.noArrayIndent&&!a&&r>0?S(e,r-1,e.dump,o):S(e,r,e.dump,o),m&&(e.dump="&ref_"+d+e.dump)):(!function(e,t,r){let s="";const n=e.tag;for(let n=0,i=r.length;n<i;n+=1){let i=r[n];e.replacer&&(i=e.replacer.call(r,String(n),i)),(P(e,t,i,!1,!1)||void 0===i&&P(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump)}e.tag=n,e.dump="["+s+"]"}(e,r,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&x(e,e.dump,r,c,u)}if(null!==e.tag&&"?"!==e.tag){let t=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21");t="!"===e.tag[0]?"!"+t:"tag:yaml.org,2002:"===t.slice(0,18)?"!!"+t.slice(18):"!<"+t+">",e.dump=t+" "+e.dump}}return!0}function A(e,t){const r=[],s=[];$(e,r,s);const n=s.length;for(let e=0;e<n;e+=1)t.duplicates.push(r[s[e]]);t.usedDuplicates=new Array(n)}function $(e,t,r){if(null!==e&&"object"==typeof e){const s=t.indexOf(e);if(-1!==s)-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(let s=0,n=e.length;s<n;s+=1)$(e[s],t,r);else{const s=Object.keys(e);for(let n=0,i=s.length;n<i;n+=1)$(e[s[n]],t,r)}}}return it.dump=function(e,t){const r=new u(t=t||{});r.noRefs||A(e,r);let s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),P(r,0,s,!0,!0)?r.dump+"\n":""},it}var ct=function(){if(nt)return Ce;nt=1;const e=rt(),t=ot();function r(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}return Ce.Type=De(),Ce.Schema=Ne(),Ce.FAILSAFE_SCHEMA=Ue(),Ce.JSON_SCHEMA=ze(),Ce.CORE_SCHEMA=We(),Ce.DEFAULT_SCHEMA=tt(),Ce.load=e.load,Ce.loadAll=e.loadAll,Ce.dump=t.dump,Ce.YAMLException=_e(),Ce.types={binary:Xe(),float:Ge(),map:qe(),null:Ve(),pairs:Ze(),set:et(),timestamp:Ke(),bool:Je(),int:He(),merge:Ye(),omap:Qe(),seq:Be(),str:Le()},Ce.safeLoad=r("safeLoad","load"),Ce.safeLoadAll=r("safeLoadAll","loadAll"),Ce.safeDump=r("safeDump","dump"),Ce}();const at=q(ct),{Type:lt,Schema:ut,FAILSAFE_SCHEMA:pt,JSON_SCHEMA:ht,CORE_SCHEMA:dt,DEFAULT_SCHEMA:mt,load:ft,loadAll:yt,dump:vt,YAMLException:gt,types:bt,safeLoad:xt,safeLoadAll:Et,safeDump:wt}=at;function jt(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce((e,[t,r])=>(e[t]=function(e){return B()(e).call(e,", ")?e.split(", "):e}(r),e),{})}function St(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:jt(e.headers)},n=s.headers["content-type"],i=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(n);return(i?e.text:e.blob||e.buffer).call(e).then(e=>{if(s.text=e,s.data=e,i)try{const t=function(e,t){if(t){if(0===t.indexOf("application/json")||t.indexOf("+json")>0)return JSON.parse(e);if(0===t.indexOf("application/xml")||t.indexOf("+xml")>0)return e}return at.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s})}async function Ot(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=N(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 s;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{s=await(t.userFetch||fetch)(t.url,t),s=await St(s,e,t),t.responseInterceptor&&(s=await t.responseInterceptor(s)||s)}catch(e){if(!s)throw e;const t=new Error(s.statusText||`response status is ${s.status}`);throw t.status=s.status,t.statusCode=s.status,t.responseError=e,t}if(!s.ok){const e=new Error(s.statusText||`response status is ${s.status}`);throw e.status=s.status,e.statusCode=s.status,e.response=s,e}return s}function Pt(e,t={}){const{requestInterceptor:r,responseInterceptor:s}=t,n=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:s,headers:{Accept:E},credentials:n}).then(e=>e.body)}const At=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},$t=e=>{const{fetch:t,http:r}=e;return t||r||Ot};var kt,Tt=(kt=function(e,t){return kt=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])},kt(e,t)},function(e,t){function r(){this.constructor=e}kt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Mt=Object.prototype.hasOwnProperty;function Ct(e,t){return Mt.call(e,t)}function Ft(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var s=[];for(var n in e)Ct(e,n)&&s.push(n);return s}function It(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Rt(e){for(var t,r=0,s=e.length;r<s;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function _t(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Dt(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Nt(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Nt(e[t]))return!0}else if("object"==typeof e)for(var s=Ft(e),n=s.length,i=0;i<n;i++)if(Nt(e[s[i]]))return!0;return!1}function Lt(e,t){var r=[e];for(var s in t){var n="object"==typeof t[s]?JSON.stringify(t[s],null,2):t[s];void 0!==n&&r.push(s+": "+n)}return r.join("\n")}var Bt=function(e){function t(t,r,s,n,i){var o=this.constructor,c=e.call(this,Lt(t,{name:r,index:s,operation:n,tree:i}))||this;return c.name=r,c.index=s,c.operation=n,c.tree=i,Object.setPrototypeOf(c,o.prototype),c.message=Lt(t,{name:r,index:s,operation:n,tree:i}),c}return Tt(t,e),t}(Error),qt=Bt,Ut=It,Vt={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var s=e[t];return delete e[t],{newDocument:r,removed:s}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:function(e,t,r){var s=Ht(r,this.path);s&&(s=It(s));var n=Gt(r,{op:"remove",path:this.from}).removed;return Gt(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=Ht(r,this.from);return Gt(r,{op:"add",path:this.path,value:It(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Xt(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Jt={add:function(e,t,r){return Rt(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:Vt.move,copy:Vt.copy,test:Vt.test,_get:Vt._get};function Ht(e,t){if(""==t)return e;var r={op:"_get",path:t};return Gt(e,r),r.value}function Gt(e,t,r,s,n,i){if(void 0===r&&(r=!1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):Kt(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=Ht(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=Xt(e,t.value),!1===o.test)throw new qt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new qt("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=It(e));var c=(t.path||"").split("/"),a=e,l=1,u=c.length,p=void 0,h=void 0,d=void 0;for(d="function"==typeof r?r:Kt;;){if((h=c[l])&&-1!=h.indexOf("~")&&(h=Dt(h)),n&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==c[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===a[h]?p=c.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&d(t,0,e,p)),l++,Array.isArray(a)){if("-"===h)h=a.length;else{if(r&&!Rt(h))throw new qt("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);Rt(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>a.length)throw new qt("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=Jt[t.op].call(t,a,h,e)).test)throw new qt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=Vt[t.op].call(t,a,h,e)).test)throw new qt("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(a=a[h],r&&l<u&&(!a||"object"!=typeof a))throw new qt("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function zt(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new qt("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=It(e));for(var i=new Array(t.length),o=0,c=t.length;o<c;o++)i[o]=Gt(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function Wt(e,t,r){var s=Gt(e,t);if(!1===s.test)throw new qt("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function Kt(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new qt("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Vt[e.op])throw new qt("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new qt("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new qt('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 qt("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 qt("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)&&Nt(e.value))throw new qt("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 n=e.path.split("/").length,i=s.split("/").length;if(n!==i+1&&n!==i)throw new qt("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!==s)throw new qt("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=Yt([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new qt("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Yt(e,t,r){try{if(!Array.isArray(e))throw new qt("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)zt(It(t),It(e),r||!0);else{r=r||Kt;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof qt)return e;throw e}}function Xt(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,n,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!==r--;)if(!Xt(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var c=Object.keys(e);if((s=c.length)!==Object.keys(t).length)return!1;for(r=s;0!==r--;)if(!t.hasOwnProperty(c[r]))return!1;for(r=s;0!==r--;)if(!Xt(e[n=c[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var Qt=new WeakMap,Zt=function(e){this.observers=new Map,this.obj=e},er=function(e,t){this.callback=e,this.observer=t};function tr(e,t){t.unobserve()}function rr(e,t){var r,s=function(e){return Qt.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new Zt(e),Qt.set(e,s);if(r)return r;if(r={},s.value=It(e),t){r.callback=t,r.next=null;var i=function(){sr(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){sr(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(s,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(t,new er(t,r)),r}function sr(e,t){void 0===t&&(t=!1);var r=Qt.get(e.object);nr(r.value,e.object,e.patches,"",t),e.patches.length&&zt(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function nr(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Ft(t),o=Ft(e),c=!1,a=o.length-1;a>=0;a--){var l=e[p=o[a]];if(!Ct(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:s+"/"+_t(p),value:It(l)}),r.push({op:"remove",path:s+"/"+_t(p)}),c=!0):(n&&r.push({op:"test",path:s,value:e}),r.push({op:"replace",path:s,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?nr(l,u,r,s+"/"+_t(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+_t(p),value:It(l)}),r.push({op:"replace",path:s+"/"+_t(p),value:It(u)}))}}if(c||i.length!=o.length)for(a=0;a<i.length;a++){var p;Ct(e,p=i[a])||void 0===t[p]||r.push({op:"add",path:s+"/"+_t(p),value:It(t[p])})}}}function ir(e,t,r){void 0===r&&(r=!1);var s=[];return nr(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:Bt,deepClone:It,escapePathComponent:_t,unescapePathComponent:Dt});var or=r(4744),cr=r.n(or);const ar={add:function(e,t){return{op:"add",path:e,value:t}},replace:ur,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce((e,t)=>void 0!==t&&e?e[t]:e,e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&lr(t.path)}).op){const r=jr(e,t.path);Object.assign(r,t.value),zt(e,[ur(t.path,r)])}else if("mergeDeep"===t.op){const r=jr(e,t.path),s=cr()(r,t.value,{customMerge:e=>{if("enum"===e)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:cr()(e,t)}});e=zt(e,[ur(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&vr(t.value)){zt(e,Object.keys(t.value).reduce((e,r)=>(e.push({op:"add",path:`/${lr(r)}`,value:t.value[r]}),e),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&Er(t)&&(Array.isArray(t.value)||vr(t.value))&&(s={...s,...t.meta}),e=s}else if(zt(e,[t]),r.allowMetaPatches&&t.meta&&Er(t)&&(Array.isArray(t.value)||vr(t.value))){const r={...jr(e,t.path),...t.meta};zt(e,[ur(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,s=t.length;r<s;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:fr,fullyNormalizeArray:function(e){return yr(fr(mr(e)))},normalizeArray:mr,isPromise:function(e){return vr(e)&&gr(e.then)},forEachNew:function(e,t){try{return pr(e,dr,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return pr(e,hr,t)}catch(e){return e}},isJsonPatch:br,isContextPatch:function(e){return wr(e)&&"context"===e.type},isPatch:wr,isMutation:xr,isAdditiveMutation:Er,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:gr,isObject:vr,isError:function(e){return e instanceof Error}};function lr(e){return Array.isArray(e)?e.length<1?"":`/${e.map(e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function ur(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function pr(e,t,r){return yr(fr(e.filter(Er).map(e=>t(e.value,r,e.path))||[]))}function hr(e,t,r){return r=r||[],Array.isArray(e)?e.map((e,s)=>hr(e,t,r.concat(s))):vr(e)?Object.keys(e).map(s=>hr(e[s],t,r.concat(s))):t(e,r[r.length-1],r)}function dr(e,t,r){let s=[];if((r=r||[]).length>0){const n=t(e,r[r.length-1],r);n&&(s=s.concat(n))}if(Array.isArray(e)){const n=e.map((e,s)=>dr(e,t,r.concat(s)));n&&(s=s.concat(n))}else if(vr(e)){const n=Object.keys(e).map(s=>dr(e[s],t,r.concat(s)));n&&(s=s.concat(n))}return s=fr(s),s}function mr(e){return Array.isArray(e)?e:[e]}function fr(e){return[].concat(...e.map(e=>Array.isArray(e)?fr(e):e))}function yr(e){return e.filter(e=>void 0!==e)}function vr(e){return e&&"object"==typeof e}function gr(e){return e&&"function"==typeof e}function br(e){if(wr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function xr(e){return br(e)||wr(e)&&"mutation"===e.type}function Er(e){return xr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function wr(e){return e&&"object"==typeof e}function jr(e,t){try{return Ht(e,t)}catch(e){return console.error(e),{}}}var Sr=r(8675);const Or=class extends Sr{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 Pr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Or,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 Ar=Pr;const $r=class extends Ar{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};function kr(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,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,c,a,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Tr(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Mr(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Cr(e){return function t(r){return 0===arguments.length||Mr(r)?t:e.apply(this,arguments)}}function Fr(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return Mr(r)?t:Cr(function(t){return e(r,t)});default:return Mr(r)&&Mr(s)?t:Mr(r)?Cr(function(t){return e(t,s)}):Mr(s)?Cr(function(t){return e(r,t)}):e(r,s)}}}function Ir(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return Mr(r)?t:Fr(function(t,s){return e(r,t,s)});case 2:return Mr(r)&&Mr(s)?t:Mr(r)?Fr(function(t,r){return e(t,s,r)}):Mr(s)?Fr(function(t,s){return e(r,t,s)}):Cr(function(t){return e(r,s,t)});default:return Mr(r)&&Mr(s)&&Mr(n)?t:Mr(r)&&Mr(s)?Fr(function(t,r){return e(t,r,n)}):Mr(r)&&Mr(n)?Fr(function(t,r){return e(t,s,r)}):Mr(s)&&Mr(n)?Fr(function(t,s){return e(r,t,s)}):Mr(r)?Cr(function(t){return e(t,s,n)}):Mr(s)?Cr(function(t){return e(r,t,n)}):Mr(n)?Cr(function(t){return e(r,s,t)}):e(r,s,n)}}}const Rr=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function _r(e){return"[object String]"===Object.prototype.toString.call(e)}const Dr=Cr(function(e){return!!Rr(e)||!!e&&("object"==typeof e&&(!_r(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Nr="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Lr(e,t,r){return function(s,n,i){if(Dr(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[Nr])return r(s,n,i[Nr]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Br(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const qr=Fr(function(e,t){return kr(e.length,function(){return e.apply(t,arguments)})});function Ur(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function Vr(e,t,r,s){return e["@@transducer/result"](r[s](qr(e["@@transducer/step"],e),t))}const Jr=Lr(Br,Vr,Ur);var Hr=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function Gr(e){return new Hr(e)}const zr=Ir(function(e,t,r){return Jr("function"==typeof e?Gr(e):e,t,r)});function Wr(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return Rr(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const Kr=Ir(Wr("slice",function(e,t,r){return Array.prototype.slice.call(r,e,t)}));const Yr=Cr(Wr("tail",Kr(1,1/0)));function Xr(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return kr(arguments[0].length,zr(Tr,arguments[0],Yr(arguments)))}const Qr=Fr(function(e,t){return null==t||t!=t?e:t}),Zr=Number.isInteger||function(e){return(e|0)===e};function es(e,t){var r=e<0?t.length+e:e;return _r(t)?t.charAt(r):t[r]}const ts=Fr(function(e,t){if(null!=t)return Zr(e)?es(e,t):t[e]});const rs=Ir(function(e,t,r){return Qr(e,ts(t,r))});const ss=Cr(function(e){return es(-1,e)});function ns(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,c=!1;o<t.length||n<arguments.length;){var a;o<t.length&&(!Mr(t[o])||n>=arguments.length)?a=t[o]:(a=arguments[n],n+=1),s[o]=a,Mr(a)?c=!0:i-=1,o+=1}return!c&&i<=0?r.apply(this,s):kr(Math.max(0,i),ns(e,s,r))}}const is=Fr(function(e,t){return 1===e?Cr(t):kr(e,ns(e,[],t))});const os=Cr(function(e){return is(e.length,e)});function cs(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function as(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ls(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function us(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ps="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var hs=Object.prototype.toString;const ds=function(){return"[object Arguments]"===hs.call(arguments)?function(e){return"[object Arguments]"===hs.call(e)}:function(e){return us("callee",e)}}();var ms=!{toString:null}.propertyIsEnumerable("toString"),fs=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ys=function(){return arguments.propertyIsEnumerable("length")}(),vs=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},gs="function"!=typeof Object.keys||ys?Cr(function(e){if(Object(e)!==e)return[];var t,r,s=[],n=ys&&ds(e);for(t in e)!us(t,e)||n&&"length"===t||(s[s.length]=t);if(ms)for(r=fs.length-1;r>=0;)us(t=fs[r],e)&&!vs(s,t)&&(s[s.length]=t),r-=1;return s}):Cr(function(e){return Object(e)!==e?[]:Object.keys(e)});const bs=gs;const xs=Cr(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function Es(e,t,r,s){var n=as(e);function i(e,t){return ws(e,t,r.slice(),s.slice())}return!ls(function(e,t){return!ls(i,t,e)},as(t),n)}function ws(e,t,r,s){if(ps(e,t))return!0;var n,i,o=xs(e);if(o!==xs(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"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!ps(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ps(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 c=r.length-1;c>=0;){if(r[c]===e)return s[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&Es(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Es(e.values(),t.values(),r.concat([e]),s.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 a=bs(e);if(a.length!==bs(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!us(p,t)||!ws(t[p],e[p],l,u))return!1;c-=1}return!0}const js=Fr(function(e,t){return ws(e,t,[],[])});function Ss(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(js(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Os(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function Ps(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var As=function(e){return(e<10?"0":"")+e};const $s="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+As(e.getUTCMonth()+1)+"-"+As(e.getUTCDate())+"T"+As(e.getUTCHours())+":"+As(e.getUTCMinutes())+":"+As(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ks(e){return function(){return!e.apply(this,arguments)}}function Ts(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function Ms(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!Rr(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function Cs(e){return"[object Object]"===Object.prototype.toString.call(e)}const Fs=function(){return this.xf["@@transducer/init"]()},Is=function(e){return this.xf["@@transducer/result"](e)};var Rs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Fs,e.prototype["@@transducer/result"]=Is,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function _s(e){return function(t){return new Rs(e,t)}}const Ds=Fr(Ms(["fantasy-land/filter","filter"],_s,function(e,t){return Cs(t)?Ts(function(r,s){return e(t[s])&&(r[s]=t[s]),r},{},bs(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)}));const Ns=Fr(function(e,t){return Ds(ks(e),t)});function Ls(e,t){var r=function(r){var s=t.concat([e]);return Ss(r,s)?"<Circular>":Ls(r,s)},s=function(e,t){return Os(function(t){return Ps(t)+": "+r(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Os(r,e).join(", ")+"))";case"[object Array]":return"["+Os(r,e).concat(s(e,Ns(function(e){return/^\d+$/.test(e)},bs(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):Ps($s(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":Ps(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,bs(e)).join(", ")+"}"}}const Bs=Cr(function(e){return Ls(e,[])});const qs=Fr(function(e,t){return is(e+1,function(){var r=arguments[e];if(null!=r&&cs(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Bs(r)+' does not have a method named "'+t+'"')})});const Us=qs(1,"split");function Vs(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Kr(0,r+1,t)}var Js=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Fs,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=Jr(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 Hs(e){return function(t){return new Js(e,t)}}const Gs=Fr(Ms([],Hs,Vs));const zs=qs(1,"join");const Ws=Cr(function(e){return is(e.length,function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)})})(Fr(Ss));const Ks=os(function(e,t){return Xr(Us(""),Gs(Ws(e)),zs(""))(t)});function Ys(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function Xs(e,t,r,s){return r[s](e,t)}const Qs=Lr(Ts,Xs,Ys);var Zs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Fs,e.prototype["@@transducer/result"]=Is,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const en=Fr(Ms(["fantasy-land/map","map"],function(e){return function(t){return new Zs(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return is(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Ts(function(r,s){return r[s]=e(t[s]),r},{},bs(t));default:return Os(e,t)}}));const tn=Fr(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))}:Qs(function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,en(r,t))},[],e)});const rn=Fr(function(e,t){var r=is(e,t);return is(e,function(){return Ts(tn,en(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const sn=Cr(function(e){return rn(e.length,e)});const nn=sn(Cr(function(e){return!e}));const on=Cr(function(e){return function(){return e}});const cn=on(void 0);const an=js(cn());const ln=nn(an);const un=Fr(function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Bs(e),o=r(i,Bs(t));return void 0!==o&&o===i?e:t});const pn=Fr(function(e,t){return en(ts(e),t)});const hn=Cr(function(e){return is(zr(un,0,pn("length",e)),function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});var dn=function(e,t){switch(arguments.length){case 0:return dn;case 1:return function t(r){return 0===arguments.length?t:ps(e,r)};default:return ps(e,t)}};const mn=dn;const fn=is(1,Xr(xs,mn("GeneratorFunction")));const yn=is(1,Xr(xs,mn("AsyncFunction")));const vn=hn([Xr(xs,mn("Function")),fn,yn]);var gn=Ir(function(e,t,r){return r.replace(e,t)});const bn=gn;const xn=is(1,Xr(xs,mn("RegExp")));const En=Ir(function(e,t,r){return e(r)?t(r):r});const wn=is(1,Xr(xs,mn("String")));const jn=En(wn,bn(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Sn=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const On=function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),Sn(r,"str"),Sn(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var s=new RegExp(xn(e)?e:jn(e),"g");return bn(s,t,r)};var Pn=is(3,On),An=qs(2,"replaceAll");const $n=vn(String.prototype.replaceAll)?An:Pn,kn=()=>{var e,t;return/^win/.test(null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.platform)&&void 0!==e?e:"")},Tn=e=>{try{const t=new URL(e);return Ks(":",t.protocol)}catch{return}},Mn=(Xr(Tn,ln),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Cn=e=>{if(void 0!==globalThis.window)return!1;const t=Tn(e);return an(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Fn=e=>{const t=Tn(e);return"http"===t||"https"===t},In=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=rs(!1,"keepFileProtocol",t),n=rs(kn,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),n()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),s?i=`file:///${i}`:(o=!1,i=n()?i:`/${i}`)),n()&&!o&&(i=$n("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Rn=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},_n=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Dn=()=>{var e,t;if(void 0!==globalThis.window)return _n(globalThis.location.href);const r=null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.cwd())&&void 0!==e?e:"/",s=ss(r);return["/","\\"].includes(s)?r:r+(kn()?"\\":"/")},Nn=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:s}=r;return e+t+s}return r.toString()},Ln=e=>{if(Cn(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;kn()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(In(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Bn=e=>Cn(e)?In(e):decodeURI(e),qn=e=>Object.prototype.toString.call(e),Un=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Vn=Array.isArray,Jn=e=>{const t=qn(e);return"[object Boolean]"===t||"[object Number]"===t||"[object String]"===t},Hn=Object.getOwnPropertyDescriptor,Gn=Object.prototype.propertyIsEnumerable,zn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Kn=e=>"__proto__"===e||"constructor"===e||"prototype"===e;function Yn(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}):e[t]=r}function Xn(e,t){if(void 0!==t&&e>t)throw new RangeError(`neotraverse: maximum traversal depth (${t}) exceeded`)}function Qn(e){const t=Object.keys(e),r=zn(e);for(let s=0;s<r.length;s++)Gn.call(e,r[s])&&t.push(r[s]);return t}function Zn(e,t){var r;return!(null===(r=Hn(e,t))||void 0===r?void 0:r.writable)}function ei(e,t){if("object"==typeof e&&null!==e){let r;if(Vn(e))r=[];else{if(Un(e))return e.slice();if(Jn(e))return Object(e);{const t=qn(e);r="[object Date]"===t&&"function"==typeof e.getTime?new Date(e.getTime()):"[object RegExp]"===t&&"string"==typeof e.source?new RegExp(e):"[object Error]"===t?{message:e.message}:Object.create(Object.getPrototypeOf(e))}}const s=t.includeSymbols?Qn:Object.keys;for(const t of s(e))Yn(r,t,e[t]);return r}return e}const ti={includeSymbols:!1,immutable:!1};function ri(e,t,r=ti){const s=[],n=[];let i=!0;const o=r.includeSymbols?Qn:Object.keys,c=!!r.immutable,a=r.maxDepth;return function e(l){Xn(s.length,a);const u=c?ei(l,r):l,p={};let h=!0;const d={node:u,node_:l,path:s.slice(),parent:n[n.length-1],parents:n,key:s[s.length-1],isRoot:0===s.length,level:s.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e,t=!1){d.isRoot||Yn(d.parent.node,d.key,e),d.node=e,t&&(h=!1)},delete:function(e){delete d.parent.node[d.key],e&&(h=!1)},remove:function(e){Vn(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(h=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){i=!1},block:function(){h=!1}};if(!i)return d;function m(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=o(d.node)),d.isLeaf=0===d.keys.length;for(let e=0;e<n.length;e++)if(n[e].node_===l){d.circular=n[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}m();const f=t.call(d,d.node);if(void 0!==f&&d.update&&d.update(f),p.before&&p.before.call(d,d.node),!h)return d;if("object"==typeof d.node&&null!==d.node&&!d.circular){var y;n.push(d),m();const t=null!==(y=d.keys)&&void 0!==y?y:[];for(let r=0;r<t.length;r++){const n=t[r];s.push(n),p.pre&&p.pre.call(d,d.node[n],n);const i=e(d.node[n]);c&&Wn.call(d.node,n)&&!Zn(d.node,n)&&Yn(d.node,n,i.node),i.isLast=r===t.length-1,i.isFirst=0===r,p.post&&p.post.call(d,i),s.pop()}n.pop()}return p.after&&p.after.call(d,d.node),d}(e).node}var si=class{constructor(e,t=ti){this._value=e,this._options=t}get(e){let t=this._value;for(let r=0;t&&r<e.length;r++){const s=e[r];if(!Wn.call(t,s)||!this._options.includeSymbols&&"symbol"==typeof s)return;t=t[s]}return t}has(e){let t=this._value;for(let r=0;t&&r<e.length;r++){const s=e[r];if(!Wn.call(t,s)||!this._options.includeSymbols&&"symbol"==typeof s)return!1;t=t[s]}return!0}set(e,t){let r=this._value,s=0;for(s=0;s<e.length-1;s++){const n=e[s];if(Kn(n))return t;Wn.call(r,n)||(r[n]={}),r=r[n]}return Kn(e[s])||(r[e[s]]=t),t}map(e){return ri(this._value,e,{immutable:!0,includeSymbols:!!this._options.includeSymbols,maxDepth:this._options.maxDepth})}forEach(e){return this._value=ri(this._value,e,this._options),this._value}reduce(e,t){const r=1===arguments.length;let s=r?this._value:t;return this.forEach(function(t){this.isRoot&&r||(s=e.call(this,s,t))}),s}paths(){const e=[];return this.forEach(function(){e.push(this.path)}),e}nodes(){const e=[];return this.forEach(function(){e.push(this.node)}),e}clone(){const e=[],t=[],r=this._options,s=r.maxDepth;return Un(this._value)?this._value.slice():function n(i){Xn(e.length,s);for(let r=0;r<e.length;r++)if(e[r]===i)return t[r];if("object"==typeof i&&null!==i){const s=ei(i,r);if(Un(i)||Jn(i))return s;e.push(i),t.push(s);const o=r.includeSymbols?Qn:Object.keys;for(const e of o(i))Yn(s,e,n(i[e]));return e.pop(),t.pop(),s}return i}(this._value)}};const ni=(e,t)=>new si(e,t);ni.get=(e,t,r)=>new si(e,r).get(t),ni.set=(e,t,r,s)=>new si(e,s).set(t,r),ni.has=(e,t,r)=>new si(e,r).has(t),ni.map=(e,t,r)=>new si(e,r).map(t),ni.forEach=(e,t,r)=>new si(e,r).forEach(t),ni.reduce=(e,t,r,s)=>new si(e,s).reduce(t,r),ni.paths=(e,t)=>new si(e,t).paths(),ni.nodes=(e,t)=>new si(e,t).nodes(),ni.clone=(e,t)=>new si(e,t).clone();const ii=["properties"],oi=["properties"],ci=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],ai=["schema/example","items/example"];function li(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return ii.indexOf(t)>-1&&-1===oi.indexOf(r)||ci.indexOf(s)>-1||ai.some(e=>s.indexOf(e)>-1)}function ui(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(Fn(n))o=Nn(n,i);else{const e=Nn(w,n),t=Nn(e,i).replace(w,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const pi=/^([a-z]+:\/\/|\/\/)/i;class hi extends $r{}const di={},mi=new WeakMap,fi=[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]],yi={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(li(i)||(e=>fi.some(t=>t(e)))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new hi("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const c=Ei(e),a=c[0],l=c[1]||"";let u,p,h;try{u=o||a?bi(a,o):null}catch(t){return xi(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=mi.get(s);n||(n={},mi.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(Ai).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,c=i.replace(/allOf\/\d+\/?/g,""),a=s.contextTree.get([]).baseDoc;if(t===a&&ki(c,e))return!0;let l="";const u=r.some(e=>(l=`${l}/${Ai(e)}`,n[l]&&n[l].some(e=>ki(e,o)||ki(o,e))));if(u)return!0;return void(n[c]=(n[c]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=ui(e,u);return e===t?null:ar.replace(r,t)}if(null==u?(h=Oi(l),p=s.get(h),void 0===p&&(p=new hi(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=wi(u,l),p=null!=p.__value?p.__value:p.catch(t=>{throw xi(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})})),p instanceof Error)return[ar.remove(r),p];const d=ui(e,u),m=ar.replace(i,p,{$$ref:d});if(u&&u!==o)return[m,ar.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce((e,t)=>(r.push(e[t]),e[t]),e),s(t.value);function s(e){return ar.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some(t=>s(e[t])))}}(s.state,m)||n.useCircularStructures)return m}catch(e){return null}}},vi=Object.assign(yi,{docCache:di,absoluteify:bi,clearCache:function(e){void 0!==e?delete di[e]:Object.keys(di).forEach(e=>{delete di[e]})},JSONRefError:hi,wrapError:xi,getDoc:ji,split:Ei,extractFromDoc:wi,fetchJSON:function(e){return fetch(e,{headers:{Accept:E},loadSpec:!0}).then(e=>e.text()).then(e=>at.load(e))},extract:Si,jsonPointerToArray:Oi,unescapeJsonPointerToken:Pi}),gi=vi;function bi(e,t){if(!pi.test(e)){if(!t)throw new hi(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Nn(t,e)}return e}function xi(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new hi(`Could not resolve reference: ${r}`,{...t,cause:e})}function Ei(e){return(e+"").split("#")}function wi(e,t){const r=di[e];if(r&&!ar.isPromise(r))try{const e=Si(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return ji(e).then(e=>Si(t,e))}function ji(e){const t=di[e];return t?ar.isPromise(t)?t:Promise.resolve(t):(di[e]=vi.fetchJSON(e).then(t=>(di[e]=t,t)),di[e])}function Si(e,t){const r=Oi(e);if(r.length<1)return t;const s=ar.getIn(t,r);if(void 0===s)throw new hi(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function Oi(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(Pi)}function Pi(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Ai(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const $i=e=>!e||"/"===e||"#"===e;function ki(e,t){if($i(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const Ti={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(li(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,c=n.value;if(i.forEach(e=>{c&&(c=c[e])}),c={...c},0===Object.keys(c).length)return;delete c.allOf;const a=[];return a.push(s.replace(i,{})),e.forEach((e,t)=>{if(!s.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,a.push(e)}a.push(s.mergeDeep(i,e));const n=function(e,t,{specmap:r,getBaseUrlForNodePath:s=e=>r.getContext([...t,...e]).baseDoc,targetKeys:n=["$ref","$$ref"]}={}){const i=[];return ni(e).forEach(function(){if(B()(n).call(n,this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=ui(this.node,s(e));i.push(r.replace(n,o))}}),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>s.getContext([...r,t,...e]).baseDoc,specmap:s});a.push(...n)}),c.example&&a.push(s.remove([].concat(i,"example"))),a.push(s.mergeDeep(i,c)),c.$$ref||a.push(s.remove([].concat(i,"$$ref"))),a}},Mi={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...ar.getIn(s.spec,n)};for(let n=0;n<e.length;n+=1){const o=e[n];try{t[n].default=s.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return ar.replace(r,t)}return ar.replace(r,e)}},Ci={key:"properties",plugin:(e,t,r,s)=>{const n={...e};for(const t in e)try{n[t].default=s.modelPropertyMacro(n[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return ar.replace(r,n)}};class Fi{constructor(e){this.root=Ii(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Ri(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?Ri(n[s],t,r):n[s]=Ii(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,s=this.root;for(let n=0;n<e.length&&(r=e[n],t=s.children,t[r]);n+=1)s=t[r];return s&&s.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce((e,r)=>{if(!e)return e;const{children:s}=e;return!s[r]&&t&&(s[r]=Ii(null,e)),s[r]},this.root)}}function Ii(e,t){return Ri({children:{}},e,t)}function Ri(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]=Ri(r,r.value,e)}),e}const _i=()=>{};class Di{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 Fi,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),ar,{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(ar.isFunction),this.patches.push(ar.add([],this.spec)),this.patches.push(ar.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 s,n=null;return e[this.pluginProp]?(n=e,s=e[this.pluginProp]):ar.isFunction(e)?s=e:ar.isObject(e)&&(s=function(e){const t=(e,t)=>!Array.isArray(e)||e.every((e,r)=>e===t[r]);return function*(s,n){const i={};for(const[e,t]of s.filter(ar.isAdditiveMutation).entries()){if(!(e<S))return;yield*o(t.value,t.path,t)}function*o(s,c,a){if(ar.isObject(s)){const l=c.length-1,u=c[l],p=c.indexOf("properties"),h="properties"===u&&l===p,d=n.allowMetaPatches&&i[s.$$ref];for(const l of Object.keys(s)){const u=s[l],p=c.concat(l),m=ar.isObject(u),f=s.$$ref;if(d||m&&(n.allowMetaPatches&&f&&t(r,p)&&(i[f]=!0),yield*o(u,p,a)),!h&&l===e.key){const s=t(r,c);r&&!s||(yield e.plugin(u,l,p,n,a))}}}else e.key===c[c.length-1]&&(yield e.plugin(s,e.key,c,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:ar.isGenerator(s)})}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){ar.normalizeArray(e).forEach(e=>{if(e instanceof Error)this.errors.push(e);else try{if(!ar.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),ar.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(ar.isContextPatch(e))return void this.setContext(e.path,e.value);ar.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=ar.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 ar.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then(()=>this.dispatch()).catch(()=>this.dispatch());const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map(e=>e.value);return Promise.all(e.map(e=>e.then(_i,_i))).then(()=>this.dispatch())}return function(){e.currentPlugin=t;const s=e.getCurrentMutations(),n=e.mutations.length-1;try{if(t.isGenerator)for(const n of t(s,e.getLib()))r(n);else{r(t(s,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:n})}return e.dispatch()}();function r(r){r&&(r=ar.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const Ni={refs:gi,allOf:Ti,parameters:Mi,properties:Ci};async function Li(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:c,responseInterceptor:a,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=At(e),d=$t(e),m=p.find(e=>e.match(t));return async function(e){h&&(Ni.refs.docCache[h]=e);Ni.refs.fetchJSON=Pt(d,{requestInterceptor:c,responseInterceptor:a});const t=[Ni.refs];"function"==typeof o&&t.push(Ni.parameters);"function"==typeof i&&t.push(Ni.properties);"strict"!==r&&t.push(Ni.allOf);const p=await(f={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Di(f).dispatch());var f;l||(p.spec=m.normalize(p.spec));return p}(t)}function Bi(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=Zr(n)?es(n,r):r[n]}return r}const qi=Ir(function(e,t,r){return e(Bi(t,r))});const Ui=Fr(function(e,t){return e&&t});const Vi=Fr(function(e,t){return cs(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:sn(Ui)(e,t)});const Ji=js(null);const Hi=nn(Ji);function Gi(e){return Gi="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},Gi(e)}const zi=function(e){return"object"===Gi(e)};const Wi=is(1,Vi(Hi,zi));var Ki=Xr(xs,mn("Object")),Yi=Xr(Bs,js(Bs(Object))),Xi=qi(Vi(vn,Yi),["constructor"]);const Qi=is(1,function(e){if(!Wi(e)||!Ki(e))return!1;var t=Object.getPrototypeOf(e);return!!Ji(t)||Xi(t)}),Zi=e=>e.replace(/\W/gi,"_"),eo=new Set(["connect","delete","get","head","options","patch","post","put","query","trace"]);function to(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Zi(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`${eo.has(t.toLowerCase())?t.toLowerCase():t}${Zi(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function ro(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){var n;const o=r[e];if(null==o||!B()(n=["object","function"]).call(n,typeof o))continue;const c=o.parameters;for(const r in o){var i;const n=o[r];if(null==n||!B()(i=["object","function"]).call(i,typeof n))continue;const a=to(n,e,r);if(a){s[a]?s[a].push(n):s[a]=[n];const e=s[a];if(e.length>1)e.forEach((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`});else if(void 0!==n.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||n.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const s in t)"produces"!==s&&"consumes"!==s&&"security"!==s||(r[s]=t[s],e.push(r));if(c&&(r.parameters=c,e.push(r)),e.length)for(const t of e)for(const e in t)if(Array.isArray(n[e])){if("parameters"===e)for(const r of t[e]){n[e].some(e=>!(!Qi(e)&&!Qi(r))&&(e===r||["name","$ref","$$ref"].some(t=>"string"==typeof e[t]&&"string"==typeof r[t]&&e[t]===r[t])))||n[e].push(r)}}else n[e]=t[e]}}}return t.$$normalized=!0,e}const so={name:"generic",match:()=>!0,normalize(e){const{spec:t}=ro({spec:e});return t},resolve:async e=>Li(e)};const no=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},io=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},oo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},co=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},ao=e=>io(e)||oo(e)||co(e),lo={name:"openapi-2",match:e=>no(e),normalize(e){const{spec:t}=ro({spec:e});return t},resolve:async e=>async function(e){return Li(e)}(e)};const uo={name:"openapi-3-0",match:e=>io(e),normalize(e){const{spec:t}=ro({spec:e});return t},resolve:async e=>async function(e){return Li(e)}(e)},po=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=At(e),i=$t(e),o=t||await Pt(i,{requestInterceptor:r,responseInterceptor:s})(n),c={...e,spec:o};return e.strategies.find(e=>e.match(o)).resolve(c)})({...e,...t}),ho=po({strategies:[uo,lo,so]}),mo=e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:c,modelPropertyMacro:a,useCircularStructures:l,strategies:u},h=u.find(t=>t.match(e)).normalize(e),d=await ho({spec:h,...p,allowMetaPatches:!0,skipNormalization:!oo(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce((e,t)=>e?.[t],d.spec)||null),d})(t,r,{...e,...s});mo({strategies:[uo,lo,so]});var fo=r(4035);function yo(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var vo=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Fs,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=yo(this.xf["@@transducer/step"](e,!1))),e},e}();function go(e){return function(t){return new vo(e,t)}}const bo=Fr(Ms(["all"],go,function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}));class xo extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Eo=xo;class wo extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const jo=wo;class So extends fo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(an(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const Oo=So,Po=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ao=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,$o=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),ko=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof fo.wE)&&t.classes.includes(e),To=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Mo=e=>e({hasMethod:Po,hasBasicElementProps:Ao,primitiveEq:$o,isElementType:To,hasClass:ko}),Co=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Hg||e(r)&&t(void 0,r)),Fo=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Om||e(r)&&t("string",r)),Io=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.kT||e(r)&&t("number",r)),Ro=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Os||e(r)&&t("null",r)),_o=Mo(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.bd||e(r)&&t("boolean",r)),Do=Mo(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),No=Mo(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.wE&&!(s instanceof fo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),Lo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Pr||e(s)&&t("member",s)&&r(void 0,s)),Bo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Ft||e(s)&&t("link",s)&&r(void 0,s)),qo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.sI||e(s)&&t("ref",s)&&r(void 0,s)),Uo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Eo||e(s)&&t("annotation",s)&&r("array",s)),Vo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jo||e(s)&&t("comment",s)&&r("string",s)),Jo=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Oo||e(s)&&t("parseResult",s)&&r("array",s)),Ho=e=>To("object",e)||To("array",e)||To("boolean",e)||To("number",e)||To("string",e)||To("null",e)||To("member",e),Go=e=>!!Co(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),zo=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!No(r)&&bo(Ws(r.toValue()),e)},Wo=(e,t)=>0===e.length||bo(Ws(t.classes.toValue()),e);const Ko=function(){return!0};const Yo=function(){return!1};const Xo=class extends Sr{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 Qo extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Xo,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 Zo=Qo;const ec=class extends Zo{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},tc=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},rc={},sc=e=>null==e?void 0:e.type,nc=e=>"string"==typeof sc(e),ic=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),oc=(e,{visitFnGetter:t=tc,nodeTypeGetter:r=sc,breakSymbol:s=rc,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l,u,p,h,d,m){let f=l,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],r(f),!1);if("function"==typeof c){const t=c.call(e[l],f,u,p,h,d,v);if("function"==typeof(null==t?void 0:t.then))throw new ec("Async visitor not supported in sync mode",{visitor:e[l],visitFn:c});if(t===i)a[l]=f;else if(t===s)a[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(a[n]===c){const c=t(e[n],r(d),!0);if("function"==typeof c){const t=c.call(e[n],d,o,l,u,p,m);if("function"==typeof(null==t?void 0:t.then))throw new ec("Async visitor not supported in sync mode",{visitor:e[n],visitFn:c});if(t===s)a[n]=s;else if(void 0!==t&&t!==i)return t}}else a[n]===d&&(a[n]=c)}}};oc[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=tc,nodeTypeGetter:r=sc,breakSymbol:s=rc,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(l,u,p,h,d,m){let f=l,y=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],r(f),!1);if("function"==typeof c){const t=await c.call(e[l],f,u,p,h,d,v);if(t===i)a[l]=f;else if(t===s)a[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},async leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(a[n]===c){const c=t(e[n],r(d),!0);if("function"==typeof c){const t=await c.call(e[n],d,o,l,u,p,m);if(t===s)a[n]=s;else if(void 0!==t&&t!==i)return t}}else a[n]===d&&(a[n]=c)}}};const cc=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=rc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=tc,nodeTypeGetter:a=sc,nodePredicate:l=nc,nodeCloneFn:u=ic,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),v=[e],g=-1,b=[],x=e;const E=[],w=[];do{g+=1;const e=g===v.length;let r;const O=e&&0!==b.length;if(e){if(r=0===w.length?void 0:E.pop(),x=f,f=w.pop(),O)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?g:v[g],x=f[r],x===i||void 0===x)continue;E.push(r)}let P;if(!Array.isArray(x)){var j;if(!l(x))throw new ec(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){"function"==typeof h&&h(x,r,f,E,w),E.pop();continue}const i=c(t,a(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,E,w):f&&(f[r]=t),e||(x=t)}};P=i.call(t,x,r,f,E,w,n)}if("function"==typeof(null===(j=P)||void 0===j?void 0:j.then))throw new ec("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===n)break;if(P===o){if(!e){E.pop();continue}}else if(void 0!==P&&(b.push([r,P]),!e)){if(!l(P)){E.pop();continue}x=P}}var S;if(void 0===P&&O&&b.push([r,x]),!e)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(x),v=y?x:null!==(S=d[a(x)])&&void 0!==S?S:[],g=-1,b=[],f!==i&&void 0!==f&&w.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};cc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=rc,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=tc,nodeTypeGetter:a=sc,nodePredicate:l=nc,nodeCloneFn:u=ic,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),v=[e],g=-1,b=[],x=e;const E=[],w=[];do{g+=1;const e=g===v.length;let r;const S=e&&0!==b.length;if(e){if(r=0===w.length?void 0:E.pop(),x=f,f=w.pop(),S)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}g=m.index,v=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?g:v[g],x=f[r],x===i||void 0===x)continue;E.push(r)}let O;if(!Array.isArray(x)){if(!l(x))throw new ec(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){"function"==typeof h&&h(x,r,f,E,w),E.pop();continue}const i=c(t,a(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,E,w):f&&(f[r]=t),e||(x=t)}};O=await i.call(t,x,r,f,E,w,n)}if(O===n)break;if(O===o){if(!e){E.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!l(O)){E.pop();continue}x=O}}var j;if(void 0===O&&S&&b.push([r,x]),!e)m={inArray:y,index:g,keys:v,edits:b,prev:m},y=Array.isArray(x),v=y?x:null!==(j=d[a(x)])&&void 0!==j?j:[],g=-1,b=[],f!==i&&void 0!==f&&w.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};const ac=class extends $r{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const lc=class extends ac{};const uc=class extends ac{};const pc=Fr(function(e,t){return Ts(function(r,s){return r[s]=e(t[s],s,t),r},{},bs(t))});const hc=Cr(function(e){return null==e});var dc=Fr(function(e,t){if(0===e.length||hc(t))return!1;for(var r=t,s=0;s<e.length;){if(hc(r)||!us(e[s],r))return!1;r=r[e[s]],s+=1}return!0});const mc=dc;var fc=Fr(function(e,t){return mc([e],t)});const yc=fc;const vc=Ir(function(e,t,r){return e(ts(t,r))});const gc=Fr(Bi);var bc=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Fs,e.prototype["@@transducer/result"]=Is,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 xc(e){return function(t){return new bc(e,t)}}const Ec=Fr(Ms(["dropWhile"],xc,function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return Kr(r,1/0,t)}));const wc=os(function(e,t){return Xr(Us(""),Ec(Ws(e)),zs(""))(t)}),jc=(e,t)=>{const r=Qr(e,t);return pc(e=>{if(Qi(e)&&yc("$ref",e)&&vc(wn,"$ref",e)){const t=gc(["$ref"],e),s=wc("#/",t);return gc(s.split("/"),r)}return Qi(e)?jc(e,r):e},e)},Sc=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof fo.KeyValuePair){const{key:t,value:n}=e,i=Co(t)?Sc(t,s):t,o=Co(n)?Sc(n,s):n,c=new fo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof fo.ot){const t=e=>Sc(e,s),n=[...e].map(t),i=new fo.ot(n);return r.set(e,i),i}if(e instanceof fo.G6){const t=e=>Sc(e,s),n=[...e].map(t),i=new fo.G6(n);return r.set(e,i),i}if(Co(e)){const t=Ac(e);if(r.set(e,t),e.content)if(Co(e.content))t.content=Sc(e.content,s);else if(e.content instanceof fo.KeyValuePair)t.content=Sc(e.content,s);else if(Array.isArray(e.content)){const r=e=>Sc(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new lc("Value provided to cloneDeep function couldn't be cloned",{value:e})};Sc.safe=e=>{try{return Sc(e)}catch{return e}};const Oc=e=>{const{key:t,value:r}=e;return new fo.KeyValuePair(t,r)},Pc=e=>{const t=new e.constructor;if(t.element=e.element,Go(e)&&((e,t)=>{e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex})(t,e),e.meta.length>0&&(t._meta=Sc(e.meta)),e.attributes.length>0&&(t._attributes=Sc(e.attributes)),Co(e.content)){const r=e.content;t.content=Pc(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof fo.KeyValuePair?t.content=Oc(e.content):t.content=e.content;return t},Ac=e=>{if(e instanceof fo.KeyValuePair)return Oc(e);if(e instanceof fo.ot)return(e=>{const t=[...e];return new fo.ot(t)})(e);if(e instanceof fo.G6)return(e=>{const t=[...e];return new fo.G6(t)})(e);if(Co(e))return Pc(e);throw new uc("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ac.safe=e=>{try{return Ac(e)}catch{return e}};const $c=e=>Do(e)?"ObjectElement":No(e)?"ArrayElement":Lo(e)?"MemberElement":Fo(e)?"StringElement":_o(e)?"BooleanElement":Io(e)?"NumberElement":Ro(e)?"NullElement":Bo(e)?"LinkElement":qo(e)?"RefElement":void 0,kc=e=>Co(e)?Ac(e):ic(e),Tc=Xr($c,wn),Mc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class Cc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Yo,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 Fc=(e,t,{keyMap:r=Mc,...s}={})=>cc(e,t,{keyMap:r,nodeTypeGetter:$c,nodePredicate:Tc,nodeCloneFn:kc,...s});Fc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Mc,...s}={})=>cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:$c,nodePredicate:Tc,nodeCloneFn:kc,...s});const Ic=e=>"string"==typeof(null==e?void 0:e.type)?e.type:$c(e),Rc={EphemeralObject:["content"],EphemeralArray:["content"],...Mc},_c=(e,t,{keyMap:r=Rc,...s}={})=>Fc(e,t,{keyMap:r,nodeTypeGetter:Ic,nodePredicate:Ko,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});_c[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Rc,...r}={})=>Fc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ic,nodePredicate:Ko,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Dc=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 Nc=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 Lc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Nc(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 Dc(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Fo(e.href)?e.href.toValue():""}}const Bc=e=>Co(e)?Fo(e)||Io(e)||_o(e)||Ro(e)?e.toValue():_c(e,new Lc):e;const qc=Ir(function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})us(s,t)&&(n[s]=us(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)us(s,r)&&!us(s,n)&&(n[s]=r[s]);return n});const Uc=Ir(function e(t,r,s){return qc(function(r,s,n){return Cs(s)&&Cs(n)?e(t,s,n):t(r,s,n)},r,s)});const Vc=Fr(function(e,t){return Uc(function(e,t,r){return r},e,t)});const Jc=Kr(0,-1);const Hc=Fr(function(e,t){return e.apply(this,t)});const Gc=nn(vn);var zc=Cr(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():Rr(e)?[]:_r(e)?"":Cs(e)?{}:ds(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 Wc=zc;const Kc=Cr(function(e){return null!=e&&js(e,Wc(e))});const Yc=is(1,vn(Array.isArray)?Array.isArray:Xr(xs,mn("Array")));const Xc=Vi(Yc,Kc);var Qc=is(3,function(e,t,r){var s=gc(e,r),n=gc(Jc(e),r);if(!Gc(s)&&!Xc(e)){var i=qr(s,n);return Hc(i,t)}});const Zc=Qc;class ea extends fo.g${constructor(){super(),this.register("annotation",Eo),this.register("comment",jo),this.register("parseResult",Oo)}}const ta=new ea,ra=e=>{const t=new ea;return Qi(e)&&t.use(e),t},sa=ta,na=()=>({predicates:{...i},namespace:sa}),ia={toolboxCreator:na,visitorOptions:{nodeTypeGetter:$c,exposeEdits:!0}},oa=(e,t,r={})=>{if(0===t.length)return e;const s=Vc(ia,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc(c.map(rs({},"visitor")),{...i});c.forEach(Zc(["pre"],[]));const l=Fc(e,a,i);return c.forEach(Zc(["post"],[])),l};oa[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Vc(ia,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc[Symbol.for("nodejs.util.promisify.custom")],l=Fc[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(rs({},"visitor")),{...i});await Promise.allSettled(c.map(Zc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Zc(["post"],[]))),p};const ca=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Co(e)&&(e.meta.length>0&&(s.meta=Sc(e.meta)),e.attributes.length>0&&(s.attributes=Sc(e.attributes))),oa(s,r,{toolboxCreator:na,visitorOptions:{nodeTypeGetter:$c}})},aa=e=>(t,r={})=>ca(t,{...r,Type:e});fo.Sh.refract=aa(fo.Sh),fo.wE.refract=aa(fo.wE),fo.Om.refract=aa(fo.Om),fo.bd.refract=aa(fo.bd),fo.Os.refract=aa(fo.Os),fo.kT.refract=aa(fo.kT),fo.Ft.refract=aa(fo.Ft),fo.sI.refract=aa(fo.sI),Eo.refract=aa(Eo),jo.refract=aa(jo),Oo.refract=aa(Oo);const la=(e,t=new WeakMap)=>(Lo(e)?(t.set(e.key,e),la(e.key,t),t.set(e.value,e),la(e.value,t)):e.children.forEach(r=>{t.set(r,e),la(r,t)}),t);const ua=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:la(this.element);const s=this.edges.get(e);return an(s)?void 0:(Do(s)?((e,t,r)=>{const s=r.get(e);Do(s)&&(s.content=s.map((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o))})(e,t,this.edges):No(s)?((e,t,r)=>{const s=r.get(e);No(s)&&(s.content=s.map(n=>n===e?(r.delete(e),r.set(t,s),t):n))})(e,t,this.edges):Lo(s)&&((e,t,r)=>{const s=r.get(e);Lo(s)&&(s.key===e&&(s.key=t,r.delete(e),r.set(t,s)),s.value===e&&(s.value=t,r.delete(e),r.set(t,s)))})(e,t,this.edges),this.element)}};const pa=(e,t,r)=>new ua({element:r}).transclude(e,t),ha=e=>{const t=e.indexOf("#");return(e=>{try{const t=e.startsWith("#")?e.slice(1):e;return decodeURIComponent(t)}catch{return e}})(-1===t?"#":e.substring(t))},da=function(){const e=ga,t=va,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,c,a,l,u,p=0,h=0,d=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(v,g,x,E)=>{const w=`${s}parse(): `;p=0,h=0,d=0,m=0,f=0,n=void 0,i=void 0,o=void 0,c=void 0,y.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(x),n=v.rules,i=v.udts;const j=g.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&j===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${s}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<n.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<n.length;t+=1)c.push(n[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const s in r.callbacks)if(r.callbacks.hasOwnProperty(s)){if(t=c.indexOf(s.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${s}' not a rule or udt name`);if(o=r.callbacks[s]?r.callbacks[s]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${s}] must be function reference or falsy)`);t<n.length?a[t]=o:l[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,c),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,c),u=E,o=[{type:e.RNM,index:S}],b(0,0),o=void 0;let O=!1;switch(y.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=y.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:y.state,stateName:e.idName(y.state),length:c.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:d,nodeHits:m}};const v=(t,r,n,i)=>{if(r.phraseLength>n){let e=`${s}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${s}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},g=(t,a)=>{let h,d,m;const f=o[t],v=i[f.index];y.UdtIndex=v.index,p||(m=r.ast&&r.ast.udtDefined(f.index),m&&(d=n.length+f.index,h=r.ast.getLength(),r.ast.down(d,v.name)));const g=c.length-a;l[f.index](y,c,a,u),((t,r,n)=>{if(r.phraseLength>n){let e=`${s}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${s}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(v,y,g),p||m&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,v.name,a,y.phraseLength))},b=(t,i)=>{const l=`${s}opExecute(): `,x=o[t];switch(m+=1,h>d&&(d=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const s=o[t];for(let t=0;t<s.children.length&&(b(s.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,s)=>{let n,i,c,a;const l=o[t];r.ast&&(i=r.ast.getLength()),n=!0,c=s,a=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],c),y.state===e.NOMATCH){n=!1;break}c+=y.phraseLength,a+=y.phraseLength}n?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,a,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=s,a=0,l=0,r.ast&&(n=r.ast.getLength());!(i>=c.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,a+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,l,h;const d=o[t],m=n[d.index],f=a[m.index];if(p||(l=r.ast&&r.ast.ruleDefined(d.index),l&&(i=r.ast.getLength(),r.ast.down(d.index,n[d.index].name))),f){const t=c.length-s;f(y,c,s,u),v(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,b(0,s),o=h,f(y,c,s,u),v(m,y,t,!1))}else h=o,o=m.opcodes,b(0,s,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(d.index,m.name,s,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const s=o[t];y.state=e.NOMATCH,r<c.length&&s.min<=c[r]&&c[r]<=s.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const s=o[t],n=s.string.length;if(y.state=e.NOMATCH,r+n<=c.length){for(let e=0;e<n;e+=1)if(c[r+e]!==s.string[e])return;y.state=e.MATCH,y.phraseLength=n}})(t,i);break;case e.TLS:((t,r)=>{let s;const n=o[t];y.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(r+i<=c.length){for(let e=0;e<i;e+=1)if(s=c[r+e],s>=65&&s<=90&&(s+=32),s!==n.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:g(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>f&&(f=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},ma=function(){const e=ga,t=va,r=this;let s,n,i,o=0;const c=[],a=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;a.length=0,l.length=0,o=0,s=e,n=t,i=u;const h=[];for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(o=s.length+n.length,p=0;p<o;p+=1)c[p]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(p=h.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);c[p]=r.callbacks[e]}},r.ruleDefined=e=>!!c[e],r.udtDefined=e=>!!c[s.length+e],r.down=(t,r)=>{const s=l.length;return a.push(s),l.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:a.length}),s},r.up=(t,r,s,n)=>{const i=l.length,o=a.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:a.length}),l[o].thatIndex=i,l[o].phraseIndex=s,l[o].phraseLength=n,i},r.translate=t=>{let r,s;for(let n=0;n<l.length;n+=1)s=l[n],r=c[s.callbackIndex],r&&(s.state===e.SEM_PRE?r(e.SEM_PRE,i,s.phraseIndex,s.phraseLength,t):r&&r(e.SEM_POST,i,s.phraseIndex,s.phraseLength,t))},r.setLength=e=>{l.length=e,a.length=e>0?l[e-1].stack:0},r.getLength=()=>l.length,r.toXml=()=>{let r="",s=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(s+2),r+=t.charsToString(i),r+="\n",l.forEach(n=>{n.state===e.SEM_PRE?(s+=1,r+=u(s),r+=`<node name="${n.name}" index="${n.phraseIndex}" length="${n.phraseLength}">\n`,r+=u(s+2),r+=t.charsToString(i,n.phraseIndex,n.phraseLength),r+="\n"):(r+=u(s),r+=`</node>\x3c!-- name="${n.name}" --\x3e\n`,s-=1)}),r+="</root>\n",r}},fa=function(){const e=ga,t=va,r="parser.js: Trace(): ";let s,n,i,o="",c=0;const a=this,l=e=>{let t="",r=0;if(e>=0)for(;e--;)r+=1,5===r?(t+="|",r=0):t+=".";return t};a.init=(e,t,r)=>{n=e,i=t,s=r};const u=s=>{let o;switch(s.type){case e.ALT:o="ALT";break;case e.CAT:o="CAT";break;case e.REP:o=s.max===1/0?`REP(${s.min},inf)`:`REP(${s.min},${s.max})`;break;case e.RNM:o=`RNM(${n[s.index].name})`;break;case e.TRG:o=`TRG(${s.min},${s.max})`;break;case e.TBS:o=s.string.length>6?`TBS(${t.charsToString(s.string,0,3)}...)`:`TBS(${t.charsToString(s.string,0,6)})`;break;case e.TLS:o=s.string.length>6?`TLS(${t.charsToString(s.string,0,3)}...)`:`TLS(${t.charsToString(s.string,0,6)})`;break;case e.UDT:o=`UDT(${i[s.index].name})`;break;case e.AND:o="AND";break;case e.NOT:o="NOT";break;default:throw new Error(`${r}Trace: opName: unrecognized opcode`)}return o};a.down=(e,r)=>{const n=l(c),i=Math.min(100,s.length-r);let a=t.charsToString(s,r,i);i<s.length-r&&(a+="..."),a=`${n}|-|[${u(e)}]${a}\n`,o+=a,c+=1},a.up=(n,i,a,p)=>{const h=`${r}trace.up: `;c-=1;const d=l(c);let m,f,y;switch(i){case e.EMPTY:y="|E|",f="''";break;case e.MATCH:y="|M|",m=Math.min(100,p),f=m<p?`'${t.charsToString(s,a,m)}...'`:`'${t.charsToString(s,a,m)}'`;break;case e.NOMATCH:y="|N|",f="";break;default:throw new Error(`${h} unrecognized state`)}f=`${d}${y}[${u(n)}]${f}\n`,o+=f},a.displayTrace=()=>o},ya=function(){const e=ga;let t,r,s;const n=[],i=[],o=[];this.init=(e,s)=>{t=e,r=s,h()},this.collect=(t,r)=>{d(s,r.state,r.phraseLength),d(n[t.type],r.state,r.phraseLength),t.type===e.RNM&&d(i[t.index],r.state,r.phraseLength),t.type===e.UDT&&d(o[t.index],r.state,r.phraseLength)},this.displayStats=()=>{let t="";const r={match:0,empty:0,nomatch:0,total:0},s=(e,t,s,n,i)=>{r.match+=t,r.empty+=s,r.nomatch+=n,r.total+=i;return`${e} | ${c(t)} | ${c(s)} | ${c(n)} | ${c(i)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=s(" ALT",n[e.ALT].match,n[e.ALT].empty,n[e.ALT].nomatch,n[e.ALT].total),t+=s(" CAT",n[e.CAT].match,n[e.CAT].empty,n[e.CAT].nomatch,n[e.CAT].total),t+=s(" REP",n[e.REP].match,n[e.REP].empty,n[e.REP].nomatch,n[e.REP].total),t+=s(" RNM",n[e.RNM].match,n[e.RNM].empty,n[e.RNM].nomatch,n[e.RNM].total),t+=s(" TRG",n[e.TRG].match,n[e.TRG].empty,n[e.TRG].nomatch,n[e.TRG].total),t+=s(" TBS",n[e.TBS].match,n[e.TBS].empty,n[e.TBS].nomatch,n[e.TBS].total),t+=s(" TLS",n[e.TLS].match,n[e.TLS].empty,n[e.TLS].nomatch,n[e.TLS].total),t+=s(" UDT",n[e.UDT].match,n[e.UDT].empty,n[e.UDT].nomatch,n[e.UDT].total),t+=s(" AND",n[e.AND].match,n[e.AND].empty,n[e.AND].nomatch,n[e.AND].total),t+=s(" NOT",n[e.NOT].match,n[e.NOT].empty,n[e.NOT].nomatch,n[e.NOT].total),t+=s("TOTAL",r.match,r.empty,r.nomatch,r.total),t},this.displayHits=e=>{let t="";const r=(e,t,r,n,i)=>{s.match+=e,s.empty+=t,s.nomatch+=r,s.total+=n;return`| ${c(e)} | ${c(t)} | ${c(r)} | ${c(n)} | ${i}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(i.sort(a),o.sort(a),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(i.sort(u),o.sort(u),t+=" RULES/UDTS BY INDEX\n"):(i.sort(l),o.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<i.length;e+=1){let s=i[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.name))}for(let e=0;e<o.length;e+=1){let s=o[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.name))}return t};const c=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,a=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,l=(e,t)=>e.total<t.total?1:e.total>t.total?-1:a(e,t),u=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,p=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},h=()=>{n.length=0,s=new p,n[e.ALT]=new p,n[e.CAT]=new p,n[e.REP]=new p,n[e.RNM]=new p,n[e.TRG]=new p,n[e.TBS]=new p,n[e.TLS]=new p,n[e.UDT]=new p,n[e.AND]=new p,n[e.NOT]=new p,i.length=0;for(let e=0;e<t.length;e+=1)i.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(r.length>0){o.length=0;for(let e=0;e<r.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:r[e].name,lower:r[e].lower,index:r[e].index})}},d=(t,r)=>{switch(t.total+=1,r){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${r}`)}}},va={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,r)=>{let s=e;for(;!(void 0===t||t<0);){if(void 0===r){s=e.slice(t);break}if(r<=0)return"";s=e.slice(t,t+r);break}return String.fromCodePoint(...s)}},ga={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case ga.ALT:return"ALT";case ga.CAT:return"CAT";case ga.REP:return"REP";case ga.RNM:return"RNM";case ga.TRG:return"TRG";case ga.TBS:return"TBS";case ga.TLS:return"TLS";case ga.UDT:return"UDT";case ga.AND:return"AND";case ga.NOT:return"NOT";case ga.ACTIVE:return"ACTIVE";case ga.EMPTY:return"EMPTY";case ga.MATCH:return"MATCH";case ga.NOMATCH:return"NOMATCH";case ga.SEM_PRE:return"SEM_PRE";case ga.SEM_POST:return"SEM_POST";case ga.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function ba(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class xa extends Error{constructor(e,t=void 0){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.prototype.hasOwnProperty.call(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}`)}if(null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}const Ea=xa;const wa=class extends Ea{},ja=e=>(t,r,s,n,i)=>{if("object"!=typeof i||null===i||Array.isArray(i))throw new wa("parser's user data must be an object");if(t===ga.SEM_PRE){const t={type:e,text:va.charsToString(r,s,n),start:s,length:n,children:[]};if(i.stack.length>0){i.stack[i.stack.length-1].children.push(t)}else i.root=t;i.stack.push(t)}t===ga.SEM_POST&&i.stack.pop()};const Sa=class extends ma{constructor(){super(),this.callbacks["json-pointer"]=ja("json-pointer"),this.callbacks["reference-token"]=ja("reference-token"),this.callbacks.slash=ja("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},Oa=e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};const Pa=class extends Sa{getTree(){const{root:e}=super.getTree();return e.children.filter(({type:e})=>"reference-token"===e).map(({text:e})=>Oa(e))}};const Aa=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}};const $a=class extends fa{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let r=-1;for(let s=0;s<e.length;s++){const n=e[s];if(n.includes("M|")){const e=n.match(/]'(.*)'$/);e&&e[1]&&(r=s)}if(s>r){const e=n.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new Aa(...t)}},ka=new ba,Ta=(e,{translator:t=new Pa,stats:r=!1,trace:s=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const n=new da;t&&(n.ast=t),r&&(n.stats=new ya),s&&(n.trace=new $a);const i=n.parse(ka,"json-pointer",e);return{result:i,tree:i.success&&t?n.ast.getTree():void 0,stats:n.stats,trace:n.trace}}catch(t){throw new wa("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}};new ba,new da,new ba,new da;const Ma=new ba,Ca=new da,Fa=e=>{if("string"!=typeof e)return!1;try{return Ca.parse(Ma,"array-index",e).success}catch{return!1}},Ia=new ba,Ra=new da,_a=e=>{if("string"!=typeof e)return!1;try{return Ra.parse(Ia,"array-dash",e).success}catch{return!1}},Da=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Na=class extends Ea{},La=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Da(String(e))}).join("/")}`}catch(t){throw new Na("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Ba=class{#e;#t;#r;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#r=t.realm}step({referenceToken:e,input:t,output:r,success:s=!0,reason:n}){const i=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:i,input:t,inputType:this.#r.isObject(t)?"object":this.#r.isArray(t)?"array":"unrecognized",output:r,success:s};n&&(o.reason=n),this.#e.steps.push(o),s||(this.#e.failed=!0,this.#e.failedAt=i,this.#e.message=n)}};const qa=class{name="";isArray(e){throw new Ea("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Ea("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Ea("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new Ea("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new Ea("Realm.evaluate(node) must be implemented in a subclass")}};const Ua=class extends Ea{};const Va=class extends Ua{};const Ja=class extends qa{name="json";isArray(e){return Array.isArray(e)}isObject(e){return"object"==typeof e&&null!==e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){const r=Number(t),s=r>>>0;if(r!==s)throw new Va(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,r)}return!!this.isObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}};const Ha=class extends Ua{};const Ga=class extends Ua{},za=(e,t,{strictArrays:r=!0,strictObjects:s=!0,realm:n=new Ja,trace:i=!0}={})=>{const{result:o,tree:c,trace:a}=Ta(t,{trace:!!i}),l="object"==typeof i&&null!==i?new Ba(i,{jsonPointer:t,referenceTokens:c,strictArrays:r,strictObjects:s,realm:n,value:e}):null;try{let i;if(!o.success){let r=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw r+=a?`, expected ${a.inferExpectations()}`:"",new Ua(r,{jsonPointer:t,currentValue:e,realm:n.name})}return c.reduce((e,o,a)=>{if(n.isArray(e)){if(_a(o)){if(r)throw new Va(`Invalid array index "-" at position ${a} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});return i=n.evaluate(e,String(n.sizeOf(e))),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(!Fa(o))throw new Va(`Invalid array index "${o}" at position ${a} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});const s=Number(o);if(!Number.isSafeInteger(s))throw new Va(`Invalid array index "${o}" at position ${a} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});if(!n.has(e,o)&&r)throw new Va(`Invalid array index "${o}" at position ${a} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(n.isObject(e)){if(!n.has(e,o)&&s)throw new Ga(`Invalid object key "${o}" at position ${a} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}throw new Ha(`Invalid reference token "${o}" at position ${a} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:c,referenceToken:o,referenceTokenPosition:a,currentValue:e,realm:n.name})},e)}catch(e){if(null==l||l.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof Ua)throw e;throw new Ua("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:c})}};const Wa=class extends qa{name="apidom";isArray(e){return No(e)}isObject(e){return Do(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const r=Number(t),s=r>>>0;if(r!==s)throw new Va(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<this.sizeOf(e)}if(this.isObject(e)){const r=e.keys(),s=new Set(r);if(r.length!==s.size)throw new Ga(`Object key "${t}" is not unique — JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}},Ka=(e,t,r={})=>za(e,t,{...r,realm:new Wa});class Ya extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Xa=Ya;class Qa extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Za=Qa;class el extends fo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(an(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const tl=el,rl=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],sl=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,nl=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),il=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof fo.wE)&&t.classes.includes(e),ol=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,cl=e=>e({hasMethod:rl,hasBasicElementProps:sl,primitiveEq:nl,isElementType:ol,hasClass:il}),al=cl(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Hg||e(r)&&t(void 0,r)),ll=cl(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Om||e(r)&&t("string",r)),ul=cl(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.kT||e(r)&&t("number",r)),pl=cl(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Os||e(r)&&t("null",r)),hl=cl(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.bd||e(r)&&t("boolean",r)),dl=cl(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),ml=cl(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.wE&&!(s instanceof fo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),fl=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Pr||e(s)&&t("member",s)&&r(void 0,s)),yl=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Ft||e(s)&&t("link",s)&&r(void 0,s)),vl=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.sI||e(s)&&t("ref",s)&&r(void 0,s)),gl=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xa||e(s)&&t("annotation",s)&&r("array",s)),bl=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Za||e(s)&&t("comment",s)&&r("string",s)),xl=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tl||e(s)&&t("parseResult",s)&&r("array",s)),El=e=>ol("object",e)||ol("array",e)||ol("boolean",e)||ol("number",e)||ol("string",e)||ol("null",e)||ol("member",e),wl=e=>!!al(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),jl=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ml(r)&&bo(Ws(r.toValue()),e)},Sl=(e,t)=>0===e.length||bo(Ws(t.classes.toValue()),e);class Ol extends fo.g${constructor(){super(),this.register("annotation",Xa),this.register("comment",Za),this.register("parseResult",tl)}}const Pl=new Ol,Al=Pl,$l=()=>({predicates:{...o},namespace:Al});const kl=class extends Sr{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 Tl extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(kl,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 Ml=Tl;const Cl=class extends Ml{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const Fl=class extends Cl{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Il=class extends Fl{};const Rl=class extends Fl{},_l=(e,t)=>{const r=Qr(e,t);return pc(e=>{if(Qi(e)&&yc("$ref",e)&&vc(wn,"$ref",e)){const t=gc(["$ref"],e),s=wc("#/",t);return gc(s.split("/"),r)}return Qi(e)?_l(e,r):e},e)},Dl=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),Nl=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof fo.KeyValuePair){const{key:t,value:n}=e,i=al(t)?Nl(t,s):t,o=al(n)?Nl(n,s):n,c=new fo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof fo.ot){const t=e=>Nl(e,s),n=[...e].map(t),i=new fo.ot(n);return r.set(e,i),i}if(e instanceof fo.G6){const t=e=>Nl(e,s),n=[...e].map(t),i=new fo.G6(n);return r.set(e,i),i}if(al(e)){const t=ql(e);if(r.set(e,t),e.content)if(al(e.content))t.content=Nl(e.content,s);else if(e.content instanceof fo.KeyValuePair)t.content=Nl(e.content,s);else if(Array.isArray(e.content)){const r=e=>Nl(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Il("Value provided to cloneDeep function couldn't be cloned",{value:e})};Nl.safe=e=>{try{return Nl(e)}catch{return e}};const Ll=e=>{const{key:t,value:r}=e;return new fo.KeyValuePair(t,r)},Bl=e=>{const t=new e.constructor;if(t.element=e.element,wl(e)&&Dl(t,e),e.meta.length>0&&(t._meta=Nl(e.meta)),e.attributes.length>0&&(t._attributes=Nl(e.attributes)),al(e.content)){const r=e.content;t.content=Bl(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof fo.KeyValuePair?t.content=Ll(e.content):t.content=e.content;return t},ql=e=>{if(e instanceof fo.KeyValuePair)return Ll(e);if(e instanceof fo.ot)return(e=>{const t=[...e];return new fo.ot(t)})(e);if(e instanceof fo.G6)return(e=>{const t=[...e];return new fo.G6(t)})(e);if(al(e))return Bl(e);throw new Rl("Value provided to cloneShallow function couldn't be cloned",{value:e})};ql.safe=e=>{try{return ql(e)}catch{return e}};const Ul=e=>dl(e)?"ObjectElement":ml(e)?"ArrayElement":fl(e)?"MemberElement":ll(e)?"StringElement":hl(e)?"BooleanElement":ul(e)?"NumberElement":pl(e)?"NullElement":yl(e)?"LinkElement":vl(e)?"RefElement":void 0,Vl=e=>al(e)?ql(e):ic(e),Jl=Xr(Ul,wn),Hl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Gl=(e,t,{keyMap:r=Hl,...s}={})=>cc(e,t,{keyMap:r,nodeTypeGetter:Ul,nodePredicate:Jl,nodeCloneFn:Vl,...s});Gl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Hl,...s}={})=>cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Ul,nodePredicate:Jl,nodeCloneFn:Vl,...s});const zl={toolboxCreator:$l,visitorOptions:{nodeTypeGetter:Ul,exposeEdits:!0}},Wl=(e,t,r={})=>{if(0===t.length)return e;const s=Vc(zl,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc(c.map(rs({},"visitor")),{...i});c.forEach(Zc(["pre"],[]));const l=Gl(e,a,i);return c.forEach(Zc(["post"],[])),l};Wl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Vc(zl,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc[Symbol.for("nodejs.util.promisify.custom")],l=Gl[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(rs({},"visitor")),{...i});await Promise.allSettled(c.map(Zc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Zc(["post"],[]))),p};const Kl=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return al(e)&&(e.meta.length>0&&(s.meta=Nl(e.meta)),e.attributes.length>0&&(s.attributes=Nl(e.attributes))),Wl(s,r,{toolboxCreator:$l,visitorOptions:{nodeTypeGetter:Ul}})},Yl=e=>(t,r={})=>Kl(t,{...r,Type:e});fo.Sh.refract=Yl(fo.Sh),fo.wE.refract=Yl(fo.wE),fo.Om.refract=Yl(fo.Om),fo.bd.refract=Yl(fo.bd),fo.Os.refract=Yl(fo.Os),fo.kT.refract=Yl(fo.kT),fo.Ft.refract=Yl(fo.Ft),fo.sI.refract=Yl(fo.sI),Xa.refract=Yl(Xa),Za.refract=Yl(Za),tl.refract=Yl(tl);class Xl extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ql=Xl;class Zl extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const eu=Zl;class tu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const ru=tu;class su extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const nu=su;class iu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const ou=iu;class cu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const au=cu;class lu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const uu=lu;class pu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new fo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new fo.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(pu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const hu=pu;class du extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const mu=du;class fu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const yu=fu;class vu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return ll(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):ll(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 gu=vu;class bu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const xu=bu;class Eu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const wu=Eu;class ju extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Su=ju;class Ou extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Pu=Ou;class Au extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const $u=Au;class ku extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new fo.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Tu=ku;class Mu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new fo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new fo.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Mu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Cu=Mu;class Fu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Iu=Fu;class Ru extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const _u=Ru;class Du extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Nu=Du;class Lu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new fo.bd(!1)}set required(e){this.set("required",e)}}const Bu=Lu;class qu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Uu=qu;class Vu extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Ju=Vu;const Hu=class extends Ml{};class Gu extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const zu=Gu;class Wu extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Ku=Wu;class Yu extends fo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(an(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const Xu=Yu,Qu=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Zu=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,ep=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),tp=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof fo.wE)&&t.classes.includes(e),rp=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,sp=e=>e({hasMethod:Qu,hasBasicElementProps:Zu,primitiveEq:ep,isElementType:rp,hasClass:tp}),np=sp(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Hg||e(r)&&t(void 0,r)),ip=sp(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Om||e(r)&&t("string",r)),op=sp(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.kT||e(r)&&t("number",r)),cp=sp(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Os||e(r)&&t("null",r)),ap=sp(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.bd||e(r)&&t("boolean",r)),lp=sp(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),up=sp(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.wE&&!(s instanceof fo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),pp=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Pr||e(s)&&t("member",s)&&r(void 0,s)),hp=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Ft||e(s)&&t("link",s)&&r(void 0,s)),dp=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.sI||e(s)&&t("ref",s)&&r(void 0,s)),mp=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zu||e(s)&&t("annotation",s)&&r("array",s)),fp=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ku||e(s)&&t("comment",s)&&r("string",s)),yp=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xu||e(s)&&t("parseResult",s)&&r("array",s)),vp=e=>rp("object",e)||rp("array",e)||rp("boolean",e)||rp("number",e)||rp("string",e)||rp("null",e)||rp("member",e),gp=e=>!!np(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),bp=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!up(r)&&bo(Ws(r.toValue()),e)},xp=(e,t)=>0===e.length||bo(Ws(t.classes.toValue()),e);class Ep extends fo.g${constructor(){super(),this.register("annotation",zu),this.register("comment",Ku),this.register("parseResult",Xu)}}const wp=new Ep,jp=wp,Sp=()=>({predicates:{...c},namespace:jp});const Op=class extends Sr{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 Pp extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Op,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 Ap=Pp;const $p=class extends Ap{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const kp=class extends $p{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Tp=class extends kp{};const Mp=class extends kp{},Cp=(e,t)=>{const r=Qr(e,t);return pc(e=>{if(Qi(e)&&yc("$ref",e)&&vc(wn,"$ref",e)){const t=gc(["$ref"],e),s=wc("#/",t);return gc(s.split("/"),r)}return Qi(e)?Cp(e,r):e},e)},Fp=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),Ip=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof fo.KeyValuePair){const{key:t,value:n}=e,i=np(t)?Ip(t,s):t,o=np(n)?Ip(n,s):n,c=new fo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof fo.ot){const t=e=>Ip(e,s),n=[...e].map(t),i=new fo.ot(n);return r.set(e,i),i}if(e instanceof fo.G6){const t=e=>Ip(e,s),n=[...e].map(t),i=new fo.G6(n);return r.set(e,i),i}if(np(e)){const t=Dp(e);if(r.set(e,t),e.content)if(np(e.content))t.content=Ip(e.content,s);else if(e.content instanceof fo.KeyValuePair)t.content=Ip(e.content,s);else if(Array.isArray(e.content)){const r=e=>Ip(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Tp("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ip.safe=e=>{try{return Ip(e)}catch{return e}};const Rp=e=>{const{key:t,value:r}=e;return new fo.KeyValuePair(t,r)},_p=e=>{const t=new e.constructor;if(t.element=e.element,gp(e)&&Fp(t,e),e.meta.length>0&&(t._meta=Ip(e.meta)),e.attributes.length>0&&(t._attributes=Ip(e.attributes)),np(e.content)){const r=e.content;t.content=_p(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof fo.KeyValuePair?t.content=Rp(e.content):t.content=e.content;return t},Dp=e=>{if(e instanceof fo.KeyValuePair)return Rp(e);if(e instanceof fo.ot)return(e=>{const t=[...e];return new fo.ot(t)})(e);if(e instanceof fo.G6)return(e=>{const t=[...e];return new fo.G6(t)})(e);if(np(e))return _p(e);throw new Mp("Value provided to cloneShallow function couldn't be cloned",{value:e})};Dp.safe=e=>{try{return Dp(e)}catch{return e}};const Np=e=>lp(e)?"ObjectElement":up(e)?"ArrayElement":pp(e)?"MemberElement":ip(e)?"StringElement":ap(e)?"BooleanElement":op(e)?"NumberElement":cp(e)?"NullElement":hp(e)?"LinkElement":dp(e)?"RefElement":void 0,Lp=e=>np(e)?Dp(e):ic(e),Bp=Xr(Np,wn),qp={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Up=(e,t,{keyMap:r=qp,...s}={})=>cc(e,t,{keyMap:r,nodeTypeGetter:Np,nodePredicate:Bp,nodeCloneFn:Lp,...s});Up[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=qp,...s}={})=>cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Np,nodePredicate:Bp,nodeCloneFn:Lp,...s});const Vp={toolboxCreator:Sp,visitorOptions:{nodeTypeGetter:Np,exposeEdits:!0}},Jp=(e,t,r={})=>{if(0===t.length)return e;const s=Vc(Vp,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc(c.map(rs({},"visitor")),{...i});c.forEach(Zc(["pre"],[]));const l=Up(e,a,i);return c.forEach(Zc(["post"],[])),l};Jp[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Vc(Vp,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc[Symbol.for("nodejs.util.promisify.custom")],l=Up[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(rs({},"visitor")),{...i});await Promise.allSettled(c.map(Zc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Zc(["post"],[]))),p};const Hp=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return np(e)&&(e.meta.length>0&&(s.meta=Ip(e.meta)),e.attributes.length>0&&(s.attributes=Ip(e.attributes))),Jp(s,r,{toolboxCreator:Sp,visitorOptions:{nodeTypeGetter:Np}})},Gp=e=>(t,r={})=>Hp(t,{...r,Type:e});fo.Sh.refract=Gp(fo.Sh),fo.wE.refract=Gp(fo.wE),fo.Om.refract=Gp(fo.Om),fo.bd.refract=Gp(fo.bd),fo.Os.refract=Gp(fo.Os),fo.kT.refract=Gp(fo.kT),fo.Ft.refract=Gp(fo.Ft),fo.sI.refract=Gp(fo.sI),zu.refract=Gp(zu),Ku.refract=Gp(Ku),Xu.refract=Gp(Xu);class zp extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Wp=zp;class Kp extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Yp=Kp;class Xp extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Qp=Xp;class Zp extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const eh=Zp,th=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Np(e),rh={EphemeralObject:["content"],EphemeralArray:["content"],...qp},sh=(e,t,{keyMap:r=rh,...s}={})=>Up(e,t,{keyMap:r,nodeTypeGetter:th,nodePredicate:Ko,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});sh[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=rh,...r}={})=>Up[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:th,nodePredicate:Ko,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const nh=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 ih=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 oh{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ih(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 nh(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ip(e.href)?e.href.toValue():""}}const ch=e=>np(e)?ip(e)||op(e)||ap(e)||cp(e)?e.toValue():sh(e,new oh):e,ah=e=>{const t=e.meta.length>0?Ip(e.meta):void 0,r=e.attributes.length>0?Ip(e.attributes):void 0;return new e.constructor(void 0,t,r)},lh=(e,t)=>t.clone&&t.isMergeableElement(e)?ph(ah(e),e,t):e,uh={clone:!0,isMergeableElement:e=>lp(e)||up(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"](e=>lh(e,r)),objectElementMerge:(e,t,r)=>{const s=lp(e)?ah(e):ah(t);return lp(e)&&e.forEach((e,t,n)=>{const i=Dp(n);i.value=lh(e,r),s.content.push(i)}),t.forEach((t,n,i)=>{const o=ch(n);let c;if(lp(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);c=Dp(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return ph;const r=t.customMerge(e,t);return"function"==typeof r?r:ph})(n,r)(s,t,r)}else c=Dp(i),c.value=lh(t,r);s.remove(o),s.content.push(c)}),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ph=(e,t,r)=>{var s,n,i;const o={...uh,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:uh.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:uh.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:uh.objectElementMerge;const c=up(t);if(!(c===up(e)))return lh(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Ip(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Ip(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};ph.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new fo.Sh:e.reduce((e,r)=>ph(e,r,t),ah(e[0]))};const hh=ph;const dh=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=hh(t.meta,e.meta)),gp(e)&&Fp(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=hh(t.attributes,e.attributes))}};const mh=class extends dh{enter(e){return this.element=Ip(e),rc}},fh=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},yh=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:yh(r,[...t,r])},vh=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map(e=>yh(e));for(;r.every(e=>e.length>0);){const e=r.map(e=>e.pop()),s=e[0];if(!e.every(e=>e===s))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=yh(n);for(let t of e){let e=yh(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(fh(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},gh=e=>e.filter((t,r)=>e.indexOf(t)==r),bh=(e,t)=>{const r=t.map(e=>yh(e));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},xh=(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(bh(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==bh(s,e)||void 0!==t[s],get:(r,s)=>(bh(s,e)||t)[s],set(t,r,s){const n=bh(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!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)))}),Eh=null,wh="copy",jh="copy",Sh="deep",Oh=new WeakMap,Ph=e=>Oh.get(e),Ah=(e,t)=>{var r,s;const n=gh([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=gh([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},$h=(e,t)=>{var r,s,n,i;return{property:Ah(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:Ah(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},kh=(e,t)=>{var r,s,n,i,o,c;return{class:gh([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:$h(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:$h(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Th=new Map,Mh=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...yh(e.prototype).map(e=>e.constructor),...null!==(t=Ph(e))&&void 0!==t?t:[]].filter(e=>!r.has(e));for(let e of n)s.add(e);r.add(e),s.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)=>kh(e,t))},Ch=e=>{let t=Th.get(e);return t||(t={},Th.set(e,t)),t};function Fh(...e){var t,r,s;const n=e.map(e=>e.prototype),i=Eh;if(null!==i){const e=n.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};n.push(r)}function o(...t){for(const r of e)fh(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===jh?vh(n,o):(c=n,a=o,xh([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===wh?vh(e,null,["prototype"]):xh(e,Function.prototype));let l=o;if("none"!==Sh){const n="deep"===Sh?Mh(...e):((...e)=>{const t=e.map(e=>Ch(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>kh(e,t))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Ih(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),Ih(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Oh.set(u,p),l}const Ih=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Rh=Cr(function(e){return is(zr(un,0,pn("length",e)),function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});const _h=Cr(function(e){return!Kc(e)});const Dh=Fr(function(e,t){return e||t});var Nh=nn(is(1,Vi(Hi,Fr(function(e,t){return cs(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:sn(Dh)(e,t)})(zi,vn))));const Lh=Rh([wn,Nh,_h]);const Bh=Fr(function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r});const qh=class extends dh{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Bh(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=gc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return qi(vn,["visitors",...e],this.specObj)?gc(["visitors",...e],this.specObj):gc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof mh&&(null==s?void 0:s.constructor)===mh?Ip(t):(Up(t,s,r),s.element)}};const Uh=class extends qh{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((e,s,n)=>{if(ip(s)&&r.includes(ch(s))&&!this.ignoredFields.includes(ch(s))){const r=this.toRefractedElement([...t,"fixedFields",ch(s)],e),i=new fo.Pr(Ip(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ch(s))||this.element.content.push(Ip(n))}),this.copyMetaAndAttributes(e,this.element),rc}};const Vh=class{parent;constructor({parent:e}){this.parent=e}},Jh=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wp||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s)),Hh=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yp||e(s)&&t("JSONReference",s)&&r("object",s)),Gh=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qp||e(s)&&t("media",s)&&r("object",s)),zh=sp(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eh||e(s)&&t("linkDescription",s)&&r("object",s));class Wh extends(Fh(Uh,Vh,mh)){constructor(e){super(e),this.element=new Wp,this.specPath=on(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Uh.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(an(this.parent)&&!ip(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Jh(this.parent)&&!ip(e.get("$schema"))){const e=Qr(ch(this.parent.meta.get("inheritedDialectIdentifier")),ch(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Ip(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new fo.wE,s=ch(e.get(t));Lh(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Kh=Wh,Yh=e=>lp(e)&&e.hasKey("$ref");class Xh extends(Fh(qh,Vh,mh)){ObjectElement(e){const t=Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),rc}ArrayElement(e){return this.element=new fo.wE,this.element.classes.push("json-schema-items"),e.forEach(e=>{const t=Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const Qh=Xh;const Zh=class extends mh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ed=class extends qh{specPath;ignoredFields;fieldPatternPredicate=Yo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach((e,t,r)=>{if(!this.ignoredFields.includes(ch(t))&&this.fieldPatternPredicate(ch(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new fo.Pr(Ip(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ch(t))||this.element.content.push(Ip(r))}),this.copyMetaAndAttributes(e,this.element),rc}};const td=class extends ed{constructor(e){super(e),this.fieldPatternPredicate=Lh}};class rd extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const sd=rd;class nd extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const id=nd;class od extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const cd=od;const ad=class extends mh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ld=class extends mh{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ud extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(e=>{const t=Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const pd=ud;class hd extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(e=>{const t=Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const dd=hd;class md extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(e=>{const t=Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const fd=md;class yd extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Yh(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const vd=yd;class gd extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rc}}const bd=gd;class xd extends(Fh(Uh,mh)){constructor(e){super(e),this.element=new Yp,this.specPath=on(["document","objects","JSONReference"])}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return ip(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ed=xd;const wd=class extends mh{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const jd=Ir(function(e,t,r){return is(Math.max(e.length,t.length,r.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})});const Sd=Cr(function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}});var Od=Fr(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const Pd=Od;const Ad=Cr(function(e){return es(0,e)});const $d=Cr(yo);const kd=nn(hc);const Td=Vi(Yc,_h);function Md(e){return function(e){if(Array.isArray(e))return Cd(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){if("string"==typeof e)return Cd(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cd(e,t):void 0}}(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 Cd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var Fd=Xr(Pd(Sd(function(e,t){return e.length>t.length})),Ad,ts("length")),Id=os(function(e,t,r){var s=r.apply(void 0,Md(e));return kd(s)?$d(s):t});const Rd=jd(Td,function(e){var t=Fd(e);return is(t,function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return zr(Id(r),void 0,e)})},cn);const _d=class extends qh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>jd(e,on(t),cn)),r=Rd(t)(e);return this.element=this.toRefractedElement(r,e),rc}};const Dd=class extends _d{constructor(e){super(e),this.alternator=[{predicate:Yh,specPath:["document","objects","JSONReference"]},{predicate:Ko,specPath:["document","objects","JSONSchema"]}]}};class Nd extends(Fh(Uh,mh)){constructor(e){super(e),this.element=new Qp,this.specPath=on(["document","objects","Media"])}}const Ld=Nd;class Bd extends(Fh(Uh,mh)){constructor(e){super(e),this.element=new eh,this.specPath=on(["document","objects","LinkDescription"])}}const qd=Bd,Ud={visitors:{value:mh,JSONSchemaOrJSONReferenceVisitor:Dd,document:{objects:{JSONSchema:{$visitor:Kh,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Dd,items:Qh,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Zh,properties:sd,additionalProperties:Dd,patternProperties:id,dependencies:cd,enum:ad,type:ld,allOf:pd,anyOf:dd,oneOf:fd,not:Dd,definitions:vd,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:bd,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Ed,fixedFields:{$ref:wd}},Media:{$visitor:Ld,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:qd,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Dd,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Dd}}}}}},Vd=e=>{if(np(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Jd={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...qp},Hd={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Wp),t.register("jSONReference",Yp),t.register("media",Qp),t.register("linkDescription",eh),t}},Gd=()=>{const e=(e=>{const t=new Ep;return Qi(e)&&t.use(e),t})(Hd);return{predicates:{...a,isStringElement:ip},namespace:e}},zd=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Ud}={})=>{const n=(0,fo.e)(e),i=Cp(s),o=new(gc(t,i))({specObj:i});return Up(n,o),Jp(o.element,r,{toolboxCreator:Gd,visitorOptions:{keyMap:Jd,nodeTypeGetter:Vd}})},Wd=e=>(t,r={})=>zd(t,{specPath:e,...r});Wp.refract=Wd(["visitors","document","objects","JSONSchema","$visitor"]),Yp.refract=Wd(["visitors","document","objects","JSONReference","$visitor"]),Qp.refract=Wd(["visitors","document","objects","Media","$visitor"]),eh.refract=Wd(["visitors","document","objects","LinkDescription","$visitor"]);const Kd=class extends Wp{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Hu("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Hu("idProp setter in Schema class is not not supported.")}get $schema(){throw new Hu("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Hu("$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 Hu("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Hu("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Hu("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Hu("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 Hu("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Hu("definitions setter in Schema class is not not supported.")}get base(){throw new Hu("base getter in Schema class is not not supported.")}set base(e){throw new Hu("base setter in Schema class is not not supported.")}get links(){throw new Hu("links getter in Schema class is not not supported.")}set links(e){throw new Hu("links setter in Schema class is not not supported.")}get media(){throw new Hu("media getter in Schema class is not not supported.")}set media(e){throw new Hu("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 Yd extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Xd=Yd;class Qd extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Zd=Qd;class em extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const tm=em;class rm extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const sm=rm;class nm extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const im=nm;class om extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const cm=om,am=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Ul(e),lm={EphemeralObject:["content"],EphemeralArray:["content"],...Hl},um=(e,t,{keyMap:r=lm,...s}={})=>Gl(e,t,{keyMap:r,nodeTypeGetter:am,nodePredicate:Ko,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});um[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=lm,...r}={})=>Gl[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:am,nodePredicate:Ko,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const pm=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 hm=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 dm{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new hm(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 pm(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ll(e.href)?e.href.toValue():""}}const mm=e=>al(e)?ll(e)||ul(e)||hl(e)||pl(e)?e.toValue():um(e,new dm):e,fm=e=>{const t=e.meta.length>0?Nl(e.meta):void 0,r=e.attributes.length>0?Nl(e.attributes):void 0;return new e.constructor(void 0,t,r)},ym=(e,t)=>t.clone&&t.isMergeableElement(e)?gm(fm(e),e,t):e,vm={clone:!0,isMergeableElement:e=>dl(e)||ml(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"](e=>ym(e,r)),objectElementMerge:(e,t,r)=>{const s=dl(e)?fm(e):fm(t);return dl(e)&&e.forEach((e,t,n)=>{const i=ql(n);i.value=ym(e,r),s.content.push(i)}),t.forEach((t,n,i)=>{const o=mm(n);let c;if(dl(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);c=ql(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return gm;const r=t.customMerge(e,t);return"function"==typeof r?r:gm})(n,r)(s,t,r)}else c=ql(i),c.value=ym(t,r);s.remove(o),s.content.push(c)}),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},gm=(e,t,r)=>{var s,n,i;const o={...vm,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:vm.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:vm.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:vm.objectElementMerge;const c=ml(t);if(!(c===ml(e)))return ym(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Nl(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Nl(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};gm.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new fo.Sh:e.reduce((e,r)=>gm(e,r,t),fm(e[0]))};const bm=gm;const xm=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=bm(t.meta,e.meta)),wl(e)&&Dl(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=bm(t.attributes,e.attributes))}};const Em=class extends xm{enter(e){return this.element=Nl(e),rc}};const wm=class extends xm{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Bh(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=gc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return qi(vn,["visitors",...e],this.specObj)?gc(["visitors",...e],this.specObj):gc(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof Em&&(null==s?void 0:s.constructor)===Em?Nl(t):(Gl(t,s,r),s.element)}};var jm=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Fs,e.prototype["@@transducer/result"]=Is,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?yo(r):r},e}();function Sm(e){return function(t){return new jm(e,t)}}const Om=Fr(Ms(["take"],Sm,function(e,t){return Kr(0,e<0?1/0:e,t)}));const Pm=Fr(function(e,t){return js(Om(e.length,t),e)}),Am=e=>dl(e)&&e.hasKey("$ref"),$m=dl,km=dl,Tm=e=>ll(e.key)&&Pm("x-",mm(e.key));const Mm=class extends wm{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Tm;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((e,s,n)=>{if(ll(s)&&r.includes(mm(s))&&!this.ignoredFields.includes(mm(s))){const r=this.toRefractedElement([...t,"fixedFields",mm(s)],e),i=new fo.Pr(Nl(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(mm(s))||this.element.content.push(Nl(n))}),this.copyMetaAndAttributes(e,this.element),rc}};class Cm extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new $u,this.specPath=on(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Mm.prototype.ObjectElement.call(this,e)}}const Fm=Cm;class Im extends(Fh(wm,Em)){StringElement(e){const t=new Pu(mm(e));return this.copyMetaAndAttributes(e,t),this.element=t,rc}}const Rm=Im;const _m=class extends wm{MemberElement(e){return this.element=Nl(e),this.element.classes.push("specification-extension"),rc}};class Dm extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new mu,this.specPath=on(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Nm=Dm;const Lm=class extends Em{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Bm extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new ru,this.specPath=on(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const qm=Bm;class Um extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new yu,this.specPath=on(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Vm=Um;class Jm extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new gu,this.specPath=on(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return(ll(this.element.operationId)||ll(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Hm=Jm;const Gm=class extends Em{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const zm=class extends Em{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Wm=class extends wm{specPath;ignoredFields;fieldPatternPredicate=Yo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Tm;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(mm(t))&&this.fieldPatternPredicate(mm(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new fo.Pr(Nl(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(mm(t))||this.element.content.push(Nl(r))}),this.copyMetaAndAttributes(e,this.element),rc}};const Km=class extends Wm{constructor(e){super(e),this.fieldPatternPredicate=Lh}};class Ym extends fo.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ym.primaryClass)}}const Xm=Ym;class Qm extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Xm,this.specPath=on(["value"])}}const Zm=Qm;class ef extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new tm,this.specPath=on(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const tf=ef;const rf=class extends Em{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class sf extends fo.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(sf.primaryClass)}}const nf=sf;class of extends(Fh(wm,Em)){constructor(e){super(e),this.element=new nf}ArrayElement(e){return e.forEach(e=>{const t=$m(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const cf=of;class af extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new sm,this.specPath=on(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const lf=af;class uf extends fo.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(uf.primaryClass)}}const pf=uf;class hf extends(Fh(Km,Em)){constructor(e){super(e),this.element=new pf,this.specPath=on(["document","objects","ServerVariable"])}}const df=hf;class mf extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new xu,this.specPath=on(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ff=mf;const yf=class extends wm{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>jd(e,on(t),cn)),r=Rd(t)(e);return this.element=this.toRefractedElement(r,e),rc}},vf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ql||e(s)&&t("callback",s)&&r("object",s)),gf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eu||e(s)&&t("components",s)&&r("object",s)),bf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ru||e(s)&&t("contact",s)&&r("object",s)),xf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof au||e(s)&&t("example",s)&&r("object",s)),Ef=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uu||e(s)&&t("externalDocumentation",s)&&r("object",s)),wf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hu||e(s)&&t("header",s)&&r("object",s)),jf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mu||e(s)&&t("info",s)&&r("object",s)),Sf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yu||e(s)&&t("license",s)&&r("object",s)),Of=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gu||e(s)&&t("link",s)&&r("object",s)),Pf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pu||e(s)&&t("openapi",s)&&r("string",s)),Af=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof $u||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n)),$f=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tu||e(s)&&t("operation",s)&&r("object",s)),kf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cu||e(s)&&t("parameter",s)&&r("object",s)),Tf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Iu||e(s)&&t("pathItem",s)&&r("object",s)),Mf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _u||e(s)&&t("paths",s)&&r("object",s)),Cf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nu||e(s)&&t("reference",s)&&r("object",s)),Ff=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bu||e(s)&&t("requestBody",s)&&r("object",s)),If=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Uu||e(s)&&t("response",s)&&r("object",s)),Rf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ju||e(s)&&t("responses",s)&&r("object",s)),_f=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kd||e(s)&&t("schema",s)&&r("object",s)),Df=e=>hl(e)&&e.classes.includes("boolean-json-schema"),Nf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xd||e(s)&&t("securityRequirement",s)&&r("object",s)),Lf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zd||e(s)&&t("securityScheme",s)&&r("object",s)),Bf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tm||e(s)&&t("server",s)&&r("object",s)),qf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sm||e(s)&&t("serverVariable",s)&&r("object",s)),Uf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xu||e(s)&&t("mediaType",s)&&r("object",s)),Vf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof nf||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)),Jf=cl(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nu||e(s)&&t("discriminator",s)&&r("object",s));class Hf extends(Fh(yf,Em)){constructor(e){super(e),this.alternator=[{predicate:Am,specPath:["document","objects","Reference"]},{predicate:Ko,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=yf.prototype.enter.call(this,e);return Cf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Gf=Hf;class zf extends(Fh(Km,Em)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("examples"),this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const Wf=zf;class Kf extends fo.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Kf.primaryClass),this.classes.push("examples")}}const Yf=Kf;const Xf=class extends Wf{constructor(e){super(e),this.element=new Yf}};class Qf extends fo.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Qf.primaryClass)}}const Zf=Qf;class ey extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Zf,this.specPath=on(["document","objects","Encoding"])}}const ty=ey;class ry extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Xd,this.specPath=on(["value"])}}const sy=ry;class ny extends fo.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(ny.primaryClass)}}const iy=ny;class oy extends(Fh(wm,Em)){constructor(e){super(e),this.element=new iy}ArrayElement(e){return e.forEach(e=>{if(dl(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Nl(e))}),this.copyMetaAndAttributes(e,this.element),rc}}const cy=oy;class ay extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new eu,this.specPath=on(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const ly=ay;class uy extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new im,this.specPath=on(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const py=uy;class hy extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Nu,this.specPath=on(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return ll(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const dy=hy;const my=class extends Em{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class fy extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Cu,this.specPath=on(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return dl(this.element.contentProp)&&this.element.contentProp.filter(Uf).forEach((e,t)=>{e.setMetaProperty("media-type",mm(t))}),t}}const yy=fy;class vy extends(Fh(yf,Em)){constructor(e){super(e),this.alternator=[{predicate:Am,specPath:["document","objects","Reference"]},{predicate:Ko,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=yf.prototype.enter.call(this,e);return Cf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const gy=vy;class by extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new hu,this.specPath=on(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const xy=by;class Ey extends(Fh(yf,Em)){constructor(e){super(e),this.alternator=[{predicate:Am,specPath:["document","objects","Reference"]},{predicate:Ko,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=yf.prototype.enter.call(this,e);return Cf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const wy=Ey;class jy extends fo.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(jy.primaryClass),this.classes.push("examples")}}const Sy=jy;const Oy=class extends Wf{constructor(e){super(e),this.element=new Sy}};class Py extends(Fh(Km,Em)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("content"),this.specPath=on(["document","objects","MediaType"])}}const Ay=Py;class $y extends fo.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push($y.primaryClass),this.classes.push("content")}}const ky=$y;const Ty=class extends Ay{constructor(e){super(e),this.element=new ky}};class My extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Kd,this.specPath=on(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Cy=My,Fy=Ud.visitors.document.objects.JSONSchema.fixedFields.allOf;const Iy=class extends Fy{ArrayElement(e){const t=Fy.prototype.ArrayElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Ry=Ud.visitors.document.objects.JSONSchema.fixedFields.anyOf;const _y=class extends Ry{ArrayElement(e){const t=Ry.prototype.ArrayElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Dy=Ud.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Ny=class extends Dy{ArrayElement(e){const t=Dy.prototype.ArrayElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Ly=Ud.visitors.document.objects.JSONSchema.fixedFields.items;const By=class extends Ly{ObjectElement(e){const t=Ly.prototype.ObjectElement.call(this,e);return Cf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},qy=Ud.visitors.document.objects.JSONSchema.fixedFields.properties;const Uy=class extends qy{ObjectElement(e){const t=qy.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Vy=Ud.visitors.document.objects.JSONSchema.fixedFields.type;const Jy=class extends Vy{ArrayElement(e){return this.enter(e)}},Hy=Ud.visitors.JSONSchemaOrJSONReferenceVisitor;const Gy=class extends Hy{ObjectElement(e){const t=Hy.prototype.enter.call(this,e);return Cf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class zy extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new nu,this.specPath=on(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Wy=zy;class Ky extends fo.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Ky.primaryClass)}}const Yy=Ky;class Xy extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Yy,this.specPath=on(["value"])}}const Qy=Xy;class Zy extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new cm,this.specPath=on(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const ev=Zy;class tv extends fo.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(tv.primaryClass),this.classes.push("examples")}}const rv=tv;const sv=class extends Wf{constructor(e){super(e),this.element=new rv}};class nv extends fo.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(nv.primaryClass),this.classes.push("content")}}const iv=nv;const ov=class extends Ay{constructor(e){super(e),this.element=new iv}};class cv extends fo.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(cv.primaryClass)}}const av=cv;class lv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new av,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}}const uv=lv;class pv extends fo.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(pv.primaryClass)}}const hv=pv;class dv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new hv,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(If).forEach((e,t)=>{e.setMetaProperty("http-status-code",mm(t))}),t}}const mv=dv;class fv extends fo.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(fv.primaryClass),this.classes.push("parameters")}}const yv=fv;class vv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new yv,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","parameter")}),t}}const gv=vv;class bv extends fo.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(bv.primaryClass),this.classes.push("examples")}}const xv=bv;class Ev extends(Fh(Km,Em)){constructor(e){super(e),this.element=new xv,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const wv=Ev;class jv extends fo.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(jv.primaryClass)}}const Sv=jv;class Ov extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Sv,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","requestBody")}),t}}const Pv=Ov;class Av extends fo.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Av.primaryClass)}}const $v=Av;class kv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new $v,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.filter(wf).forEach((e,t)=>{e.setMetaProperty("header-name",mm(t))}),t}}const Tv=kv;class Mv extends fo.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Mv.primaryClass)}}const Cv=Mv;class Fv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Cv,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","securityScheme")}),t}}const Iv=Fv;class Rv extends fo.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Rv.primaryClass)}}const _v=Rv;class Dv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new _v,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const Nv=Dv;class Lv extends fo.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Lv.primaryClass)}}const Bv=Lv;class qv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Bv,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const Uv=qv;class Vv extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new au,this.specPath=on(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return ll(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Jv=Vv;const Hv=class extends Em{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Gv extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new uu,this.specPath=on(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const zv=Gv;class Wv extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new ou,this.specPath=on(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return dl(this.element.headers)&&this.element.headers.filter(wf).forEach((e,t)=>{e.setMetaProperty("header-name",mm(t))}),t}}const Kv=Wv;class Yv extends fo.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Yv.primaryClass)}}const Xv=Yv;class Qv extends(Fh(Km,Em)){constructor(e){super(e),this.element=new Xv,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!wf(e))return;const r=mm(t);e.setMetaProperty("headerName",r)}),t}}const Zv=Qv;class eg extends(Fh(Wm,Em)){constructor(e){super(e),this.element=new _u,this.specPath=on(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ko}ObjectElement(e){const t=Wm.prototype.ObjectElement.call(this,e);return this.element.filter(Tf).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Nl(t))}),t}}const tg=eg;class rg extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Bu,this.specPath=on(["document","objects","RequestBody"])}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return dl(this.element.contentProp)&&this.element.contentProp.filter(Uf).forEach((e,t)=>{e.setMetaProperty("media-type",mm(t))}),t}}const sg=rg;class ng extends fo.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(ng.primaryClass),this.classes.push("content")}}const ig=ng;const og=class extends Ay{constructor(e){super(e),this.element=new ig}};class cg extends(Fh(Wm,Em)){constructor(e){super(e),this.element=new Ql,this.specPath=on(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Tf).forEach((e,t)=>{e.setMetaProperty("runtime-expression",mm(t))}),t}}const ag=cg;class lg extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Uu,this.specPath=on(["document","objects","Response"])}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return dl(this.element.contentProp)&&this.element.contentProp.filter(Uf).forEach((e,t)=>{e.setMetaProperty("media-type",mm(t))}),dl(this.element.headers)&&this.element.headers.filter(wf).forEach((e,t)=>{e.setMetaProperty("header-name",mm(t))}),t}}const ug=lg;class pg extends fo.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(pg.primaryClass)}}const hg=pg;class dg extends(Fh(Km,Em)){constructor(e){super(e),this.element=new hg,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!wf(e))return;const r=mm(t);e.setMetaProperty("header-name",r)}),t}}const mg=dg;class fg extends fo.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(fg.primaryClass),this.classes.push("content")}}const yg=fg;const vg=class extends Ay{constructor(e){super(e),this.element=new yg}};class gg extends fo.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(gg.primaryClass)}}const bg=gg;class xg extends(Fh(Km,Em)){constructor(e){super(e),this.element=new bg,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const Eg=xg;function wg(e){return"[object Number]"===Object.prototype.toString.call(e)}var jg=Fr(function(e,t){if(!wg(e)||!wg(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r});const Sg=jg;function Og(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!Ss(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!Ss(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const Pg=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Og(e,!0,this)},e.prototype.has=function(e){return Og(e,!1,this)},e}();const Ag=Fr(function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new Pg,c=0;c<i;c+=1)o.add(t[c]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r});class $g extends(Fh(Mm,Wm)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Ag(e.keys(),t)],Mm.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Wm.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return rc}}const kg=$g;class Tg extends(Fh(kg,Em)){constructor(e){super(e),this.element=new Ju,this.specPathFixedFields=on(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Am(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Sg(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=kg.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(If).forEach((e,t)=>{const r=Nl(t);this.fieldPatternPredicate(mm(r))&&e.setMetaProperty("http-status-code",r)}),t}}const Mg=Tg;class Cg extends(Fh(yf,Em)){constructor(e){super(e),this.alternator=[{predicate:Am,specPath:["document","objects","Reference"]},{predicate:Ko,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=yf.prototype.enter.call(this,e);return Cf(this.element)?this.element.setMetaProperty("referenced-element","response"):If(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Fg=Cg;class Ig extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Tu,this.specPath=on(["document","objects","Operation"])}}const Rg=Ig;class _g extends fo.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(_g.primaryClass)}}const Dg=_g;const Ng=class extends Em{constructor(e){super(e),this.element=new Dg}ArrayElement(e){return this.element=this.element.concat(Nl(e)),rc}};class Lg extends fo.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Lg.primaryClass),this.classes.push("parameters")}}const Bg=Lg;class qg extends(Fh(wm,Em)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach(e=>{const t=Am(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Cf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const Ug=qg;const Vg=class extends Ug{constructor(e){super(e),this.element=new Bg}};const Jg=class extends yf{constructor(e){super(e),this.alternator=[{predicate:Am,specPath:["document","objects","Reference"]},{predicate:Ko,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=yf.prototype.enter.call(this,e);return Cf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Hg extends fo.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Hg.primaryClass)}}const Gg=Hg;class zg extends(Fh(Km,Em)){specPath;constructor(e){super(e),this.element=new Gg,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(Cf).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const Wg=zg;class Kg extends fo.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Kg.primaryClass),this.classes.push("security")}}const Yg=Kg;class Xg extends(Fh(wm,Em)){constructor(e){super(e),this.element=new Yg}ArrayElement(e){return e.forEach(e=>{const t=dl(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const Qg=Xg;class Zg extends fo.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Zg.primaryClass),this.classes.push("servers")}}const eb=Zg;const tb=class extends cf{constructor(e){super(e),this.element=new eb}};class rb extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Iu,this.specPath=on(["document","objects","PathItem"])}ObjectElement(e){const t=Mm.prototype.ObjectElement.call(this,e);return this.element.filter($f).forEach((e,t)=>{const r=Nl(t);r.content=mm(r).toUpperCase(),e.setMetaProperty("http-method",r)}),ll(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const sb=rb;const nb=class extends Em{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ib extends fo.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(ib.primaryClass),this.classes.push("servers")}}const ob=ib;const cb=class extends cf{constructor(e){super(e),this.element=new ob}};class ab extends fo.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(ab.primaryClass),this.classes.push("parameters")}}const lb=ab;const ub=class extends Ug{constructor(e){super(e),this.element=new lb}};class pb extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Zd,this.specPath=on(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const hb=pb;class db extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Su,this.specPath=on(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const mb=db;class fb extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new wu,this.specPath=on(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const yb=fb;class vb extends fo.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(vb.primaryClass)}}const gb=vb;class bb extends(Fh(Km,Em)){constructor(e){super(e),this.element=new gb,this.specPath=on(["value"])}}const xb=bb;class Eb extends fo.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Eb.primaryClass)}}const wb=Eb;class jb extends(Fh(wm,Em)){constructor(e){super(e),this.element=new wb}ArrayElement(e){return e.forEach(e=>{const t=km(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),rc}}const Sb=jb,{fixedFields:Ob}=Ud.visitors.document.objects.JSONSchema,Pb={visitors:{value:Em,document:{objects:{OpenApi:{$visitor:Fm,fixedFields:{openapi:Rm,info:{$ref:"#/visitors/document/objects/Info"},servers:cf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:cy,tags:Sb,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Nm,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:Lm}},Contact:{$visitor:qm,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Vm,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:tf,fixedFields:{url:rf,description:{$ref:"#/visitors/value"},variables:df}},ServerVariable:{$visitor:lf,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:ly,fixedFields:{schemas:uv,responses:mv,parameters:gv,examples:wv,requestBodies:Pv,headers:Tv,securitySchemes:Iv,links:Nv,callbacks:Uv}},Paths:{$visitor:tg},PathItem:{$visitor:sb,fixedFields:{$ref:nb,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:cb,parameters:ub}},Operation:{$visitor:Rg,fixedFields:{tags:Ng,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Vg,requestBody:Jg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Wg,deprecated:{$ref:"#/visitors/value"},security:Qg,servers:tb}},ExternalDocumentation:{$visitor:zv,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:yy,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:gy,example:{$ref:"#/visitors/value"},examples:sv,content:ov}},RequestBody:{$visitor:sg,fixedFields:{description:{$ref:"#/visitors/value"},content:og,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ff,fixedFields:{schema:Gf,example:{$ref:"#/visitors/value"},examples:Xf,encoding:ty}},Encoding:{$visitor:Kv,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Zv,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Mg,fixedFields:{default:Fg}},Response:{$visitor:ug,fixedFields:{description:{$ref:"#/visitors/value"},headers:mg,content:vg,links:Eg}},Callback:{$visitor:ag},Example:{$visitor:Jv,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Hv}},Link:{$visitor:Hm,fixedFields:{operationRef:Gm,operationId:zm,parameters:Zm,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:xy,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:wy,example:{$ref:"#/visitors/value"},examples:Oy,content:Ty}},Tag:{$visitor:py,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:dy,fixedFields:{$ref:my}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Cy,fixedFields:{title:Ob.title,multipleOf:Ob.multipleOf,maximum:Ob.maximum,exclusiveMaximum:Ob.exclusiveMaximum,minimum:Ob.minimum,exclusiveMinimum:Ob.exclusiveMinimum,maxLength:Ob.maxLength,minLength:Ob.minLength,pattern:Ob.pattern,maxItems:Ob.maxItems,minItems:Ob.minItems,uniqueItems:Ob.uniqueItems,maxProperties:Ob.maxProperties,minProperties:Ob.minProperties,required:Ob.required,enum:Ob.enum,type:Jy,allOf:Iy,anyOf:_y,oneOf:Ny,not:Gy,items:By,properties:Uy,additionalProperties:Gy,description:Ob.description,format:Ob.format,default:Ob.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:Wy,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Qy}},XML:{$visitor:ev,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:hb,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:mb,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:yb,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:xb}},SecurityRequirement:{$visitor:sy}},extension:{$visitor:_m}}}},Ab=e=>{if(al(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},$b={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"],...Hl},kb={namespace:e=>{const{base:t}=e;return t.register("callback",Ql),t.register("components",eu),t.register("contact",ru),t.register("discriminator",nu),t.register("encoding",ou),t.register("example",au),t.register("externalDocumentation",uu),t.register("header",hu),t.register("info",mu),t.register("license",yu),t.register("link",gu),t.register("mediaType",xu),t.register("oAuthFlow",wu),t.register("oAuthFlows",Su),t.register("openapi",Pu),t.register("openApi3_0",$u),t.register("operation",Tu),t.register("parameter",Cu),t.register("pathItem",Iu),t.register("paths",_u),t.register("reference",Nu),t.register("requestBody",Bu),t.register("response",Uu),t.register("responses",Ju),t.register("schema",Kd),t.register("securityRequirement",Xd),t.register("securityScheme",Zd),t.register("server",tm),t.register("serverVariable",sm),t.register("tag",im),t.register("xml",cm),t}},Tb=()=>{const e=(e=>{const t=new Ol;return Qi(e)&&t.use(e),t})(kb);return{predicates:{...l,isElement:al,isStringElement:ll,isArrayElement:ml,isObjectElement:dl,isMemberElement:fl,includesClasses:Sl,hasElementSourceMap:wl},namespace:e}},Mb=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,fo.e)(e),n=_l(Pb),i=new(gc(t,n))({specObj:n});return Gl(s,i),Wl(i.element,r,{toolboxCreator:Tb,visitorOptions:{keyMap:$b,nodeTypeGetter:Ab}})},Cb=e=>(t,r={})=>Mb(t,{specPath:e,...r});Ql.refract=Cb(["visitors","document","objects","Callback","$visitor"]),eu.refract=Cb(["visitors","document","objects","Components","$visitor"]),ru.refract=Cb(["visitors","document","objects","Contact","$visitor"]),au.refract=Cb(["visitors","document","objects","Example","$visitor"]),nu.refract=Cb(["visitors","document","objects","Discriminator","$visitor"]),ou.refract=Cb(["visitors","document","objects","Encoding","$visitor"]),uu.refract=Cb(["visitors","document","objects","ExternalDocumentation","$visitor"]),hu.refract=Cb(["visitors","document","objects","Header","$visitor"]),mu.refract=Cb(["visitors","document","objects","Info","$visitor"]),yu.refract=Cb(["visitors","document","objects","License","$visitor"]),gu.refract=Cb(["visitors","document","objects","Link","$visitor"]),xu.refract=Cb(["visitors","document","objects","MediaType","$visitor"]),wu.refract=Cb(["visitors","document","objects","OAuthFlow","$visitor"]),Su.refract=Cb(["visitors","document","objects","OAuthFlows","$visitor"]),Pu.refract=Cb(["visitors","document","objects","OpenApi","fixedFields","openapi"]),$u.refract=Cb(["visitors","document","objects","OpenApi","$visitor"]),Tu.refract=Cb(["visitors","document","objects","Operation","$visitor"]),Cu.refract=Cb(["visitors","document","objects","Parameter","$visitor"]),Iu.refract=Cb(["visitors","document","objects","PathItem","$visitor"]),_u.refract=Cb(["visitors","document","objects","Paths","$visitor"]),Nu.refract=Cb(["visitors","document","objects","Reference","$visitor"]),Bu.refract=Cb(["visitors","document","objects","RequestBody","$visitor"]),Uu.refract=Cb(["visitors","document","objects","Response","$visitor"]),Ju.refract=Cb(["visitors","document","objects","Responses","$visitor"]),Kd.refract=Cb(["visitors","document","objects","Schema","$visitor"]),Xd.refract=Cb(["visitors","document","objects","SecurityRequirement","$visitor"]),Zd.refract=Cb(["visitors","document","objects","SecurityScheme","$visitor"]),tm.refract=Cb(["visitors","document","objects","Server","$visitor"]),sm.refract=Cb(["visitors","document","objects","ServerVariable","$visitor"]),im.refract=Cb(["visitors","document","objects","Tag","$visitor"]),cm.refract=Cb(["visitors","document","objects","XML","$visitor"]);const Fb=class extends Ql{};const Ib=class extends eu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Rb=class extends ru{};const _b=class extends nu{};const Db=class extends ou{};const Nb=class extends au{};const Lb=class extends uu{};const Bb=class extends hu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const qb=class extends mu{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 Ub extends fo.Om{static default=new Ub("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Vb=Ub;const Jb=class extends yu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Hb=class extends gu{};const Gb=class extends xu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const zb=class extends wu{};const Wb=class extends Su{};const Kb=class extends Pu{};class Yb extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Xb=Yb;const Qb=class extends Tu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Zb=class extends Cu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ex=class extends Iu{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 tx=class extends _u{};class rx extends Nu{}Object.defineProperty(rx.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(rx.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const sx=rx;const nx=class extends Bu{};const ix=class extends Uu{};const ox=class extends Ju{};const cx=class extends Sr{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 ax extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(cx,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 lx=ax;const ux=class extends lx{};const px=class extends Sr{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 hx extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(px,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 dx=hx;const mx=class extends dx{};const fx=class extends Sr{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 yx extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(fx,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 vx=yx;const gx=class extends vx{};const bx=class extends Sr{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 xx extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(bx,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 Ex=xx;const wx=class extends Ex{};const jx=class extends Wp{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new wx("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new wx("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Sx=class extends eh{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new wx("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new wx("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new wx("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new wx("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new wx("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new wx("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}},Ox=(e,t)=>{const r=Qr(e,t);return pc(e=>{if(Qi(e)&&yc("$ref",e)&&vc(wn,"$ref",e)){const t=gc(["$ref"],e),s=wc("#/",t);return gc(s.split("/"),r)}return Qi(e)?Ox(e,r):e},e)};class Px extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ax=Px;class $x extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const kx=$x;class Tx extends fo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(an(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const Mx=Tx,Cx=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Fx=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ix=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Rx=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof fo.wE)&&t.classes.includes(e),_x=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Dx=e=>e({hasMethod:Cx,hasBasicElementProps:Fx,primitiveEq:Ix,isElementType:_x,hasClass:Rx}),Nx=Dx(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Hg||e(r)&&t(void 0,r)),Lx=Dx(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Om||e(r)&&t("string",r)),Bx=Dx(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.kT||e(r)&&t("number",r)),qx=Dx(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Os||e(r)&&t("null",r)),Ux=Dx(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.bd||e(r)&&t("boolean",r)),Vx=Dx(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),Jx=Dx(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.wE&&!(s instanceof fo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),Hx=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Pr||e(s)&&t("member",s)&&r(void 0,s)),Gx=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Ft||e(s)&&t("link",s)&&r(void 0,s)),zx=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.sI||e(s)&&t("ref",s)&&r(void 0,s)),Wx=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ax||e(s)&&t("annotation",s)&&r("array",s)),Kx=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kx||e(s)&&t("comment",s)&&r("string",s)),Yx=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mx||e(s)&&t("parseResult",s)&&r("array",s)),Xx=e=>_x("object",e)||_x("array",e)||_x("boolean",e)||_x("number",e)||_x("string",e)||_x("null",e)||_x("member",e),Qx=e=>!!Nx(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),Zx=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Jx(r)&&bo(Ws(r.toValue()),e)},eE=(e,t)=>0===e.length||bo(Ws(t.classes.toValue()),e);const tE=class extends Ex{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const rE=class extends tE{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const sE=class extends rE{};const nE=class extends rE{},iE=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof fo.KeyValuePair){const{key:t,value:n}=e,i=Nx(t)?iE(t,s):t,o=Nx(n)?iE(n,s):n,c=new fo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof fo.ot){const t=e=>iE(e,s),n=[...e].map(t),i=new fo.ot(n);return r.set(e,i),i}if(e instanceof fo.G6){const t=e=>iE(e,s),n=[...e].map(t),i=new fo.G6(n);return r.set(e,i),i}if(Nx(e)){const t=aE(e);if(r.set(e,t),e.content)if(Nx(e.content))t.content=iE(e.content,s);else if(e.content instanceof fo.KeyValuePair)t.content=iE(e.content,s);else if(Array.isArray(e.content)){const r=e=>iE(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new sE("Value provided to cloneDeep function couldn't be cloned",{value:e})};iE.safe=e=>{try{return iE(e)}catch{return e}};const oE=e=>{const{key:t,value:r}=e;return new fo.KeyValuePair(t,r)},cE=e=>{const t=new e.constructor;if(t.element=e.element,Qx(e)&&((e,t)=>{e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex})(t,e),e.meta.length>0&&(t._meta=iE(e.meta)),e.attributes.length>0&&(t._attributes=iE(e.attributes)),Nx(e.content)){const r=e.content;t.content=cE(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof fo.KeyValuePair?t.content=oE(e.content):t.content=e.content;return t},aE=e=>{if(e instanceof fo.KeyValuePair)return oE(e);if(e instanceof fo.ot)return(e=>{const t=[...e];return new fo.ot(t)})(e);if(e instanceof fo.G6)return(e=>{const t=[...e];return new fo.G6(t)})(e);if(Nx(e))return cE(e);throw new nE("Value provided to cloneShallow function couldn't be cloned",{value:e})};aE.safe=e=>{try{return aE(e)}catch{return e}};const lE=e=>Vx(e)?"ObjectElement":Jx(e)?"ArrayElement":Hx(e)?"MemberElement":Lx(e)?"StringElement":Ux(e)?"BooleanElement":Bx(e)?"NumberElement":qx(e)?"NullElement":Gx(e)?"LinkElement":zx(e)?"RefElement":void 0,uE=e=>Nx(e)?aE(e):ic(e),pE=Xr(lE,wn),hE={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const dE=(e,t,{keyMap:r=hE,...s}={})=>cc(e,t,{keyMap:r,nodeTypeGetter:lE,nodePredicate:pE,nodeCloneFn:uE,...s});dE[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=hE,...s}={})=>cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:lE,nodePredicate:pE,nodeCloneFn:uE,...s});class mE extends fo.g${constructor(){super(),this.register("annotation",Ax),this.register("comment",kx),this.register("parseResult",Mx)}}const fE=new mE,yE=fE,vE={toolboxCreator:()=>({predicates:{...u},namespace:yE}),visitorOptions:{nodeTypeGetter:lE,exposeEdits:!0}},gE=(e,t,r={})=>{if(0===t.length)return e;const s=Vc(vE,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc(c.map(rs({},"visitor")),{...i});c.forEach(Zc(["pre"],[]));const l=dE(e,a,i);return c.forEach(Zc(["post"],[])),l};gE[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Vc(vE,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc[Symbol.for("nodejs.util.promisify.custom")],l=dE[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(rs({},"visitor")),{...i});await Promise.allSettled(c.map(Zc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Zc(["post"],[]))),p};var bE=Ir(function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!hc(s)&&us(n,s)&&"object"==typeof s[n]?s[n]:Zr(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Zr(e)&&Rr(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)});const xE=bE;const EE=Ir(function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s});var wE=Ir(function(e,t,r){return xE([e],t,r)});const jE=wE;var SE=Fr(function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Zr(e)&&Rr(t))return EE(e,1,t);var r={};for(var s in t)r[s]=t[s];return delete r[e],r}(t[0],r);default:var s=t[0],n=Array.prototype.slice.call(t,1);return null==r[s]?function(e,t){if(Zr(e)&&Rr(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):jE(s,e(n,r[s]),r)}});const OE=SE;const PE=class extends Kh{constructor(e){super(e),this.element=new jx}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const AE=class extends Qh{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rc}};const $E=class extends mh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const kE=class extends qd{constructor(e){super(e),this.element=new Sx}},TE=Xr(xE(["visitors","document","objects","JSONSchema","$visitor"],PE),OE(["visitors","document","objects","JSONSchema","fixedFields","id"]),xE(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ud.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ud.visitors.JSONSchemaOrJSONReferenceVisitor),xE(["visitors","document","objects","JSONSchema","fixedFields","items"],AE),xE(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ud.visitors.JSONSchemaOrJSONReferenceVisitor),xE(["visitors","document","objects","JSONSchema","fixedFields","const"],Ud.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","examples"],$E),xE(["visitors","document","objects","LinkDescription","$visitor"],kE),xE(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ud.visitors.JSONSchemaOrJSONReferenceVisitor),OE(["visitors","document","objects","LinkDescription","fixedFields","schema"]),xE(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ud.visitors.JSONSchemaOrJSONReferenceVisitor),OE(["visitors","document","objects","LinkDescription","fixedFields","method"]),OE(["visitors","document","objects","LinkDescription","fixedFields","encType"]),xE(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ud.visitors.value))(Ud),ME={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...hE},CE=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jx||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s)),FE=Dx(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sx||e(s)&&t("linkDescription",s)&&r("object",s)),IE={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",jx),t.register("jSONReference",Yp),t.register("media",Qp),t.register("linkDescription",Sx),t}},RE=()=>{const e=(e=>{const t=new mE;return Qi(e)&&t.use(e),t})(IE);return{predicates:{...p,isStringElement:Lx},namespace:e}},_E=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=TE}={})=>{const n=(0,fo.e)(e),i=Ox(s),o=new(gc(t,i))({specObj:i});return dE(n,o),gE(o.element,r,{toolboxCreator:RE,visitorOptions:{keyMap:ME,nodeTypeGetter:Vd}})},DE=e=>(t,r={})=>_E(t,{specPath:e,...r});jx.refract=DE(["visitors","document","objects","JSONSchema","$visitor"]),Sx.refract=DE(["visitors","document","objects","LinkDescription","$visitor"]);const NE=class extends jx{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",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 not(){return this.get("not")}set not(e){this.set("not",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 media(){throw new gx('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new gx('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const LE=class extends Sx{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new gx("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new gx("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new gx("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new gx("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},BE=(e,t)=>{const r=Qr(e,t);return pc(e=>{if(Qi(e)&&yc("$ref",e)&&vc(wn,"$ref",e)){const t=gc(["$ref"],e),s=wc("#/",t);return gc(s.split("/"),r)}return Qi(e)?BE(e,r):e},e)};class qE extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const UE=qE;class VE extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const JE=VE;class HE extends fo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(an(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const GE=HE,zE=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],WE=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,KE=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),YE=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof fo.wE)&&t.classes.includes(e),XE=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,QE=e=>e({hasMethod:zE,hasBasicElementProps:WE,primitiveEq:KE,isElementType:XE,hasClass:YE}),ZE=QE(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Hg||e(r)&&t(void 0,r)),ew=QE(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Om||e(r)&&t("string",r)),tw=QE(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.kT||e(r)&&t("number",r)),rw=QE(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Os||e(r)&&t("null",r)),sw=QE(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.bd||e(r)&&t("boolean",r)),nw=QE(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),iw=QE(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.wE&&!(s instanceof fo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),ow=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Pr||e(s)&&t("member",s)&&r(void 0,s)),cw=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Ft||e(s)&&t("link",s)&&r(void 0,s)),aw=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.sI||e(s)&&t("ref",s)&&r(void 0,s)),lw=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof UE||e(s)&&t("annotation",s)&&r("array",s)),uw=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof JE||e(s)&&t("comment",s)&&r("string",s)),pw=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof GE||e(s)&&t("parseResult",s)&&r("array",s)),hw=e=>XE("object",e)||XE("array",e)||XE("boolean",e)||XE("number",e)||XE("string",e)||XE("null",e)||XE("member",e),dw=e=>!!ZE(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),mw=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!iw(r)&&bo(Ws(r.toValue()),e)},fw=(e,t)=>0===e.length||bo(Ws(t.classes.toValue()),e);const yw=class extends vx{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const vw=class extends yw{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const gw=class extends vw{};const bw=class extends vw{},xw=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof fo.KeyValuePair){const{key:t,value:n}=e,i=ZE(t)?xw(t,s):t,o=ZE(n)?xw(n,s):n,c=new fo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof fo.ot){const t=e=>xw(e,s),n=[...e].map(t),i=new fo.ot(n);return r.set(e,i),i}if(e instanceof fo.G6){const t=e=>xw(e,s),n=[...e].map(t),i=new fo.G6(n);return r.set(e,i),i}if(ZE(e)){const t=jw(e);if(r.set(e,t),e.content)if(ZE(e.content))t.content=xw(e.content,s);else if(e.content instanceof fo.KeyValuePair)t.content=xw(e.content,s);else if(Array.isArray(e.content)){const r=e=>xw(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new gw("Value provided to cloneDeep function couldn't be cloned",{value:e})};xw.safe=e=>{try{return xw(e)}catch{return e}};const Ew=e=>{const{key:t,value:r}=e;return new fo.KeyValuePair(t,r)},ww=e=>{const t=new e.constructor;if(t.element=e.element,dw(e)&&((e,t)=>{e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex})(t,e),e.meta.length>0&&(t._meta=xw(e.meta)),e.attributes.length>0&&(t._attributes=xw(e.attributes)),ZE(e.content)){const r=e.content;t.content=ww(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof fo.KeyValuePair?t.content=Ew(e.content):t.content=e.content;return t},jw=e=>{if(e instanceof fo.KeyValuePair)return Ew(e);if(e instanceof fo.ot)return(e=>{const t=[...e];return new fo.ot(t)})(e);if(e instanceof fo.G6)return(e=>{const t=[...e];return new fo.G6(t)})(e);if(ZE(e))return ww(e);throw new bw("Value provided to cloneShallow function couldn't be cloned",{value:e})};jw.safe=e=>{try{return jw(e)}catch{return e}};const Sw=e=>nw(e)?"ObjectElement":iw(e)?"ArrayElement":ow(e)?"MemberElement":ew(e)?"StringElement":sw(e)?"BooleanElement":tw(e)?"NumberElement":rw(e)?"NullElement":cw(e)?"LinkElement":aw(e)?"RefElement":void 0,Ow=e=>ZE(e)?jw(e):ic(e),Pw=Xr(Sw,wn),Aw={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const $w=(e,t,{keyMap:r=Aw,...s}={})=>cc(e,t,{keyMap:r,nodeTypeGetter:Sw,nodePredicate:Pw,nodeCloneFn:Ow,...s});$w[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Aw,...s}={})=>cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Sw,nodePredicate:Pw,nodeCloneFn:Ow,...s});class kw extends fo.g${constructor(){super(),this.register("annotation",UE),this.register("comment",JE),this.register("parseResult",GE)}}const Tw=new kw,Mw=Tw,Cw={toolboxCreator:()=>({predicates:{...h},namespace:Mw}),visitorOptions:{nodeTypeGetter:Sw,exposeEdits:!0}},Fw=(e,t,r={})=>{if(0===t.length)return e;const s=Vc(Cw,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc(c.map(rs({},"visitor")),{...i});c.forEach(Zc(["pre"],[]));const l=$w(e,a,i);return c.forEach(Zc(["post"],[])),l};Fw[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Vc(Cw,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc[Symbol.for("nodejs.util.promisify.custom")],l=$w[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(rs({},"visitor")),{...i});await Promise.allSettled(c.map(Zc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Zc(["post"],[]))),p};const Iw=class extends PE{constructor(e){super(e),this.element=new NE}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const Rw=class extends kE{constructor(e){super(e),this.element=new LE}},_w=Xr(xE(["visitors","document","objects","JSONSchema","$visitor"],Iw),xE(["visitors","document","objects","JSONSchema","fixedFields","$comment"],TE.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","if"],TE.visitors.JSONSchemaOrJSONReferenceVisitor),xE(["visitors","document","objects","JSONSchema","fixedFields","then"],TE.visitors.JSONSchemaOrJSONReferenceVisitor),xE(["visitors","document","objects","JSONSchema","fixedFields","else"],TE.visitors.JSONSchemaOrJSONReferenceVisitor),OE(["visitors","document","objects","JSONSchema","fixedFields","media"]),xE(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],TE.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],TE.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],TE.visitors.value),xE(["visitors","document","objects","LinkDescription","$visitor"],Rw),xE(["visitors","document","objects","LinkDescription","fixedFields","anchor"],TE.visitors.value),xE(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],TE.visitors.value),OE(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),xE(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],TE.visitors.value),xE(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],TE.visitors.value),xE(["visitors","document","objects","LinkDescription","fixedFields","description"],TE.visitors.value),xE(["visitors","document","objects","LinkDescription","fixedFields","$comment"],TE.visitors.value),xE(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],TE.visitors.JSONSchemaOrJSONReferenceVisitor),OE(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),xE(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],TE.visitors.value))(TE),Dw={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Aw},Nw=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof NE||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s)),Lw=QE(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof LE||e(s)&&t("linkDescription",s)&&r("object",s)),Bw={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",NE),t.register("jSONReference",Yp),t.register("linkDescription",LE),t}},qw=()=>{const e=(e=>{const t=new kw;return Qi(e)&&t.use(e),t})(Bw);return{predicates:{...d,isStringElement:ew},namespace:e}},Uw=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=_w}={})=>{const n=(0,fo.e)(e),i=BE(s),o=new(gc(t,i))({specObj:i});return $w(n,o),Fw(o.element,r,{toolboxCreator:qw,visitorOptions:{keyMap:Dw,nodeTypeGetter:Vd}})},Vw=e=>(t,r={})=>Uw(t,{specPath:e,...r});NE.refract=Vw(["visitors","document","objects","JSONSchema","$visitor"]),LE.refract=Vw(["visitors","document","objects","LinkDescription","$visitor"]);const Jw=class extends NE{constructor(e,t,r){super(e,t,r),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",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 definitions(){throw new mx("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new mx("definitions keyword from Validation vocabulary has been renamed to $defs.")}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 dependencies(){throw new mx("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new mx("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}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 additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",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 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 dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const Hw=class extends LE{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},Gw=(e,t)=>{const r=Qr(e,t);return pc(e=>{if(Qi(e)&&yc("$ref",e)&&vc(wn,"$ref",e)){const t=gc(["$ref"],e),s=wc("#/",t);return gc(s.split("/"),r)}return Qi(e)?Gw(e,r):e},e)};class zw extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ww=zw;class Kw extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Yw=Kw;class Xw extends fo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(an(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const Qw=Xw,Zw=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],ej=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,tj=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),rj=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof fo.wE)&&t.classes.includes(e),sj=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,nj=e=>e({hasMethod:Zw,hasBasicElementProps:ej,primitiveEq:tj,isElementType:sj,hasClass:rj}),ij=nj(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Hg||e(r)&&t(void 0,r)),oj=nj(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Om||e(r)&&t("string",r)),cj=nj(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.kT||e(r)&&t("number",r)),aj=nj(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Os||e(r)&&t("null",r)),lj=nj(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.bd||e(r)&&t("boolean",r)),uj=nj(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),pj=nj(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.wE&&!(s instanceof fo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),hj=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Pr||e(s)&&t("member",s)&&r(void 0,s)),dj=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Ft||e(s)&&t("link",s)&&r(void 0,s)),mj=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.sI||e(s)&&t("ref",s)&&r(void 0,s)),fj=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ww||e(s)&&t("annotation",s)&&r("array",s)),yj=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yw||e(s)&&t("comment",s)&&r("string",s)),vj=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qw||e(s)&&t("parseResult",s)&&r("array",s)),gj=e=>sj("object",e)||sj("array",e)||sj("boolean",e)||sj("number",e)||sj("string",e)||sj("null",e)||sj("member",e),bj=e=>!!ij(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),xj=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!pj(r)&&bo(Ws(r.toValue()),e)},Ej=(e,t)=>0===e.length||bo(Ws(t.classes.toValue()),e);const wj=class extends dx{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const jj=class extends wj{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Sj=class extends jj{};const Oj=class extends jj{},Pj=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof fo.KeyValuePair){const{key:t,value:n}=e,i=ij(t)?Pj(t,s):t,o=ij(n)?Pj(n,s):n,c=new fo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof fo.ot){const t=e=>Pj(e,s),n=[...e].map(t),i=new fo.ot(n);return r.set(e,i),i}if(e instanceof fo.G6){const t=e=>Pj(e,s),n=[...e].map(t),i=new fo.G6(n);return r.set(e,i),i}if(ij(e)){const t=kj(e);if(r.set(e,t),e.content)if(ij(e.content))t.content=Pj(e.content,s);else if(e.content instanceof fo.KeyValuePair)t.content=Pj(e.content,s);else if(Array.isArray(e.content)){const r=e=>Pj(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Sj("Value provided to cloneDeep function couldn't be cloned",{value:e})};Pj.safe=e=>{try{return Pj(e)}catch{return e}};const Aj=e=>{const{key:t,value:r}=e;return new fo.KeyValuePair(t,r)},$j=e=>{const t=new e.constructor;if(t.element=e.element,bj(e)&&((e,t)=>{e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex})(t,e),e.meta.length>0&&(t._meta=Pj(e.meta)),e.attributes.length>0&&(t._attributes=Pj(e.attributes)),ij(e.content)){const r=e.content;t.content=$j(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof fo.KeyValuePair?t.content=Aj(e.content):t.content=e.content;return t},kj=e=>{if(e instanceof fo.KeyValuePair)return Aj(e);if(e instanceof fo.ot)return(e=>{const t=[...e];return new fo.ot(t)})(e);if(e instanceof fo.G6)return(e=>{const t=[...e];return new fo.G6(t)})(e);if(ij(e))return $j(e);throw new Oj("Value provided to cloneShallow function couldn't be cloned",{value:e})};kj.safe=e=>{try{return kj(e)}catch{return e}};const Tj=e=>uj(e)?"ObjectElement":pj(e)?"ArrayElement":hj(e)?"MemberElement":oj(e)?"StringElement":lj(e)?"BooleanElement":cj(e)?"NumberElement":aj(e)?"NullElement":dj(e)?"LinkElement":mj(e)?"RefElement":void 0,Mj=e=>ij(e)?kj(e):ic(e),Cj=Xr(Tj,wn),Fj={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Ij=(e,t,{keyMap:r=Fj,...s}={})=>cc(e,t,{keyMap:r,nodeTypeGetter:Tj,nodePredicate:Cj,nodeCloneFn:Mj,...s});Ij[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Fj,...s}={})=>cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Tj,nodePredicate:Cj,nodeCloneFn:Mj,...s});class Rj extends fo.g${constructor(){super(),this.register("annotation",Ww),this.register("comment",Yw),this.register("parseResult",Qw)}}const _j=new Rj,Dj=_j,Nj=()=>({predicates:{...m},namespace:Dj}),Lj={toolboxCreator:Nj,visitorOptions:{nodeTypeGetter:Tj,exposeEdits:!0}},Bj=(e,t,r={})=>{if(0===t.length)return e;const s=Vc(Lj,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc(c.map(rs({},"visitor")),{...i});c.forEach(Zc(["pre"],[]));const l=Ij(e,a,i);return c.forEach(Zc(["post"],[])),l};Bj[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Vc(Lj,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc[Symbol.for("nodejs.util.promisify.custom")],l=Ij[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(rs({},"visitor")),{...i});await Promise.allSettled(c.map(Zc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Zc(["post"],[]))),p};const qj=class extends Iw{constructor(e){super(e),this.element=new Jw}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Uh.prototype.ObjectElement.call(this,e);return oj(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Uj=class extends mh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Vj=class extends mh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},Jj=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return ij(e)&&(e.meta.length>0&&(s.meta=Pj(e.meta)),e.attributes.length>0&&(s.attributes=Pj(e.attributes))),Bj(s,r,{toolboxCreator:Nj,visitorOptions:{nodeTypeGetter:Tj}})},Hj=e=>(t,r={})=>Jj(t,{...r,Type:e});fo.Sh.refract=Hj(fo.Sh),fo.wE.refract=Hj(fo.wE),fo.Om.refract=Hj(fo.Om),fo.bd.refract=Hj(fo.bd),fo.Os.refract=Hj(fo.Os),fo.kT.refract=Hj(fo.kT),fo.Ft.refract=Hj(fo.Ft),fo.sI.refract=Hj(fo.sI),Ww.refract=Hj(Ww),Yw.refract=Hj(Yw),Qw.refract=Hj(Qw);class Gj extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=on(["document","objects","JSONSchema"])}}const zj=Gj;class Wj extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rc}}const Kj=Wj;class Yj extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rc}}const Xj=Yj;class Qj extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rc}}const Zj=Qj;class eS extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=on(["document","objects","JSONSchema"])}}const tS=eS;class rS extends(Fh(qh,Vh,mh)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rc}ArrayElement(e){return this.element=new fo.wE,this.element.classes.push("json-schema-items"),e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rc}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rc}}const sS=rS;class nS extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=on(["document","objects","JSONSchema"])}}const iS=nS;class oS extends(Fh(td,Vh,mh)){constructor(e){super(e),this.element=new fo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=on(["document","objects","JSONSchema"])}}const cS=oS;const aS=class extends mh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const lS=class extends Rw{constructor(e){super(e),this.element=new Hw}},uS=Xr(xE(["visitors","document","objects","JSONSchema","$visitor"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Uj),xE(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],_w.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],_w.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],_w.visitors.value),OE(["visitors","document","objects","JSONReference","$visitor"]),xE(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Vj),OE(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),xE(["visitors","document","objects","JSONSchema","fixedFields","$defs"],zj),xE(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Kj),xE(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Xj),xE(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Zj),xE(["visitors","document","objects","JSONSchema","fixedFields","not"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","if"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","then"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","else"],qj),OE(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),xE(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],tS),xE(["visitors","document","objects","JSONSchema","fixedFields","items"],sS),xE(["visitors","document","objects","JSONSchema","fixedFields","contains"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","properties"],iS),xE(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],cS),xE(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],qj),xE(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],_w.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","minContains"],_w.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],aS),xE(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],_w.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],qj),xE(["visitors","document","objects","LinkDescription","$visitor"],lS),xE(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],qj),xE(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qj),xE(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],qj),xE(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qj))(_w),pS={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Fj},hS=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jw||e(s)&&t("JSONSchema201909",s)&&r("object",s)),dS=nj(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hw||e(s)&&t("linkDescription",s)&&r("object",s)),mS={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Jw),t.register("linkDescription",Hw),t}},fS=()=>{const e=(e=>{const t=new Rj;return Qi(e)&&t.use(e),t})(mS);return{predicates:{...f,isStringElement:oj},namespace:e}},yS=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=uS}={})=>{const n=(0,fo.e)(e),i=Gw(s),o=new(gc(t,i))({specObj:i});return Ij(n,o),Bj(o.element,r,{toolboxCreator:fS,visitorOptions:{keyMap:pS,nodeTypeGetter:Vd}})},vS=e=>(t,r={})=>yS(t,{specPath:e,...r});Jw.refract=vS(["visitors","document","objects","JSONSchema","$visitor"]),Hw.refract=vS(["visitors","document","objects","LinkDescription","$visitor"]);const gS=class extends Jw{constructor(e,t,r){super(e,t,r),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new ux("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new ux("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new ux("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new ux("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const bS=class extends Hw{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},xS=(e,t)=>{const r=Qr(e,t);return pc(e=>{if(Qi(e)&&yc("$ref",e)&&vc(wn,"$ref",e)){const t=gc(["$ref"],e),s=wc("#/",t);return gc(s.split("/"),r)}return Qi(e)?xS(e,r):e},e)};class ES extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const wS=ES;class jS extends fo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const SS=jS;class OS extends fo.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>"annotation"===e.element)}get warnings(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>"annotation"===e.element&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>"annotation"===e.element).isEmpty}replaceResult(e){const{result:t}=this;if(an(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const PS=OS,AS=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],$S=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,kS=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),TS=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof fo.wE)&&t.classes.includes(e),MS=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,CS=e=>e({hasMethod:AS,hasBasicElementProps:$S,primitiveEq:kS,isElementType:MS,hasClass:TS}),FS=CS(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Hg||e(r)&&t(void 0,r)),IS=CS(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Om||e(r)&&t("string",r)),RS=CS(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.kT||e(r)&&t("number",r)),_S=CS(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.Os||e(r)&&t("null",r)),DS=CS(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof fo.bd||e(r)&&t("boolean",r)),NS=CS(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),LS=CS(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof fo.wE&&!(s instanceof fo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),BS=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Pr||e(s)&&t("member",s)&&r(void 0,s)),qS=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.Ft||e(s)&&t("link",s)&&r(void 0,s)),US=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo.sI||e(s)&&t("ref",s)&&r(void 0,s)),VS=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wS||e(s)&&t("annotation",s)&&r("array",s)),JS=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof SS||e(s)&&t("comment",s)&&r("string",s)),HS=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof PS||e(s)&&t("parseResult",s)&&r("array",s)),GS=e=>MS("object",e)||MS("array",e)||MS("boolean",e)||MS("number",e)||MS("string",e)||MS("null",e)||MS("member",e),zS=e=>!!FS(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),WS=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!LS(r)&&bo(Ws(r.toValue()),e)},KS=(e,t)=>0===e.length||bo(Ws(t.classes.toValue()),e);const YS=class extends lx{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const XS=class extends YS{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const QS=class extends XS{};const ZS=class extends XS{},eO=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof fo.KeyValuePair){const{key:t,value:n}=e,i=FS(t)?eO(t,s):t,o=FS(n)?eO(n,s):n,c=new fo.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof fo.ot){const t=e=>eO(e,s),n=[...e].map(t),i=new fo.ot(n);return r.set(e,i),i}if(e instanceof fo.G6){const t=e=>eO(e,s),n=[...e].map(t),i=new fo.G6(n);return r.set(e,i),i}if(FS(e)){const t=sO(e);if(r.set(e,t),e.content)if(FS(e.content))t.content=eO(e.content,s);else if(e.content instanceof fo.KeyValuePair)t.content=eO(e.content,s);else if(Array.isArray(e.content)){const r=e=>eO(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new QS("Value provided to cloneDeep function couldn't be cloned",{value:e})};eO.safe=e=>{try{return eO(e)}catch{return e}};const tO=e=>{const{key:t,value:r}=e;return new fo.KeyValuePair(t,r)},rO=e=>{const t=new e.constructor;if(t.element=e.element,zS(e)&&((e,t)=>{e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex})(t,e),e.meta.length>0&&(t._meta=eO(e.meta)),e.attributes.length>0&&(t._attributes=eO(e.attributes)),FS(e.content)){const r=e.content;t.content=rO(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof fo.KeyValuePair?t.content=tO(e.content):t.content=e.content;return t},sO=e=>{if(e instanceof fo.KeyValuePair)return tO(e);if(e instanceof fo.ot)return(e=>{const t=[...e];return new fo.ot(t)})(e);if(e instanceof fo.G6)return(e=>{const t=[...e];return new fo.G6(t)})(e);if(FS(e))return rO(e);throw new ZS("Value provided to cloneShallow function couldn't be cloned",{value:e})};sO.safe=e=>{try{return sO(e)}catch{return e}};const nO=e=>NS(e)?"ObjectElement":LS(e)?"ArrayElement":BS(e)?"MemberElement":IS(e)?"StringElement":DS(e)?"BooleanElement":RS(e)?"NumberElement":_S(e)?"NullElement":qS(e)?"LinkElement":US(e)?"RefElement":void 0,iO=e=>FS(e)?sO(e):ic(e),oO=Xr(nO,wn),cO={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const aO=(e,t,{keyMap:r=cO,...s}={})=>cc(e,t,{keyMap:r,nodeTypeGetter:nO,nodePredicate:oO,nodeCloneFn:iO,...s});aO[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=cO,...s}={})=>cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:nO,nodePredicate:oO,nodeCloneFn:iO,...s});class lO extends fo.g${constructor(){super(),this.register("annotation",wS),this.register("comment",SS),this.register("parseResult",PS)}}const uO=new lO,pO=uO,hO=()=>({predicates:{...y},namespace:pO}),dO={toolboxCreator:hO,visitorOptions:{nodeTypeGetter:nO,exposeEdits:!0}},mO=(e,t,r={})=>{if(0===t.length)return e;const s=Vc(dO,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc(c.map(rs({},"visitor")),{...i});c.forEach(Zc(["pre"],[]));const l=aO(e,a,i);return c.forEach(Zc(["post"],[])),l};mO[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Vc(dO,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=oc[Symbol.for("nodejs.util.promisify.custom")],l=aO[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(rs({},"visitor")),{...i});await Promise.allSettled(c.map(Zc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(Zc(["post"],[]))),p};const fO=class extends qj{constructor(e){super(e),this.element=new gS}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},yO=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return FS(e)&&(e.meta.length>0&&(s.meta=eO(e.meta)),e.attributes.length>0&&(s.attributes=eO(e.attributes))),mO(s,r,{toolboxCreator:hO,visitorOptions:{nodeTypeGetter:nO}})},vO=e=>(t,r={})=>yO(t,{...r,Type:e});fo.Sh.refract=vO(fo.Sh),fo.wE.refract=vO(fo.wE),fo.Om.refract=vO(fo.Om),fo.bd.refract=vO(fo.bd),fo.Os.refract=vO(fo.Os),fo.kT.refract=vO(fo.kT),fo.Ft.refract=vO(fo.Ft),fo.sI.refract=vO(fo.sI),wS.refract=vO(wS),SS.refract=vO(SS),PS.refract=vO(PS);class gO extends(Fh(qh,Vh,mh)){constructor(e){super(e),this.element=new fo.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),rc}}const bO=gO;const xO=class extends lS{constructor(e){super(e),this.element=new bS}},EO=Xr(xE(["visitors","document","objects","JSONSchema","$visitor"],fO),OE(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),xE(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],uS.visitors.value),OE(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),xE(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],uS.visitors.value),xE(["visitors","document","objects","JSONSchema","fixedFields","not"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","if"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","then"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","else"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],bO),xE(["visitors","document","objects","JSONSchema","fixedFields","items"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","contains"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],fO),OE(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),xE(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],fO),xE(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],fO),xE(["visitors","document","objects","LinkDescription","$visitor"],xO),xE(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],fO),xE(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],fO),xE(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],fO),xE(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],fO))(uS),wO={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...cO},jO=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gS||e(s)&&t("JSONSchema202012",s)&&r("object",s)),SO=CS(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bS||e(s)&&t("linkDescription",s)&&r("object",s)),OO={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",gS),t.register("linkDescription",bS),t}},PO=()=>{const e=(e=>{const t=new lO;return Qi(e)&&t.use(e),t})(OO);return{predicates:{...v,isStringElement:IS},namespace:e}},AO=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=EO}={})=>{const n=(0,fo.e)(e),i=xS(s),o=new(gc(t,i))({specObj:i});return aO(n,o),mO(o.element,r,{toolboxCreator:PO,visitorOptions:{keyMap:wO,nodeTypeGetter:Vd}})},$O=e=>(t,r={})=>AO(t,{specPath:e,...r});gS.refract=$O(["visitors","document","objects","JSONSchema","$visitor"]),bS.refract=$O(["visitors","document","objects","LinkDescription","$visitor"]);const kO=class extends gS{constructor(e,t,r){super(e,t,r),this.element="schema"}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 TO=class extends Xd{};const MO=class extends Zd{};const CO=class extends tm{};const FO=class extends sm{};const IO=class extends im{};const RO=class extends cm{};class _O extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new Xb,this.specPath=on(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Mm.prototype.ObjectElement.call(this,e)}}const DO=_O,NO=Pb.visitors.document.objects.Info.$visitor;const LO=class extends NO{constructor(e){super(e),this.element=new qb}},BO=Pb.visitors.document.objects.Contact.$visitor;const qO=class extends BO{constructor(e){super(e),this.element=new Rb}},UO=Pb.visitors.document.objects.License.$visitor;const VO=class extends UO{constructor(e){super(e),this.element=new Jb}},JO=Pb.visitors.document.objects.Link.$visitor;const HO=class extends JO{constructor(e){super(e),this.element=new Hb}};class GO extends(Fh(wm,Em)){StringElement(e){const t=new Vb(Bc(e));return this.copyMetaAndAttributes(e,t),this.element=t,rc}}const zO=GO,WO=Pb.visitors.document.objects.Server.$visitor;const KO=class extends WO{constructor(e){super(e),this.element=new CO}},YO=Pb.visitors.document.objects.ServerVariable.$visitor;const XO=class extends YO{constructor(e){super(e),this.element=new FO}},QO=Pb.visitors.document.objects.MediaType.$visitor;const ZO=class extends QO{constructor(e){super(e),this.element=new Gb}},eP=Pb.visitors.document.objects.SecurityRequirement.$visitor;const tP=class extends eP{constructor(e){super(e),this.element=new TO}},rP=Pb.visitors.document.objects.Components.$visitor;const sP=class extends rP{constructor(e){super(e),this.element=new Ib}},nP=Pb.visitors.document.objects.Tag.$visitor;const iP=class extends nP{constructor(e){super(e),this.element=new IO}},oP=Pb.visitors.document.objects.Reference.$visitor;const cP=class extends oP{constructor(e){super(e),this.element=new sx}},aP=Pb.visitors.document.objects.Parameter.$visitor;const lP=class extends aP{constructor(e){super(e),this.element=new Zb}},uP=Pb.visitors.document.objects.Header.$visitor;const pP=class extends uP{constructor(e){super(e),this.element=new Bb}},hP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fb||e(s)&&t("callback",s)&&r("object",s)),dP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ib||e(s)&&t("components",s)&&r("object",s)),mP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rb||e(s)&&t("contact",s)&&r("object",s)),fP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nb||e(s)&&t("example",s)&&r("object",s)),yP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lb||e(s)&&t("externalDocumentation",s)&&r("object",s)),vP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bb||e(s)&&t("header",s)&&r("object",s)),gP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qb||e(s)&&t("info",s)&&r("object",s)),bP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vb||e(s)&&t("jsonSchemaDialect",s)&&r("string",s)),xP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jb||e(s)&&t("license",s)&&r("object",s)),EP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hb||e(s)&&t("link",s)&&r("object",s)),wP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kb||e(s)&&t("openapi",s)&&r("string",s)),jP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Xb||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n)),SP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qb||e(s)&&t("operation",s)&&r("object",s)),OP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zb||e(s)&&t("parameter",s)&&r("object",s)),PP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ex||e(s)&&t("pathItem",s)&&r("object",s)),AP=e=>{if(!PP(e))return!1;if(!Fo(e.$ref))return!1;const t=Bc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},$P=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tx||e(s)&&t("paths",s)&&r("object",s)),kP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sx||e(s)&&t("reference",s)&&r("object",s)),TP=e=>{if(!kP(e))return!1;if(!Fo(e.$ref))return!1;const t=Bc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},MP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nx||e(s)&&t("requestBody",s)&&r("object",s)),CP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ix||e(s)&&t("response",s)&&r("object",s)),FP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ox||e(s)&&t("responses",s)&&r("object",s)),IP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kO||e(s)&&t("schema",s)&&r("object",s)),RP=e=>_o(e)&&e.classes.includes("boolean-json-schema"),_P=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof TO||e(s)&&t("securityRequirement",s)&&r("object",s)),DP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof MO||e(s)&&t("securityScheme",s)&&r("object",s)),NP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof CO||e(s)&&t("server",s)&&r("object",s)),LP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof FO||e(s)&&t("serverVariable",s)&&r("object",s)),BP=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gb||e(s)&&t("mediaType",s)&&r("object",s));class qP extends(Fh(Mm,Vh,Em)){constructor(e){super(e),this.element=new kO,this.specPath=on(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Vb.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Mm.prototype.ObjectElement.call(this,e);return Fo(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return fO.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&bP(this.openApiSemanticElement.jsonSchemaDialect)?Bc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Fo(this.openApiGenericElement.get("jsonSchemaDialect"))?Bc(this.openApiGenericElement.get("jsonSchemaDialect")):Bc(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return fO.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return fO.prototype.handleSchemaIdentifier.call(this,e)}}const UP=qP;const VP=class extends zj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const JP=class extends Kj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const HP=class extends Xj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const GP=class extends Zj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const zP=class extends tS{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const WP=class extends bO{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const KP=class extends iS{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const YP=class extends cS{constructor(e){super(e),this.passingOptionsNames.push("parent")}},XP=Pb.visitors.document.objects.Discriminator.$visitor;const QP=class extends XP{constructor(e){super(e),this.element=new _b,this.canSupportSpecificationExtensions=!0}},ZP=Pb.visitors.document.objects.XML.$visitor;const eA=class extends ZP{constructor(e){super(e),this.element=new RO}};class tA extends(Fh(Km,Em)){constructor(e){super(e),this.element=new av,this.specPath=on(["document","objects","Schema"])}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(IP).forEach((e,t)=>{e.setMetaProperty("schemaName",Bc(t))}),t}}const rA=tA;class sA extends fo.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(sA.primaryClass)}}const nA=sA;class iA extends(Fh(Km,Em)){constructor(e){super(e),this.element=new nA,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(kP).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}}const oA=iA,cA=Pb.visitors.document.objects.Example.$visitor;const aA=class extends cA{constructor(e){super(e),this.element=new Nb}},lA=Pb.visitors.document.objects.ExternalDocumentation.$visitor;const uA=class extends lA{constructor(e){super(e),this.element=new Lb}},pA=Pb.visitors.document.objects.Encoding.$visitor;const hA=class extends pA{constructor(e){super(e),this.element=new Db}},dA=Pb.visitors.document.objects.Paths.$visitor;const mA=class extends dA{constructor(e){super(e),this.element=new tx}},fA=Pb.visitors.document.objects.RequestBody.$visitor;const yA=class extends fA{constructor(e){super(e),this.element=new nx}},vA=Pb.visitors.document.objects.Callback.$visitor;const gA=class extends vA{constructor(e){super(e),this.element=new Fb,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=vA.prototype.ObjectElement.call(this,e);return this.element.filter(kP).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}},bA=Pb.visitors.document.objects.Response.$visitor;const xA=class extends bA{constructor(e){super(e),this.element=new ix}},EA=Pb.visitors.document.objects.Responses.$visitor;const wA=class extends EA{constructor(e){super(e),this.element=new ox}},jA=Pb.visitors.document.objects.Operation.$visitor;const SA=class extends jA{constructor(e){super(e),this.element=new Qb}},OA=Pb.visitors.document.objects.PathItem.$visitor;const PA=class extends OA{constructor(e){super(e),this.element=new ex}},AA=Pb.visitors.document.objects.SecurityScheme.$visitor;const $A=class extends AA{constructor(e){super(e),this.element=new MO}},kA=Pb.visitors.document.objects.OAuthFlows.$visitor;const TA=class extends kA{constructor(e){super(e),this.element=new Wb}},MA=Pb.visitors.document.objects.OAuthFlow.$visitor;const CA=class extends MA{constructor(e){super(e),this.element=new zb}};class FA extends fo.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(FA.primaryClass)}}const IA=FA;class RA extends(Fh(Km,Em)){constructor(e){super(e),this.element=new IA,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(kP).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),this.element.filter(PP).forEach((e,t)=>{e.setMetaProperty("webhook-name",Bc(t))}),t}}const _A=RA,{JSONSchema:DA,LinkDescription:NA}=EO.visitors.document.objects,LA={visitors:{value:Pb.visitors.value,document:{objects:{OpenApi:{$visitor:DO,fixedFields:{openapi:Pb.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:zO,servers:Pb.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:_A,components:{$ref:"#/visitors/document/objects/Components"},security:Pb.visitors.document.objects.OpenApi.fixedFields.security,tags:Pb.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:LO,fixedFields:{title:Pb.visitors.document.objects.Info.fixedFields.title,description:Pb.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Pb.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Pb.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:qO,fixedFields:{name:Pb.visitors.document.objects.Contact.fixedFields.name,url:Pb.visitors.document.objects.Contact.fixedFields.url,email:Pb.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:VO,fixedFields:{name:Pb.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Pb.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:KO,fixedFields:{url:Pb.visitors.document.objects.Server.fixedFields.url,description:Pb.visitors.document.objects.Server.fixedFields.description,variables:Pb.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:XO,fixedFields:{enum:Pb.visitors.document.objects.ServerVariable.fixedFields.enum,default:Pb.visitors.document.objects.ServerVariable.fixedFields.default,description:Pb.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:sP,fixedFields:{schemas:rA,responses:Pb.visitors.document.objects.Components.fixedFields.responses,parameters:Pb.visitors.document.objects.Components.fixedFields.parameters,examples:Pb.visitors.document.objects.Components.fixedFields.examples,requestBodies:Pb.visitors.document.objects.Components.fixedFields.requestBodies,headers:Pb.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Pb.visitors.document.objects.Components.fixedFields.securitySchemes,links:Pb.visitors.document.objects.Components.fixedFields.links,callbacks:Pb.visitors.document.objects.Components.fixedFields.callbacks,pathItems:oA}},Paths:{$visitor:mA},PathItem:{$visitor:PA,fixedFields:{$ref:Pb.visitors.document.objects.PathItem.fixedFields.$ref,summary:Pb.visitors.document.objects.PathItem.fixedFields.summary,description:Pb.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:Pb.visitors.document.objects.PathItem.fixedFields.servers,parameters:Pb.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:SA,fixedFields:{tags:Pb.visitors.document.objects.Operation.fixedFields.tags,summary:Pb.visitors.document.objects.Operation.fixedFields.summary,description:Pb.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Pb.visitors.document.objects.Operation.fixedFields.operationId,parameters:Pb.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Pb.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Pb.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Pb.visitors.document.objects.Operation.fixedFields.deprecated,security:Pb.visitors.document.objects.Operation.fixedFields.security,servers:Pb.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:uA,fixedFields:{description:Pb.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Pb.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:lP,fixedFields:{name:Pb.visitors.document.objects.Parameter.fixedFields.name,in:Pb.visitors.document.objects.Parameter.fixedFields.in,description:Pb.visitors.document.objects.Parameter.fixedFields.description,required:Pb.visitors.document.objects.Parameter.fixedFields.required,deprecated:Pb.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Pb.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Pb.visitors.document.objects.Parameter.fixedFields.style,explode:Pb.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Pb.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Pb.visitors.document.objects.Parameter.fixedFields.example,examples:Pb.visitors.document.objects.Parameter.fixedFields.examples,content:Pb.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:yA,fixedFields:{description:Pb.visitors.document.objects.RequestBody.fixedFields.description,content:Pb.visitors.document.objects.RequestBody.fixedFields.content,required:Pb.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:ZO,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Pb.visitors.document.objects.MediaType.fixedFields.example,examples:Pb.visitors.document.objects.MediaType.fixedFields.examples,encoding:Pb.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:hA,fixedFields:{contentType:Pb.visitors.document.objects.Encoding.fixedFields.contentType,headers:Pb.visitors.document.objects.Encoding.fixedFields.headers,style:Pb.visitors.document.objects.Encoding.fixedFields.style,explode:Pb.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Pb.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:wA,fixedFields:{default:Pb.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:xA,fixedFields:{description:Pb.visitors.document.objects.Response.fixedFields.description,headers:Pb.visitors.document.objects.Response.fixedFields.headers,content:Pb.visitors.document.objects.Response.fixedFields.content,links:Pb.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:gA},Example:{$visitor:aA,fixedFields:{summary:Pb.visitors.document.objects.Example.fixedFields.summary,description:Pb.visitors.document.objects.Example.fixedFields.description,value:Pb.visitors.document.objects.Example.fixedFields.value,externalValue:Pb.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:HO,fixedFields:{operationRef:Pb.visitors.document.objects.Link.fixedFields.operationRef,operationId:Pb.visitors.document.objects.Link.fixedFields.operationId,parameters:Pb.visitors.document.objects.Link.fixedFields.parameters,requestBody:Pb.visitors.document.objects.Link.fixedFields.requestBody,description:Pb.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pP,fixedFields:{description:Pb.visitors.document.objects.Header.fixedFields.description,required:Pb.visitors.document.objects.Header.fixedFields.required,deprecated:Pb.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Pb.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Pb.visitors.document.objects.Header.fixedFields.style,explode:Pb.visitors.document.objects.Header.fixedFields.explode,allowReserved:Pb.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Pb.visitors.document.objects.Header.fixedFields.example,examples:Pb.visitors.document.objects.Header.fixedFields.examples,content:Pb.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:iP,fixedFields:{name:Pb.visitors.document.objects.Tag.fixedFields.name,description:Pb.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:cP,fixedFields:{$ref:Pb.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...NA},Schema:{$visitor:UP,fixedFields:{...DA.fixedFields,$defs:VP,allOf:JP,anyOf:HP,oneOf:GP,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:zP,prefixItems:WP,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:KP,patternProperties:YP,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},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:QP,fixedFields:{propertyName:Pb.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Pb.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:eA,fixedFields:{name:Pb.visitors.document.objects.XML.fixedFields.name,namespace:Pb.visitors.document.objects.XML.fixedFields.namespace,prefix:Pb.visitors.document.objects.XML.fixedFields.prefix,attribute:Pb.visitors.document.objects.XML.fixedFields.attribute,wrapped:Pb.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:$A,fixedFields:{type:Pb.visitors.document.objects.SecurityScheme.fixedFields.type,description:Pb.visitors.document.objects.SecurityScheme.fixedFields.description,name:Pb.visitors.document.objects.SecurityScheme.fixedFields.name,in:Pb.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Pb.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Pb.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Pb.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:TA,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:CA,fixedFields:{authorizationUrl:Pb.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Pb.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Pb.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Pb.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:tP}},extension:{$visitor:Pb.visitors.document.extension.$visitor}}}},BA=e=>{if(Co(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},qA={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"],...Mc},UA={namespace:e=>{const{base:t}=e;return t.register("callback",Fb),t.register("components",Ib),t.register("contact",Rb),t.register("discriminator",_b),t.register("encoding",Db),t.register("example",Nb),t.register("externalDocumentation",Lb),t.register("header",Bb),t.register("info",qb),t.register("jsonSchemaDialect",Vb),t.register("license",Jb),t.register("link",Hb),t.register("mediaType",Gb),t.register("oAuthFlow",zb),t.register("oAuthFlows",Wb),t.register("openapi",Kb),t.register("openApi3_1",Xb),t.register("operation",Qb),t.register("parameter",Zb),t.register("pathItem",ex),t.register("paths",tx),t.register("reference",sx),t.register("requestBody",nx),t.register("response",ix),t.register("responses",ox),t.register("schema",kO),t.register("securityRequirement",TO),t.register("securityScheme",MO),t.register("server",CO),t.register("serverVariable",FO),t.register("tag",IO),t.register("xml",RO),t}},VA=e=>{const t=e.reduce((t,r,s)=>{if(Lo(r)){const e=String(Bc(r.key));t.push(e)}else if(No(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t},[]);return La(t)},JA=()=>{const e=ra(UA);return{predicates:{...g,isElement:Co,isStringElement:Fo,isArrayElement:No,isObjectElement:Do,isMemberElement:Lo,isServersElement:Vf,includesClasses:Wo,hasElementSourceMap:Go},ancestorLineageToJSONPointer:VA,namespace:e}},HA=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,fo.e)(e),n=jc(LA),i=new(gc(t,n))({specObj:n});return Fc(s,i),oa(i.element,r,{toolboxCreator:JA,visitorOptions:{keyMap:qA,nodeTypeGetter:BA}})},GA=e=>(t,r={})=>HA(t,{specPath:e,...r});Fb.refract=GA(["visitors","document","objects","Callback","$visitor"]),Ib.refract=GA(["visitors","document","objects","Components","$visitor"]),Rb.refract=GA(["visitors","document","objects","Contact","$visitor"]),Nb.refract=GA(["visitors","document","objects","Example","$visitor"]),_b.refract=GA(["visitors","document","objects","Discriminator","$visitor"]),Db.refract=GA(["visitors","document","objects","Encoding","$visitor"]),Lb.refract=GA(["visitors","document","objects","ExternalDocumentation","$visitor"]),Bb.refract=GA(["visitors","document","objects","Header","$visitor"]),qb.refract=GA(["visitors","document","objects","Info","$visitor"]),Vb.refract=GA(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Jb.refract=GA(["visitors","document","objects","License","$visitor"]),Hb.refract=GA(["visitors","document","objects","Link","$visitor"]),Gb.refract=GA(["visitors","document","objects","MediaType","$visitor"]),zb.refract=GA(["visitors","document","objects","OAuthFlow","$visitor"]),Wb.refract=GA(["visitors","document","objects","OAuthFlows","$visitor"]),Kb.refract=GA(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Xb.refract=GA(["visitors","document","objects","OpenApi","$visitor"]),Qb.refract=GA(["visitors","document","objects","Operation","$visitor"]),Zb.refract=GA(["visitors","document","objects","Parameter","$visitor"]),ex.refract=GA(["visitors","document","objects","PathItem","$visitor"]),tx.refract=GA(["visitors","document","objects","Paths","$visitor"]),sx.refract=GA(["visitors","document","objects","Reference","$visitor"]),nx.refract=GA(["visitors","document","objects","RequestBody","$visitor"]),ix.refract=GA(["visitors","document","objects","Response","$visitor"]),ox.refract=GA(["visitors","document","objects","Responses","$visitor"]),kO.refract=GA(["visitors","document","objects","Schema","$visitor"]),TO.refract=GA(["visitors","document","objects","SecurityRequirement","$visitor"]),MO.refract=GA(["visitors","document","objects","SecurityScheme","$visitor"]),CO.refract=GA(["visitors","document","objects","Server","$visitor"]),FO.refract=GA(["visitors","document","objects","ServerVariable","$visitor"]),IO.refract=GA(["visitors","document","objects","Tag","$visitor"]),RO.refract=GA(["visitors","document","objects","XML","$visitor"]);const zA=class extends Ar{};const WA=class extends zA{};const KA=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new WA("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new WA("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new WA("latest method in MediaTypes class is not yet implemented.")}};class YA extends KA{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 ss(this.filterByFormat(e))}}const XA=new YA("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");const QA=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};const ZA=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===this.rootRef?e:this.rootRef,e.refSet=this),this}merge(e){for(const t of e.values())this.add(t);return this}has(e){const t=wn(e)?e:e.uri;return ln(this.find(e=>e.uri===t))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach(e=>{e.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}};function e$(e){return e}const t$=Cr(e$),r$={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:t$,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const s$=Fr(function(e,t){return function(r){return function(s){return en(function(e){return t(e,s)},r(e(s)))}}});var n$=function(e){return{value:e,map:function(t){return n$(t(e))}}},i$=Ir(function(e,t,r){return e(function(e){return n$(t(e))})(r).value});const o$=i$;const c$=js(""),a$=s$(gc(["resolve","baseURI"]),xE(["resolve","baseURI"])),l$=e=>c$(e)?Dn():e,u$=(e,t)=>{const r=Vc(e,t);return o$(a$,l$,r)};const p$=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:s}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=s}get extension(){return wn(this.uri)?Mn(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(xs(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const h$=class extends Ar{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},d$=async(e,t,r)=>{const s=await Promise.all(r.map(Zc([e],t)));return r.filter((e,t)=>s[t])},m$=async(e,t,r)=>{let s;for(const n of r)try{const r=await n[e].call(n,...t);return{plugin:n,result:r}}catch(e){s=new h$("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const f$=class extends Ar{};const y$=class extends f${};const v$=async(e,t)=>{let r=e,s=!1;if(!Jo(e)){const t=Ac(e);t.classes.push("result"),r=new Oo([t]),s=!0}const n=new p$({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await d$("canDereference",[n,t],t.dereference.strategies);if(Kc(i))throw new y$(n.uri);try{const{result:e}=await m$("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new f$(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const g$=async(e,t={})=>{const r=u$(r$,t);return v$(e,r)};const b$=class extends Ar{};const x$=class extends b${};const E$=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:s=[],mediaTypes:n=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=s,this.mediaTypes=n}};const w$=class extends E${constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),s=new Oo;if(0!==r.length){const e=new fo.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new x$(`Error parsing "${e.uri}"`,{cause:t})}}};const j$=class{name;constructor({name:e}){this.name=e}};const S$=class extends j${constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find(e=>"openapi-3-1"===e.name);return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find(e=>"openapi-3-1"===e.name);if(void 0===r)throw new y$('"openapi-3-1" dereference strategy is not available.');const s=new ZA,n=u$(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const O$=class{name;constructor({name:e}){this.name=e}};const P$=class extends O${timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:s=5,withCredentials:n=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=s,this.withCredentials=n}canRead(e){return Fn(e.uri)}};const A$=class extends Ar{};const $$=class extends A${},{AbortController:k$,AbortSignal:T$}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=k$),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=T$);const M$=class extends P${swaggerHTTPClient=Ot;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Ot,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:s}=r,n=setTimeout(()=>{r.abort()},this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",c=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:s,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:c,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new $$(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},C$=(e,t=sa)=>{if(wn(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Qi(e)&&yc("element",e)?t.fromRefract(e):t.toElement(e)};const F$=class extends E${constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||B()(t=this.fileExtensions).call(t,e.extension),n=B()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new x$("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new Oo,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=C$(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new x$(`Error parsing "${e.uri}"`,{cause:t})}}};const I$=class extends E${constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||B()(t=this.fileExtensions).call(t,e.extension),n=B()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{return at.load(e.toString(),{schema:ht}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new x$("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Oo,r=e.toString();try{const e=at.load(r,{schema:ht});if(this.allowEmpty&&void 0===e)return t;const s=C$(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new x$(`Error parsing "${e.uri}"`,{cause:t})}}};const R$=class extends E${detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new YA(...XA.filterByFormat("generic"),...XA.filterByFormat("json")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||B()(t=this.fileExtensions).call(t,e.extension),n=B()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)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 x$("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Oo,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=Xb.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new x$(`Error parsing "${e.uri}"`,{cause:t})}}};const _$=class extends E${detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new YA(...XA.filterByFormat("generic"),...XA.filterByFormat("yaml")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||B()(t=this.fileExtensions).call(t,e.extension),n=B()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{const t=e.toString();return at.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new x$("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Oo,r=e.toString();try{const e=at.load(r,{schema:ht});if(this.allowEmpty&&void 0===e)return t;const s=Xb.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new x$(`Error parsing "${e.uri}"`,{cause:t})}}};const D$=Ir(function(e,t,r){return js(e,ts(t,r))});const N$=class{name;constructor({name:e}){this.name=e}};const L$=Fr(function(e,t){return bo(ks(e),t)});var B$=r(8068);const q$=class extends $r{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class U${uuid;identityMap;constructor({length:e=6}={}){this.uuid=new B$({length:e}),this.identityMap=new WeakMap}identify(e){if(!Co(e))throw new q$("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Fo(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new fo.Om(this.generateId());return this.identityMap.set(e,t),t}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new U$;const V$=Ir(function(e,t,r){return Qr(e,Bi(t,r))}),J$=(e,t)=>{const r=new Cc({predicate:e,returnOnTrue:rc});return Fc(t,r),V$(void 0,[0],r.result)};const H$=class extends Ar{};const G$=class extends H${};const z$=class extends H${constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},W$=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),K$=e=>{const t=Rn(e);return wc("#",t)},Y$=(e,t)=>{const r=(e=>{if(!W$(e))throw new z$(e);return e})(e),s=J$(e=>IP(e)&&Bc(e.$anchor)===r,t);if(an(s))throw new G$(`Evaluation failed on token: "${r}"`);return s},X$=(e,t)=>{const r=new Cc({predicate:e});return Fc(t,r),new fo.G6(r.result)};const Q$=class extends Ar{};const Z$=class extends Q${},ek=(e,t)=>{if(void 0===t.$ref)return;const r=Rn(Bc(t.$ref)),s=Bc(t.meta.get("ancestorsSchemaIdentifiers"));return`${zr((e,t)=>Nn(e,Ln(_n(t))),e,[...s,Bc(t.$ref)])}${"#"===r?"":r}`},tk=e=>{if(tk.cache.has(e))return tk.cache.get(e);const t=kO.refract(e);return tk.cache.set(e,t),t};tk.cache=new WeakMap;const rk=e=>Ho(e)?tk(e):e,sk=(e,t)=>{const{cache:r}=sk,s=_n(e),n=e=>IP(e)&&void 0!==e.$id;if(!r.has(t)){const e=X$(n,t);r.set(t,Array.from(e))}const i=r.get(t).find(e=>((e,t)=>{if(void 0===t.$id)return;const r=Bc(t.meta.get("ancestorsSchemaIdentifiers"));return zr((e,t)=>Nn(e,Ln(_n(t))),e,r)})(s,e)===s);if(an(i))throw new Z$(`Evaluation failed on URI: "${e}"`);return W$(K$(e))?Y$(K$(e),i):Ka(i,ha(e))};sk.cache=new WeakMap;const nk=class extends f${};const ik=class extends A${};const ok=class extends $${},ck="apidom-file-cache",ak=async({cacheKey:e,result:t,error:r,cacheTTL:s})=>{if(0!==s)try{const s={cachedResult:t,cachedError:r,timestamp:Date.now()},n=await caches.open(ck),i=new Response(JSON.stringify(s),{headers:{"Content-Type":"application/json"}});await n.put(e,i)}catch(e){console.error("CacheStorage is not available")}},lk=async(e,t)=>{const{cacheTTL:r=0}=t.resolve.resolverOpts,s=`read_${e.uri}`,{cachedResult:n,cachedError:i}=await(async({cacheKey:e,cacheTTL:t})=>{if(0===t)return{cachedResult:null,cachedError:null};try{const r=await caches.open(ck),s=await r.match(e);if(s){const{cachedResult:n,cachedError:i,timestamp:o}=await s.json();if(Date.now()-o<t)return{cachedResult:n,cachedError:i};await r.delete(e)}}catch(e){return console.log("There was an error parsing the response"),{cachedResult:null,cachedError:null}}return{cachedResult:null,cachedError:null}})({cacheKey:s,cacheTTL:r});if(null!==n)return n;if(null!==i)throw new A$(`Error while reading file "${e.uri}"`,{cause:i});const o=t.resolve.resolvers.map(e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)}),c=await d$("canRead",[e,t],o);if(Kc(c))throw new ok(e.uri);try{const{result:t}=await m$("read",[e],c),n=new p$({...e,data:t}).toString();return await ak({cacheKey:s,result:n,error:null,cacheTTL:r}),t}catch(t){var a,l,u;throw await ak({cacheKey:s,result:null,error:null!==(a=null!==(l=null==t||null===(u=t.cause)||void 0===u?void 0:u.cause)&&void 0!==l?l:null==t?void 0:t.cause)&&void 0!==a?a:t,cacheTTL:r}),new A$(`Error while reading file "${e.uri}"`,{cause:t})}},uk=async(e,t)=>{const r=new p$({uri:Ln(_n(e)),mediaType:t.parse.mediaType}),s=await lk(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)}),s=await d$("canParse",[e,t],r);if(Kc(s))throw new ok(e.uri);try{const{plugin:r,result:n}=await m$("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new b$(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new b$(`Error while parsing file "${e.uri}"`,{cause:t})}})(new p$({...r,data:s}),t)};class pk 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(Co(r)&&e(r))return r}}const hk=Fc[Symbol.for("nodejs.util.promisify.custom")],dk=new U$,mk=(e,t,r,s)=>{Lo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class fk{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new pk,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map,errorContext:c=[],errorPropagationCache:a=new Map,pendingPropagations:l=[]}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new pk(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o,this.errorContext=c,this.errorPropagationCache=a,this.pendingPropagations=l}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let t=this.errorContext.length-1;t>=0;t-=1)if(this.errorContext[t]===e){this.errorContext.splice(t,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach(({referencingElement:t,referencedElement:r})=>{const s=this.errorPropagationCache.get(r);Array.isArray(s)&&s.length>0&&s.forEach(r=>{const s=this.errorPropagationCache.get(t);var n;null!=s&&s.includes(r)||(null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.errors.push({error:r,refEl:t}),s?s.push(r):this.errorPropagationCache.set(t,[r]),e=!0)})}),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,t,r){var s;if(null!==(s=this.options.dereference.dereferenceOpts)&&void 0!==s&&s.continueOnError){var n,i,o;const{directAncestors:s,isExternalReference:l=!1}=null!=r?r:{},u=null!==(n=null===(i=this.options.dereference.dereferenceOpts)||void 0===i?void 0:i.skipNestedExternal)&&void 0!==n&&n,p=l&&u;if(s&&!p){for(const t of s){const r=this.errorPropagationCache.get(t);r?r.push(e):this.errorPropagationCache.set(t,[e])}const t=[...s].find(e=>Do(e)&&e.getMetaProperty("ref-referencing-element"));var c;if(t)null===(c=this.options.dereference.dereferenceOpts)||void 0===c||c.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}if(null===(o=this.options.dereference.dereferenceOpts)||void 0===o||o.errors.push({error:e,refEl:t}),!p){const r=new Set(this.errorContext);r.delete(t),this.popErrorContext(t);for(const t of r){var a;null===(a=this.options.dereference.dereferenceOpts)||void 0===a||a.errors.push({error:e,refEl:t})}}return}throw e}getNestedVisitorOptions(e){var t,r;return{...this.options,resolve:{...this.options.resolve,external:(null===(t=this.options.dereference)||void 0===t||null===(t=t.dereferenceOpts)||void 0===t||!t.skipNestedExternal||!Bc(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...null===(r=this.options.dereference)||void 0===r?void 0:r.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return Nn(this.reference.uri,Ln(_n(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new ik(`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(D$(t,"uri"));const s=await uk(Bn(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new QA({uri:t,value:Sc(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new QA({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(Co));return[new pk(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,r,s,n,i)=>{var o,c;if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.propagateErrors(),null===(c=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===c||!c.dereferenceDiscriminatorMapping)return;const a=Ac(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,mk),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,c;if(this.indirections.includes(e))return!1;const[a,l]=this.toAncestorLineage([...n,r]),u=this.toBaseURI(Bc(e.$ref)),p=_n(this.reference.uri)===u,h=!p;if(!this.options.resolve.internal&&p)return!1;if(!this.options.resolve.external&&h)return!1;let d;try{d=await this.toReference(Bc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}const m=Nn(u,Bc(e.$ref));this.indirections.push(e);const f=ha(m);let y;try{y=Ka(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if(y.id=dk.identify(y),Ho(y)){const t=Bc(e.meta.get("referenced-element")),r=`${t}-${Bc(dk.identify(y))}`;if(this.refractCache.has(r))y=this.refractCache.get(r);else if(Am(y))y=sx.refract(y),y.setMetaProperty("referenced-element",t),this.refractCache.set(r,y);else{y=this.namespace.getElementClass(t).refract(y),this.refractCache.set(r,y)}}if(e===y){const t=new Ar("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if(a.includes(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Ar("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if("replace"===this.options.dereference.circular){var v,g;const t=new fo.sI(y.id,{type:"reference",uri:d.uri,$ref:Bc(e.$ref)}),s=(null!==(v=null===(g=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===g?void 0:g.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,mk),!r&&s}}const b=_n(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||kP(y)||x)&&!a.includesCycle(y)){l.add(e),this.errorContext.push(e);const t=new fk({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await hk(y,t,{keyMap:qA,nodeTypeGetter:BA})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}l.delete(e),this.popErrorContext(e)}null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop();const E=Ac(y);return E.setMetaProperty("id",dk.generateId()),E.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),description:Bc(e.description),summary:Bc(e.summary)}),E.setMetaProperty("ref-origin",d.uri),E.setMetaProperty("ref-referencing-element-id",Sc(dk.identify(e))),null!==(c=this.options.dereference.dereferenceOpts)&&void 0!==c&&c.continueOnError&&E.setMetaProperty("ref-referencing-element",e),Do(y)&&Do(E)&&(e.hasKey("description")&&"description"in y&&(E.remove("description"),E.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in y&&(E.remove("summary"),E.set("summary",e.get("summary")))),i.replaceWith(E,mk),!r&&E}async PathItemElement(e,t,r,s,n,i){var o;if(!Fo(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(Bc(e.$ref)),u=_n(this.reference.uri)===l,p=!u;if(!this.options.resolve.internal&&u)return;if(!this.options.resolve.external&&p)return;let h;try{h=await this.toReference(Bc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}const d=Nn(l,Bc(e.$ref));this.indirections.push(e);const m=ha(d);let f;try{f=Ka(h.value.result,m)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if(f.id=dk.identify(f),Ho(f)){const e=`path-item-${Bc(dk.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=ex.refract(f),this.refractCache.set(e,f))}if(e===f){const t=new Ar("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if(c.includes(f)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Ar("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if("replace"===this.options.dereference.circular){var y,v;const t=new fo.sI(f.id,{type:"path-item",uri:h.uri,$ref:Bc(e.$ref)}),s=(null!==(y=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==y?y:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,mk),!r&&s}}const g=_n(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((p||g||PP(f)&&Fo(f.$ref)||b)&&!c.includesCycle(f)){a.add(e),this.errorContext.push(e);const t=new fk({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{f=await hk(f,t,{keyMap:qA,nodeTypeGetter:BA})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:f}),this.indirections.pop(),PP(f)){var x;const t=new ex([...f.content],Sc(f.meta),Sc(f.attributes));t.setMetaProperty("id",dk.generateId()),e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",Sc(dk.identify(e))),null!==(x=this.options.dereference.dereferenceOpts)&&void 0!==x&&x.continueOnError&&t.setMetaProperty("ref-referencing-element",e),f=t}return i.replaceWith(f,mk),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!Fo(e.operationRef)&&!Fo(e.operationId))return;if(Fo(e.operationRef)&&Fo(e.operationId)){const t=new Ar("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(Fo(e.operationRef)){var c;const t=ha(Bc(e.operationRef)),s=this.toBaseURI(Bc(e.operationRef)),n=_n(this.reference.uri)===s,a=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&a)return;let l;try{l=await this.toReference(Bc(e.operationRef)),o=Ka(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:a})}if(Ho(o)){const e=`operation-${Bc(dk.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=Qb.refract(o),this.refractCache.set(e,o))}o=Ac(o),o.setMetaProperty("ref-origin",l.uri);const u=Ac(e);return null===(c=u.operationRef)||void 0===c||c.meta.set("operation",o),i.replaceWith(u,mk),r?void 0:u}if(Fo(e.operationId)){var a;const t=Bc(e.operationId);let s;try{s=await this.toReference(Bn(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=J$(e=>SP(e)&&Co(e.operationId)&&e.operationId.equals(t),s.value.result),an(o)){const r=new Ar(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=Ac(e);return null===(a=n.operationId)||void 0===a||a.meta.set("operation",o),i.replaceWith(n,mk),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!Fo(e.externalValue))return;if(e.hasKey("value")&&Fo(e.externalValue)){const t=new Ar("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=this.toBaseURI(Bc(e.externalValue)),c=_n(this.reference.uri)===o,a=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&a)return;let l;try{l=await this.toReference(Bc(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:a})}const u=Ac(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=Ac(e);return p.value=u,i.replaceWith(p,mk),r?void 0:p}async MemberElement(e,t,r,s,n,i){var o;const c=n[n.length-1];if(!Do(c)||!c.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!Fo(e.key)||!Fo(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[a,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(IP),p=Sc(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Bc(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new kO({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new fk({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let y;try{y=await hk(m,f,{keyMap:qA,nodeTypeGetter:BA})}catch(e){const t=!d.startsWith("#");return this.handleDereferenceError(e,m,{directAncestors:l,isExternalReference:t})}l.delete(m),this.indirections.pop();const v=Ac(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,mk),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!Fo(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(Bn(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a})}let{uri:u}=l;const p=ek(u,e),h=_n(p),d=new p$({uri:h}),m=L$(e=>e.canRead(d),this.options.resolve.resolvers),f=!m;let y,v=_n(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=rk(l.value.result);if(y=sk(e,t),y=rk(y),y.id=dk.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=_n(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(Bn(p));const e=ha(p),t=rk(l.value.result);y=Ka(t,e),y=rk(y),y.id=dk.identify(y)}}catch(t){if(!(f&&t instanceof Z$))return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g});if(W$(K$(p))){if(v=_n(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Bn(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=K$(p),r=rk(l.value.result);try{y=Y$(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=rk(y),y.id=dk.identify(y)}else{if(u=this.toBaseURI(p),v=_n(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Bn(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=ha(p),r=rk(l.value.result);try{y=Ka(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=rk(y),y.id=dk.identify(y)}}if(e===y){const t=new Ar("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(c.includes(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Ar("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if("replace"===this.options.dereference.circular){var b,x;const t=new fo.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Bc(e.$ref)}),s=(null!==(b=null===(x=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===x?void 0:x.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,mk),!r&&s}}const E=_n(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||IP(y)&&Fo(y.$ref)||w)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=new fk({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await hk(y,t,{keyMap:qA,nodeTypeGetter:BA})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop(),RP(y)){const t=Sc(y);return t.setMetaProperty("id",dk.generateId()),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Sc(dk.identify(e))),i.replaceWith(t,mk),!r&&t}if(IP(y)){var j,S;const t=new kO([...y.content],Sc(y.meta),Sc(y.attributes));if(t.setMetaProperty("id",dk.generateId()),e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Sc(dk.identify(e))),null!==(j=this.options.dereference.dereferenceOpts)&&void 0!==j&&j.continueOnError&&t.setMetaProperty("ref-referencing-element",e),null!==(S=this.options.dereference.strategyOpts["openapi-3-1"])&&void 0!==S&&S.dereferenceDiscriminatorMapping){var O;const e=n[n.length-1],r=[...a].findLast(IP),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Bc(t.getMetaProperty("schemaName"));if(i&&s&&null!=e&&null!==(O=e.classes)&&void 0!==O&&O.contains("json-schema-allOf")){var P;const e=null!==(P=this.allOfDiscriminatorMapping.get(i))&&void 0!==P?P:[];e.push(r),this.allOfDiscriminatorMapping.set(i,e)}}y=t}return i.replaceWith(y,mk),r?void 0:y}}const yk=fk,vk=Fc[Symbol.for("nodejs.util.promisify.custom")];const gk=class extends N${constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?XA.includes(e.mediaType):jP(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=ra(UA),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new ZA,i=new ZA;let o,c=n;n.has(e.uri)?o=n.find(D$(e.uri,"uri")):(o=new QA({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map(e=>new QA({...e,value:Sc(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),c=i);const a=new yk({reference:o,namespace:s,options:t}),l=await vk(c.rootRef.value,a,{keyMap:qA,nodeTypeGetter:BA});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new QA({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>n.add(e)),null===t.dereference.refSet&&n.clean(),i.clean(),l}},bk=e=>{const t=(e=>e.slice(2))(e);return t.reduce((e,r,s)=>{if(Lo(r)){const t=String(Bc(r.key));e.push(t)}else if(No(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e},[])};const xk=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Do(e.properties)&&e.properties.forEach(t=>{if(Do(t))try{const e=this.modelPropertyMacro(Bc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...bk([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};var Ek=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Fs,e.prototype["@@transducer/result"]=Is,e.prototype["@@transducer/step"]=function(e,t){return ls(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function wk(e){return function(t){return new Ek(e,t)}}const jk=Fr(Ms([],wk,function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)ls(e,r=t[s],i)||(i[i.length]=r),s+=1;return i})),Sk=e=>{const t=e.meta.length>0?Sc(e.meta):void 0,r=e.attributes.length>0?Sc(e.attributes):void 0;return new e.constructor(void 0,t,r)},Ok=(e,t)=>t.clone&&t.isMergeableElement(e)?Ak(Sk(e),e,t):e,Pk={clone:!0,isMergeableElement:e=>Do(e)||No(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"](e=>Ok(e,r)),objectElementMerge:(e,t,r)=>{const s=Do(e)?Sk(e):Sk(t);return Do(e)&&e.forEach((e,t,n)=>{const i=Ac(n);i.value=Ok(e,r),s.content.push(i)}),t.forEach((t,n,i)=>{const o=Bc(n);let c;if(Do(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);c=Ac(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return Ak;const r=t.customMerge(e,t);return"function"==typeof r?r:Ak})(n,r)(s,t,r)}else c=Ac(i),c.value=Ok(t,r);s.remove(o),s.content.push(c)}),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Ak=(e,t,r)=>{var s,n,i;const o={...Pk,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:Pk.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:Pk.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Pk.objectElementMerge;const c=No(t);if(!(c===No(e)))return Ok(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Sc(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Sc(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};Ak.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new fo.Sh:e.reduce((e,r)=>Ak(e,r,t),Sk(e[0]))};const $k=Ak;const kk=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!No(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...bk([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(IP)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...bk([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=$k.all([...t.content,e],{customMerge:e=>"enum"===Bc(e)?(e,t)=>{if(Wo(["json-schema-enum"],e)&&Wo(["json-schema-enum"],t)){const r=(e,t)=>!(No(e)||No(t)||Do(e)||Do(t))&&e.equals(Bc(t)),s=Ac(e);return s.content=jk(r)([...e.content,...t.content]),s}return $k(e,t)}:$k});if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}};const Tk=class{parameterMacro;options;#s;OperationElement={enter:e=>{this.#s=e},leave:()=>{this.#s=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#s?Bc(this.#s):null,o=Bc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=bk([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},Mk=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const Ck=class extends $r{},{wrapError:Fk}=gi,Ik=Fc[Symbol.for("nodejs.util.promisify.custom")],Rk=new U$,_k=(e,t,r,s)=>{Lo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class Dk extends yk{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{var o,c;if(B()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Bc(e.$ref)),l=_n(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(Bc(e.$ref)),h=Nn(a,Bc(e.$ref));this.indirections.push(e);const d=ha(h);let m=Ka(p.value.result,d);if(m.id=Rk.identify(m),Ho(m)){const t=Bc(e.meta.get("referenced-element")),r=`${t}-${Bc(Rk.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(Am(m))m=sx.refract(m),m.setMetaProperty("referenced-element",t),this.refractCache.set(r,m);else{m=this.namespace.getElementClass(t).refract(m),this.refractCache.set(r,m)}}if(e===m)throw new Ar("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(B()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ar("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new fo.sI(m.id,{type:"reference",uri:p.uri,$ref:Bc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,_k),!r&&s}}const f=_n(p.refSet.rootRef.uri)!==p.uri,y=B()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||kP(m)||y)&&!t.includesCycle(m)){s.add(e);const i=new Dk({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...bk([...n,r,e]),"$ref"]});m=await Ik(m,i,{keyMap:qA,nodeTypeGetter:BA}),s.delete(e)}this.indirections.pop();const v=Ac(m);if(v.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),description:Bc(e.description),summary:Bc(e.summary)}),v.setMetaProperty("ref-origin",p.uri),v.setMetaProperty("ref-referencing-element-id",Sc(Rk.identify(e))),Do(m)&&(e.hasKey("description")&&"description"in m&&(v.remove("description"),v.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in m&&(v.remove("summary"),v.set("summary",e.get("summary")))),this.allowMetaPatches&&Do(v)&&!v.hasKey("$$ref")){const e=Nn(a,h);v.set("$$ref",e)}return i.replaceWith(v,_k),!r&&v}catch(t){const s=Mk(t),i=Fk(s,{baseDoc:this.reference.uri,$ref:Bc(e.$ref),pointer:ha(Bc(e.$ref)),fullPath:this.basePath??[...bk([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{var o,c;if(!Fo(e.$ref))return;if(B()(o=this.indirections).call(o,e))return!1;if(Wo(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Bc(e.$ref)),l=_n(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(Bc(e.$ref)),h=Nn(a,Bc(e.$ref));this.indirections.push(e);const d=ha(h);let m=Ka(p.value.result,d);if(m.id=Rk.identify(m),Ho(m)){const e=`path-item-${Bc(Rk.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=ex.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Ar("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(B()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ar("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new fo.sI(m.id,{type:"path-item",uri:p.uri,$ref:Bc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,_k),!r&&s}}const f=_n(p.refSet.rootRef.uri)!==p.uri,y=B()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||PP(m)&&Fo(m.$ref)||y)&&!t.includesCycle(m)){s.add(e);const i=new Dk({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...bk([...n,r,e]),"$ref"]});m=await Ik(m,i,{keyMap:qA,nodeTypeGetter:BA}),s.delete(e)}if(this.indirections.pop(),PP(m)){const t=new ex([...m.content],Sc(m.meta),Sc(m.attributes));if(e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Sc(Rk.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Nn(a,h);t.set("$$ref",e)}m=t}return i.replaceWith(m,_k),r?void 0:m}catch(t){const s=Mk(t),i=Fk(s,{baseDoc:this.reference.uri,$ref:Bc(e.$ref),pointer:ha(Bc(e.$ref)),fullPath:this.basePath??[...bk([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{var o,c;if(!Fo(e.$ref))return;if(B()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let a=await this.toReference(Bn(this.reference.uri)),{uri:l}=a;const u=ek(l,e),p=_n(u),h=new p$({uri:p}),d=!this.options.resolve.resolvers.some(e=>e.canRead(h)),m=!d;let f,y=_n(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(u);const e=u,t=rk(a.value.result);if(f=sk(e,t),f=rk(f),f.id=Rk.identify(f),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(l=this.toBaseURI(u),y=_n(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Bn(u));const e=ha(u),t=rk(a.value.result);f=Ka(t,e),f=rk(f),f.id=Rk.identify(f)}}catch(e){if(!(m&&e instanceof Z$))throw e;if(W$(K$(u))){if(y=_n(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Bn(u));const e=K$(u),t=rk(a.value.result);f=Y$(e,t),f=rk(f),f.id=Rk.identify(f)}else{if(l=this.toBaseURI(Bc(u)),y=_n(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Bn(u));const e=ha(u),t=rk(a.value.result);f=Ka(t,e),f=rk(f),f.id=Rk.identify(f)}}if(e===f)throw new Ar("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(B()(t).call(t,f)){if(a.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ar("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new fo.sI(f.id,{type:"json-schema",uri:a.uri,$ref:Bc(e.$ref),baseURI:Nn(l,u),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,_k),!r&&s}}const g=_n(a.refSet.rootRef.uri)!==a.uri,b=B()(c=["error","replace"]).call(c,this.options.dereference.circular);if((v||g||IP(f)&&Fo(f.$ref)||b)&&!t.includesCycle(f)){s.add(e);const i=new Dk({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...bk([...n,r,e]),"$ref"]});f=await Ik(f,i,{keyMap:qA,nodeTypeGetter:BA}),s.delete(e)}if(this.indirections.pop(),RP(f)){const t=Sc(f);return t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Sc(Rk.identify(e))),i.replaceWith(t,_k),!r&&t}if(IP(f)){const t=new kO([...f.content],Sc(f.meta),Sc(f.attributes));if(e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Sc(Rk.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Nn(l,u);t.set("$$ref",e)}f=t}return i.replaceWith(f,_k),r?void 0:f}catch(t){const s=Mk(t),i=new Ck(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Bc(e.$ref),fullPath:this.basePath??[...bk([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=Mk(t),i=Fk(s,{baseDoc:this.reference.uri,externalValue:Bc(e.externalValue),fullPath:this.basePath??[...bk([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const Nk=Dk,Lk=oc[Symbol.for("nodejs.util.promisify.custom")];const Bk=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new Nk({...n,options:s})),"function"==typeof t&&i.push(new xk({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new kk({options:s})),"function"==typeof e&&i.push(new Tk({parameterMacro:e,options:s}));const o=Lk(i,{nodeTypeGetter:BA});Object.assign(this,o)}},qk=Fc[Symbol.for("nodejs.util.promisify.custom")];const Uk=class extends gk{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=ra(UA),s=t.dereference.refSet??new ZA,n=new ZA;let i,o=s;s.has(e.uri)?i=s.find(t=>t.uri===e.uri):(i=new QA({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map(e=>new QA({...e,value:Sc(e.value)})).forEach(e=>n.add(e)),i=n.find(t=>t.uri===e.uri),o=n);const c=new Bk({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),a=await qk(o.rootRef.value,c,{keyMap:qA,nodeTypeGetter:BA});return t.dereference.immutable&&n.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new QA({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>s.add(e)),null===t.dereference.refSet&&s.clean(),n.clean(),a}},Vk=e=>{const t=Bc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new fo.Sh({$ref:t},Sc(r.meta),Sc(r.attributes))},Jk=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:c=!1,useCircularStructures:a=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=e;try{const{cache:m}=Jk,f=d.find(e=>e.match(t)),y=Fn(Dn())?Dn():w,v=At(e),g=Nn(y,v);let b;m.has(t)?b=m.get(t):(b=Xb.refract(t),b.classes.push("result"),m.set(t,b));const x=new Oo([b]),E=La(o),j=""===E?"":`#${E}`,S=Ka(b,E),O=new QA({uri:g,value:x}),P=new ZA({refs:[O]});""!==E&&(P.rootRef=void 0);const A=[new Set([S])],$=[],k=await g$(S,{resolve:{baseURI:`${g}${j}`,resolvers:[new M$({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new S$]},parse:{mediaType:XA.latest(),parsers:[new R$({allowEmpty:!1,sourceMap:!1}),new _$({allowEmpty:!1,sourceMap:!1}),new F$({allowEmpty:!1,sourceMap:!1}),new I$({allowEmpty:!1,sourceMap:!1}),new w$({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new Uk({allowMetaPatches:c,useCircularStructures:a,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:A})],refSet:P,dereferenceOpts:{errors:$},immutable:!1,circular:a?"ignore":"replace",circularReplacer:a?r$.dereference.circularReplacer:Vk}}),T=pa(S,k,b),M=l?T:f.normalize(T);return{spec:Bc(M),errors:$}}catch(e){if(e instanceof Ua)return{spec:t,errors:[]};throw e}};Jk.cache=new WeakMap;const Hk=Jk;function Gk(e,t,r){if(r||(r=new zk),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var s,n=function(s){var n=r.get(e);if(n)return n;for(var i in r.set(e,s),e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=t?Gk(e[i],!0,r):e[i]);return s};switch(xs(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return s=e,new RegExp(s.source,s.flags?s.flags:(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.sticky?"y":"")+(s.unicode?"u":"")+(s.dotAll?"s":""));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 zk=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),s=this.map[r];s||(this.map[r]=s=[]),s.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],s=0;s<r.length;s+=1){if((i=r[s])[0]===e)return i[1]}else{var n=this.hash(e);if(r=this.map[n])for(s=0;s<r.length;s+=1){var i;if((i=r[s])[0]===e)return i[1]}}},e}(),Wk=function(){function e(e,t,r,s){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=s,this.inputs={}}return e.prototype["@@transducer/init"]=Fs,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(us(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,Gk(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function Kk(e,t,r){return function(s){return new Wk(e,t,r,s)}}const Yk=Fr(Wr("groupBy",ns(4,[],Ms([],Kk,function(e,t,r,s){var n=Gr(function(s,n){var i=r(n),o=e(us(i,s)?s[i]:Gk(t,!1),n);return o&&o["@@transducer/reduced"]?yo(s):(s[i]=o,s)});return Jr(n,{},s)}))(function(e,t){return e.push(t),e},[])));const Xk=class{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);Do(e)||(e=new fo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);No(t)||(t=new fo.wE,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},Qk=e=>e.replace(/\s/g,""),Zk=e=>e.replace(/\W/gi,"_"),eT=(e,t,r)=>{const s=Qk(e);return s.length>0?Zk(s):((e,t)=>`${Zk(Qk(t.toLowerCase()))}${Zk(Qk(e))}`)(t,r)},tT=({storageField:e="x-normalized",operationIdNormalizer:t=eT}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],c=[],a=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new Xk(t,e,"operation-ids")},leave(){const e=Yk(e=>Bc(e.operationId),c);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)}))}),a.forEach(e=>{if(void 0===e.operationId)return;const t=String(Bc(e.operationId)),r=c.find(e=>Bc(e.meta.get("originalOperationId"))===t);void 0!==r&&(e.operationId=Sc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),c.length=0,a.length=0,l=void 0}},PathItemElement:{enter(e){const t=Qr("path",Bc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,a,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Bc(e.operationId)),d=ss(o),m=Qr("method",Bc(e.meta.get("http-method"))),f=t(h,d,m);h!==f&&(e.operationId=new i.elements.String(f),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),c.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&a.push(e)}}}}},rT=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(Bc(e.name)===Bc(t.name)&&Bc(e.in)===Bc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new Xk(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:c}=e;r.isArrayElement(c)?i.push([...c.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,c,a){const l=ss(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...a,r,e]);if(o.includes(u))return;const p=V$([],["parameters","content"],e),h=jk(n,[...p,...l]);e.parameters=new Bg(h),o.append(u)}}}}},sT=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new Xk(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,c,a){if(a.some(r.isComponentsElement))return;const l=s([...a,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new Yg(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},nT=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new Xk(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>Sc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Sc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Sc(e.example)),n.append(u)))}}}}}},iT=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new Xk(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>Sc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Sc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Sc(e.example)),n.append(u)))}}}}}},oT=e=>{if(!Do(e))return e;const t=[tT({operationIdNormalizer:(e,t,r)=>to({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),rT(),sT(),nT(),iT()];return oa(e,t,{toolboxCreator:JA,visitorOptions:{keyMap:qA,nodeTypeGetter:BA}})},cT={name:"openapi-3-1-apidom",match:e=>oo(e),normalize(e){if(!Co(e)&&Qi(e)&&!e.$$normalized){const r=(t=oT,e=>{const r=Xb.refract(e);r.classes.push("result");const s=t(r),n=Bc(s);return Hk.cache.set(n,s),Bc(s)})(e);return r.$$normalized=!0,r}var t;return Co(e)?oT(e):e},resolve:async e=>Hk(e)};const aT=class extends Fb{};const lT=class extends Ib{get mediaTypes(){return this.get("mediaTypes")}set mediaTypes(e){this.set("mediaTypes",e)}};const uT=class extends Rb{};const pT=class extends _b{get defaultMapping(){return this.get("defaultMapping")}set defaultMapping(e){this.set("defaultMapping",e)}};const hT=class extends Db{get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}get prefixEncoding(){return this.get("prefixEncoding")}set prefixEncoding(e){this.set("prefixEncoding",e)}get itemEncoding(){return this.get("itemEncoding")}set itemEncoding(e){this.set("itemEncoding",e)}};const dT=class extends Nb{get dataValue(){return this.get("dataValue")}set dataValue(e){this.set("dataValue",e)}get serializedValue(){return this.get("serializedValue")}set serializedValue(e){this.set("serializedValue",e)}};const mT=class extends Lb{};const fT=class extends Bb{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const yT=class extends qb{};class vT extends fo.Om{static default=new vT("https://spec.openapis.org/oas/3.2/dialect/2025-09-17");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const gT=vT;const bT=class extends Jb{};const xT=class extends Hb{};const ET=class extends Gb{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get itemSchema(){return this.get("itemSchema")}set itemSchema(e){this.set("itemSchema",e)}get prefixEncoding(){return this.get("prefixEncoding")}set prefixEncoding(e){this.set("prefixEncoding",e)}get itemEncoding(){return this.get("itemEncoding")}set itemEncoding(e){this.set("itemEncoding",e)}};const wT=class extends zb{get deviceAuthorizationUrl(){return this.get("deviceAuthorizationUrl")}set deviceAuthorizationUrl(e){this.set("deviceAuthorizationUrl",e)}};const jT=class extends Wb{get deviceAuthorization(){return this.get("deviceAuthorization")}set deviceAuthorization(e){this.set("deviceAuthorization",e)}};const ST=class extends Kb{};class OT extends fo.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_2",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 $self(){return this.get("$self")}set $self(e){this.set("$self",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 PT=OT;const AT=class extends Qb{};const $T=class extends Zb{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const kT=class extends ex{get QUERY(){return this.get("query")}set QUERY(e){this.set("query",e)}get additionalOperations(){return this.get("additionalOperations")}set additionalOperations(e){this.set("additionalOperations",e)}};const TT=class extends tx{};class MT extends sx{}Object.defineProperty(MT.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(MT.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const CT=MT;const FT=class extends nx{};const IT=class extends ix{get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};const RT=class extends ox{};const _T=class extends kO{};const DT=class extends TO{};const NT=class extends MO{get oauth2MetadataUrl(){return this.get("oauth2MetadataUrl")}set oauth2MetadataUrl(e){this.set("oauth2MetadataUrl",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};const LT=class extends CO{get name(){return this.get("name")}set name(e){this.set("name",e)}};const BT=class extends FO{};const qT=class extends IO{get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get parentProp(){return this.get("parent")}set parentProp(e){this.set("parent",e)}get kind(){return this.get("kind")}set kind(e){this.set("kind",e)}};const UT=class extends RO{get nodeType(){return this.get("nodeType")}set nodeType(e){this.set("nodeType",e)}};class VT extends(Fh(Mm,Em)){constructor(e){super(e),this.element=new PT,this.specPath=on(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Mm.prototype.ObjectElement.call(this,e)}}const JT=VT,HT=LA.visitors.document.objects.Info.$visitor;const GT=class extends HT{constructor(e){super(e),this.element=new yT}},zT=LA.visitors.document.objects.Contact.$visitor;const WT=class extends zT{constructor(e){super(e),this.element=new uT}},KT=LA.visitors.document.objects.License.$visitor;const YT=class extends KT{constructor(e){super(e),this.element=new bT}},XT=LA.visitors.document.objects.Link.$visitor;const QT=class extends XT{constructor(e){super(e),this.element=new xT}};class ZT extends(Fh(wm,Em)){StringElement(e){const t=new gT(Bc(e));return this.copyMetaAndAttributes(e,t),this.element=t,rc}}const eM=ZT,tM=LA.visitors.document.objects.Server.$visitor;const rM=class extends tM{constructor(e){super(e),this.element=new LT}},sM=LA.visitors.document.objects.ServerVariable.$visitor;const nM=class extends sM{constructor(e){super(e),this.element=new BT}},iM=LA.visitors.document.objects.MediaType.$visitor;const oM=class extends iM{constructor(e){super(e),this.element=new ET}},cM=LA.visitors.document.objects.SecurityRequirement.$visitor;const aM=class extends cM{constructor(e){super(e),this.element=new DT}},lM=LA.visitors.document.objects.Components.$visitor;const uM=class extends lM{constructor(e){super(e),this.element=new lT}},pM=LA.visitors.document.objects.Tag.$visitor;const hM=class extends pM{constructor(e){super(e),this.element=new qT}},dM=LA.visitors.document.objects.Reference.$visitor;const mM=class extends dM{constructor(e){super(e),this.element=new CT}},fM=LA.visitors.document.objects.Parameter.$visitor;const yM=class extends fM{constructor(e){super(e),this.element=new $T}},vM=LA.visitors.document.objects.Header.$visitor;const gM=class extends vM{constructor(e){super(e),this.element=new fT}},bM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aT||e(s)&&t("callback",s)&&r("object",s)),xM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lT||e(s)&&t("components",s)&&r("object",s)),EM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uT||e(s)&&t("contact",s)&&r("object",s)),wM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pT||e(s)&&t("discriminator",s)&&r("object",s)),jM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dT||e(s)&&t("example",s)&&r("object",s)),SM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mT||e(s)&&t("externalDocumentation",s)&&r("object",s)),OM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fT||e(s)&&t("header",s)&&r("object",s)),PM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yT||e(s)&&t("info",s)&&r("object",s)),AM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gT||e(s)&&t("jsonSchemaDialect",s)&&r("string",s)),$M=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bT||e(s)&&t("license",s)&&r("object",s)),kM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xT||e(s)&&t("link",s)&&r("object",s)),TM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ST||e(s)&&t("openapi",s)&&r("string",s)),MM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof PT||e(n)&&t("openApi3_2",n)&&r("object",n)&&s("api",n)),CM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof AT||e(s)&&t("operation",s)&&r("object",s)),FM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $T||e(s)&&t("parameter",s)&&r("object",s)),IM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kT||e(s)&&t("pathItem",s)&&r("object",s)),RM=e=>{if(!IM(e))return!1;if(!Fo(e.$ref))return!1;const t=Bc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},_M=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof TT||e(s)&&t("paths",s)&&r("object",s)),DM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof CT||e(s)&&t("reference",s)&&r("object",s)),NM=e=>{if(!DM(e))return!1;if(!Fo(e.$ref))return!1;const t=Bc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},LM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof FT||e(s)&&t("requestBody",s)&&r("object",s)),BM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof IT||e(s)&&t("response",s)&&r("object",s)),qM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof RT||e(s)&&t("responses",s)&&r("object",s)),UM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _T||e(s)&&t("schema",s)&&r("object",s)),VM=e=>_o(e)&&e.classes.includes("boolean-json-schema"),JM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof DT||e(s)&&t("securityRequirement",s)&&r("object",s)),HM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof NT||e(s)&&t("securityScheme",s)&&r("object",s)),GM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof LT||e(s)&&t("server",s)&&r("object",s)),zM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof BT||e(s)&&t("serverVariable",s)&&r("object",s)),WM=Mo(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ET||e(s)&&t("mediaType",s)&&r("object",s));class KM extends(Fh(Mm,Vh,Em)){constructor(e){super(e),this.element=new _T,this.specPath=on(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=gT.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Mm.prototype.ObjectElement.call(this,e);return Fo(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return fO.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&AM(this.openApiSemanticElement.jsonSchemaDialect)?Bc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Fo(this.openApiGenericElement.get("jsonSchemaDialect"))?Bc(this.openApiGenericElement.get("jsonSchemaDialect")):Bc(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return fO.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return fO.prototype.handleSchemaIdentifier.call(this,e)}}const YM=KM;const XM=class extends zj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const QM=class extends Kj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const ZM=class extends Xj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const eC=class extends Zj{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const tC=class extends tS{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const rC=class extends bO{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const sC=class extends iS{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const nC=class extends cS{constructor(e){super(e),this.passingOptionsNames.push("parent")}},iC=LA.visitors.document.objects.Discriminator.$visitor;const oC=class extends iC{constructor(e){super(e),this.element=new pT,this.canSupportSpecificationExtensions=!0}},cC=LA.visitors.document.objects.XML.$visitor;const aC=class extends cC{constructor(e){super(e),this.element=new UT}};class lC extends(Fh(Km,Em)){constructor(e){super(e),this.element=new av,this.specPath=on(["document","objects","Schema"])}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(UM).forEach((e,t)=>{e.setMetaProperty("schemaName",Bc(t))}),t}}const uC=lC;const pC=class extends nA{};class hC extends(Fh(Km,Em)){constructor(e){super(e),this.element=new pC,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(DM).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}}const dC=hC;class mC extends fo.Sh{static primaryClass="components-media-types";constructor(e,t,r){super(e,t,r),this.classes.push(mC.primaryClass)}}const fC=mC;class yC extends(Fh(Km,Em)){constructor(e){super(e),this.element=new fC,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(DM).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const vC=yC;class gC extends(Fh(Km,Em)){constructor(e){super(e),this.element=new fo.Sh,this.specPath=on(["document","objects","Operation"])}}const bC=gC,xC=LA.visitors.document.objects.Example.$visitor;const EC=class extends xC{constructor(e){super(e),this.element=new dT}},wC=LA.visitors.document.objects.ExternalDocumentation.$visitor;const jC=class extends wC{constructor(e){super(e),this.element=new mT}},SC=LA.visitors.document.objects.Encoding.$visitor;const OC=class extends SC{constructor(e){super(e),this.element=new hT}},PC=LA.visitors.document.objects.Paths.$visitor;const AC=class extends PC{constructor(e){super(e),this.element=new TT}},$C=LA.visitors.document.objects.RequestBody.$visitor;const kC=class extends $C{constructor(e){super(e),this.element=new FT}};class TC extends(Fh(Km,Em)){constructor(e){super(e),this.element=new ig,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(DM).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const MC=TC,CC=LA.visitors.document.objects.Callback.$visitor;const FC=class extends CC{constructor(e){super(e),this.element=new aT,this.specPath=on(["document","objects","PathItem"])}},IC=LA.visitors.document.objects.Response.$visitor;const RC=class extends IC{constructor(e){super(e),this.element=new IT}};class _C extends(Fh(Km,Em)){constructor(e){super(e),this.element=new yg,this.specPath=e=>Am(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(DM).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const DC=_C,NC=LA.visitors.document.objects.Responses.$visitor;const LC=class extends NC{constructor(e){super(e),this.element=new RT}},BC=LA.visitors.document.objects.Operation.$visitor;const qC=class extends BC{constructor(e){super(e),this.element=new AT}},UC=LA.visitors.document.objects.PathItem.$visitor;const VC=class extends UC{constructor(e){super(e),this.element=new kT}},JC=LA.visitors.document.objects.SecurityScheme.$visitor;const HC=class extends JC{constructor(e){super(e),this.element=new NT}},GC=LA.visitors.document.objects.OAuthFlows.$visitor;const zC=class extends GC{constructor(e){super(e),this.element=new jT}},WC=LA.visitors.document.objects.OAuthFlow.$visitor;const KC=class extends WC{constructor(e){super(e),this.element=new wT}};const YC=class extends IA{};class XC extends(Fh(Km,Em)){constructor(e){super(e),this.element=new YC,this.specPath=on(["document","objects","PathItem"])}ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return this.element.filter(IM).forEach((e,t)=>{e.setMetaProperty("webhook-name",Bc(t))}),t}}const QC=XC,{JSONSchema:ZC,LinkDescription:eF}=EO.visitors.document.objects,tF={visitors:{value:LA.visitors.value,document:{objects:{OpenApi:{$visitor:JT,fixedFields:{openapi:LA.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:eM,servers:LA.visitors.document.objects.OpenApi.fixedFields.servers,$self:{$ref:"#/visitors/value"},paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:QC,components:{$ref:"#/visitors/document/objects/Components"},security:LA.visitors.document.objects.OpenApi.fixedFields.security,tags:LA.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:GT,fixedFields:{title:LA.visitors.document.objects.Info.fixedFields.title,description:LA.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:LA.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:LA.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:WT,fixedFields:{name:LA.visitors.document.objects.Contact.fixedFields.name,url:LA.visitors.document.objects.Contact.fixedFields.url,email:LA.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:YT,fixedFields:{name:LA.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:LA.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:rM,fixedFields:{url:LA.visitors.document.objects.Server.fixedFields.url,description:LA.visitors.document.objects.Server.fixedFields.description,variables:LA.visitors.document.objects.Server.fixedFields.variables,name:{$ref:"#/visitors/value"}}},ServerVariable:{$visitor:nM,fixedFields:{enum:LA.visitors.document.objects.ServerVariable.fixedFields.enum,default:LA.visitors.document.objects.ServerVariable.fixedFields.default,description:LA.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:uM,fixedFields:{schemas:uC,responses:LA.visitors.document.objects.Components.fixedFields.responses,parameters:LA.visitors.document.objects.Components.fixedFields.parameters,examples:LA.visitors.document.objects.Components.fixedFields.examples,requestBodies:LA.visitors.document.objects.Components.fixedFields.requestBodies,headers:LA.visitors.document.objects.Components.fixedFields.headers,securitySchemes:LA.visitors.document.objects.Components.fixedFields.securitySchemes,links:LA.visitors.document.objects.Components.fixedFields.links,callbacks:LA.visitors.document.objects.Components.fixedFields.callbacks,pathItems:dC,mediaTypes:vC}},Paths:{$visitor:AC},PathItem:{$visitor:VC,fixedFields:{$ref:LA.visitors.document.objects.PathItem.fixedFields.$ref,summary:LA.visitors.document.objects.PathItem.fixedFields.summary,description:LA.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"},query:{$ref:"#/visitors/document/objects/Operation"},servers:LA.visitors.document.objects.PathItem.fixedFields.servers,parameters:LA.visitors.document.objects.PathItem.fixedFields.parameters,additionalOperations:bC}},Operation:{$visitor:qC,fixedFields:{tags:LA.visitors.document.objects.Operation.fixedFields.tags,summary:LA.visitors.document.objects.Operation.fixedFields.summary,description:LA.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:LA.visitors.document.objects.Operation.fixedFields.operationId,parameters:LA.visitors.document.objects.Operation.fixedFields.parameters,requestBody:LA.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:LA.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:LA.visitors.document.objects.Operation.fixedFields.deprecated,security:LA.visitors.document.objects.Operation.fixedFields.security,servers:LA.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:jC,fixedFields:{description:LA.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:LA.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:yM,fixedFields:{name:LA.visitors.document.objects.Parameter.fixedFields.name,in:LA.visitors.document.objects.Parameter.fixedFields.in,description:LA.visitors.document.objects.Parameter.fixedFields.description,required:LA.visitors.document.objects.Parameter.fixedFields.required,deprecated:LA.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:LA.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:LA.visitors.document.objects.Parameter.fixedFields.style,explode:LA.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:LA.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:LA.visitors.document.objects.Parameter.fixedFields.example,examples:LA.visitors.document.objects.Parameter.fixedFields.examples,content:LA.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:kC,fixedFields:{description:LA.visitors.document.objects.RequestBody.fixedFields.description,content:MC,required:LA.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:oM,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:LA.visitors.document.objects.MediaType.fixedFields.example,examples:LA.visitors.document.objects.MediaType.fixedFields.examples,encoding:LA.visitors.document.objects.MediaType.fixedFields.encoding,itemSchema:{$ref:"#/visitors/document/objects/Schema"},prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Encoding:{$visitor:OC,fixedFields:{contentType:LA.visitors.document.objects.Encoding.fixedFields.contentType,headers:LA.visitors.document.objects.Encoding.fixedFields.headers,style:LA.visitors.document.objects.Encoding.fixedFields.style,explode:LA.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:LA.visitors.document.objects.Encoding.fixedFields.allowReserved,encoding:LA.visitors.document.objects.MediaType.fixedFields.encoding,prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Responses:{$visitor:LC,fixedFields:{default:LA.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:RC,fixedFields:{description:LA.visitors.document.objects.Response.fixedFields.description,headers:LA.visitors.document.objects.Response.fixedFields.headers,content:DC,links:LA.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:FC},Example:{$visitor:EC,fixedFields:{summary:LA.visitors.document.objects.Example.fixedFields.summary,description:LA.visitors.document.objects.Example.fixedFields.description,value:LA.visitors.document.objects.Example.fixedFields.value,externalValue:LA.visitors.document.objects.Example.fixedFields.externalValue,dataValue:{$ref:"#/visitors/value"},serializedValue:{$ref:"#/visitors/value"}}},Link:{$visitor:QT,fixedFields:{operationRef:LA.visitors.document.objects.Link.fixedFields.operationRef,operationId:LA.visitors.document.objects.Link.fixedFields.operationId,parameters:LA.visitors.document.objects.Link.fixedFields.parameters,requestBody:LA.visitors.document.objects.Link.fixedFields.requestBody,description:LA.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:gM,fixedFields:{description:LA.visitors.document.objects.Header.fixedFields.description,required:LA.visitors.document.objects.Header.fixedFields.required,deprecated:LA.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:LA.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:LA.visitors.document.objects.Header.fixedFields.style,explode:LA.visitors.document.objects.Header.fixedFields.explode,allowReserved:LA.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:LA.visitors.document.objects.Header.fixedFields.example,examples:LA.visitors.document.objects.Header.fixedFields.examples,content:LA.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:hM,fixedFields:{name:LA.visitors.document.objects.Tag.fixedFields.name,description:LA.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},summary:{$ref:"#/visitors/value"},parent:{$ref:"#/visitors/value"},kind:{$ref:"#/visitors/value"}}},Reference:{$visitor:mM,fixedFields:{$ref:LA.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...eF},Schema:{$visitor:YM,fixedFields:{...ZC.fixedFields,$defs:XM,allOf:QM,anyOf:ZM,oneOf:eC,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:tC,prefixItems:rC,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:sC,patternProperties:nC,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},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:oC,fixedFields:{propertyName:LA.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:LA.visitors.document.objects.Discriminator.fixedFields.mapping,defaultMapping:{$ref:"#/visitors/value"}}},XML:{$visitor:aC,fixedFields:{name:LA.visitors.document.objects.XML.fixedFields.name,namespace:LA.visitors.document.objects.XML.fixedFields.namespace,prefix:LA.visitors.document.objects.XML.fixedFields.prefix,attribute:LA.visitors.document.objects.XML.fixedFields.attribute,wrapped:LA.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:HC,fixedFields:{type:LA.visitors.document.objects.SecurityScheme.fixedFields.type,description:LA.visitors.document.objects.SecurityScheme.fixedFields.description,name:LA.visitors.document.objects.SecurityScheme.fixedFields.name,in:LA.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:LA.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:LA.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:LA.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl,oauth2MetadataUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:zC,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"},deviceAuthorization:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:KC,fixedFields:{authorizationUrl:LA.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:LA.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:LA.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:LA.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:aM}},extension:{$visitor:LA.visitors.document.extension.$visitor}}}},rF=e=>{if(Co(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},sF={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_2Element:["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"],...Mc},nF={namespace:e=>{const{base:t}=e;return t.register("callback",aT),t.register("components",lT),t.register("contact",uT),t.register("discriminator",pT),t.register("encoding",hT),t.register("example",dT),t.register("externalDocumentation",mT),t.register("header",fT),t.register("info",yT),t.register("jsonSchemaDialect",gT),t.register("license",bT),t.register("link",xT),t.register("mediaType",ET),t.register("oAuthFlow",wT),t.register("oAuthFlows",jT),t.register("openapi",ST),t.register("openApi3_2",PT),t.register("operation",AT),t.register("parameter",$T),t.register("pathItem",kT),t.register("paths",TT),t.register("reference",CT),t.register("requestBody",FT),t.register("response",IT),t.register("responses",RT),t.register("schema",_T),t.register("securityRequirement",DT),t.register("securityScheme",NT),t.register("server",LT),t.register("serverVariable",BT),t.register("tag",qT),t.register("xml",UT),t}},iF=e=>{const t=e.reduce((t,r,s)=>{if(Lo(r)){const e=String(Bc(r.key));t.push(e)}else if(No(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t},[]);return La(t)},oF=()=>{const e=ra(nF);return{predicates:{...b,isElement:Co,isStringElement:Fo,isArrayElement:No,isObjectElement:Do,isMemberElement:Lo,isServersElement:Vf,includesClasses:Wo,hasElementSourceMap:Go},ancestorLineageToJSONPointer:iF,namespace:e}},cF=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,fo.e)(e),n=jc(tF),i=new(gc(t,n))({specObj:n});return Fc(s,i),oa(i.element,r,{toolboxCreator:oF,visitorOptions:{keyMap:sF,nodeTypeGetter:rF}})},aF=e=>(t,r={})=>cF(t,{specPath:e,...r});aT.refract=aF(["visitors","document","objects","Callback","$visitor"]),lT.refract=aF(["visitors","document","objects","Components","$visitor"]),uT.refract=aF(["visitors","document","objects","Contact","$visitor"]),dT.refract=aF(["visitors","document","objects","Example","$visitor"]),pT.refract=aF(["visitors","document","objects","Discriminator","$visitor"]),hT.refract=aF(["visitors","document","objects","Encoding","$visitor"]),mT.refract=aF(["visitors","document","objects","ExternalDocumentation","$visitor"]),fT.refract=aF(["visitors","document","objects","Header","$visitor"]),yT.refract=aF(["visitors","document","objects","Info","$visitor"]),gT.refract=aF(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),bT.refract=aF(["visitors","document","objects","License","$visitor"]),xT.refract=aF(["visitors","document","objects","Link","$visitor"]),ET.refract=aF(["visitors","document","objects","MediaType","$visitor"]),wT.refract=aF(["visitors","document","objects","OAuthFlow","$visitor"]),jT.refract=aF(["visitors","document","objects","OAuthFlows","$visitor"]),ST.refract=aF(["visitors","document","objects","OpenApi","fixedFields","openapi"]),PT.refract=aF(["visitors","document","objects","OpenApi","$visitor"]),AT.refract=aF(["visitors","document","objects","Operation","$visitor"]),$T.refract=aF(["visitors","document","objects","Parameter","$visitor"]),kT.refract=aF(["visitors","document","objects","PathItem","$visitor"]),TT.refract=aF(["visitors","document","objects","Paths","$visitor"]),CT.refract=aF(["visitors","document","objects","Reference","$visitor"]),FT.refract=aF(["visitors","document","objects","RequestBody","$visitor"]),IT.refract=aF(["visitors","document","objects","Response","$visitor"]),RT.refract=aF(["visitors","document","objects","Responses","$visitor"]),_T.refract=aF(["visitors","document","objects","Schema","$visitor"]),DT.refract=aF(["visitors","document","objects","SecurityRequirement","$visitor"]),NT.refract=aF(["visitors","document","objects","SecurityScheme","$visitor"]),LT.refract=aF(["visitors","document","objects","Server","$visitor"]),BT.refract=aF(["visitors","document","objects","ServerVariable","$visitor"]),qT.refract=aF(["visitors","document","objects","Tag","$visitor"]),UT.refract=aF(["visitors","document","objects","XML","$visitor"]);class lF extends KA{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.2.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 ss(this.filterByFormat(e))}}const uF=new lF("application/vnd.oai.openapi;version=3.2.0","application/vnd.oai.openapi+json;version=3.2.0","application/vnd.oai.openapi+yaml;version=3.2.0");const pF=class extends E${detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.2\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-2-swagger-client",mediaTypes:new lF(...uF.filterByFormat("generic"),...uF.filterByFormat("json")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||B()(t=this.fileExtensions).call(t,e.extension),n=B()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)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 x$("openapi-json-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Oo,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=PT.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new x$(`Error parsing "${e.uri}"`,{cause:t})}}};const hF=class extends E${detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.2\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.2\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-2-swagger-client",mediaTypes:new lF(...uF.filterByFormat("generic"),...uF.filterByFormat("yaml")),...e})}async canParse(e){var t,r;const s=0===this.fileExtensions.length||B()(t=this.fileExtensions).call(t,e.extension),n=B()(r=this.mediaTypes).call(r,e.mediaType);if(!s)return!1;if(n)return!0;if(!n)try{const t=e.toString();return at.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new x$("openapi-yaml-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Oo,r=e.toString();try{const e=at.load(r,{schema:ht});if(this.allowEmpty&&void 0===e)return t;const s=PT.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new x$(`Error parsing "${e.uri}"`,{cause:t})}}},dF=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),mF=e=>{const t=Rn(e);return wc("#",t)},fF=(e,t)=>{const r=(e=>{if(!dF(e))throw new z$(e);return e})(e),s=J$(e=>UM(e)&&Bc(e.$anchor)===r,t);if(an(s))throw new G$(`Evaluation failed on token: "${r}"`);return s},yF=(e,t)=>{if(void 0===t.$ref)return;const r=Rn(Bc(t.$ref)),s=Bc(t.meta.get("ancestorsSchemaIdentifiers"));return`${zr((e,t)=>Nn(e,Ln(_n(t))),e,[...s,Bc(t.$ref)])}${"#"===r?"":r}`},vF=e=>{if(vF.cache.has(e))return vF.cache.get(e);const t=_T.refract(e);return vF.cache.set(e,t),t};vF.cache=new WeakMap;const gF=e=>Ho(e)?vF(e):e,bF=(e,t)=>{const{cache:r}=bF,s=_n(e),n=e=>UM(e)&&void 0!==e.$id;if(!r.has(t)){const e=X$(n,t);r.set(t,Array.from(e))}const i=r.get(t).find(e=>((e,t)=>{if(void 0===t.$id)return;const r=Bc(t.meta.get("ancestorsSchemaIdentifiers"));return zr((e,t)=>Nn(e,Ln(_n(t))),e,r)})(s,e)===s);if(an(i))throw new Z$(`Evaluation failed on URI: "${e}"`);return dF(mF(e))?fF(mF(e),i):Ka(i,ha(e))};bF.cache=new WeakMap;const xF=Fc[Symbol.for("nodejs.util.promisify.custom")],EF=new U$,wF=e=>{try{return!!new URL(e).protocol}catch{return!1}},jF=(e,t,r,s)=>{Lo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class SF{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;$selfValue;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new pk,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map,$selfValue:c,errorContext:a=[],errorPropagationCache:l=new Map,pendingPropagations:u=[]}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new pk(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o,this.$selfValue=c,this.errorContext=a,this.errorPropagationCache=l,this.pendingPropagations=u}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let t=this.errorContext.length-1;t>=0;t-=1)if(this.errorContext[t]===e){this.errorContext.splice(t,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach(({referencingElement:t,referencedElement:r})=>{const s=this.errorPropagationCache.get(r);Array.isArray(s)&&s.length>0&&s.forEach(r=>{const s=this.errorPropagationCache.get(t);var n;null!=s&&s.includes(r)||(null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.errors.push({error:r,refEl:t}),s?s.push(r):this.errorPropagationCache.set(t,[r]),e=!0)})}),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,t,r){var s;if(null!==(s=this.options.dereference.dereferenceOpts)&&void 0!==s&&s.continueOnError){var n,i,o;const{directAncestors:s,isExternalReference:l=!1}=null!=r?r:{},u=null!==(n=null===(i=this.options.dereference.dereferenceOpts)||void 0===i?void 0:i.skipNestedExternal)&&void 0!==n&&n,p=l&&u;if(s&&!p){for(const t of s){const r=this.errorPropagationCache.get(t);r?r.push(e):this.errorPropagationCache.set(t,[e])}const t=[...s].find(e=>Do(e)&&e.getMetaProperty("ref-referencing-element"));var c;if(t)null===(c=this.options.dereference.dereferenceOpts)||void 0===c||c.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}if(null===(o=this.options.dereference.dereferenceOpts)||void 0===o||o.errors.push({error:e,refEl:t}),!p){const r=new Set(this.errorContext);r.delete(t),this.popErrorContext(t);for(const t of r){var a;null===(a=this.options.dereference.dereferenceOpts)||void 0===a||a.errors.push({error:e,refEl:t})}}return}throw e}getNestedVisitorOptions(e){var t,r;return{...this.options,resolve:{...this.options.resolve,external:(null===(t=this.options.dereference)||void 0===t||null===(t=t.dereferenceOpts)||void 0===t||!t.skipNestedExternal||!Bc(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...null===(r=this.options.dereference)||void 0===r?void 0:r.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return Nn(this.reference.uri,Ln(_n(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new ik(`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(D$(t,"uri"));const s=await uk(Bn(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new QA({uri:t,value:Sc(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new QA({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(Co));return[new pk(...this.ancestors,t),t]}extractSelfFromReference(e){try{const t=e.value.result;let r;if(t instanceof fo.Hg)if("openapi-3-2"===t.element)r=t;else{const e=J$(e=>"openapi-3-2"===e.element,t);e&&(r=e)}if(r&&MM(r)&&Fo(r.$self)){const t=Bc(r.$self);if(t)return wF(t)?Ln(_n(t)):Nn(e.uri,Ln(_n(t)))}}catch{}}OpenApi3_2Element={enter:e=>{if(Fo(e.$self)){const t=Bc(e.$self);t&&(wF(t)?this.$selfValue=Ln(_n(t)):this.$selfValue=Nn(this.reference.uri,Ln(_n(t))))}},leave:(e,t,r,s,n,i)=>{var o,c;if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.propagateErrors(),null===(c=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===c||!c.dereferenceDiscriminatorMapping)return;const a=Ac(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,jF),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,c;if(this.indirections.includes(e))return!1;const[a,l]=this.toAncestorLineage([...n,r]),u=Bc(e.$ref),p=this.toBaseURI(u),h=_n(this.reference.uri)===p,d=!h;if(!this.options.resolve.internal&&h)return!1;if(!this.options.resolve.external&&d)return!1;let m;try{m=await this.toReference(Bc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}const f=Nn(p,Bc(e.$ref));this.indirections.push(e);const y=ha(f);let v;try{v=Ka(m.value.result,y)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if(v.id=EF.identify(v),Ho(v)){const t=Bc(e.meta.get("referenced-element")),r=`${t}-${Bc(EF.identify(v))}`;if(this.refractCache.has(r))v=this.refractCache.get(r);else if(Am(v))v=CT.refract(v),v.setMetaProperty("referenced-element",t),this.refractCache.set(r,v);else{v=this.namespace.getElementClass(t).refract(v),this.refractCache.set(r,v)}}if(e===v){const t=new Ar("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if(a.includes(v)){if(m.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Ar("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if("replace"===this.options.dereference.circular){var g,b;const t=new fo.sI(v.id,{type:"reference",uri:m.uri,$ref:Bc(e.$ref)}),s=(null!==(g=null===(b=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===b?void 0:b.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,jF),!r&&s}}const x=_n(m.refSet.rootRef.uri)!==m.uri,E=["error","replace"].includes(this.options.dereference.circular);if((d||x||DM(v)||E)&&!a.includesCycle(v)){l.add(e),this.errorContext.push(e);const t=d||x?this.extractSelfFromReference(m):this.$selfValue,r=new SF({reference:m,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{v=await xF(v,r,{keyMap:sF,nodeTypeGetter:rF})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}l.delete(e),this.popErrorContext(e)}null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:v}),this.indirections.pop();const w=Ac(v);w.setMetaProperty("id",EF.generateId()),w.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),description:Bc(e.description),summary:Bc(e.summary)});const j=d||x?this.extractSelfFromReference(m)||m.uri:this.$selfValue||m.uri;return w.setMetaProperty("ref-origin",j),w.setMetaProperty("ref-referencing-element-id",Sc(EF.identify(e))),null!==(c=this.options.dereference.dereferenceOpts)&&void 0!==c&&c.continueOnError&&w.setMetaProperty("ref-referencing-element",e),Do(v)&&Do(w)&&(e.hasKey("description")&&"description"in v&&(w.remove("description"),w.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in v&&(w.remove("summary"),w.set("summary",e.get("summary")))),i.replaceWith(w,jF),!r&&w}async PathItemElement(e,t,r,s,n,i){var o;if(!Fo(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]),l=Bc(e.$ref),u=this.toBaseURI(l),p=_n(this.reference.uri)===u,h=!p;if(!this.options.resolve.internal&&p)return;if(!this.options.resolve.external&&h)return;let d;try{d=await this.toReference(Bc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}const m=Nn(u,Bc(e.$ref));this.indirections.push(e);const f=ha(m);let y;try{y=Ka(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if(y.id=EF.identify(y),Ho(y)){const e=`path-item-${Bc(EF.identify(y))}`;this.refractCache.has(e)?y=this.refractCache.get(e):(y=kT.refract(y),this.refractCache.set(e,y))}if(e===y){const t=new Ar("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if(c.includes(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Ar("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if("replace"===this.options.dereference.circular){var v,g;const t=new fo.sI(y.id,{type:"path-item",uri:d.uri,$ref:Bc(e.$ref)}),s=(null!==(v=null===(g=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===g?void 0:g.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,jF),!r&&s}}const b=_n(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||IM(y)&&Fo(y.$ref)||x)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=h||b?this.extractSelfFromReference(d):this.$selfValue,r=new SF({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await xF(y,r,{keyMap:sF,nodeTypeGetter:rF})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop(),IM(y)){var E;const t=new kT([...y.content],Sc(y.meta),Sc(y.attributes));t.setMetaProperty("id",EF.generateId()),e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)});const r=h||b?this.extractSelfFromReference(d)||d.uri:this.$selfValue||d.uri;t.setMetaProperty("ref-origin",r),t.setMetaProperty("ref-referencing-element-id",Sc(EF.identify(e))),null!==(E=this.options.dereference.dereferenceOpts)&&void 0!==E&&E.continueOnError&&t.setMetaProperty("ref-referencing-element",e),y=t}return i.replaceWith(y,jF),r?void 0:y}async LinkElement(e,t,r,s,n,i){if(!Fo(e.operationRef)&&!Fo(e.operationId))return;if(Fo(e.operationRef)&&Fo(e.operationId)){const t=new Ar("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(Fo(e.operationRef)){var c;const t=Bc(e.operationRef),s=ha(t),n=this.toBaseURI(t),a=_n(this.reference.uri)===n,l=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&l)return;let u;try{u=await this.toReference(Bc(e.operationRef)),o=Ka(u.value.result,s)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:l})}if(!o){const t=new Ar("OperationElement could not be resolved.");return this.handleDereferenceError(t,e,{isExternalReference:l})}let p=o;if(Ho(p)){const e=`operation-${Bc(EF.identify(p))}`;this.refractCache.has(e)?p=this.refractCache.get(e):(p=AT.refract(p),this.refractCache.set(e,p))}p=Ac(p);const h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=Ac(e);return null===(c=d.operationRef)||void 0===c||c.meta.set("operation",p),i.replaceWith(d,jF),r?void 0:d}if(Fo(e.operationId)){var a;const t=Bc(e.operationId);let s;try{s=await this.toReference(Bn(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=J$(e=>CM(e)&&Co(e.operationId)&&e.operationId.equals(t),s.value.result),an(o)){const r=new Ar(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=Ac(e);return null===(a=n.operationId)||void 0===a||a.meta.set("operation",o),i.replaceWith(n,jF),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!Fo(e.externalValue))return;if(e.hasKey("value")&&Fo(e.externalValue)){const t=new Ar("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=Bc(e.externalValue),c=this.toBaseURI(o),a=_n(this.reference.uri)===c,l=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&l)return;let u;try{u=await this.toReference(Bc(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:l})}const p=Ac(u.value.result),h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=Ac(e);return d.value=p,i.replaceWith(d,jF),r?void 0:d}async MemberElement(e,t,r,s,n,i){var o;const c=n[n.length-1];if(!Do(c)||!c.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!Fo(e.key)||!Fo(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[a,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(UM),p=Sc(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Bc(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new _T({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new SF({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:this.$selfValue});let y;try{y=await xF(m,f,{keyMap:sF,nodeTypeGetter:rF})}catch(t){const r=!d.startsWith("#");return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:r})}l.delete(m),this.indirections.pop();const v=Ac(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,jF),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!Fo(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(Bn(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a})}let{uri:u}=l;const p=yF(u,e),h=_n(p),d=new p$({uri:h}),m=L$(e=>e.canRead(d),this.options.resolve.resolvers),f=!m;let y,v=_n(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=gF(l.value.result);if(y=bF(e,t),y=gF(y),y.id=EF.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=_n(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(Bn(p));const e=ha(p),t=gF(l.value.result);y=Ka(t,e),y=gF(y),y.id=EF.identify(y)}}catch(t){if(!(f&&t instanceof Z$))return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g});if(dF(mF(p))){if(v=_n(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Bn(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=mF(p),r=gF(l.value.result);try{y=fF(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=gF(y),y.id=EF.identify(y)}else{if(u=this.toBaseURI(p),v=_n(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Bn(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=ha(p),r=gF(l.value.result);try{y=Ka(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=gF(y),y.id=EF.identify(y)}}if(e===y){const t=new Ar("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(this.indirections.length>this.options.dereference.maxDepth){const t=new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if(c.includes(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Ar("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}if("replace"===this.options.dereference.circular){var b,x;const t=new fo.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Bc(e.$ref)}),s=(null!==(b=null===(x=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===x?void 0:x.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,jF),!r&&s}}const E=_n(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||UM(y)&&Fo(y.$ref)||w)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=g||E?this.extractSelfFromReference(l):this.$selfValue,r=new SF({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{y=await xF(y,r,{keyMap:sF,nodeTypeGetter:rF})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}a.delete(e),this.popErrorContext(e)}if(null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError&&this.pendingPropagations.push({referencingElement:e,referencedElement:y}),this.indirections.pop(),VM(y)){const t=Sc(y);t.setMetaProperty("id",EF.generateId()),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),$refBaseURI:p});const s=g?this.extractSelfFromReference(l)||l.uri:this.$selfValue||l.uri;return t.setMetaProperty("ref-origin",s),t.setMetaProperty("ref-referencing-element-id",Sc(EF.identify(e))),i.replaceWith(t,jF),!r&&t}if(UM(y)){var j,S;const t=new _T([...y.content],Sc(y.meta),Sc(y.attributes));t.setMetaProperty("id",EF.generateId()),e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),$refBaseURI:p});const r=g?this.extractSelfFromReference(l)||l.uri:this.$selfValue||l.uri;if(t.setMetaProperty("ref-origin",r),t.setMetaProperty("ref-referencing-element-id",Sc(EF.identify(e))),null!==(j=this.options.dereference.dereferenceOpts)&&void 0!==j&&j.continueOnError&&t.setMetaProperty("ref-referencing-element",e),null!==(S=this.options.dereference.strategyOpts["openapi-3-2"])&&void 0!==S&&S.dereferenceDiscriminatorMapping){var O;const e=n[n.length-1],r=[...a].findLast(UM),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Bc(t.getMetaProperty("schemaName"));if(i&&s&&null!=e&&null!==(O=e.classes)&&void 0!==O&&O.contains("json-schema-allOf")){var P;const e=null!==(P=this.allOfDiscriminatorMapping.get(i))&&void 0!==P?P:[];e.push(r),this.allOfDiscriminatorMapping.set(i,e)}}y=t}return i.replaceWith(y,jF),r?void 0:y}}const OF=SF,PF=Fc[Symbol.for("nodejs.util.promisify.custom")];const AF=class extends N${constructor(e){super({...null!=e?e:{},name:"openapi-3-2"})}canDereference(e){var t;return"text/plain"!==e.mediaType?uF.includes(e.mediaType):MM(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=ra(nF),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new ZA,i=new ZA;let o,c=n;n.has(e.uri)?o=n.find(D$(e.uri,"uri")):(o=new QA({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map(e=>new QA({...e,value:Sc(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),c=i);const a=new OF({reference:o,namespace:s,options:t}),l=await PF(c.rootRef.value,a,{keyMap:sF,nodeTypeGetter:rF});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new QA({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>n.add(e)),null===t.dereference.refSet&&n.clean(),i.clean(),l}},$F=e=>{const t=(e=>e.slice(2))(e);return t.reduce((e,r,s)=>{if(Lo(r)){const t=String(Bc(r.key));e.push(t)}else if(No(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e},[])};const kF=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Do(e.properties)&&e.properties.forEach(t=>{if(Do(t))try{const e=this.modelPropertyMacro(Bc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...$F([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const TF=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!No(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...$F([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(UM)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...$F([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=$k.all([...t.content,e],{customMerge:e=>"enum"===Bc(e)?(e,t)=>{if(Wo(["json-schema-enum"],e)&&Wo(["json-schema-enum"],t)){const r=(e,t)=>!(No(e)||No(t)||Do(e)||Do(t))&&e.equals(Bc(t)),s=Ac(e);return s.content=jk(r)([...e.content,...t.content]),s}return $k(e,t)}:$k});if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}};const MF=class{parameterMacro;options;#s;OperationElement={enter:e=>{this.#s=e},leave:()=>{this.#s=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#s?Bc(this.#s):null,o=Bc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=$F([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},CF=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const FF=class extends $r{},{wrapError:IF}=gi,RF=Fc[Symbol.for("nodejs.util.promisify.custom")],_F=new U$,DF=(e,t,r,s)=>{Lo(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class NF extends OF{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{var o,c;if(B()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Bc(e.$ref)),l=_n(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(Bc(e.$ref)),h=Nn(a,Bc(e.$ref));this.indirections.push(e);const d=ha(h);let m=Ka(p.value.result,d);if(m.id=_F.identify(m),Ho(m)){const t=Bc(e.meta.get("referenced-element")),r=`${t}-${Bc(_F.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(Am(m))m=CT.refract(m),m.setMetaProperty("referenced-element",t),this.refractCache.set(r,m);else{m=this.namespace.getElementClass(t).refract(m),this.refractCache.set(r,m)}}if(e===m)throw new Ar("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(B()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ar("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new fo.sI(m.id,{type:"reference",uri:p.uri,$ref:Bc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,DF),!r&&s}}const f=_n(p.refSet.rootRef.uri)!==p.uri,y=B()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||DM(m)||y)&&!t.includesCycle(m)){s.add(e);const i=new NF({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...$F([...n,r,e]),"$ref"]});m=await RF(m,i,{keyMap:sF,nodeTypeGetter:rF}),s.delete(e)}this.indirections.pop();const v=Ac(m);if(v.setMetaProperty("ref-fields",{$ref:Bc(e.$ref),description:Bc(e.description),summary:Bc(e.summary)}),v.setMetaProperty("ref-origin",p.uri),v.setMetaProperty("ref-referencing-element-id",Sc(_F.identify(e))),Do(m)&&(e.hasKey("description")&&"description"in m&&(v.remove("description"),v.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in m&&(v.remove("summary"),v.set("summary",e.get("summary")))),this.allowMetaPatches&&Do(v)&&!v.hasKey("$$ref")){const e=Nn(a,h);v.set("$$ref",e)}return i.replaceWith(v,DF),!r&&v}catch(t){const s=CF(t),i=IF(s,{baseDoc:this.reference.uri,$ref:Bc(e.$ref),pointer:ha(Bc(e.$ref)),fullPath:this.basePath??[...$F([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{var o,c;if(!Fo(e.$ref))return;if(B()(o=this.indirections).call(o,e))return!1;if(Wo(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Bc(e.$ref)),l=_n(this.reference.uri)===a,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(Bc(e.$ref)),h=Nn(a,Bc(e.$ref));this.indirections.push(e);const d=ha(h);let m=Ka(p.value.result,d);if(m.id=_F.identify(m),Ho(m)){const e=`path-item-${Bc(_F.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=kT.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Ar("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(B()(t).call(t,m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ar("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new fo.sI(m.id,{type:"path-item",uri:p.uri,$ref:Bc(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,DF),!r&&s}}const f=_n(p.refSet.rootRef.uri)!==p.uri,y=B()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||IM(m)&&Fo(m.$ref)||y)&&!t.includesCycle(m)){s.add(e);const i=new NF({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...$F([...n,r,e]),"$ref"]});m=await RF(m,i,{keyMap:sF,nodeTypeGetter:rF}),s.delete(e)}if(this.indirections.pop(),IM(m)){const t=new kT([...m.content],Sc(m.meta),Sc(m.attributes));if(e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Sc(_F.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Nn(a,h);t.set("$$ref",e)}m=t}return i.replaceWith(m,DF),r?void 0:m}catch(t){const s=CF(t),i=IF(s,{baseDoc:this.reference.uri,$ref:Bc(e.$ref),pointer:ha(Bc(e.$ref)),fullPath:this.basePath??[...$F([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{var o,c;if(!Fo(e.$ref))return;if(B()(o=this.indirections).call(o,e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let a=await this.toReference(Bn(this.reference.uri)),{uri:l}=a;const u=yF(l,e),p=_n(u),h=new p$({uri:p}),d=!this.options.resolve.resolvers.some(e=>e.canRead(h)),m=!d;let f,y=_n(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(u);const e=u,t=gF(a.value.result);if(f=bF(e,t),f=gF(f),f.id=_F.identify(f),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(l=this.toBaseURI(u),y=_n(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Bn(u));const e=ha(u),t=gF(a.value.result);f=Ka(t,e),f=gF(f),f.id=_F.identify(f)}}catch(e){if(!(m&&e instanceof Z$))throw e;if(dF(mF(u))){if(y=_n(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Bn(u));const e=mF(u),t=gF(a.value.result);f=fF(e,t),f=gF(f),f.id=_F.identify(f)}else{if(l=this.toBaseURI(Bc(u)),y=_n(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Bn(u));const e=ha(u),t=gF(a.value.result);f=Ka(t,e),f=gF(f),f.id=_F.identify(f)}}if(e===f)throw new Ar("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new nk(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(B()(t).call(t,f)){if(a.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Ar("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new fo.sI(f.id,{type:"json-schema",uri:a.uri,$ref:Bc(e.$ref),baseURI:Nn(l,u),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,DF),!r&&s}}const g=_n(a.refSet.rootRef.uri)!==a.uri,b=B()(c=["error","replace"]).call(c,this.options.dereference.circular);if((v||g||UM(f)&&Fo(f.$ref)||b)&&!t.includesCycle(f)){s.add(e);const i=new NF({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...$F([...n,r,e]),"$ref"]});f=await RF(f,i,{keyMap:sF,nodeTypeGetter:rF}),s.delete(e)}if(this.indirections.pop(),VM(f)){const t=Sc(f);return t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Sc(_F.identify(e))),i.replaceWith(t,DF),!r&&t}if(UM(f)){const t=new _T([...f.content],Sc(f.meta),Sc(f.attributes));if(e.forEach((e,r,s)=>{t.remove(Bc(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Bc(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Sc(_F.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Nn(l,u);t.set("$$ref",e)}f=t}return i.replaceWith(f,DF),r?void 0:f}catch(t){const s=CF(t),i=new FF(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Bc(e.$ref),fullPath:this.basePath??[...$F([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=CF(t),i=IF(s,{baseDoc:this.reference.uri,externalValue:Bc(e.externalValue),fullPath:this.basePath??[...$F([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const LF=NF,BF=oc[Symbol.for("nodejs.util.promisify.custom")];const qF=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new LF({...n,options:s})),"function"==typeof t&&i.push(new kF({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new TF({options:s})),"function"==typeof e&&i.push(new MF({parameterMacro:e,options:s}));const o=BF(i,{nodeTypeGetter:rF});Object.assign(this,o)}},UF=Fc[Symbol.for("nodejs.util.promisify.custom")];const VF=class extends AF{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-2-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=ra(nF),s=t.dereference.refSet??new ZA,n=new ZA;let i,o=s;s.has(e.uri)?i=s.find(t=>t.uri===e.uri):(i=new QA({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map(e=>new QA({...e,value:Sc(e.value)})).forEach(e=>n.add(e)),i=n.find(t=>t.uri===e.uri),o=n);const c=new qF({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),a=await UF(o.rootRef.value,c,{keyMap:sF,nodeTypeGetter:rF});return t.dereference.immutable&&n.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new QA({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>s.add(e)),null===t.dereference.refSet&&s.clean(),n.clean(),a}},JF=e=>{const t=Bc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new fo.Sh({$ref:t},Sc(r.meta),Sc(r.attributes))},HF=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:c=!1,useCircularStructures:a=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=e;try{const{cache:m}=HF,f=d.find(e=>e.match(t)),y=Fn(Dn())?Dn():w,v=At(e),g=Nn(y,v);let b;m.has(t)?b=m.get(t):(b=PT.refract(t),b.classes.push("result"),m.set(t,b));const x=new Oo([b]),E=La(o),j=""===E?"":`#${E}`,S=Ka(b,E),O=new QA({uri:g,value:x}),P=new ZA({refs:[O]});""!==E&&(P.rootRef=void 0);const A=[new Set([S])],$=[],k=await g$(S,{resolve:{baseURI:`${g}${j}`,resolvers:[new M$({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new S$]},parse:{mediaType:uF.latest(),parsers:[new pF({allowEmpty:!1,sourceMap:!1}),new hF({allowEmpty:!1,sourceMap:!1}),new F$({allowEmpty:!1,sourceMap:!1}),new I$({allowEmpty:!1,sourceMap:!1}),new w$({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new VF({allowMetaPatches:c,useCircularStructures:a,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:A})],refSet:P,dereferenceOpts:{errors:$},immutable:!1,circular:a?"ignore":"replace",circularReplacer:a?r$.dereference.circularReplacer:JF}}),T=pa(S,k,b),M=l?T:f.normalize(T);return{spec:Bc(M),errors:$}}catch(e){if(e instanceof Ua)return{spec:t,errors:[]};throw e}};HF.cache=new WeakMap;const GF=HF;const zF=class{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);Do(e)||(e=new fo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);No(t)||(t=new fo.wE,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},WF=e=>e.replace(/\s/g,""),KF=e=>e.replace(/\W/gi,"_"),YF=(e,t,r)=>{const s=WF(e);return s.length>0?KF(s):((e,t)=>`${KF(WF(t.toLowerCase()))}${KF(WF(e))}`)(t,r)},XF=({storageField:e="x-normalized",operationIdNormalizer:t=YF}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],c=[],a=[];let l;return{visitor:{OpenApi3_2Element:{enter(t){l=new zF(t,e,"operation-ids")},leave(){const e=Yk(e=>Bc(e.operationId),c);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)}))}),a.forEach(e=>{if(void 0===e.operationId)return;const t=String(Bc(e.operationId)),r=c.find(e=>Bc(e.meta.get("originalOperationId"))===t);void 0!==r&&(e.operationId=Sc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),c.length=0,a.length=0,l=void 0}},PathItemElement:{enter(e){const t=Qr("path",Bc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,a,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Bc(e.operationId)),d=ss(o),m=Qr("method",Bc(e.meta.get("http-method"))),f=t(h,d,m);h!==f&&(e.operationId=new i.elements.String(f),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),c.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&a.push(e)}}}}},QF=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(Bc(e.name)===Bc(t.name)&&Bc(e.in)===Bc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_2Element:{enter(t){o=new zF(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:c}=e;r.isArrayElement(c)?i.push([...c.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,c,a){const l=ss(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...a,r,e]);if(o.includes(u))return;const p=V$([],["parameters","content"],e),h=jk(n,[...p,...l]);e.parameters=new Bg(h),o.append(u)}}}}},ZF=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_2Element:{enter(t){i=new zF(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,c,a){if(a.some(r.isComponentsElement))return;const l=s([...a,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new Yg(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},eI=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new zF(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>Sc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Sc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Sc(e.example)),n.append(u)))}}}}}},tI=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new zF(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,c){var a,l;if(c.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(a=e.schema)||void 0===a?void 0:a.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...c,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map(e=>Sc.safe(e.value));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Sc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Sc(e.example)),n.append(u)))}}}}}},rI=e=>{if(!Do(e))return e;const t=[XF({operationIdNormalizer:(e,t,r)=>to({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),QF(),ZF(),eI(),tI()];return oa(e,t,{toolboxCreator:oF,visitorOptions:{keyMap:sF,nodeTypeGetter:rF}})},sI={name:"openapi-3-2-apidom",match:e=>co(e),normalize(e){if(!Co(e)&&Qi(e)&&!e.$$normalized){const r=(t=rI,e=>{const r=PT.refract(e);r.classes.push("result");const s=t(r),n=Bc(s);return GF.cache.set(n,s),Bc(s)})(e);return r.$$normalized=!0,r}var t;return Co(e)?rI(e):e},resolve:async e=>GF(e)};function nI(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:s}=e,n=co(e);for(const i in s){for(const n in s[i]){if("PARAMETERS"===n.toUpperCase()||"additionalOperations"===n)continue;const o=s[i][n];if(!o||"object"!=typeof o)continue;const c={spec:e,pathName:i,method:n.toUpperCase(),operation:o},a=t(c);if(r&&a)return c}const{additionalOperations:o}=s[i];if(n&&o&&"object"==typeof o)for(const s of Object.keys(o)){const n=o[s];if(!n||"object"!=typeof n)continue;const c={spec:e,pathName:i,method:s,operation:n},a=t(c);if(r&&a)return c}}}function iI(e,t){return`${t.toLowerCase()}-${e}`}function oI(e,t){return e&&e.paths?function(e,t){return nI(e,t,!0)||null}(e,({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[to(s,e,r),iI(e,r),n].some(e=>e&&e===t)}):null}const{q$:cI}=n,aI=cI,lI=()=>null,uI={mapTagOperations:function({spec:e,cb:t=lI,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return nI(e,({pathName:o,method:c,operation:a})=>{var l;(a.tags?(l=a.tags,Array.isArray(l)?l:[l]):[r]).forEach(r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=to(a,o,c,{v2OperationIdCompatibilityMode:s}),p=t({spec:e,pathName:o,method:c,operation:a,operationId:u});if(n[u])n[u]+=1,l[`${u}${n[u]}`]=p;else if(void 0!==l[u]){const e=n[u]||1;n[u]=e+1,l[`${u}${n[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p})}),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:s})=>(n,i={})=>{const{requestInterceptor:o,responseInterceptor:c,userFetch:a}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:c,userFetch:a,pathName:t,method:r,parameters:n,operationId:s,...i})}}};const pI=(e,t,r,s,n)=>{if(e===ga.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",va.charsToString(t,r,s)])}return ga.SEM_OK},hI=(e,t,r,s,n)=>{if(e===ga.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",va.charsToString(t,r,s)])}return ga.SEM_OK},dI=(e,t,r,s,n)=>{if(e===ga.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",va.charsToString(t,r,s)])}return ga.SEM_OK},mI=(e,t,r,s,n)=>{if(e===ga.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",va.charsToString(t,r,s)])}return ga.SEM_OK},fI=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\n",e+='server-variable = "{" server-variable-name "}"\n',e+="server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n",e+="; https://www.rfc-editor.org/errata/eid6937\n",e+="literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n',e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n; https://www.rfc-editor.org/errata/eid6937\nliterals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},yI=e=>{const t=new da;t.ast=new ma,t.ast.callbacks["server-url-template"]=pI,t.ast.callbacks["server-variable"]=hI,t.ast.callbacks["server-variable-name"]=dI,t.ast.callbacks.literals=mI;return{result:t.parse(fI,"server-url-template",e),ast:t.ast}},vI=(e,{strict:t=!1}={})=>{try{const r=yI(e);if(!r.result.success)return!1;const s=[];r.ast.translate(s);const n=s.some(([e])=>"server-variable"===e);if(!t&&!n)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||n}catch{return!1}},gI=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),bI=["literals","server-variable-name"],xI=(e,t,r={})=>{const s={...{encoder:gI},...r},n=yI(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter(([e])=>bI.includes(e)).map(([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r);return o.join("")};function EI(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+="path-template = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+='slash = "/"\n',e+="path-literal = 1*pchar\n",e+='template-expression = "{" template-expression-param-name "}"\n',e+="template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+='pchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\n",e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\n; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npath-template = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nslash = "/"\npath-literal = 1*pchar\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\npct-encoded = "%" HEXDIG HEXDIG\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}}const wI=(e,t,r,s,n)=>(e===ga.SEM_PRE?n.push(["slash",va.charsToString(t,r,s)]):ga.SEM_POST,ga.SEM_OK),jI=(e,t,r,s,n)=>{if(e===ga.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",va.charsToString(t,r,s)])}return ga.SEM_OK},SI=(e,t,r,s,n)=>(e===ga.SEM_PRE?n.push(["path-literal",va.charsToString(t,r,s)]):ga.SEM_POST,ga.SEM_OK),OI=(e,t,r,s,n)=>(e===ga.SEM_PRE?n.push(["template-expression",va.charsToString(t,r,s)]):ga.SEM_POST,ga.SEM_OK),PI=(e,t,r,s,n)=>(e===ga.SEM_PRE?n.push(["template-expression-param-name",va.charsToString(t,r,s)]):ga.SEM_POST,ga.SEM_OK),AI=new EI,$I=e=>{const t=new da;t.ast=new ma,t.ast.callbacks["path-template"]=jI,t.ast.callbacks.slash=wI,t.ast.callbacks["path-literal"]=SI,t.ast.callbacks["template-expression"]=OI,t.ast.callbacks["template-expression-param-name"]=PI;return{result:t.parse(AI,"path-template",e),ast:t.ast}};const kI=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),TI=["slash","path-literal","template-expression-param-name"],MI=(e,t,r={})=>{const s={...{encoder:kI},...r},n=$I(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter(([e])=>TI.includes(e)).map(([e,r])=>"template-expression-param-name"===e?Object.prototype.hasOwnProperty.call(t,r)?s.encoder(t[r],r):`{${r}}`:r);return o.join("")};new EI,new da;const CI={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:s}){if(void 0!==t){const n=e.url.replace(s,""),i=MI(n,{[r.name]:t});e.url=s+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function FI(e,t){return B()(t).call(t,"application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map(e=>{try{return JSON.parse(e)}catch(t){return e}})),JSON.stringify(e)):String(e)}function II(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e="";return e+="; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\n',e+="lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\n",e+='lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\n',e+='lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\n',e+='lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\n',e+="lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\n",e+="lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\n",e+="lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\n",e+="lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n",e+=" ; Allow all printable characters except CTLs, semicolon and SP\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='cookie-string = cookie-pair *( ";" SP cookie-pair )\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n",e+="; https://www.rfc-editor.org/errata/eid5518\n",e+='cookie-pair = cookie-name "=" cookie-value\n',e+="cookie-name = token\n",e+="cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n",e+=" ; https://www.rfc-editor.org/errata/eid8242\n",e+="cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n",e+=" ; US-ASCII characters excluding CTLs,\n",e+=" ; whitespace, DQUOTE, comma, semicolon,\n",e+=" ; and backslash\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\n",e+='OWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\n",e+="token = 1*(tchar)\n",e+='tchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n',e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=" / DIGIT / ALPHA\n",e+=" ; any VCHAR, except delimiters\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\n",e+="CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\n",e+="CTL = %x00-1F / %x7F ; any US-ASCII control character\n",e+='separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\n',e+="SP = %x20 ; US-ASCII SP, space (32)\n",e+="HT = %x09 ; US-ASCII HT, horizontal-tab (9)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='DQUOTE = %x22 ; " (Double Quote)\n',e+="WSP = SP / HTAB ; white space\n",e+="HTAB = %x09 ; horizontal tab\n",e+="CRLF = CR LF ; Internet standard newline\n",e+="CR = %x0D ; carriage return\n",e+="LF = %x0A ; linefeed\n",'; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\nlenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\nlenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\nlenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\nlenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\nlenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\nlenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\nlenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\nlenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\nlenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n ; Allow all printable characters except CTLs, semicolon and SP\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\ncookie-string = cookie-pair *( ";" SP cookie-pair )\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n; https://www.rfc-editor.org/errata/eid5518\ncookie-pair = cookie-name "=" cookie-value\ncookie-name = token\ncookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n ; https://www.rfc-editor.org/errata/eid8242\ncookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace, DQUOTE, comma, semicolon,\n ; and backslash\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\nOWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n\n; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\ntoken = 1*(tchar)\ntchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n / DIGIT / ALPHA\n ; any VCHAR, except delimiters\n\n; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\nCHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\nCTL = %x00-1F / %x7F ; any US-ASCII control character\nseparators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\nSP = %x20 ; US-ASCII SP, space (32)\nHT = %x09 ; US-ASCII HT, horizontal-tab (9)\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nDQUOTE = %x22 ; " (Double Quote)\nWSP = SP / HTAB ; white space\nHTAB = %x09 ; horizontal tab\nCRLF = CR LF ; Internet standard newline\nCR = %x0D ; carriage return\nLF = %x0A ; linefeed\n'}}new II;const RI=e=>{if("string"!=typeof e||1!==[...e].length)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},_I=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),DI=e=>_I(e)?e.slice(1,-1):e,NI=e=>`"${e}"`,LI=e=>e,BI=new da,qI=new II,UI=(e,{strict:t=!0,quoted:r=null}={})=>{try{const s=t?"cookie-value":"lenient-cookie-value",n=BI.parse(qI,s,e);return"boolean"==typeof r?n.success&&r===_I(e):n.success}catch{return!1}},VI=e=>{const t=(new TextEncoder).encode(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)},JI=(e,t=VI)=>{const r=String(e);if(UI(r))return r;const s=_I(r),n=t(s?DI(r):r);return s?NI(n):n},HI=e=>VI(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),GI=e=>JI(e,HI),zI=new da,WI=new II,KI=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return zI.parse(WI,r,e).success}catch{return!1}},YI=e=>{if(!KI(e))throw new TypeError(`Invalid cookie name: ${e}`)},XI=e=>{if(!UI(e))throw new TypeError(`Invalid cookie value: ${e}`)},QI={encoders:{name:LI,value:GI},validators:{name:YI,value:XI}},ZI=(e,t,r={})=>{const s={...QI,...r,encoders:{...QI.encoders,...r.encoders},validators:{...QI.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},eR=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map(([e,r])=>ZI(e,r,t)).join("; ");const tR=new da,rR=new II,sR=e=>{const t=String(e);if(UI(t))return t;const r=_I(t),s=r?DI(t):t;let n="";for(const e of s)n+=tR.parse(rR,"cookie-octet",e).success?e:RI(e);return r?NI(n):n};new da,new II;const nR=e=>{if(!KI(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const iR=e=>sR(e).replace(/[=&]/gu,e=>"="===e?"%3D":"%26"),oR=(e,t={})=>eR(e,Vc({encoders:{name:LI,value:iR},validators:{name:nR,value:XI}},t));function cR({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:c}=r;if(void 0===t)return;const a=e.url.replace(s,"");let l;if(c){const e=Object.keys(c)[0];l=MI(a,{[n]:t},{encoder:t=>T(FI(t,e))})}else l=MI(a,{[n]:t},{encoder:e=>M({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function aR({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=FI(t,Object.keys(r.content)[0]);if(s)e.query[r.name]=s;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}return}if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:s,explode:n,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:s,explode:n,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 lR=["accept","authorization","content-type"];function uR({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(lR.indexOf(t.name.toLowerCase())>-1)){if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];return void(e.headers[t.name]=FI(r,s))}void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=M({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}}function pR({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=FI(r,Object.keys(t.content)[0]);return void(e.headers.Cookie=oR({[s]:n}))}if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n=M({key:t.name,value:r,escape:!1,style:t.style||"form",explode:t.explode??!1}),i=Array.isArray(r)&&t.explode?`${s}=${n}`:n;e.headers.Cookie=oR({[s]:i})}}const hR="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:dR}=hR,mR=dR;function fR(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:c}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={}}=t,o=r.security||s.security||[],c=i&&!!Object.keys(i).length,a=s?.components?.securitySchemes||{};if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!c||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach(e=>{Object.keys(e).forEach(e=>{const t=i[e],r=a[e];if(!t)return;const s=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(n.query[r.name]=s),"header"===r.in&&(n.headers[r.name]=s),"cookie"===r.in&&(n.cookies[r.name]=s);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=s.username||"",t=s.password||"",r=mR(`${e}:${t}`);n.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(n.headers.Authorization=`Bearer ${s}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},s=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),n.headers.Authorization=`${i} ${s}`}})}),n}({request:t,securities:n,operation:r,spec:i});const a=r.requestBody||{},l=Object.keys(a.content||{}),u=c&&l.indexOf(c)>-1;if(s||o){if(c&&u)t.headers["Content-Type"]=c;else if(!c){const e=l[0];e&&(t.headers["Content-Type"]=e,c=e)}}else c&&u&&(t.headers["Content-Type"]=c);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter(([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&Qi(t.content)}).reduce((e,[,t])=>e.concat(Object.keys(t.content)),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(c){if(l.indexOf(c)>-1)if("application/x-www-form-urlencoded"===c||"multipart/form-data"===c)if("object"==typeof s){const e=a.content[c]?.encoding??{};t.form={},Object.keys(s).forEach(r=>{let n;try{n=JSON.parse(s[r])}catch{n=s[r]}t.form[r]={value:n,encoding:e[r]||{}}})}else if("string"==typeof s){const e=a.content[c]?.encoding??{};try{t.form={};const r=JSON.parse(s);Object.entries(r).forEach(([r,s])=>{t.form[r]={value:s,encoding:e[r]||{}}})}catch{t.form=s}}else t.form=s;else t.body=s}else t.body=s;return t}function yR(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:c}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,c=r.security||o,a=i&&!!Object.keys(i).length,l=s.securityDefinitions;if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!a||!c||Array.isArray(r.security)&&!r.security.length)return e;return c.forEach(e=>{Object.keys(e).forEach(e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=l[e],{type:c}=o,a=o["x-tokenName"]||"access_token",u=r&&r[a];let p=r&&r.token_type;if(t)if("apiKey"===c){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===c)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=mR(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===c&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",n.headers.authorization=`${p} ${u}`)})}),n}({request:t,securities:n,operation:s,spec:r}),t.body||t.form||c)i?t.headers["Content-Type"]=i:Array.isArray(s.consumes)?[t.headers["Content-Type"]]=s.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:s.parameters&&s.parameters.filter(e=>"file"===e.type).length?t.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter(e=>"formData"===e.in).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=s.parameters&&s.parameters.filter(e=>"body"===e.in).length>0,r=s.parameters&&s.parameters.filter(e=>"formData"===e.in).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(s.produces)&&s.produces.length>0&&(t.headers.accept=s.produces.join(", ")),t}const vR=e=>Array.isArray(e)?e:[],gR=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,bR=(e,{recurse:t=!0,depth:r=1}={})=>{var s,n;if(Qi(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(B()(s=e.type).call(s,"object")||B()(n=e.type).call(n,"array")))return e;if(!(r>S)&&t){const s=Array.isArray(e.oneOf)?e.oneOf.find(e=>bR(e,{recurse:t,depth:r+1})):void 0;if(s)return s;const n=Array.isArray(e.anyOf)?e.anyOf.find(e=>bR(e,{recurse:t,depth:r+1})):void 0;if(n)return n}}},xR=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(Qi(r)||Array.isArray(r))return r;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},ER=e=>{try{return new URL(e)}catch{const t=new URL(e,w),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class wR extends $r{}const jR={buildRequest:SR};function SR(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:c,userFetch:a,server:l,serverVariables:u,http:p,signal:h,serverVariableEncoder:d}=e;let{parameters:m,parameterBuilders:f,baseURL:y}=e;const v=ao(t);f||(f=v?x:CI);let g={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(g.signal=h),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),a&&(g.userFetch=a);const b=oI(t,r);if(!b)throw new wR(`Operation ${r} not found`);const{operation:E={},method:w,pathName:j}=b;if(!(e=>"string"==typeof e&&gR.test(e))(w))throw new Error("Invalid HTTP method");if(y=y??PR({spec:t,scheme:n,contextUrl:c,server:l,serverVariables:u,pathName:j,method:w,operation:E,serverVariableEncoder:d}),g.url+=y,!r)return delete g.cookies,g;g.url+=j,g.method=w,m=m||{};const S=t.paths[j]||{};s&&(g.headers.accept=s);const O=(e=>{const t={};e.forEach(e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});const r=[];return Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(s=>{r.push(t[e][s])})}),r})([].concat(vR(E.parameters)).concat(vR(S.parameters)));O.forEach(e=>{const r=f[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=m),s=e&&e.name&&m[e.name],void 0===s?s=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter(t=>t.name===e))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==s){if(void 0!==e.default&&void 0===s&&(s=e.default),void 0===s&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);v&&"string"==typeof s&&(yc("type",e.schema)&&"string"==typeof e.schema.type&&bR(e.schema,{recurse:!1})?s=xR({value:s,silentFail:!1}):(yc("type",e.schema)&&Array.isArray(e.schema.type)&&bR(e.schema,{recurse:!1})||!yc("type",e.schema)&&bR(e.schema,{recurse:!0}))&&(s=xR({value:s,silentFail:!0}))),r&&r({req:g,parameter:e,value:s,operation:E,spec:t,baseURL:y})}});const P={...e,operation:E};if(g=v?fR(P,g):yR(P,g),g.cookies&&Object.keys(g.cookies).length>0){const e=oR(g.cookies);Lh(g.headers.Cookie)?g.headers.Cookie+=`; ${e}`:g.headers.Cookie=e}return g.cookies&&delete g.cookies,N(g)}const OR=e=>e?e.replace(/\W/g,""):null;function PR(e){return ao(e.spec)?function({spec:e,pathName:t,method:r,operation:s,server:n,contextUrl:i,serverVariables:o={},serverVariableEncoder:c}){let a,l=[],u="";const p=s?.servers??e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,h=e?.paths?.[t]?.servers,d=e?.servers;l=AR(p)?p:AR(h)?h:AR(d)?d:[j],n&&(a=l.find(e=>e.url===n),a&&(u=n));u||([a]=l,u=a.url);if(vI(u,{strict:!0})){const e=Object.entries({...a.variables}).reduce((e,[t,r])=>(e[t]=r.default,e),{});u=xI(u,{...e,...o},{encoder:"function"==typeof c?c:t$})}return function(e="",t=""){const r=ER(e&&t?Nn(t,e):e),s=ER(t),n=OR(r.protocol)||OR(s.protocol),i=r.host||s.host,o=r.pathname;let c;c=n&&i?`${n}://${i+o}`:o;return"/"===c[c.length-1]?c.slice(0,-1):c}(u,i)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=ER(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||OR(s.protocol)||"http",o=e.host||s.host||"",c=e.basePath||"";let a;a=i&&o?`${i}://${o+c}`:c;return"/"===a[a.length-1]?a.slice(0,-1):a}(e)}const AR=e=>Array.isArray(e)&&e.length>0;function $R(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof $R))return new $R(t);Object.assign(this,t);const r=this.resolve().then(()=>(this.disableInterfaces||Object.assign(this,$R.makeApisTagOperation(this)),this));return r.client=this,r}$R.http=Ot,$R.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=N(s),s=t(s),r(e(s)))}.bind(null,$R.http),$R.resolveStrategies={"openapi-3-2-apidom":sI,"openapi-3-1-apidom":cT,"openapi-3-0":uo,"openapi-2-0":lo,generic:so},$R.resolve=po({strategies:[$R.resolveStrategies["openapi-3-2-apidom"],$R.resolveStrategies["openapi-3-1-apidom"],$R.resolveStrategies["openapi-3-0"],$R.resolveStrategies["openapi-2-0"],$R.resolveStrategies.generic]}),$R.resolveSubtree=mo({strategies:[$R.resolveStrategies["openapi-3-2-apidom"],$R.resolveStrategies["openapi-3-1-apidom"],$R.resolveStrategies["openapi-3-0"],$R.resolveStrategies["openapi-2-0"],$R.resolveStrategies.generic]}),$R.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:c,...a}){const l=e||t||Ot;n&&i&&!s&&(s=iI(n,i));const u=jR.buildRequest({spec:r,operationId:s,parameters:o,securities:c,http:l,...a});return u.body&&(Qi(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},$R.serializeRes=St,$R.serializeHeaders=jt,$R.clearCache=function(){Ni.refs.clearCache()},$R.makeApisTagOperation=function(e={}){const t=uI.makeExecute(e);return{apis:uI.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},$R.buildRequest=SR,$R.helpers={opId:to},$R.getBaseUrl=PR,$R.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:M$}},parse:{parsers:{JsonParser:F$,YamlParser:I$,OpenApiJson3_1Parser:R$,OpenApiYaml3_1Parser:_$,OpenApiJson3_2Parser:pF,OpenApiYaml3_2Parser:hF}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Uk,OpenApi3_2SwaggerClientDereferenceStrategy:VF}}},$R.prototype={http:Ot,execute(e){return this.applyDefaults(),$R.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 $R.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,pathDiscriminator:this.pathDiscriminator||[],skipNormalization:this.skipNormalization||!1,...e}).then(e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this))}},$R.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(no(e)&&aI(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(ao(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[j])}};const{helpers:kR}=$R,TR=$R})(),s=s.default})());
3
3
  //# sourceMappingURL=swagger-client.browser.min.js.map