swagger-client 3.37.3 → 3.37.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -5
- package/dist/swagger-client.browser.js +4933 -5788
- package/dist/swagger-client.browser.min.js +1 -1
- package/dist/swagger-client.browser.min.js.map +1 -1
- package/es/execute/index.js +7 -6
- package/es/execute/oas3/build-request.js +3 -6
- package/es/execute/oas3/content-serializer.js +2 -1
- package/es/execute/oas3/parameter-builders.js +2 -3
- package/es/execute/oas3/style-serializer.js +1 -1
- package/es/http/index.js +0 -1
- package/es/http/serializers/response/index.js +2 -1
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/index.js +1 -2
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/all-of.js +2 -4
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +27 -33
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/parameters.js +1 -2
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/properties.js +1 -2
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/index.js +1 -2
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/all-of.js +2 -4
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/dereference.js +27 -33
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/parameters.js +1 -2
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/properties.js +1 -2
- package/es/resolver/apidom/reference/parse/parsers/json/index.js +4 -2
- package/es/resolver/apidom/reference/parse/parsers/openapi-json-3-1/index.js +4 -2
- package/es/resolver/apidom/reference/parse/parsers/openapi-json-3-2/index.js +4 -2
- package/es/resolver/apidom/reference/parse/parsers/openapi-yaml-3-1/index.js +4 -2
- package/es/resolver/apidom/reference/parse/parsers/openapi-yaml-3-2/index.js +4 -2
- package/es/resolver/apidom/reference/parse/parsers/yaml-1-2/index.js +4 -2
- package/es/resolver/apidom/reference/resolve/resolvers/http-swagger-client/index.js +0 -1
- package/es/resolver/specmap/helpers.js +4 -3
- package/es/resolver/specmap/lib/refs.js +0 -1
- package/es/resolver/strategies/generic/normalize.js +5 -2
- package/es/resolver/utils/options.js +2 -3
- package/es/subtree-resolver/index.js +1 -1
- package/lib/execute/index.js +7 -6
- package/lib/execute/oas3/build-request.js +3 -6
- package/lib/execute/oas3/content-serializer.js +3 -1
- package/lib/execute/oas3/parameter-builders.js +2 -3
- package/lib/execute/oas3/style-serializer.js +1 -1
- package/lib/http/index.js +0 -1
- package/lib/http/serializers/response/index.js +2 -1
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/index.js +1 -2
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/all-of.js +2 -4
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +27 -33
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/parameters.js +1 -2
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/properties.js +1 -2
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/index.js +1 -2
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/all-of.js +2 -4
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/dereference.js +27 -33
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/parameters.js +1 -2
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-2-swagger-client/visitors/properties.js +1 -2
- package/lib/resolver/apidom/reference/parse/parsers/json/index.js +5 -2
- package/lib/resolver/apidom/reference/parse/parsers/openapi-json-3-1/index.js +5 -2
- package/lib/resolver/apidom/reference/parse/parsers/openapi-json-3-2/index.js +5 -2
- package/lib/resolver/apidom/reference/parse/parsers/openapi-yaml-3-1/index.js +5 -2
- package/lib/resolver/apidom/reference/parse/parsers/openapi-yaml-3-2/index.js +5 -2
- package/lib/resolver/apidom/reference/parse/parsers/yaml-1-2/index.js +5 -2
- package/lib/resolver/apidom/reference/resolve/resolvers/http-swagger-client/index.js +0 -1
- package/lib/resolver/specmap/helpers.js +4 -3
- package/lib/resolver/specmap/lib/refs.js +0 -1
- package/lib/resolver/strategies/generic/normalize.js +5 -2
- package/lib/resolver/utils/options.js +2 -3
- package/lib/subtree-resolver/index.js +1 -1
- package/package.json +11 -12
- package/es/helpers/fetch-polyfill.node.js +0 -22
- package/es/helpers/fetch-ponyfill-node-fetch.node.js +0 -3
- package/lib/helpers/fetch-polyfill.node.js +0 -24
- package/lib/helpers/fetch-ponyfill-node-fetch.node.js +0 -12
|
@@ -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)?c((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 a(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 c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))})),n}function c(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):a(e,r,i):s(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},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),a=r(5749);function c(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])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},79(e,t,r){var s=r(3702),n=r(80),i=r(4739),o=r(8655),a=r(3556);function c(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])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},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),a=r(2949);function c(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])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},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),a=r(9817),c=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=a,l.prototype.set=c,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},9770(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),a=r(361),c=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&&c(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)||a(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,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},7068(e,t,r){var s=r(7217),n=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,v){var g=c(e),b=c(t),x=g?h:a(e),E=b?h:a(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),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:a).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,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var m=-1,f=!0,y=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var v=e[m],g=t[m];if(o)var b=l?o(g,v,m,t,e,c):o(v,g,m,e,t,c);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(v===e||a(v,e,r,o,c)))return y.push(t)}))){f=!1;break}}else if(v!==g&&!a(v,g,r,o,c)){f=!1;break}}return c.delete(e),c.delete(t),f}},1986(e,t,r){var s=r(1873),n=r(7828),i=r(5288),o=r(5911),a=r(317),c=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=a;case"[object Set]":var m=1&s;if(d||(d=c),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,a){var c=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:n.call(t,h)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var f=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var v=e[h=l[p]],g=t[h];if(i)var b=c?i(g,v,h,t,e,a):i(v,g,h,e,t,a);if(!(void 0===b?v===g||o(v,g,r,i,a):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 a.delete(e),a.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,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},4664(e,t,r){var s=r(9770),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},5861(e,t,r){var s=r(5580),n=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",f=l(s),y=l(n),v=l(i),g=l(o),b=l(a),x=c;(s&&x(new s(new ArrayBuffer(1)))!=m||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=d)&&(x=function(e){var t=c(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,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var 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,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var 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,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},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,a=o?n(o):s;e.exports=a},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),a=r(3805),c=r(5105),l=r(6804);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(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(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const 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 c(this)}}c.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),a=r(2242),c=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 a(e);if(null===e)return new n;if(Array.isArray(e))return new c(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:a,ArrayElement:c,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),a=r(866);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(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 a(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,a=(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},c=(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={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];t[0]="[short-unique-id] ".concat(e[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...t)})),c(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})),c(this,"setDictionary",((e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(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})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(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("")})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const 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)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0)))),c(this,"_collisionCache",new Map),c(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})),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(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})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const 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))})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),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))})),c(this,"setCounter",(e=>{this.counter=e})),c(this,"validate",((e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every((e=>r.includes(e)))}));const t=a(a({},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)}};c(h,"default",h);var d,m=h;return d=l,((s,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))n.call(s,c)||c===o||e(s,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},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},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 a=s(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[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"),a=Object,c="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=a(e),o))?r:c?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 a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];s(e,p)||r&&s(r,p)||c(e,p,l(t,p))}}},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),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.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),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");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,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},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),a=r(3846).f,c=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=c(w?f:E+(j?".":"#")+f,e.forced))&&O&&h(O,f),v=P[f],n&&(g=e.dontCallGetSet?(x=a(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,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,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)}}},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),a=r(6264)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||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),a=r(3448),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(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,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(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,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),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),a=r(5951),c=r(6285),l=r(1626),u=r(9724),p=r(6128),h=r(2522),d=r(8530),m="Object already initialized",f=a.TypeError,y=a.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(!c(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=c[a(e)];return r===u||r!==l&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},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},5594(e,t,r){"use strict";var s=r(5582),n=r(2250),i=r(8280),o=r(1175),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},4823(e,t,r){"use strict";var s=r(8311),n=r(3930),i=r(6624),o=r(4640),a=r(7812),c=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){return y&&h(y,"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(a(v)){for(g=0,b=c(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;){try{x=T(w.value)}catch(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,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)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),a=r(3742),c=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),a[u]=c,e}},183(e,t,r){"use strict";var s=r(1091),n=r(3930),i=r(7376),o=r(6833),a=r(2250),c=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){c(r,t,o);var $,A,k,T=function(e){if(e===m&&R)return R;if(!x&&e&&e in C)return C[e];switch(e){case w:case j:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},F=t+" Iterator",M=!1,C=e.prototype,I=C[E]||C["@@iterator"]||m&&C[m],R=!x&&I||T(m),D="Array"===t&&C.entries||I;if(D&&($=l(D.call(new e)))!==Object.prototype&&$.next&&(i||l($)===b||(u?u($,b):a($[E])||d($,E,O)),p($,F,!0,!0),i&&(f[F]=O)),v&&m===j&&I&&I.name!==j&&(!i&&g?h(C,"name",j):(M=!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||M||!(k in C))&&d(C,k,A[k]);else s({target:t,proto:!0,forced:x||M},A);return i&&!P||C[E]===R||d(C,E,R,{name:m}),f[t]=R,A}},5116(e,t,r){"use strict";var s,n,i,o=r(8828),a=r(2250),c=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),!c(s)||o((function(){var e={};return s[m].call(e)!==e}))?s={}:d&&(s=l(s)),a(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)}},8075(e,t,r){"use strict";var s,n=r(6624),i=r(2220),o=r(376),a=r(8530),c=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",c.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()};a[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),a=r(7374),c=r(2875);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(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),a=r(470),c=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=a(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=a(t),o(r),n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("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),a=r(7374),c=r(470),l=r(9724),u=r(3648),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!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),a=r(7382),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];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,a=r(8530),c=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&c(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||c(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,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;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),a=r(6624),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(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),a=r(4878),c=r(6264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!s&&i(u,"toString",a))}},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__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.48.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.48.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),a=s("".charAt),c=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=c(p,h))<55296||s>56319||h+1===d||(u=c(p,h+1))<56320||u>57343?e?a(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),a=r(581),c=r(6264),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(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),a=r(9846),c=r(1175),l=s.Symbol,u=n("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},9358(e,t,r){"use strict";var s=r(5582),n=r(9724),i=r(1626),o=r(8280),a=r(9192),c=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?a?a(S,j):c(S,j,{name:!0}):m&&v in E&&(l(S,E,v),l(S,E,"prepareStackTrace")),c(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),a=r(9358),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(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),a=r(9595),c=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:c(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 a=[];return d(e,v,{that:a}),l(r,"errors",a),r};o?o(g,y):a(g,y,{name:!0});var b=g.prototype=c(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)},9363(e,t,r){"use strict";var s=r(7374),n=r(2156),i=r(3742),o=r(4932),a=r(4284).f,c=r(183),l=r(9550),u=r(7376),p=r(9447),h="Array Iterator",d=o.set,m=o.getterFor(h);e.exports=c(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{a(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),a="WebAssembly",c=n[a],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(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),s({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},7057(e,t,r){"use strict";var s=r(1470).charAt,n=r(160),i=r(4932),o=r(183),a=r(9550),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(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 a in s)i(n[a],a),o[a]=o.Array},694(e,t,r){"use strict";r(1599);var s=r(7257);r(2560),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:()=>Bk});var e={};r.r(e),r.d(e,{JsonPatchError:()=>vr,_areEquals:()=>$r,applyOperation:()=>wr,applyPatch:()=>jr,applyReducer:()=>Sr,deepClone:()=>gr,getValueByPointer:()=>Er,validate:()=>Pr,validator:()=>Or});var t={};r.r(t),r.d(t,{compare:()=>Rr,generate:()=>Cr,observe:()=>Mr,unobserve:()=>Fr});var n={};r.r(n),r.d(n,{bJ:()=>di,uQ:()=>ai,Zd:()=>pi,q$:()=>li,hd:()=>mi,aj:()=>fi,z9:()=>hi,zj:()=>yi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ta,includesClasses:()=>Ma,includesSymbols:()=>Fa,isAnnotationElement:()=>Pa,isArrayElement:()=>wa,isBooleanElement:()=>xa,isCommentElement:()=>$a,isElement:()=>ya,isLinkElement:()=>Sa,isMemberElement:()=>ja,isNullElement:()=>ba,isNumberElement:()=>ga,isObjectElement:()=>Ea,isParseResultElement:()=>Aa,isPrimitiveElement:()=>ka,isRefElement:()=>Oa,isStringElement:()=>va});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>vp,isJSONSchemaElement:()=>yp,isLinkDescriptionElement:()=>bp,isMediaElement:()=>gp});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Yd,isCallbackElement:()=>Td,isComponentsElement:()=>Fd,isContactElement:()=>Md,isDiscriminatorElement:()=>sm,isExampleElement:()=>Cd,isExternalDocumentationElement:()=>Id,isHeaderElement:()=>Rd,isInfoElement:()=>Dd,isLicenseElement:()=>_d,isLinkElement:()=>Nd,isMediaTypeElement:()=>tm,isOpenApi3_0Element:()=>Bd,isOpenapiElement:()=>Ld,isOperationElement:()=>qd,isParameterElement:()=>Ud,isPathItemElement:()=>Vd,isPathsElement:()=>Jd,isReferenceElement:()=>Hd,isRequestBodyElement:()=>zd,isResponseElement:()=>Gd,isResponsesElement:()=>Wd,isSchemaElement:()=>Kd,isSecurityRequirementElement:()=>Xd,isSecuritySchemeElement:()=>Qd,isServerElement:()=>Zd,isServerVariableElement:()=>em,isServersElement:()=>rm});var c={};r.r(c),r.d(c,{isJSONReferenceElement:()=>vp,isJSONSchemaElement:()=>_g,isLinkDescriptionElement:()=>Ng,isMediaElement:()=>gp});var l={};r.r(l),r.d(l,{isJSONReferenceElement:()=>vp,isJSONSchemaElement:()=>Kg,isLinkDescriptionElement:()=>Yg});var u={};r.r(u),r.d(u,{isJSONSchemaElement:()=>Pb,isLinkDescriptionElement:()=>$b});var p={};r.r(p),r.d(p,{isJSONSchemaElement:()=>Bb,isLinkDescriptionElement:()=>qb});var h={};r.r(h),r.d(h,{isBooleanJsonSchemaElement:()=>Qx,isCallbackElement:()=>kx,isComponentsElement:()=>Tx,isContactElement:()=>Fx,isExampleElement:()=>Mx,isExternalDocumentationElement:()=>Cx,isHeaderElement:()=>Ix,isInfoElement:()=>Rx,isJsonSchemaDialectElement:()=>Dx,isLicenseElement:()=>_x,isLinkElement:()=>Nx,isMediaTypeElement:()=>sE,isOpenApi3_1Element:()=>Bx,isOpenapiElement:()=>Lx,isOperationElement:()=>qx,isParameterElement:()=>Ux,isPathItemElement:()=>Vx,isPathItemElementExternal:()=>Jx,isPathsElement:()=>Hx,isReferenceElement:()=>zx,isReferenceElementExternal:()=>Gx,isRequestBodyElement:()=>Wx,isResponseElement:()=>Kx,isResponsesElement:()=>Yx,isSchemaElement:()=>Xx,isSecurityRequirementElement:()=>Zx,isSecuritySchemeElement:()=>eE,isServerElement:()=>tE,isServerVariableElement:()=>rE});var d={};r.r(d),r.d(d,{isBooleanJsonSchemaElement:()=>eP,isCallbackElement:()=>TO,isComponentsElement:()=>FO,isContactElement:()=>MO,isDiscriminatorElement:()=>CO,isExampleElement:()=>IO,isExternalDocumentationElement:()=>RO,isHeaderElement:()=>DO,isInfoElement:()=>_O,isJsonSchemaDialectElement:()=>NO,isLicenseElement:()=>LO,isLinkElement:()=>BO,isMediaTypeElement:()=>iP,isOpenApi3_2Element:()=>UO,isOpenapiElement:()=>qO,isOperationElement:()=>VO,isParameterElement:()=>JO,isPathItemElement:()=>HO,isPathItemElementExternal:()=>zO,isPathsElement:()=>GO,isReferenceElement:()=>WO,isReferenceElementExternal:()=>KO,isRequestBodyElement:()=>YO,isResponseElement:()=>XO,isResponsesElement:()=>QO,isSchemaElement:()=>ZO,isSecurityRequirementElement:()=>tP,isSecuritySchemeElement:()=>rP,isServerElement:()=>sP,isServerVariableElement:()=>nP});var m={};r.r(m),r.d(m,{cookie:()=>gk,header:()=>vk,path:()=>mk,query:()=>fk});const f="application/json, application/yaml",y="https://swagger.io",v=Object.freeze({url:"/"}),g=3e3,{fetch:b,Response:x,Headers:E,Request:w,FormData:j,File:S,Blob:O}=globalThis;function P(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 $(e,t){return Array.isArray(e)&&e.some((e=>P(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=b),void 0===globalThis.Headers&&(globalThis.Headers=E),void 0===globalThis.Request&&(globalThis.Request=w),void 0===globalThis.Response&&(globalThis.Response=x),void 0===globalThis.FormData&&(globalThis.FormData=j),void 0===globalThis.File&&(globalThis.File=S),void 0===globalThis.Blob&&(globalThis.Blob=O);class A extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const k=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,T=e=>/^[a-z0-9\-._~]+$/i.test(e);function F(e,t="reserved"){return[...e].map((e=>{if(T(e))return e;if(k(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?F(e,t):e??""}const I={form:",",spaceDelimited:"%20",pipeDelimited:"|"},R={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function D(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&n)return[[l,""]];if(P(a)||$(a))return[[l,a]];if(i)return _(e,a,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,a,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new A(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new A(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===s?[[l,a.map(c)]]:[[l,a.map(c).join(R[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"),a=e=>C(e,o),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(I[n])]]:"deepObject"===n?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function N(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 D(r,e[r]))t[s]=n instanceof A?n.valueOf():n;return t}),{}),{encode:!1})}function L(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return P(t)||$(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 D(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=N(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,N(r));e.url=s+o,delete e.query}return e}function B(e){return null==e}var q={isNothing:B,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:B(e)?[]:[e]},repeat:function(e,t){var r,s="";for(r=0;r<t;r+=1)s+=e;return s},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,s,n,i;if(t)for(r=0,s=(i=Object.keys(t)).length;r<s;r+=1)e[n=i[r]]=t[n];return e}};function U(e,t){var r="",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 V(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=U(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}V.prototype=Object.create(Error.prototype),V.prototype.constructor=V,V.prototype.toString=function(e){return this.name+": "+U(this,e)};var J=V;function H(e,t,r,s,n){var i="",o="",a=Math.floor(n/2)-1;return s-t>a&&(t=s-a+(i=" ... ").length),r-s>a&&(r=s+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function z(e,t){return q.repeat(" ",t-e.length)+e}var G=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,s=/\r?\n|\r|\0/g,n=[0],i=[],o=-1;r=s.exec(e.buffer);)i.push(r.index),n.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=H(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),p),l=q.repeat(" ",t.indent)+z((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=H(e.buffer,n[o],i[o],e.position,p),l+=q.repeat(" ",t.indent)+z((e.line+1).toString(),u)+" | "+c.str+"\n",l+=q.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=H(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),p),l+=q.repeat(" ",t.indent)+z((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},W=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],K=["scalar","sequence","mapping"];var Y=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===W.indexOf(t))throw new J('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===K.indexOf(this.kind))throw new J('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function X(e,t){var r=[];return e[t].forEach((function(e){var 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 Q(e){return this.extend(e)}Q.prototype.extend=function(e){var t=[],r=[];if(e instanceof Y)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new J("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof Y))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new J("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new J("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof Y))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(Q.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=X(s,"implicit"),s.compiledExplicit=X(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(s);return r}(s.compiledImplicit,s.compiledExplicit),s};var Z=Q,ee=new Y("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),te=new Y("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),re=new Y("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),se=new Z({explicit:[ee,te,re]});var ne=new Y("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var ie=new Y("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function oe(e){return 48<=e&&e<=55}function ae(e){return 48<=e&&e<=57}var ce=new Y("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=e.length,n=0,i=!1;if(!s)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===s)return!0;if("b"===(t=e[++n])){for(n++;n<s;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!(48<=(r=e.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!oe(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!ae(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,s=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(s=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return s*parseInt(r.slice(2),2);if("x"===r[1])return s*parseInt(r.slice(2),16);if("o"===r[1])return s*parseInt(r.slice(2),8)}return s*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!q.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),le=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var ue=/^[-+]?[0-9]+e/;var pe=new Y("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!le.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||q.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(q.isNegativeZero(e))return"-0.0";return r=e.toString(10),ue.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),he=se.extend({implicit:[ne,ie,ce,pe]}),de=he,me=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),fe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var ye=new Y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==me.exec(e)||null!==fe.exec(e))},construct:function(e){var t,r,s,n,i,o,a,c,l=0,u=null;if(null===(t=me.exec(e))&&(t=fe.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,s,n));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,s,n,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var ve=new Y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var be=new Y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=ge;for(r=0;r<n;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,r,s=e.replace(/[\r\n=]/g,""),n=s.length,i=ge,o=0,a=[];for(t=0;t<n;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(s.charAt(t));return 0===(r=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,s="",n=0,i=e.length,o=ge;for(t=0;t<i;t++)t%3==0&&t&&(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]),n=(n<<8)+e[t];return 0===(r=i%3)?(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]):2===r?(s+=o[n>>10&63],s+=o[n>>4&63],s+=o[n<<2&63],s+=o[64]):1===r&&(s+=o[n>>2&63],s+=o[n<<4&63],s+=o[64],s+=o[64]),s}}),xe=Object.prototype.hasOwnProperty,Ee=Object.prototype.toString;var we=new Y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(s=a[t],i=!1,"[object Object]"!==Ee.call(s))return!1;for(n in s)if(xe.call(s,n)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0},construct:function(e){return null!==e?e:[]}}),je=Object.prototype.toString;var Se=new Y("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(s=o[t],"[object Object]"!==je.call(s))return!1;if(1!==(n=Object.keys(s)).length)return!1;i[t]=[n[0],s[n[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)s=o[t],n=Object.keys(s),i[t]=[n[0],s[n[0]]];return i}}),Oe=Object.prototype.hasOwnProperty;var Pe=new Y("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Oe.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),$e=de.extend({implicit:[ye,ve],explicit:[be,we,Se,Pe]}),Ae=Object.prototype.hasOwnProperty,ke=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Te=/[\x85\u2028\u2029]/,Fe=/[,\[\]\{\}]/,Me=/^(?:!|!!|![a-z\-]+!)$/i,Ce=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ie(e){return Object.prototype.toString.call(e)}function Re(e){return 10===e||13===e}function De(e){return 9===e||32===e}function _e(e){return 9===e||32===e||10===e||13===e}function Ne(e){return 44===e||91===e||93===e||123===e||125===e}function Le(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Be(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function qe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function Ue(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var Ve=new Array(256),Je=new Array(256),He=0;He<256;He++)Ve[He]=Be(He)?1:0,Je[He]=Be(He);function ze(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$e,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ge(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=G(r),new J(t,r)}function We(e,t){throw Ge(e,t)}function Ke(e,t){e.onWarning&&e.onWarning.call(null,Ge(e,t))}var Ye={YAML:function(e,t,r){var s,n,i;null!==e.version&&We(e,"duplication of %YAML directive"),1!==r.length&&We(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&We(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&We(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Ke(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&We(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Me.test(s)||We(e,"ill-formed tag handle (first argument) of the TAG directive"),Ae.call(e.tagMap,s)&&We(e,'there is a previously declared suffix for "'+s+'" tag handle'),Ce.test(n)||We(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){We(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function Xe(e,t,r,s){var n,i,o,a;if(t<r){if(a=e.input.slice(t,r),s)for(n=0,i=a.length;n<i;n+=1)9===(o=a.charCodeAt(n))||32<=o&&o<=1114111||We(e,"expected valid JSON character");else ke.test(a)&&We(e,"the stream contains non-printable characters");e.result+=a}}function Qe(e,t,r,s){var n,i,o,a;for(q.isObject(r)||We(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(n=Object.keys(r)).length;o<a;o+=1)i=n[o],Ae.call(t,i)||(Ue(t,i,r[i]),s[i]=!0)}function Ze(e,t,r,s,n,i,o,a,c){var l,u;if(Array.isArray(n))for(l=0,u=(n=Array.prototype.slice.call(n)).length;l<u;l+=1)Array.isArray(n[l])&&We(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===Ie(n[l])&&(n[l]="[object Object]");if("object"==typeof n&&"[object Object]"===Ie(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Qe(e,t,i[l],r);else Qe(e,t,i,r);else e.json||Ae.call(r,n)||!Ae.call(t,n)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,We(e,"duplicated mapping key")),Ue(t,n,i),delete r[n];return t}function et(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):We(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function tt(e,t,r){for(var s=0,n=e.input.charCodeAt(e.position);0!==n;){for(;De(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(!Re(n))break;for(et(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&&Ke(e,"deficient indentation"),s}function rt(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!_e(t)))}function st(e,t){1===t?e.result+=" ":t>1&&(e.result+=q.repeat("\n",t-1))}function nt(e,t){var r,s,n=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,We(e,"tab characters must not be used in indentation")),45===s)&&_e(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,tt(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,at(e,t,3,!1,!0),o.push(e.result),tt(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)We(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0)}function it(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&We(e,"duplication of a tag property"),60===(n=e.input.charCodeAt(++e.position))?(i=!0,n=e.input.charCodeAt(++e.position)):33===n?(o=!0,r="!!",n=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&62!==n);e.position<e.length?(s=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):We(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!_e(n);)33===n&&(o?We(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Me.test(r)||We(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Fe.test(s)&&We(e,"tag suffix cannot contain flow indicator characters")}s&&!Ce.test(s)&&We(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){We(e,"tag name is malformed: "+s)}return i?e.tag=s:Ae.call(e.tagMap,r)?e.tag=e.tagMap[r]+s:"!"===r?e.tag="!"+s:"!!"===r?e.tag="tag:yaml.org,2002:"+s:We(e,'undeclared tag handle "'+r+'"'),!0}function ot(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&We(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!_e(r)&&!Ne(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&We(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function at(e,t,r,s,n){var i,o,a,c,l,u,p,h,d,m=1,f=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=4===r||3===r,s&&tt(e,!0,-1)&&(f=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;it(e)||ot(e);)tt(e,!0,-1)?(f=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=f||n),1!==m&&4!==r||(h=1===r||2===r?t:t+1,d=e.position-e.lineStart,1===m?a&&(nt(e,d)||function(e,t,r){var s,n,i,o,a,c,l,u=e.tag,p=e.anchor,h={},d=Object.create(null),m=null,f=null,y=null,v=!1,g=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,We(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!_e(s)){if(o=e.line,a=e.lineStart,c=e.position,!at(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);De(l);)l=e.input.charCodeAt(++e.position);if(58===l)_e(l=e.input.charCodeAt(++e.position))||We(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Ze(e,h,d,m,f,null,o,a,c),m=f=y=null),g=!0,v=!1,n=!1,m=e.tag,f=e.result;else{if(!g)return e.tag=u,e.anchor=p,!0;We(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=u,e.anchor=p,!0;We(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(v&&(Ze(e,h,d,m,f,null,o,a,c),m=f=y=null),g=!0,v=!0,n=!0):v?(v=!1,n=!0):We(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=s;if((e.line===i||e.lineIndent>t)&&(v&&(o=e.line,a=e.lineStart,c=e.position),at(e,t,4,!0,n)&&(v?f=e.result:y=e.result),v||(Ze(e,h,d,m,f,y,o,a,c),m=f=y=null),tt(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)We(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Ze(e,h,d,m,f,null,o,a,c),g&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),g}(e,d,h))||function(e,t){var r,s,n,i,o,a,c,l,u,p,h,d,m=!0,f=e.tag,y=e.anchor,v=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==d)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(tt(e,!0,t),(d=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===d&&We(e,"expected the node content, but found ','"):We(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&_e(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,tt(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,at(e,t,1,!1,!0),p=e.tag,u=e.result,tt(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),tt(e,!0,t),at(e,t,1,!1,!0),h=e.result),l?Ze(e,i,v,p,u,h,r,s,n):a?i.push(Ze(e,null,v,p,u,h,r,s,n)):i.push(u),tt(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(m=!0,d=e.input.charCodeAt(++e.position)):m=!1}We(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,s,n,i,o,a=1,c=!1,l=!1,u=t,p=0,h=!1;if(124===(i=e.input.charCodeAt(e.position)))s=!1;else{if(62!==i)return!1;s=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===a?a=43===i?3:2:We(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?We(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?We(e,"repeat of an indentation width identifier"):(u=t+n-1,l=!0)}if(De(i)){do{i=e.input.charCodeAt(++e.position)}while(De(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Re(i)&&0!==i)}for(;0!==i;){for(et(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),Re(i))p++;else{if(e.lineIndent<u){3===a?e.result+=q.repeat("\n",c?1+p:p):1===a&&c&&(e.result+="\n");break}for(s?De(i)?(h=!0,e.result+=q.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=q.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=q.repeat("\n",p):e.result+=q.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Re(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Xe(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,s,n;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,s=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Xe(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else Re(r)?(Xe(e,s,n,!0),st(e,tt(e,!1,t)),s=n=e.position):e.position===e.lineStart&&rt(e)?We(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);We(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,s,n,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Xe(e,r,e.position,!0),e.position++,!0;if(92===a){if(Xe(e,r,e.position,!0),Re(a=e.input.charCodeAt(++e.position)))tt(e,!1,t);else if(a<256&&Ve[a])e.result+=Je[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(n=o,i=0;n>0;n--)(o=Le(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:We(e,"expected hexadecimal character");e.result+=qe(i),e.position++}else We(e,"unknown escape sequence");r=s=e.position}else Re(a)?(Xe(e,r,s,!0),st(e,tt(e,!1,t)),r=s=e.position):e.position===e.lineStart&&rt(e)?We(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}We(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,r,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!_e(s)&&!Ne(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&We(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ae.call(e.anchorMap,r)||We(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],tt(e,!0,-1),!0}(e)?function(e,t,r){var s,n,i,o,a,c,l,u,p=e.kind,h=e.result;if(_e(u=e.input.charCodeAt(e.position))||Ne(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(_e(s=e.input.charCodeAt(e.position+1))||r&&Ne(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(_e(s=e.input.charCodeAt(e.position+1))||r&&Ne(s))break}else if(35===u){if(_e(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&rt(e)||r&&Ne(u))break;if(Re(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,tt(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Xe(e,n,i,!1),st(e,e.line-a),n=i=e.position,o=!1),De(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Xe(e,n,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,1===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||We(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&nt(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&We(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Ae.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||We(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&We(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):We(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function ct(e){var t,r,s,n,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(tt(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!_e(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&We(e,"directive name must not be less than one character in length");0!==n;){for(;De(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!Re(n));break}if(Re(n))break;for(t=e.position;0!==n&&!_e(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&et(e),Ae.call(Ye,r)?Ye[r](e,r,s):Ke(e,'unknown document directive "'+r+'"')}tt(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,tt(e,!0,-1)):o&&We(e,"directives end mark is expected"),at(e,e.lineIndent-1,4,!1,!0),tt(e,!0,-1),e.checkLineBreaks&&Te.test(e.input.slice(i,e.position))&&Ke(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rt(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,tt(e,!0,-1)):e.position<e.length-1&&We(e,"end of the stream or a document separator is expected")}function lt(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new ze(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,We(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;)ct(r);return r.documents}var ut={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=lt(e,r);if("function"!=typeof t)return s;for(var n=0,i=s.length;n<i;n+=1)t(s[n])},load:function(e,t){var r=lt(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new J("expected a single document in the stream, but found more")}}},pt=Object.prototype.toString,ht=Object.prototype.hasOwnProperty,dt=65279,mt={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"},ft=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],yt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function vt(e){var t,r,s;if(t=e.toString(16).toUpperCase(),e<=255)r="x",s=2;else if(e<=65535)r="u",s=4;else{if(!(e<=4294967295))throw new J("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+q.repeat("0",s-t.length)+t}function gt(e){this.schema=e.schema||$e,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=q.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,s,n,i,o,a,c;if(null===t)return{};for(r={},n=0,i=(s=Object.keys(t)).length;n<i;n+=1)o=s[n],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&ht.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function bt(e,t){for(var r,s=q.repeat(" ",t),n=0,i=-1,o="",a=e.length;n<a;)-1===(i=e.indexOf("\n",n))?(r=e.slice(n),n=a):(r=e.slice(n,i+1),n=i+1),r.length&&"\n"!==r&&(o+=s),o+=r;return o}function xt(e,t){return"\n"+q.repeat(" ",e.indent*t)}function Et(e){return 32===e||9===e}function wt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==dt||65536<=e&&e<=1114111}function jt(e){return wt(e)&&e!==dt&&13!==e&&10!==e}function St(e,t,r){var s=jt(e),n=s&&!Et(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||jt(t)&&!Et(t)&&35===e||58===t&&n}function Ot(e,t){var r,s=e.charCodeAt(t);return s>=55296&&s<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(s-55296)+r-56320+65536:s}function Pt(e){return/^\n* /.test(e)}function $t(e,t,r,s,n,i,o,a){var c,l,u=0,p=null,h=!1,d=!1,m=-1!==s,f=-1,y=wt(l=Ot(e,0))&&l!==dt&&!Et(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&function(e){return!Et(e)&&58!==e}(Ot(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!wt(u=Ot(e,c)))return 5;y=y&&St(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=Ot(e,c)))h=!0,m&&(d=d||c-f-1>s&&" "!==e[f+1],f=c);else if(!wt(u))return 5;y=y&&St(u,p,a),p=u}d=d||m&&c-f-1>s&&" "!==e[f+1]}return h||d?r>9&&Pt(e)?5:o?2===i?5:2:d?4:3:!y||o||n(e)?2===i?5:2:1}function At(e,t,r,s,n){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ft.indexOf(t)||yt.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=s||e.flowLevel>-1&&r>=e.flowLevel;switch($t(t,a,e.indent,o,(function(t){return function(e,t){var r,s;for(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&&!s,n)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+kt(t,e.indent)+Tt(bt(t,i));case 4:return">"+kt(t,e.indent)+Tt(bt(function(e,t){var r,s,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,Ft(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;s=n.exec(e);){var c=s[1],l=s[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+Ft(l,t),o=r}return i}(t,o),i));case 5:return'"'+function(e){for(var t,r="",s=0,n=0;n<e.length;s>=65536?n+=2:n++)s=Ot(e,n),!(t=mt[s])&&wt(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||vt(s);return r}(t)+'"';default:throw new J("impossible error: invalid scalar style")}}()}function kt(e,t){var r=Pt(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function Tt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Ft(e,t){if(""===e||" "===e[0])return e;for(var r,s,n=/ [^ ]/g,i=0,o=0,a=0,c="";r=n.exec(e);)(a=r.index)-i>t&&(s=o>i?o:a,c+="\n"+e.slice(i,s),i=s+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Mt(e,t,r,s){var n,i,o,a="",c=e.tag;for(n=0,i=r.length;n<i;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(It(e,t+1,o,!0,!0,!1,!0)||void 0===o&&It(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=xt(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Ct(e,t,r){var s,n,i,o,a,c;for(i=0,o=(n=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=n[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===pt.call(a.represent))s=a.represent(t,c);else{if(!ht.call(a.represent,c))throw new J("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');s=a.represent[c](t,c)}e.dump=s}return!0}return!1}function It(e,t,r,s,n,i,o){e.tag=null,e.dump=r,Ct(e,r,!1)||Ct(e,r,!0);var a,c=pt.call(e.dump),l=s;s&&(s=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(n=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)s&&0!==Object.keys(e.dump).length?(!function(e,t,r,s){var n,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new J("sortKeys must be a boolean or a function");for(n=0,i=h.length;n<i;n+=1)l="",s&&""===u||(l+=xt(e,t)),a=r[o=h[n]],e.replacer&&(a=e.replacer.call(r,o,a)),It(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=xt(e,t)),It(e,t+1,a,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o,a,c="",l=e.tag,u=Object.keys(r);for(s=0,n=u.length;s<n;s+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[s]],e.replacer&&(o=e.replacer.call(r,i,o)),It(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),It(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)s&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Mt(e,t-1,e.dump,n):Mt(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o="",a=e.tag;for(s=0,n=r.length;s<n;s+=1)i=r[s],e.replacer&&(i=e.replacer.call(r,String(s),i)),(It(e,t,i,!1,!1)||void 0===i&&It(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new J("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&At(e,e.dump,t,i,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Rt(e,t){var r,s,n=[],i=[];for(Dt(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function Dt(e,t,r){var s,n,i;if(null!==e&&"object"==typeof e)if(-1!==(n=t.indexOf(e)))-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,i=e.length;n<i;n+=1)Dt(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)Dt(e[s[n]],t,r)}function _t(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Nt=Y,Lt=Z,Bt=se,qt=he,Ut=de,Vt=$e,Jt=ut.load,Ht=ut.loadAll,zt={dump:function(e,t){var r=new gt(t=t||{});r.noRefs||Rt(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),It(r,0,s,!0,!0)?r.dump+"\n":""}}.dump,Gt=J,Wt={binary:be,float:pe,map:re,null:ne,pairs:Se,set:Pe,timestamp:ye,bool:ie,int:ce,merge:ve,omap:we,seq:te,str:ee},Kt=_t("safeLoad","load"),Yt=_t("safeLoadAll","loadAll"),Xt=_t("safeDump","dump"),Qt={Type:Nt,Schema:Lt,FAILSAFE_SCHEMA:Bt,JSON_SCHEMA:qt,CORE_SCHEMA:Ut,DEFAULT_SCHEMA:Vt,load:Jt,loadAll:Ht,dump:zt,YAMLException:Gt,types:Wt,safeLoad:Kt,safeLoadAll:Yt,safeDump:Xt};function Zt(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function er(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Zt(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 Qt.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function tr(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=L(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 er(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 rr(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 sr=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},nr=e=>{const{fetch:t,http:r}=e;return t||r||tr};var ir,or=(ir=function(e,t){return ir=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])},ir(e,t)},function(e,t){function r(){this.constructor=e}ir(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ar=Object.prototype.hasOwnProperty;function cr(e,t){return ar.call(e,t)}function lr(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)cr(e,n)&&s.push(n);return s}function ur(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function pr(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 hr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function dr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function mr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(mr(e[t]))return!0}else if("object"==typeof e)for(var s=lr(e),n=s.length,i=0;i<n;i++)if(mr(e[s[i]]))return!0;return!1}function fr(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 yr=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,fr(t,{name:r,index:s,operation:n,tree:i}))||this;return a.name=r,a.index=s,a.operation=n,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=fr(t,{name:r,index:s,operation:n,tree:i}),a}return or(t,e),t}(Error),vr=yr,gr=ur,br={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=Er(r,this.path);s&&(s=ur(s));var n=wr(r,{op:"remove",path:this.from}).removed;return wr(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=Er(r,this.from);return wr(r,{op:"add",path:this.path,value:ur(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:$r(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},xr={add:function(e,t,r){return pr(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:br.move,copy:br.copy,test:br.test,_get:br._get};function Er(e,t){if(""==t)return e;var r={op:"_get",path:t};return wr(e,r),r.value}function wr(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):Or(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=Er(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=$r(e,t.value),!1===o.test)throw new vr("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 vr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=ur(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,d=void 0;for(d="function"==typeof r?r:Or;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=dr(h)),n&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&d(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!pr(h))throw new vr("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);pr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new vr("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=xr[t.op].call(t,c,h,e)).test)throw new vr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=br[t.op].call(t,c,h,e)).test)throw new vr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new vr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function jr(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new vr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=ur(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=wr(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function Sr(e,t,r){var s=wr(e,t);if(!1===s.test)throw new vr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function Or(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new vr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!br[e.op])throw new vr("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 vr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new vr('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 vr("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 vr("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)&&mr(e.value))throw new vr("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 vr("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 vr("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=Pr([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new vr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Pr(e,t,r){try{if(!Array.isArray(e))throw new vr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)jr(ur(t),ur(e),r||!0);else{r=r||Or;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof vr)return e;throw e}}function $r(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(!$r(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((s=a.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=s;0!=r--;)if(!$r(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var Ar=new WeakMap,kr=function(e){this.observers=new Map,this.obj=e},Tr=function(e,t){this.callback=e,this.observer=t};function Fr(e,t){t.unobserve()}function Mr(e,t){var r,s=function(e){return Ar.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new kr(e),Ar.set(e,s);if(r)return r;if(r={},s.value=ur(e),t){r.callback=t,r.next=null;var i=function(){Cr(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(){Cr(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 Tr(t,r)),r}function Cr(e,t){void 0===t&&(t=!1);var r=Ar.get(e.object);Ir(r.value,e.object,e.patches,"",t),e.patches.length&&jr(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function Ir(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=lr(t),o=lr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!cr(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+"/"+hr(p),value:ur(l)}),r.push({op:"remove",path:s+"/"+hr(p)}),a=!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)?Ir(l,u,r,s+"/"+hr(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+hr(p),value:ur(l)}),r.push({op:"replace",path:s+"/"+hr(p),value:ur(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;cr(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:s+"/"+hr(p),value:ur(t[p])})}}}function Rr(e,t,r){void 0===r&&(r=!1);var s=[];return Ir(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:yr,deepClone:ur,escapePathComponent:hr,unescapePathComponent:dr});var Dr=r(4744),_r=r.n(Dr);const Nr={add:function(e,t){return{op:"add",path:e,value:t}},replace:Br,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=Zr(e,t.path);Object.assign(r,t.value),jr(e,[Br(t.path,r)])}else if("mergeDeep"===t.op){const r=Zr(e,t.path),s=_r()(r,t.value,{customMerge:e=>{if("enum"===e)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:_r()(e,t)}});e=jr(e,[Br(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&Gr(t.value)){jr(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&&Xr(t)&&(Array.isArray(t.value)||Gr(t.value))&&(s={...s,...t.meta}),e=s}else if(jr(e,[t]),r.allowMetaPatches&&t.meta&&Xr(t)&&(Array.isArray(t.value)||Gr(t.value))){const r={...Zr(e,t.path),...t.meta};jr(e,[Br(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:Hr,fullyNormalizeArray:function(e){return zr(Hr(Jr(e)))},normalizeArray:Jr,isPromise:function(e){return Gr(e)&&Wr(e.then)},forEachNew:function(e,t){try{return qr(e,Vr,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return qr(e,Ur,t)}catch(e){return e}},isJsonPatch:Kr,isContextPatch:function(e){return Qr(e)&&"context"===e.type},isPatch:Qr,isMutation:Yr,isAdditiveMutation:Xr,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Wr,isObject:Gr,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 Br(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function qr(e,t,r){return zr(Hr(e.filter(Xr).map((e=>t(e.value,r,e.path)))||[]))}function Ur(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>Ur(e,t,r.concat(s)))):Gr(e)?Object.keys(e).map((s=>Ur(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function Vr(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)=>Vr(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(Gr(e)){const n=Object.keys(e).map((s=>Vr(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Hr(s),s}function Jr(e){return Array.isArray(e)?e:[e]}function Hr(e){return[].concat(...e.map((e=>Array.isArray(e)?Hr(e):e)))}function zr(e){return e.filter((e=>void 0!==e))}function Gr(e){return e&&"object"==typeof e}function Wr(e){return e&&"function"==typeof e}function Kr(e){if(Qr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Yr(e){return Kr(e)||Qr(e)&&"mutation"===e.type}function Xr(e){return Yr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Qr(e){return e&&"object"==typeof e}function Zr(e,t){try{return Er(e,t)}catch(e){return console.error(e),{}}}var es=r(8675);const ts=class extends es{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 rs extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ts,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 ss=rs;const ns=class extends ss{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};function is(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,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,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function os(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function as(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function cs(e){return function t(r){return 0===arguments.length||as(r)?t:e.apply(this,arguments)}}function ls(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return as(r)?t:cs((function(t){return e(r,t)}));default:return as(r)&&as(s)?t:as(r)?cs((function(t){return e(t,s)})):as(s)?cs((function(t){return e(r,t)})):e(r,s)}}}function us(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return as(r)?t:ls((function(t,s){return e(r,t,s)}));case 2:return as(r)&&as(s)?t:as(r)?ls((function(t,r){return e(t,s,r)})):as(s)?ls((function(t,s){return e(r,t,s)})):cs((function(t){return e(r,s,t)}));default:return as(r)&&as(s)&&as(n)?t:as(r)&&as(s)?ls((function(t,r){return e(t,r,n)})):as(r)&&as(n)?ls((function(t,r){return e(t,s,r)})):as(s)&&as(n)?ls((function(t,s){return e(r,t,s)})):as(r)?cs((function(t){return e(t,s,n)})):as(s)?cs((function(t){return e(r,t,n)})):as(n)?cs((function(t){return e(r,s,t)})):e(r,s,n)}}}const ps=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function hs(e){return"[object String]"===Object.prototype.toString.call(e)}const ds=cs((function(e){return!!ps(e)||!!e&&("object"==typeof e&&(!hs(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ms="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function fs(e,t,r){return function(s,n,i){if(ds(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[ms])return r(s,n,i[ms]());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 ys(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 vs=ls((function(e,t){return is(e.length,(function(){return e.apply(t,arguments)}))}));function gs(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 bs(e,t,r,s){return e["@@transducer/result"](r[s](vs(e["@@transducer/step"],e),t))}const xs=fs(ys,bs,gs);var Es=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 ws(e){return new Es(e)}const js=us((function(e,t,r){return xs("function"==typeof e?ws(e):e,t,r)}));function Ss(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return ps(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const Os=us(Ss("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ps=cs(Ss("tail",Os(1,1/0)));function $s(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return is(arguments[0].length,js(os,arguments[0],Ps(arguments)))}const As=ls((function(e,t){return null==t||t!=t?e:t})),ks=Number.isInteger||function(e){return(e|0)===e};function Ts(e,t){var r=e<0?t.length+e:e;return hs(t)?t.charAt(r):t[r]}const Fs=ls((function(e,t){if(null!=t)return ks(e)?Ts(e,t):t[e]}));const Ms=us((function(e,t,r){return As(e,Fs(t,r))}));const Cs=cs((function(e){return Ts(-1,e)}));function Is(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var c;o<t.length&&(!as(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,as(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):is(Math.max(0,i),Is(e,s,r))}}const Rs=ls((function(e,t){return 1===e?cs(t):is(e,Is(e,[],t))}));const Ds=cs((function(e){return Rs(e.length,e)}));function _s(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function Ns(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 Bs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const qs="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Us=Object.prototype.toString;const Vs=function(){return"[object Arguments]"===Us.call(arguments)?function(e){return"[object Arguments]"===Us.call(e)}:function(e){return Bs("callee",e)}}();var Js=!{toString:null}.propertyIsEnumerable("toString"),Hs=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],zs=function(){return arguments.propertyIsEnumerable("length")}(),Gs=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},Ws="function"!=typeof Object.keys||zs?cs((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=zs&&Vs(e);for(t in e)!Bs(t,e)||n&&"length"===t||(s[s.length]=t);if(Js)for(r=Hs.length-1;r>=0;)Bs(t=Hs[r],e)&&!Gs(s,t)&&(s[s.length]=t),r-=1;return s})):cs((function(e){return Object(e)!==e?[]:Object.keys(e)}));const Ks=Ws;const Ys=cs((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Xs(e,t,r,s){var n=Ns(e);function i(e,t){return Qs(e,t,r.slice(),s.slice())}return!Ls((function(e,t){return!Ls(i,t,e)}),Ns(t),n)}function Qs(e,t,r,s){if(qs(e,t))return!0;var n,i,o=Ys(e);if(o!==Ys(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||!qs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!qs(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Xs(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Xs(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 c=Ks(e);if(c.length!==Ks(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!Bs(p,t)||!Qs(t[p],e[p],l,u))return!1;a-=1}return!0}const Zs=ls((function(e,t){return Qs(e,t,[],[])}));function en(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(Zs(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function tn(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function rn(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 sn=function(e){return(e<10?"0":"")+e};const nn="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+sn(e.getUTCMonth()+1)+"-"+sn(e.getUTCDate())+"T"+sn(e.getUTCHours())+":"+sn(e.getUTCMinutes())+":"+sn(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function on(e){return function(){return!e.apply(this,arguments)}}function an(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function cn(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!ps(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 ln(e){return"[object Object]"===Object.prototype.toString.call(e)}const un=function(){return this.xf["@@transducer/init"]()},pn=function(e){return this.xf["@@transducer/result"](e)};var hn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=un,e.prototype["@@transducer/result"]=pn,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function dn(e){return function(t){return new hn(e,t)}}const mn=ls(cn(["fantasy-land/filter","filter"],dn,(function(e,t){return ln(t)?an((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},Ks(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 fn=ls((function(e,t){return mn(on(e),t)}));function yn(e,t){var r=function(r){var s=t.concat([e]);return en(r,s)?"<Circular>":yn(r,s)},s=function(e,t){return tn((function(t){return rn(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+tn(r,e).join(", ")+"))";case"[object Array]":return"["+tn(r,e).concat(s(e,fn((function(e){return/^\d+$/.test(e)}),Ks(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):rn(nn(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())+")":rn(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,Ks(e)).join(", ")+"}"}}const vn=cs((function(e){return yn(e,[])}));const gn=ls((function(e,t){return Rs(e+1,(function(){var r=arguments[e];if(null!=r&&_s(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(vn(r)+' does not have a method named "'+t+'"')}))}));const bn=gn(1,"split");function xn(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Os(0,r+1,t)}var En=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=un,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=xs(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 wn(e){return function(t){return new En(e,t)}}const jn=ls(cn([],wn,xn));const Sn=gn(1,"join");const On=cs((function(e){return Rs(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(ls(en));const Pn=Ds((function(e,t){return $s(bn(""),jn(On(e)),Sn(""))(t)}));function $n(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function An(e,t,r,s){return r[s](e,t)}const kn=fs(an,An,$n);var Tn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=un,e.prototype["@@transducer/result"]=pn,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Fn=ls(cn(["fantasy-land/map","map"],(function(e){return function(t){return new Tn(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Rs(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return an((function(r,s){return r[s]=e(t[s]),r}),{},Ks(t));default:return tn(e,t)}})));const Mn=ls((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))}:kn((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,Fn(r,t))}),[],e)}));const Cn=ls((function(e,t){var r=Rs(e,t);return Rs(e,(function(){return an(Mn,Fn(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const In=cs((function(e){return Cn(e.length,e)}));const Rn=In(cs((function(e){return!e})));const Dn=cs((function(e){return function(){return e}}));const _n=Dn(void 0);const Nn=Zs(_n());const Ln=Rn(Nn);const Bn=ls((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=vn(e),o=r(i,vn(t));return void 0!==o&&o===i?e:t}));const qn=ls((function(e,t){return Fn(Fs(e),t)}));const Un=cs((function(e){return Rs(js(Bn,0,qn("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 Vn=function(e,t){switch(arguments.length){case 0:return Vn;case 1:return function t(r){return 0===arguments.length?t:qs(e,r)};default:return qs(e,t)}};const Jn=Vn;const Hn=Rs(1,$s(Ys,Jn("GeneratorFunction")));const zn=Rs(1,$s(Ys,Jn("AsyncFunction")));const Gn=Un([$s(Ys,Jn("Function")),Hn,zn]);var Wn=us((function(e,t,r){return r.replace(e,t)}));const Kn=Wn;const Yn=Rs(1,$s(Ys,Jn("RegExp")));const Xn=us((function(e,t,r){return e(r)?t(r):r}));const Qn=Rs(1,$s(Ys,Jn("String")));const Zn=Xn(Qn,Kn(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var ei=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const ti=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),ei(r,"str"),ei(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(Yn(e)?e:Zn(e),"g");return Kn(s,t,r)};var ri=Rs(3,ti),si=gn(2,"replaceAll");const ni=Gn(String.prototype.replaceAll)?si:ri,ii=()=>{var e,t;return/^win/.test(null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.platform)&&void 0!==e?e:"")},oi=e=>{try{const t=new URL(e);return Pn(":",t.protocol)}catch{return}},ai=($s(oi,Ln),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),ci=e=>{if(void 0!==globalThis.window)return!1;const t=oi(e);return Nn(t)||"file"===t||/^[a-zA-Z]$/.test(t)},li=e=>{const t=oi(e);return"http"===t||"https"===t},ui=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=Ms(!1,"keepFileProtocol",t),n=Ms(ii,"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=ni("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},pi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},hi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},di=()=>{var e,t;if(void 0!==globalThis.window)return hi(globalThis.location.href);const r=null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.cwd())&&void 0!==e?e:"/",s=Cs(r);return["/","\\"].includes(s)?r:r+(ii()?"\\":"/")},mi=(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()},fi=e=>{if(ci(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;ii()&&(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})(ui(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},yi=e=>ci(e)?ui(e):decodeURI(e);function vi(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 gi(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 bi(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function xi(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,a=!1;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vi(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 vi(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 Ei(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var wi=function(e){throw TypeError(e)},ji=function(e,t,r){return t.has(e)||wi("Cannot "+r)},Si=function(e,t,r){return ji(e,t,"read from private field"),r?r.call(e):t.get(e)},Oi=function(e,t,r){return t.has(e)?wi("Cannot add the same private member more than once"):bi(t,WeakSet)?t.add(e):t.set(e,r)},Pi=function(e,t,r,s){return ji(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},$i=function(e){return Object.prototype.toString.call(e)},Ai=function(e){return ArrayBuffer.isView(e)&&!bi(e,DataView)},ki=Array.isArray,Ti=Object.getOwnPropertyDescriptor,Fi=Object.prototype.propertyIsEnumerable,Mi=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty;function Ii(e){for(var t=Object.keys(e),r=Mi(e),s=0;s<r.length;s++)Fi.call(e,r[s])&&t.push(r[s]);return t}function Ri(e,t){var r;return!(null===(r=Ti(e,t))||void 0===r?void 0:r.writable)}function Di(e,t){if("object"===(void 0===e?"undefined":Ei(e))&&null!==e){var r;if(ki(e))r=[];else if("[object Date]"===$i(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===$i(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===$i(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===$i(e)}(e)||function(e){return"[object Number]"===$i(e)}(e)||function(e){return"[object String]"===$i(e)}(e))r=Object(e);else{if(Ai(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?Ii:Object.keys,n=!0,i=!1,o=void 0;try{for(var a,c=s(e)[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var l=a.value;r[l]=e[l]}}catch(e){i=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}return e}var _i,Ni,Li={includeSymbols:!1,immutable:!1};function Bi(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Li,s=[],n=[],i=!0,o=r.includeSymbols?Ii:Object.keys,a=!!r.immutable;return function e(c){var l=a?Di(c,r):c,u={},p=!0,h={node:l,node_:c,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){ki(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"===Ei(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_===c){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"===Ei(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=xi(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]);a&&Ci.call(h.node,S)&&!Ri(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 qi=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Oi(this,_i),Oi(this,Ni),Pi(this,_i,t),Pi(this,Ni,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=Si(this,_i),r=0;t&&r<e.length;r++){var s=e[r];if(!Ci.call(t,s)||!Si(this,Ni).includeSymbols&&"symbol"===(void 0===s?"undefined":Ei(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=Si(this,_i),r=0;t&&r<e.length;r++){var s=e[r];if(!Ci.call(t,s)||!Si(this,Ni).includeSymbols&&"symbol"===(void 0===s?"undefined":Ei(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=Si(this,_i),s=0;for(s=0;s<e.length-1;s++){var n=e[s];Ci.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return Bi(Si(this,_i),e,{immutable:!0,includeSymbols:!!Si(this,Ni).includeSymbols})}},{key:"forEach",value:function(e){return Pi(this,_i,Bi(Si(this,_i),e,Si(this,Ni))),Si(this,_i)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?Si(this,_i):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=Si(this,Ni);return Ai(Si(this,_i))?Si(this,_i).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":Ei(n))&&null!==n){var o=Di(n,r);e.push(n),t.push(o);var a=r.includeSymbols?Ii:Object.keys,c=!0,l=!1,u=void 0;try{for(var p,h=a(n)[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var d=p.value;o[d]=s(n[d])}}catch(e){l=!0,u=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw u}}return e.pop(),t.pop(),o}return n}(Si(this,_i))}}],r&&gi(t.prototype,r),s&&gi(t,s),e}();_i=new WeakMap,Ni=new WeakMap;var Ui=function(e,t){return new qi(e,t)};Ui.get=function(e,t,r){return new qi(e,r).get(t)},Ui.set=function(e,t,r,s){return new qi(e,s).set(t,r)},Ui.has=function(e,t,r){return new qi(e,r).has(t)},Ui.map=function(e,t,r){return new qi(e,r).map(t)},Ui.forEach=function(e,t,r){return new qi(e,r).forEach(t)},Ui.reduce=function(e,t,r,s){return new qi(e,s).reduce(t,r)},Ui.paths=function(e,t){return new qi(e,t).paths()},Ui.nodes=function(e,t){return new qi(e,t).nodes()},Ui.clone=function(e,t){return new qi(e,t).clone()};var Vi=Ui;const Ji=["properties"],Hi=["properties"],zi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Gi=["schema/example","items/example"];function Wi(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return Ji.indexOf(t)>-1&&-1===Hi.indexOf(r)||zi.indexOf(s)>-1||Gi.some((e=>s.indexOf(e)>-1))}function Ki(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(li(n))o=mi(n,i);else{const e=mi(y,n),t=mi(e,i).replace(y,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const Yi=/^([a-z]+:\/\/|\/\/)/i;class Xi extends ns{}const Qi={},Zi=new WeakMap,eo=[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]],to={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(Wi(i)||(e=>eo.some((t=>t(e))))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new Xi("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=oo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?no(c,o):null}catch(t){return io(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=Zi.get(s);n||(n={},Zi.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(ho).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=s.contextTree.get([]).baseDoc;if(t===c&&fo(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${ho(e)}`,n[l]&&n[l].some((e=>fo(e,o)||fo(o,e))))));if(u)return!0;return void(n[a]=(n[a]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=Ki(e,u);return e===t?null:Nr.replace(r,t)}if(null==u?(h=uo(l),p=s.get(h),void 0===p&&(p=new Xi(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=ao(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw io(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[Nr.remove(r),p];const d=Ki(e,u),m=Nr.replace(i,p,{$$ref:d});if(u&&u!==o)return[m,Nr.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 Nr.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}}},ro=Object.assign(to,{docCache:Qi,absoluteify:no,clearCache:function(e){void 0!==e?delete Qi[e]:Object.keys(Qi).forEach((e=>{delete Qi[e]}))},JSONRefError:Xi,wrapError:io,getDoc:co,split:oo,extractFromDoc:ao,fetchJSON:function(e){return fetch(e,{headers:{Accept:f},loadSpec:!0}).then((e=>e.text())).then((e=>Qt.load(e)))},extract:lo,jsonPointerToArray:uo,unescapeJsonPointerToken:po}),so=ro;function no(e,t){if(!Yi.test(e)){if(!t)throw new Xi(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return mi(t,e)}return e}function io(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new Xi(`Could not resolve reference: ${r}`,{...t,cause:e})}function oo(e){return(e+"").split("#")}function ao(e,t){const r=Qi[e];if(r&&!Nr.isPromise(r))try{const e=lo(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return co(e).then((e=>lo(t,e)))}function co(e){const t=Qi[e];return t?Nr.isPromise(t)?t:Promise.resolve(t):(Qi[e]=ro.fetchJSON(e).then((t=>(Qi[e]=t,t))),Qi[e])}function lo(e,t){const r=uo(e);if(r.length<1)return t;const s=Nr.getIn(t,r);if(void 0===s)throw new Xi(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function uo(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(po)}function po(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function ho(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const mo=e=>!e||"/"===e||"#"===e;function fo(e,t){if(mo(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const yo={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(Wi(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=n.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(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,c.push(e)}c.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 Vi(e).forEach((function(){if(n.includes(this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=Ki(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});c.push(...n)})),a.example&&c.push(s.remove([].concat(i,"example"))),c.push(s.mergeDeep(i,a)),a.$$ref||c.push(s.remove([].concat(i,"$$ref"))),c}},vo={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...Nr.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 Nr.replace(r,t)}return Nr.replace(r,e)}},go={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 Nr.replace(r,n)}};class bo{constructor(e){this.root=xo(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Eo(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?Eo(n[s],t,r):n[s]=xo(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]=xo(null,e)),s[r]}),this.root)}}function xo(e,t){return Eo({children:{}},e,t)}function Eo(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]=Eo(r,r.value,e)})),e}const wo=()=>{};class jo{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 bo,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Nr,{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(Nr.isFunction),this.patches.push(Nr.add([],this.spec)),this.patches.push(Nr.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]):Nr.isFunction(e)?s=e:Nr.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(Nr.isAdditiveMutation).entries()){if(!(e<g))return;yield*o(t.value,t.path,t)}function*o(s,a,c){if(Nr.isObject(s)){const l=a.length-1,u=a[l],p=a.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=a.concat(l),m=Nr.isObject(u),f=s.$$ref;if(d||m&&(n.allowMetaPatches&&f&&t(r,p)&&(i[f]=!0),yield*o(u,p,c)),!h&&l===e.key){const s=t(r,a);r&&!s||(yield e.plugin(u,l,p,n,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(s,e.key,a,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:Nr.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){Nr.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Nr.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Nr.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Nr.isContextPatch(e))return void this.setContext(e.path,e.value);Nr.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=Nr.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 Nr.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(wo,wo)))).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=Nr.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const So={refs:so,allOf:yo,parameters:vo,properties:go};async function Oo(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=sr(e),d=nr(e),m=p.find((e=>e.match(t)));return async function(e){h&&(So.refs.docCache[h]=e);So.refs.fetchJSON=rr(d,{requestInterceptor:a,responseInterceptor:c});const t=[So.refs];"function"==typeof o&&t.push(So.parameters);"function"==typeof i&&t.push(So.properties);"strict"!==r&&t.push(So.allOf);const p=await(f={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new jo(f).dispatch());var f;l||(p.spec=m.normalize(p.spec));return p}(t)}function Po(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=ks(n)?Ts(n,r):r[n]}return r}const $o=us((function(e,t,r){return e(Po(t,r))}));const Ao=ls((function(e,t){return e&&t}));const ko=ls((function(e,t){return _s(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:In(Ao)(e,t)}));const To=Zs(null);const Fo=Rn(To);function Mo(e){return Mo="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},Mo(e)}const Co=function(e){return"object"===Mo(e)};const Io=Rs(1,ko(Fo,Co));var Ro=$s(Ys,Jn("Object")),Do=$s(vn,Zs(vn(Object))),_o=$o(ko(Gn,Do),["constructor"]);const No=Rs(1,(function(e){if(!Io(e)||!Ro(e))return!1;var t=Object.getPrototypeOf(e);return!!To(t)||_o(t)})),Lo=e=>e.replace(/\W/gi,"_");function Bo(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Lo(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()}${Lo(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function qo(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){const n=r[e];if(null==n||!["object","function"].includes(typeof n))continue;const i=n.parameters;for(const r in n){const o=n[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=Bo(o,e,r);if(a){s[a]?s[a].push(o):s[a]=[o];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!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.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(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(Array.isArray(o[e])){if("parameters"===e)for(const r of t[e]){o[e].some((e=>!(!No(e)&&!No(r))&&(e===r||["name","$ref","$$ref"].some((t=>"string"==typeof e[t]&&"string"==typeof r[t]&&e[t]===r[t])))))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const Uo={name:"generic",match:()=>!0,normalize(e){const{spec:t}=qo({spec:e});return t},resolve:async e=>Oo(e)};const Vo=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},Jo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Ho=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},zo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Go=e=>Jo(e)||Ho(e)||zo(e),Wo={name:"openapi-2",match:e=>Vo(e),normalize(e){const{spec:t}=qo({spec:e});return t},resolve:async e=>async function(e){return Oo(e)}(e)};const Ko={name:"openapi-3-0",match:e=>Jo(e),normalize(e){const{spec:t}=qo({spec:e});return t},resolve:async e=>async function(e){return Oo(e)}(e)},Yo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=sr(e),i=nr(e),o=t||await rr(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),Xo=Yo({strategies:[Ko,Wo,Uo]}),Qo=e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((t=>t.match(e))).normalize(e),d=await Xo({spec:h,...p,allowMetaPatches:!0,skipNormalization:!Ho(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...s});Qo({strategies:[Ko,Wo,Uo]});var Zo=r(4035);function ea(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var ta=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=un,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=ea(this.xf["@@transducer/step"](e,!1))),e},e}();function ra(e){return function(t){return new ta(e,t)}}const sa=ls(cn(["all"],ra,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class na extends Zo.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 ia=na;class oa extends Zo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const aa=oa;class ca extends Zo.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(Nn(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const la=ca,ua=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],pa=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,ha=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),da=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Zo.wE)&&t.classes.includes(e),ma=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,fa=e=>e({hasMethod:ua,hasBasicElementProps:pa,primitiveEq:ha,isElementType:ma,hasClass:da}),ya=fa((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.Hg||e(r)&&t(void 0,r))),va=fa((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.Om||e(r)&&t("string",r))),ga=fa((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.kT||e(r)&&t("number",r))),ba=fa((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.Os||e(r)&&t("null",r))),xa=fa((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.bd||e(r)&&t("boolean",r))),Ea=fa((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Zo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),wa=fa((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Zo.wE&&!(s instanceof Zo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),ja=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo.Pr||e(s)&&t("member",s)&&r(void 0,s))),Sa=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo.Ft||e(s)&&t("link",s)&&r(void 0,s))),Oa=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo.sI||e(s)&&t("ref",s)&&r(void 0,s))),Pa=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ia||e(s)&&t("annotation",s)&&r("array",s))),$a=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aa||e(s)&&t("comment",s)&&r("string",s))),Aa=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof la||e(s)&&t("parseResult",s)&&r("array",s))),ka=e=>ma("object",e)||ma("array",e)||ma("boolean",e)||ma("number",e)||ma("string",e)||ma("null",e)||ma("member",e),Ta=e=>!!ya(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)),Fa=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!wa(r)&&sa(On(r.toValue()),e)},Ma=(e,t)=>0===e.length||sa(On(t.classes.toValue()),e);const Ca=function(){return!0};const Ia=function(){return!1},Ra=(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},Da={},_a=e=>null==e?void 0:e.type,Na=e=>"string"==typeof _a(e),La=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ba=(e,{visitFnGetter:t=Ra,nodeTypeGetter:r=_a,breakSymbol:s=Da,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);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(c[l]===a){const a=t(e[l],r(f),!1);if("function"==typeof a){const t=a.call(e[l],f,u,p,h,d,v);if("function"==typeof(null==t?void 0:t.then))throw new ns("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=f;else if(t===s)c[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(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=a.call(e[n],d,o,l,u,p,m);if("function"==typeof(null==t?void 0:t.then))throw new ns("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};Ba[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Ra,nodeTypeGetter:r=_a,breakSymbol:s=Da,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);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(c[l]===a){const a=t(e[l],r(f),!1);if("function"==typeof a){const t=await a.call(e[l],f,u,p,h,d,v);if(t===i)c[l]=f;else if(t===s)c[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(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=await a.call(e[n],d,o,l,u,p,m);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};const qa=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Da,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ra,nodeTypeGetter:c=_a,nodePredicate:l=Na,nodeCloneFn:u=La,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 ns(`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=a(t,c(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 ns("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[c(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};qa[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Da,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ra,nodeTypeGetter:c=_a,nodePredicate:l=Na,nodeCloneFn:u=La,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 ns(`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=a(t,c(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[c(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 Ua=class extends ns{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Va=class extends Ua{};const Ja=class extends Ua{};const Ha=ls((function(e,t){return an((function(r,s){return r[s]=e(t[s],s,t),r}),{},Ks(t))}));const za=cs((function(e){return null==e}));var Ga=ls((function(e,t){if(0===e.length||za(t))return!1;for(var r=t,s=0;s<e.length;){if(za(r)||!Bs(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const Wa=Ga;var Ka=ls((function(e,t){return Wa([e],t)}));const Ya=Ka;const Xa=us((function(e,t,r){return e(Fs(t,r))}));const Qa=ls(Po);var Za=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=un,e.prototype["@@transducer/result"]=pn,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 ec(e){return function(t){return new Za(e,t)}}const tc=ls(cn(["dropWhile"],ec,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return Os(r,1/0,t)})));const rc=Ds((function(e,t){return $s(bn(""),tc(On(e)),Sn(""))(t)})),sc=(e,t)=>{const r=As(e,t);return Ha((e=>{if(No(e)&&Ya("$ref",e)&&Xa(Qn,"$ref",e)){const t=Qa(["$ref"],e),s=rc("#/",t);return Qa(s.split("/"),r)}return No(e)?sc(e,r):e}),e)},nc=(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),ic=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Zo.KeyValuePair){const{key:t,value:n}=e,i=ya(t)?ic(t,s):t,o=ya(n)?ic(n,s):n,a=new Zo.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Zo.ot){const t=e=>ic(e,s),n=[...e].map(t),i=new Zo.ot(n);return r.set(e,i),i}if(e instanceof Zo.G6){const t=e=>ic(e,s),n=[...e].map(t),i=new Zo.G6(n);return r.set(e,i),i}if(ya(e)){const t=cc(e);if(r.set(e,t),e.content)if(ya(e.content))t.content=ic(e.content,s);else if(e.content instanceof Zo.KeyValuePair)t.content=ic(e.content,s);else if(Array.isArray(e.content)){const r=e=>ic(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Va("Value provided to cloneDeep function couldn't be cloned",{value:e})};ic.safe=e=>{try{return ic(e)}catch{return e}};const oc=e=>{const{key:t,value:r}=e;return new Zo.KeyValuePair(t,r)},ac=e=>{const t=new e.constructor;if(t.element=e.element,Ta(e)&&nc(t,e),e.meta.length>0&&(t._meta=ic(e.meta)),e.attributes.length>0&&(t._attributes=ic(e.attributes)),ya(e.content)){const r=e.content;t.content=ac(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Zo.KeyValuePair?t.content=oc(e.content):t.content=e.content;return t},cc=e=>{if(e instanceof Zo.KeyValuePair)return oc(e);if(e instanceof Zo.ot)return(e=>{const t=[...e];return new Zo.ot(t)})(e);if(e instanceof Zo.G6)return(e=>{const t=[...e];return new Zo.G6(t)})(e);if(ya(e))return ac(e);throw new Ja("Value provided to cloneShallow function couldn't be cloned",{value:e})};cc.safe=e=>{try{return cc(e)}catch{return e}};const lc=e=>Ea(e)?"ObjectElement":wa(e)?"ArrayElement":ja(e)?"MemberElement":va(e)?"StringElement":xa(e)?"BooleanElement":ga(e)?"NumberElement":ba(e)?"NullElement":Sa(e)?"LinkElement":Oa(e)?"RefElement":void 0,uc=e=>ya(e)?cc(e):La(e),pc=$s(lc,Qn),hc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class dc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Ia,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 mc=(e,t,{keyMap:r=hc,...s}={})=>qa(e,t,{keyMap:r,nodeTypeGetter:lc,nodePredicate:pc,nodeCloneFn:uc,...s});mc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=hc,...s}={})=>qa[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:lc,nodePredicate:pc,nodeCloneFn:uc,...s});const fc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:lc(e),yc={EphemeralObject:["content"],EphemeralArray:["content"],...hc},vc=(e,t,{keyMap:r=yc,...s}={})=>mc(e,t,{keyMap:r,nodeTypeGetter:fc,nodePredicate:Ca,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});vc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=yc,...r}={})=>mc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:fc,nodePredicate:Ca,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const gc=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 bc=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 xc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new bc(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 gc(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 va(e.href)?e.href.toValue():""}}const Ec=e=>ya(e)?va(e)||ga(e)||xa(e)||ba(e)?e.toValue():vc(e,new xc):e;const wc=us((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})Bs(s,t)&&(n[s]=Bs(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)Bs(s,r)&&!Bs(s,n)&&(n[s]=r[s]);return n}));const jc=us((function e(t,r,s){return wc((function(r,s,n){return ln(s)&&ln(n)?e(t,s,n):t(r,s,n)}),r,s)}));const Sc=ls((function(e,t){return jc((function(e,t,r){return r}),e,t)}));const Oc=Os(0,-1);const Pc=ls((function(e,t){return e.apply(this,t)}));const $c=Rn(Gn);var Ac=cs((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():ps(e)?[]:hs(e)?"":ln(e)?{}:Vs(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 kc=Ac;const Tc=cs((function(e){return null!=e&&Zs(e,kc(e))}));const Fc=Rs(1,Gn(Array.isArray)?Array.isArray:$s(Ys,Jn("Array")));const Mc=ko(Fc,Tc);var Cc=Rs(3,(function(e,t,r){var s=Qa(e,r),n=Qa(Oc(e),r);if(!$c(s)&&!Mc(e)){var i=vs(s,n);return Pc(i,t)}}));const Ic=Cc;class Rc extends Zo.g${constructor(){super(),this.register("annotation",ia),this.register("comment",aa),this.register("parseResult",la)}}const Dc=new Rc,_c=e=>{const t=new Rc;return No(e)&&t.use(e),t},Nc=Dc,Lc=()=>({predicates:{...i},namespace:Nc}),Bc={toolboxCreator:Lc,visitorOptions:{nodeTypeGetter:lc,exposeEdits:!0}},qc=(e,t,r={})=>{if(0===t.length)return e;const s=Sc(Bc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ba(a.map(Ms({},"visitor")),{...i});a.forEach(Ic(["pre"],[]));const l=mc(e,c,i);return a.forEach(Ic(["post"],[])),l};qc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Sc(Bc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ba[Symbol.for("nodejs.util.promisify.custom")],l=mc[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(Ms({},"visitor")),{...i});await Promise.allSettled(a.map(Ic(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(Ic(["post"],[]))),p};const Uc=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return ya(e)&&(e.meta.length>0&&(s.meta=ic(e.meta)),e.attributes.length>0&&(s.attributes=ic(e.attributes))),qc(s,r,{toolboxCreator:Lc,visitorOptions:{nodeTypeGetter:lc}})},Vc=e=>(t,r={})=>Uc(t,{...r,Type:e});Zo.Sh.refract=Vc(Zo.Sh),Zo.wE.refract=Vc(Zo.wE),Zo.Om.refract=Vc(Zo.Om),Zo.bd.refract=Vc(Zo.bd),Zo.Os.refract=Vc(Zo.Os),Zo.kT.refract=Vc(Zo.kT),Zo.Ft.refract=Vc(Zo.Ft),Zo.sI.refract=Vc(Zo.sI),ia.refract=Vc(ia),aa.refract=Vc(aa),la.refract=Vc(la);const Jc=(e,t=new WeakMap)=>(ja(e)?(t.set(e.key,e),Jc(e.key,t),t.set(e.value,e),Jc(e.value,t)):e.children.forEach((r=>{t.set(r,e),Jc(r,t)})),t);const Hc=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:Jc(this.element);const s=this.edges.get(e);return Nn(s)?void 0:(Ea(s)?((e,t,r)=>{const s=r.get(e);Ea(s)&&(s.content=s.map(((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o)))})(e,t,this.edges):wa(s)?((e,t,r)=>{const s=r.get(e);wa(s)&&(s.content=s.map((n=>n===e?(r.delete(e),r.set(t,s),t):n)))})(e,t,this.edges):ja(s)&&((e,t,r)=>{const s=r.get(e);ja(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 zc=(e,t,r)=>new Hc({element:r}).transclude(e,t),Gc=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))},Wc=function(){const e=Zc,t=Qc,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,a,c,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,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=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(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const s in r.callbacks)if(r.callbacks.hasOwnProperty(s)){if(t=a.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?c[t]=o:l[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,a),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,a),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===a.length;break;default:throw new Error("unrecognized state")}return{success:O,state:y.state,stateName:e.idName(y.state),length:a.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,c)=>{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=a.length-c;l[f.index](y,a,c,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,c,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,a,c;const l=o[t];r.ast&&(i=r.ast.getLength()),n=!0,a=s,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){n=!1;break}a+=y.phraseLength,c+=y.phraseLength}n?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,c,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=s,c=0,l=0,r.ast&&(n=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,l,h;const d=o[t],m=n[d.index],f=c[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=a.length-s;f(y,a,s,u),v(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,b(0,s),o=h,f(y,a,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<a.length&&s.min<=a[r]&&a[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<=a.length){for(let e=0;e<n;e+=1)if(a[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<=a.length){for(let e=0;e<i;e+=1)if(s=a[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}},Kc=function(){const e=Zc,t=Qc,r=this;let s,n,i,o=0;const a=[],c=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;c.length=0,l.length=0,o=0,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)a[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`);a[p]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[s.length+e],r.down=(t,r)=>{const s=l.length;return c.push(s),l.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),s},r.up=(t,r,s,n)=>{const i=l.length,o=c.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:c.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=a[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,c.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}},Yc=function(){const e=Zc,t=Qc,r="parser.js: Trace(): ";let s,n,i,o="",a=0;const c=this,l=e=>{let t="",r=0;if(e>=0)for(;e--;)r+=1,5===r?(t+="|",r=0):t+=".";return t};c.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};c.down=(e,r)=>{const n=l(a),i=Math.min(100,s.length-r);let c=t.charsToString(s,r,i);i<s.length-r&&(c+="..."),c=`${n}|-|[${u(e)}]${c}\n`,o+=c,a+=1},c.up=(n,i,c,p)=>{const h=`${r}trace.up: `;a-=1;const d=l(a);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,c,m)}...'`:`'${t.charsToString(s,c,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},c.displayTrace=()=>o},Xc=function(){const e=Zc;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} | ${a(t)} | ${a(s)} | ${a(n)} | ${a(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`| ${a(e)} | ${a(t)} | ${a(r)} | ${a(n)} | ${i}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(i.sort(c),o.sort(c),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 a=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(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:c(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}`)}}},Qc={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)}},Zc={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 Zc.ALT:return"ALT";case Zc.CAT:return"CAT";case Zc.REP:return"REP";case Zc.RNM:return"RNM";case Zc.TRG:return"TRG";case Zc.TBS:return"TBS";case Zc.TLS:return"TLS";case Zc.UDT:return"UDT";case Zc.AND:return"AND";case Zc.NOT:return"NOT";case Zc.ACTIVE:return"ACTIVE";case Zc.EMPTY:return"EMPTY";case Zc.MATCH:return"MATCH";case Zc.NOMATCH:return"NOMATCH";case Zc.SEM_PRE:return"SEM_PRE";case Zc.SEM_POST:return"SEM_POST";case Zc.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function el(){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 tl 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 rl=tl;const sl=class extends rl{},nl=e=>(t,r,s,n,i)=>{if("object"!=typeof i||null===i||Array.isArray(i))throw new sl("parser's user data must be an object");if(t===Zc.SEM_PRE){const t={type:e,text:Qc.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===Zc.SEM_POST&&i.stack.pop()};const il=class extends Kc{constructor(){super(),this.callbacks["json-pointer"]=nl("json-pointer"),this.callbacks["reference-token"]=nl("reference-token"),this.callbacks.slash=nl("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},ol=e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};const al=class extends il{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:e})=>"reference-token"===e)).map((({text:e})=>ol(e)))}};const cl=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}};const ll=class extends Yc{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 cl(...t)}},ul=new el,pl=(e,{translator:t=new al,stats:r=!1,trace:s=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const n=new Wc;t&&(n.ast=t),r&&(n.stats=new Xc),s&&(n.trace=new ll);const i=n.parse(ul,"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 sl("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}};new el,new Wc,new el,new Wc;const hl=new el,dl=new Wc,ml=e=>{if("string"!=typeof e)return!1;try{return dl.parse(hl,"array-index",e).success}catch{return!1}},fl=new el,yl=new Wc,vl=e=>{if("string"!=typeof e)return!1;try{return yl.parse(fl,"array-dash",e).success}catch{return!1}},gl=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 bl=class extends rl{},xl=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 gl(String(e))})).join("/")}`}catch(t){throw new bl("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const El=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 wl=class{name="";isArray(e){throw new rl("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new rl("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new rl("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new rl("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new rl("Realm.evaluate(node) must be implemented in a subclass")}};const jl=class extends rl{};const Sl=class extends jl{};const Ol=class extends wl{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 Sl(`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 Pl=class extends jl{};const $l=class extends jl{},Al=(e,t,{strictArrays:r=!0,strictObjects:s=!0,realm:n=new Ol,trace:i=!0}={})=>{const{result:o,tree:a,trace:c}=pl(t,{trace:!!i}),l="object"==typeof i&&null!==i?new El(i,{jsonPointer:t,referenceTokens:a,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+=c?`, expected ${c.inferExpectations()}`:"",new jl(r,{jsonPointer:t,currentValue:e,realm:n.name})}return a.reduce(((e,o,c)=>{if(n.isArray(e)){if(vl(o)){if(r)throw new Sl(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,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(!ml(o))throw new Sl(`Invalid array index "${o}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});const s=Number(o);if(!Number.isSafeInteger(s))throw new Sl(`Invalid array index "${o}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});if(!n.has(e,o)&&r)throw new Sl(`Invalid array index "${o}" at position ${c} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,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 $l(`Invalid object key "${o}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}throw new Pl(`Invalid reference token "${o}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,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 jl)throw e;throw new jl("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:a})}};const kl=class extends wl{name="apidom";isArray(e){return wa(e)}isObject(e){return Ea(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 Sl(`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 $l(`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)}},Tl=(e,t,r={})=>Al(e,t,{...r,realm:new kl});class Fl extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ml=Fl;class Cl extends Zo.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 Il=Cl;class Rl extends Zo.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 Dl=Rl;class _l extends Zo.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 Nl=_l;class Ll extends Zo.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 Bl=Ll;class ql extends Zo.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 Ul=ql;class Vl extends Zo.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 Jl=Vl;class Hl extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Zo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Zo.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(Hl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const zl=Hl;class Gl extends Zo.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 Wl=Gl;class Kl extends Zo.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 Yl=Kl;class Xl extends Zo.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 va(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):va(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 Ql=Xl;class Zl extends Zo.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 eu=Zl;class tu extends Zo.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 ru=tu;class su extends Zo.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 nu=su;class iu extends Zo.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const ou=iu;class au extends Zo.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 cu=au;class lu extends Zo.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 Zo.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 uu=lu;class pu extends Zo.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 Zo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Zo.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 Zo.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 mu=du;class fu extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const yu=fu;class vu extends Zo.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 gu=vu;class bu extends Zo.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 Zo.bd(!1)}set required(e){this.set("required",e)}}const xu=bu;class Eu extends Zo.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 wu=Eu;class ju extends Zo.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 Su=ju;const Ou=class extends ss{};class Pu extends Zo.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 $u=Pu;class Au extends Zo.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 ku=Au;class Tu extends Zo.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 Fu=Tu;class Mu extends Zo.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 Cu=Mu,Iu=e=>{const t=e.meta.length>0?ic(e.meta):void 0,r=e.attributes.length>0?ic(e.attributes):void 0;return new e.constructor(void 0,t,r)},Ru=(e,t)=>t.clone&&t.isMergeableElement(e)?_u(Iu(e),e,t):e,Du={clone:!0,isMergeableElement:e=>Ea(e)||wa(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Ru(e,r))),objectElementMerge:(e,t,r)=>{const s=Ea(e)?Iu(e):Iu(t);return Ea(e)&&e.forEach(((e,t,n)=>{const i=cc(n);i.value=Ru(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=Ec(n);let a;if(Ea(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=cc(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return _u;const r=t.customMerge(e,t);return"function"==typeof r?r:_u})(n,r)(s,t,r)}else a=cc(i),a.value=Ru(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},_u=(e,t,r)=>{var s,n,i;const o={...Du,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:Du.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:Du.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Du.objectElementMerge;const a=wa(t);if(!(a===wa(e)))return Ru(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>ic(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>ic(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};_u.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Zo.Sh:e.reduce(((e,r)=>_u(e,r,t)),Iu(e[0]))};const Nu=_u;const Lu=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Nu(t.meta,e.meta)),Ta(e)&&nc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Nu(t.attributes,e.attributes))}};const Bu=class extends Lu{enter(e){return this.element=ic(e),Da}},qu=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Uu=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Uu(r,[...t,r])},Vu=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Uu(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=Uu(n);for(let t of e){let e=Uu(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(qu(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Ju=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Hu=(e,t)=>{const r=t.map((e=>Uu(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++}},zu=(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(Hu(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Hu(s,e)||void 0!==t[s],get:(r,s)=>(Hu(s,e)||t)[s],set(t,r,s){const n=Hu(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)))))}),Gu=null,Wu="copy",Ku="copy",Yu="deep",Xu=new WeakMap,Qu=e=>Xu.get(e),Zu=(e,t)=>{var r,s;const n=Ju([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Ju([...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},ep=(e,t)=>{var r,s,n,i;return{property:Zu(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:Zu(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},tp=(e,t)=>{var r,s,n,i,o,a;return{class:Ju([...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:ep(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:ep(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},rp=new Map,sp=(...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=[...Uu(e.prototype).map((e=>e.constructor)),...null!==(t=Qu(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=>rp.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>tp(e,t)))},np=e=>{let t=rp.get(e);return t||(t={},rp.set(e,t)),t};function ip(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Gu;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)qu(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Ku?Vu(n,o):(a=n,c=o,zu([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Wu?Vu(e,null,["prototype"]):zu(e,Function.prototype));let l=o;if("none"!==Yu){const n="deep"===Yu?sp(...e):((...e)=>{const t=e.map((e=>np(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>tp(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)}op(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),op(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Xu.set(u,p),l}const op=(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 ap=cs((function(e){return Rs(js(Bn,0,qn("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 cp=cs((function(e){return!Tc(e)}));const lp=ls((function(e,t){return e||t}));var up=Rn(Rs(1,ko(Fo,ls((function(e,t){return _s(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:In(lp)(e,t)}))(Co,Gn))));const pp=ap([Qn,up,cp]);const hp=ls((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 dp=class extends Lu{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return hp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Qa(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $o(Gn,["visitors",...e],this.specObj)?Qa(["visitors",...e],this.specObj):Qa(["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 Bu&&(null==s?void 0:s.constructor)===Bu?ic(t):(mc(t,s,r),s.element)}};const mp=class extends dp{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(va(s)&&r.includes(Ec(s))&&!this.ignoredFields.includes(Ec(s))){const r=this.toRefractedElement([...t,"fixedFields",Ec(s)],e),i=new Zo.Pr(ic(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ec(s))||this.element.content.push(ic(n))})),this.copyMetaAndAttributes(e,this.element),Da}};const fp=class{parent;constructor({parent:e}){this.parent=e}},yp=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $u||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),vp=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ku||e(s)&&t("JSONReference",s)&&r("object",s))),gp=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fu||e(s)&&t("media",s)&&r("object",s))),bp=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cu||e(s)&&t("linkDescription",s)&&r("object",s)));class xp extends(ip(mp,fp,Bu)){constructor(e){super(e),this.element=new $u,this.specPath=Dn(["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,mp.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Nn(this.parent)&&!va(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(yp(this.parent)&&!va(e.get("$schema"))){const e=As(Ec(this.parent.meta.get("inheritedDialectIdentifier")),Ec(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?ic(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Zo.wE,s=Ec(e.get(t));pp(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Ep=xp,wp=e=>Ea(e)&&e.hasKey("$ref");class jp extends(ip(dp,fp,Bu)){ObjectElement(e){const t=wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Da}ArrayElement(e){return this.element=new Zo.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const Sp=jp;const Op=class extends Bu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Pp=class extends dp{specPath;ignoredFields;fieldPatternPredicate=Ia;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(Ec(t))&&this.fieldPatternPredicate(Ec(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Zo.Pr(ic(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ec(t))||this.element.content.push(ic(r))})),this.copyMetaAndAttributes(e,this.element),Da}};const $p=class extends Pp{constructor(e){super(e),this.fieldPatternPredicate=pp}};class Ap extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const kp=Ap;class Tp extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Fp=Tp;class Mp extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Cp=Mp;const Ip=class extends Bu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Rp=class extends Bu{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class Dp extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const _p=Dp;class Np extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const Lp=Np;class Bp extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const qp=Bp;class Up extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>wp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Vp=Up;class Jp extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.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),Da}}const Hp=Jp;class zp extends(ip(mp,Bu)){constructor(e){super(e),this.element=new ku,this.specPath=Dn(["document","objects","JSONReference"])}ObjectElement(e){const t=mp.prototype.ObjectElement.call(this,e);return va(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Gp=zp;const Wp=class extends Bu{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Kp=us((function(e,t,r){return Rs(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Yp=cs((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Xp=ls((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Qp=Xp;const Zp=cs((function(e){return Ts(0,e)}));const eh=cs(ea);const th=Rn(za);const rh=ko(Fc,cp);function sh(e){return function(e){if(Array.isArray(e))return nh(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 nh(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)?nh(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 nh(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 ih=$s(Qp(Yp((function(e,t){return e.length>t.length}))),Zp,Fs("length")),oh=Ds((function(e,t,r){var s=r.apply(void 0,sh(e));return th(s)?eh(s):t}));const ah=Kp(rh,(function(e){var t=ih(e);return Rs(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return js(oh(r),void 0,e)}))}),_n);const ch=class extends dp{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Kp(e,Dn(t),_n))),r=ah(t)(e);return this.element=this.toRefractedElement(r,e),Da}};const lh=class extends ch{constructor(e){super(e),this.alternator=[{predicate:wp,specPath:["document","objects","JSONReference"]},{predicate:Ca,specPath:["document","objects","JSONSchema"]}]}};class uh extends(ip(mp,Bu)){constructor(e){super(e),this.element=new Fu,this.specPath=Dn(["document","objects","Media"])}}const ph=uh;class hh extends(ip(mp,Bu)){constructor(e){super(e),this.element=new Cu,this.specPath=Dn(["document","objects","LinkDescription"])}}const dh=hh,mh={visitors:{value:Bu,JSONSchemaOrJSONReferenceVisitor:lh,document:{objects:{JSONSchema:{$visitor:Ep,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:lh,items:Sp,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Op,properties:kp,additionalProperties:lh,patternProperties:Fp,dependencies:Cp,enum:Ip,type:Rp,allOf:_p,anyOf:Lp,oneOf:qp,not:lh,definitions:Vp,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Hp,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Gp,fixedFields:{$ref:Wp}},Media:{$visitor:ph,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:dh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:lh,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:lh}}}}}},fh=e=>{if(ya(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},yh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...hc},vh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",$u),t.register("jSONReference",ku),t.register("media",Fu),t.register("linkDescription",Cu),t}},gh=()=>{const e=_c(vh);return{predicates:{...o,isStringElement:va},namespace:e}},bh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=mh}={})=>{const n=(0,Zo.e)(e),i=sc(s),o=new(Qa(t,i))({specObj:i});return mc(n,o),qc(o.element,r,{toolboxCreator:gh,visitorOptions:{keyMap:yh,nodeTypeGetter:fh}})},xh=e=>(t,r={})=>bh(t,{specPath:e,...r});$u.refract=xh(["visitors","document","objects","JSONSchema","$visitor"]),ku.refract=xh(["visitors","document","objects","JSONReference","$visitor"]),Fu.refract=xh(["visitors","document","objects","Media","$visitor"]),Cu.refract=xh(["visitors","document","objects","LinkDescription","$visitor"]);const Eh=class extends $u{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Ou("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Ou("idProp setter in Schema class is not not supported.")}get $schema(){throw new Ou("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Ou("$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 Ou("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Ou("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Ou("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Ou("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 Ou("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Ou("definitions setter in Schema class is not not supported.")}get base(){throw new Ou("base getter in Schema class is not not supported.")}set base(e){throw new Ou("base setter in Schema class is not not supported.")}get links(){throw new Ou("links getter in Schema class is not not supported.")}set links(e){throw new Ou("links setter in Schema class is not not supported.")}get media(){throw new Ou("media getter in Schema class is not not supported.")}set media(e){throw new Ou("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class wh extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const jh=wh;class Sh extends Zo.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 Oh=Sh;class Ph extends Zo.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 $h=Ph;class Ah extends Zo.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 kh=Ah;class Th extends Zo.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 Fh=Th;class Mh extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Ch=Mh;const Ih=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Nu(t.meta,e.meta)),Ta(e)&&nc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Nu(t.attributes,e.attributes))}};const Rh=class extends Ih{enter(e){return this.element=ic(e),Da}};const Dh=class extends Ih{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 hp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Qa(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $o(Gn,["visitors",...e],this.specObj)?Qa(["visitors",...e],this.specObj):Qa(["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 Rh&&(null==s?void 0:s.constructor)===Rh?ic(t):(mc(t,s,r),s.element)}};var _h=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=un,e.prototype["@@transducer/result"]=pn,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?ea(r):r},e}();function Nh(e){return function(t){return new _h(e,t)}}const Lh=ls(cn(["take"],Nh,(function(e,t){return Os(0,e<0?1/0:e,t)})));const Bh=ls((function(e,t){return Zs(Lh(e.length,t),e)})),qh=e=>Ea(e)&&e.hasKey("$ref"),Uh=Ea,Vh=Ea,Jh=e=>va(e.key)&&Bh("x-",Ec(e.key));const Hh=class extends Dh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Jh;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(va(s)&&r.includes(Ec(s))&&!this.ignoredFields.includes(Ec(s))){const r=this.toRefractedElement([...t,"fixedFields",Ec(s)],e),i=new Zo.Pr(ic(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(Ec(s))||this.element.content.push(ic(n))})),this.copyMetaAndAttributes(e,this.element),Da}};class zh extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new cu,this.specPath=Dn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Hh.prototype.ObjectElement.call(this,e)}}const Gh=zh;class Wh extends(ip(Dh,Rh)){StringElement(e){const t=new ou(Ec(e));return this.copyMetaAndAttributes(e,t),this.element=t,Da}}const Kh=Wh;const Yh=class extends Dh{MemberElement(e){return this.element=ic(e),this.element.classes.push("specification-extension"),Da}};class Xh extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Wl,this.specPath=Dn(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Qh=Xh;const Zh=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class ed extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Dl,this.specPath=Dn(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const td=ed;class rd extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Yl,this.specPath=Dn(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const sd=rd;class nd extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Ql,this.specPath=Dn(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return(va(this.element.operationId)||va(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const id=nd;const od=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const ad=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const cd=class extends Dh{specPath;ignoredFields;fieldPatternPredicate=Ia;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Jh;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(Ec(t))&&this.fieldPatternPredicate(Ec(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Zo.Pr(ic(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ec(t))||this.element.content.push(ic(r))})),this.copyMetaAndAttributes(e,this.element),Da}};const ld=class extends cd{constructor(e){super(e),this.fieldPatternPredicate=pp}};class ud extends Zo.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(ud.primaryClass)}}const pd=ud;class hd extends(ip(ld,Rh)){constructor(e){super(e),this.element=new pd,this.specPath=Dn(["value"])}}const dd=hd;class md extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new $h,this.specPath=Dn(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const fd=md;const yd=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class vd extends Zo.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(vd.primaryClass)}}const gd=vd;class bd extends(ip(Dh,Rh)){constructor(e){super(e),this.element=new gd}ArrayElement(e){return e.forEach((e=>{const t=Uh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const xd=bd;class Ed extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new kh,this.specPath=Dn(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const wd=Ed;class jd extends Zo.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(jd.primaryClass)}}const Sd=jd;class Od extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Sd,this.specPath=Dn(["document","objects","ServerVariable"])}}const Pd=Od;class $d extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new eu,this.specPath=Dn(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Ad=$d;const kd=class extends Dh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Kp(e,Dn(t),_n))),r=ah(t)(e);return this.element=this.toRefractedElement(r,e),Da}},Td=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ml||e(s)&&t("callback",s)&&r("object",s))),Fd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Il||e(s)&&t("components",s)&&r("object",s))),Md=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dl||e(s)&&t("contact",s)&&r("object",s))),Cd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ul||e(s)&&t("example",s)&&r("object",s))),Id=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jl||e(s)&&t("externalDocumentation",s)&&r("object",s))),Rd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zl||e(s)&&t("header",s)&&r("object",s))),Dd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wl||e(s)&&t("info",s)&&r("object",s))),_d=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yl||e(s)&&t("license",s)&&r("object",s))),Nd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ql||e(s)&&t("link",s)&&r("object",s))),Ld=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ou||e(s)&&t("openapi",s)&&r("string",s))),Bd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof cu||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),qd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uu||e(s)&&t("operation",s)&&r("object",s))),Ud=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hu||e(s)&&t("parameter",s)&&r("object",s))),Vd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mu||e(s)&&t("pathItem",s)&&r("object",s))),Jd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yu||e(s)&&t("paths",s)&&r("object",s))),Hd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gu||e(s)&&t("reference",s)&&r("object",s))),zd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xu||e(s)&&t("requestBody",s)&&r("object",s))),Gd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wu||e(s)&&t("response",s)&&r("object",s))),Wd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Su||e(s)&&t("responses",s)&&r("object",s))),Kd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Eh||e(s)&&t("schema",s)&&r("object",s))),Yd=e=>xa(e)&&e.classes.includes("boolean-json-schema"),Xd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jh||e(s)&&t("securityRequirement",s)&&r("object",s))),Qd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Oh||e(s)&&t("securityScheme",s)&&r("object",s))),Zd=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $h||e(s)&&t("server",s)&&r("object",s))),em=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kh||e(s)&&t("serverVariable",s)&&r("object",s))),tm=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eu||e(s)&&t("mediaType",s)&&r("object",s))),rm=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof gd||e(n)&&t("array",n)&&r("array",n)&&s("servers",n))),sm=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nl||e(s)&&t("discriminator",s)&&r("object",s)));class nm extends(ip(kd,Rh)){constructor(e){super(e),this.alternator=[{predicate:qh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=kd.prototype.enter.call(this,e);return Hd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const im=nm;class om extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("examples"),this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const am=om;class cm extends Zo.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(cm.primaryClass),this.classes.push("examples")}}const lm=cm;const um=class extends am{constructor(e){super(e),this.element=new lm}};class pm extends Zo.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(pm.primaryClass)}}const hm=pm;class dm extends(ip(ld,Rh)){constructor(e){super(e),this.element=new hm,this.specPath=Dn(["document","objects","Encoding"])}}const mm=dm;class fm extends(ip(ld,Rh)){constructor(e){super(e),this.element=new jh,this.specPath=Dn(["value"])}}const ym=fm;class vm extends Zo.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(vm.primaryClass)}}const gm=vm;class bm extends(ip(Dh,Rh)){constructor(e){super(e),this.element=new gm}ArrayElement(e){return e.forEach((e=>{if(Ea(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(ic(e))})),this.copyMetaAndAttributes(e,this.element),Da}}const xm=bm;class Em extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Il,this.specPath=Dn(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const wm=Em;class jm extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Fh,this.specPath=Dn(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Sm=jm;class Om extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new gu,this.specPath=Dn(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return va(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Pm=Om;const $m=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Am extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new hu,this.specPath=Dn(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Ea(this.element.contentProp)&&this.element.contentProp.filter(tm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ec(t))})),t}}const km=Am;class Tm extends(ip(kd,Rh)){constructor(e){super(e),this.alternator=[{predicate:qh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=kd.prototype.enter.call(this,e);return Hd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Fm=Tm;class Mm extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new zl,this.specPath=Dn(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Cm=Mm;class Im extends(ip(kd,Rh)){constructor(e){super(e),this.alternator=[{predicate:qh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=kd.prototype.enter.call(this,e);return Hd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Rm=Im;class Dm extends Zo.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Dm.primaryClass),this.classes.push("examples")}}const _m=Dm;const Nm=class extends am{constructor(e){super(e),this.element=new _m}};class Lm extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("content"),this.specPath=Dn(["document","objects","MediaType"])}}const Bm=Lm;class qm extends Zo.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(qm.primaryClass),this.classes.push("content")}}const Um=qm;const Vm=class extends Bm{constructor(e){super(e),this.element=new Um}};class Jm extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Eh,this.specPath=Dn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Hm=Jm,zm=mh.visitors.document.objects.JSONSchema.fixedFields.allOf;const Gm=class extends zm{ArrayElement(e){const t=zm.prototype.ArrayElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Wm=mh.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Km=class extends Wm{ArrayElement(e){const t=Wm.prototype.ArrayElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Ym=mh.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Xm=class extends Ym{ArrayElement(e){const t=Ym.prototype.ArrayElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Qm=mh.visitors.document.objects.JSONSchema.fixedFields.items;const Zm=class extends Qm{ObjectElement(e){const t=Qm.prototype.ObjectElement.call(this,e);return Hd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},ef=mh.visitors.document.objects.JSONSchema.fixedFields.properties;const tf=class extends ef{ObjectElement(e){const t=ef.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},rf=mh.visitors.document.objects.JSONSchema.fixedFields.type;const sf=class extends rf{ArrayElement(e){return this.enter(e)}},nf=mh.visitors.JSONSchemaOrJSONReferenceVisitor;const of=class extends nf{ObjectElement(e){const t=nf.prototype.enter.call(this,e);return Hd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class af extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Nl,this.specPath=Dn(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const cf=af;class lf extends Zo.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(lf.primaryClass)}}const uf=lf;class pf extends(ip(ld,Rh)){constructor(e){super(e),this.element=new uf,this.specPath=Dn(["value"])}}const hf=pf;class df extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Ch,this.specPath=Dn(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const mf=df;class ff extends Zo.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ff.primaryClass),this.classes.push("examples")}}const yf=ff;const vf=class extends am{constructor(e){super(e),this.element=new yf}};class gf extends Zo.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(gf.primaryClass),this.classes.push("content")}}const bf=gf;const xf=class extends Bm{constructor(e){super(e),this.element=new bf}};class Ef extends Zo.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Ef.primaryClass)}}const wf=Ef;class jf extends(ip(ld,Rh)){constructor(e){super(e),this.element=new wf,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Sf=jf;class Of extends Zo.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Of.primaryClass)}}const Pf=Of;class $f extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Pf,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Gd).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Ec(t))})),t}}const Af=$f;class kf extends Zo.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(kf.primaryClass),this.classes.push("parameters")}}const Tf=kf;class Ff extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Tf,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const Mf=Ff;class Cf extends Zo.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Cf.primaryClass),this.classes.push("examples")}}const If=Cf;class Rf extends(ip(ld,Rh)){constructor(e){super(e),this.element=new If,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Df=Rf;class _f extends Zo.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(_f.primaryClass)}}const Nf=_f;class Lf extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Nf,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Bf=Lf;class qf extends Zo.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(qf.primaryClass)}}const Uf=qf;class Vf extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Uf,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Rd).forEach(((e,t)=>{e.setMetaProperty("header-name",Ec(t))})),t}}const Jf=Vf;class Hf extends Zo.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Hf.primaryClass)}}const zf=Hf;class Gf extends(ip(ld,Rh)){constructor(e){super(e),this.element=new zf,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Wf=Gf;class Kf extends Zo.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Kf.primaryClass)}}const Yf=Kf;class Xf extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Yf,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Qf=Xf;class Zf extends Zo.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Zf.primaryClass)}}const ey=Zf;class ty extends(ip(ld,Rh)){constructor(e){super(e),this.element=new ey,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const ry=ty;class sy extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Ul,this.specPath=Dn(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return va(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const ny=sy;const iy=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class oy extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Jl,this.specPath=Dn(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const ay=oy;class cy extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Bl,this.specPath=Dn(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Ea(this.element.headers)&&this.element.headers.filter(Rd).forEach(((e,t)=>{e.setMetaProperty("header-name",Ec(t))})),t}}const ly=cy;class uy extends Zo.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(uy.primaryClass)}}const py=uy;class hy extends(ip(ld,Rh)){constructor(e){super(e),this.element=new py,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Rd(e))return;const r=Ec(t);e.setMetaProperty("headerName",r)})),t}}const dy=hy;class my extends(ip(cd,Rh)){constructor(e){super(e),this.element=new yu,this.specPath=Dn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ca}ObjectElement(e){const t=cd.prototype.ObjectElement.call(this,e);return this.element.filter(Vd).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ic(t))})),t}}const fy=my;class yy extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new xu,this.specPath=Dn(["document","objects","RequestBody"])}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Ea(this.element.contentProp)&&this.element.contentProp.filter(tm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ec(t))})),t}}const vy=yy;class gy extends Zo.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(gy.primaryClass),this.classes.push("content")}}const by=gy;const xy=class extends Bm{constructor(e){super(e),this.element=new by}};class Ey extends(ip(cd,Rh)){constructor(e){super(e),this.element=new Ml,this.specPath=Dn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Vd).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Ec(t))})),t}}const wy=Ey;class jy extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new wu,this.specPath=Dn(["document","objects","Response"])}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return Ea(this.element.contentProp)&&this.element.contentProp.filter(tm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ec(t))})),Ea(this.element.headers)&&this.element.headers.filter(Rd).forEach(((e,t)=>{e.setMetaProperty("header-name",Ec(t))})),t}}const Sy=jy;class Oy extends Zo.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Oy.primaryClass)}}const Py=Oy;class $y extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Py,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Rd(e))return;const r=Ec(t);e.setMetaProperty("header-name",r)})),t}}const Ay=$y;class ky extends Zo.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(ky.primaryClass),this.classes.push("content")}}const Ty=ky;const Fy=class extends Bm{constructor(e){super(e),this.element=new Ty}};class My extends Zo.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(My.primaryClass)}}const Cy=My;class Iy extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Cy,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Ry=Iy;function Dy(e){return"[object Number]"===Object.prototype.toString.call(e)}var _y=ls((function(e,t){if(!Dy(e)||!Dy(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 Ny=_y;function Ly(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?!!en(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?!!en(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const By=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Ly(e,!0,this)},e.prototype.has=function(e){return Ly(e,!1,this)},e}();var qy=ls((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new By,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));const Uy=qy;class Vy extends(ip(Hh,cd)){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,...Uy(e.keys(),t)],Hh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,cd.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Da}}const Jy=Vy;class Hy extends(ip(Jy,Rh)){constructor(e){super(e),this.element=new Su,this.specPathFixedFields=Dn(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>qh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ny(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Jy.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Gd).forEach(((e,t)=>{const r=ic(t);this.fieldPatternPredicate(Ec(r))&&e.setMetaProperty("http-status-code",r)})),t}}const zy=Hy;class Gy extends(ip(kd,Rh)){constructor(e){super(e),this.alternator=[{predicate:qh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=kd.prototype.enter.call(this,e);return Hd(this.element)?this.element.setMetaProperty("referenced-element","response"):Gd(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Wy=Gy;class Ky extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new uu,this.specPath=Dn(["document","objects","Operation"])}}const Yy=Ky;class Xy extends Zo.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Xy.primaryClass)}}const Qy=Xy;const Zy=class extends Rh{constructor(e){super(e),this.element=new Qy}ArrayElement(e){return this.element=this.element.concat(ic(e)),Da}};class ev extends Zo.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(ev.primaryClass),this.classes.push("parameters")}}const tv=ev;class rv extends(ip(Dh,Rh)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=qh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Hd(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const sv=rv;const nv=class extends sv{constructor(e){super(e),this.element=new tv}};const iv=class extends kd{constructor(e){super(e),this.alternator=[{predicate:qh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=kd.prototype.enter.call(this,e);return Hd(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class ov extends Zo.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(ov.primaryClass)}}const av=ov;class cv extends(ip(ld,Rh)){specPath;constructor(e){super(e),this.element=new av,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Hd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const lv=cv;class uv extends Zo.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(uv.primaryClass),this.classes.push("security")}}const pv=uv;class hv extends(ip(Dh,Rh)){constructor(e){super(e),this.element=new pv}ArrayElement(e){return e.forEach((e=>{const t=Ea(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const dv=hv;class mv extends Zo.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(mv.primaryClass),this.classes.push("servers")}}const fv=mv;const yv=class extends xd{constructor(e){super(e),this.element=new fv}};class vv extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new mu,this.specPath=Dn(["document","objects","PathItem"])}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return this.element.filter(qd).forEach(((e,t)=>{const r=ic(t);r.content=Ec(r).toUpperCase(),e.setMetaProperty("http-method",r)})),va(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const gv=vv;const bv=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class xv extends Zo.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(xv.primaryClass),this.classes.push("servers")}}const Ev=xv;const wv=class extends xd{constructor(e){super(e),this.element=new Ev}};class jv extends Zo.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(jv.primaryClass),this.classes.push("parameters")}}const Sv=jv;const Ov=class extends sv{constructor(e){super(e),this.element=new Sv}};class Pv extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new Oh,this.specPath=Dn(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const $v=Pv;class Av extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new nu,this.specPath=Dn(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const kv=Av;class Tv extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new ru,this.specPath=Dn(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Fv=Tv;class Mv extends Zo.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Mv.primaryClass)}}const Cv=Mv;class Iv extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Cv,this.specPath=Dn(["value"])}}const Rv=Iv;class Dv extends Zo.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Dv.primaryClass)}}const _v=Dv;class Nv extends(ip(Dh,Rh)){constructor(e){super(e),this.element=new _v}ArrayElement(e){return e.forEach((e=>{const t=Vh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Da}}const Lv=Nv,{fixedFields:Bv}=mh.visitors.document.objects.JSONSchema,qv={visitors:{value:Rh,document:{objects:{OpenApi:{$visitor:Gh,fixedFields:{openapi:Kh,info:{$ref:"#/visitors/document/objects/Info"},servers:xd,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:xm,tags:Lv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Qh,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Zh}},Contact:{$visitor:td,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:sd,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:fd,fixedFields:{url:yd,description:{$ref:"#/visitors/value"},variables:Pd}},ServerVariable:{$visitor:wd,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:wm,fixedFields:{schemas:Sf,responses:Af,parameters:Mf,examples:Df,requestBodies:Bf,headers:Jf,securitySchemes:Wf,links:Qf,callbacks:ry}},Paths:{$visitor:fy},PathItem:{$visitor:gv,fixedFields:{$ref:bv,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:wv,parameters:Ov}},Operation:{$visitor:Yy,fixedFields:{tags:Zy,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:nv,requestBody:iv,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:lv,deprecated:{$ref:"#/visitors/value"},security:dv,servers:yv}},ExternalDocumentation:{$visitor:ay,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:km,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Fm,example:{$ref:"#/visitors/value"},examples:vf,content:xf}},RequestBody:{$visitor:vy,fixedFields:{description:{$ref:"#/visitors/value"},content:xy,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Ad,fixedFields:{schema:im,example:{$ref:"#/visitors/value"},examples:um,encoding:mm}},Encoding:{$visitor:ly,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:dy,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:zy,fixedFields:{default:Wy}},Response:{$visitor:Sy,fixedFields:{description:{$ref:"#/visitors/value"},headers:Ay,content:Fy,links:Ry}},Callback:{$visitor:wy},Example:{$visitor:ny,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:iy}},Link:{$visitor:id,fixedFields:{operationRef:od,operationId:ad,parameters:dd,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Cm,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:Rm,example:{$ref:"#/visitors/value"},examples:Nm,content:Vm}},Tag:{$visitor:Sm,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Pm,fixedFields:{$ref:$m}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Hm,fixedFields:{title:Bv.title,multipleOf:Bv.multipleOf,maximum:Bv.maximum,exclusiveMaximum:Bv.exclusiveMaximum,minimum:Bv.minimum,exclusiveMinimum:Bv.exclusiveMinimum,maxLength:Bv.maxLength,minLength:Bv.minLength,pattern:Bv.pattern,maxItems:Bv.maxItems,minItems:Bv.minItems,uniqueItems:Bv.uniqueItems,maxProperties:Bv.maxProperties,minProperties:Bv.minProperties,required:Bv.required,enum:Bv.enum,type:sf,allOf:Gm,anyOf:Km,oneOf:Xm,not:of,items:Zm,properties:tf,additionalProperties:of,description:Bv.description,format:Bv.format,default:Bv.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:cf,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:hf}},XML:{$visitor:mf,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:$v,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:kv,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:Fv,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Rv}},SecurityRequirement:{$visitor:ym}},extension:{$visitor:Yh}}}},Uv=e=>{if(ya(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Vv={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"],...hc},Jv={namespace:e=>{const{base:t}=e;return t.register("callback",Ml),t.register("components",Il),t.register("contact",Dl),t.register("discriminator",Nl),t.register("encoding",Bl),t.register("example",Ul),t.register("externalDocumentation",Jl),t.register("header",zl),t.register("info",Wl),t.register("license",Yl),t.register("link",Ql),t.register("mediaType",eu),t.register("oAuthFlow",ru),t.register("oAuthFlows",nu),t.register("openapi",ou),t.register("openApi3_0",cu),t.register("operation",uu),t.register("parameter",hu),t.register("pathItem",mu),t.register("paths",yu),t.register("reference",gu),t.register("requestBody",xu),t.register("response",wu),t.register("responses",Su),t.register("schema",Eh),t.register("securityRequirement",jh),t.register("securityScheme",Oh),t.register("server",$h),t.register("serverVariable",kh),t.register("tag",Fh),t.register("xml",Ch),t}},Hv=()=>{const e=_c(Jv);return{predicates:{...a,isElement:ya,isStringElement:va,isArrayElement:wa,isObjectElement:Ea,isMemberElement:ja,includesClasses:Ma,hasElementSourceMap:Ta},namespace:e}},zv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Zo.e)(e),n=sc(qv),i=new(Qa(t,n))({specObj:n});return mc(s,i),qc(i.element,r,{toolboxCreator:Hv,visitorOptions:{keyMap:Vv,nodeTypeGetter:Uv}})},Gv=e=>(t,r={})=>zv(t,{specPath:e,...r});Ml.refract=Gv(["visitors","document","objects","Callback","$visitor"]),Il.refract=Gv(["visitors","document","objects","Components","$visitor"]),Dl.refract=Gv(["visitors","document","objects","Contact","$visitor"]),Ul.refract=Gv(["visitors","document","objects","Example","$visitor"]),Nl.refract=Gv(["visitors","document","objects","Discriminator","$visitor"]),Bl.refract=Gv(["visitors","document","objects","Encoding","$visitor"]),Jl.refract=Gv(["visitors","document","objects","ExternalDocumentation","$visitor"]),zl.refract=Gv(["visitors","document","objects","Header","$visitor"]),Wl.refract=Gv(["visitors","document","objects","Info","$visitor"]),Yl.refract=Gv(["visitors","document","objects","License","$visitor"]),Ql.refract=Gv(["visitors","document","objects","Link","$visitor"]),eu.refract=Gv(["visitors","document","objects","MediaType","$visitor"]),ru.refract=Gv(["visitors","document","objects","OAuthFlow","$visitor"]),nu.refract=Gv(["visitors","document","objects","OAuthFlows","$visitor"]),ou.refract=Gv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),cu.refract=Gv(["visitors","document","objects","OpenApi","$visitor"]),uu.refract=Gv(["visitors","document","objects","Operation","$visitor"]),hu.refract=Gv(["visitors","document","objects","Parameter","$visitor"]),mu.refract=Gv(["visitors","document","objects","PathItem","$visitor"]),yu.refract=Gv(["visitors","document","objects","Paths","$visitor"]),gu.refract=Gv(["visitors","document","objects","Reference","$visitor"]),xu.refract=Gv(["visitors","document","objects","RequestBody","$visitor"]),wu.refract=Gv(["visitors","document","objects","Response","$visitor"]),Su.refract=Gv(["visitors","document","objects","Responses","$visitor"]),Eh.refract=Gv(["visitors","document","objects","Schema","$visitor"]),jh.refract=Gv(["visitors","document","objects","SecurityRequirement","$visitor"]),Oh.refract=Gv(["visitors","document","objects","SecurityScheme","$visitor"]),$h.refract=Gv(["visitors","document","objects","Server","$visitor"]),kh.refract=Gv(["visitors","document","objects","ServerVariable","$visitor"]),Fh.refract=Gv(["visitors","document","objects","Tag","$visitor"]),Ch.refract=Gv(["visitors","document","objects","XML","$visitor"]);const Wv=class extends Ml{};const Kv=class extends Il{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Yv=class extends Dl{};const Xv=class extends Nl{};const Qv=class extends Bl{};const Zv=class extends Ul{};const eg=class extends Jl{};const tg=class extends zl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const rg=class extends Wl{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 sg extends Zo.Om{static default=new sg("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const ng=sg;const ig=class extends Yl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const og=class extends Ql{};const ag=class extends eu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const cg=class extends ru{};const lg=class extends nu{};const ug=class extends ou{};class pg extends Zo.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 hg=pg;const dg=class extends uu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const mg=class extends hu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const fg=class extends mu{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 yg=class extends yu{};class vg extends gu{}Object.defineProperty(vg.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(vg.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const gg=vg;const bg=class extends xu{};const xg=class extends wu{};const Eg=class extends Su{};const wg=class extends $u{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Ou("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Ou("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 jg=class extends Cu{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 Ou("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Ou("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 Ou("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Ou("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Ou("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Ou("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 Sg=us((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!za(s)&&Bs(n,s)&&"object"==typeof s[n]?s[n]:ks(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(ks(e)&&ps(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 Og=Sg;const Pg=us((function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s}));var $g=us((function(e,t,r){return Og([e],t,r)}));const Ag=$g;var kg=ls((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(ks(e)&&ps(t))return Pg(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(ks(e)&&ps(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):Ag(s,e(n,r[s]),r)}}));const Tg=kg;const Fg=class extends Ep{constructor(e){super(e),this.element=new wg}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 Mg=class extends Sp{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Da}};const Cg=class extends Bu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const Ig=class extends dh{constructor(e){super(e),this.element=new jg}},Rg=$s(Og(["visitors","document","objects","JSONSchema","$visitor"],Fg),Tg(["visitors","document","objects","JSONSchema","fixedFields","id"]),Og(["visitors","document","objects","JSONSchema","fixedFields","$id"],mh.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","contains"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),Og(["visitors","document","objects","JSONSchema","fixedFields","items"],Mg),Og(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),Og(["visitors","document","objects","JSONSchema","fixedFields","const"],mh.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","examples"],Cg),Og(["visitors","document","objects","LinkDescription","$visitor"],Ig),Og(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),Tg(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Og(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),Tg(["visitors","document","objects","LinkDescription","fixedFields","method"]),Tg(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Og(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],mh.visitors.value))(mh),Dg={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...hc},_g=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wg||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s))),Ng=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jg||e(s)&&t("linkDescription",s)&&r("object",s))),Lg={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",wg),t.register("jSONReference",ku),t.register("media",Fu),t.register("linkDescription",jg),t}},Bg=()=>{const e=_c(Lg);return{predicates:{...c,isStringElement:va},namespace:e}},qg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Rg}={})=>{const n=(0,Zo.e)(e),i=sc(s),o=new(Qa(t,i))({specObj:i});return mc(n,o),qc(o.element,r,{toolboxCreator:Bg,visitorOptions:{keyMap:Dg,nodeTypeGetter:fh}})},Ug=e=>(t,r={})=>qg(t,{specPath:e,...r});wg.refract=Ug(["visitors","document","objects","JSONSchema","$visitor"]),jg.refract=Ug(["visitors","document","objects","LinkDescription","$visitor"]);const Vg=class extends wg{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 Ou('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Ou('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 Jg=class extends jg{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 Ou("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Ou("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 Ou("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Ou("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 Hg=class extends Fg{constructor(e){super(e),this.element=new Vg}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const zg=class extends Ig{constructor(e){super(e),this.element=new Jg}},Gg=$s(Og(["visitors","document","objects","JSONSchema","$visitor"],Hg),Og(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Rg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","if"],Rg.visitors.JSONSchemaOrJSONReferenceVisitor),Og(["visitors","document","objects","JSONSchema","fixedFields","then"],Rg.visitors.JSONSchemaOrJSONReferenceVisitor),Og(["visitors","document","objects","JSONSchema","fixedFields","else"],Rg.visitors.JSONSchemaOrJSONReferenceVisitor),Tg(["visitors","document","objects","JSONSchema","fixedFields","media"]),Og(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Rg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Rg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Rg.visitors.value),Og(["visitors","document","objects","LinkDescription","$visitor"],zg),Og(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Rg.visitors.value),Og(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Rg.visitors.value),Tg(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Og(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Rg.visitors.value),Og(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Rg.visitors.value),Og(["visitors","document","objects","LinkDescription","fixedFields","description"],Rg.visitors.value),Og(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Rg.visitors.value),Og(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Rg.visitors.JSONSchemaOrJSONReferenceVisitor),Tg(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Og(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Rg.visitors.value))(Rg),Wg={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...hc},Kg=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vg||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s))),Yg=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jg||e(s)&&t("linkDescription",s)&&r("object",s))),Xg={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",Vg),t.register("jSONReference",ku),t.register("linkDescription",Jg),t}},Qg=()=>{const e=_c(Xg);return{predicates:{...l,isStringElement:va},namespace:e}},Zg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Gg}={})=>{const n=(0,Zo.e)(e),i=sc(s),o=new(Qa(t,i))({specObj:i});return mc(n,o),qc(o.element,r,{toolboxCreator:Qg,visitorOptions:{keyMap:Wg,nodeTypeGetter:fh}})},eb=e=>(t,r={})=>Zg(t,{specPath:e,...r});Vg.refract=eb(["visitors","document","objects","JSONSchema","$visitor"]),Jg.refract=eb(["visitors","document","objects","LinkDescription","$visitor"]);const tb=class extends Vg{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 Ou("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Ou("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 Ou("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Ou("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 rb=class extends Jg{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 sb=class extends Hg{constructor(e){super(e),this.element=new tb}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=mp.prototype.ObjectElement.call(this,e);return va(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const nb=class extends Bu{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const ib=class extends Bu{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ob extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=Dn(["document","objects","JSONSchema"])}}const ab=ob;class cb extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.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),Da}}const lb=cb;class ub extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.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),Da}}const pb=ub;class hb extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.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),Da}}const db=hb;class mb extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Dn(["document","objects","JSONSchema"])}}const fb=mb;class yb extends(ip(dp,fp,Bu)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Da}ArrayElement(e){return this.element=new Zo.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),Da}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Da}}const vb=yb;class gb extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=Dn(["document","objects","JSONSchema"])}}const bb=gb;class xb extends(ip($p,fp,Bu)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=Dn(["document","objects","JSONSchema"])}}const Eb=xb;const wb=class extends Bu{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const jb=class extends zg{constructor(e){super(e),this.element=new rb}},Sb=$s(Og(["visitors","document","objects","JSONSchema","$visitor"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],nb),Og(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Gg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Gg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Gg.visitors.value),Tg(["visitors","document","objects","JSONReference","$visitor"]),Og(["visitors","document","objects","JSONSchema","fixedFields","$ref"],ib),Tg(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Og(["visitors","document","objects","JSONSchema","fixedFields","$defs"],ab),Og(["visitors","document","objects","JSONSchema","fixedFields","allOf"],lb),Og(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],pb),Og(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],db),Og(["visitors","document","objects","JSONSchema","fixedFields","not"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","if"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","then"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","else"],sb),Tg(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Og(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],fb),Og(["visitors","document","objects","JSONSchema","fixedFields","items"],vb),Og(["visitors","document","objects","JSONSchema","fixedFields","contains"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","properties"],bb),Og(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Eb),Og(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],sb),Og(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Gg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Gg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],wb),Og(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Gg.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],sb),Og(["visitors","document","objects","LinkDescription","$visitor"],jb),Og(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],sb),Og(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],sb),Og(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],sb),Og(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],sb))(Gg),Ob={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...hc},Pb=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tb||e(s)&&t("JSONSchema201909",s)&&r("object",s))),$b=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rb||e(s)&&t("linkDescription",s)&&r("object",s))),Ab={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",tb),t.register("linkDescription",rb),t}},kb=()=>{const e=_c(Ab);return{predicates:{...u,isStringElement:va},namespace:e}},Tb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Sb}={})=>{const n=(0,Zo.e)(e),i=sc(s),o=new(Qa(t,i))({specObj:i});return mc(n,o),qc(o.element,r,{toolboxCreator:kb,visitorOptions:{keyMap:Ob,nodeTypeGetter:fh}})},Fb=e=>(t,r={})=>Tb(t,{specPath:e,...r});tb.refract=Fb(["visitors","document","objects","JSONSchema","$visitor"]),rb.refract=Fb(["visitors","document","objects","LinkDescription","$visitor"]);const Mb=class extends tb{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 Ou("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Ou("$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 Ou("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Ou("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const Cb=class extends rb{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 Ib=class extends sb{constructor(e){super(e),this.element=new Mb}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class Rb extends(ip(dp,fp,Bu)){constructor(e){super(e),this.element=new Zo.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),Da}}const Db=Rb;const _b=class extends jb{constructor(e){super(e),this.element=new Cb}},Nb=$s(Og(["visitors","document","objects","JSONSchema","$visitor"],Ib),Tg(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Og(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Sb.visitors.value),Tg(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Og(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Sb.visitors.value),Og(["visitors","document","objects","JSONSchema","fixedFields","not"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","if"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","then"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","else"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Db),Og(["visitors","document","objects","JSONSchema","fixedFields","items"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Ib),Tg(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Og(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Ib),Og(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Ib),Og(["visitors","document","objects","LinkDescription","$visitor"],_b),Og(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Ib),Og(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ib),Og(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Ib),Og(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ib))(Sb),Lb={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...hc},Bb=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mb||e(s)&&t("JSONSchema202012",s)&&r("object",s))),qb=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cb||e(s)&&t("linkDescription",s)&&r("object",s))),Ub={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",Mb),t.register("linkDescription",Cb),t}},Vb=()=>{const e=_c(Ub);return{predicates:{...p,isStringElement:va},namespace:e}},Jb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Nb}={})=>{const n=(0,Zo.e)(e),i=sc(s),o=new(Qa(t,i))({specObj:i});return mc(n,o),qc(o.element,r,{toolboxCreator:Vb,visitorOptions:{keyMap:Lb,nodeTypeGetter:fh}})},Hb=e=>(t,r={})=>Jb(t,{specPath:e,...r});Mb.refract=Hb(["visitors","document","objects","JSONSchema","$visitor"]),Cb.refract=Hb(["visitors","document","objects","LinkDescription","$visitor"]);const zb=class extends Mb{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 Gb=class extends jh{};const Wb=class extends Oh{};const Kb=class extends $h{};const Yb=class extends kh{};const Xb=class extends Fh{};const Qb=class extends Ch{};class Zb extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new hg,this.specPath=Dn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Hh.prototype.ObjectElement.call(this,e)}}const ex=Zb,tx=qv.visitors.document.objects.Info.$visitor;const rx=class extends tx{constructor(e){super(e),this.element=new rg}},sx=qv.visitors.document.objects.Contact.$visitor;const nx=class extends sx{constructor(e){super(e),this.element=new Yv}},ix=qv.visitors.document.objects.License.$visitor;const ox=class extends ix{constructor(e){super(e),this.element=new ig}},ax=qv.visitors.document.objects.Link.$visitor;const cx=class extends ax{constructor(e){super(e),this.element=new og}};class lx extends(ip(Dh,Rh)){StringElement(e){const t=new ng(Ec(e));return this.copyMetaAndAttributes(e,t),this.element=t,Da}}const ux=lx,px=qv.visitors.document.objects.Server.$visitor;const hx=class extends px{constructor(e){super(e),this.element=new Kb}},dx=qv.visitors.document.objects.ServerVariable.$visitor;const mx=class extends dx{constructor(e){super(e),this.element=new Yb}},fx=qv.visitors.document.objects.MediaType.$visitor;const yx=class extends fx{constructor(e){super(e),this.element=new ag}},vx=qv.visitors.document.objects.SecurityRequirement.$visitor;const gx=class extends vx{constructor(e){super(e),this.element=new Gb}},bx=qv.visitors.document.objects.Components.$visitor;const xx=class extends bx{constructor(e){super(e),this.element=new Kv}},Ex=qv.visitors.document.objects.Tag.$visitor;const wx=class extends Ex{constructor(e){super(e),this.element=new Xb}},jx=qv.visitors.document.objects.Reference.$visitor;const Sx=class extends jx{constructor(e){super(e),this.element=new gg}},Ox=qv.visitors.document.objects.Parameter.$visitor;const Px=class extends Ox{constructor(e){super(e),this.element=new mg}},$x=qv.visitors.document.objects.Header.$visitor;const Ax=class extends $x{constructor(e){super(e),this.element=new tg}},kx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wv||e(s)&&t("callback",s)&&r("object",s))),Tx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kv||e(s)&&t("components",s)&&r("object",s))),Fx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yv||e(s)&&t("contact",s)&&r("object",s))),Mx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zv||e(s)&&t("example",s)&&r("object",s))),Cx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eg||e(s)&&t("externalDocumentation",s)&&r("object",s))),Ix=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tg||e(s)&&t("header",s)&&r("object",s))),Rx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rg||e(s)&&t("info",s)&&r("object",s))),Dx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ng||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),_x=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ig||e(s)&&t("license",s)&&r("object",s))),Nx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof og||e(s)&&t("link",s)&&r("object",s))),Lx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ug||e(s)&&t("openapi",s)&&r("string",s))),Bx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof hg||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),qx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dg||e(s)&&t("operation",s)&&r("object",s))),Ux=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mg||e(s)&&t("parameter",s)&&r("object",s))),Vx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fg||e(s)&&t("pathItem",s)&&r("object",s))),Jx=e=>{if(!Vx(e))return!1;if(!va(e.$ref))return!1;const t=Ec(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Hx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yg||e(s)&&t("paths",s)&&r("object",s))),zx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gg||e(s)&&t("reference",s)&&r("object",s))),Gx=e=>{if(!zx(e))return!1;if(!va(e.$ref))return!1;const t=Ec(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Wx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bg||e(s)&&t("requestBody",s)&&r("object",s))),Kx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xg||e(s)&&t("response",s)&&r("object",s))),Yx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Eg||e(s)&&t("responses",s)&&r("object",s))),Xx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zb||e(s)&&t("schema",s)&&r("object",s))),Qx=e=>xa(e)&&e.classes.includes("boolean-json-schema"),Zx=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gb||e(s)&&t("securityRequirement",s)&&r("object",s))),eE=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wb||e(s)&&t("securityScheme",s)&&r("object",s))),tE=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kb||e(s)&&t("server",s)&&r("object",s))),rE=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yb||e(s)&&t("serverVariable",s)&&r("object",s))),sE=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ag||e(s)&&t("mediaType",s)&&r("object",s)));class nE extends(ip(Hh,fp,Rh)){constructor(e){super(e),this.element=new zb,this.specPath=Dn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ng.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Hh.prototype.ObjectElement.call(this,e);return va(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return Ib.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&Dx(this.openApiSemanticElement.jsonSchemaDialect)?Ec(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&va(this.openApiGenericElement.get("jsonSchemaDialect"))?Ec(this.openApiGenericElement.get("jsonSchemaDialect")):Ec(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return Ib.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return Ib.prototype.handleSchemaIdentifier.call(this,e)}}const iE=nE;const oE=class extends ab{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const aE=class extends lb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const cE=class extends pb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const lE=class extends db{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const uE=class extends fb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const pE=class extends Db{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const hE=class extends bb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const dE=class extends Eb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},mE=qv.visitors.document.objects.Discriminator.$visitor;const fE=class extends mE{constructor(e){super(e),this.element=new Xv,this.canSupportSpecificationExtensions=!0}},yE=qv.visitors.document.objects.XML.$visitor;const vE=class extends yE{constructor(e){super(e),this.element=new Qb}};class gE extends(ip(ld,Rh)){constructor(e){super(e),this.element=new wf,this.specPath=Dn(["document","objects","Schema"])}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Xx).forEach(((e,t)=>{e.setMetaProperty("schemaName",Ec(t))})),t}}const bE=gE;class xE extends Zo.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(xE.primaryClass)}}const EE=xE;class wE extends(ip(ld,Rh)){constructor(e){super(e),this.element=new EE,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(zx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const jE=wE,SE=qv.visitors.document.objects.Example.$visitor;const OE=class extends SE{constructor(e){super(e),this.element=new Zv}},PE=qv.visitors.document.objects.ExternalDocumentation.$visitor;const $E=class extends PE{constructor(e){super(e),this.element=new eg}},AE=qv.visitors.document.objects.Encoding.$visitor;const kE=class extends AE{constructor(e){super(e),this.element=new Qv}},TE=qv.visitors.document.objects.Paths.$visitor;const FE=class extends TE{constructor(e){super(e),this.element=new yg}},ME=qv.visitors.document.objects.RequestBody.$visitor;const CE=class extends ME{constructor(e){super(e),this.element=new bg}},IE=qv.visitors.document.objects.Callback.$visitor;const RE=class extends IE{constructor(e){super(e),this.element=new Wv,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=IE.prototype.ObjectElement.call(this,e);return this.element.filter(zx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},DE=qv.visitors.document.objects.Response.$visitor;const _E=class extends DE{constructor(e){super(e),this.element=new xg}},NE=qv.visitors.document.objects.Responses.$visitor;const LE=class extends NE{constructor(e){super(e),this.element=new Eg}},BE=qv.visitors.document.objects.Operation.$visitor;const qE=class extends BE{constructor(e){super(e),this.element=new dg}},UE=qv.visitors.document.objects.PathItem.$visitor;const VE=class extends UE{constructor(e){super(e),this.element=new fg}},JE=qv.visitors.document.objects.SecurityScheme.$visitor;const HE=class extends JE{constructor(e){super(e),this.element=new Wb}},zE=qv.visitors.document.objects.OAuthFlows.$visitor;const GE=class extends zE{constructor(e){super(e),this.element=new lg}},WE=qv.visitors.document.objects.OAuthFlow.$visitor;const KE=class extends WE{constructor(e){super(e),this.element=new cg}};class YE extends Zo.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(YE.primaryClass)}}const XE=YE;class QE extends(ip(ld,Rh)){constructor(e){super(e),this.element=new XE,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(zx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Vx).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Ec(t))})),t}}const ZE=QE,{JSONSchema:ew,LinkDescription:tw}=Nb.visitors.document.objects,rw={visitors:{value:qv.visitors.value,document:{objects:{OpenApi:{$visitor:ex,fixedFields:{openapi:qv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:ux,servers:qv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:ZE,components:{$ref:"#/visitors/document/objects/Components"},security:qv.visitors.document.objects.OpenApi.fixedFields.security,tags:qv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:rx,fixedFields:{title:qv.visitors.document.objects.Info.fixedFields.title,description:qv.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:qv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:qv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:nx,fixedFields:{name:qv.visitors.document.objects.Contact.fixedFields.name,url:qv.visitors.document.objects.Contact.fixedFields.url,email:qv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:ox,fixedFields:{name:qv.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:qv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:hx,fixedFields:{url:qv.visitors.document.objects.Server.fixedFields.url,description:qv.visitors.document.objects.Server.fixedFields.description,variables:qv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:mx,fixedFields:{enum:qv.visitors.document.objects.ServerVariable.fixedFields.enum,default:qv.visitors.document.objects.ServerVariable.fixedFields.default,description:qv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:xx,fixedFields:{schemas:bE,responses:qv.visitors.document.objects.Components.fixedFields.responses,parameters:qv.visitors.document.objects.Components.fixedFields.parameters,examples:qv.visitors.document.objects.Components.fixedFields.examples,requestBodies:qv.visitors.document.objects.Components.fixedFields.requestBodies,headers:qv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:qv.visitors.document.objects.Components.fixedFields.securitySchemes,links:qv.visitors.document.objects.Components.fixedFields.links,callbacks:qv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:jE}},Paths:{$visitor:FE},PathItem:{$visitor:VE,fixedFields:{$ref:qv.visitors.document.objects.PathItem.fixedFields.$ref,summary:qv.visitors.document.objects.PathItem.fixedFields.summary,description:qv.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:qv.visitors.document.objects.PathItem.fixedFields.servers,parameters:qv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:qE,fixedFields:{tags:qv.visitors.document.objects.Operation.fixedFields.tags,summary:qv.visitors.document.objects.Operation.fixedFields.summary,description:qv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:qv.visitors.document.objects.Operation.fixedFields.operationId,parameters:qv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:qv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:qv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:qv.visitors.document.objects.Operation.fixedFields.deprecated,security:qv.visitors.document.objects.Operation.fixedFields.security,servers:qv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:$E,fixedFields:{description:qv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:qv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Px,fixedFields:{name:qv.visitors.document.objects.Parameter.fixedFields.name,in:qv.visitors.document.objects.Parameter.fixedFields.in,description:qv.visitors.document.objects.Parameter.fixedFields.description,required:qv.visitors.document.objects.Parameter.fixedFields.required,deprecated:qv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:qv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:qv.visitors.document.objects.Parameter.fixedFields.style,explode:qv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:qv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:qv.visitors.document.objects.Parameter.fixedFields.example,examples:qv.visitors.document.objects.Parameter.fixedFields.examples,content:qv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:CE,fixedFields:{description:qv.visitors.document.objects.RequestBody.fixedFields.description,content:qv.visitors.document.objects.RequestBody.fixedFields.content,required:qv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:yx,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:qv.visitors.document.objects.MediaType.fixedFields.example,examples:qv.visitors.document.objects.MediaType.fixedFields.examples,encoding:qv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:kE,fixedFields:{contentType:qv.visitors.document.objects.Encoding.fixedFields.contentType,headers:qv.visitors.document.objects.Encoding.fixedFields.headers,style:qv.visitors.document.objects.Encoding.fixedFields.style,explode:qv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:qv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:LE,fixedFields:{default:qv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:_E,fixedFields:{description:qv.visitors.document.objects.Response.fixedFields.description,headers:qv.visitors.document.objects.Response.fixedFields.headers,content:qv.visitors.document.objects.Response.fixedFields.content,links:qv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:RE},Example:{$visitor:OE,fixedFields:{summary:qv.visitors.document.objects.Example.fixedFields.summary,description:qv.visitors.document.objects.Example.fixedFields.description,value:qv.visitors.document.objects.Example.fixedFields.value,externalValue:qv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:cx,fixedFields:{operationRef:qv.visitors.document.objects.Link.fixedFields.operationRef,operationId:qv.visitors.document.objects.Link.fixedFields.operationId,parameters:qv.visitors.document.objects.Link.fixedFields.parameters,requestBody:qv.visitors.document.objects.Link.fixedFields.requestBody,description:qv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ax,fixedFields:{description:qv.visitors.document.objects.Header.fixedFields.description,required:qv.visitors.document.objects.Header.fixedFields.required,deprecated:qv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:qv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:qv.visitors.document.objects.Header.fixedFields.style,explode:qv.visitors.document.objects.Header.fixedFields.explode,allowReserved:qv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:qv.visitors.document.objects.Header.fixedFields.example,examples:qv.visitors.document.objects.Header.fixedFields.examples,content:qv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:wx,fixedFields:{name:qv.visitors.document.objects.Tag.fixedFields.name,description:qv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Sx,fixedFields:{$ref:qv.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...tw},Schema:{$visitor:iE,fixedFields:{...ew.fixedFields,$defs:oE,allOf:aE,anyOf:cE,oneOf:lE,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:uE,prefixItems:pE,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:hE,patternProperties:dE,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:fE,fixedFields:{propertyName:qv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:qv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:vE,fixedFields:{name:qv.visitors.document.objects.XML.fixedFields.name,namespace:qv.visitors.document.objects.XML.fixedFields.namespace,prefix:qv.visitors.document.objects.XML.fixedFields.prefix,attribute:qv.visitors.document.objects.XML.fixedFields.attribute,wrapped:qv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:HE,fixedFields:{type:qv.visitors.document.objects.SecurityScheme.fixedFields.type,description:qv.visitors.document.objects.SecurityScheme.fixedFields.description,name:qv.visitors.document.objects.SecurityScheme.fixedFields.name,in:qv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:qv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:qv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:qv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:GE,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:KE,fixedFields:{authorizationUrl:qv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:qv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:qv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:qv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:gx}},extension:{$visitor:qv.visitors.document.extension.$visitor}}}},sw=e=>{if(ya(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},nw={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"],...hc},iw={namespace:e=>{const{base:t}=e;return t.register("callback",Wv),t.register("components",Kv),t.register("contact",Yv),t.register("discriminator",Xv),t.register("encoding",Qv),t.register("example",Zv),t.register("externalDocumentation",eg),t.register("header",tg),t.register("info",rg),t.register("jsonSchemaDialect",ng),t.register("license",ig),t.register("link",og),t.register("mediaType",ag),t.register("oAuthFlow",cg),t.register("oAuthFlows",lg),t.register("openapi",ug),t.register("openApi3_1",hg),t.register("operation",dg),t.register("parameter",mg),t.register("pathItem",fg),t.register("paths",yg),t.register("reference",gg),t.register("requestBody",bg),t.register("response",xg),t.register("responses",Eg),t.register("schema",zb),t.register("securityRequirement",Gb),t.register("securityScheme",Wb),t.register("server",Kb),t.register("serverVariable",Yb),t.register("tag",Xb),t.register("xml",Qb),t}},ow=e=>{const t=e.reduce(((t,r,s)=>{if(ja(r)){const e=String(Ec(r.key));t.push(e)}else if(wa(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t}),[]);return xl(t)},aw=()=>{const e=_c(iw);return{predicates:{...h,isElement:ya,isStringElement:va,isArrayElement:wa,isObjectElement:Ea,isMemberElement:ja,isServersElement:rm,includesClasses:Ma,hasElementSourceMap:Ta},ancestorLineageToJSONPointer:ow,namespace:e}},cw=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Zo.e)(e),n=sc(rw),i=new(Qa(t,n))({specObj:n});return mc(s,i),qc(i.element,r,{toolboxCreator:aw,visitorOptions:{keyMap:nw,nodeTypeGetter:sw}})},lw=e=>(t,r={})=>cw(t,{specPath:e,...r});Wv.refract=lw(["visitors","document","objects","Callback","$visitor"]),Kv.refract=lw(["visitors","document","objects","Components","$visitor"]),Yv.refract=lw(["visitors","document","objects","Contact","$visitor"]),Zv.refract=lw(["visitors","document","objects","Example","$visitor"]),Xv.refract=lw(["visitors","document","objects","Discriminator","$visitor"]),Qv.refract=lw(["visitors","document","objects","Encoding","$visitor"]),eg.refract=lw(["visitors","document","objects","ExternalDocumentation","$visitor"]),tg.refract=lw(["visitors","document","objects","Header","$visitor"]),rg.refract=lw(["visitors","document","objects","Info","$visitor"]),ng.refract=lw(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ig.refract=lw(["visitors","document","objects","License","$visitor"]),og.refract=lw(["visitors","document","objects","Link","$visitor"]),ag.refract=lw(["visitors","document","objects","MediaType","$visitor"]),cg.refract=lw(["visitors","document","objects","OAuthFlow","$visitor"]),lg.refract=lw(["visitors","document","objects","OAuthFlows","$visitor"]),ug.refract=lw(["visitors","document","objects","OpenApi","fixedFields","openapi"]),hg.refract=lw(["visitors","document","objects","OpenApi","$visitor"]),dg.refract=lw(["visitors","document","objects","Operation","$visitor"]),mg.refract=lw(["visitors","document","objects","Parameter","$visitor"]),fg.refract=lw(["visitors","document","objects","PathItem","$visitor"]),yg.refract=lw(["visitors","document","objects","Paths","$visitor"]),gg.refract=lw(["visitors","document","objects","Reference","$visitor"]),bg.refract=lw(["visitors","document","objects","RequestBody","$visitor"]),xg.refract=lw(["visitors","document","objects","Response","$visitor"]),Eg.refract=lw(["visitors","document","objects","Responses","$visitor"]),zb.refract=lw(["visitors","document","objects","Schema","$visitor"]),Gb.refract=lw(["visitors","document","objects","SecurityRequirement","$visitor"]),Wb.refract=lw(["visitors","document","objects","SecurityScheme","$visitor"]),Kb.refract=lw(["visitors","document","objects","Server","$visitor"]),Yb.refract=lw(["visitors","document","objects","ServerVariable","$visitor"]),Xb.refract=lw(["visitors","document","objects","Tag","$visitor"]),Qb.refract=lw(["visitors","document","objects","XML","$visitor"]);const uw=class extends Ou{};const pw=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new uw("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new uw("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new uw("latest method in MediaTypes class is not yet implemented.")}};class hw extends pw{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 Cs(this.filterByFormat(e))}}const dw=new hw("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 mw=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 fw=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=Qn(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 yw(e){return e}const vw=cs(yw),gw={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:vw,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const bw=ls((function(e,t){return function(r){return function(s){return Fn((function(e){return t(e,s)}),r(e(s)))}}}));var xw=function(e){return{value:e,map:function(t){return xw(t(e))}}},Ew=us((function(e,t,r){return e((function(e){return xw(t(e))}))(r).value}));const ww=Ew;const jw=Zs(""),Sw=bw(Qa(["resolve","baseURI"]),Og(["resolve","baseURI"])),Ow=e=>jw(e)?di():e,Pw=(e,t)=>{const r=Sc(e,t);return ww(Sw,Ow,r)};const $w=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 Qn(this.uri)?ai(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Ys(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const Aw=class extends ss{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},kw=async(e,t,r)=>{const s=await Promise.all(r.map(Ic([e],t)));return r.filter(((e,t)=>s[t]))},Tw=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 Aw("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const Fw=class extends ss{};const Mw=class extends Fw{};const Cw=async(e,t)=>{let r=e,s=!1;if(!Aa(e)){const t=cc(e);t.classes.push("result"),r=new la([t]),s=!0}const n=new $w({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await kw("canDereference",[n,t],t.dereference.strategies);if(Tc(i))throw new Mw(n.uri);try{const{result:e}=await Tw("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new Fw(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const Iw=async(e,t={})=>{const r=Pw(gw,t);return Cw(e,r)};const Rw=class extends ss{};const Dw=class extends Rw{};const _w=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 Nw=class extends _w{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 la;if(0!==r.length){const e=new Zo.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new Dw(`Error parsing "${e.uri}"`,{cause:t})}}};const Lw=class{name;constructor({name:e}){this.name=e}};const Bw=class extends Lw{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new Mw('"openapi-3-1" dereference strategy is not available.');const s=new fw,n=Pw(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const qw=class{name;constructor({name:e}){this.name=e}};const Uw=class extends qw{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 li(e.uri)}};const Vw=class extends ss{};const Jw=class extends Vw{},{AbortController:Hw,AbortSignal:zw}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=Hw),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=zw);const Gw=class extends Uw{swaggerHTTPClient=tr;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=tr,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",a=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:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new Jw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},Ww=(e,t=Nc)=>{if(Qn(e))try{return t.fromRefract(JSON.parse(e))}catch{}return No(e)&&Ya("element",e)?t.fromRefract(e):t.toElement(e)};const Kw=class extends _w{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Dw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=Ww(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new Dw(`Error parsing "${e.uri}"`,{cause:t})}}};const Yw=class extends _w{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Qt.load(e.toString(),{schema:qt}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Dw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();try{const e=Qt.load(r,{schema:qt});if(this.allowEmpty&&void 0===e)return t;const s=Ww(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new Dw(`Error parsing "${e.uri}"`,{cause:t})}}};const Xw=class extends _w{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new hw(...dw.filterByFormat("generic"),...dw.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Dw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=hg.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new Dw(`Error parsing "${e.uri}"`,{cause:t})}}};const Qw=class extends _w{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 hw(...dw.filterByFormat("generic"),...dw.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return Qt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Dw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();try{const e=Qt.load(r,{schema:qt});if(this.allowEmpty&&void 0===e)return t;const s=hg.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new Dw(`Error parsing "${e.uri}"`,{cause:t})}}};const Zw=us((function(e,t,r){return Zs(e,Fs(t,r))}));const ej=class{name;constructor({name:e}){this.name=e}};const tj=ls((function(e,t){return sa(on(e),t)}));var rj=r(8068);const sj=class extends ns{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class nj{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new rj({length:e}),this.identityMap=new WeakMap}identify(e){if(!ya(e))throw new sj("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&va(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 Zo.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 nj;const ij=us((function(e,t,r){return As(e,Po(t,r))})),oj=(e,t)=>{const r=new dc({predicate:e,returnOnTrue:Da});return mc(t,r),ij(void 0,[0],r.result)};const aj=class extends ss{};const cj=class extends aj{};const lj=class extends aj{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},uj=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),pj=e=>{const t=pi(e);return rc("#",t)},hj=(e,t)=>{const r=(e=>{if(!uj(e))throw new lj(e);return e})(e),s=oj((e=>Xx(e)&&Ec(e.$anchor)===r),t);if(Nn(s))throw new cj(`Evaluation failed on token: "${r}"`);return s},dj=(e,t)=>{const r=new dc({predicate:e});return mc(t,r),new Zo.G6(r.result)};const mj=class extends ss{};const fj=class extends mj{},yj=(e,t)=>{if(void 0===t.$ref)return;const r=pi(Ec(t.$ref)),s=Ec(t.meta.get("ancestorsSchemaIdentifiers"));return`${js(((e,t)=>mi(e,fi(hi(t)))),e,[...s,Ec(t.$ref)])}${"#"===r?"":r}`},vj=e=>{if(vj.cache.has(e))return vj.cache.get(e);const t=zb.refract(e);return vj.cache.set(e,t),t};vj.cache=new WeakMap;const gj=e=>ka(e)?vj(e):e,bj=(e,t)=>{const{cache:r}=bj,s=hi(e),n=e=>Xx(e)&&void 0!==e.$id;if(!r.has(t)){const e=dj(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=Ec(t.meta.get("ancestorsSchemaIdentifiers"));return js(((e,t)=>mi(e,fi(hi(t)))),e,r)})(s,e)===s));if(Nn(i))throw new fj(`Evaluation failed on URI: "${e}"`);return uj(pj(e))?hj(pj(e),i):Tl(i,Gc(e))};bj.cache=new WeakMap;const xj=class extends Fw{};const Ej=class extends Vw{};const wj=class extends Jw{},jj="apidom-file-cache",Sj=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(jj),i=new Response(JSON.stringify(s),{headers:{"Content-Type":"application/json"}});await n.put(e,i)}catch(e){console.error("CacheStorage is not available")}},Oj=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(jj),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 Vw(`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)})),a=await kw("canRead",[e,t],o);if(Tc(a))throw new wj(e.uri);try{const{result:t}=await Tw("read",[e],a),n=new $w({...e,data:t}).toString();return await Sj({cacheKey:s,result:n,error:null,cacheTTL:r}),t}catch(t){var c,l,u;throw await Sj({cacheKey:s,result:null,error:null!==(c=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!==c?c:t,cacheTTL:r}),new Vw(`Error while reading file "${e.uri}"`,{cause:t})}},Pj=async(e,t)=>{const r=new $w({uri:fi(hi(e)),mediaType:t.parse.mediaType}),s=await Oj(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 kw("canParse",[e,t],r);if(Tc(s))throw new wj(e.uri);try{const{plugin:r,result:n}=await Tw("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new Rw(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new Rw(`Error while parsing file "${e.uri}"`,{cause:t})}})(new $w({...r,data:s}),t)};class $j 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(ya(r)&&e(r))return r}}const Aj=mc[Symbol.for("nodejs.util.promisify.custom")],kj=new nj,Tj=(e,t,r,s)=>{ja(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class Fj{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new $j,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new $j(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o}handleDereferenceError(e,t,r){var s,n;if(null===(s=this.options.dereference.dereferenceOpts)||void 0===s||!s.continueOnError)throw e;if(r){const t=[...r].find((e=>Ea(e)&&e.getMetaProperty("ref-referencing-element")));var i;if(t)null===(i=this.options.dereference.dereferenceOpts)||void 0===i||i.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.errors.push({error:e,refEl:t})}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||!Ec(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 mi(this.reference.uri,fi(hi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Ej(`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(Zw(t,"uri"));const s=await Pj(yi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new mw({uri:t,value:ic(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new mw({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(ya));return[new $j(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,r,s,n,i)=>{var o;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return;const a=cc(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,Tj),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,a;if(this.indirections.includes(e))return!1;const[c,l]=this.toAncestorLineage([...n,r]),u=this.toBaseURI(Ec(e.$ref)),p=hi(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(Ec(e.$ref))}catch(t){return this.handleDereferenceError(t,e,l)}const m=mi(u,Ec(e.$ref));this.indirections.push(e);const f=Gc(m);let y;try{y=Tl(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(y.id=kj.identify(y),ka(y)){const t=Ec(e.meta.get("referenced-element")),r=`${t}-${Ec(kj.identify(y))}`;if(this.refractCache.has(r))y=this.refractCache.get(r);else if(qh(y))y=gg.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 ss("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(c.includes(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new ss("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if("replace"===this.options.dereference.circular){var v,g;const t=new Zo.sI(y.id,{type:"reference",uri:d.uri,$ref:Ec(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,Tj),!r&&s}}const b=hi(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||zx(y)||x||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!c.includesCycle(y)){l.add(e);const t=new Fj({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{y=await Aj(y,t,{keyMap:nw,nodeTypeGetter:sw})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}l.delete(e)}this.indirections.pop();const E=cc(y);return E.setMetaProperty("id",kj.generateId()),E.setMetaProperty("ref-fields",{$ref:Ec(e.$ref),description:Ec(e.description),summary:Ec(e.summary)}),E.setMetaProperty("ref-origin",d.uri),E.setMetaProperty("ref-referencing-element-id",ic(kj.identify(e))),null!==(a=this.options.dereference.dereferenceOpts)&&void 0!==a&&a.continueOnError&&E.setMetaProperty("ref-referencing-element",e),Ea(y)&&Ea(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,Tj),!r&&E}async PathItemElement(e,t,r,s,n,i){var o;if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(Ec(e.$ref)),u=hi(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(Ec(e.$ref))}catch(t){return this.handleDereferenceError(t,e,c)}const d=mi(l,Ec(e.$ref));this.indirections.push(e);const m=Gc(d);let f;try{f=Tl(h.value.result,m)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(f.id=kj.identify(f),ka(f)){const e=`path-item-${Ec(kj.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=fg.refract(f),this.refractCache.set(e,f))}if(e===f){const t=new ss("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(a.includes(f)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new ss("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var y,v;const t=new Zo.sI(f.id,{type:"path-item",uri:h.uri,$ref:Ec(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,Tj),!r&&s}}const g=hi(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((p||g||Vx(f)&&va(f.$ref)||b||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(f)){c.add(e);const t=new Fj({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{f=await Aj(f,t,{keyMap:nw,nodeTypeGetter:sw})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),Vx(f)){var x;const t=new fg([...f.content],ic(f.meta),ic(f.attributes));t.setMetaProperty("id",kj.generateId()),e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",ic(kj.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,Tj),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!va(e.operationRef)&&!va(e.operationId))return;if(va(e.operationRef)&&va(e.operationId)){const t=new ss("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(va(e.operationRef)){var a;const t=Gc(Ec(e.operationRef)),s=this.toBaseURI(Ec(e.operationRef)),n=hi(this.reference.uri)===s,c=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(Ec(e.operationRef)),o=Tl(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e)}if(ka(o)){const e=`operation-${Ec(kj.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=dg.refract(o),this.refractCache.set(e,o))}o=cc(o),o.setMetaProperty("ref-origin",l.uri);const u=cc(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(u,Tj),r?void 0:u}if(va(e.operationId)){var c;const t=Ec(e.operationId);let s;try{s=await this.toReference(yi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=oj((e=>qx(e)&&ya(e.operationId)&&e.operationId.equals(t)),s.value.result),Nn(o)){const r=new ss(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=cc(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,Tj),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!va(e.externalValue))return;if(e.hasKey("value")&&va(e.externalValue)){const t=new ss("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=this.toBaseURI(Ec(e.externalValue)),a=hi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(Ec(e.externalValue))}catch(t){return this.handleDereferenceError(t,e)}const u=cc(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=cc(e);return p.value=u,i.replaceWith(p,Tj),r?void 0:p}async MemberElement(e,t,r,s,n,i){var o;const a=n[n.length-1];if(!Ea(a)||!a.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!va(e.key)||!va(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[c,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(Xx),p=ic(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Ec(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new zb({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new Fj({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let y;try{y=await Aj(m,f,{keyMap:nw,nodeTypeGetter:sw})}catch(e){return this.handleDereferenceError(e,m,l)}l.delete(m),this.indirections.pop();const v=cc(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,Tj),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(yi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,c)}let{uri:u}=l;const p=yj(u,e),h=hi(p),d=new $w({uri:h}),m=tj((e=>e.canRead(d)),this.options.resolve.resolvers),f=!m;let y,v=hi(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=gj(l.value.result);if(y=bj(e,t),y=gj(y),y.id=kj.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=hi(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(yi(p));const e=Gc(p),t=gj(l.value.result);y=Tl(t,e),y=gj(y),y.id=kj.identify(y)}}catch(t){if(!(f&&t instanceof fj))return this.indirections.pop(),this.handleDereferenceError(t,e,c);if(uj(pj(p))){if(v=hi(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(yi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=pj(p),r=gj(l.value.result);try{y=hj(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=gj(y),y.id=kj.identify(y)}else{if(u=this.toBaseURI(p),v=hi(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(yi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=Gc(p),r=gj(l.value.result);try{y=Tl(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=gj(y),y.id=kj.identify(y)}}if(e===y){const t=new ss("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(a.includes(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new ss("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var b,x;const t=new Zo.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Ec(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,Tj),!r&&s}}const E=hi(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||Xx(y)&&va(y.$ref)||w||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(y)){c.add(e);const t=new Fj({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{y=await Aj(y,t,{keyMap:nw,nodeTypeGetter:sw})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),Qx(y)){const t=ic(y);return t.setMetaProperty("id",kj.generateId()),t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",ic(kj.identify(e))),i.replaceWith(t,Tj),!r&&t}if(Xx(y)){var j,S;const t=new zb([...y.content],ic(y.meta),ic(y.attributes));if(t.setMetaProperty("id",kj.generateId()),e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",ic(kj.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=[...c].findLast(Xx),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Ec(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,Tj),r?void 0:y}}const Mj=Fj,Cj=mc[Symbol.for("nodejs.util.promisify.custom")];const Ij=class extends ej{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?dw.includes(e.mediaType):Bx(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=_c(iw),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new fw,i=new fw;let o,a=n;n.has(e.uri)?o=n.find(Zw(e.uri,"uri")):(o=new mw({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new mw({...e,value:ic(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new Mj({reference:o,namespace:s,options:t}),l=await Cj(a.rootRef.value,c,{keyMap:nw,nodeTypeGetter:sw});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new mw({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},Rj=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(ja(r)){const t=String(Ec(r.key));e.push(t)}else if(wa(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e}),[])};const Dj=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Ea(e.properties)&&e.properties.forEach((t=>{if(Ea(t))try{const e=this.modelPropertyMacro(Ec(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...Rj([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};var _j=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=un,e.prototype["@@transducer/result"]=pn,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 Nj(e){return function(t){return new _j(e,t)}}const Lj=ls(cn([],Nj,(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})));const Bj=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!wa(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...Rj([...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(Xx)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...Rj([...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=Nu.all([...t.content,e],{customMerge:e=>"enum"===Ec(e)?(e,t)=>{if(Ma(["json-schema-enum"],e)&&Ma(["json-schema-enum"],t)){const r=(e,t)=>!(wa(e)||wa(t)||Ea(e)||Ea(t))&&e.equals(Ec(t)),s=cc(e);return s.content=Lj(r)([...e.content,...t.content]),s}return Nu(e,t)}:Nu});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 qj=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?Ec(this.#s):null,o=Ec(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=Rj([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},Uj=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const Vj=class extends ns{},{wrapError:Jj}=so,Hj=mc[Symbol.for("nodejs.util.promisify.custom")],zj=new nj,Gj=(e,t,r,s)=>{ja(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class Wj extends Mj{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{if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Ec(e.$ref)),a=hi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(Ec(e.$ref)),u=mi(o,Ec(e.$ref));this.indirections.push(e);const p=Gc(u);let h=Tl(l.value.result,p);if(h.id=zj.identify(h),ka(h)){const t=Ec(e.meta.get("referenced-element")),r=`${t}-${Ec(zj.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(qh(h))h=gg.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new ss("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new ss("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(h.id,{type:"reference",uri:l.uri,$ref:Ec(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,Gj),!r&&s}}const d=hi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||zx(h)||m)&&!t.includesCycle(h)){s.add(e);const i=new Wj({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Rj([...n,r,e]),"$ref"]});h=await Hj(h,i,{keyMap:nw,nodeTypeGetter:sw}),s.delete(e)}this.indirections.pop();const f=cc(h);if(f.setMetaProperty("ref-fields",{$ref:Ec(e.$ref),description:Ec(e.description),summary:Ec(e.summary)}),f.setMetaProperty("ref-origin",l.uri),f.setMetaProperty("ref-referencing-element-id",ic(zj.identify(e))),Ea(h)&&(e.hasKey("description")&&"description"in h&&(f.remove("description"),f.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(f.remove("summary"),f.set("summary",e.get("summary")))),this.allowMetaPatches&&Ea(f)&&!f.hasKey("$$ref")){const e=mi(o,u);f.set("$$ref",e)}return i.replaceWith(f,Gj),!r&&f}catch(t){const s=Uj(t),i=Jj(s,{baseDoc:this.reference.uri,$ref:Ec(e.$ref),pointer:Gc(Ec(e.$ref)),fullPath:this.basePath??[...Rj([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;if(Ma(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Ec(e.$ref)),a=hi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Ec(e.$ref)),u=mi(o,Ec(e.$ref));this.indirections.push(e);const p=Gc(u);let h=Tl(l.value.result,p);if(h.id=zj.identify(h),ka(h)){const e=`path-item-${Ec(zj.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=fg.refract(h),this.refractCache.set(e,h))}if(e===h)throw new ss("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new ss("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(h.id,{type:"path-item",uri:l.uri,$ref:Ec(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,Gj),!r&&s}}const d=hi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||Vx(h)&&va(h.$ref)||m)&&!t.includesCycle(h)){s.add(e);const i=new Wj({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Rj([...n,r,e]),"$ref"]});h=await Hj(h,i,{keyMap:nw,nodeTypeGetter:sw}),s.delete(e)}if(this.indirections.pop(),Vx(h)){const t=new fg([...h.content],ic(h.meta),ic(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",ic(zj.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=mi(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,Gj),r?void 0:h}catch(t){const s=Uj(t),i=Jj(s,{baseDoc:this.reference.uri,$ref:Ec(e.$ref),pointer:Gc(Ec(e.$ref)),fullPath:this.basePath??[...Rj([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let o=await this.toReference(yi(this.reference.uri)),{uri:a}=o;const c=yj(a,e),l=hi(c),u=new $w({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,m=hi(this.reference.uri)===c,f=!m;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=gj(o.value.result);if(d=bj(e,t),d=gj(d),d.id=zj.identify(d),!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return}else{if(a=this.toBaseURI(c),m=hi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(yi(c));const e=Gc(c),t=gj(o.value.result);d=Tl(t,e),d=gj(d),d.id=zj.identify(d)}}catch(e){if(!(h&&e instanceof fj))throw e;if(uj(pj(c))){if(m=hi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(yi(c));const e=pj(c),t=gj(o.value.result);d=hj(e,t),d=gj(d),d.id=zj.identify(d)}else{if(a=this.toBaseURI(Ec(c)),m=hi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(yi(c));const e=Gc(c),t=gj(o.value.result);d=Tl(t,e),d=gj(d),d.id=zj.identify(d)}}if(e===d)throw new ss("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(d)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new ss("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(d.id,{type:"json-schema",uri:o.uri,$ref:Ec(e.$ref),baseURI:mi(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,Gj),!r&&s}}const y=hi(o.refSet.rootRef.uri)!==o.uri,v=["error","replace"].includes(this.options.dereference.circular);if((f||y||Xx(d)&&va(d.$ref)||v)&&!t.includesCycle(d)){s.add(e);const i=new Wj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...Rj([...n,r,e]),"$ref"]});d=await Hj(d,i,{keyMap:nw,nodeTypeGetter:sw}),s.delete(e)}if(this.indirections.pop(),Qx(d)){const t=ic(d);return t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",ic(zj.identify(e))),i.replaceWith(t,Gj),!r&&t}if(Xx(d)){const t=new zb([...d.content],ic(d.meta),ic(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",ic(zj.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=mi(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,Gj),r?void 0:d}catch(t){const s=Uj(t),i=new Vj(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Ec(e.$ref),fullPath:this.basePath??[...Rj([...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=Uj(t),i=Jj(s,{baseDoc:this.reference.uri,externalValue:Ec(e.externalValue),fullPath:this.basePath??[...Rj([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const Kj=Wj,Yj=Ba[Symbol.for("nodejs.util.promisify.custom")];const Xj=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new Kj({...n,options:s})),"function"==typeof t&&i.push(new Dj({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new Bj({options:s})),"function"==typeof e&&i.push(new qj({parameterMacro:e,options:s}));const o=Yj(i,{nodeTypeGetter:sw});Object.assign(this,o)}},Qj=mc[Symbol.for("nodejs.util.promisify.custom")];const Zj=class extends Ij{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=_c(iw),s=t.dereference.refSet??new fw,n=new fw;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new mw({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new mw({...e,value:ic(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new Xj({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await Qj(o.rootRef.value,a,{keyMap:nw,nodeTypeGetter:sw});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new mw({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},eS=e=>{const t=Ec(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Zo.Sh({$ref:t},ic(r.meta),ic(r.attributes))},tS=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=e;try{const{cache:m}=tS,f=d.find((e=>e.match(t))),v=li(di())?di():y,g=sr(e),b=mi(v,g);let x;m.has(t)?x=m.get(t):(x=hg.refract(t),x.classes.push("result"),m.set(t,x));const E=new la([x]),w=xl(o),j=""===w?"":`#${w}`,S=Tl(x,w),O=new mw({uri:b,value:E}),P=new fw({refs:[O]});""!==w&&(P.rootRef=void 0);const $=[new Set([S])],A=[],k=await Iw(S,{resolve:{baseURI:`${b}${j}`,resolvers:[new Gw({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new Bw]},parse:{mediaType:dw.latest(),parsers:[new Xw({allowEmpty:!1,sourceMap:!1}),new Qw({allowEmpty:!1,sourceMap:!1}),new Kw({allowEmpty:!1,sourceMap:!1}),new Yw({allowEmpty:!1,sourceMap:!1}),new Nw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new Zj({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:$})],refSet:P,dereferenceOpts:{errors:A},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?gw.dereference.circularReplacer:eS}}),T=zc(S,k,x),F=l?T:f.normalize(T);return{spec:Ec(F),errors:A}}catch(e){if(e instanceof jl)return{spec:t,errors:[]};throw e}};tS.cache=new WeakMap;const rS=tS;function sS(e,t,r){if(r||(r=new nS),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?sS(e[i],!0,r):e[i]);return s};switch(Ys(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 nS=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}(),iS=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"]=un,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Bs(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,sS(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function oS(e,t,r){return function(s){return new iS(e,t,r,s)}}const aS=ls(Ss("groupBy",Is(4,[],cn([],oS,(function(e,t,r,s){var n=ws((function(s,n){var i=r(n),o=e(Bs(i,s)?s[i]:sS(t,!1),n);return o&&o["@@transducer/reduced"]?ea(s):(s[i]=o,s)}));return xs(n,{},s)})))((function(e,t){return e.push(t),e}),[])));const cS=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);Ea(e)||(e=new Zo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);wa(t)||(t=new Zo.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)}},lS=e=>e.replace(/\s/g,""),uS=e=>e.replace(/\W/gi,"_"),pS=(e,t,r)=>{const s=lS(e);return s.length>0?uS(s):((e,t)=>`${uS(lS(t.toLowerCase()))}${uS(lS(e))}`)(t,r)},hS=({storageField:e="x-normalized",operationIdNormalizer:t=pS}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new cS(t,e,"operation-ids")},leave(){const e=aS((e=>Ec(e.operationId)),a);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)})))})),c.forEach((e=>{if(void 0===e.operationId)return;const t=String(Ec(e.operationId)),r=a.find((e=>Ec(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=ic.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),a.length=0,c.length=0,l=void 0}},PathItemElement:{enter(e){const t=As("path",Ec(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,c,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Ec(e.operationId)),d=Cs(o),m=As("method",Ec(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),a.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&c.push(e)}}}}},dS=({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)&&(Ec(e.name)===Ec(t.name)&&Ec(e.in)===Ec(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new cS(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?i.push([...a.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,a,c){const l=Cs(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=ij([],["parameters","content"],e),h=Lj(n,[...p,...l]);e.parameters=new tv(h),o.append(u)}}}}},mS=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new cS(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,a,c){if(c.some(r.isComponentsElement))return;const l=s([...c,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new pv(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},fS=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new cS(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>ic.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",[ic(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",ic(e.example)),n.append(u)))}}}}}},yS=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new cS(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>ic.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",[ic(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",ic(e.example)),n.append(u)))}}}}}},vS=e=>{if(!Ea(e))return e;const t=[hS({operationIdNormalizer:(e,t,r)=>Bo({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),dS(),mS(),fS(),yS()];return qc(e,t,{toolboxCreator:aw,visitorOptions:{keyMap:nw,nodeTypeGetter:sw}})},gS={name:"openapi-3-1-apidom",match:e=>Ho(e),normalize(e){if(!ya(e)&&No(e)&&!e.$$normalized){const r=(t=vS,e=>{const r=hg.refract(e);r.classes.push("result");const s=t(r),n=Ec(s);return rS.cache.set(n,s),Ec(s)})(e);return r.$$normalized=!0,r}var t;return ya(e)?vS(e):e},resolve:async e=>rS(e)};const bS=class extends Wv{};const xS=class extends Kv{get mediaTypes(){return this.get("mediaTypes")}set mediaTypes(e){this.set("mediaTypes",e)}};const ES=class extends Yv{};const wS=class extends Xv{get defaultMapping(){return this.get("defaultMapping")}set defaultMapping(e){this.set("defaultMapping",e)}};const jS=class extends Qv{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 SS=class extends Zv{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 OS=class extends eg{};const PS=class extends tg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const $S=class extends rg{};class AS extends Zo.Om{static default=new AS("https://spec.openapis.org/oas/3.2/dialect/2025-09-17");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const kS=AS;const TS=class extends ig{};const FS=class extends og{};const MS=class extends ag{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 CS=class extends cg{get deviceAuthorizationUrl(){return this.get("deviceAuthorizationUrl")}set deviceAuthorizationUrl(e){this.set("deviceAuthorizationUrl",e)}};const IS=class extends lg{get deviceAuthorization(){return this.get("deviceAuthorization")}set deviceAuthorization(e){this.set("deviceAuthorization",e)}};const RS=class extends ug{};class DS extends Zo.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 _S=DS;const NS=class extends dg{};const LS=class extends mg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const BS=class extends fg{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 qS=class extends yg{};class US extends gg{}Object.defineProperty(US.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(US.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const VS=US;const JS=class extends bg{};const HS=class extends xg{get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};const zS=class extends Eg{};const GS=class extends zb{};const WS=class extends Gb{};const KS=class extends Wb{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 YS=class extends Kb{get name(){return this.get("name")}set name(e){this.set("name",e)}};const XS=class extends Yb{};const QS=class extends Xb{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 ZS=class extends Qb{get nodeType(){return this.get("nodeType")}set nodeType(e){this.set("nodeType",e)}};class eO extends(ip(Hh,Rh)){constructor(e){super(e),this.element=new _S,this.specPath=Dn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Hh.prototype.ObjectElement.call(this,e)}}const tO=eO,rO=rw.visitors.document.objects.Info.$visitor;const sO=class extends rO{constructor(e){super(e),this.element=new $S}},nO=rw.visitors.document.objects.Contact.$visitor;const iO=class extends nO{constructor(e){super(e),this.element=new ES}},oO=rw.visitors.document.objects.License.$visitor;const aO=class extends oO{constructor(e){super(e),this.element=new TS}},cO=rw.visitors.document.objects.Link.$visitor;const lO=class extends cO{constructor(e){super(e),this.element=new FS}};class uO extends(ip(Dh,Rh)){StringElement(e){const t=new kS(Ec(e));return this.copyMetaAndAttributes(e,t),this.element=t,Da}}const pO=uO,hO=rw.visitors.document.objects.Server.$visitor;const dO=class extends hO{constructor(e){super(e),this.element=new YS}},mO=rw.visitors.document.objects.ServerVariable.$visitor;const fO=class extends mO{constructor(e){super(e),this.element=new XS}},yO=rw.visitors.document.objects.MediaType.$visitor;const vO=class extends yO{constructor(e){super(e),this.element=new MS}},gO=rw.visitors.document.objects.SecurityRequirement.$visitor;const bO=class extends gO{constructor(e){super(e),this.element=new WS}},xO=rw.visitors.document.objects.Components.$visitor;const EO=class extends xO{constructor(e){super(e),this.element=new xS}},wO=rw.visitors.document.objects.Tag.$visitor;const jO=class extends wO{constructor(e){super(e),this.element=new QS}},SO=rw.visitors.document.objects.Reference.$visitor;const OO=class extends SO{constructor(e){super(e),this.element=new VS}},PO=rw.visitors.document.objects.Parameter.$visitor;const $O=class extends PO{constructor(e){super(e),this.element=new LS}},AO=rw.visitors.document.objects.Header.$visitor;const kO=class extends AO{constructor(e){super(e),this.element=new PS}},TO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bS||e(s)&&t("callback",s)&&r("object",s))),FO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xS||e(s)&&t("components",s)&&r("object",s))),MO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ES||e(s)&&t("contact",s)&&r("object",s))),CO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wS||e(s)&&t("discriminator",s)&&r("object",s))),IO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof SS||e(s)&&t("example",s)&&r("object",s))),RO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof OS||e(s)&&t("externalDocumentation",s)&&r("object",s))),DO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof PS||e(s)&&t("header",s)&&r("object",s))),_O=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $S||e(s)&&t("info",s)&&r("object",s))),NO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kS||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),LO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof TS||e(s)&&t("license",s)&&r("object",s))),BO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof FS||e(s)&&t("link",s)&&r("object",s))),qO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof RS||e(s)&&t("openapi",s)&&r("string",s))),UO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof _S||e(n)&&t("openApi3_2",n)&&r("object",n)&&s("api",n))),VO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof NS||e(s)&&t("operation",s)&&r("object",s))),JO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof LS||e(s)&&t("parameter",s)&&r("object",s))),HO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof BS||e(s)&&t("pathItem",s)&&r("object",s))),zO=e=>{if(!HO(e))return!1;if(!va(e.$ref))return!1;const t=Ec(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},GO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qS||e(s)&&t("paths",s)&&r("object",s))),WO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof VS||e(s)&&t("reference",s)&&r("object",s))),KO=e=>{if(!WO(e))return!1;if(!va(e.$ref))return!1;const t=Ec(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},YO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof JS||e(s)&&t("requestBody",s)&&r("object",s))),XO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof HS||e(s)&&t("response",s)&&r("object",s))),QO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zS||e(s)&&t("responses",s)&&r("object",s))),ZO=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof GS||e(s)&&t("schema",s)&&r("object",s))),eP=e=>xa(e)&&e.classes.includes("boolean-json-schema"),tP=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof WS||e(s)&&t("securityRequirement",s)&&r("object",s))),rP=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof KS||e(s)&&t("securityScheme",s)&&r("object",s))),sP=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof YS||e(s)&&t("server",s)&&r("object",s))),nP=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof XS||e(s)&&t("serverVariable",s)&&r("object",s))),iP=fa((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof MS||e(s)&&t("mediaType",s)&&r("object",s)));class oP extends(ip(Hh,fp,Rh)){constructor(e){super(e),this.element=new GS,this.specPath=Dn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=kS.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Hh.prototype.ObjectElement.call(this,e);return va(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return Ib.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&NO(this.openApiSemanticElement.jsonSchemaDialect)?Ec(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&va(this.openApiGenericElement.get("jsonSchemaDialect"))?Ec(this.openApiGenericElement.get("jsonSchemaDialect")):Ec(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return Ib.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return Ib.prototype.handleSchemaIdentifier.call(this,e)}}const aP=oP;const cP=class extends ab{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const lP=class extends lb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const uP=class extends pb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const pP=class extends db{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const hP=class extends fb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const dP=class extends Db{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const mP=class extends bb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const fP=class extends Eb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},yP=rw.visitors.document.objects.Discriminator.$visitor;const vP=class extends yP{constructor(e){super(e),this.element=new wS,this.canSupportSpecificationExtensions=!0}},gP=rw.visitors.document.objects.XML.$visitor;const bP=class extends gP{constructor(e){super(e),this.element=new ZS}};class xP extends(ip(ld,Rh)){constructor(e){super(e),this.element=new wf,this.specPath=Dn(["document","objects","Schema"])}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(ZO).forEach(((e,t)=>{e.setMetaProperty("schemaName",Ec(t))})),t}}const EP=xP;const wP=class extends EE{};class jP extends(ip(ld,Rh)){constructor(e){super(e),this.element=new wP,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(WO).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const SP=jP;class OP extends Zo.Sh{static primaryClass="components-media-types";constructor(e,t,r){super(e,t,r),this.classes.push(OP.primaryClass)}}const PP=OP;class $P extends(ip(ld,Rh)){constructor(e){super(e),this.element=new PP,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(WO).forEach((e=>{e.setMetaProperty("referenced-element","mediaType")})),t}}const AP=$P;class kP extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Zo.Sh,this.specPath=Dn(["document","objects","Operation"])}}const TP=kP,FP=rw.visitors.document.objects.Example.$visitor;const MP=class extends FP{constructor(e){super(e),this.element=new SS}},CP=rw.visitors.document.objects.ExternalDocumentation.$visitor;const IP=class extends CP{constructor(e){super(e),this.element=new OS}},RP=rw.visitors.document.objects.Encoding.$visitor;const DP=class extends RP{constructor(e){super(e),this.element=new jS}},_P=rw.visitors.document.objects.Paths.$visitor;const NP=class extends _P{constructor(e){super(e),this.element=new qS}},LP=rw.visitors.document.objects.RequestBody.$visitor;const BP=class extends LP{constructor(e){super(e),this.element=new JS}};class qP extends(ip(ld,Rh)){constructor(e){super(e),this.element=new by,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(WO).forEach((e=>{e.setMetaProperty("referenced-element","mediaType")})),t}}const UP=qP,VP=rw.visitors.document.objects.Callback.$visitor;const JP=class extends VP{constructor(e){super(e),this.element=new bS,this.specPath=Dn(["document","objects","PathItem"])}},HP=rw.visitors.document.objects.Response.$visitor;const zP=class extends HP{constructor(e){super(e),this.element=new HS}};class GP extends(ip(ld,Rh)){constructor(e){super(e),this.element=new Ty,this.specPath=e=>qh(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(WO).forEach((e=>{e.setMetaProperty("referenced-element","mediaType")})),t}}const WP=GP,KP=rw.visitors.document.objects.Responses.$visitor;const YP=class extends KP{constructor(e){super(e),this.element=new zS}},XP=rw.visitors.document.objects.Operation.$visitor;const QP=class extends XP{constructor(e){super(e),this.element=new NS}},ZP=rw.visitors.document.objects.PathItem.$visitor;const e$=class extends ZP{constructor(e){super(e),this.element=new BS}},t$=rw.visitors.document.objects.SecurityScheme.$visitor;const r$=class extends t${constructor(e){super(e),this.element=new KS}},s$=rw.visitors.document.objects.OAuthFlows.$visitor;const n$=class extends s${constructor(e){super(e),this.element=new IS}},i$=rw.visitors.document.objects.OAuthFlow.$visitor;const o$=class extends i${constructor(e){super(e),this.element=new CS}};const a$=class extends XE{};class c$ extends(ip(ld,Rh)){constructor(e){super(e),this.element=new a$,this.specPath=Dn(["document","objects","PathItem"])}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(HO).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Ec(t))})),t}}const l$=c$,{JSONSchema:u$,LinkDescription:p$}=Nb.visitors.document.objects,h$={visitors:{value:rw.visitors.value,document:{objects:{OpenApi:{$visitor:tO,fixedFields:{openapi:rw.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:pO,servers:rw.visitors.document.objects.OpenApi.fixedFields.servers,$self:{$ref:"#/visitors/value"},paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:l$,components:{$ref:"#/visitors/document/objects/Components"},security:rw.visitors.document.objects.OpenApi.fixedFields.security,tags:rw.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sO,fixedFields:{title:rw.visitors.document.objects.Info.fixedFields.title,description:rw.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:rw.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:rw.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:iO,fixedFields:{name:rw.visitors.document.objects.Contact.fixedFields.name,url:rw.visitors.document.objects.Contact.fixedFields.url,email:rw.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:aO,fixedFields:{name:rw.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:rw.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:dO,fixedFields:{url:rw.visitors.document.objects.Server.fixedFields.url,description:rw.visitors.document.objects.Server.fixedFields.description,variables:rw.visitors.document.objects.Server.fixedFields.variables,name:{$ref:"#/visitors/value"}}},ServerVariable:{$visitor:fO,fixedFields:{enum:rw.visitors.document.objects.ServerVariable.fixedFields.enum,default:rw.visitors.document.objects.ServerVariable.fixedFields.default,description:rw.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:EO,fixedFields:{schemas:EP,responses:rw.visitors.document.objects.Components.fixedFields.responses,parameters:rw.visitors.document.objects.Components.fixedFields.parameters,examples:rw.visitors.document.objects.Components.fixedFields.examples,requestBodies:rw.visitors.document.objects.Components.fixedFields.requestBodies,headers:rw.visitors.document.objects.Components.fixedFields.headers,securitySchemes:rw.visitors.document.objects.Components.fixedFields.securitySchemes,links:rw.visitors.document.objects.Components.fixedFields.links,callbacks:rw.visitors.document.objects.Components.fixedFields.callbacks,pathItems:SP,mediaTypes:AP}},Paths:{$visitor:NP},PathItem:{$visitor:e$,fixedFields:{$ref:rw.visitors.document.objects.PathItem.fixedFields.$ref,summary:rw.visitors.document.objects.PathItem.fixedFields.summary,description:rw.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:rw.visitors.document.objects.PathItem.fixedFields.servers,parameters:rw.visitors.document.objects.PathItem.fixedFields.parameters,additionalOperations:TP}},Operation:{$visitor:QP,fixedFields:{tags:rw.visitors.document.objects.Operation.fixedFields.tags,summary:rw.visitors.document.objects.Operation.fixedFields.summary,description:rw.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:rw.visitors.document.objects.Operation.fixedFields.operationId,parameters:rw.visitors.document.objects.Operation.fixedFields.parameters,requestBody:rw.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:rw.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:rw.visitors.document.objects.Operation.fixedFields.deprecated,security:rw.visitors.document.objects.Operation.fixedFields.security,servers:rw.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:IP,fixedFields:{description:rw.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:rw.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:$O,fixedFields:{name:rw.visitors.document.objects.Parameter.fixedFields.name,in:rw.visitors.document.objects.Parameter.fixedFields.in,description:rw.visitors.document.objects.Parameter.fixedFields.description,required:rw.visitors.document.objects.Parameter.fixedFields.required,deprecated:rw.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:rw.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:rw.visitors.document.objects.Parameter.fixedFields.style,explode:rw.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:rw.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:rw.visitors.document.objects.Parameter.fixedFields.example,examples:rw.visitors.document.objects.Parameter.fixedFields.examples,content:rw.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:BP,fixedFields:{description:rw.visitors.document.objects.RequestBody.fixedFields.description,content:UP,required:rw.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:vO,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:rw.visitors.document.objects.MediaType.fixedFields.example,examples:rw.visitors.document.objects.MediaType.fixedFields.examples,encoding:rw.visitors.document.objects.MediaType.fixedFields.encoding,itemSchema:{$ref:"#/visitors/document/objects/Schema"},prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Encoding:{$visitor:DP,fixedFields:{contentType:rw.visitors.document.objects.Encoding.fixedFields.contentType,headers:rw.visitors.document.objects.Encoding.fixedFields.headers,style:rw.visitors.document.objects.Encoding.fixedFields.style,explode:rw.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:rw.visitors.document.objects.Encoding.fixedFields.allowReserved,encoding:rw.visitors.document.objects.MediaType.fixedFields.encoding,prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Responses:{$visitor:YP,fixedFields:{default:rw.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:zP,fixedFields:{description:rw.visitors.document.objects.Response.fixedFields.description,headers:rw.visitors.document.objects.Response.fixedFields.headers,content:WP,links:rw.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:JP},Example:{$visitor:MP,fixedFields:{summary:rw.visitors.document.objects.Example.fixedFields.summary,description:rw.visitors.document.objects.Example.fixedFields.description,value:rw.visitors.document.objects.Example.fixedFields.value,externalValue:rw.visitors.document.objects.Example.fixedFields.externalValue,dataValue:{$ref:"#/visitors/value"},serializedValue:{$ref:"#/visitors/value"}}},Link:{$visitor:lO,fixedFields:{operationRef:rw.visitors.document.objects.Link.fixedFields.operationRef,operationId:rw.visitors.document.objects.Link.fixedFields.operationId,parameters:rw.visitors.document.objects.Link.fixedFields.parameters,requestBody:rw.visitors.document.objects.Link.fixedFields.requestBody,description:rw.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:kO,fixedFields:{description:rw.visitors.document.objects.Header.fixedFields.description,required:rw.visitors.document.objects.Header.fixedFields.required,deprecated:rw.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:rw.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:rw.visitors.document.objects.Header.fixedFields.style,explode:rw.visitors.document.objects.Header.fixedFields.explode,allowReserved:rw.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:rw.visitors.document.objects.Header.fixedFields.example,examples:rw.visitors.document.objects.Header.fixedFields.examples,content:rw.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:jO,fixedFields:{name:rw.visitors.document.objects.Tag.fixedFields.name,description:rw.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:OO,fixedFields:{$ref:rw.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...p$},Schema:{$visitor:aP,fixedFields:{...u$.fixedFields,$defs:cP,allOf:lP,anyOf:uP,oneOf:pP,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:hP,prefixItems:dP,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:mP,patternProperties:fP,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:vP,fixedFields:{propertyName:rw.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:rw.visitors.document.objects.Discriminator.fixedFields.mapping,defaultMapping:{$ref:"#/visitors/value"}}},XML:{$visitor:bP,fixedFields:{name:rw.visitors.document.objects.XML.fixedFields.name,namespace:rw.visitors.document.objects.XML.fixedFields.namespace,prefix:rw.visitors.document.objects.XML.fixedFields.prefix,attribute:rw.visitors.document.objects.XML.fixedFields.attribute,wrapped:rw.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:r$,fixedFields:{type:rw.visitors.document.objects.SecurityScheme.fixedFields.type,description:rw.visitors.document.objects.SecurityScheme.fixedFields.description,name:rw.visitors.document.objects.SecurityScheme.fixedFields.name,in:rw.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:rw.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:rw.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:rw.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl,oauth2MetadataUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:n$,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:o$,fixedFields:{authorizationUrl:rw.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:rw.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:rw.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:rw.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:bO}},extension:{$visitor:rw.visitors.document.extension.$visitor}}}},d$=e=>{if(ya(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},m$={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"],...hc},f$={namespace:e=>{const{base:t}=e;return t.register("callback",bS),t.register("components",xS),t.register("contact",ES),t.register("discriminator",wS),t.register("encoding",jS),t.register("example",SS),t.register("externalDocumentation",OS),t.register("header",PS),t.register("info",$S),t.register("jsonSchemaDialect",kS),t.register("license",TS),t.register("link",FS),t.register("mediaType",MS),t.register("oAuthFlow",CS),t.register("oAuthFlows",IS),t.register("openapi",RS),t.register("openApi3_2",_S),t.register("operation",NS),t.register("parameter",LS),t.register("pathItem",BS),t.register("paths",qS),t.register("reference",VS),t.register("requestBody",JS),t.register("response",HS),t.register("responses",zS),t.register("schema",GS),t.register("securityRequirement",WS),t.register("securityScheme",KS),t.register("server",YS),t.register("serverVariable",XS),t.register("tag",QS),t.register("xml",ZS),t}},y$=e=>{const t=e.reduce(((t,r,s)=>{if(ja(r)){const e=String(Ec(r.key));t.push(e)}else if(wa(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t}),[]);return xl(t)},v$=()=>{const e=_c(f$);return{predicates:{...d,isElement:ya,isStringElement:va,isArrayElement:wa,isObjectElement:Ea,isMemberElement:ja,isServersElement:rm,includesClasses:Ma,hasElementSourceMap:Ta},ancestorLineageToJSONPointer:y$,namespace:e}},g$=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Zo.e)(e),n=sc(h$),i=new(Qa(t,n))({specObj:n});return mc(s,i),qc(i.element,r,{toolboxCreator:v$,visitorOptions:{keyMap:m$,nodeTypeGetter:d$}})},b$=e=>(t,r={})=>g$(t,{specPath:e,...r});bS.refract=b$(["visitors","document","objects","Callback","$visitor"]),xS.refract=b$(["visitors","document","objects","Components","$visitor"]),ES.refract=b$(["visitors","document","objects","Contact","$visitor"]),SS.refract=b$(["visitors","document","objects","Example","$visitor"]),wS.refract=b$(["visitors","document","objects","Discriminator","$visitor"]),jS.refract=b$(["visitors","document","objects","Encoding","$visitor"]),OS.refract=b$(["visitors","document","objects","ExternalDocumentation","$visitor"]),PS.refract=b$(["visitors","document","objects","Header","$visitor"]),$S.refract=b$(["visitors","document","objects","Info","$visitor"]),kS.refract=b$(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),TS.refract=b$(["visitors","document","objects","License","$visitor"]),FS.refract=b$(["visitors","document","objects","Link","$visitor"]),MS.refract=b$(["visitors","document","objects","MediaType","$visitor"]),CS.refract=b$(["visitors","document","objects","OAuthFlow","$visitor"]),IS.refract=b$(["visitors","document","objects","OAuthFlows","$visitor"]),RS.refract=b$(["visitors","document","objects","OpenApi","fixedFields","openapi"]),_S.refract=b$(["visitors","document","objects","OpenApi","$visitor"]),NS.refract=b$(["visitors","document","objects","Operation","$visitor"]),LS.refract=b$(["visitors","document","objects","Parameter","$visitor"]),BS.refract=b$(["visitors","document","objects","PathItem","$visitor"]),qS.refract=b$(["visitors","document","objects","Paths","$visitor"]),VS.refract=b$(["visitors","document","objects","Reference","$visitor"]),JS.refract=b$(["visitors","document","objects","RequestBody","$visitor"]),HS.refract=b$(["visitors","document","objects","Response","$visitor"]),zS.refract=b$(["visitors","document","objects","Responses","$visitor"]),GS.refract=b$(["visitors","document","objects","Schema","$visitor"]),WS.refract=b$(["visitors","document","objects","SecurityRequirement","$visitor"]),KS.refract=b$(["visitors","document","objects","SecurityScheme","$visitor"]),YS.refract=b$(["visitors","document","objects","Server","$visitor"]),XS.refract=b$(["visitors","document","objects","ServerVariable","$visitor"]),QS.refract=b$(["visitors","document","objects","Tag","$visitor"]),ZS.refract=b$(["visitors","document","objects","XML","$visitor"]);class x$ extends pw{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 Cs(this.filterByFormat(e))}}const E$=new x$("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 w$=class extends _w{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.2\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-2-swagger-client",mediaTypes:new x$(...E$.filterByFormat("generic"),...E$.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Dw("openapi-json-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=_S.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new Dw(`Error parsing "${e.uri}"`,{cause:t})}}};const j$=class extends _w{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 x$(...E$.filterByFormat("generic"),...E$.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return Qt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Dw("openapi-yaml-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();try{const e=Qt.load(r,{schema:qt});if(this.allowEmpty&&void 0===e)return t;const s=_S.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new Dw(`Error parsing "${e.uri}"`,{cause:t})}}},S$=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),O$=e=>{const t=pi(e);return rc("#",t)},P$=(e,t)=>{const r=(e=>{if(!S$(e))throw new lj(e);return e})(e),s=oj((e=>ZO(e)&&Ec(e.$anchor)===r),t);if(Nn(s))throw new cj(`Evaluation failed on token: "${r}"`);return s},$$=(e,t)=>{if(void 0===t.$ref)return;const r=pi(Ec(t.$ref)),s=Ec(t.meta.get("ancestorsSchemaIdentifiers"));return`${js(((e,t)=>mi(e,fi(hi(t)))),e,[...s,Ec(t.$ref)])}${"#"===r?"":r}`},A$=e=>{if(A$.cache.has(e))return A$.cache.get(e);const t=GS.refract(e);return A$.cache.set(e,t),t};A$.cache=new WeakMap;const k$=e=>ka(e)?A$(e):e,T$=(e,t)=>{const{cache:r}=T$,s=hi(e),n=e=>ZO(e)&&void 0!==e.$id;if(!r.has(t)){const e=dj(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=Ec(t.meta.get("ancestorsSchemaIdentifiers"));return js(((e,t)=>mi(e,fi(hi(t)))),e,r)})(s,e)===s));if(Nn(i))throw new fj(`Evaluation failed on URI: "${e}"`);return S$(O$(e))?P$(O$(e),i):Tl(i,Gc(e))};T$.cache=new WeakMap;const F$=mc[Symbol.for("nodejs.util.promisify.custom")],M$=new nj,C$=e=>{try{return!!new URL(e).protocol}catch{return!1}},I$=(e,t,r,s)=>{ja(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class R${indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;$selfValue;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new $j,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map,$selfValue:a}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new $j(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o,this.$selfValue=a}handleDereferenceError(e,t,r){var s,n;if(null===(s=this.options.dereference.dereferenceOpts)||void 0===s||!s.continueOnError)throw e;if(r){const t=[...r].find((e=>Ea(e)&&e.getMetaProperty("ref-referencing-element")));var i;if(t)null===(i=this.options.dereference.dereferenceOpts)||void 0===i||i.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.errors.push({error:e,refEl:t})}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||!Ec(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 mi(this.reference.uri,fi(hi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Ej(`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(Zw(t,"uri"));const s=await Pj(yi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new mw({uri:t,value:ic(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new mw({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(ya));return[new $j(...this.ancestors,t),t]}extractSelfFromReference(e){try{const t=e.value.result;let r;if(t instanceof Zo.Hg)if("openapi-3-2"===t.element)r=t;else{const e=oj((e=>"openapi-3-2"===e.element),t);e&&(r=e)}if(r&&UO(r)&&va(r.$self)){const t=Ec(r.$self);if(t)return C$(t)?fi(hi(t)):mi(e.uri,fi(hi(t)))}}catch{}}OpenApi3_2Element={enter:e=>{if(va(e.$self)){const t=Ec(e.$self);t&&(C$(t)?this.$selfValue=fi(hi(t)):this.$selfValue=mi(this.reference.uri,fi(hi(t))))}},leave:(e,t,r,s,n,i)=>{var o;if(null===(o=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===o||!o.dereferenceDiscriminatorMapping)return;const a=cc(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,I$),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,a;if(this.indirections.includes(e))return!1;const[c,l]=this.toAncestorLineage([...n,r]),u=Ec(e.$ref),p=this.toBaseURI(u),h=hi(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(Ec(e.$ref))}catch(t){return this.handleDereferenceError(t,e,l)}const f=mi(p,Ec(e.$ref));this.indirections.push(e);const y=Gc(f);let v;try{v=Tl(m.value.result,y)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(v.id=M$.identify(v),ka(v)){const t=Ec(e.meta.get("referenced-element")),r=`${t}-${Ec(M$.identify(v))}`;if(this.refractCache.has(r))v=this.refractCache.get(r);else if(qh(v))v=VS.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 ss("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(c.includes(v)){if(m.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new ss("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if("replace"===this.options.dereference.circular){var g,b;const t=new Zo.sI(v.id,{type:"reference",uri:m.uri,$ref:Ec(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,I$),!r&&s}}const x=hi(m.refSet.rootRef.uri)!==m.uri,E=["error","replace"].includes(this.options.dereference.circular);if((d||x||WO(v)||E||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!c.includesCycle(v)){l.add(e);const t=d||x?this.extractSelfFromReference(m):this.$selfValue,r=new R$({reference:m,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t});try{v=await F$(v,r,{keyMap:m$,nodeTypeGetter:d$})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}l.delete(e)}this.indirections.pop();const w=cc(v);w.setMetaProperty("id",M$.generateId()),w.setMetaProperty("ref-fields",{$ref:Ec(e.$ref),description:Ec(e.description),summary:Ec(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",ic(M$.identify(e))),null!==(a=this.options.dereference.dereferenceOpts)&&void 0!==a&&a.continueOnError&&w.setMetaProperty("ref-referencing-element",e),Ea(v)&&Ea(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,I$),!r&&w}async PathItemElement(e,t,r,s,n,i){var o;if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]),l=Ec(e.$ref),u=this.toBaseURI(l),p=hi(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(Ec(e.$ref))}catch(t){return this.handleDereferenceError(t,e,c)}const m=mi(u,Ec(e.$ref));this.indirections.push(e);const f=Gc(m);let y;try{y=Tl(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(y.id=M$.identify(y),ka(y)){const e=`path-item-${Ec(M$.identify(y))}`;this.refractCache.has(e)?y=this.refractCache.get(e):(y=BS.refract(y),this.refractCache.set(e,y))}if(e===y){const t=new ss("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(a.includes(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new ss("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var v,g;const t=new Zo.sI(y.id,{type:"path-item",uri:d.uri,$ref:Ec(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,I$),!r&&s}}const b=hi(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||HO(y)&&va(y.$ref)||x||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(y)){c.add(e);const t=h||b?this.extractSelfFromReference(d):this.$selfValue,r=new R$({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t});try{y=await F$(y,r,{keyMap:m$,nodeTypeGetter:d$})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),HO(y)){var E;const t=new BS([...y.content],ic(y.meta),ic(y.attributes));t.setMetaProperty("id",M$.generateId()),e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(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",ic(M$.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,I$),r?void 0:y}async LinkElement(e,t,r,s,n,i){if(!va(e.operationRef)&&!va(e.operationId))return;if(va(e.operationRef)&&va(e.operationId)){const t=new ss("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(va(e.operationRef)){var a;const t=Ec(e.operationRef),s=Gc(t),n=this.toBaseURI(t),c=hi(this.reference.uri)===n,l=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&l)return;let u;try{u=await this.toReference(Ec(e.operationRef)),o=Tl(u.value.result,s)}catch(t){return this.handleDereferenceError(t,e)}if(!o){const t=new ss("OperationElement could not be resolved.");return this.handleDereferenceError(t,e)}let p=o;if(ka(p)){const e=`operation-${Ec(M$.identify(p))}`;this.refractCache.has(e)?p=this.refractCache.get(e):(p=NS.refract(p),this.refractCache.set(e,p))}p=cc(p);const h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=cc(e);return null===(a=d.operationRef)||void 0===a||a.meta.set("operation",p),i.replaceWith(d,I$),r?void 0:d}if(va(e.operationId)){var c;const t=Ec(e.operationId);let s;try{s=await this.toReference(yi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=oj((e=>VO(e)&&ya(e.operationId)&&e.operationId.equals(t)),s.value.result),Nn(o)){const r=new ss(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=cc(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,I$),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!va(e.externalValue))return;if(e.hasKey("value")&&va(e.externalValue)){const t=new ss("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=Ec(e.externalValue),a=this.toBaseURI(o),c=hi(this.reference.uri)===a,l=!c;if(!this.options.resolve.internal&&c)return;if(!this.options.resolve.external&&l)return;let u;try{u=await this.toReference(Ec(e.externalValue))}catch(t){return this.handleDereferenceError(t,e)}const p=cc(u.value.result),h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=cc(e);return d.value=p,i.replaceWith(d,I$),r?void 0:d}async MemberElement(e,t,r,s,n,i){var o;const a=n[n.length-1];if(!Ea(a)||!a.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-2"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!va(e.key)||!va(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[c,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(ZO),p=ic(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Ec(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new GS({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new R$({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:this.$selfValue});let y;try{y=await F$(m,f,{keyMap:m$,nodeTypeGetter:d$})}catch(e){return this.handleDereferenceError(e,m,l)}l.delete(m),this.indirections.pop();const v=cc(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,I$),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(yi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,c)}let{uri:u}=l;const p=$$(u,e),h=hi(p),d=new $w({uri:h}),m=tj((e=>e.canRead(d)),this.options.resolve.resolvers),f=!m;let y,v=hi(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=k$(l.value.result);if(y=T$(e,t),y=k$(y),y.id=M$.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=hi(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(yi(p));const e=Gc(p),t=k$(l.value.result);y=Tl(t,e),y=k$(y),y.id=M$.identify(y)}}catch(t){if(!(f&&t instanceof fj))return this.indirections.pop(),this.handleDereferenceError(t,e,c);if(S$(O$(p))){if(v=hi(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(yi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=O$(p),r=k$(l.value.result);try{y=P$(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=k$(y),y.id=M$.identify(y)}else{if(u=this.toBaseURI(p),v=hi(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(yi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=Gc(p),r=k$(l.value.result);try{y=Tl(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=k$(y),y.id=M$.identify(y)}}if(e===y){const t=new ss("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(a.includes(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new ss("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var b,x;const t=new Zo.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Ec(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,I$),!r&&s}}const E=hi(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||ZO(y)&&va(y.$ref)||w||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(y)){c.add(e);const t=g||E?this.extractSelfFromReference(l):this.$selfValue,r=new R$({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,$selfValue:t});try{y=await F$(y,r,{keyMap:m$,nodeTypeGetter:d$})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),eP(y)){const t=ic(y);t.setMetaProperty("id",M$.generateId()),t.setMetaProperty("ref-fields",{$ref:Ec(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",ic(M$.identify(e))),i.replaceWith(t,I$),!r&&t}if(ZO(y)){var j,S;const t=new GS([...y.content],ic(y.meta),ic(y.attributes));t.setMetaProperty("id",M$.generateId()),e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(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",ic(M$.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=[...c].findLast(ZO),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Ec(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,I$),r?void 0:y}}const D$=R$,_$=mc[Symbol.for("nodejs.util.promisify.custom")];const N$=class extends ej{constructor(e){super({...null!=e?e:{},name:"openapi-3-2"})}canDereference(e){var t;return"text/plain"!==e.mediaType?E$.includes(e.mediaType):UO(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=_c(f$),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new fw,i=new fw;let o,a=n;n.has(e.uri)?o=n.find(Zw(e.uri,"uri")):(o=new mw({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new mw({...e,value:ic(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new D$({reference:o,namespace:s,options:t}),l=await _$(a.rootRef.value,c,{keyMap:m$,nodeTypeGetter:d$});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new mw({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},L$=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(ja(r)){const t=String(Ec(r.key));e.push(t)}else if(wa(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e}),[])};const B$=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Ea(e.properties)&&e.properties.forEach((t=>{if(Ea(t))try{const e=this.modelPropertyMacro(Ec(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...L$([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const q$=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!wa(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...L$([...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(ZO)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...L$([...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=Nu.all([...t.content,e],{customMerge:e=>"enum"===Ec(e)?(e,t)=>{if(Ma(["json-schema-enum"],e)&&Ma(["json-schema-enum"],t)){const r=(e,t)=>!(wa(e)||wa(t)||Ea(e)||Ea(t))&&e.equals(Ec(t)),s=cc(e);return s.content=Lj(r)([...e.content,...t.content]),s}return Nu(e,t)}:Nu});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 U$=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?Ec(this.#s):null,o=Ec(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=L$([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},V$=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const J$=class extends ns{},{wrapError:H$}=so,z$=mc[Symbol.for("nodejs.util.promisify.custom")],G$=new nj,W$=(e,t,r,s)=>{ja(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class K$ extends D${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{if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Ec(e.$ref)),a=hi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(Ec(e.$ref)),u=mi(o,Ec(e.$ref));this.indirections.push(e);const p=Gc(u);let h=Tl(l.value.result,p);if(h.id=G$.identify(h),ka(h)){const t=Ec(e.meta.get("referenced-element")),r=`${t}-${Ec(G$.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(qh(h))h=VS.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new ss("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new ss("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(h.id,{type:"reference",uri:l.uri,$ref:Ec(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,W$),!r&&s}}const d=hi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||WO(h)||m)&&!t.includesCycle(h)){s.add(e);const i=new K$({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...L$([...n,r,e]),"$ref"]});h=await z$(h,i,{keyMap:m$,nodeTypeGetter:d$}),s.delete(e)}this.indirections.pop();const f=cc(h);if(f.setMetaProperty("ref-fields",{$ref:Ec(e.$ref),description:Ec(e.description),summary:Ec(e.summary)}),f.setMetaProperty("ref-origin",l.uri),f.setMetaProperty("ref-referencing-element-id",ic(G$.identify(e))),Ea(h)&&(e.hasKey("description")&&"description"in h&&(f.remove("description"),f.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(f.remove("summary"),f.set("summary",e.get("summary")))),this.allowMetaPatches&&Ea(f)&&!f.hasKey("$$ref")){const e=mi(o,u);f.set("$$ref",e)}return i.replaceWith(f,W$),!r&&f}catch(t){const s=V$(t),i=H$(s,{baseDoc:this.reference.uri,$ref:Ec(e.$ref),pointer:Gc(Ec(e.$ref)),fullPath:this.basePath??[...L$([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;if(Ma(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Ec(e.$ref)),a=hi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Ec(e.$ref)),u=mi(o,Ec(e.$ref));this.indirections.push(e);const p=Gc(u);let h=Tl(l.value.result,p);if(h.id=G$.identify(h),ka(h)){const e=`path-item-${Ec(G$.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=BS.refract(h),this.refractCache.set(e,h))}if(e===h)throw new ss("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new ss("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(h.id,{type:"path-item",uri:l.uri,$ref:Ec(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,W$),!r&&s}}const d=hi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||HO(h)&&va(h.$ref)||m)&&!t.includesCycle(h)){s.add(e);const i=new K$({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...L$([...n,r,e]),"$ref"]});h=await z$(h,i,{keyMap:m$,nodeTypeGetter:d$}),s.delete(e)}if(this.indirections.pop(),HO(h)){const t=new BS([...h.content],ic(h.meta),ic(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",ic(G$.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=mi(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,W$),r?void 0:h}catch(t){const s=V$(t),i=H$(s,{baseDoc:this.reference.uri,$ref:Ec(e.$ref),pointer:Gc(Ec(e.$ref)),fullPath:this.basePath??[...L$([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{if(!va(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let o=await this.toReference(yi(this.reference.uri)),{uri:a}=o;const c=$$(a,e),l=hi(c),u=new $w({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,m=hi(this.reference.uri)===c,f=!m;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=k$(o.value.result);if(d=T$(e,t),d=k$(d),d.id=G$.identify(d),!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return}else{if(a=this.toBaseURI(c),m=hi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(yi(c));const e=Gc(c),t=k$(o.value.result);d=Tl(t,e),d=k$(d),d.id=G$.identify(d)}}catch(e){if(!(h&&e instanceof fj))throw e;if(S$(O$(c))){if(m=hi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(yi(c));const e=O$(c),t=k$(o.value.result);d=P$(e,t),d=k$(d),d.id=G$.identify(d)}else{if(a=this.toBaseURI(Ec(c)),m=hi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(yi(c));const e=Gc(c),t=k$(o.value.result);d=Tl(t,e),d=k$(d),d.id=G$.identify(d)}}if(e===d)throw new ss("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xj(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(d)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new ss("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(d.id,{type:"json-schema",uri:o.uri,$ref:Ec(e.$ref),baseURI:mi(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,W$),!r&&s}}const y=hi(o.refSet.rootRef.uri)!==o.uri,v=["error","replace"].includes(this.options.dereference.circular);if((f||y||ZO(d)&&va(d.$ref)||v)&&!t.includesCycle(d)){s.add(e);const i=new K$({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...L$([...n,r,e]),"$ref"]});d=await z$(d,i,{keyMap:m$,nodeTypeGetter:d$}),s.delete(e)}if(this.indirections.pop(),eP(d)){const t=ic(d);return t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",ic(G$.identify(e))),i.replaceWith(t,W$),!r&&t}if(ZO(d)){const t=new GS([...d.content],ic(d.meta),ic(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(Ec(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ec(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",ic(G$.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=mi(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,W$),r?void 0:d}catch(t){const s=V$(t),i=new J$(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Ec(e.$ref),fullPath:this.basePath??[...L$([...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=V$(t),i=H$(s,{baseDoc:this.reference.uri,externalValue:Ec(e.externalValue),fullPath:this.basePath??[...L$([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const Y$=K$,X$=Ba[Symbol.for("nodejs.util.promisify.custom")];const Q$=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new Y$({...n,options:s})),"function"==typeof t&&i.push(new B$({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new q$({options:s})),"function"==typeof e&&i.push(new U$({parameterMacro:e,options:s}));const o=X$(i,{nodeTypeGetter:d$});Object.assign(this,o)}},Z$=mc[Symbol.for("nodejs.util.promisify.custom")];const eA=class extends N${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=_c(f$),s=t.dereference.refSet??new fw,n=new fw;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new mw({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new mw({...e,value:ic(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new Q$({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await Z$(o.rootRef.value,a,{keyMap:m$,nodeTypeGetter:d$});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new mw({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},tA=e=>{const t=Ec(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Zo.Sh({$ref:t},ic(r.meta),ic(r.attributes))},rA=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=e;try{const{cache:m}=rA,f=d.find((e=>e.match(t))),v=li(di())?di():y,g=sr(e),b=mi(v,g);let x;m.has(t)?x=m.get(t):(x=_S.refract(t),x.classes.push("result"),m.set(t,x));const E=new la([x]),w=xl(o),j=""===w?"":`#${w}`,S=Tl(x,w),O=new mw({uri:b,value:E}),P=new fw({refs:[O]});""!==w&&(P.rootRef=void 0);const $=[new Set([S])],A=[],k=await Iw(S,{resolve:{baseURI:`${b}${j}`,resolvers:[new Gw({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new Bw]},parse:{mediaType:E$.latest(),parsers:[new w$({allowEmpty:!1,sourceMap:!1}),new j$({allowEmpty:!1,sourceMap:!1}),new Kw({allowEmpty:!1,sourceMap:!1}),new Yw({allowEmpty:!1,sourceMap:!1}),new Nw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new eA({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:$})],refSet:P,dereferenceOpts:{errors:A},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?gw.dereference.circularReplacer:tA}}),T=zc(S,k,x),F=l?T:f.normalize(T);return{spec:Ec(F),errors:A}}catch(e){if(e instanceof jl)return{spec:t,errors:[]};throw e}};rA.cache=new WeakMap;const sA=rA;const nA=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);Ea(e)||(e=new Zo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);wa(t)||(t=new Zo.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)}},iA=e=>e.replace(/\s/g,""),oA=e=>e.replace(/\W/gi,"_"),aA=(e,t,r)=>{const s=iA(e);return s.length>0?oA(s):((e,t)=>`${oA(iA(t.toLowerCase()))}${oA(iA(e))}`)(t,r)},cA=({storageField:e="x-normalized",operationIdNormalizer:t=aA}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_2Element:{enter(t){l=new nA(t,e,"operation-ids")},leave(){const e=aS((e=>Ec(e.operationId)),a);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)})))})),c.forEach((e=>{if(void 0===e.operationId)return;const t=String(Ec(e.operationId)),r=a.find((e=>Ec(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=ic.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),a.length=0,c.length=0,l=void 0}},PathItemElement:{enter(e){const t=As("path",Ec(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,c,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Ec(e.operationId)),d=Cs(o),m=As("method",Ec(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),a.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&c.push(e)}}}}},lA=({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)&&(Ec(e.name)===Ec(t.name)&&Ec(e.in)===Ec(t.in))))))),i=[];let o;return{visitor:{OpenApi3_2Element:{enter(t){o=new nA(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?i.push([...a.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,a,c){const l=Cs(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=ij([],["parameters","content"],e),h=Lj(n,[...p,...l]);e.parameters=new tv(h),o.append(u)}}}}},uA=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_2Element:{enter(t){i=new nA(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,a,c){if(c.some(r.isComponentsElement))return;const l=s([...c,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new pv(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},pA=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new nA(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>ic.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",[ic(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",ic(e.example)),n.append(u)))}}}}}},hA=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new nA(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>ic.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",[ic(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",ic(e.example)),n.append(u)))}}}}}},dA=e=>{if(!Ea(e))return e;const t=[cA({operationIdNormalizer:(e,t,r)=>Bo({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),lA(),uA(),pA(),hA()];return qc(e,t,{toolboxCreator:v$,visitorOptions:{keyMap:m$,nodeTypeGetter:d$}})},mA={name:"openapi-3-2-apidom",match:e=>zo(e),normalize(e){if(!ya(e)&&No(e)&&!e.$$normalized){const r=(t=dA,e=>{const r=_S.refract(e);r.classes.push("result");const s=t(r),n=Ec(s);return sA.cache.set(n,s),Ec(s)})(e);return r.$$normalized=!0,r}var t;return ya(e)?dA(e):e},resolve:async e=>sA(e)};function fA(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 a={spec:e,pathName:n,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const yA=()=>null,vA={mapTagOperations:function({spec:e,cb:t=yA,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return fA(e,(({pathName:o,method:a,operation:c})=>{var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=Bo(c,o,a,{v2OperationIdCompatibilityMode:s}),p=t({spec:e,pathName:o,method:a,operation:c,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:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:t,method:r,parameters:n,operationId:s,...i})}}};const gA=(e,t,r,s,n)=>{if(e===Zc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",Qc.charsToString(t,r,s)])}return Zc.SEM_OK},bA=(e,t,r,s,n)=>{if(e===Zc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",Qc.charsToString(t,r,s)])}return Zc.SEM_OK},xA=(e,t,r,s,n)=>{if(e===Zc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",Qc.charsToString(t,r,s)])}return Zc.SEM_OK},EA=(e,t,r,s,n)=>{if(e===Zc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",Qc.charsToString(t,r,s)])}return Zc.SEM_OK},wA=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'}},jA=e=>{const t=new Wc;t.ast=new Kc,t.ast.callbacks["server-url-template"]=gA,t.ast.callbacks["server-variable"]=bA,t.ast.callbacks["server-variable-name"]=xA,t.ast.callbacks.literals=EA;return{result:t.parse(wA,"server-url-template",e),ast:t.ast}},SA=(e,{strict:t=!1}={})=>{try{const r=jA(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}},OA=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),PA=["literals","server-variable-name"],$A=(e,t,r={})=>{const s={...{encoder:OA},...r},n=jA(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>PA.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};function AA(){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 kA=(e,t,r,s,n)=>(e===Zc.SEM_PRE?n.push(["slash",Qc.charsToString(t,r,s)]):Zc.SEM_POST,Zc.SEM_OK),TA=(e,t,r,s,n)=>{if(e===Zc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",Qc.charsToString(t,r,s)])}return Zc.SEM_OK},FA=(e,t,r,s,n)=>(e===Zc.SEM_PRE?n.push(["path-literal",Qc.charsToString(t,r,s)]):Zc.SEM_POST,Zc.SEM_OK),MA=(e,t,r,s,n)=>(e===Zc.SEM_PRE?n.push(["template-expression",Qc.charsToString(t,r,s)]):Zc.SEM_POST,Zc.SEM_OK),CA=(e,t,r,s,n)=>(e===Zc.SEM_PRE?n.push(["template-expression-param-name",Qc.charsToString(t,r,s)]):Zc.SEM_POST,Zc.SEM_OK),IA=new AA,RA=e=>{const t=new Wc;t.ast=new Kc,t.ast.callbacks["path-template"]=TA,t.ast.callbacks.slash=kA,t.ast.callbacks["path-literal"]=FA,t.ast.callbacks["template-expression"]=MA,t.ast.callbacks["template-expression-param-name"]=CA;return{result:t.parse(IA,"path-template",e),ast:t.ast}};const DA=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),_A=["slash","path-literal","template-expression-param-name"],NA=(e,t,r={})=>{const s={...{encoder:DA},...r},n=RA(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>_A.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 AA,new Wc;const LA={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=NA(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 BA(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}function qA(){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 qA;const UA=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)},VA=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),JA=e=>VA(e)?e.slice(1,-1):e,HA=e=>`"${e}"`,zA=e=>e,GA=new Wc,WA=new qA,KA=(e,{strict:t=!0,quoted:r=null}={})=>{try{const s=t?"cookie-value":"lenient-cookie-value",n=GA.parse(WA,s,e);return"boolean"==typeof r?n.success&&r===VA(e):n.success}catch{return!1}},YA=e=>{const t=(new TextEncoder).encode(e).reduce(((e,t)=>e+String.fromCharCode(t)),"");return btoa(t)},XA=(e,t=YA)=>{const r=String(e);if(KA(r))return r;const s=VA(r),n=t(s?JA(r):r);return s?HA(n):n},QA=e=>YA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),ZA=e=>XA(e,QA),ek=new Wc,tk=new qA,rk=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return ek.parse(tk,r,e).success}catch{return!1}},sk=e=>{if(!rk(e))throw new TypeError(`Invalid cookie name: ${e}`)},nk=e=>{if(!KA(e))throw new TypeError(`Invalid cookie value: ${e}`)},ik={encoders:{name:zA,value:ZA},validators:{name:sk,value:nk}},ok=(e,t,r={})=>{const s={...ik,...r,encoders:{...ik.encoders,...r.encoders},validators:{...ik.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},ak=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map((([e,r])=>ok(e,r,t))).join("; ");const ck=new Wc,lk=new qA,uk=e=>{const t=String(e);if(KA(t))return t;const r=VA(t),s=r?JA(t):t;let n="";for(const e of s)n+=ck.parse(lk,"cookie-octet",e).success?e:UA(e);return r?HA(n):n};new Wc,new qA;const pk=e=>{if(!rk(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const hk=e=>uk(e).replace(/[=&]/gu,(e=>"="===e?"%3D":"%26")),dk=(e,t={})=>ak(e,Sc({encoders:{name:zA,value:hk},validators:{name:pk,value:nk}},t));function mk({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:a}=r;if(void 0===t)return;const c=e.url.replace(s,"");let l;if(a){const e=Object.keys(a)[0];l=NA(c,{[n]:t},{encoder:t=>F(BA(t,e))})}else l=NA(c,{[n]:t},{encoder:e=>M({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function fk({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=BA(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}}else 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 yk=["accept","authorization","content-type"];function vk({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(yk.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=BA(r,s)}else 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 gk({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=BA(r,Object.keys(t.content)[0]);e.headers.Cookie=dk({[s]:n})}else 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=dk({[s]:i})}}const bk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:xk}=bk,Ek=xk;function wk(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={}}=t,o=r.security||s.security||[],a=i&&!!Object.keys(i).length,c=s?.components?.securitySchemes||{};if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!a||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e],r=c[e];if(!t)return;const 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=Ek(`${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 c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(s||o){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&No(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof s){const e=c.content[a]?.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=c.content[a]?.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 jk(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,c=i&&!!Object.keys(i).length,l=s.securityDefinitions;if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!c||!a||Array.isArray(r.security)&&!r.security.length)return e;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=l[e],{type:a}=o,c=o["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===a)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=Ek(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===a&&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||a)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 Sk(e,t){return`${t.toLowerCase()}-${e}`}function Ok(e,t){return e&&e.paths?function(e,t){return fA(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[Bo(s,e,r),Sk(e,r),n].some((e=>e&&e===t))})):null}const Pk=e=>Array.isArray(e)?e:[],$k=(e,{recurse:t=!0,depth:r=1}={})=>{if(No(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>g)&&t){const s=Array.isArray(e.oneOf)?e.oneOf.find((e=>$k(e,{recurse:t,depth:r+1}))):void 0;if(s)return s;const n=Array.isArray(e.anyOf)?e.anyOf.find((e=>$k(e,{recurse:t,depth:r+1}))):void 0;if(n)return n}}},Ak=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(No(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},kk=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 Tk extends ns{}const Fk={buildRequest:Mk};function Mk(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:l,serverVariables:u,http:p,signal:h,serverVariableEncoder:d}=e;let{parameters:f,parameterBuilders:y,baseURL:v}=e;const g=Go(t);y||(y=g?m:LA);let b={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(b.signal=h),i&&(b.requestInterceptor=i),o&&(b.responseInterceptor=o),c&&(b.userFetch=c);const x=Ok(t,r);if(!x)throw new Tk(`Operation ${r} not found`);const{operation:E={},method:w,pathName:j}=x;if(v=v??Ik({spec:t,scheme:n,contextUrl:a,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(Pk(E.parameters)).concat(Pk(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&&(Ya("type",e.schema)&&"string"==typeof e.schema.type&&$k(e.schema,{recurse:!1})?s=Ak({value:s,silentFail:!1}):(Ya("type",e.schema)&&Array.isArray(e.schema.type)&&$k(e.schema,{recurse:!1})||!Ya("type",e.schema)&&$k(e.schema,{recurse:!0}))&&(s=Ak({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?wk(P,b):jk(P,b),b.cookies&&Object.keys(b.cookies).length>0){const e=dk(b.cookies);pp(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,L(b)}const Ck=e=>e?e.replace(/\W/g,""):null;function Ik(e){return Go(e.spec)?function({spec:e,pathName:t,method:r,server:s,contextUrl:n,serverVariables:i={},serverVariableEncoder:o}){let a,c=[],l="";const u=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,p=e?.paths?.[t]?.servers,h=e?.servers;c=Rk(u)?u:Rk(p)?p:Rk(h)?h:[v],s&&(a=c.find((e=>e.url===s)),a&&(l=s));l||([a]=c,l=a.url);if(SA(l,{strict:!0})){const e=Object.entries({...a.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});l=$A(l,{...e,...i},{encoder:"function"==typeof o?o:vw})}return function(e="",t=""){const r=kk(e&&t?mi(t,e):e),s=kk(t),n=Ck(r.protocol)||Ck(s.protocol),i=r.host||s.host,o=r.pathname;let a;a=n&&i?`${n}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(l,n)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=kk(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||Ck(s.protocol)||"http",o=e.host||s.host||"",a=e.basePath||"";let c;c=i&&o?`${i}://${o+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}const Rk=e=>Array.isArray(e)&&e.length>0;const{q$:Dk}=n,_k=Dk;function Nk(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof Nk))return new Nk(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,Nk.makeApisTagOperation(this)),this)));return r.client=this,r}Nk.http=tr,Nk.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=L(s),s=t(s),r(e(s)))}.bind(null,Nk.http),Nk.resolveStrategies={"openapi-3-2-apidom":mA,"openapi-3-1-apidom":gS,"openapi-3-0":Ko,"openapi-2-0":Wo,generic:Uo},Nk.resolve=Yo({strategies:[Nk.resolveStrategies["openapi-3-2-apidom"],Nk.resolveStrategies["openapi-3-1-apidom"],Nk.resolveStrategies["openapi-3-0"],Nk.resolveStrategies["openapi-2-0"],Nk.resolveStrategies.generic]}),Nk.resolveSubtree=Qo({strategies:[Nk.resolveStrategies["openapi-3-2-apidom"],Nk.resolveStrategies["openapi-3-1-apidom"],Nk.resolveStrategies["openapi-3-0"],Nk.resolveStrategies["openapi-2-0"],Nk.resolveStrategies.generic]}),Nk.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...c}){const l=e||t||tr;n&&i&&!s&&(s=Sk(n,i));const u=Fk.buildRequest({spec:r,operationId:s,parameters:o,securities:a,http:l,...c});return u.body&&(No(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},Nk.serializeRes=er,Nk.serializeHeaders=Zt,Nk.clearCache=function(){So.refs.clearCache()},Nk.makeApisTagOperation=function(e={}){const t=vA.makeExecute(e);return{apis:vA.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},Nk.buildRequest=Mk,Nk.helpers={opId:Bo},Nk.getBaseUrl=Ik,Nk.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:Gw}},parse:{parsers:{JsonParser:Kw,YamlParser:Yw,OpenApiJson3_1Parser:Xw,OpenApiYaml3_1Parser:Qw,OpenApiJson3_2Parser:w$,OpenApiYaml3_2Parser:j$}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Zj,OpenApi3_2SwaggerClientDereferenceStrategy:eA}}},Nk.prototype={http:tr,execute(e){return this.applyDefaults(),Nk.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 Nk.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)))}},Nk.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Vo(e)&&_k(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(Go(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[v])}};const{helpers:Lk}=Nk,Bk=Nk})(),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 $=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:()=>dA});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Ge,_areEquals:()=>st,applyOperation:()=>Qe,applyPatch:()=>Ze,applyReducer:()=>et,deepClone:()=>We,getValueByPointer:()=>Xe,validate:()=>rt,validator:()=>tt});var t={};r.r(t),r.d(t,{compare:()=>pt,generate:()=>lt,observe:()=>at,unobserve:()=>ct});var n={};r.r(n),r.d(n,{bJ:()=>Bs,uQ:()=>Is,Zd:()=>Ns,q$:()=>Ds,hd:()=>qs,aj:()=>Us,z9:()=>Ls,zj:()=>Vs});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>so,includesClasses:()=>io,includesSymbols:()=>no,isAnnotationElement:()=>Zi,isArrayElement:()=>Ki,isBooleanElement:()=>Gi,isCommentElement:()=>eo,isElement:()=>Vi,isLinkElement:()=>Xi,isMemberElement:()=>Yi,isNullElement:()=>zi,isNumberElement:()=>Hi,isObjectElement:()=>Wi,isParseResultElement:()=>to,isPrimitiveElement:()=>ro,isRefElement:()=>Qi,isStringElement:()=>Ji});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Hl,isJSONSchemaElement:()=>Jl,isLinkDescriptionElement:()=>Gl,isMediaElement:()=>zl});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>Sh,isCallbackElement:()=>nh,isComponentsElement:()=>ih,isContactElement:()=>oh,isDiscriminatorElement:()=>Ch,isExampleElement:()=>ch,isExternalDocumentationElement:()=>ah,isHeaderElement:()=>lh,isInfoElement:()=>uh,isLicenseElement:()=>ph,isLinkElement:()=>hh,isMediaTypeElement:()=>kh,isOpenApi3_0Element:()=>mh,isOpenapiElement:()=>dh,isOperationElement:()=>fh,isParameterElement:()=>yh,isPathItemElement:()=>vh,isPathsElement:()=>gh,isReferenceElement:()=>bh,isRequestBodyElement:()=>xh,isResponseElement:()=>Eh,isResponsesElement:()=>wh,isSchemaElement:()=>jh,isSecurityRequirementElement:()=>Oh,isSecuritySchemeElement:()=>Ph,isServerElement:()=>$h,isServerVariableElement:()=>Ah,isServersElement:()=>Th});var a={};r.r(a),r.d(a,{isJSONReferenceElement:()=>Hl,isJSONSchemaElement:()=>uv,isLinkDescriptionElement:()=>pv,isMediaElement:()=>zl});var l={};r.r(l),r.d(l,{isJSONReferenceElement:()=>Hl,isJSONSchemaElement:()=>wv,isLinkDescriptionElement:()=>jv});var u={};r.r(u),r.d(u,{isJSONSchemaElement:()=>Zv,isLinkDescriptionElement:()=>eg});var p={};r.r(p),r.d(p,{isJSONSchemaElement:()=>dg,isLinkDescriptionElement:()=>mg});var h={};r.r(h),r.d(h,{isBooleanJsonSchemaElement:()=>Ob,isCallbackElement:()=>rb,isComponentsElement:()=>sb,isContactElement:()=>nb,isExampleElement:()=>ib,isExternalDocumentationElement:()=>ob,isHeaderElement:()=>cb,isInfoElement:()=>ab,isJsonSchemaDialectElement:()=>lb,isLicenseElement:()=>ub,isLinkElement:()=>pb,isMediaTypeElement:()=>Tb,isOpenApi3_1Element:()=>db,isOpenapiElement:()=>hb,isOperationElement:()=>mb,isParameterElement:()=>fb,isPathItemElement:()=>yb,isPathItemElementExternal:()=>vb,isPathsElement:()=>gb,isReferenceElement:()=>bb,isReferenceElementExternal:()=>xb,isRequestBodyElement:()=>Eb,isResponseElement:()=>wb,isResponsesElement:()=>jb,isSchemaElement:()=>Sb,isSecurityRequirementElement:()=>Pb,isSecuritySchemeElement:()=>$b,isServerElement:()=>Ab,isServerVariableElement:()=>kb});var d={};r.r(d),r.d(d,{isBooleanJsonSchemaElement:()=>$S,isCallbackElement:()=>sS,isComponentsElement:()=>nS,isContactElement:()=>iS,isDiscriminatorElement:()=>oS,isExampleElement:()=>cS,isExternalDocumentationElement:()=>aS,isHeaderElement:()=>lS,isInfoElement:()=>uS,isJsonSchemaDialectElement:()=>pS,isLicenseElement:()=>hS,isLinkElement:()=>dS,isMediaTypeElement:()=>FS,isOpenApi3_2Element:()=>fS,isOpenapiElement:()=>mS,isOperationElement:()=>yS,isParameterElement:()=>vS,isPathItemElement:()=>gS,isPathItemElementExternal:()=>bS,isPathsElement:()=>xS,isReferenceElement:()=>ES,isReferenceElementExternal:()=>wS,isRequestBodyElement:()=>jS,isResponseElement:()=>SS,isResponsesElement:()=>OS,isSchemaElement:()=>PS,isSecurityRequirementElement:()=>AS,isSecuritySchemeElement:()=>kS,isServerElement:()=>TS,isServerVariableElement:()=>CS});var m={};r.r(m),r.d(m,{cookie:()=>H$,header:()=>J$,path:()=>q$,query:()=>U$});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),R=Object.create,D=Object.defineProperty,_=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,L=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,q=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),U=(e,t,r)=>(r=null!=e?R(L(e)):{},((e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var n,i=N(t),o=0,c=i.length;o<c;o++)n=i[o],B.call(e,n)||n===r||D(e,n,{get:(e=>t[e]).bind(null,n),enumerable:!(s=_(t,n))||s.enumerable});return e})(!t&&e&&e.__esModule?r:D(r,"default",{value:e,enumerable:!0}),e)),V=q((e,t)=>{function r(e){return null==e}t.exports.isNothing=r,t.exports.isObject=function(e){return"object"==typeof e&&null!==e},t.exports.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},t.exports.repeat=function(e,t){let r="";for(let s=0;s<t;s+=1)r+=e;return r},t.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},t.exports.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}}),J=q((e,t)=>{function r(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 s(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s.prototype.toString=function(e){return this.name+": "+r(this,e)},t.exports=s}),H=q((e,t)=>{var r=V();function s(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 n(e,t){return r.repeat(" ",t-e.length)+e}t.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);const i=/\r?\n|\r|\0/g,o=[0],c=[];let a,l=-1;for(;a=i.exec(e.buffer);)c.push(a.index),o.push(a.index+a[0].length),e.position<=a.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u="";const p=Math.min(e.line+t.linesAfter,c.length).toString().length,h=t.maxLength-(t.indent+p+3);for(let i=1;i<=t.linesBefore&&!(l-i<0);i++){const a=s(e.buffer,o[l-i],c[l-i],e.position-(o[l]-o[l-i]),h);u=r.repeat(" ",t.indent)+n((e.line-i+1).toString(),p)+" | "+a.str+"\n"+u}const d=s(e.buffer,o[l],c[l],e.position,h);u+=r.repeat(" ",t.indent)+n((e.line+1).toString(),p)+" | "+d.str+"\n",u+=r.repeat("-",t.indent+p+3+d.pos)+"^\n";for(let i=1;i<=t.linesAfter&&!(l+i>=c.length);i++){const a=s(e.buffer,o[l+i],c[l+i],e.position-(o[l]-o[l+i]),h);u+=r.repeat(" ",t.indent)+n((e.line+i+1).toString(),p)+" | "+a.str+"\n"}return u.replace(/\n$/,"")}}),z=q((e,t)=>{var r=J(),s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];t.exports=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===s.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){const t={};return null!==e&&Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})}),t}(t.styleAliases||null),-1===n.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}),G=q((e,t)=>{var r=J(),s=z();function n(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 i(e){return this.extend(e)}i.prototype.extend=function(e){let t=[],o=[];if(e instanceof s)o.push(e);else if(Array.isArray(e))o=o.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(o=o.concat(e.explicit))}t.forEach(function(e){if(!(e instanceof s))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(e){if(!(e instanceof s))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const c=Object.create(i.prototype);return c.implicit=(this.implicit||[]).concat(t),c.explicit=(this.explicit||[]).concat(o),c.compiledImplicit=n(c,"implicit"),c.compiledExplicit=n(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},t.exports=i}),W=q((e,t)=>{t.exports=new(z())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})}),K=q((e,t)=>{t.exports=new(z())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})}),Y=q((e,t)=>{t.exports=new(z())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})}),X=q((e,t)=>{t.exports=new(G())({explicit:[W(),K(),Y()]})}),Q=q((e,t)=>{var r=z();t.exports=new r("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=q((e,t)=>{var r=z();t.exports=new r("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"})}),ee=q((e,t)=>{var r=V(),s=z();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function i(e){return e>=48&&e<=55}function o(e){return e>=48&&e<=57}function c(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)}t.exports=new s("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;const t=e.length;let r=0,s=!1;if(!t)return!1;let a=e[r];if("-"!==a&&"+"!==a||(a=e[++r]),"0"===a){if(r+1===t)return!0;if(a=e[++r],"b"===a){for(r++;r<t;r++){if(a=e[r],"0"!==a&&"1"!==a)return!1;s=!0}return s&&Number.isFinite(c(e))}if("x"===a){for(r++;r<t;r++){if(!n(e.charCodeAt(r)))return!1;s=!0}return s&&Number.isFinite(c(e))}if("o"===a){for(r++;r<t;r++){if(!i(e.charCodeAt(r)))return!1;s=!0}return s&&Number.isFinite(c(e))}}for(;r<t;r++){if(!o(e.charCodeAt(r)))return!1;s=!0}return!!s&&Number.isFinite(c(e))},construct:function(e){return c(e)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!r.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}),te=q((e,t)=>{var r=V(),s=z(),n=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var o=/^[-+]?[0-9]+e/;t.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&(!!n.test(e)&&(!!Number.isFinite(parseFloat(e,10))||i.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(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";const s=e.toString(10);return o.test(s)?s.replace("e",".e"):s},defaultStyle:"lowercase"})}),re=q((e,t)=>{t.exports=X().extend({implicit:[Q(),Z(),ee(),te()]})}),se=q((e,t)=>{t.exports=re()}),ne=q((e,t)=>{var r=z(),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=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]))?))?$");t.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==s.exec(e)||null!==n.exec(e))},construct:function(e){let t=0,r=null,i=s.exec(e);if(null===i&&(i=n.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(t=i[7].slice(0,3);t.length<3;)t+="0";t=+t}if(i[9]){r=6e4*(60*+i[10]+ +(i[11]||0)),"-"===i[9]&&(r=-r)}const h=new Date(Date.UTC(o,c,a,l,u,p,t));return r&&h.setTime(h.getTime()-r),h},instanceOf:Date,represent:function(e){return e.toISOString()}})}),ie=q((e,t)=>{var r=z();t.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}),oe=q((e,t)=>{var r=z(),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;let t=0;const r=e.length,n=s;for(let s=0;s<r;s++){const r=n.indexOf(e.charAt(s));if(!(r>64)){if(r<0)return!1;t+=6}}return t%8==0},construct:function(e){const t=e.replace(/[\r\n=]/g,""),r=t.length,n=s;let i=0;const o=[];for(let e=0;e<r;e++)e%4==0&&e&&(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)),i=i<<6|n.indexOf(t.charAt(e));const c=r%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 t="",r=0;const n=e.length,i=s;for(let s=0;s<n;s++)s%3==0&&s&&(t+=i[r>>18&63],t+=i[r>>12&63],t+=i[r>>6&63],t+=i[63&r]),r=(r<<8)+e[s];const o=n%3;return 0===o?(t+=i[r>>18&63],t+=i[r>>12&63],t+=i[r>>6&63],t+=i[63&r]):2===o?(t+=i[r>>10&63],t+=i[r>>4&63],t+=i[r<<2&63],t+=i[64]):1===o&&(t+=i[r>>2&63],t+=i[r<<4&63],t+=i[64],t+=i[64]),t}})}),ce=q((e,t)=>{var r=z(),s=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;const t=[],r=e;for(let e=0,i=r.length;e<i;e+=1){const i=r[e];let o,c=!1;if("[object Object]"!==n.call(i))return!1;for(o in i)if(s.call(i,o)){if(c)return!1;c=!0}if(!c)return!1;if(-1!==t.indexOf(o))return!1;t.push(o)}return!0},construct:function(e){return null!==e?e:[]}})}),ae=q((e,t)=>{var r=z(),s=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;const t=e,r=new Array(t.length);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if("[object Object]"!==s.call(n))return!1;const i=Object.keys(n);if(1!==i.length)return!1;r[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}})}),le=q((e,t)=>{var r=z(),s=Object.prototype.hasOwnProperty;t.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;const t=e;for(const e in t)if(s.call(t,e)&&null!==t[e])return!1;return!0},construct:function(e){return null!==e?e:{}}})}),ue=q((e,t)=>{t.exports=se().extend({implicit:[ne(),ie()],explicit:[oe(),ce(),ae(),le()]})}),pe=q((e,t)=>{var r=V(),s=J(),n=H(),i=ue(),o=Object.prototype.hasOwnProperty,c=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/[\x85\u2028\u2029]/,l=/[,\[\]{}]/,u=/^(?:!|!!|![0-9A-Za-z-]+!)$/,p=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function h(e){return Object.prototype.toString.call(e)}function d(e){return 10===e||13===e}function m(e){return 9===e||32===e}function f(e){return 9===e||32===e||10===e||13===e}function y(e){return 44===e||91===e||93===e||123===e||125===e}function v(e){if(e>=48&&e<=57)return e-48;const t=32|e;return t>=97&&t<=102?t-97+10:-1}function g(e){return 120===e?2:117===e?4:85===e?8:0}function b(e){return e>=48&&e<=57?e-48:-1}function x(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 E(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function w(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var j=new Array(256),S=new Array(256);for(let e=0;e<256;e++)j[e]=x(e)?1:0,S[e]=x(e);function O(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||i,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.maxMergeSeqLength="number"==typeof t.maxMergeSeqLength?t.maxMergeSeqLength:20,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.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function P(e,t){const r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=n(r),new s(t,r)}function $(e,t){throw P(e,t)}function A(e,t){e.onWarning&&e.onWarning.call(null,P(e,t))}function k(e,t,r){const s=e.anchorMapTransactions;if(0!==s.length){const r=s[s.length-1];o.call(r,t)||(r[t]={existed:o.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=r}function T(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 C(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}var F={YAML:function(e,t,r){null!==e.version&&$(e,"duplication of %YAML directive"),1!==r.length&&$(e,"YAML directive accepts exactly one argument");const s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===s&&$(e,"ill-formed argument of the YAML directive");const n=parseInt(s[1],10),i=parseInt(s[2],10);1!==n&&$(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&A(e,"unsupported YAML version of the document")},TAG:function(e,t,r){let s;2!==r.length&&$(e,"TAG directive accepts exactly two arguments");const n=r[0];s=r[1],u.test(n)||$(e,"ill-formed tag handle (first argument) of the TAG directive"),o.call(e.tagMap,n)&&$(e,'there is a previously declared suffix for "'+n+'" tag handle'),p.test(s)||$(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){$(e,"tag prefix is malformed: "+s)}e.tagMap[n]=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||$(e,"expected valid JSON character")}else c.test(n)&&$(e,"the stream contains non-printable characters");e.result+=n}}function I(e,t,s,n){r.isObject(s)||$(e,"cannot merge mappings; the provided source object is unacceptable");const i=Object.keys(s);for(let e=0,r=i.length;e<r;e+=1){const r=i[e];o.call(t,r)||(w(t,r,s[r]),n[r]=!0)}}function R(e,t,r,s,n,i,c,a,l){if(Array.isArray(n))for(let t=0,r=(n=Array.prototype.slice.call(n)).length;t<r;t+=1)Array.isArray(n[t])&&$(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===h(n[t])&&(n[t]="[object Object]");if("object"==typeof n&&"[object Object]"===h(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i)){i.length>e.maxMergeSeqLength&&$(e,"merge sequence length exceeded maxMergeSeqLength ("+e.maxMergeSeqLength+")");const s=new Set;for(let n=0,o=i.length;n<o;n+=1){const o=i[n];s.has(o)||(s.add(o),I(e,t,o,r))}}else I(e,t,i,r);else e.json||o.call(r,n)||!o.call(t,n)||(e.line=c||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,$(e,"duplicated mapping key")),w(t,n,i),delete r[n];return t}function D(e){const t=e.input.charCodeAt(e.position);10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):$(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(;m(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(!d(n))break;for(D(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&&A(e,"deficient indentation"),s}function N(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&&!f(r)))}function L(e,t){1===t?e.result+=" ":t>1&&(e.result+=r.repeat("\n",t-1))}function B(e,t){const r=e.tag,s=e.anchor,n=[];let i=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&k(e,e.anchor,n);let o=e.input.charCodeAt(e.position);for(;0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,$(e,"tab characters must not be used in indentation")),45===o)&&f(e.input.charCodeAt(e.position+1));){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(W(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)$(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,h=null,d=null,y=!1,v=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&k(e,e.anchor,l);let g=e.input.charCodeAt(e.position);for(;0!==g;){y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,$(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||!f(b)){if(n=e.line,i=e.lineStart,o=e.position,!W(e,r,2,!1,!0))break;if(e.line===x){for(g=e.input.charCodeAt(e.position);m(g);)g=e.input.charCodeAt(++e.position);if(58===g)g=e.input.charCodeAt(++e.position),f(g)||$(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(R(e,l,u,p,h,null,n,i,o),p=h=d=null),v=!0,y=!1,s=!1,p=e.tag,h=e.result;else{if(!v)return e.tag=c,e.anchor=a,!0;$(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=c,e.anchor=a,!0;$(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===g?(y&&(R(e,l,u,p,h,null,n,i,o),p=h=d=null),v=!0,y=!0,s=!0):y?(y=!1,s=!0):$(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),W(e,t,4,!0,s)&&(y?h=e.result:d=e.result),y||(R(e,l,u,p,h,d,n,i,o),p=h=d=null),_(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===x||e.lineIndent>t)&&0!==g)$(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&R(e,l,u,p,h,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,n=!1,i=e.input.charCodeAt(e.position);if(33!==i)return!1;null!==e.tag&&$(e,"duplication of a tag property"),i=e.input.charCodeAt(++e.position),60===i?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(n=!0,t="!!",i=e.input.charCodeAt(++e.position)):t="!";let c=e.position;if(s){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(c,e.position),i=e.input.charCodeAt(++e.position)):$(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!f(i);)33===i&&(n?$(e,"tag suffix cannot contain exclamation marks"):(t=e.input.slice(c-1,e.position+1),u.test(t)||$(e,"named tag handle cannot contain such characters"),n=!0,c=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(c,e.position),l.test(r)&&$(e,"tag suffix cannot contain flow indicator characters")}r&&!p.test(r)&&$(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){$(e,"tag name is malformed: "+r)}return s?e.tag=r:o.call(e.tagMap,t)?e.tag=e.tagMap[t]+r:"!"===t?e.tag="!"+r:"!!"===t?e.tag="tag:yaml.org,2002:"+r:$(e,'undeclared tag handle "'+t+'"'),!0}function z(e){let t=e.input.charCodeAt(e.position);if(38!==t)return!1;null!==e.anchor&&$(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position);const r=e.position;for(;0!==t&&!f(t)&&!y(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&$(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function G(e,t,r,s){const n=T(e);return function(e){e.anchorMapTransactions.push(Object.create(null))}(e),C(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],n=Object.keys(t);for(let e=0,r=n.length;e<r;e+=1){const r=n[e];o.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),C(e,n),!1)}function W(e,t,s,n,i){let c,a,l,u,p,h=1,x=!1,w=!1,O=null;e.depth>=e.maxDepth&&$(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;const P=c=a=4===s||3===s;if(n&&_(e,!0,-1)&&(x=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;;){const r=e.input.charCodeAt(e.position),s=T(e);if(x&&(33===r&&null!==e.tag||38===r&&null!==e.anchor))break;if(!U(e)&&!z(e))break;null===O&&(O=s),_(e,!0,-1)?(x=!0,a=P,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):a=!1}if(a&&(a=x||i),1===h||4===s)if(u=1===s||2===s?t:t+1,p=e.position-e.lineStart,1===h)if(a&&(B(e,p)||q(e,p,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 d=Object.create(null);let m,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&&k(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&&$(e,"expected the node content, but found ','"):$(e,"missed comma between flow collection entries"),y=m=v=null,u=p=!1,63===g&&f(e.input.charCodeAt(e.position+1))&&(u=p=!0,e.position++,_(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,W(e,t,1,!1,!0),y=e.tag,m=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),W(e,t,1,!1,!0),v=e.result),h?R(e,c,d,y,m,v,r,s,n):u?c.push(R(e,null,d,y,m,v,r,s,n)):c.push(m),_(e,!0,t),g=e.input.charCodeAt(e.position),44===g?(i=!0,g=e.input.charCodeAt(++e.position)):i=!1}$(e,"unexpected end of the stream within a flow collection")}(e,u))w=!0;else{const t=e.input.charCodeAt(e.position);null!==O&&P&&!a&&124!==t&&62!==t&&G(e,O,O.position-O.lineStart,u)||c&&function(e,t){let s,n,i=1,o=!1,c=!1,a=t,l=0,u=!1,p=e.input.charCodeAt(e.position);if(124===p)s=!1;else{if(62!==p)return!1;s=!0}for(e.kind="scalar",e.result="";0!==p;)if(p=e.input.charCodeAt(++e.position),43===p||45===p)1===i?i=43===p?3:2:$(e,"repeat of a chomping mode identifier");else{if(!((n=b(p))>=0))break;0===n?$(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?$(e,"repeat of an indentation width identifier"):(a=t+n-1,c=!0)}if(m(p)){do{p=e.input.charCodeAt(++e.position)}while(m(p));if(35===p)do{p=e.input.charCodeAt(++e.position)}while(!d(p)&&0!==p)}for(;0!==p;){for(D(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!c||e.lineIndent<a)&&32===p;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>a&&(a=e.lineIndent),d(p)){l++;continue}if(c||0!==a||$(e,"missing indentation for block scalar"),e.lineIndent<a){3===i?e.result+=r.repeat("\n",o?1+l:l):1===i&&o&&(e.result+="\n");break}s?m(p)?(u=!0,e.result+=r.repeat("\n",o?1+l:l)):u?(u=!1,e.result+=r.repeat("\n",l+1)):0===l?o&&(e.result+=" "):e.result+=r.repeat("\n",l):e.result+=r.repeat("\n",o?1+l:l),o=!0,c=!0,l=0;const t=e.position;for(;!d(p)&&0!==p;)p=e.input.charCodeAt(++e.position);M(e,t,e.position,!1)}return!0}(e,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 d(n)?(M(e,r,s,!0),L(e,_(e,!1,t)),r=s=e.position):e.position===e.lineStart&&N(e)?$(e,"unexpected end of the document within a single quoted scalar"):(e.position++,m(n)||(s=e.position));$(e,"unexpected end of the stream within a single quoted scalar")}(e,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),d(i))_(e,!1,t);else if(i<256&&j[i])e.result+=S[i],e.position++;else if((n=g(i))>0){let t=n,r=0;for(;t>0;t--)i=e.input.charCodeAt(++e.position),(n=v(i))>=0?r=(r<<4)+n:$(e,"expected hexadecimal character");e.result+=E(r),e.position++}else $(e,"unknown escape sequence");r=s=e.position}else d(i)?(M(e,r,s,!0),L(e,_(e,!1,t)),r=s=e.position):e.position===e.lineStart&&N(e)?$(e,"unexpected end of the document within a double quoted scalar"):(e.position++,m(i)||(s=e.position))}$(e,"unexpected end of the stream within a double quoted scalar")}(e,u)?w=!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&&!f(t)&&!y(t);)t=e.input.charCodeAt(++e.position);e.position===r&&$(e,"name of an alias node must contain at least one character");const s=e.input.slice(r,e.position);return o.call(e.anchorMap,s)||$(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],_(e,!0,-1),!0}(e)?function(e,t,r){let s,n,i,o,c,a;const l=e.kind,u=e.result;let p=e.input.charCodeAt(e.position);if(f(p)||y(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if(63===p||45===p){const t=e.input.charCodeAt(e.position+1);if(f(t)||r&&y(t))return!1}for(e.kind="scalar",e.result="",s=n=e.position,i=!1;0!==p;){if(58===p){const t=e.input.charCodeAt(e.position+1);if(f(t)||r&&y(t))break}else if(35===p){if(f(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&N(e)||r&&y(p))break;if(d(p)){if(o=e.line,c=e.lineStart,a=e.lineIndent,_(e,!1,-1),e.lineIndent>=t){i=!0,p=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),L(e,e.line-o),s=n=e.position,i=!1),m(p)||(n=e.position+1),p=e.input.charCodeAt(++e.position)}return M(e,s,n,!1),!!e.result||(e.kind=l,e.result=u,!1)}(e,u,1===s)&&(w=!0,null===e.tag&&(e.tag="?")):(w=!0,null===e.tag&&null===e.anchor||$(e,"alias node should not have any properties")),null!==e.anchor&&k(e,e.anchor,e.result)}else 0===h&&(w=a&&B(e,p));if(null===e.tag)null!==e.anchor&&k(e,e.anchor,e.result);else if("?"===e.tag){null!==e.result&&"scalar"!==e.kind&&$(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let t=0,r=e.implicitTypes.length;t<r;t+=1)if(l=e.implicitTypes[t],l.resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&k(e,e.anchor,e.result);break}}else if("!"!==e.tag){if(o.call(e.typeMap[e.kind||"fallback"],e.tag))l=e.typeMap[e.kind||"fallback"][e.tag];else{l=null;const t=e.typeMap.multi[e.kind||"fallback"];for(let r=0,s=t.length;r<s;r+=1)if(e.tag.slice(0,t[r].tag.length)===t[r].tag){l=t[r];break}}l||$(e,"unknown tag !<"+e.tag+">"),null!==e.result&&l.kind!==e.kind&&$(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result,e.tag)?(e.result=l.construct(e.result,e.tag),null!==e.anchor&&k(e,e.anchor,e.result)):$(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),e.depth-=1,null!==e.tag||null!==e.anchor||w}function K(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&&!f(r);)r=e.input.charCodeAt(++e.position);const n=e.input.slice(t,e.position),i=[];for(n.length<1&&$(e,"directive name must not be less than one character in length");0!==r;){for(;m(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!d(r));break}if(d(r))break;for(t=e.position;0!==r&&!f(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&D(e),o.call(F,n)?F[n](e,n,i):A(e,'unknown document directive "'+n+'"')}_(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&&$(e,"directives end mark is expected"),W(e,e.lineIndent-1,4,!1,!0),_(e,!0,-1),e.checkLineBreaks&&a.test(e.input.slice(t,e.position))&&A(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&N(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,_(e,!0,-1)):e.position<e.length-1&&$(e,"end of the stream or a document separator is expected")}function Y(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 O(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,$(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;)K(r);return r.documents}t.exports.loadAll=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);const s=Y(e,r);if("function"!=typeof t)return s;for(let e=0,r=s.length;e<r;e+=1)t(s[e])},t.exports.load=function(e,t){const r=Y(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new s("expected a single document in the stream, but found more")}}}),he=q((e,t)=>{var r=V(),s=J(),n=ue(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,c=65279,a={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"},l=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],u=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function p(e){let t,n;const i=e.toString(16).toUpperCase();if(e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else{if(!(e<=4294967295))throw new s("code point within a string may not be greater than 0xFFFFFFFF");t="U",n=8}return"\\"+t+r.repeat("0",n-i.length)+i}function h(e){this.schema=e.schema||n,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){if(null===t)return{};const r={},s=Object.keys(t);for(let n=0,i=s.length;n<i;n+=1){let i=s[n],c=String(t[i]);"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2));const a=e.compiledTypeMap.fallback[i];a&&o.call(a.styleAliases,c)&&(c=a.styleAliases[c]),r[i]=c}return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function d(e,t){const s=r.repeat(" ",t);let n=0,i="";const o=e.length;for(;n<o;){let t;const r=e.indexOf("\n",n);-1===r?(t=e.slice(n),n=o):(t=e.slice(n,r+1),n=r+1),t.length&&"\n"!==t&&(i+=s),i+=t}return i}function m(e,t){return"\n"+r.repeat(" ",e.indent*t)}function f(e){return 32===e||9===e}function y(e){return e>=32&&e<=126||e>=161&&e<=55295&&8232!==e&&8233!==e||e>=57344&&e<=65533&&e!==c||e>=65536&&e<=1114111}function v(e){return y(e)&&e!==c&&13!==e&&10!==e}function g(e,t,r){const s=v(e),n=s&&!f(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||v(t)&&!f(t)&&35===e||58===t&&n}function b(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 x(e){return/^\n* /.test(e)}function E(e,t,r,s,n,i,o,a){let l,u=0,p=null,h=!1,d=!1;const m=-1!==s;let v=-1,E=y(w=b(e,0))&&w!==c&&!f(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!f(e)&&58!==e}(b(e,e.length-1));var w;if(t||o)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=b(e,l),!y(u))return 5;E=E&&g(u,p,a),p=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=b(e,l),10===u)h=!0,m&&(d=d||l-v-1>s&&" "!==e[v+1],v=l);else if(!y(u))return 5;E=E&&g(u,p,a),p=u}d=d||m&&l-v-1>s&&" "!==e[v+1]}return h||d?r>9&&x(e)?5:o?2===i?5:2:d?4:3:!E||o||n(e)?2===i?5:2:1}function w(e,t,r,n,i){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==l.indexOf(t)||u.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";const o=e.indent*Math.max(1,r),c=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),h=n||e.flowLevel>-1&&r>=e.flowLevel;switch(E(t,h,e.indent,c,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 t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+j(t,e.indent)+S(d(t,o));case 4:return">"+j(t,e.indent)+S(d(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,O(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")+O(r,t),o=s}return i}(t,c),o));case 5:return'"'+function(e){let t="",r=0;for(let s=0;s<e.length;r>=65536?s+=2:s++){r=b(e,s);const n=a[r];!n&&y(r)?(t+=e[s],r>=65536&&(t+=e[s+1])):t+=n||p(r)}return t}(t)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function j(e,t){const r=x(e)?String(t):"",s="\n"===e[e.length-1];return r+(!s||"\n"!==e[e.length-2]&&"\n"!==e?s?"":"-":"+")+"\n"}function S(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function O(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 P(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)),(A(e,t+1,o,!0,!0,!1,!0)||void 0===o&&A(e,t+1,null,!0,!0,!1,!0))&&(s&&""===n||(n+=m(e,t)),e.dump&&10===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump)}e.tag=i,e.dump=n||"[]"}function $(e,t,r){const n=r?e.explicitTypes:e.implicitTypes;for(let c=0,a=n.length;c<a;c+=1){const a=n[c];if((a.instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){const r=e.styleMap[a.tag]||a.defaultStyle;let n;if("[object Function]"===i.call(a.represent))n=a.represent(t,r);else{if(!o.call(a.represent,r))throw new s("!<"+a.tag+'> tag resolver accepts not "'+r+'" style');n=a.represent[r](t,r)}e.dump=n}return!0}}return!1}function A(e,t,r,n,o,c,a){e.tag=null,e.dump=r,$(e,r,!1)||$(e,r,!0);const l=i.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);const p="[object Object]"===l||"[object Array]"===l;let h,d;if(p&&(h=e.duplicates.indexOf(r),d=-1!==h),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(o=!1),d&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(p&&d&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===l)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){let i="";const o=e.tag,c=Object.keys(r);if(!0===e.sortKeys)c.sort();else if("function"==typeof e.sortKeys)c.sort(e.sortKeys);else if(e.sortKeys)throw new s("sortKeys must be a boolean or a function");for(let s=0,o=c.length;s<o;s+=1){let o="";n&&""===i||(o+=m(e,t));const a=c[s];let l=r[a];if(e.replacer&&(l=e.replacer.call(r,a,l)),!A(e,t+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+=m(e,t)),A(e,t+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,t,e.dump,o),d&&(e.dump="&ref_"+h+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)),A(e,t,c,!1,!1)&&(e.dump.length>1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),A(e,t,a,!1,!1)&&(o+=e.dump,s+=o))}e.tag=n,e.dump="{"+s+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===l)n&&0!==e.dump.length?(e.noArrayIndent&&!a&&t>0?P(e,t-1,e.dump,o):P(e,t,e.dump,o),d&&(e.dump="&ref_"+h+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)),(A(e,t,i,!1,!1)||void 0===i&&A(e,t,null,!1,!1))&&(""!==s&&(s+=","+(e.condenseFlow?"":" ")),s+=e.dump)}e.tag=n,e.dump="["+s+"]"}(e,t,e.dump),d&&(e.dump="&ref_"+h+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new s("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&w(e,e.dump,t,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 k(e,t){const r=[],s=[];T(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 T(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)T(e[s],t,r);else{const s=Object.keys(e);for(let n=0,i=s.length;n<i;n+=1)T(e[s[n]],t,r)}}}t.exports.dump=function(e,t){const r=new h(t=t||{});r.noRefs||k(e,r);let s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),A(r,0,s,!0,!0)?r.dump+"\n":""}}),de=U(q((e,t)=>{var r=pe(),s=he();function n(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.")}}t.exports.Type=z(),t.exports.Schema=G(),t.exports.FAILSAFE_SCHEMA=X(),t.exports.JSON_SCHEMA=re(),t.exports.CORE_SCHEMA=se(),t.exports.DEFAULT_SCHEMA=ue(),t.exports.load=r.load,t.exports.loadAll=r.loadAll,t.exports.dump=s.dump,t.exports.YAMLException=J(),t.exports.types={binary:oe(),float:te(),map:Y(),null:Q(),pairs:ae(),set:le(),timestamp:ne(),bool:Z(),int:ee(),merge:ie(),omap:ce(),seq:K(),str:W()},t.exports.safeLoad=n("safeLoad","load"),t.exports.safeLoadAll=n("safeLoadAll","loadAll"),t.exports.safeDump=n("safeDump","dump")})(),1),{Type:me,Schema:fe,FAILSAFE_SCHEMA:ye,JSON_SCHEMA:ve,CORE_SCHEMA:ge,DEFAULT_SCHEMA:be,load:xe,loadAll:Ee,dump:we,YAMLException:je,types:Se,safeLoad:Oe,safeLoadAll:Pe,safeDump:$e}=de.default,Ae=de.default;function ke(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 Te(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:ke(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 Ae.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s})}async function Ce(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 Te(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 Fe(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 Me=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},Ie=e=>{const{fetch:t,http:r}=e;return t||r||Ce};var Re,De=(Re=function(e,t){return Re=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])},Re(e,t)},function(e,t){function r(){this.constructor=e}Re(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),_e=Object.prototype.hasOwnProperty;function Ne(e,t){return _e.call(e,t)}function Le(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)Ne(e,n)&&s.push(n);return s}function Be(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function qe(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 Ue(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ve(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Je(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Je(e[t]))return!0}else if("object"==typeof e)for(var s=Le(e),n=s.length,i=0;i<n;i++)if(Je(e[s[i]]))return!0;return!1}function He(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 ze=function(e){function t(t,r,s,n,i){var o=this.constructor,c=e.call(this,He(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=He(t,{name:r,index:s,operation:n,tree:i}),c}return De(t,e),t}(Error),Ge=ze,We=Be,Ke={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=Xe(r,this.path);s&&(s=Be(s));var n=Qe(r,{op:"remove",path:this.from}).removed;return Qe(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=Xe(r,this.from);return Qe(r,{op:"add",path:this.path,value:Be(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:st(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Ye={add:function(e,t,r){return qe(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:Ke.move,copy:Ke.copy,test:Ke.test,_get:Ke._get};function Xe(e,t){if(""==t)return e;var r={op:"_get",path:t};return Qe(e,r),r.value}function Qe(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):tt(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=Xe(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=st(e,t.value),!1===o.test)throw new Ge("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 Ge("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=Be(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:tt;;){if((h=c[l])&&-1!=h.indexOf("~")&&(h=Ve(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&&!qe(h))throw new Ge("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);qe(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>a.length)throw new Ge("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=Ye[t.op].call(t,a,h,e)).test)throw new Ge("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=Ke[t.op].call(t,a,h,e)).test)throw new Ge("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(a=a[h],r&&l<u&&(!a||"object"!=typeof a))throw new Ge("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function Ze(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new Ge("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=Be(e));for(var i=new Array(t.length),o=0,c=t.length;o<c;o++)i[o]=Qe(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function et(e,t,r){var s=Qe(e,t);if(!1===s.test)throw new Ge("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function tt(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new Ge("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Ke[e.op])throw new Ge("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 Ge("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Ge('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 Ge("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 Ge("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)&&Je(e.value))throw new Ge("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 Ge("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 Ge("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=rt([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Ge("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function rt(e,t,r){try{if(!Array.isArray(e))throw new Ge("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Ze(Be(t),Be(e),r||!0);else{r=r||tt;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof Ge)return e;throw e}}function st(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(!st(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(!st(e[n=c[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var nt=new WeakMap,it=function(e){this.observers=new Map,this.obj=e},ot=function(e,t){this.callback=e,this.observer=t};function ct(e,t){t.unobserve()}function at(e,t){var r,s=function(e){return nt.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new it(e),nt.set(e,s);if(r)return r;if(r={},s.value=Be(e),t){r.callback=t,r.next=null;var i=function(){lt(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(){lt(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 ot(t,r)),r}function lt(e,t){void 0===t&&(t=!1);var r=nt.get(e.object);ut(r.value,e.object,e.patches,"",t),e.patches.length&&Ze(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function ut(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Le(t),o=Le(e),c=!1,a=o.length-1;a>=0;a--){var l=e[p=o[a]];if(!Ne(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+"/"+Ue(p),value:Be(l)}),r.push({op:"remove",path:s+"/"+Ue(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)?ut(l,u,r,s+"/"+Ue(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+Ue(p),value:Be(l)}),r.push({op:"replace",path:s+"/"+Ue(p),value:Be(u)}))}}if(c||i.length!=o.length)for(a=0;a<i.length;a++){var p;Ne(e,p=i[a])||void 0===t[p]||r.push({op:"add",path:s+"/"+Ue(p),value:Be(t[p])})}}}function pt(e,t,r){void 0===r&&(r=!1);var s=[];return ut(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:ze,deepClone:Be,escapePathComponent:Ue,unescapePathComponent:Ve});var ht=r(4744),dt=r.n(ht);const mt={add:function(e,t){return{op:"add",path:e,value:t}},replace:yt,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&&ft(t.path)}).op){const r=kt(e,t.path);Object.assign(r,t.value),Ze(e,[yt(t.path,r)])}else if("mergeDeep"===t.op){const r=kt(e,t.path),s=dt()(r,t.value,{customMerge:e=>{if("enum"===e)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:dt()(e,t)}});e=Ze(e,[yt(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&jt(t.value)){Ze(e,Object.keys(t.value).reduce((e,r)=>(e.push({op:"add",path:`/${ft(r)}`,value:t.value[r]}),e),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&$t(t)&&(Array.isArray(t.value)||jt(t.value))&&(s={...s,...t.meta}),e=s}else if(Ze(e,[t]),r.allowMetaPatches&&t.meta&&$t(t)&&(Array.isArray(t.value)||jt(t.value))){const r={...kt(e,t.path),...t.meta};Ze(e,[yt(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:Et,fullyNormalizeArray:function(e){return wt(Et(xt(e)))},normalizeArray:xt,isPromise:function(e){return jt(e)&&St(e.then)},forEachNew:function(e,t){try{return vt(e,bt,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return vt(e,gt,t)}catch(e){return e}},isJsonPatch:Ot,isContextPatch:function(e){return At(e)&&"context"===e.type},isPatch:At,isMutation:Pt,isAdditiveMutation:$t,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:St,isObject:jt,isError:function(e){return e instanceof Error}};function ft(e){return Array.isArray(e)?e.length<1?"":`/${e.map(e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function yt(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function vt(e,t,r){return wt(Et(e.filter($t).map(e=>t(e.value,r,e.path))||[]))}function gt(e,t,r){return r=r||[],Array.isArray(e)?e.map((e,s)=>gt(e,t,r.concat(s))):jt(e)?Object.keys(e).map(s=>gt(e[s],t,r.concat(s))):t(e,r[r.length-1],r)}function bt(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)=>bt(e,t,r.concat(s)));n&&(s=s.concat(n))}else if(jt(e)){const n=Object.keys(e).map(s=>bt(e[s],t,r.concat(s)));n&&(s=s.concat(n))}return s=Et(s),s}function xt(e){return Array.isArray(e)?e:[e]}function Et(e){return[].concat(...e.map(e=>Array.isArray(e)?Et(e):e))}function wt(e){return e.filter(e=>void 0!==e)}function jt(e){return e&&"object"==typeof e}function St(e){return e&&"function"==typeof e}function Ot(e){if(At(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Pt(e){return Ot(e)||At(e)&&"mutation"===e.type}function $t(e){return Pt(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function At(e){return e&&"object"==typeof e}function kt(e,t){try{return Xe(e,t)}catch(e){return console.error(e),{}}}var Tt=r(8675);const Ct=class extends Tt{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 Ft extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Ct,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 Mt=Ft;const It=class extends Mt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};function Rt(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 Dt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function _t(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Nt(e){return function t(r){return 0===arguments.length||_t(r)?t:e.apply(this,arguments)}}function Lt(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return _t(r)?t:Nt(function(t){return e(r,t)});default:return _t(r)&&_t(s)?t:_t(r)?Nt(function(t){return e(t,s)}):_t(s)?Nt(function(t){return e(r,t)}):e(r,s)}}}function Bt(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return _t(r)?t:Lt(function(t,s){return e(r,t,s)});case 2:return _t(r)&&_t(s)?t:_t(r)?Lt(function(t,r){return e(t,s,r)}):_t(s)?Lt(function(t,s){return e(r,t,s)}):Nt(function(t){return e(r,s,t)});default:return _t(r)&&_t(s)&&_t(n)?t:_t(r)&&_t(s)?Lt(function(t,r){return e(t,r,n)}):_t(r)&&_t(n)?Lt(function(t,r){return e(t,s,r)}):_t(s)&&_t(n)?Lt(function(t,s){return e(r,t,s)}):_t(r)?Nt(function(t){return e(t,s,n)}):_t(s)?Nt(function(t){return e(r,t,n)}):_t(n)?Nt(function(t){return e(r,s,t)}):e(r,s,n)}}}const qt=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Ut(e){return"[object String]"===Object.prototype.toString.call(e)}const Vt=Nt(function(e){return!!qt(e)||!!e&&("object"==typeof e&&(!Ut(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Jt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ht(e,t,r){return function(s,n,i){if(Vt(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[Jt])return r(s,n,i[Jt]());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 zt(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 Gt=Lt(function(e,t){return Rt(e.length,function(){return e.apply(t,arguments)})});function Wt(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 Kt(e,t,r,s){return e["@@transducer/result"](r[s](Gt(e["@@transducer/step"],e),t))}const Yt=Ht(zt,Kt,Wt);var Xt=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 Qt(e){return new Xt(e)}const Zt=Bt(function(e,t,r){return Yt("function"==typeof e?Qt(e):e,t,r)});function er(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return qt(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const tr=Bt(er("slice",function(e,t,r){return Array.prototype.slice.call(r,e,t)}));const rr=Nt(er("tail",tr(1,1/0)));function sr(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Rt(arguments[0].length,Zt(Dt,arguments[0],rr(arguments)))}const nr=Lt(function(e,t){return null==t||t!=t?e:t}),ir=Number.isInteger||function(e){return(e|0)===e};function or(e,t){var r=e<0?t.length+e:e;return Ut(t)?t.charAt(r):t[r]}const cr=Lt(function(e,t){if(null!=t)return ir(e)?or(e,t):t[e]});const ar=Bt(function(e,t,r){return nr(e,cr(t,r))});const lr=Nt(function(e){return or(-1,e)});function ur(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&&(!_t(t[o])||n>=arguments.length)?a=t[o]:(a=arguments[n],n+=1),s[o]=a,_t(a)?c=!0:i-=1,o+=1}return!c&&i<=0?r.apply(this,s):Rt(Math.max(0,i),ur(e,s,r))}}const pr=Lt(function(e,t){return 1===e?Nt(t):Rt(e,ur(e,[],t))});const hr=Nt(function(e){return pr(e.length,e)});function dr(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function mr(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function fr(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function yr(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const vr="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var gr=Object.prototype.toString;const br=function(){return"[object Arguments]"===gr.call(arguments)?function(e){return"[object Arguments]"===gr.call(e)}:function(e){return yr("callee",e)}}();var xr=!{toString:null}.propertyIsEnumerable("toString"),Er=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],wr=function(){return arguments.propertyIsEnumerable("length")}(),jr=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},Sr="function"!=typeof Object.keys||wr?Nt(function(e){if(Object(e)!==e)return[];var t,r,s=[],n=wr&&br(e);for(t in e)!yr(t,e)||n&&"length"===t||(s[s.length]=t);if(xr)for(r=Er.length-1;r>=0;)yr(t=Er[r],e)&&!jr(s,t)&&(s[s.length]=t),r-=1;return s}):Nt(function(e){return Object(e)!==e?[]:Object.keys(e)});const Or=Sr;const Pr=Nt(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function $r(e,t,r,s){var n=mr(e);function i(e,t){return Ar(e,t,r.slice(),s.slice())}return!fr(function(e,t){return!fr(i,t,e)},mr(t),n)}function Ar(e,t,r,s){if(vr(e,t))return!0;var n,i,o=Pr(e);if(o!==Pr(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||!vr(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!vr(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&&$r(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&$r(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=Or(e);if(a.length!==Or(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(!yr(p,t)||!Ar(t[p],e[p],l,u))return!1;c-=1}return!0}const kr=Lt(function(e,t){return Ar(e,t,[],[])});function Tr(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(kr(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Cr(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function Fr(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 Mr=function(e){return(e<10?"0":"")+e};const Ir="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Mr(e.getUTCMonth()+1)+"-"+Mr(e.getUTCDate())+"T"+Mr(e.getUTCHours())+":"+Mr(e.getUTCMinutes())+":"+Mr(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Rr(e){return function(){return!e.apply(this,arguments)}}function Dr(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function _r(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!qt(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 Nr(e){return"[object Object]"===Object.prototype.toString.call(e)}const Lr=function(){return this.xf["@@transducer/init"]()},Br=function(e){return this.xf["@@transducer/result"](e)};var qr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Lr,e.prototype["@@transducer/result"]=Br,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ur(e){return function(t){return new qr(e,t)}}const Vr=Lt(_r(["fantasy-land/filter","filter"],Ur,function(e,t){return Nr(t)?Dr(function(r,s){return e(t[s])&&(r[s]=t[s]),r},{},Or(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 Jr=Lt(function(e,t){return Vr(Rr(e),t)});function Hr(e,t){var r=function(r){var s=t.concat([e]);return Tr(r,s)?"<Circular>":Hr(r,s)},s=function(e,t){return Cr(function(t){return Fr(t)+": "+r(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Cr(r,e).join(", ")+"))";case"[object Array]":return"["+Cr(r,e).concat(s(e,Jr(function(e){return/^\d+$/.test(e)},Or(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):Fr(Ir(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())+")":Fr(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,Or(e)).join(", ")+"}"}}const zr=Nt(function(e){return Hr(e,[])});const Gr=Lt(function(e,t){return pr(e+1,function(){var r=arguments[e];if(null!=r&&dr(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(zr(r)+' does not have a method named "'+t+'"')})});const Wr=Gr(1,"split");function Kr(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return tr(0,r+1,t)}var Yr=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Lr,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=Yt(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 Xr(e){return function(t){return new Yr(e,t)}}const Qr=Lt(_r([],Xr,Kr));const Zr=Gr(1,"join");const es=Nt(function(e){return pr(e.length,function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)})})(Lt(Tr));const ts=hr(function(e,t){return sr(Wr(""),Qr(es(e)),Zr(""))(t)});function rs(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function ss(e,t,r,s){return r[s](e,t)}const ns=Ht(Dr,ss,rs);var is=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Lr,e.prototype["@@transducer/result"]=Br,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const os=Lt(_r(["fantasy-land/map","map"],function(e){return function(t){return new is(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return pr(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Dr(function(r,s){return r[s]=e(t[s]),r},{},Or(t));default:return Cr(e,t)}}));const cs=Lt(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))}:ns(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,os(r,t))},[],e)});const as=Lt(function(e,t){var r=pr(e,t);return pr(e,function(){return Dr(cs,os(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const ls=Nt(function(e){return as(e.length,e)});const us=ls(Nt(function(e){return!e}));const ps=Nt(function(e){return function(){return e}});const hs=ps(void 0);const ds=kr(hs());const ms=us(ds);const fs=Lt(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=zr(e),o=r(i,zr(t));return void 0!==o&&o===i?e:t});const ys=Lt(function(e,t){return os(cr(e),t)});const vs=Nt(function(e){return pr(Zt(fs,0,ys("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 gs=function(e,t){switch(arguments.length){case 0:return gs;case 1:return function t(r){return 0===arguments.length?t:vr(e,r)};default:return vr(e,t)}};const bs=gs;const xs=pr(1,sr(Pr,bs("GeneratorFunction")));const Es=pr(1,sr(Pr,bs("AsyncFunction")));const ws=vs([sr(Pr,bs("Function")),xs,Es]);const js=Bt(function(e,t,r){return r.replace(e,t)});const Ss=pr(1,sr(Pr,bs("RegExp")));const Os=Bt(function(e,t,r){return e(r)?t(r):r});const Ps=pr(1,sr(Pr,bs("String")));const $s=Os(Ps,js(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var As=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};var ks=pr(3,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),As(r,"str"),As(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(Ss(e)?e:$s(e),"g");return js(s,t,r)}),Ts=Gr(2,"replaceAll");const Cs=ws(String.prototype.replaceAll)?Ts:ks,Fs=()=>{var e,t;return/^win/.test(null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.platform)&&void 0!==e?e:"")},Ms=e=>{try{const t=new URL(e);return ts(":",t.protocol)}catch{return}},Is=(sr(Ms,ms),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Rs=e=>{if(void 0!==globalThis.window)return!1;const t=Ms(e);return ds(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Ds=e=>{const t=Ms(e);return"http"===t||"https"===t},_s=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=ar(!1,"keepFileProtocol",t),n=ar(Fs,"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=Cs("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Ns=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Ls=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Bs=()=>{var e,t;if(void 0!==globalThis.window)return Ls(globalThis.location.href);const r=null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.cwd())&&void 0!==e?e:"/",s=lr(r);return["/","\\"].includes(s)?r:r+(Fs()?"\\":"/")},qs=(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()},Us=e=>{if(Rs(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Fs()&&(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})(_s(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Vs=e=>Rs(e)?_s(e):decodeURI(e);function Js(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 Hs(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 zs(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Gs(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 Js(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 Js(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 Ws(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Ks=function(e){throw TypeError(e)},Ys=function(e,t,r){return t.has(e)||Ks("Cannot "+r)},Xs=function(e,t,r){return Ys(e,t,"read from private field"),r?r.call(e):t.get(e)},Qs=function(e,t,r){return t.has(e)?Ks("Cannot add the same private member more than once"):zs(t,WeakSet)?t.add(e):t.set(e,r)},Zs=function(e,t,r,s){return Ys(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},en=function(e){return Object.prototype.toString.call(e)},tn=function(e){return ArrayBuffer.isView(e)&&!zs(e,DataView)},rn=Array.isArray,sn=Object.getOwnPropertyDescriptor,nn=Object.prototype.propertyIsEnumerable,on=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty;function an(e){for(var t=Object.keys(e),r=on(e),s=0;s<r.length;s++)nn.call(e,r[s])&&t.push(r[s]);return t}function ln(e,t){var r;return!(null===(r=sn(e,t))||void 0===r?void 0:r.writable)}function un(e,t){if("object"===(void 0===e?"undefined":Ws(e))&&null!==e){var r;if(rn(e))r=[];else if("[object Date]"===en(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===en(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===en(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===en(e)}(e)||function(e){return"[object Number]"===en(e)}(e)||function(e){return"[object String]"===en(e)}(e))r=Object(e);else{if(tn(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?an: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 pn,hn,dn={includeSymbols:!1,immutable:!1};function mn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dn,s=[],n=[],i=!0,o=r.includeSymbols?an:Object.keys,c=!!r.immutable;return function e(a){var l=c?un(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){rn(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"===Ws(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"===Ws(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=Gs(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&&cn.call(h.node,S)&&!ln(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 fn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dn;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Qs(this,pn),Qs(this,hn),Zs(this,pn,t),Zs(this,hn,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=Xs(this,pn),r=0;t&&r<e.length;r++){var s=e[r];if(!cn.call(t,s)||!Xs(this,hn).includeSymbols&&"symbol"===(void 0===s?"undefined":Ws(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=Xs(this,pn),r=0;t&&r<e.length;r++){var s=e[r];if(!cn.call(t,s)||!Xs(this,hn).includeSymbols&&"symbol"===(void 0===s?"undefined":Ws(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=Xs(this,pn),s=0;for(s=0;s<e.length-1;s++){var n=e[s];cn.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return mn(Xs(this,pn),e,{immutable:!0,includeSymbols:!!Xs(this,hn).includeSymbols})}},{key:"forEach",value:function(e){return Zs(this,pn,mn(Xs(this,pn),e,Xs(this,hn))),Xs(this,pn)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?Xs(this,pn):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=Xs(this,hn);return tn(Xs(this,pn))?Xs(this,pn).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":Ws(n))&&null!==n){var o=un(n,r);e.push(n),t.push(o);var c=r.includeSymbols?an: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}(Xs(this,pn))}}],r&&Hs(t.prototype,r),s&&Hs(t,s),e}();pn=new WeakMap,hn=new WeakMap;var yn=function(e,t){return new fn(e,t)};yn.get=function(e,t,r){return new fn(e,r).get(t)},yn.set=function(e,t,r,s){return new fn(e,s).set(t,r)},yn.has=function(e,t,r){return new fn(e,r).has(t)},yn.map=function(e,t,r){return new fn(e,r).map(t)},yn.forEach=function(e,t,r){return new fn(e,r).forEach(t)},yn.reduce=function(e,t,r,s){return new fn(e,s).reduce(t,r)},yn.paths=function(e,t){return new fn(e,t).paths()},yn.nodes=function(e,t){return new fn(e,t).nodes()},yn.clone=function(e,t){return new fn(e,t).clone()};var vn=yn;const gn=["properties"],bn=["properties"],xn=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],En=["schema/example","items/example"];function wn(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return gn.indexOf(t)>-1&&-1===bn.indexOf(r)||xn.indexOf(s)>-1||En.some(e=>s.indexOf(e)>-1)}function jn(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(Ds(n))o=qs(n,i);else{const e=qs(y,n),t=qs(e,i).replace(y,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const Sn=/^([a-z]+:\/\/|\/\/)/i;class On extends It{}const Pn={},$n=new WeakMap,An=[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]],kn={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(wn(i)||(e=>An.some(t=>t(e)))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new On("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const c=In(e),a=c[0],l=c[1]||"";let u,p,h;try{u=o||a?Fn(a,o):null}catch(t){return Mn(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=$n.get(s);n||(n={},$n.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(Bn).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,c=i.replace(/allOf\/\d+\/?/g,""),a=s.contextTree.get([]).baseDoc;if(t===a&&Un(c,e))return!0;let l="";const u=r.some(e=>(l=`${l}/${Bn(e)}`,n[l]&&n[l].some(e=>Un(e,o)||Un(o,e))));if(u)return!0;return void(n[c]=(n[c]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=jn(e,u);return e===t?null:mt.replace(r,t)}if(null==u?(h=Nn(l),p=s.get(h),void 0===p&&(p=new On(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=Rn(u,l),p=null!=p.__value?p.__value:p.catch(t=>{throw Mn(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})})),p instanceof Error)return[mt.remove(r),p];const d=jn(e,u),m=mt.replace(i,p,{$$ref:d});if(u&&u!==o)return[m,mt.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 mt.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}}},Tn=Object.assign(kn,{docCache:Pn,absoluteify:Fn,clearCache:function(e){void 0!==e?delete Pn[e]:Object.keys(Pn).forEach(e=>{delete Pn[e]})},JSONRefError:On,wrapError:Mn,getDoc:Dn,split:In,extractFromDoc:Rn,fetchJSON:function(e){return fetch(e,{headers:{Accept:f},loadSpec:!0}).then(e=>e.text()).then(e=>Ae.load(e))},extract:_n,jsonPointerToArray:Nn,unescapeJsonPointerToken:Ln}),Cn=Tn;function Fn(e,t){if(!Sn.test(e)){if(!t)throw new On(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return qs(t,e)}return e}function Mn(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new On(`Could not resolve reference: ${r}`,{...t,cause:e})}function In(e){return(e+"").split("#")}function Rn(e,t){const r=Pn[e];if(r&&!mt.isPromise(r))try{const e=_n(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return Dn(e).then(e=>_n(t,e))}function Dn(e){const t=Pn[e];return t?mt.isPromise(t)?t:Promise.resolve(t):(Pn[e]=Tn.fetchJSON(e).then(t=>(Pn[e]=t,t)),Pn[e])}function _n(e,t){const r=Nn(e);if(r.length<1)return t;const s=mt.getIn(t,r);if(void 0===s)throw new On(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function Nn(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(Ln)}function Ln(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Bn(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const qn=e=>!e||"/"===e||"#"===e;function Un(e,t){if(qn(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const Vn={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(wn(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 vn(e).forEach(function(){if(I()(n).call(n,this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=jn(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}},Jn={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...mt.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 mt.replace(r,t)}return mt.replace(r,e)}},Hn={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 mt.replace(r,n)}};class zn{constructor(e){this.root=Gn(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Wn(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?Wn(n[s],t,r):n[s]=Gn(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]=Gn(null,e)),s[r]},this.root)}}function Gn(e,t){return Wn({children:{}},e,t)}function Wn(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]=Wn(r,r.value,e)}),e}const Kn=()=>{};class Yn{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 zn,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),mt,{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(mt.isFunction),this.patches.push(mt.add([],this.spec)),this.patches.push(mt.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]):mt.isFunction(e)?s=e:mt.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(mt.isAdditiveMutation).entries()){if(!(e<g))return;yield*o(t.value,t.path,t)}function*o(s,c,a){if(mt.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=mt.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:mt.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){mt.normalizeArray(e).forEach(e=>{if(e instanceof Error)this.errors.push(e);else try{if(!mt.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),mt.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(mt.isContextPatch(e))return void this.setContext(e.path,e.value);mt.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=mt.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 mt.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(Kn,Kn))).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=mt.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const Xn={refs:Cn,allOf:Vn,parameters:Jn,properties:Hn};async function Qn(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=Me(e),d=Ie(e),m=p.find(e=>e.match(t));return async function(e){h&&(Xn.refs.docCache[h]=e);Xn.refs.fetchJSON=Fe(d,{requestInterceptor:c,responseInterceptor:a});const t=[Xn.refs];"function"==typeof o&&t.push(Xn.parameters);"function"==typeof i&&t.push(Xn.properties);"strict"!==r&&t.push(Xn.allOf);const p=await(f={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Yn(f).dispatch());var f;l||(p.spec=m.normalize(p.spec));return p}(t)}function Zn(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=ir(n)?or(n,r):r[n]}return r}const ei=Bt(function(e,t,r){return e(Zn(t,r))});const ti=Lt(function(e,t){return e&&t});const ri=Lt(function(e,t){return dr(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ls(ti)(e,t)});const si=kr(null);const ni=us(si);function ii(e){return ii="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},ii(e)}const oi=function(e){return"object"===ii(e)};const ci=pr(1,ri(ni,oi));var ai=sr(Pr,bs("Object")),li=sr(zr,kr(zr(Object))),ui=ei(ri(ws,li),["constructor"]);const pi=pr(1,function(e){if(!ci(e)||!ai(e))return!1;var t=Object.getPrototypeOf(e);return!!si(t)||ui(t)}),hi=e=>e.replace(/\W/gi,"_");function di(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?hi(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()}${hi(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function mi(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=di(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=>!(!pi(e)&&!pi(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 fi={name:"generic",match:()=>!0,normalize(e){const{spec:t}=mi({spec:e});return t},resolve:async e=>Qn(e)};const yi=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},vi=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},gi=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},bi=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},xi=e=>vi(e)||gi(e)||bi(e),Ei={name:"openapi-2",match:e=>yi(e),normalize(e){const{spec:t}=mi({spec:e});return t},resolve:async e=>async function(e){return Qn(e)}(e)};const wi={name:"openapi-3-0",match:e=>vi(e),normalize(e){const{spec:t}=mi({spec:e});return t},resolve:async e=>async function(e){return Qn(e)}(e)},ji=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=Me(e),i=Ie(e),o=t||await Fe(i,{requestInterceptor:r,responseInterceptor:s})(n),c={...e,spec:o};return e.strategies.find(e=>e.match(o)).resolve(c)})({...e,...t}),Si=ji({strategies:[wi,Ei,fi]}),Oi=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 Si({spec:h,...p,allowMetaPatches:!0,skipNormalization:!gi(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce((e,t)=>e?.[t],d.spec)||null),d})(t,r,{...e,...s});Oi({strategies:[wi,Ei,fi]});var Pi=r(4035);function $i(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Ai=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Lr,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=$i(this.xf["@@transducer/step"](e,!1))),e},e}();function ki(e){return function(t){return new Ai(e,t)}}const Ti=Lt(_r(["all"],ki,function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}));class Ci extends Pi.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 Fi=Ci;class Mi extends Pi.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Ii=Mi;class Ri extends Pi.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(ds(t))return!1;const r=this.content.findIndex(e=>e===t);return-1!==r&&(this.content[r]=e,!0)}}const Di=Ri,_i=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ni=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Li=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Bi=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Pi.wE)&&t.classes.includes(e),qi=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Ui=e=>e({hasMethod:_i,hasBasicElementProps:Ni,primitiveEq:Li,isElementType:qi,hasClass:Bi}),Vi=Ui(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Pi.Hg||e(r)&&t(void 0,r)),Ji=Ui(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Pi.Om||e(r)&&t("string",r)),Hi=Ui(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Pi.kT||e(r)&&t("number",r)),zi=Ui(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Pi.Os||e(r)&&t("null",r)),Gi=Ui(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Pi.bd||e(r)&&t("boolean",r)),Wi=Ui(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Pi.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s)),Ki=Ui(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Pi.wE&&!(s instanceof Pi.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s)),Yi=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pi.Pr||e(s)&&t("member",s)&&r(void 0,s)),Xi=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pi.Ft||e(s)&&t("link",s)&&r(void 0,s)),Qi=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pi.sI||e(s)&&t("ref",s)&&r(void 0,s)),Zi=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fi||e(s)&&t("annotation",s)&&r("array",s)),eo=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ii||e(s)&&t("comment",s)&&r("string",s)),to=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Di||e(s)&&t("parseResult",s)&&r("array",s)),ro=e=>qi("object",e)||qi("array",e)||qi("boolean",e)||qi("number",e)||qi("string",e)||qi("null",e)||qi("member",e),so=e=>!!Vi(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)),no=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Ki(r)&&Ti(es(r.toValue()),e)},io=(e,t)=>0===e.length||Ti(es(t.classes.toValue()),e);const oo=function(){return!0};const co=function(){return!1},ao=(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},lo={},uo=e=>null==e?void 0:e.type,po=e=>"string"==typeof uo(e),ho=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),mo=(e,{visitFnGetter:t=ao,nodeTypeGetter:r=uo,breakSymbol:s=lo,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 It("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 It("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)}}};mo[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=ao,nodeTypeGetter:r=uo,breakSymbol:s=lo,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 fo=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=lo,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=ao,nodeTypeGetter:a=uo,nodePredicate:l=po,nodeCloneFn:u=ho,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 It(`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 It("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};fo[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=lo,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=ao,nodeTypeGetter:a=uo,nodePredicate:l=po,nodeCloneFn:u=ho,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 It(`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 yo=class extends It{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const vo=class extends yo{};const go=class extends yo{};const bo=Lt(function(e,t){return Dr(function(r,s){return r[s]=e(t[s],s,t),r},{},Or(t))});const xo=Nt(function(e){return null==e});var Eo=Lt(function(e,t){if(0===e.length||xo(t))return!1;for(var r=t,s=0;s<e.length;){if(xo(r)||!yr(e[s],r))return!1;r=r[e[s]],s+=1}return!0});const wo=Eo;var jo=Lt(function(e,t){return wo([e],t)});const So=jo;const Oo=Bt(function(e,t,r){return e(cr(t,r))});const Po=Lt(Zn);var $o=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Lr,e.prototype["@@transducer/result"]=Br,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 Ao(e){return function(t){return new $o(e,t)}}const ko=Lt(_r(["dropWhile"],Ao,function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return tr(r,1/0,t)}));const To=hr(function(e,t){return sr(Wr(""),ko(es(e)),Zr(""))(t)}),Co=(e,t)=>{const r=nr(e,t);return bo(e=>{if(pi(e)&&So("$ref",e)&&Oo(Ps,"$ref",e)){const t=Po(["$ref"],e),s=To("#/",t);return Po(s.split("/"),r)}return pi(e)?Co(e,r):e},e)},Fo=(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),Mo=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Pi.KeyValuePair){const{key:t,value:n}=e,i=Vi(t)?Mo(t,s):t,o=Vi(n)?Mo(n,s):n,c=new Pi.KeyValuePair(i,o);return r.set(e,c),c}if(e instanceof Pi.ot){const t=e=>Mo(e,s),n=[...e].map(t),i=new Pi.ot(n);return r.set(e,i),i}if(e instanceof Pi.G6){const t=e=>Mo(e,s),n=[...e].map(t),i=new Pi.G6(n);return r.set(e,i),i}if(Vi(e)){const t=Do(e);if(r.set(e,t),e.content)if(Vi(e.content))t.content=Mo(e.content,s);else if(e.content instanceof Pi.KeyValuePair)t.content=Mo(e.content,s);else if(Array.isArray(e.content)){const r=e=>Mo(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new vo("Value provided to cloneDeep function couldn't be cloned",{value:e})};Mo.safe=e=>{try{return Mo(e)}catch{return e}};const Io=e=>{const{key:t,value:r}=e;return new Pi.KeyValuePair(t,r)},Ro=e=>{const t=new e.constructor;if(t.element=e.element,so(e)&&Fo(t,e),e.meta.length>0&&(t._meta=Mo(e.meta)),e.attributes.length>0&&(t._attributes=Mo(e.attributes)),Vi(e.content)){const r=e.content;t.content=Ro(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Pi.KeyValuePair?t.content=Io(e.content):t.content=e.content;return t},Do=e=>{if(e instanceof Pi.KeyValuePair)return Io(e);if(e instanceof Pi.ot)return(e=>{const t=[...e];return new Pi.ot(t)})(e);if(e instanceof Pi.G6)return(e=>{const t=[...e];return new Pi.G6(t)})(e);if(Vi(e))return Ro(e);throw new go("Value provided to cloneShallow function couldn't be cloned",{value:e})};Do.safe=e=>{try{return Do(e)}catch{return e}};const _o=e=>Wi(e)?"ObjectElement":Ki(e)?"ArrayElement":Yi(e)?"MemberElement":Ji(e)?"StringElement":Gi(e)?"BooleanElement":Hi(e)?"NumberElement":zi(e)?"NullElement":Xi(e)?"LinkElement":Qi(e)?"RefElement":void 0,No=e=>Vi(e)?Do(e):ho(e),Lo=sr(_o,Ps),Bo={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class qo{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=co,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 Uo=(e,t,{keyMap:r=Bo,...s}={})=>fo(e,t,{keyMap:r,nodeTypeGetter:_o,nodePredicate:Lo,nodeCloneFn:No,...s});Uo[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Bo,...s}={})=>fo[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:_o,nodePredicate:Lo,nodeCloneFn:No,...s});const Vo=e=>"string"==typeof(null==e?void 0:e.type)?e.type:_o(e),Jo={EphemeralObject:["content"],EphemeralArray:["content"],...Bo},Ho=(e,t,{keyMap:r=Jo,...s}={})=>Uo(e,t,{keyMap:r,nodeTypeGetter:Vo,nodePredicate:oo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Ho[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Jo,...r}={})=>Uo[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Vo,nodePredicate:oo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const zo=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 Go=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 Wo{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Go(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 zo(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 Ji(e.href)?e.href.toValue():""}}const Ko=e=>Vi(e)?Ji(e)||Hi(e)||Gi(e)||zi(e)?e.toValue():Ho(e,new Wo):e;const Yo=Bt(function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})yr(s,t)&&(n[s]=yr(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)yr(s,r)&&!yr(s,n)&&(n[s]=r[s]);return n});const Xo=Bt(function e(t,r,s){return Yo(function(r,s,n){return Nr(s)&&Nr(n)?e(t,s,n):t(r,s,n)},r,s)});const Qo=Lt(function(e,t){return Xo(function(e,t,r){return r},e,t)});const Zo=tr(0,-1);const ec=Lt(function(e,t){return e.apply(this,t)});const tc=us(ws);var rc=Nt(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():qt(e)?[]:Ut(e)?"":Nr(e)?{}:br(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 sc=rc;const nc=Nt(function(e){return null!=e&&kr(e,sc(e))});const ic=pr(1,ws(Array.isArray)?Array.isArray:sr(Pr,bs("Array")));const oc=ri(ic,nc);var cc=pr(3,function(e,t,r){var s=Po(e,r),n=Po(Zo(e),r);if(!tc(s)&&!oc(e)){var i=Gt(s,n);return ec(i,t)}});const ac=cc;class lc extends Pi.g${constructor(){super(),this.register("annotation",Fi),this.register("comment",Ii),this.register("parseResult",Di)}}const uc=new lc,pc=e=>{const t=new lc;return pi(e)&&t.use(e),t},hc=uc,dc=()=>({predicates:{...i},namespace:hc}),mc={toolboxCreator:dc,visitorOptions:{nodeTypeGetter:_o,exposeEdits:!0}},fc=(e,t,r={})=>{if(0===t.length)return e;const s=Qo(mc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=mo(c.map(ar({},"visitor")),{...i});c.forEach(ac(["pre"],[]));const l=Uo(e,a,i);return c.forEach(ac(["post"],[])),l};fc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Qo(mc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),c=t.map(e=>e(o)),a=mo[Symbol.for("nodejs.util.promisify.custom")],l=Uo[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(ar({},"visitor")),{...i});await Promise.allSettled(c.map(ac(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(ac(["post"],[]))),p};const yc=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Vi(e)&&(e.meta.length>0&&(s.meta=Mo(e.meta)),e.attributes.length>0&&(s.attributes=Mo(e.attributes))),fc(s,r,{toolboxCreator:dc,visitorOptions:{nodeTypeGetter:_o}})},vc=e=>(t,r={})=>yc(t,{...r,Type:e});Pi.Sh.refract=vc(Pi.Sh),Pi.wE.refract=vc(Pi.wE),Pi.Om.refract=vc(Pi.Om),Pi.bd.refract=vc(Pi.bd),Pi.Os.refract=vc(Pi.Os),Pi.kT.refract=vc(Pi.kT),Pi.Ft.refract=vc(Pi.Ft),Pi.sI.refract=vc(Pi.sI),Fi.refract=vc(Fi),Ii.refract=vc(Ii),Di.refract=vc(Di);const gc=(e,t=new WeakMap)=>(Yi(e)?(t.set(e.key,e),gc(e.key,t),t.set(e.value,e),gc(e.value,t)):e.children.forEach(r=>{t.set(r,e),gc(r,t)}),t);const bc=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:gc(this.element);const s=this.edges.get(e);return ds(s)?void 0:(Wi(s)?((e,t,r)=>{const s=r.get(e);Wi(s)&&(s.content=s.map((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o))})(e,t,this.edges):Ki(s)?((e,t,r)=>{const s=r.get(e);Ki(s)&&(s.content=s.map(n=>n===e?(r.delete(e),r.set(t,s),t):n))})(e,t,this.edges):Yi(s)&&((e,t,r)=>{const s=r.get(e);Yi(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 xc=(e,t,r)=>new bc({element:r}).transclude(e,t),Ec=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))},wc=function(){const e=$c,t=Pc,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}},jc=function(){const e=$c,t=Pc,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}},Sc=function(){const e=$c,t=Pc,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},Oc=function(){const e=$c;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}`)}}},Pc={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)}},$c={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 $c.ALT:return"ALT";case $c.CAT:return"CAT";case $c.REP:return"REP";case $c.RNM:return"RNM";case $c.TRG:return"TRG";case $c.TBS:return"TBS";case $c.TLS:return"TLS";case $c.UDT:return"UDT";case $c.AND:return"AND";case $c.NOT:return"NOT";case $c.ACTIVE:return"ACTIVE";case $c.EMPTY:return"EMPTY";case $c.MATCH:return"MATCH";case $c.NOMATCH:return"NOMATCH";case $c.SEM_PRE:return"SEM_PRE";case $c.SEM_POST:return"SEM_POST";case $c.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Ac(){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 kc 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 Tc=kc;const Cc=class extends Tc{},Fc=e=>(t,r,s,n,i)=>{if("object"!=typeof i||null===i||Array.isArray(i))throw new Cc("parser's user data must be an object");if(t===$c.SEM_PRE){const t={type:e,text:Pc.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===$c.SEM_POST&&i.stack.pop()};const Mc=class extends jc{constructor(){super(),this.callbacks["json-pointer"]=Fc("json-pointer"),this.callbacks["reference-token"]=Fc("reference-token"),this.callbacks.slash=Fc("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},Ic=e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};const Rc=class extends Mc{getTree(){const{root:e}=super.getTree();return e.children.filter(({type:e})=>"reference-token"===e).map(({text:e})=>Ic(e))}};const Dc=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}};const _c=class extends Sc{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 Dc(...t)}},Nc=new Ac,Lc=(e,{translator:t=new Rc,stats:r=!1,trace:s=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const n=new wc;t&&(n.ast=t),r&&(n.stats=new Oc),s&&(n.trace=new _c);const i=n.parse(Nc,"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 Cc("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}};new Ac,new wc,new Ac,new wc;const Bc=new Ac,qc=new wc,Uc=e=>{if("string"!=typeof e)return!1;try{return qc.parse(Bc,"array-index",e).success}catch{return!1}},Vc=new Ac,Jc=new wc,Hc=e=>{if("string"!=typeof e)return!1;try{return Jc.parse(Vc,"array-dash",e).success}catch{return!1}},zc=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 Gc=class extends Tc{},Wc=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 zc(String(e))}).join("/")}`}catch(t){throw new Gc("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Kc=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 Yc=class{name="";isArray(e){throw new Tc("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Tc("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Tc("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new Tc("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new Tc("Realm.evaluate(node) must be implemented in a subclass")}};const Xc=class extends Tc{};const Qc=class extends Xc{};const Zc=class extends Yc{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 Qc(`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 ea=class extends Xc{};const ta=class extends Xc{},ra=(e,t,{strictArrays:r=!0,strictObjects:s=!0,realm:n=new Zc,trace:i=!0}={})=>{const{result:o,tree:c,trace:a}=Lc(t,{trace:!!i}),l="object"==typeof i&&null!==i?new Kc(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 Xc(r,{jsonPointer:t,currentValue:e,realm:n.name})}return c.reduce((e,o,a)=>{if(n.isArray(e)){if(Hc(o)){if(r)throw new Qc(`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(!Uc(o))throw new Qc(`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 Qc(`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 Qc(`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 ta(`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 ea(`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 Xc)throw e;throw new Xc("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:c})}};const sa=class extends Yc{name="apidom";isArray(e){return Ki(e)}isObject(e){return Wi(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 Qc(`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 ta(`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)}},na=(e,t,r={})=>ra(e,t,{...r,realm:new sa});class ia extends Pi.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const oa=ia;class ca extends Pi.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 aa=ca;class la extends Pi.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 ua=la;class pa extends Pi.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 ha=pa;class da extends Pi.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 ma=da;class fa extends Pi.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 ya=fa;class va extends Pi.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 ga=va;class ba extends Pi.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Pi.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Pi.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(ba.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const xa=ba;class Ea extends Pi.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 wa=Ea;class ja extends Pi.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 Sa=ja;class Oa extends Pi.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 Ji(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ji(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 Pa=Oa;class $a extends Pi.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 Aa=$a;class ka extends Pi.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 Ta=ka;class Ca extends Pi.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 Fa=Ca;class Ma extends Pi.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Ia=Ma;class Ra extends Pi.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 Da=Ra;class _a extends Pi.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 Pi.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 Na=_a;class La extends Pi.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 Pi.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Pi.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(La.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ba=La;class qa extends Pi.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 Ua=qa;class Va extends Pi.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Ja=Va;class Ha extends Pi.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 za=Ha;class Ga extends Pi.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 Pi.bd(!1)}set required(e){this.set("required",e)}}const Wa=Ga;class Ka extends Pi.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 Ya=Ka;class Xa extends Pi.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 Qa=Xa;const Za=class extends Mt{};class el extends Pi.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 tl=el;class rl extends Pi.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 sl=rl;class nl extends Pi.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 il=nl;class ol extends Pi.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 cl=ol,al=e=>{const t=e.meta.length>0?Mo(e.meta):void 0,r=e.attributes.length>0?Mo(e.attributes):void 0;return new e.constructor(void 0,t,r)},ll=(e,t)=>t.clone&&t.isMergeableElement(e)?pl(al(e),e,t):e,ul={clone:!0,isMergeableElement:e=>Wi(e)||Ki(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"](e=>ll(e,r)),objectElementMerge:(e,t,r)=>{const s=Wi(e)?al(e):al(t);return Wi(e)&&e.forEach((e,t,n)=>{const i=Do(n);i.value=ll(e,r),s.content.push(i)}),t.forEach((t,n,i)=>{const o=Ko(n);let c;if(Wi(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);c=Do(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return pl;const r=t.customMerge(e,t);return"function"==typeof r?r:pl})(n,r)(s,t,r)}else c=Do(i),c.value=ll(t,r);s.remove(o),s.content.push(c)}),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},pl=(e,t,r)=>{var s,n,i;const o={...ul,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:ul.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ul.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ul.objectElementMerge;const c=Ki(t);if(!(c===Ki(e)))return ll(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=>Mo(e):e.customMetaMerge)(o)(e.meta,t.meta),a.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Mo(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),a};pl.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Pi.Sh:e.reduce((e,r)=>pl(e,r,t),al(e[0]))};const hl=pl;const dl=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=hl(t.meta,e.meta)),so(e)&&Fo(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=hl(t.attributes,e.attributes))}};const ml=class extends dl{enter(e){return this.element=Mo(e),lo}},fl=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},yl=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:yl(r,[...t,r])},vl=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map(e=>yl(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=yl(n);for(let t of e){let e=yl(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(fl(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},gl=e=>e.filter((t,r)=>e.indexOf(t)==r),bl=(e,t)=>{const r=t.map(e=>yl(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++}},xl=(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(bl(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==bl(s,e)||void 0!==t[s],get:(r,s)=>(bl(s,e)||t)[s],set(t,r,s){const n=bl(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)))}),El=null,wl="copy",jl="copy",Sl="deep",Ol=new WeakMap,Pl=e=>Ol.get(e),$l=(e,t)=>{var r,s;const n=gl([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=gl([...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},Al=(e,t)=>{var r,s,n,i;return{property:$l(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:$l(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},kl=(e,t)=>{var r,s,n,i,o,c;return{class:gl([...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:Al(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:Al(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Tl=new Map,Cl=(...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=[...yl(e.prototype).map(e=>e.constructor),...null!==(t=Pl(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=>Tl.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>kl(e,t))},Fl=e=>{let t=Tl.get(e);return t||(t={},Tl.set(e,t)),t};function Ml(...e){var t,r,s;const n=e.map(e=>e.prototype),i=El;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)fl(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===jl?vl(n,o):(c=n,a=o,xl([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===wl?vl(e,null,["prototype"]):xl(e,Function.prototype));let l=o;if("none"!==Sl){const n="deep"===Sl?Cl(...e):((...e)=>{const t=e.map(e=>Fl(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>kl(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)}Il(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),Il(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Ol.set(u,p),l}const Il=(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 Rl=Nt(function(e){return pr(Zt(fs,0,ys("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 Dl=Nt(function(e){return!nc(e)});const _l=Lt(function(e,t){return e||t});var Nl=us(pr(1,ri(ni,Lt(function(e,t){return dr(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ls(_l)(e,t)})(oi,ws))));const Ll=Rl([Ps,Nl,Dl]);const Bl=Lt(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 ql=class extends dl{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Bl(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Po(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ei(ws,["visitors",...e],this.specObj)?Po(["visitors",...e],this.specObj):Po(["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 ml&&(null==s?void 0:s.constructor)===ml?Mo(t):(Uo(t,s,r),s.element)}};const Ul=class extends ql{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(Ji(s)&&r.includes(Ko(s))&&!this.ignoredFields.includes(Ko(s))){const r=this.toRefractedElement([...t,"fixedFields",Ko(s)],e),i=new Pi.Pr(Mo(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ko(s))||this.element.content.push(Mo(n))}),this.copyMetaAndAttributes(e,this.element),lo}};const Vl=class{parent;constructor({parent:e}){this.parent=e}},Jl=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tl||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s)),Hl=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sl||e(s)&&t("JSONReference",s)&&r("object",s)),zl=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof il||e(s)&&t("media",s)&&r("object",s)),Gl=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cl||e(s)&&t("linkDescription",s)&&r("object",s));class Wl extends(Ml(Ul,Vl,ml)){constructor(e){super(e),this.element=new tl,this.specPath=ps(["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,Ul.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(ds(this.parent)&&!Ji(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Jl(this.parent)&&!Ji(e.get("$schema"))){const e=nr(Ko(this.parent.meta.get("inheritedDialectIdentifier")),Ko(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Mo(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Pi.wE,s=Ko(e.get(t));Ll(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Kl=Wl,Yl=e=>Wi(e)&&e.hasKey("$ref");class Xl extends(Ml(ql,Vl,ml)){ObjectElement(e){const t=Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),lo}ArrayElement(e){return this.element=new Pi.wE,this.element.classes.push("json-schema-items"),e.forEach(e=>{const t=Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const Ql=Xl;const Zl=class extends ml{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const eu=class extends ql{specPath;ignoredFields;fieldPatternPredicate=co;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(Ko(t))&&this.fieldPatternPredicate(Ko(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Pi.Pr(Mo(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ko(t))||this.element.content.push(Mo(r))}),this.copyMetaAndAttributes(e,this.element),lo}};const tu=class extends eu{constructor(e){super(e),this.fieldPatternPredicate=Ll}};class ru extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const su=ru;class nu extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const iu=nu;class ou extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const cu=ou;const au=class extends ml{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const lu=class extends ml{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 uu extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(e=>{const t=Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const pu=uu;class hu extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(e=>{const t=Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const du=hu;class mu extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(e=>{const t=Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const fu=mu;class yu extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Yl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const vu=yu;class gu extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.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),lo}}const bu=gu;class xu extends(Ml(Ul,ml)){constructor(e){super(e),this.element=new sl,this.specPath=ps(["document","objects","JSONReference"])}ObjectElement(e){const t=Ul.prototype.ObjectElement.call(this,e);return Ji(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Eu=xu;const wu=class extends ml{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const ju=Bt(function(e,t,r){return pr(Math.max(e.length,t.length,r.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})});const Su=Nt(function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}});var Ou=Lt(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const Pu=Ou;const $u=Nt(function(e){return or(0,e)});const Au=Nt($i);const ku=us(xo);const Tu=ri(ic,Dl);function Cu(e){return function(e){if(Array.isArray(e))return Fu(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 Fu(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)?Fu(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 Fu(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 Mu=sr(Pu(Su(function(e,t){return e.length>t.length})),$u,cr("length")),Iu=hr(function(e,t,r){var s=r.apply(void 0,Cu(e));return ku(s)?Au(s):t});const Ru=ju(Tu,function(e){var t=Mu(e);return pr(t,function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return Zt(Iu(r),void 0,e)})},hs);const Du=class extends ql{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>ju(e,ps(t),hs)),r=Ru(t)(e);return this.element=this.toRefractedElement(r,e),lo}};const _u=class extends Du{constructor(e){super(e),this.alternator=[{predicate:Yl,specPath:["document","objects","JSONReference"]},{predicate:oo,specPath:["document","objects","JSONSchema"]}]}};class Nu extends(Ml(Ul,ml)){constructor(e){super(e),this.element=new il,this.specPath=ps(["document","objects","Media"])}}const Lu=Nu;class Bu extends(Ml(Ul,ml)){constructor(e){super(e),this.element=new cl,this.specPath=ps(["document","objects","LinkDescription"])}}const qu=Bu,Uu={visitors:{value:ml,JSONSchemaOrJSONReferenceVisitor:_u,document:{objects:{JSONSchema:{$visitor:Kl,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:_u,items:Ql,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Zl,properties:su,additionalProperties:_u,patternProperties:iu,dependencies:cu,enum:au,type:lu,allOf:pu,anyOf:du,oneOf:fu,not:_u,definitions:vu,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:bu,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Eu,fixedFields:{$ref:wu}},Media:{$visitor:Lu,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:qu,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:_u,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:_u}}}}}},Vu=e=>{if(Vi(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ju={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bo},Hu={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",tl),t.register("jSONReference",sl),t.register("media",il),t.register("linkDescription",cl),t}},zu=()=>{const e=pc(Hu);return{predicates:{...o,isStringElement:Ji},namespace:e}},Gu=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Uu}={})=>{const n=(0,Pi.e)(e),i=Co(s),o=new(Po(t,i))({specObj:i});return Uo(n,o),fc(o.element,r,{toolboxCreator:zu,visitorOptions:{keyMap:Ju,nodeTypeGetter:Vu}})},Wu=e=>(t,r={})=>Gu(t,{specPath:e,...r});tl.refract=Wu(["visitors","document","objects","JSONSchema","$visitor"]),sl.refract=Wu(["visitors","document","objects","JSONReference","$visitor"]),il.refract=Wu(["visitors","document","objects","Media","$visitor"]),cl.refract=Wu(["visitors","document","objects","LinkDescription","$visitor"]);const Ku=class extends tl{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Za("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Za("idProp setter in Schema class is not not supported.")}get $schema(){throw new Za("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Za("$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 Za("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Za("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Za("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Za("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 Za("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Za("definitions setter in Schema class is not not supported.")}get base(){throw new Za("base getter in Schema class is not not supported.")}set base(e){throw new Za("base setter in Schema class is not not supported.")}get links(){throw new Za("links getter in Schema class is not not supported.")}set links(e){throw new Za("links setter in Schema class is not not supported.")}get media(){throw new Za("media getter in Schema class is not not supported.")}set media(e){throw new Za("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 Yu extends Pi.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Xu=Yu;class Qu extends Pi.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 Zu=Qu;class ep extends Pi.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 tp=ep;class rp extends Pi.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 sp=rp;class np extends Pi.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 ip=np;class op extends Pi.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 cp=op;const ap=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=hl(t.meta,e.meta)),so(e)&&Fo(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=hl(t.attributes,e.attributes))}};const lp=class extends ap{enter(e){return this.element=Mo(e),lo}};const up=class extends ap{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 Bl(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Po(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ei(ws,["visitors",...e],this.specObj)?Po(["visitors",...e],this.specObj):Po(["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 lp&&(null==s?void 0:s.constructor)===lp?Mo(t):(Uo(t,s,r),s.element)}};var pp=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Lr,e.prototype["@@transducer/result"]=Br,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?$i(r):r},e}();function hp(e){return function(t){return new pp(e,t)}}const dp=Lt(_r(["take"],hp,function(e,t){return tr(0,e<0?1/0:e,t)}));const mp=Lt(function(e,t){return kr(dp(e.length,t),e)}),fp=e=>Wi(e)&&e.hasKey("$ref"),yp=Wi,vp=Wi,gp=e=>Ji(e.key)&&mp("x-",Ko(e.key));const bp=class extends up{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=gp;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(Ji(s)&&r.includes(Ko(s))&&!this.ignoredFields.includes(Ko(s))){const r=this.toRefractedElement([...t,"fixedFields",Ko(s)],e),i=new Pi.Pr(Mo(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(Ko(s))||this.element.content.push(Mo(n))}),this.copyMetaAndAttributes(e,this.element),lo}};class xp extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Da,this.specPath=ps(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return bp.prototype.ObjectElement.call(this,e)}}const Ep=xp;class wp extends(Ml(up,lp)){StringElement(e){const t=new Ia(Ko(e));return this.copyMetaAndAttributes(e,t),this.element=t,lo}}const jp=wp;const Sp=class extends up{MemberElement(e){return this.element=Mo(e),this.element.classes.push("specification-extension"),lo}};class Op extends(Ml(bp,lp)){constructor(e){super(e),this.element=new wa,this.specPath=ps(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Pp=Op;const $p=class extends lp{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ap extends(Ml(bp,lp)){constructor(e){super(e),this.element=new ua,this.specPath=ps(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const kp=Ap;class Tp extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Sa,this.specPath=ps(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Cp=Tp;class Fp extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Pa,this.specPath=ps(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return(Ji(this.element.operationId)||Ji(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Mp=Fp;const Ip=class extends lp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Rp=class extends lp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Dp=class extends up{specPath;ignoredFields;fieldPatternPredicate=co;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=gp;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(Ko(t))&&this.fieldPatternPredicate(Ko(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Pi.Pr(Mo(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ko(t))||this.element.content.push(Mo(r))}),this.copyMetaAndAttributes(e,this.element),lo}};const _p=class extends Dp{constructor(e){super(e),this.fieldPatternPredicate=Ll}};class Np extends Pi.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass)}}const Lp=Np;class Bp extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Lp,this.specPath=ps(["value"])}}const qp=Bp;class Up extends(Ml(bp,lp)){constructor(e){super(e),this.element=new tp,this.specPath=ps(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Vp=Up;const Jp=class extends lp{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Hp extends Pi.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Hp.primaryClass)}}const zp=Hp;class Gp extends(Ml(up,lp)){constructor(e){super(e),this.element=new zp}ArrayElement(e){return e.forEach(e=>{const t=yp(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const Wp=Gp;class Kp extends(Ml(bp,lp)){constructor(e){super(e),this.element=new sp,this.specPath=ps(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Yp=Kp;class Xp extends Pi.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Xp.primaryClass)}}const Qp=Xp;class Zp extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Qp,this.specPath=ps(["document","objects","ServerVariable"])}}const eh=Zp;class th extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Aa,this.specPath=ps(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const rh=th;const sh=class extends up{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map(({predicate:e,specPath:t})=>ju(e,ps(t),hs)),r=Ru(t)(e);return this.element=this.toRefractedElement(r,e),lo}},nh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oa||e(s)&&t("callback",s)&&r("object",s)),ih=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aa||e(s)&&t("components",s)&&r("object",s)),oh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ua||e(s)&&t("contact",s)&&r("object",s)),ch=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ya||e(s)&&t("example",s)&&r("object",s)),ah=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ga||e(s)&&t("externalDocumentation",s)&&r("object",s)),lh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xa||e(s)&&t("header",s)&&r("object",s)),uh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wa||e(s)&&t("info",s)&&r("object",s)),ph=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sa||e(s)&&t("license",s)&&r("object",s)),hh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pa||e(s)&&t("link",s)&&r("object",s)),dh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ia||e(s)&&t("openapi",s)&&r("string",s)),mh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Da||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n)),fh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Na||e(s)&&t("operation",s)&&r("object",s)),yh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ba||e(s)&&t("parameter",s)&&r("object",s)),vh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ua||e(s)&&t("pathItem",s)&&r("object",s)),gh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ja||e(s)&&t("paths",s)&&r("object",s)),bh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof za||e(s)&&t("reference",s)&&r("object",s)),xh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wa||e(s)&&t("requestBody",s)&&r("object",s)),Eh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ya||e(s)&&t("response",s)&&r("object",s)),wh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qa||e(s)&&t("responses",s)&&r("object",s)),jh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ku||e(s)&&t("schema",s)&&r("object",s)),Sh=e=>Gi(e)&&e.classes.includes("boolean-json-schema"),Oh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xu||e(s)&&t("securityRequirement",s)&&r("object",s)),Ph=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zu||e(s)&&t("securityScheme",s)&&r("object",s)),$h=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tp||e(s)&&t("server",s)&&r("object",s)),Ah=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sp||e(s)&&t("serverVariable",s)&&r("object",s)),kh=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Aa||e(s)&&t("mediaType",s)&&r("object",s)),Th=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof zp||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)),Ch=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ha||e(s)&&t("discriminator",s)&&r("object",s));class Fh extends(Ml(sh,lp)){constructor(e){super(e),this.alternator=[{predicate:fp,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sh.prototype.enter.call(this,e);return bh(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Mh=Fh;class Ih extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("examples"),this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const Rh=Ih;class Dh extends Pi.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Dh.primaryClass),this.classes.push("examples")}}const _h=Dh;const Nh=class extends Rh{constructor(e){super(e),this.element=new _h}};class Lh extends Pi.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Lh.primaryClass)}}const Bh=Lh;class qh extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Bh,this.specPath=ps(["document","objects","Encoding"])}}const Uh=qh;class Vh extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Xu,this.specPath=ps(["value"])}}const Jh=Vh;class Hh extends Pi.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Hh.primaryClass)}}const zh=Hh;class Gh extends(Ml(up,lp)){constructor(e){super(e),this.element=new zh}ArrayElement(e){return e.forEach(e=>{if(Wi(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Mo(e))}),this.copyMetaAndAttributes(e,this.element),lo}}const Wh=Gh;class Kh extends(Ml(bp,lp)){constructor(e){super(e),this.element=new aa,this.specPath=ps(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Yh=Kh;class Xh extends(Ml(bp,lp)){constructor(e){super(e),this.element=new ip,this.specPath=ps(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Qh=Xh;class Zh extends(Ml(bp,lp)){constructor(e){super(e),this.element=new za,this.specPath=ps(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return Ji(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ed=Zh;const td=class extends lp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class rd extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Ba,this.specPath=ps(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return Wi(this.element.contentProp)&&this.element.contentProp.filter(kh).forEach((e,t)=>{e.setMetaProperty("media-type",Ko(t))}),t}}const sd=rd;class nd extends(Ml(sh,lp)){constructor(e){super(e),this.alternator=[{predicate:fp,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sh.prototype.enter.call(this,e);return bh(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const id=nd;class od extends(Ml(bp,lp)){constructor(e){super(e),this.element=new xa,this.specPath=ps(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const cd=od;class ad extends(Ml(sh,lp)){constructor(e){super(e),this.alternator=[{predicate:fp,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=sh.prototype.enter.call(this,e);return bh(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const ld=ad;class ud extends Pi.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ud.primaryClass),this.classes.push("examples")}}const pd=ud;const hd=class extends Rh{constructor(e){super(e),this.element=new pd}};class dd extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("content"),this.specPath=ps(["document","objects","MediaType"])}}const md=dd;class fd extends Pi.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(fd.primaryClass),this.classes.push("content")}}const yd=fd;const vd=class extends md{constructor(e){super(e),this.element=new yd}};class gd extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Ku,this.specPath=ps(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const bd=gd,xd=Uu.visitors.document.objects.JSONSchema.fixedFields.allOf;const Ed=class extends xd{ArrayElement(e){const t=xd.prototype.ArrayElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},wd=Uu.visitors.document.objects.JSONSchema.fixedFields.anyOf;const jd=class extends wd{ArrayElement(e){const t=wd.prototype.ArrayElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Sd=Uu.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Od=class extends Sd{ArrayElement(e){const t=Sd.prototype.ArrayElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Pd=Uu.visitors.document.objects.JSONSchema.fixedFields.items;const $d=class extends Pd{ObjectElement(e){const t=Pd.prototype.ObjectElement.call(this,e);return bh(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},Ad=Uu.visitors.document.objects.JSONSchema.fixedFields.properties;const kd=class extends Ad{ObjectElement(e){const t=Ad.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}},Td=Uu.visitors.document.objects.JSONSchema.fixedFields.type;const Cd=class extends Td{ArrayElement(e){return this.enter(e)}},Fd=Uu.visitors.JSONSchemaOrJSONReferenceVisitor;const Md=class extends Fd{ObjectElement(e){const t=Fd.prototype.enter.call(this,e);return bh(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Id extends(Ml(bp,lp)){constructor(e){super(e),this.element=new ha,this.specPath=ps(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Rd=Id;class Dd extends Pi.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Dd.primaryClass)}}const _d=Dd;class Nd extends(Ml(_p,lp)){constructor(e){super(e),this.element=new _d,this.specPath=ps(["value"])}}const Ld=Nd;class Bd extends(Ml(bp,lp)){constructor(e){super(e),this.element=new cp,this.specPath=ps(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const qd=Bd;class Ud extends Pi.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Ud.primaryClass),this.classes.push("examples")}}const Vd=Ud;const Jd=class extends Rh{constructor(e){super(e),this.element=new Vd}};class Hd extends Pi.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Hd.primaryClass),this.classes.push("content")}}const zd=Hd;const Gd=class extends md{constructor(e){super(e),this.element=new zd}};class Wd extends Pi.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Wd.primaryClass)}}const Kd=Wd;class Yd extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Kd,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","schema")}),t}}const Xd=Yd;class Qd extends Pi.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Qd.primaryClass)}}const Zd=Qd;class em extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Zd,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(Eh).forEach((e,t)=>{e.setMetaProperty("http-status-code",Ko(t))}),t}}const tm=em;class rm extends Pi.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(rm.primaryClass),this.classes.push("parameters")}}const sm=rm;class nm extends(Ml(_p,lp)){constructor(e){super(e),this.element=new sm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","parameter")}),t}}const im=nm;class om extends Pi.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(om.primaryClass),this.classes.push("examples")}}const cm=om;class am extends(Ml(_p,lp)){constructor(e){super(e),this.element=new cm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","example")}),t}}const lm=am;class um extends Pi.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(um.primaryClass)}}const pm=um;class hm extends(Ml(_p,lp)){constructor(e){super(e),this.element=new pm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","requestBody")}),t}}const dm=hm;class mm extends Pi.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(mm.primaryClass)}}const fm=mm;class ym extends(Ml(_p,lp)){constructor(e){super(e),this.element=new fm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.filter(lh).forEach((e,t)=>{e.setMetaProperty("header-name",Ko(t))}),t}}const vm=ym;class gm extends Pi.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(gm.primaryClass)}}const bm=gm;class xm extends(Ml(_p,lp)){constructor(e){super(e),this.element=new bm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","securityScheme")}),t}}const Em=xm;class wm extends Pi.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(wm.primaryClass)}}const jm=wm;class Sm extends(Ml(_p,lp)){constructor(e){super(e),this.element=new jm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const Om=Sm;class Pm extends Pi.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Pm.primaryClass)}}const $m=Pm;class Am extends(Ml(_p,lp)){constructor(e){super(e),this.element=new $m,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const km=Am;class Tm extends(Ml(bp,lp)){constructor(e){super(e),this.element=new ya,this.specPath=ps(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return Ji(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Cm=Tm;const Fm=class extends lp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Mm extends(Ml(bp,lp)){constructor(e){super(e),this.element=new ga,this.specPath=ps(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Im=Mm;class Rm extends(Ml(bp,lp)){constructor(e){super(e),this.element=new ma,this.specPath=ps(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return Wi(this.element.headers)&&this.element.headers.filter(lh).forEach((e,t)=>{e.setMetaProperty("header-name",Ko(t))}),t}}const Dm=Rm;class _m extends Pi.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(_m.primaryClass)}}const Nm=_m;class Lm extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Nm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!lh(e))return;const r=Ko(t);e.setMetaProperty("headerName",r)}),t}}const Bm=Lm;class qm extends(Ml(Dp,lp)){constructor(e){super(e),this.element=new Ja,this.specPath=ps(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=oo}ObjectElement(e){const t=Dp.prototype.ObjectElement.call(this,e);return this.element.filter(vh).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Mo(t))}),t}}const Um=qm;class Vm extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Wa,this.specPath=ps(["document","objects","RequestBody"])}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return Wi(this.element.contentProp)&&this.element.contentProp.filter(kh).forEach((e,t)=>{e.setMetaProperty("media-type",Ko(t))}),t}}const Jm=Vm;class Hm extends Pi.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Hm.primaryClass),this.classes.push("content")}}const zm=Hm;const Gm=class extends md{constructor(e){super(e),this.element=new zm}};class Wm extends(Ml(Dp,lp)){constructor(e){super(e),this.element=new oa,this.specPath=ps(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(vh).forEach((e,t)=>{e.setMetaProperty("runtime-expression",Ko(t))}),t}}const Km=Wm;class Ym extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Ya,this.specPath=ps(["document","objects","Response"])}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return Wi(this.element.contentProp)&&this.element.contentProp.filter(kh).forEach((e,t)=>{e.setMetaProperty("media-type",Ko(t))}),Wi(this.element.headers)&&this.element.headers.filter(lh).forEach((e,t)=>{e.setMetaProperty("header-name",Ko(t))}),t}}const Xm=Ym;class Qm extends Pi.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Qm.primaryClass)}}const Zm=Qm;class ef extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Zm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","header")}),this.element.forEach((e,t)=>{if(!lh(e))return;const r=Ko(t);e.setMetaProperty("header-name",r)}),t}}const tf=ef;class rf extends Pi.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(rf.primaryClass),this.classes.push("content")}}const sf=rf;const nf=class extends md{constructor(e){super(e),this.element=new sf}};class of extends Pi.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(of.primaryClass)}}const cf=of;class af extends(Ml(_p,lp)){constructor(e){super(e),this.element=new cf,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","link")}),t}}const lf=af;function uf(e){return"[object Number]"===Object.prototype.toString.call(e)}var pf=Lt(function(e,t){if(!uf(e)||!uf(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 hf=pf;function df(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?!!Tr(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?!!Tr(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const mf=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!df(e,!0,this)},e.prototype.has=function(e){return df(e,!1,this)},e}();const ff=Lt(function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new mf,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 yf extends(Ml(bp,Dp)){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,...ff(e.keys(),t)],bp.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Dp.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return lo}}const vf=yf;class gf extends(Ml(vf,lp)){constructor(e){super(e),this.element=new Qa,this.specPathFixedFields=ps(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>fp(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${hf(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=vf.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","response")}),this.element.filter(Eh).forEach((e,t)=>{const r=Mo(t);this.fieldPatternPredicate(Ko(r))&&e.setMetaProperty("http-status-code",r)}),t}}const bf=gf;class xf extends(Ml(sh,lp)){constructor(e){super(e),this.alternator=[{predicate:fp,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=sh.prototype.enter.call(this,e);return bh(this.element)?this.element.setMetaProperty("referenced-element","response"):Eh(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Ef=xf;class wf extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Na,this.specPath=ps(["document","objects","Operation"])}}const jf=wf;class Sf extends Pi.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Sf.primaryClass)}}const Of=Sf;const Pf=class extends lp{constructor(e){super(e),this.element=new Of}ArrayElement(e){return this.element=this.element.concat(Mo(e)),lo}};class $f extends Pi.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push($f.primaryClass),this.classes.push("parameters")}}const Af=$f;class kf extends(Ml(up,lp)){constructor(e){super(e),this.element=new Pi.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach(e=>{const t=fp(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);bh(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const Tf=kf;const Cf=class extends Tf{constructor(e){super(e),this.element=new Af}};const Ff=class extends sh{constructor(e){super(e),this.alternator=[{predicate:fp,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=sh.prototype.enter.call(this,e);return bh(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Mf extends Pi.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Mf.primaryClass)}}const If=Mf;class Rf extends(Ml(_p,lp)){specPath;constructor(e){super(e),this.element=new If,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bh).forEach(e=>{e.setMetaProperty("referenced-element","callback")}),t}}const Df=Rf;class _f extends Pi.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(_f.primaryClass),this.classes.push("security")}}const Nf=_f;class Lf extends(Ml(up,lp)){constructor(e){super(e),this.element=new Nf}ArrayElement(e){return e.forEach(e=>{const t=Wi(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const Bf=Lf;class qf extends Pi.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(qf.primaryClass),this.classes.push("servers")}}const Uf=qf;const Vf=class extends Wp{constructor(e){super(e),this.element=new Uf}};class Jf extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Ua,this.specPath=ps(["document","objects","PathItem"])}ObjectElement(e){const t=bp.prototype.ObjectElement.call(this,e);return this.element.filter(fh).forEach((e,t)=>{const r=Mo(t);r.content=Ko(r).toUpperCase(),e.setMetaProperty("http-method",r)}),Ji(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Hf=Jf;const zf=class extends lp{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Gf extends Pi.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Gf.primaryClass),this.classes.push("servers")}}const Wf=Gf;const Kf=class extends Wp{constructor(e){super(e),this.element=new Wf}};class Yf extends Pi.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Yf.primaryClass),this.classes.push("parameters")}}const Xf=Yf;const Qf=class extends Tf{constructor(e){super(e),this.element=new Xf}};class Zf extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Zu,this.specPath=ps(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const ey=Zf;class ty extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Fa,this.specPath=ps(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const ry=ty;class sy extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Ta,this.specPath=ps(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const ny=sy;class iy extends Pi.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(iy.primaryClass)}}const oy=iy;class cy extends(Ml(_p,lp)){constructor(e){super(e),this.element=new oy,this.specPath=ps(["value"])}}const ay=cy;class ly extends Pi.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(ly.primaryClass)}}const uy=ly;class py extends(Ml(up,lp)){constructor(e){super(e),this.element=new uy}ArrayElement(e){return e.forEach(e=>{const t=vp(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),lo}}const hy=py,{fixedFields:dy}=Uu.visitors.document.objects.JSONSchema,my={visitors:{value:lp,document:{objects:{OpenApi:{$visitor:Ep,fixedFields:{openapi:jp,info:{$ref:"#/visitors/document/objects/Info"},servers:Wp,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Wh,tags:hy,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Pp,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:$p}},Contact:{$visitor:kp,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Cp,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Vp,fixedFields:{url:Jp,description:{$ref:"#/visitors/value"},variables:eh}},ServerVariable:{$visitor:Yp,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Yh,fixedFields:{schemas:Xd,responses:tm,parameters:im,examples:lm,requestBodies:dm,headers:vm,securitySchemes:Em,links:Om,callbacks:km}},Paths:{$visitor:Um},PathItem:{$visitor:Hf,fixedFields:{$ref:zf,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:Kf,parameters:Qf}},Operation:{$visitor:jf,fixedFields:{tags:Pf,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Cf,requestBody:Ff,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Df,deprecated:{$ref:"#/visitors/value"},security:Bf,servers:Vf}},ExternalDocumentation:{$visitor:Im,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:sd,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:id,example:{$ref:"#/visitors/value"},examples:Jd,content:Gd}},RequestBody:{$visitor:Jm,fixedFields:{description:{$ref:"#/visitors/value"},content:Gm,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:rh,fixedFields:{schema:Mh,example:{$ref:"#/visitors/value"},examples:Nh,encoding:Uh}},Encoding:{$visitor:Dm,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Bm,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:bf,fixedFields:{default:Ef}},Response:{$visitor:Xm,fixedFields:{description:{$ref:"#/visitors/value"},headers:tf,content:nf,links:lf}},Callback:{$visitor:Km},Example:{$visitor:Cm,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Fm}},Link:{$visitor:Mp,fixedFields:{operationRef:Ip,operationId:Rp,parameters:qp,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:cd,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:ld,example:{$ref:"#/visitors/value"},examples:hd,content:vd}},Tag:{$visitor:Qh,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ed,fixedFields:{$ref:td}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:bd,fixedFields:{title:dy.title,multipleOf:dy.multipleOf,maximum:dy.maximum,exclusiveMaximum:dy.exclusiveMaximum,minimum:dy.minimum,exclusiveMinimum:dy.exclusiveMinimum,maxLength:dy.maxLength,minLength:dy.minLength,pattern:dy.pattern,maxItems:dy.maxItems,minItems:dy.minItems,uniqueItems:dy.uniqueItems,maxProperties:dy.maxProperties,minProperties:dy.minProperties,required:dy.required,enum:dy.enum,type:Cd,allOf:Ed,anyOf:jd,oneOf:Od,not:Md,items:$d,properties:kd,additionalProperties:Md,description:dy.description,format:dy.format,default:dy.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:Rd,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Ld}},XML:{$visitor:qd,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:ey,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:ry,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:ny,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:ay}},SecurityRequirement:{$visitor:Jh}},extension:{$visitor:Sp}}}},fy=e=>{if(Vi(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},yy={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"],...Bo},vy={namespace:e=>{const{base:t}=e;return t.register("callback",oa),t.register("components",aa),t.register("contact",ua),t.register("discriminator",ha),t.register("encoding",ma),t.register("example",ya),t.register("externalDocumentation",ga),t.register("header",xa),t.register("info",wa),t.register("license",Sa),t.register("link",Pa),t.register("mediaType",Aa),t.register("oAuthFlow",Ta),t.register("oAuthFlows",Fa),t.register("openapi",Ia),t.register("openApi3_0",Da),t.register("operation",Na),t.register("parameter",Ba),t.register("pathItem",Ua),t.register("paths",Ja),t.register("reference",za),t.register("requestBody",Wa),t.register("response",Ya),t.register("responses",Qa),t.register("schema",Ku),t.register("securityRequirement",Xu),t.register("securityScheme",Zu),t.register("server",tp),t.register("serverVariable",sp),t.register("tag",ip),t.register("xml",cp),t}},gy=()=>{const e=pc(vy);return{predicates:{...c,isElement:Vi,isStringElement:Ji,isArrayElement:Ki,isObjectElement:Wi,isMemberElement:Yi,includesClasses:io,hasElementSourceMap:so},namespace:e}},by=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Pi.e)(e),n=Co(my),i=new(Po(t,n))({specObj:n});return Uo(s,i),fc(i.element,r,{toolboxCreator:gy,visitorOptions:{keyMap:yy,nodeTypeGetter:fy}})},xy=e=>(t,r={})=>by(t,{specPath:e,...r});oa.refract=xy(["visitors","document","objects","Callback","$visitor"]),aa.refract=xy(["visitors","document","objects","Components","$visitor"]),ua.refract=xy(["visitors","document","objects","Contact","$visitor"]),ya.refract=xy(["visitors","document","objects","Example","$visitor"]),ha.refract=xy(["visitors","document","objects","Discriminator","$visitor"]),ma.refract=xy(["visitors","document","objects","Encoding","$visitor"]),ga.refract=xy(["visitors","document","objects","ExternalDocumentation","$visitor"]),xa.refract=xy(["visitors","document","objects","Header","$visitor"]),wa.refract=xy(["visitors","document","objects","Info","$visitor"]),Sa.refract=xy(["visitors","document","objects","License","$visitor"]),Pa.refract=xy(["visitors","document","objects","Link","$visitor"]),Aa.refract=xy(["visitors","document","objects","MediaType","$visitor"]),Ta.refract=xy(["visitors","document","objects","OAuthFlow","$visitor"]),Fa.refract=xy(["visitors","document","objects","OAuthFlows","$visitor"]),Ia.refract=xy(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Da.refract=xy(["visitors","document","objects","OpenApi","$visitor"]),Na.refract=xy(["visitors","document","objects","Operation","$visitor"]),Ba.refract=xy(["visitors","document","objects","Parameter","$visitor"]),Ua.refract=xy(["visitors","document","objects","PathItem","$visitor"]),Ja.refract=xy(["visitors","document","objects","Paths","$visitor"]),za.refract=xy(["visitors","document","objects","Reference","$visitor"]),Wa.refract=xy(["visitors","document","objects","RequestBody","$visitor"]),Ya.refract=xy(["visitors","document","objects","Response","$visitor"]),Qa.refract=xy(["visitors","document","objects","Responses","$visitor"]),Ku.refract=xy(["visitors","document","objects","Schema","$visitor"]),Xu.refract=xy(["visitors","document","objects","SecurityRequirement","$visitor"]),Zu.refract=xy(["visitors","document","objects","SecurityScheme","$visitor"]),tp.refract=xy(["visitors","document","objects","Server","$visitor"]),sp.refract=xy(["visitors","document","objects","ServerVariable","$visitor"]),ip.refract=xy(["visitors","document","objects","Tag","$visitor"]),cp.refract=xy(["visitors","document","objects","XML","$visitor"]);const Ey=class extends oa{};const wy=class extends aa{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const jy=class extends ua{};const Sy=class extends ha{};const Oy=class extends ma{};const Py=class extends ya{};const $y=class extends ga{};const Ay=class extends xa{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ky=class extends wa{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 Ty extends Pi.Om{static default=new Ty("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Cy=Ty;const Fy=class extends Sa{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const My=class extends Pa{};const Iy=class extends Aa{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ry=class extends Ta{};const Dy=class extends Fa{};const _y=class extends Ia{};class Ny extends Pi.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 Ly=Ny;const By=class extends Na{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const qy=class extends Ba{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Uy=class extends Ua{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 Vy=class extends Ja{};class Jy extends za{}Object.defineProperty(Jy.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Jy.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Hy=Jy;const zy=class extends Wa{};const Gy=class extends Ya{};const Wy=class extends Qa{};const Ky=class extends tl{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Za("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Za("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 Yy=class extends cl{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 Za("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Za("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 Za("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Za("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Za("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Za("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 Xy=Bt(function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!xo(s)&&yr(n,s)&&"object"==typeof s[n]?s[n]:ir(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(ir(e)&&qt(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 Qy=Xy;const Zy=Bt(function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s});var ev=Bt(function(e,t,r){return Qy([e],t,r)});const tv=ev;var rv=Lt(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(ir(e)&&qt(t))return Zy(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(ir(e)&&qt(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):tv(s,e(n,r[s]),r)}});const sv=rv;const nv=class extends Kl{constructor(e){super(e),this.element=new Ky}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 iv=class extends Ql{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),lo}};const ov=class extends ml{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const cv=class extends qu{constructor(e){super(e),this.element=new Yy}},av=sr(Qy(["visitors","document","objects","JSONSchema","$visitor"],nv),sv(["visitors","document","objects","JSONSchema","fixedFields","id"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","$id"],Uu.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","contains"],Uu.visitors.JSONSchemaOrJSONReferenceVisitor),Qy(["visitors","document","objects","JSONSchema","fixedFields","items"],iv),Qy(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Uu.visitors.JSONSchemaOrJSONReferenceVisitor),Qy(["visitors","document","objects","JSONSchema","fixedFields","const"],Uu.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","examples"],ov),Qy(["visitors","document","objects","LinkDescription","$visitor"],cv),Qy(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Uu.visitors.JSONSchemaOrJSONReferenceVisitor),sv(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Qy(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Uu.visitors.JSONSchemaOrJSONReferenceVisitor),sv(["visitors","document","objects","LinkDescription","fixedFields","method"]),sv(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Qy(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Uu.visitors.value))(Uu),lv={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Bo},uv=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ky||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s)),pv=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yy||e(s)&&t("linkDescription",s)&&r("object",s)),hv={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Ky),t.register("jSONReference",sl),t.register("media",il),t.register("linkDescription",Yy),t}},dv=()=>{const e=pc(hv);return{predicates:{...a,isStringElement:Ji},namespace:e}},mv=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=av}={})=>{const n=(0,Pi.e)(e),i=Co(s),o=new(Po(t,i))({specObj:i});return Uo(n,o),fc(o.element,r,{toolboxCreator:dv,visitorOptions:{keyMap:lv,nodeTypeGetter:Vu}})},fv=e=>(t,r={})=>mv(t,{specPath:e,...r});Ky.refract=fv(["visitors","document","objects","JSONSchema","$visitor"]),Yy.refract=fv(["visitors","document","objects","LinkDescription","$visitor"]);const yv=class extends Ky{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 Za('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Za('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 vv=class extends Yy{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 Za("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Za("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 Za("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Za("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 gv=class extends nv{constructor(e){super(e),this.element=new yv}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const bv=class extends cv{constructor(e){super(e),this.element=new vv}},xv=sr(Qy(["visitors","document","objects","JSONSchema","$visitor"],gv),Qy(["visitors","document","objects","JSONSchema","fixedFields","$comment"],av.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","if"],av.visitors.JSONSchemaOrJSONReferenceVisitor),Qy(["visitors","document","objects","JSONSchema","fixedFields","then"],av.visitors.JSONSchemaOrJSONReferenceVisitor),Qy(["visitors","document","objects","JSONSchema","fixedFields","else"],av.visitors.JSONSchemaOrJSONReferenceVisitor),sv(["visitors","document","objects","JSONSchema","fixedFields","media"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],av.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],av.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],av.visitors.value),Qy(["visitors","document","objects","LinkDescription","$visitor"],bv),Qy(["visitors","document","objects","LinkDescription","fixedFields","anchor"],av.visitors.value),Qy(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],av.visitors.value),sv(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Qy(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],av.visitors.value),Qy(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],av.visitors.value),Qy(["visitors","document","objects","LinkDescription","fixedFields","description"],av.visitors.value),Qy(["visitors","document","objects","LinkDescription","fixedFields","$comment"],av.visitors.value),Qy(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],av.visitors.JSONSchemaOrJSONReferenceVisitor),sv(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Qy(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],av.visitors.value))(av),Ev={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Bo},wv=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yv||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s)),jv=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vv||e(s)&&t("linkDescription",s)&&r("object",s)),Sv={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",yv),t.register("jSONReference",sl),t.register("linkDescription",vv),t}},Ov=()=>{const e=pc(Sv);return{predicates:{...l,isStringElement:Ji},namespace:e}},Pv=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=xv}={})=>{const n=(0,Pi.e)(e),i=Co(s),o=new(Po(t,i))({specObj:i});return Uo(n,o),fc(o.element,r,{toolboxCreator:Ov,visitorOptions:{keyMap:Ev,nodeTypeGetter:Vu}})},$v=e=>(t,r={})=>Pv(t,{specPath:e,...r});yv.refract=$v(["visitors","document","objects","JSONSchema","$visitor"]),vv.refract=$v(["visitors","document","objects","LinkDescription","$visitor"]);const Av=class extends yv{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 Za("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Za("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 Za("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Za("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 kv=class extends vv{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 Tv=class extends gv{constructor(e){super(e),this.element=new Av}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=Ul.prototype.ObjectElement.call(this,e);return Ji(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Cv=class extends ml{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Fv=class extends ml{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Mv extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ps(["document","objects","JSONSchema"])}}const Iv=Mv;class Rv extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.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),lo}}const Dv=Rv;class _v extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.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),lo}}const Nv=_v;class Lv extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.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),lo}}const Bv=Lv;class qv extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ps(["document","objects","JSONSchema"])}}const Uv=qv;class Vv extends(Ml(ql,Vl,ml)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),lo}ArrayElement(e){return this.element=new Pi.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),lo}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),lo}}const Jv=Vv;class Hv extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ps(["document","objects","JSONSchema"])}}const zv=Hv;class Gv extends(Ml(tu,Vl,ml)){constructor(e){super(e),this.element=new Pi.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ps(["document","objects","JSONSchema"])}}const Wv=Gv;const Kv=class extends ml{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Yv=class extends bv{constructor(e){super(e),this.element=new kv}},Xv=sr(Qy(["visitors","document","objects","JSONSchema","$visitor"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Cv),Qy(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],xv.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],xv.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],xv.visitors.value),sv(["visitors","document","objects","JSONReference","$visitor"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Fv),sv(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Iv),Qy(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Dv),Qy(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Nv),Qy(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Bv),Qy(["visitors","document","objects","JSONSchema","fixedFields","not"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","if"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","then"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","else"],Tv),sv(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Uv),Qy(["visitors","document","objects","JSONSchema","fixedFields","items"],Jv),Qy(["visitors","document","objects","JSONSchema","fixedFields","contains"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","properties"],zv),Qy(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Wv),Qy(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Tv),Qy(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],xv.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","minContains"],xv.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Kv),Qy(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],xv.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Tv),Qy(["visitors","document","objects","LinkDescription","$visitor"],Yv),Qy(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Tv),Qy(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Tv),Qy(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Tv),Qy(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Tv))(xv),Qv={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Bo},Zv=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Av||e(s)&&t("JSONSchema201909",s)&&r("object",s)),eg=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kv||e(s)&&t("linkDescription",s)&&r("object",s)),tg={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Av),t.register("linkDescription",kv),t}},rg=()=>{const e=pc(tg);return{predicates:{...u,isStringElement:Ji},namespace:e}},sg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Xv}={})=>{const n=(0,Pi.e)(e),i=Co(s),o=new(Po(t,i))({specObj:i});return Uo(n,o),fc(o.element,r,{toolboxCreator:rg,visitorOptions:{keyMap:Qv,nodeTypeGetter:Vu}})},ng=e=>(t,r={})=>sg(t,{specPath:e,...r});Av.refract=ng(["visitors","document","objects","JSONSchema","$visitor"]),kv.refract=ng(["visitors","document","objects","LinkDescription","$visitor"]);const ig=class extends Av{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 Za("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Za("$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 Za("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Za("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const og=class extends kv{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 cg=class extends Tv{constructor(e){super(e),this.element=new ig}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class ag extends(Ml(ql,Vl,ml)){constructor(e){super(e),this.element=new Pi.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),lo}}const lg=ag;const ug=class extends Yv{constructor(e){super(e),this.element=new og}},pg=sr(Qy(["visitors","document","objects","JSONSchema","$visitor"],cg),sv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Xv.visitors.value),sv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Xv.visitors.value),Qy(["visitors","document","objects","JSONSchema","fixedFields","not"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","if"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","then"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","else"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],lg),Qy(["visitors","document","objects","JSONSchema","fixedFields","items"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","contains"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],cg),sv(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Qy(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],cg),Qy(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],cg),Qy(["visitors","document","objects","LinkDescription","$visitor"],ug),Qy(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],cg),Qy(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],cg),Qy(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],cg),Qy(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],cg))(Xv),hg={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Bo},dg=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ig||e(s)&&t("JSONSchema202012",s)&&r("object",s)),mg=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof og||e(s)&&t("linkDescription",s)&&r("object",s)),fg={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",ig),t.register("linkDescription",og),t}},yg=()=>{const e=pc(fg);return{predicates:{...p,isStringElement:Ji},namespace:e}},vg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=pg}={})=>{const n=(0,Pi.e)(e),i=Co(s),o=new(Po(t,i))({specObj:i});return Uo(n,o),fc(o.element,r,{toolboxCreator:yg,visitorOptions:{keyMap:hg,nodeTypeGetter:Vu}})},gg=e=>(t,r={})=>vg(t,{specPath:e,...r});ig.refract=gg(["visitors","document","objects","JSONSchema","$visitor"]),og.refract=gg(["visitors","document","objects","LinkDescription","$visitor"]);const bg=class extends ig{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 xg=class extends Xu{};const Eg=class extends Zu{};const wg=class extends tp{};const jg=class extends sp{};const Sg=class extends ip{};const Og=class extends cp{};class Pg extends(Ml(bp,lp)){constructor(e){super(e),this.element=new Ly,this.specPath=ps(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,bp.prototype.ObjectElement.call(this,e)}}const $g=Pg,Ag=my.visitors.document.objects.Info.$visitor;const kg=class extends Ag{constructor(e){super(e),this.element=new ky}},Tg=my.visitors.document.objects.Contact.$visitor;const Cg=class extends Tg{constructor(e){super(e),this.element=new jy}},Fg=my.visitors.document.objects.License.$visitor;const Mg=class extends Fg{constructor(e){super(e),this.element=new Fy}},Ig=my.visitors.document.objects.Link.$visitor;const Rg=class extends Ig{constructor(e){super(e),this.element=new My}};class Dg extends(Ml(up,lp)){StringElement(e){const t=new Cy(Ko(e));return this.copyMetaAndAttributes(e,t),this.element=t,lo}}const _g=Dg,Ng=my.visitors.document.objects.Server.$visitor;const Lg=class extends Ng{constructor(e){super(e),this.element=new wg}},Bg=my.visitors.document.objects.ServerVariable.$visitor;const qg=class extends Bg{constructor(e){super(e),this.element=new jg}},Ug=my.visitors.document.objects.MediaType.$visitor;const Vg=class extends Ug{constructor(e){super(e),this.element=new Iy}},Jg=my.visitors.document.objects.SecurityRequirement.$visitor;const Hg=class extends Jg{constructor(e){super(e),this.element=new xg}},zg=my.visitors.document.objects.Components.$visitor;const Gg=class extends zg{constructor(e){super(e),this.element=new wy}},Wg=my.visitors.document.objects.Tag.$visitor;const Kg=class extends Wg{constructor(e){super(e),this.element=new Sg}},Yg=my.visitors.document.objects.Reference.$visitor;const Xg=class extends Yg{constructor(e){super(e),this.element=new Hy}},Qg=my.visitors.document.objects.Parameter.$visitor;const Zg=class extends Qg{constructor(e){super(e),this.element=new qy}},eb=my.visitors.document.objects.Header.$visitor;const tb=class extends eb{constructor(e){super(e),this.element=new Ay}},rb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ey||e(s)&&t("callback",s)&&r("object",s)),sb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wy||e(s)&&t("components",s)&&r("object",s)),nb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jy||e(s)&&t("contact",s)&&r("object",s)),ib=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Py||e(s)&&t("example",s)&&r("object",s)),ob=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $y||e(s)&&t("externalDocumentation",s)&&r("object",s)),cb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ay||e(s)&&t("header",s)&&r("object",s)),ab=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ky||e(s)&&t("info",s)&&r("object",s)),lb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cy||e(s)&&t("jsonSchemaDialect",s)&&r("string",s)),ub=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fy||e(s)&&t("license",s)&&r("object",s)),pb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof My||e(s)&&t("link",s)&&r("object",s)),hb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _y||e(s)&&t("openapi",s)&&r("string",s)),db=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Ly||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n)),mb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof By||e(s)&&t("operation",s)&&r("object",s)),fb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qy||e(s)&&t("parameter",s)&&r("object",s)),yb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Uy||e(s)&&t("pathItem",s)&&r("object",s)),vb=e=>{if(!yb(e))return!1;if(!Ji(e.$ref))return!1;const t=Ko(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vy||e(s)&&t("paths",s)&&r("object",s)),bb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hy||e(s)&&t("reference",s)&&r("object",s)),xb=e=>{if(!bb(e))return!1;if(!Ji(e.$ref))return!1;const t=Ko(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Eb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zy||e(s)&&t("requestBody",s)&&r("object",s)),wb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gy||e(s)&&t("response",s)&&r("object",s)),jb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wy||e(s)&&t("responses",s)&&r("object",s)),Sb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bg||e(s)&&t("schema",s)&&r("object",s)),Ob=e=>Gi(e)&&e.classes.includes("boolean-json-schema"),Pb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xg||e(s)&&t("securityRequirement",s)&&r("object",s)),$b=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Eg||e(s)&&t("securityScheme",s)&&r("object",s)),Ab=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wg||e(s)&&t("server",s)&&r("object",s)),kb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jg||e(s)&&t("serverVariable",s)&&r("object",s)),Tb=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Iy||e(s)&&t("mediaType",s)&&r("object",s));class Cb extends(Ml(bp,Vl,lp)){constructor(e){super(e),this.element=new bg,this.specPath=ps(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Cy.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=bp.prototype.ObjectElement.call(this,e);return Ji(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return cg.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&lb(this.openApiSemanticElement.jsonSchemaDialect)?Ko(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ji(this.openApiGenericElement.get("jsonSchemaDialect"))?Ko(this.openApiGenericElement.get("jsonSchemaDialect")):Ko(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return cg.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return cg.prototype.handleSchemaIdentifier.call(this,e)}}const Fb=Cb;const Mb=class extends Iv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Ib=class extends Dv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Rb=class extends Nv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Db=class extends Bv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const _b=class extends Uv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Nb=class extends lg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Lb=class extends zv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Bb=class extends Wv{constructor(e){super(e),this.passingOptionsNames.push("parent")}},qb=my.visitors.document.objects.Discriminator.$visitor;const Ub=class extends qb{constructor(e){super(e),this.element=new Sy,this.canSupportSpecificationExtensions=!0}},Vb=my.visitors.document.objects.XML.$visitor;const Jb=class extends Vb{constructor(e){super(e),this.element=new Og}};class Hb extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Kd,this.specPath=ps(["document","objects","Schema"])}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(Sb).forEach((e,t)=>{e.setMetaProperty("schemaName",Ko(t))}),t}}const zb=Hb;class Gb extends Pi.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(Gb.primaryClass)}}const Wb=Gb;class Kb extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Wb,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bb).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}}const Yb=Kb,Xb=my.visitors.document.objects.Example.$visitor;const Qb=class extends Xb{constructor(e){super(e),this.element=new Py}},Zb=my.visitors.document.objects.ExternalDocumentation.$visitor;const ex=class extends Zb{constructor(e){super(e),this.element=new $y}},tx=my.visitors.document.objects.Encoding.$visitor;const rx=class extends tx{constructor(e){super(e),this.element=new Oy}},sx=my.visitors.document.objects.Paths.$visitor;const nx=class extends sx{constructor(e){super(e),this.element=new Vy}},ix=my.visitors.document.objects.RequestBody.$visitor;const ox=class extends ix{constructor(e){super(e),this.element=new zy}},cx=my.visitors.document.objects.Callback.$visitor;const ax=class extends cx{constructor(e){super(e),this.element=new Ey,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=cx.prototype.ObjectElement.call(this,e);return this.element.filter(bb).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}},lx=my.visitors.document.objects.Response.$visitor;const ux=class extends lx{constructor(e){super(e),this.element=new Gy}},px=my.visitors.document.objects.Responses.$visitor;const hx=class extends px{constructor(e){super(e),this.element=new Wy}},dx=my.visitors.document.objects.Operation.$visitor;const mx=class extends dx{constructor(e){super(e),this.element=new By}},fx=my.visitors.document.objects.PathItem.$visitor;const yx=class extends fx{constructor(e){super(e),this.element=new Uy}},vx=my.visitors.document.objects.SecurityScheme.$visitor;const gx=class extends vx{constructor(e){super(e),this.element=new Eg}},bx=my.visitors.document.objects.OAuthFlows.$visitor;const xx=class extends bx{constructor(e){super(e),this.element=new Dy}},Ex=my.visitors.document.objects.OAuthFlow.$visitor;const wx=class extends Ex{constructor(e){super(e),this.element=new Ry}};class jx extends Pi.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(jx.primaryClass)}}const Sx=jx;class Ox extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Sx,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(bb).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),this.element.filter(yb).forEach((e,t)=>{e.setMetaProperty("webhook-name",Ko(t))}),t}}const Px=Ox,{JSONSchema:$x,LinkDescription:Ax}=pg.visitors.document.objects,kx={visitors:{value:my.visitors.value,document:{objects:{OpenApi:{$visitor:$g,fixedFields:{openapi:my.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:_g,servers:my.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Px,components:{$ref:"#/visitors/document/objects/Components"},security:my.visitors.document.objects.OpenApi.fixedFields.security,tags:my.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:kg,fixedFields:{title:my.visitors.document.objects.Info.fixedFields.title,description:my.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:my.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:my.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Cg,fixedFields:{name:my.visitors.document.objects.Contact.fixedFields.name,url:my.visitors.document.objects.Contact.fixedFields.url,email:my.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Mg,fixedFields:{name:my.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:my.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Lg,fixedFields:{url:my.visitors.document.objects.Server.fixedFields.url,description:my.visitors.document.objects.Server.fixedFields.description,variables:my.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:qg,fixedFields:{enum:my.visitors.document.objects.ServerVariable.fixedFields.enum,default:my.visitors.document.objects.ServerVariable.fixedFields.default,description:my.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Gg,fixedFields:{schemas:zb,responses:my.visitors.document.objects.Components.fixedFields.responses,parameters:my.visitors.document.objects.Components.fixedFields.parameters,examples:my.visitors.document.objects.Components.fixedFields.examples,requestBodies:my.visitors.document.objects.Components.fixedFields.requestBodies,headers:my.visitors.document.objects.Components.fixedFields.headers,securitySchemes:my.visitors.document.objects.Components.fixedFields.securitySchemes,links:my.visitors.document.objects.Components.fixedFields.links,callbacks:my.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Yb}},Paths:{$visitor:nx},PathItem:{$visitor:yx,fixedFields:{$ref:my.visitors.document.objects.PathItem.fixedFields.$ref,summary:my.visitors.document.objects.PathItem.fixedFields.summary,description:my.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:my.visitors.document.objects.PathItem.fixedFields.servers,parameters:my.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:mx,fixedFields:{tags:my.visitors.document.objects.Operation.fixedFields.tags,summary:my.visitors.document.objects.Operation.fixedFields.summary,description:my.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:my.visitors.document.objects.Operation.fixedFields.operationId,parameters:my.visitors.document.objects.Operation.fixedFields.parameters,requestBody:my.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:my.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:my.visitors.document.objects.Operation.fixedFields.deprecated,security:my.visitors.document.objects.Operation.fixedFields.security,servers:my.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:ex,fixedFields:{description:my.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:my.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Zg,fixedFields:{name:my.visitors.document.objects.Parameter.fixedFields.name,in:my.visitors.document.objects.Parameter.fixedFields.in,description:my.visitors.document.objects.Parameter.fixedFields.description,required:my.visitors.document.objects.Parameter.fixedFields.required,deprecated:my.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:my.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:my.visitors.document.objects.Parameter.fixedFields.style,explode:my.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:my.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:my.visitors.document.objects.Parameter.fixedFields.example,examples:my.visitors.document.objects.Parameter.fixedFields.examples,content:my.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ox,fixedFields:{description:my.visitors.document.objects.RequestBody.fixedFields.description,content:my.visitors.document.objects.RequestBody.fixedFields.content,required:my.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Vg,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:my.visitors.document.objects.MediaType.fixedFields.example,examples:my.visitors.document.objects.MediaType.fixedFields.examples,encoding:my.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:rx,fixedFields:{contentType:my.visitors.document.objects.Encoding.fixedFields.contentType,headers:my.visitors.document.objects.Encoding.fixedFields.headers,style:my.visitors.document.objects.Encoding.fixedFields.style,explode:my.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:my.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:hx,fixedFields:{default:my.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:ux,fixedFields:{description:my.visitors.document.objects.Response.fixedFields.description,headers:my.visitors.document.objects.Response.fixedFields.headers,content:my.visitors.document.objects.Response.fixedFields.content,links:my.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:ax},Example:{$visitor:Qb,fixedFields:{summary:my.visitors.document.objects.Example.fixedFields.summary,description:my.visitors.document.objects.Example.fixedFields.description,value:my.visitors.document.objects.Example.fixedFields.value,externalValue:my.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Rg,fixedFields:{operationRef:my.visitors.document.objects.Link.fixedFields.operationRef,operationId:my.visitors.document.objects.Link.fixedFields.operationId,parameters:my.visitors.document.objects.Link.fixedFields.parameters,requestBody:my.visitors.document.objects.Link.fixedFields.requestBody,description:my.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:tb,fixedFields:{description:my.visitors.document.objects.Header.fixedFields.description,required:my.visitors.document.objects.Header.fixedFields.required,deprecated:my.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:my.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:my.visitors.document.objects.Header.fixedFields.style,explode:my.visitors.document.objects.Header.fixedFields.explode,allowReserved:my.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:my.visitors.document.objects.Header.fixedFields.example,examples:my.visitors.document.objects.Header.fixedFields.examples,content:my.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Kg,fixedFields:{name:my.visitors.document.objects.Tag.fixedFields.name,description:my.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Xg,fixedFields:{$ref:my.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Ax},Schema:{$visitor:Fb,fixedFields:{...$x.fixedFields,$defs:Mb,allOf:Ib,anyOf:Rb,oneOf:Db,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:_b,prefixItems:Nb,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Lb,patternProperties:Bb,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:Ub,fixedFields:{propertyName:my.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:my.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Jb,fixedFields:{name:my.visitors.document.objects.XML.fixedFields.name,namespace:my.visitors.document.objects.XML.fixedFields.namespace,prefix:my.visitors.document.objects.XML.fixedFields.prefix,attribute:my.visitors.document.objects.XML.fixedFields.attribute,wrapped:my.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:gx,fixedFields:{type:my.visitors.document.objects.SecurityScheme.fixedFields.type,description:my.visitors.document.objects.SecurityScheme.fixedFields.description,name:my.visitors.document.objects.SecurityScheme.fixedFields.name,in:my.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:my.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:my.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:my.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:xx,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:wx,fixedFields:{authorizationUrl:my.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:my.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:my.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:my.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Hg}},extension:{$visitor:my.visitors.document.extension.$visitor}}}},Tx=e=>{if(Vi(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Cx={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"],...Bo},Fx={namespace:e=>{const{base:t}=e;return t.register("callback",Ey),t.register("components",wy),t.register("contact",jy),t.register("discriminator",Sy),t.register("encoding",Oy),t.register("example",Py),t.register("externalDocumentation",$y),t.register("header",Ay),t.register("info",ky),t.register("jsonSchemaDialect",Cy),t.register("license",Fy),t.register("link",My),t.register("mediaType",Iy),t.register("oAuthFlow",Ry),t.register("oAuthFlows",Dy),t.register("openapi",_y),t.register("openApi3_1",Ly),t.register("operation",By),t.register("parameter",qy),t.register("pathItem",Uy),t.register("paths",Vy),t.register("reference",Hy),t.register("requestBody",zy),t.register("response",Gy),t.register("responses",Wy),t.register("schema",bg),t.register("securityRequirement",xg),t.register("securityScheme",Eg),t.register("server",wg),t.register("serverVariable",jg),t.register("tag",Sg),t.register("xml",Og),t}},Mx=e=>{const t=e.reduce((t,r,s)=>{if(Yi(r)){const e=String(Ko(r.key));t.push(e)}else if(Ki(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t},[]);return Wc(t)},Ix=()=>{const e=pc(Fx);return{predicates:{...h,isElement:Vi,isStringElement:Ji,isArrayElement:Ki,isObjectElement:Wi,isMemberElement:Yi,isServersElement:Th,includesClasses:io,hasElementSourceMap:so},ancestorLineageToJSONPointer:Mx,namespace:e}},Rx=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Pi.e)(e),n=Co(kx),i=new(Po(t,n))({specObj:n});return Uo(s,i),fc(i.element,r,{toolboxCreator:Ix,visitorOptions:{keyMap:Cx,nodeTypeGetter:Tx}})},Dx=e=>(t,r={})=>Rx(t,{specPath:e,...r});Ey.refract=Dx(["visitors","document","objects","Callback","$visitor"]),wy.refract=Dx(["visitors","document","objects","Components","$visitor"]),jy.refract=Dx(["visitors","document","objects","Contact","$visitor"]),Py.refract=Dx(["visitors","document","objects","Example","$visitor"]),Sy.refract=Dx(["visitors","document","objects","Discriminator","$visitor"]),Oy.refract=Dx(["visitors","document","objects","Encoding","$visitor"]),$y.refract=Dx(["visitors","document","objects","ExternalDocumentation","$visitor"]),Ay.refract=Dx(["visitors","document","objects","Header","$visitor"]),ky.refract=Dx(["visitors","document","objects","Info","$visitor"]),Cy.refract=Dx(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Fy.refract=Dx(["visitors","document","objects","License","$visitor"]),My.refract=Dx(["visitors","document","objects","Link","$visitor"]),Iy.refract=Dx(["visitors","document","objects","MediaType","$visitor"]),Ry.refract=Dx(["visitors","document","objects","OAuthFlow","$visitor"]),Dy.refract=Dx(["visitors","document","objects","OAuthFlows","$visitor"]),_y.refract=Dx(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ly.refract=Dx(["visitors","document","objects","OpenApi","$visitor"]),By.refract=Dx(["visitors","document","objects","Operation","$visitor"]),qy.refract=Dx(["visitors","document","objects","Parameter","$visitor"]),Uy.refract=Dx(["visitors","document","objects","PathItem","$visitor"]),Vy.refract=Dx(["visitors","document","objects","Paths","$visitor"]),Hy.refract=Dx(["visitors","document","objects","Reference","$visitor"]),zy.refract=Dx(["visitors","document","objects","RequestBody","$visitor"]),Gy.refract=Dx(["visitors","document","objects","Response","$visitor"]),Wy.refract=Dx(["visitors","document","objects","Responses","$visitor"]),bg.refract=Dx(["visitors","document","objects","Schema","$visitor"]),xg.refract=Dx(["visitors","document","objects","SecurityRequirement","$visitor"]),Eg.refract=Dx(["visitors","document","objects","SecurityScheme","$visitor"]),wg.refract=Dx(["visitors","document","objects","Server","$visitor"]),jg.refract=Dx(["visitors","document","objects","ServerVariable","$visitor"]),Sg.refract=Dx(["visitors","document","objects","Tag","$visitor"]),Og.refract=Dx(["visitors","document","objects","XML","$visitor"]);const _x=class extends Za{};const Nx=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new _x("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new _x("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new _x("latest method in MediaTypes class is not yet implemented.")}};class Lx extends Nx{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 lr(this.filterByFormat(e))}}const Bx=new Lx("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");const qx=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};const Ux=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=Ps(e)?e:e.uri;return ms(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 Vx(e){return e}const Jx=Nt(Vx),Hx={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:Jx,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const zx=Lt(function(e,t){return function(r){return function(s){return os(function(e){return t(e,s)},r(e(s)))}}});var Gx=function(e){return{value:e,map:function(t){return Gx(t(e))}}},Wx=Bt(function(e,t,r){return e(function(e){return Gx(t(e))})(r).value});const Kx=Wx;const Yx=kr(""),Xx=zx(Po(["resolve","baseURI"]),Qy(["resolve","baseURI"])),Qx=e=>Yx(e)?Bs():e,Zx=(e,t)=>{const r=Qo(e,t);return Kx(Xx,Qx,r)};const eE=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 Ps(this.uri)?Is(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Pr(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const tE=class extends Mt{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},rE=async(e,t,r)=>{const s=await Promise.all(r.map(ac([e],t)));return r.filter((e,t)=>s[t])},sE=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 tE("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const nE=class extends Mt{};const iE=class extends nE{};const oE=async(e,t)=>{let r=e,s=!1;if(!to(e)){const t=Do(e);t.classes.push("result"),r=new Di([t]),s=!0}const n=new eE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await rE("canDereference",[n,t],t.dereference.strategies);if(nc(i))throw new iE(n.uri);try{const{result:e}=await sE("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new nE(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const cE=async(e,t={})=>{const r=Zx(Hx,t);return oE(e,r)};const aE=class extends Mt{};const lE=class extends aE{};const uE=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 pE=class extends uE{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 Di;if(0!==r.length){const e=new Pi.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new lE(`Error parsing "${e.uri}"`,{cause:t})}}};const hE=class{name;constructor({name:e}){this.name=e}};const dE=class extends hE{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 iE('"openapi-3-1" dereference strategy is not available.');const s=new Ux,n=Zx(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const mE=class{name;constructor({name:e}){this.name=e}};const fE=class extends mE{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 Ds(e.uri)}};const yE=class extends Mt{};const vE=class extends yE{},{AbortController:gE,AbortSignal:bE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=gE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=bE);const xE=class extends fE{swaggerHTTPClient=Ce;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Ce,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 vE(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},EE=(e,t=hc)=>{if(Ps(e))try{return t.fromRefract(JSON.parse(e))}catch{}return pi(e)&&So("element",e)?t.fromRefract(e):t.toElement(e)};const wE=class extends uE{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 lE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new Di,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=EE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new lE(`Error parsing "${e.uri}"`,{cause:t})}}};const jE=class extends uE{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 Ae.load(e.toString(),{schema:ve}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new lE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Di,r=e.toString();try{const e=Ae.load(r,{schema:ve});if(this.allowEmpty&&void 0===e)return t;const s=EE(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new lE(`Error parsing "${e.uri}"`,{cause:t})}}};const SE=class extends uE{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new Lx(...Bx.filterByFormat("generic"),...Bx.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 lE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Di,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=Ly.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new lE(`Error parsing "${e.uri}"`,{cause:t})}}};const OE=class extends uE{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 Lx(...Bx.filterByFormat("generic"),...Bx.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 Ae.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new lE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Di,r=e.toString();try{const e=Ae.load(r,{schema:ve});if(this.allowEmpty&&void 0===e)return t;const s=Ly.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new lE(`Error parsing "${e.uri}"`,{cause:t})}}};const PE=Bt(function(e,t,r){return kr(e,cr(t,r))});const $E=class{name;constructor({name:e}){this.name=e}};const AE=Lt(function(e,t){return Ti(Rr(e),t)});var kE=r(8068);const TE=class extends It{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class CE{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new kE({length:e}),this.identityMap=new WeakMap}identify(e){if(!Vi(e))throw new TE("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Ji(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 Pi.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 CE;const FE=Bt(function(e,t,r){return nr(e,Zn(t,r))}),ME=(e,t)=>{const r=new qo({predicate:e,returnOnTrue:lo});return Uo(t,r),FE(void 0,[0],r.result)};const IE=class extends Mt{};const RE=class extends IE{};const DE=class extends IE{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},_E=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),NE=e=>{const t=Ns(e);return To("#",t)},LE=(e,t)=>{const r=(e=>{if(!_E(e))throw new DE(e);return e})(e),s=ME(e=>Sb(e)&&Ko(e.$anchor)===r,t);if(ds(s))throw new RE(`Evaluation failed on token: "${r}"`);return s},BE=(e,t)=>{const r=new qo({predicate:e});return Uo(t,r),new Pi.G6(r.result)};const qE=class extends Mt{};const UE=class extends qE{},VE=(e,t)=>{if(void 0===t.$ref)return;const r=Ns(Ko(t.$ref)),s=Ko(t.meta.get("ancestorsSchemaIdentifiers"));return`${Zt((e,t)=>qs(e,Us(Ls(t))),e,[...s,Ko(t.$ref)])}${"#"===r?"":r}`},JE=e=>{if(JE.cache.has(e))return JE.cache.get(e);const t=bg.refract(e);return JE.cache.set(e,t),t};JE.cache=new WeakMap;const HE=e=>ro(e)?JE(e):e,zE=(e,t)=>{const{cache:r}=zE,s=Ls(e),n=e=>Sb(e)&&void 0!==e.$id;if(!r.has(t)){const e=BE(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=Ko(t.meta.get("ancestorsSchemaIdentifiers"));return Zt((e,t)=>qs(e,Us(Ls(t))),e,r)})(s,e)===s);if(ds(i))throw new UE(`Evaluation failed on URI: "${e}"`);return _E(NE(e))?LE(NE(e),i):na(i,Ec(e))};zE.cache=new WeakMap;const GE=class extends nE{};const WE=class extends yE{};const KE=class extends vE{},YE="apidom-file-cache",XE=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(YE),i=new Response(JSON.stringify(s),{headers:{"Content-Type":"application/json"}});await n.put(e,i)}catch(e){console.error("CacheStorage is not available")}},QE=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(YE),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 yE(`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 rE("canRead",[e,t],o);if(nc(c))throw new KE(e.uri);try{const{result:t}=await sE("read",[e],c),n=new eE({...e,data:t}).toString();return await XE({cacheKey:s,result:n,error:null,cacheTTL:r}),t}catch(t){var a,l,u;throw await XE({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 yE(`Error while reading file "${e.uri}"`,{cause:t})}},ZE=async(e,t)=>{const r=new eE({uri:Us(Ls(e)),mediaType:t.parse.mediaType}),s=await QE(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 rE("canParse",[e,t],r);if(nc(s))throw new KE(e.uri);try{const{plugin:r,result:n}=await sE("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new aE(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new aE(`Error while parsing file "${e.uri}"`,{cause:t})}})(new eE({...r,data:s}),t)};class ew 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(Vi(r)&&e(r))return r}}const tw=Uo[Symbol.for("nodejs.util.promisify.custom")],rw=new CE,sw=(e,t,r,s)=>{Yi(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class nw{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new ew,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 ew(...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=>Wi(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||!Ko(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 qs(this.reference.uri,Us(Ls(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new WE(`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(PE(t,"uri"));const s=await ZE(Vs(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new qx({uri:t,value:Mo(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new qx({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(Vi));return[new ew(...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=Do(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,sw),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(Ko(e.$ref)),p=Ls(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(Ko(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}const m=qs(u,Ko(e.$ref));this.indirections.push(e);const f=Ec(m);let y;try{y=na(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:h})}if(y.id=rw.identify(y),ro(y)){const t=Ko(e.meta.get("referenced-element")),r=`${t}-${Ko(rw.identify(y))}`;if(this.refractCache.has(r))y=this.refractCache.get(r);else if(fp(y))y=Hy.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 Mt("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 GE(`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 Mt("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 Pi.sI(y.id,{type:"reference",uri:d.uri,$ref:Ko(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,sw),!r&&s}}const b=Ls(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||bb(y)||x)&&!a.includesCycle(y)){l.add(e),this.errorContext.push(e);const t=new nw({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 tw(y,t,{keyMap:Cx,nodeTypeGetter:Tx})}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=Do(y);return E.setMetaProperty("id",rw.generateId()),E.setMetaProperty("ref-fields",{$ref:Ko(e.$ref),description:Ko(e.description),summary:Ko(e.summary)}),E.setMetaProperty("ref-origin",d.uri),E.setMetaProperty("ref-referencing-element-id",Mo(rw.identify(e))),null!==(c=this.options.dereference.dereferenceOpts)&&void 0!==c&&c.continueOnError&&E.setMetaProperty("ref-referencing-element",e),Wi(y)&&Wi(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,sw),!r&&E}async PathItemElement(e,t,r,s,n,i){var o;if(!Ji(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(Ko(e.$ref)),u=Ls(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(Ko(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}const d=qs(l,Ko(e.$ref));this.indirections.push(e);const m=Ec(d);let f;try{f=na(h.value.result,m)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:p})}if(f.id=rw.identify(f),ro(f)){const e=`path-item-${Ko(rw.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=Uy.refract(f),this.refractCache.set(e,f))}if(e===f){const t=new Mt("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 GE(`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 Mt("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 Pi.sI(f.id,{type:"path-item",uri:h.uri,$ref:Ko(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,sw),!r&&s}}const g=Ls(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((p||g||yb(f)&&Ji(f.$ref)||b)&&!c.includesCycle(f)){a.add(e),this.errorContext.push(e);const t=new nw({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 tw(f,t,{keyMap:Cx,nodeTypeGetter:Tx})}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(),yb(f)){var x;const t=new Uy([...f.content],Mo(f.meta),Mo(f.attributes));t.setMetaProperty("id",rw.generateId()),e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",Mo(rw.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,sw),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!Ji(e.operationRef)&&!Ji(e.operationId))return;if(Ji(e.operationRef)&&Ji(e.operationId)){const t=new Mt("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(Ji(e.operationRef)){var c;const t=Ec(Ko(e.operationRef)),s=this.toBaseURI(Ko(e.operationRef)),n=Ls(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(Ko(e.operationRef)),o=na(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:a})}if(ro(o)){const e=`operation-${Ko(rw.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=By.refract(o),this.refractCache.set(e,o))}o=Do(o),o.setMetaProperty("ref-origin",l.uri);const u=Do(e);return null===(c=u.operationRef)||void 0===c||c.meta.set("operation",o),i.replaceWith(u,sw),r?void 0:u}if(Ji(e.operationId)){var a;const t=Ko(e.operationId);let s;try{s=await this.toReference(Vs(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=ME(e=>mb(e)&&Vi(e.operationId)&&e.operationId.equals(t),s.value.result),ds(o)){const r=new Mt(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=Do(e);return null===(a=n.operationId)||void 0===a||a.meta.set("operation",o),i.replaceWith(n,sw),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!Ji(e.externalValue))return;if(e.hasKey("value")&&Ji(e.externalValue)){const t=new Mt("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=this.toBaseURI(Ko(e.externalValue)),c=Ls(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(Ko(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:a})}const u=Do(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=Do(e);return p.value=u,i.replaceWith(p,sw),r?void 0:p}async MemberElement(e,t,r,s,n,i){var o;const c=n[n.length-1];if(!Wi(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(!Ji(e.key)||!Ji(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(Sb),p=Mo(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Ko(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new bg({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new nw({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 tw(m,f,{keyMap:Cx,nodeTypeGetter:Tx})}catch(e){const t=!d.startsWith("#");return this.handleDereferenceError(e,m,{directAncestors:l,isExternalReference:t})}l.delete(m),this.indirections.pop();const v=Do(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,sw),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!Ji(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(Vs(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a})}let{uri:u}=l;const p=VE(u,e),h=Ls(p),d=new eE({uri:h}),m=AE(e=>e.canRead(d),this.options.resolve.resolvers),f=!m;let y,v=Ls(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=HE(l.value.result);if(y=zE(e,t),y=HE(y),y.id=rw.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=Ls(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(Vs(p));const e=Ec(p),t=HE(l.value.result);y=na(t,e),y=HE(y),y.id=rw.identify(y)}}catch(t){if(!(f&&t instanceof UE))return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g});if(_E(NE(p))){if(v=Ls(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Vs(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=NE(p),r=HE(l.value.result);try{y=LE(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=HE(y),y.id=rw.identify(y)}else{if(u=this.toBaseURI(p),v=Ls(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Vs(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=Ec(p),r=HE(l.value.result);try{y=na(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=HE(y),y.id=rw.identify(y)}}if(e===y){const t=new Mt("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 GE(`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 Mt("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 Pi.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Ko(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,sw),!r&&s}}const E=Ls(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||Sb(y)&&Ji(y.$ref)||w)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=new nw({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 tw(y,t,{keyMap:Cx,nodeTypeGetter:Tx})}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(),Ob(y)){const t=Mo(y);return t.setMetaProperty("id",rw.generateId()),t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Mo(rw.identify(e))),i.replaceWith(t,sw),!r&&t}if(Sb(y)){var j,S;const t=new bg([...y.content],Mo(y.meta),Mo(y.attributes));if(t.setMetaProperty("id",rw.generateId()),e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Mo(rw.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(Sb),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Ko(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,sw),r?void 0:y}}const iw=nw,ow=Uo[Symbol.for("nodejs.util.promisify.custom")];const cw=class extends $E{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?Bx.includes(e.mediaType):db(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=pc(Fx),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Ux,i=new Ux;let o,c=n;n.has(e.uri)?o=n.find(PE(e.uri,"uri")):(o=new qx({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map(e=>new qx({...e,value:Mo(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),c=i);const a=new iw({reference:o,namespace:s,options:t}),l=await ow(c.rootRef.value,a,{keyMap:Cx,nodeTypeGetter:Tx});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new qx({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>n.add(e)),null===t.dereference.refSet&&n.clean(),i.clean(),l}},aw=e=>{const t=(e=>e.slice(2))(e);return t.reduce((e,r,s)=>{if(Yi(r)){const t=String(Ko(r.key));e.push(t)}else if(Ki(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e},[])};const lw=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Wi(e.properties)&&e.properties.forEach(t=>{if(Wi(t))try{const e=this.modelPropertyMacro(Ko(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...aw([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};var uw=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Lr,e.prototype["@@transducer/result"]=Br,e.prototype["@@transducer/step"]=function(e,t){return fr(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function pw(e){return function(t){return new uw(e,t)}}const hw=Lt(_r([],pw,function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)fr(e,r=t[s],i)||(i[i.length]=r),s+=1;return i}));const dw=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!Ki(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...aw([...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(Sb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...aw([...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=hl.all([...t.content,e],{customMerge:e=>"enum"===Ko(e)?(e,t)=>{if(io(["json-schema-enum"],e)&&io(["json-schema-enum"],t)){const r=(e,t)=>!(Ki(e)||Ki(t)||Wi(e)||Wi(t))&&e.equals(Ko(t)),s=Do(e);return s.content=hw(r)([...e.content,...t.content]),s}return hl(e,t)}:hl});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 mw=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?Ko(this.#s):null,o=Ko(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=aw([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},fw=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const yw=class extends It{},{wrapError:vw}=Cn,gw=Uo[Symbol.for("nodejs.util.promisify.custom")],bw=new CE,xw=(e,t,r,s)=>{Yi(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class Ew extends iw{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(Ko(e.$ref)),l=Ls(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(Ko(e.$ref)),h=qs(a,Ko(e.$ref));this.indirections.push(e);const d=Ec(h);let m=na(p.value.result,d);if(m.id=bw.identify(m),ro(m)){const t=Ko(e.meta.get("referenced-element")),r=`${t}-${Ko(bw.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(fp(m))m=Hy.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 Mt("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new GE(`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 Mt("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Pi.sI(m.id,{type:"reference",uri:p.uri,$ref:Ko(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,xw),!r&&s}}const f=Ls(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||bb(m)||y)&&!t.includesCycle(m)){s.add(e);const i=new Ew({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??[...aw([...n,r,e]),"$ref"]});m=await gw(m,i,{keyMap:Cx,nodeTypeGetter:Tx}),s.delete(e)}this.indirections.pop();const v=Do(m);if(v.setMetaProperty("ref-fields",{$ref:Ko(e.$ref),description:Ko(e.description),summary:Ko(e.summary)}),v.setMetaProperty("ref-origin",p.uri),v.setMetaProperty("ref-referencing-element-id",Mo(bw.identify(e))),Wi(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&&Wi(v)&&!v.hasKey("$$ref")){const e=qs(a,h);v.set("$$ref",e)}return i.replaceWith(v,xw),!r&&v}catch(t){const s=fw(t),i=vw(s,{baseDoc:this.reference.uri,$ref:Ko(e.$ref),pointer:Ec(Ko(e.$ref)),fullPath:this.basePath??[...aw([...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(!Ji(e.$ref))return;if(I()(o=this.indirections).call(o,e))return!1;if(io(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Ko(e.$ref)),l=Ls(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(Ko(e.$ref)),h=qs(a,Ko(e.$ref));this.indirections.push(e);const d=Ec(h);let m=na(p.value.result,d);if(m.id=bw.identify(m),ro(m)){const e=`path-item-${Ko(bw.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=Uy.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Mt("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new GE(`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 Mt("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Pi.sI(m.id,{type:"path-item",uri:p.uri,$ref:Ko(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,xw),!r&&s}}const f=Ls(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||yb(m)&&Ji(m.$ref)||y)&&!t.includesCycle(m)){s.add(e);const i=new Ew({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...aw([...n,r,e]),"$ref"]});m=await gw(m,i,{keyMap:Cx,nodeTypeGetter:Tx}),s.delete(e)}if(this.indirections.pop(),yb(m)){const t=new Uy([...m.content],Mo(m.meta),Mo(m.attributes));if(e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Mo(bw.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=qs(a,h);t.set("$$ref",e)}m=t}return i.replaceWith(m,xw),r?void 0:m}catch(t){const s=fw(t),i=vw(s,{baseDoc:this.reference.uri,$ref:Ko(e.$ref),pointer:Ec(Ko(e.$ref)),fullPath:this.basePath??[...aw([...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(!Ji(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(Vs(this.reference.uri)),{uri:l}=a;const u=VE(l,e),p=Ls(u),h=new eE({uri:p}),d=!this.options.resolve.resolvers.some(e=>e.canRead(h)),m=!d;let f,y=Ls(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(u);const e=u,t=HE(a.value.result);if(f=zE(e,t),f=HE(f),f.id=bw.identify(f),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(l=this.toBaseURI(u),y=Ls(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Vs(u));const e=Ec(u),t=HE(a.value.result);f=na(t,e),f=HE(f),f.id=bw.identify(f)}}catch(e){if(!(m&&e instanceof UE))throw e;if(_E(NE(u))){if(y=Ls(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Vs(u));const e=NE(u),t=HE(a.value.result);f=LE(e,t),f=HE(f),f.id=bw.identify(f)}else{if(l=this.toBaseURI(Ko(u)),y=Ls(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Vs(u));const e=Ec(u),t=HE(a.value.result);f=na(t,e),f=HE(f),f.id=bw.identify(f)}}if(e===f)throw new Mt("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new GE(`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 Mt("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Pi.sI(f.id,{type:"json-schema",uri:a.uri,$ref:Ko(e.$ref),baseURI:qs(l,u),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,xw),!r&&s}}const g=Ls(a.refSet.rootRef.uri)!==a.uri,b=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((v||g||Sb(f)&&Ji(f.$ref)||b)&&!t.includesCycle(f)){s.add(e);const i=new Ew({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...aw([...n,r,e]),"$ref"]});f=await gw(f,i,{keyMap:Cx,nodeTypeGetter:Tx}),s.delete(e)}if(this.indirections.pop(),Ob(f)){const t=Mo(f);return t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Mo(bw.identify(e))),i.replaceWith(t,xw),!r&&t}if(Sb(f)){const t=new bg([...f.content],Mo(f.meta),Mo(f.attributes));if(e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Mo(bw.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=qs(l,u);t.set("$$ref",e)}f=t}return i.replaceWith(f,xw),r?void 0:f}catch(t){const s=fw(t),i=new yw(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Ko(e.$ref),fullPath:this.basePath??[...aw([...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=fw(t),i=vw(s,{baseDoc:this.reference.uri,externalValue:Ko(e.externalValue),fullPath:this.basePath??[...aw([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const ww=Ew,jw=mo[Symbol.for("nodejs.util.promisify.custom")];const Sw=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new ww({...n,options:s})),"function"==typeof t&&i.push(new lw({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new dw({options:s})),"function"==typeof e&&i.push(new mw({parameterMacro:e,options:s}));const o=jw(i,{nodeTypeGetter:Tx});Object.assign(this,o)}},Ow=Uo[Symbol.for("nodejs.util.promisify.custom")];const Pw=class extends cw{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=pc(Fx),s=t.dereference.refSet??new Ux,n=new Ux;let i,o=s;s.has(e.uri)?i=s.find(t=>t.uri===e.uri):(i=new qx({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map(e=>new qx({...e,value:Mo(e.value)})).forEach(e=>n.add(e)),i=n.find(t=>t.uri===e.uri),o=n);const c=new Sw({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),a=await Ow(o.rootRef.value,c,{keyMap:Cx,nodeTypeGetter:Tx});return t.dereference.immutable&&n.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new qx({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>s.add(e)),null===t.dereference.refSet&&s.clean(),n.clean(),a}},$w=e=>{const t=Ko(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Pi.Sh({$ref:t},Mo(r.meta),Mo(r.attributes))},Aw=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}=Aw,f=d.find(e=>e.match(t)),v=Ds(Bs())?Bs():y,g=Me(e),b=qs(v,g);let x;m.has(t)?x=m.get(t):(x=Ly.refract(t),x.classes.push("result"),m.set(t,x));const E=new Di([x]),w=Wc(o),j=""===w?"":`#${w}`,S=na(x,w),O=new qx({uri:b,value:E}),P=new Ux({refs:[O]});""!==w&&(P.rootRef=void 0);const $=[new Set([S])],A=[],k=await cE(S,{resolve:{baseURI:`${b}${j}`,resolvers:[new xE({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new dE]},parse:{mediaType:Bx.latest(),parsers:[new SE({allowEmpty:!1,sourceMap:!1}),new OE({allowEmpty:!1,sourceMap:!1}),new wE({allowEmpty:!1,sourceMap:!1}),new jE({allowEmpty:!1,sourceMap:!1}),new pE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new Pw({allowMetaPatches:c,useCircularStructures:a,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:$})],refSet:P,dereferenceOpts:{errors:A},immutable:!1,circular:a?"ignore":"replace",circularReplacer:a?Hx.dereference.circularReplacer:$w}}),T=xc(S,k,x),C=l?T:f.normalize(T);return{spec:Ko(C),errors:A}}catch(e){if(e instanceof Xc)return{spec:t,errors:[]};throw e}};Aw.cache=new WeakMap;const kw=Aw;function Tw(e,t,r){if(r||(r=new Cw),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?Tw(e[i],!0,r):e[i]);return s};switch(Pr(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 Cw=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}(),Fw=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"]=Lr,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(yr(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,Tw(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function Mw(e,t,r){return function(s){return new Fw(e,t,r,s)}}const Iw=Lt(er("groupBy",ur(4,[],_r([],Mw,function(e,t,r,s){var n=Qt(function(s,n){var i=r(n),o=e(yr(i,s)?s[i]:Tw(t,!1),n);return o&&o["@@transducer/reduced"]?$i(s):(s[i]=o,s)});return Yt(n,{},s)}))(function(e,t){return e.push(t),e},[])));const Rw=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);Wi(e)||(e=new Pi.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Ki(t)||(t=new Pi.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)}},Dw=e=>e.replace(/\s/g,""),_w=e=>e.replace(/\W/gi,"_"),Nw=(e,t,r)=>{const s=Dw(e);return s.length>0?_w(s):((e,t)=>`${_w(Dw(t.toLowerCase()))}${_w(Dw(e))}`)(t,r)},Lw=({storageField:e="x-normalized",operationIdNormalizer:t=Nw}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],c=[],a=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new Rw(t,e,"operation-ids")},leave(){const e=Iw(e=>Ko(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(Ko(e.operationId)),r=c.find(e=>Ko(e.meta.get("originalOperationId"))===t);void 0!==r&&(e.operationId=Mo.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=nr("path",Ko(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(Ko(e.operationId)),d=lr(o),m=nr("method",Ko(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)}}}}},Bw=({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)&&(Ko(e.name)===Ko(t.name)&&Ko(e.in)===Ko(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new Rw(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=lr(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...a,r,e]);if(o.includes(u))return;const p=FE([],["parameters","content"],e),h=hw(n,[...p,...l]);e.parameters=new Af(h),o.append(u)}}}}},qw=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new Rw(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 Nf(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},Uw=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new Rw(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=>Mo.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",[Mo(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Mo(e.example)),n.append(u)))}}}}}},Vw=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new Rw(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=>Mo.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",[Mo(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Mo(e.example)),n.append(u)))}}}}}},Jw=e=>{if(!Wi(e))return e;const t=[Lw({operationIdNormalizer:(e,t,r)=>di({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Bw(),qw(),Uw(),Vw()];return fc(e,t,{toolboxCreator:Ix,visitorOptions:{keyMap:Cx,nodeTypeGetter:Tx}})},Hw={name:"openapi-3-1-apidom",match:e=>gi(e),normalize(e){if(!Vi(e)&&pi(e)&&!e.$$normalized){const r=(t=Jw,e=>{const r=Ly.refract(e);r.classes.push("result");const s=t(r),n=Ko(s);return kw.cache.set(n,s),Ko(s)})(e);return r.$$normalized=!0,r}var t;return Vi(e)?Jw(e):e},resolve:async e=>kw(e)};const zw=class extends Ey{};const Gw=class extends wy{get mediaTypes(){return this.get("mediaTypes")}set mediaTypes(e){this.set("mediaTypes",e)}};const Ww=class extends jy{};const Kw=class extends Sy{get defaultMapping(){return this.get("defaultMapping")}set defaultMapping(e){this.set("defaultMapping",e)}};const Yw=class extends Oy{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 Xw=class extends Py{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 Qw=class extends $y{};const Zw=class extends Ay{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ej=class extends ky{};class tj extends Pi.Om{static default=new tj("https://spec.openapis.org/oas/3.2/dialect/2025-09-17");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const rj=tj;const sj=class extends Fy{};const nj=class extends My{};const ij=class extends Iy{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 oj=class extends Ry{get deviceAuthorizationUrl(){return this.get("deviceAuthorizationUrl")}set deviceAuthorizationUrl(e){this.set("deviceAuthorizationUrl",e)}};const cj=class extends Dy{get deviceAuthorization(){return this.get("deviceAuthorization")}set deviceAuthorization(e){this.set("deviceAuthorization",e)}};const aj=class extends _y{};class lj extends Pi.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 uj=lj;const pj=class extends By{};const hj=class extends qy{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const dj=class extends Uy{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 mj=class extends Vy{};class fj extends Hy{}Object.defineProperty(fj.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(fj.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const yj=fj;const vj=class extends zy{};const gj=class extends Gy{get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};const bj=class extends Wy{};const xj=class extends bg{};const Ej=class extends xg{};const wj=class extends Eg{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 jj=class extends wg{get name(){return this.get("name")}set name(e){this.set("name",e)}};const Sj=class extends jg{};const Oj=class extends Sg{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 Pj=class extends Og{get nodeType(){return this.get("nodeType")}set nodeType(e){this.set("nodeType",e)}};class $j extends(Ml(bp,lp)){constructor(e){super(e),this.element=new uj,this.specPath=ps(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,bp.prototype.ObjectElement.call(this,e)}}const Aj=$j,kj=kx.visitors.document.objects.Info.$visitor;const Tj=class extends kj{constructor(e){super(e),this.element=new ej}},Cj=kx.visitors.document.objects.Contact.$visitor;const Fj=class extends Cj{constructor(e){super(e),this.element=new Ww}},Mj=kx.visitors.document.objects.License.$visitor;const Ij=class extends Mj{constructor(e){super(e),this.element=new sj}},Rj=kx.visitors.document.objects.Link.$visitor;const Dj=class extends Rj{constructor(e){super(e),this.element=new nj}};class _j extends(Ml(up,lp)){StringElement(e){const t=new rj(Ko(e));return this.copyMetaAndAttributes(e,t),this.element=t,lo}}const Nj=_j,Lj=kx.visitors.document.objects.Server.$visitor;const Bj=class extends Lj{constructor(e){super(e),this.element=new jj}},qj=kx.visitors.document.objects.ServerVariable.$visitor;const Uj=class extends qj{constructor(e){super(e),this.element=new Sj}},Vj=kx.visitors.document.objects.MediaType.$visitor;const Jj=class extends Vj{constructor(e){super(e),this.element=new ij}},Hj=kx.visitors.document.objects.SecurityRequirement.$visitor;const zj=class extends Hj{constructor(e){super(e),this.element=new Ej}},Gj=kx.visitors.document.objects.Components.$visitor;const Wj=class extends Gj{constructor(e){super(e),this.element=new Gw}},Kj=kx.visitors.document.objects.Tag.$visitor;const Yj=class extends Kj{constructor(e){super(e),this.element=new Oj}},Xj=kx.visitors.document.objects.Reference.$visitor;const Qj=class extends Xj{constructor(e){super(e),this.element=new yj}},Zj=kx.visitors.document.objects.Parameter.$visitor;const eS=class extends Zj{constructor(e){super(e),this.element=new hj}},tS=kx.visitors.document.objects.Header.$visitor;const rS=class extends tS{constructor(e){super(e),this.element=new Zw}},sS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zw||e(s)&&t("callback",s)&&r("object",s)),nS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gw||e(s)&&t("components",s)&&r("object",s)),iS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ww||e(s)&&t("contact",s)&&r("object",s)),oS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kw||e(s)&&t("discriminator",s)&&r("object",s)),cS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xw||e(s)&&t("example",s)&&r("object",s)),aS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qw||e(s)&&t("externalDocumentation",s)&&r("object",s)),lS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zw||e(s)&&t("header",s)&&r("object",s)),uS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ej||e(s)&&t("info",s)&&r("object",s)),pS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rj||e(s)&&t("jsonSchemaDialect",s)&&r("string",s)),hS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sj||e(s)&&t("license",s)&&r("object",s)),dS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nj||e(s)&&t("link",s)&&r("object",s)),mS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aj||e(s)&&t("openapi",s)&&r("string",s)),fS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof uj||e(n)&&t("openApi3_2",n)&&r("object",n)&&s("api",n)),yS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pj||e(s)&&t("operation",s)&&r("object",s)),vS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hj||e(s)&&t("parameter",s)&&r("object",s)),gS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dj||e(s)&&t("pathItem",s)&&r("object",s)),bS=e=>{if(!gS(e))return!1;if(!Ji(e.$ref))return!1;const t=Ko(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mj||e(s)&&t("paths",s)&&r("object",s)),ES=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yj||e(s)&&t("reference",s)&&r("object",s)),wS=e=>{if(!ES(e))return!1;if(!Ji(e.$ref))return!1;const t=Ko(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},jS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vj||e(s)&&t("requestBody",s)&&r("object",s)),SS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gj||e(s)&&t("response",s)&&r("object",s)),OS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bj||e(s)&&t("responses",s)&&r("object",s)),PS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xj||e(s)&&t("schema",s)&&r("object",s)),$S=e=>Gi(e)&&e.classes.includes("boolean-json-schema"),AS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ej||e(s)&&t("securityRequirement",s)&&r("object",s)),kS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wj||e(s)&&t("securityScheme",s)&&r("object",s)),TS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jj||e(s)&&t("server",s)&&r("object",s)),CS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sj||e(s)&&t("serverVariable",s)&&r("object",s)),FS=Ui(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ij||e(s)&&t("mediaType",s)&&r("object",s));class MS extends(Ml(bp,Vl,lp)){constructor(e){super(e),this.element=new xj,this.specPath=ps(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=rj.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=bp.prototype.ObjectElement.call(this,e);return Ji(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return cg.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&pS(this.openApiSemanticElement.jsonSchemaDialect)?Ko(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ji(this.openApiGenericElement.get("jsonSchemaDialect"))?Ko(this.openApiGenericElement.get("jsonSchemaDialect")):Ko(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return cg.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return cg.prototype.handleSchemaIdentifier.call(this,e)}}const IS=MS;const RS=class extends Iv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const DS=class extends Dv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const _S=class extends Nv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const NS=class extends Bv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const LS=class extends Uv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const BS=class extends lg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const qS=class extends zv{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const US=class extends Wv{constructor(e){super(e),this.passingOptionsNames.push("parent")}},VS=kx.visitors.document.objects.Discriminator.$visitor;const JS=class extends VS{constructor(e){super(e),this.element=new Kw,this.canSupportSpecificationExtensions=!0}},HS=kx.visitors.document.objects.XML.$visitor;const zS=class extends HS{constructor(e){super(e),this.element=new Pj}};class GS extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Kd,this.specPath=ps(["document","objects","Schema"])}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(PS).forEach((e,t)=>{e.setMetaProperty("schemaName",Ko(t))}),t}}const WS=GS;const KS=class extends Wb{};class YS extends(Ml(_p,lp)){constructor(e){super(e),this.element=new KS,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(ES).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),t}}const XS=YS;class QS extends Pi.Sh{static primaryClass="components-media-types";constructor(e,t,r){super(e,t,r),this.classes.push(QS.primaryClass)}}const ZS=QS;class eO extends(Ml(_p,lp)){constructor(e){super(e),this.element=new ZS,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(ES).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const tO=eO;class rO extends(Ml(_p,lp)){constructor(e){super(e),this.element=new Pi.Sh,this.specPath=ps(["document","objects","Operation"])}}const sO=rO,nO=kx.visitors.document.objects.Example.$visitor;const iO=class extends nO{constructor(e){super(e),this.element=new Xw}},oO=kx.visitors.document.objects.ExternalDocumentation.$visitor;const cO=class extends oO{constructor(e){super(e),this.element=new Qw}},aO=kx.visitors.document.objects.Encoding.$visitor;const lO=class extends aO{constructor(e){super(e),this.element=new Yw}},uO=kx.visitors.document.objects.Paths.$visitor;const pO=class extends uO{constructor(e){super(e),this.element=new mj}},hO=kx.visitors.document.objects.RequestBody.$visitor;const dO=class extends hO{constructor(e){super(e),this.element=new vj}};class mO extends(Ml(_p,lp)){constructor(e){super(e),this.element=new zm,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(ES).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const fO=mO,yO=kx.visitors.document.objects.Callback.$visitor;const vO=class extends yO{constructor(e){super(e),this.element=new zw,this.specPath=ps(["document","objects","PathItem"])}},gO=kx.visitors.document.objects.Response.$visitor;const bO=class extends gO{constructor(e){super(e),this.element=new gj}};class xO extends(Ml(_p,lp)){constructor(e){super(e),this.element=new sf,this.specPath=e=>fp(e)?["document","objects","Reference"]:["document","objects","MediaType"]}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(ES).forEach(e=>{e.setMetaProperty("referenced-element","mediaType")}),t}}const EO=xO,wO=kx.visitors.document.objects.Responses.$visitor;const jO=class extends wO{constructor(e){super(e),this.element=new bj}},SO=kx.visitors.document.objects.Operation.$visitor;const OO=class extends SO{constructor(e){super(e),this.element=new pj}},PO=kx.visitors.document.objects.PathItem.$visitor;const $O=class extends PO{constructor(e){super(e),this.element=new dj}},AO=kx.visitors.document.objects.SecurityScheme.$visitor;const kO=class extends AO{constructor(e){super(e),this.element=new wj}},TO=kx.visitors.document.objects.OAuthFlows.$visitor;const CO=class extends TO{constructor(e){super(e),this.element=new cj}},FO=kx.visitors.document.objects.OAuthFlow.$visitor;const MO=class extends FO{constructor(e){super(e),this.element=new oj}};const IO=class extends Sx{};class RO extends(Ml(_p,lp)){constructor(e){super(e),this.element=new IO,this.specPath=ps(["document","objects","PathItem"])}ObjectElement(e){const t=_p.prototype.ObjectElement.call(this,e);return this.element.filter(gS).forEach((e,t)=>{e.setMetaProperty("webhook-name",Ko(t))}),t}}const DO=RO,{JSONSchema:_O,LinkDescription:NO}=pg.visitors.document.objects,LO={visitors:{value:kx.visitors.value,document:{objects:{OpenApi:{$visitor:Aj,fixedFields:{openapi:kx.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Nj,servers:kx.visitors.document.objects.OpenApi.fixedFields.servers,$self:{$ref:"#/visitors/value"},paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:DO,components:{$ref:"#/visitors/document/objects/Components"},security:kx.visitors.document.objects.OpenApi.fixedFields.security,tags:kx.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Tj,fixedFields:{title:kx.visitors.document.objects.Info.fixedFields.title,description:kx.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:kx.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:kx.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Fj,fixedFields:{name:kx.visitors.document.objects.Contact.fixedFields.name,url:kx.visitors.document.objects.Contact.fixedFields.url,email:kx.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Ij,fixedFields:{name:kx.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:kx.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Bj,fixedFields:{url:kx.visitors.document.objects.Server.fixedFields.url,description:kx.visitors.document.objects.Server.fixedFields.description,variables:kx.visitors.document.objects.Server.fixedFields.variables,name:{$ref:"#/visitors/value"}}},ServerVariable:{$visitor:Uj,fixedFields:{enum:kx.visitors.document.objects.ServerVariable.fixedFields.enum,default:kx.visitors.document.objects.ServerVariable.fixedFields.default,description:kx.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Wj,fixedFields:{schemas:WS,responses:kx.visitors.document.objects.Components.fixedFields.responses,parameters:kx.visitors.document.objects.Components.fixedFields.parameters,examples:kx.visitors.document.objects.Components.fixedFields.examples,requestBodies:kx.visitors.document.objects.Components.fixedFields.requestBodies,headers:kx.visitors.document.objects.Components.fixedFields.headers,securitySchemes:kx.visitors.document.objects.Components.fixedFields.securitySchemes,links:kx.visitors.document.objects.Components.fixedFields.links,callbacks:kx.visitors.document.objects.Components.fixedFields.callbacks,pathItems:XS,mediaTypes:tO}},Paths:{$visitor:pO},PathItem:{$visitor:$O,fixedFields:{$ref:kx.visitors.document.objects.PathItem.fixedFields.$ref,summary:kx.visitors.document.objects.PathItem.fixedFields.summary,description:kx.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:kx.visitors.document.objects.PathItem.fixedFields.servers,parameters:kx.visitors.document.objects.PathItem.fixedFields.parameters,additionalOperations:sO}},Operation:{$visitor:OO,fixedFields:{tags:kx.visitors.document.objects.Operation.fixedFields.tags,summary:kx.visitors.document.objects.Operation.fixedFields.summary,description:kx.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:kx.visitors.document.objects.Operation.fixedFields.operationId,parameters:kx.visitors.document.objects.Operation.fixedFields.parameters,requestBody:kx.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:kx.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:kx.visitors.document.objects.Operation.fixedFields.deprecated,security:kx.visitors.document.objects.Operation.fixedFields.security,servers:kx.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:cO,fixedFields:{description:kx.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:kx.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:eS,fixedFields:{name:kx.visitors.document.objects.Parameter.fixedFields.name,in:kx.visitors.document.objects.Parameter.fixedFields.in,description:kx.visitors.document.objects.Parameter.fixedFields.description,required:kx.visitors.document.objects.Parameter.fixedFields.required,deprecated:kx.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:kx.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:kx.visitors.document.objects.Parameter.fixedFields.style,explode:kx.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:kx.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:kx.visitors.document.objects.Parameter.fixedFields.example,examples:kx.visitors.document.objects.Parameter.fixedFields.examples,content:kx.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:dO,fixedFields:{description:kx.visitors.document.objects.RequestBody.fixedFields.description,content:fO,required:kx.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Jj,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:kx.visitors.document.objects.MediaType.fixedFields.example,examples:kx.visitors.document.objects.MediaType.fixedFields.examples,encoding:kx.visitors.document.objects.MediaType.fixedFields.encoding,itemSchema:{$ref:"#/visitors/document/objects/Schema"},prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Encoding:{$visitor:lO,fixedFields:{contentType:kx.visitors.document.objects.Encoding.fixedFields.contentType,headers:kx.visitors.document.objects.Encoding.fixedFields.headers,style:kx.visitors.document.objects.Encoding.fixedFields.style,explode:kx.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:kx.visitors.document.objects.Encoding.fixedFields.allowReserved,encoding:kx.visitors.document.objects.MediaType.fixedFields.encoding,prefixEncoding:{$ref:"#/visitors/value"},itemEncoding:{$ref:"#/visitors/document/objects/Encoding"}}},Responses:{$visitor:jO,fixedFields:{default:kx.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:bO,fixedFields:{description:kx.visitors.document.objects.Response.fixedFields.description,headers:kx.visitors.document.objects.Response.fixedFields.headers,content:EO,links:kx.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:vO},Example:{$visitor:iO,fixedFields:{summary:kx.visitors.document.objects.Example.fixedFields.summary,description:kx.visitors.document.objects.Example.fixedFields.description,value:kx.visitors.document.objects.Example.fixedFields.value,externalValue:kx.visitors.document.objects.Example.fixedFields.externalValue,dataValue:{$ref:"#/visitors/value"},serializedValue:{$ref:"#/visitors/value"}}},Link:{$visitor:Dj,fixedFields:{operationRef:kx.visitors.document.objects.Link.fixedFields.operationRef,operationId:kx.visitors.document.objects.Link.fixedFields.operationId,parameters:kx.visitors.document.objects.Link.fixedFields.parameters,requestBody:kx.visitors.document.objects.Link.fixedFields.requestBody,description:kx.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:rS,fixedFields:{description:kx.visitors.document.objects.Header.fixedFields.description,required:kx.visitors.document.objects.Header.fixedFields.required,deprecated:kx.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:kx.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:kx.visitors.document.objects.Header.fixedFields.style,explode:kx.visitors.document.objects.Header.fixedFields.explode,allowReserved:kx.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:kx.visitors.document.objects.Header.fixedFields.example,examples:kx.visitors.document.objects.Header.fixedFields.examples,content:kx.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Yj,fixedFields:{name:kx.visitors.document.objects.Tag.fixedFields.name,description:kx.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:Qj,fixedFields:{$ref:kx.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...NO},Schema:{$visitor:IS,fixedFields:{..._O.fixedFields,$defs:RS,allOf:DS,anyOf:_S,oneOf:NS,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:LS,prefixItems:BS,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:qS,patternProperties:US,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:JS,fixedFields:{propertyName:kx.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:kx.visitors.document.objects.Discriminator.fixedFields.mapping,defaultMapping:{$ref:"#/visitors/value"}}},XML:{$visitor:zS,fixedFields:{name:kx.visitors.document.objects.XML.fixedFields.name,namespace:kx.visitors.document.objects.XML.fixedFields.namespace,prefix:kx.visitors.document.objects.XML.fixedFields.prefix,attribute:kx.visitors.document.objects.XML.fixedFields.attribute,wrapped:kx.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:kO,fixedFields:{type:kx.visitors.document.objects.SecurityScheme.fixedFields.type,description:kx.visitors.document.objects.SecurityScheme.fixedFields.description,name:kx.visitors.document.objects.SecurityScheme.fixedFields.name,in:kx.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:kx.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:kx.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:kx.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl,oauth2MetadataUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:CO,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:MO,fixedFields:{authorizationUrl:kx.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:kx.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:kx.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:kx.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:zj}},extension:{$visitor:kx.visitors.document.extension.$visitor}}}},BO=e=>{if(Vi(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},qO={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"],...Bo},UO={namespace:e=>{const{base:t}=e;return t.register("callback",zw),t.register("components",Gw),t.register("contact",Ww),t.register("discriminator",Kw),t.register("encoding",Yw),t.register("example",Xw),t.register("externalDocumentation",Qw),t.register("header",Zw),t.register("info",ej),t.register("jsonSchemaDialect",rj),t.register("license",sj),t.register("link",nj),t.register("mediaType",ij),t.register("oAuthFlow",oj),t.register("oAuthFlows",cj),t.register("openapi",aj),t.register("openApi3_2",uj),t.register("operation",pj),t.register("parameter",hj),t.register("pathItem",dj),t.register("paths",mj),t.register("reference",yj),t.register("requestBody",vj),t.register("response",gj),t.register("responses",bj),t.register("schema",xj),t.register("securityRequirement",Ej),t.register("securityScheme",wj),t.register("server",jj),t.register("serverVariable",Sj),t.register("tag",Oj),t.register("xml",Pj),t}},VO=e=>{const t=e.reduce((t,r,s)=>{if(Yi(r)){const e=String(Ko(r.key));t.push(e)}else if(Ki(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t},[]);return Wc(t)},JO=()=>{const e=pc(UO);return{predicates:{...d,isElement:Vi,isStringElement:Ji,isArrayElement:Ki,isObjectElement:Wi,isMemberElement:Yi,isServersElement:Th,includesClasses:io,hasElementSourceMap:so},ancestorLineageToJSONPointer:VO,namespace:e}},HO=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Pi.e)(e),n=Co(LO),i=new(Po(t,n))({specObj:n});return Uo(s,i),fc(i.element,r,{toolboxCreator:JO,visitorOptions:{keyMap:qO,nodeTypeGetter:BO}})},zO=e=>(t,r={})=>HO(t,{specPath:e,...r});zw.refract=zO(["visitors","document","objects","Callback","$visitor"]),Gw.refract=zO(["visitors","document","objects","Components","$visitor"]),Ww.refract=zO(["visitors","document","objects","Contact","$visitor"]),Xw.refract=zO(["visitors","document","objects","Example","$visitor"]),Kw.refract=zO(["visitors","document","objects","Discriminator","$visitor"]),Yw.refract=zO(["visitors","document","objects","Encoding","$visitor"]),Qw.refract=zO(["visitors","document","objects","ExternalDocumentation","$visitor"]),Zw.refract=zO(["visitors","document","objects","Header","$visitor"]),ej.refract=zO(["visitors","document","objects","Info","$visitor"]),rj.refract=zO(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),sj.refract=zO(["visitors","document","objects","License","$visitor"]),nj.refract=zO(["visitors","document","objects","Link","$visitor"]),ij.refract=zO(["visitors","document","objects","MediaType","$visitor"]),oj.refract=zO(["visitors","document","objects","OAuthFlow","$visitor"]),cj.refract=zO(["visitors","document","objects","OAuthFlows","$visitor"]),aj.refract=zO(["visitors","document","objects","OpenApi","fixedFields","openapi"]),uj.refract=zO(["visitors","document","objects","OpenApi","$visitor"]),pj.refract=zO(["visitors","document","objects","Operation","$visitor"]),hj.refract=zO(["visitors","document","objects","Parameter","$visitor"]),dj.refract=zO(["visitors","document","objects","PathItem","$visitor"]),mj.refract=zO(["visitors","document","objects","Paths","$visitor"]),yj.refract=zO(["visitors","document","objects","Reference","$visitor"]),vj.refract=zO(["visitors","document","objects","RequestBody","$visitor"]),gj.refract=zO(["visitors","document","objects","Response","$visitor"]),bj.refract=zO(["visitors","document","objects","Responses","$visitor"]),xj.refract=zO(["visitors","document","objects","Schema","$visitor"]),Ej.refract=zO(["visitors","document","objects","SecurityRequirement","$visitor"]),wj.refract=zO(["visitors","document","objects","SecurityScheme","$visitor"]),jj.refract=zO(["visitors","document","objects","Server","$visitor"]),Sj.refract=zO(["visitors","document","objects","ServerVariable","$visitor"]),Oj.refract=zO(["visitors","document","objects","Tag","$visitor"]),Pj.refract=zO(["visitors","document","objects","XML","$visitor"]);class GO extends Nx{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 lr(this.filterByFormat(e))}}const WO=new GO("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 KO=class extends uE{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.2\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-2-swagger-client",mediaTypes:new GO(...WO.filterByFormat("generic"),...WO.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 lE("openapi-json-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Di,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=uj.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new lE(`Error parsing "${e.uri}"`,{cause:t})}}};const YO=class extends uE{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 GO(...WO.filterByFormat("generic"),...WO.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 Ae.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new lE("openapi-yaml-3-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Di,r=e.toString();try{const e=Ae.load(r,{schema:ve});if(this.allowEmpty&&void 0===e)return t;const s=uj.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new lE(`Error parsing "${e.uri}"`,{cause:t})}}},XO=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),QO=e=>{const t=Ns(e);return To("#",t)},ZO=(e,t)=>{const r=(e=>{if(!XO(e))throw new DE(e);return e})(e),s=ME(e=>PS(e)&&Ko(e.$anchor)===r,t);if(ds(s))throw new RE(`Evaluation failed on token: "${r}"`);return s},eP=(e,t)=>{if(void 0===t.$ref)return;const r=Ns(Ko(t.$ref)),s=Ko(t.meta.get("ancestorsSchemaIdentifiers"));return`${Zt((e,t)=>qs(e,Us(Ls(t))),e,[...s,Ko(t.$ref)])}${"#"===r?"":r}`},tP=e=>{if(tP.cache.has(e))return tP.cache.get(e);const t=xj.refract(e);return tP.cache.set(e,t),t};tP.cache=new WeakMap;const rP=e=>ro(e)?tP(e):e,sP=(e,t)=>{const{cache:r}=sP,s=Ls(e),n=e=>PS(e)&&void 0!==e.$id;if(!r.has(t)){const e=BE(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=Ko(t.meta.get("ancestorsSchemaIdentifiers"));return Zt((e,t)=>qs(e,Us(Ls(t))),e,r)})(s,e)===s);if(ds(i))throw new UE(`Evaluation failed on URI: "${e}"`);return XO(QO(e))?ZO(QO(e),i):na(i,Ec(e))};sP.cache=new WeakMap;const nP=Uo[Symbol.for("nodejs.util.promisify.custom")],iP=new CE,oP=e=>{try{return!!new URL(e).protocol}catch{return!1}},cP=(e,t,r,s)=>{Yi(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class aP{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 ew,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 ew(...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=>Wi(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||!Ko(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 qs(this.reference.uri,Us(Ls(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new WE(`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(PE(t,"uri"));const s=await ZE(Vs(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new qx({uri:t,value:Mo(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new qx({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(Vi));return[new ew(...this.ancestors,t),t]}extractSelfFromReference(e){try{const t=e.value.result;let r;if(t instanceof Pi.Hg)if("openapi-3-2"===t.element)r=t;else{const e=ME(e=>"openapi-3-2"===e.element,t);e&&(r=e)}if(r&&fS(r)&&Ji(r.$self)){const t=Ko(r.$self);if(t)return oP(t)?Us(Ls(t)):qs(e.uri,Us(Ls(t)))}}catch{}}OpenApi3_2Element={enter:e=>{if(Ji(e.$self)){const t=Ko(e.$self);t&&(oP(t)?this.$selfValue=Us(Ls(t)):this.$selfValue=qs(this.reference.uri,Us(Ls(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=Do(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,cP),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=Ko(e.$ref),p=this.toBaseURI(u),h=Ls(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(Ko(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}const f=qs(p,Ko(e.$ref));this.indirections.push(e);const y=Ec(f);let v;try{v=na(m.value.result,y)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:d})}if(v.id=iP.identify(v),ro(v)){const t=Ko(e.meta.get("referenced-element")),r=`${t}-${Ko(iP.identify(v))}`;if(this.refractCache.has(r))v=this.refractCache.get(r);else if(fp(v))v=yj.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 Mt("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 GE(`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 Mt("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 Pi.sI(v.id,{type:"reference",uri:m.uri,$ref:Ko(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,cP),!r&&s}}const x=Ls(m.refSet.rootRef.uri)!==m.uri,E=["error","replace"].includes(this.options.dereference.circular);if((d||x||ES(v)||E)&&!a.includesCycle(v)){l.add(e),this.errorContext.push(e);const t=d||x?this.extractSelfFromReference(m):this.$selfValue,r=new aP({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 nP(v,r,{keyMap:qO,nodeTypeGetter:BO})}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=Do(v);w.setMetaProperty("id",iP.generateId()),w.setMetaProperty("ref-fields",{$ref:Ko(e.$ref),description:Ko(e.description),summary:Ko(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",Mo(iP.identify(e))),null!==(c=this.options.dereference.dereferenceOpts)&&void 0!==c&&c.continueOnError&&w.setMetaProperty("ref-referencing-element",e),Wi(v)&&Wi(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,cP),!r&&w}async PathItemElement(e,t,r,s,n,i){var o;if(!Ji(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]),l=Ko(e.$ref),u=this.toBaseURI(l),p=Ls(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(Ko(e.$ref))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}const m=qs(u,Ko(e.$ref));this.indirections.push(e);const f=Ec(m);let y;try{y=na(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:h})}if(y.id=iP.identify(y),ro(y)){const e=`path-item-${Ko(iP.identify(y))}`;this.refractCache.has(e)?y=this.refractCache.get(e):(y=dj.refract(y),this.refractCache.set(e,y))}if(e===y){const t=new Mt("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 GE(`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 Mt("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 Pi.sI(y.id,{type:"path-item",uri:d.uri,$ref:Ko(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,cP),!r&&s}}const b=Ls(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||gS(y)&&Ji(y.$ref)||x)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=h||b?this.extractSelfFromReference(d):this.$selfValue,r=new aP({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 nP(y,r,{keyMap:qO,nodeTypeGetter:BO})}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(),gS(y)){var E;const t=new dj([...y.content],Mo(y.meta),Mo(y.attributes));t.setMetaProperty("id",iP.generateId()),e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(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",Mo(iP.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,cP),r?void 0:y}async LinkElement(e,t,r,s,n,i){if(!Ji(e.operationRef)&&!Ji(e.operationId))return;if(Ji(e.operationRef)&&Ji(e.operationId)){const t=new Mt("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(Ji(e.operationRef)){var c;const t=Ko(e.operationRef),s=Ec(t),n=this.toBaseURI(t),a=Ls(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(Ko(e.operationRef)),o=na(u.value.result,s)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:l})}if(!o){const t=new Mt("OperationElement could not be resolved.");return this.handleDereferenceError(t,e,{isExternalReference:l})}let p=o;if(ro(p)){const e=`operation-${Ko(iP.identify(p))}`;this.refractCache.has(e)?p=this.refractCache.get(e):(p=pj.refract(p),this.refractCache.set(e,p))}p=Do(p);const h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=Do(e);return null===(c=d.operationRef)||void 0===c||c.meta.set("operation",p),i.replaceWith(d,cP),r?void 0:d}if(Ji(e.operationId)){var a;const t=Ko(e.operationId);let s;try{s=await this.toReference(Vs(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=ME(e=>yS(e)&&Vi(e.operationId)&&e.operationId.equals(t),s.value.result),ds(o)){const r=new Mt(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=Do(e);return null===(a=n.operationId)||void 0===a||a.meta.set("operation",o),i.replaceWith(n,cP),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!Ji(e.externalValue))return;if(e.hasKey("value")&&Ji(e.externalValue)){const t=new Mt("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=Ko(e.externalValue),c=this.toBaseURI(o),a=Ls(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(Ko(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:l})}const p=Do(u.value.result),h=l?this.extractSelfFromReference(u)||u.uri:this.$selfValue||u.uri;p.setMetaProperty("ref-origin",h);const d=Do(e);return d.value=p,i.replaceWith(d,cP),r?void 0:d}async MemberElement(e,t,r,s,n,i){var o;const c=n[n.length-1];if(!Wi(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(!Ji(e.key)||!Ji(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(PS),p=Mo(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Ko(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new xj({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new aP({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 nP(m,f,{keyMap:qO,nodeTypeGetter:BO})}catch(t){const r=!d.startsWith("#");return this.handleDereferenceError(t,e,{directAncestors:l,isExternalReference:r})}l.delete(m),this.indirections.pop();const v=Do(e);return v.value.setMetaProperty("ref-schema",y),i.replaceWith(v,cP),r?void 0:v}async SchemaElement(e,t,r,s,n,i){var o;if(!Ji(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,a]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(Vs(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,{directAncestors:a})}let{uri:u}=l;const p=eP(u,e),h=Ls(p),d=new eE({uri:h}),m=AE(e=>e.canRead(d),this.options.resolve.resolvers),f=!m;let y,v=Ls(this.reference.uri)===p,g=!v;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=rP(l.value.result);if(y=sP(e,t),y=rP(y),y.id=iP.identify(y),!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(p),v=Ls(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;l=await this.toReference(Vs(p));const e=Ec(p),t=rP(l.value.result);y=na(t,e),y=rP(y),y.id=iP.identify(y)}}catch(t){if(!(f&&t instanceof UE))return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g});if(XO(QO(p))){if(v=Ls(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Vs(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=QO(p),r=rP(l.value.result);try{y=ZO(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=rP(y),y.id=iP.identify(y)}else{if(u=this.toBaseURI(p),v=Ls(this.reference.uri)===u,g=!v,!this.options.resolve.internal&&v)return;if(!this.options.resolve.external&&g)return;try{l=await this.toReference(Vs(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}const t=Ec(p),r=rP(l.value.result);try{y=na(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,{directAncestors:a,isExternalReference:g})}y=rP(y),y.id=iP.identify(y)}}if(e===y){const t=new Mt("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 GE(`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 Mt("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 Pi.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Ko(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,cP),!r&&s}}const E=Ls(l.refSet.rootRef.uri)!==l.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||E||PS(y)&&Ji(y.$ref)||w)&&!c.includesCycle(y)){a.add(e),this.errorContext.push(e);const t=g||E?this.extractSelfFromReference(l):this.$selfValue,r=new aP({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 nP(y,r,{keyMap:qO,nodeTypeGetter:BO})}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(),$S(y)){const t=Mo(y);t.setMetaProperty("id",iP.generateId()),t.setMetaProperty("ref-fields",{$ref:Ko(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",Mo(iP.identify(e))),i.replaceWith(t,cP),!r&&t}if(PS(y)){var j,S;const t=new xj([...y.content],Mo(y.meta),Mo(y.attributes));t.setMetaProperty("id",iP.generateId()),e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(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",Mo(iP.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(PS),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Ko(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,cP),r?void 0:y}}const lP=aP,uP=Uo[Symbol.for("nodejs.util.promisify.custom")];const pP=class extends $E{constructor(e){super({...null!=e?e:{},name:"openapi-3-2"})}canDereference(e){var t;return"text/plain"!==e.mediaType?WO.includes(e.mediaType):fS(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=pc(UO),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Ux,i=new Ux;let o,c=n;n.has(e.uri)?o=n.find(PE(e.uri,"uri")):(o=new qx({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map(e=>new qx({...e,value:Mo(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),c=i);const a=new lP({reference:o,namespace:s,options:t}),l=await uP(c.rootRef.value,a,{keyMap:qO,nodeTypeGetter:BO});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new qx({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>n.add(e)),null===t.dereference.refSet&&n.clean(),i.clean(),l}},hP=e=>{const t=(e=>e.slice(2))(e);return t.reduce((e,r,s)=>{if(Yi(r)){const t=String(Ko(r.key));e.push(t)}else if(Ki(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e},[])};const dP=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Wi(e.properties)&&e.properties.forEach(t=>{if(Wi(t))try{const e=this.modelPropertyMacro(Ko(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...hP([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const mP=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!Ki(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...hP([...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(PS)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...hP([...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=hl.all([...t.content,e],{customMerge:e=>"enum"===Ko(e)?(e,t)=>{if(io(["json-schema-enum"],e)&&io(["json-schema-enum"],t)){const r=(e,t)=>!(Ki(e)||Ki(t)||Wi(e)||Wi(t))&&e.equals(Ko(t)),s=Do(e);return s.content=hw(r)([...e.content,...t.content]),s}return hl(e,t)}:hl});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 fP=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?Ko(this.#s):null,o=Ko(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=hP([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},yP=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const vP=class extends It{},{wrapError:gP}=Cn,bP=Uo[Symbol.for("nodejs.util.promisify.custom")],xP=new CE,EP=(e,t,r,s)=>{Yi(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class wP extends lP{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(Ko(e.$ref)),l=Ls(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(Ko(e.$ref)),h=qs(a,Ko(e.$ref));this.indirections.push(e);const d=Ec(h);let m=na(p.value.result,d);if(m.id=xP.identify(m),ro(m)){const t=Ko(e.meta.get("referenced-element")),r=`${t}-${Ko(xP.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(fp(m))m=yj.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 Mt("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new GE(`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 Mt("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Pi.sI(m.id,{type:"reference",uri:p.uri,$ref:Ko(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,EP),!r&&s}}const f=Ls(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||ES(m)||y)&&!t.includesCycle(m)){s.add(e);const i=new wP({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??[...hP([...n,r,e]),"$ref"]});m=await bP(m,i,{keyMap:qO,nodeTypeGetter:BO}),s.delete(e)}this.indirections.pop();const v=Do(m);if(v.setMetaProperty("ref-fields",{$ref:Ko(e.$ref),description:Ko(e.description),summary:Ko(e.summary)}),v.setMetaProperty("ref-origin",p.uri),v.setMetaProperty("ref-referencing-element-id",Mo(xP.identify(e))),Wi(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&&Wi(v)&&!v.hasKey("$$ref")){const e=qs(a,h);v.set("$$ref",e)}return i.replaceWith(v,EP),!r&&v}catch(t){const s=yP(t),i=gP(s,{baseDoc:this.reference.uri,$ref:Ko(e.$ref),pointer:Ec(Ko(e.$ref)),fullPath:this.basePath??[...hP([...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(!Ji(e.$ref))return;if(I()(o=this.indirections).call(o,e))return!1;if(io(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),a=this.toBaseURI(Ko(e.$ref)),l=Ls(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(Ko(e.$ref)),h=qs(a,Ko(e.$ref));this.indirections.push(e);const d=Ec(h);let m=na(p.value.result,d);if(m.id=xP.identify(m),ro(m)){const e=`path-item-${Ko(xP.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=dj.refract(m),this.refractCache.set(e,m))}if(e===m)throw new Mt("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new GE(`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 Mt("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Pi.sI(m.id,{type:"path-item",uri:p.uri,$ref:Ko(e.$ref),baseURI:h,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,EP),!r&&s}}const f=Ls(p.refSet.rootRef.uri)!==p.uri,y=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((u||f||gS(m)&&Ji(m.$ref)||y)&&!t.includesCycle(m)){s.add(e);const i=new wP({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...hP([...n,r,e]),"$ref"]});m=await bP(m,i,{keyMap:qO,nodeTypeGetter:BO}),s.delete(e)}if(this.indirections.pop(),gS(m)){const t=new dj([...m.content],Mo(m.meta),Mo(m.attributes));if(e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Mo(xP.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=qs(a,h);t.set("$$ref",e)}m=t}return i.replaceWith(m,EP),r?void 0:m}catch(t){const s=yP(t),i=gP(s,{baseDoc:this.reference.uri,$ref:Ko(e.$ref),pointer:Ec(Ko(e.$ref)),fullPath:this.basePath??[...hP([...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(!Ji(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(Vs(this.reference.uri)),{uri:l}=a;const u=eP(l,e),p=Ls(u),h=new eE({uri:p}),d=!this.options.resolve.resolvers.some(e=>e.canRead(h)),m=!d;let f,y=Ls(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(u);const e=u,t=rP(a.value.result);if(f=sP(e,t),f=rP(f),f.id=xP.identify(f),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(l=this.toBaseURI(u),y=Ls(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Vs(u));const e=Ec(u),t=rP(a.value.result);f=na(t,e),f=rP(f),f.id=xP.identify(f)}}catch(e){if(!(m&&e instanceof UE))throw e;if(XO(QO(u))){if(y=Ls(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Vs(u));const e=QO(u),t=rP(a.value.result);f=ZO(e,t),f=rP(f),f.id=xP.identify(f)}else{if(l=this.toBaseURI(Ko(u)),y=Ls(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;a=await this.toReference(Vs(u));const e=Ec(u),t=rP(a.value.result);f=na(t,e),f=rP(f),f.id=xP.identify(f)}}if(e===f)throw new Mt("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new GE(`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 Mt("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Pi.sI(f.id,{type:"json-schema",uri:a.uri,$ref:Ko(e.$ref),baseURI:qs(l,u),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-2"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,EP),!r&&s}}const g=Ls(a.refSet.rootRef.uri)!==a.uri,b=I()(c=["error","replace"]).call(c,this.options.dereference.circular);if((v||g||PS(f)&&Ji(f.$ref)||b)&&!t.includesCycle(f)){s.add(e);const i=new wP({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...hP([...n,r,e]),"$ref"]});f=await bP(f,i,{keyMap:qO,nodeTypeGetter:BO}),s.delete(e)}if(this.indirections.pop(),$S(f)){const t=Mo(f);return t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Mo(xP.identify(e))),i.replaceWith(t,EP),!r&&t}if(PS(f)){const t=new xj([...f.content],Mo(f.meta),Mo(f.attributes));if(e.forEach((e,r,s)=>{t.remove(Ko(r)),t.content.push(s)}),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ko(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",Mo(xP.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=qs(l,u);t.set("$$ref",e)}f=t}return i.replaceWith(f,EP),r?void 0:f}catch(t){const s=yP(t),i=new vP(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Ko(e.$ref),fullPath:this.basePath??[...hP([...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=yP(t),i=gP(s,{baseDoc:this.reference.uri,externalValue:Ko(e.externalValue),fullPath:this.basePath??[...hP([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const jP=wP,SP=mo[Symbol.for("nodejs.util.promisify.custom")];const OP=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new jP({...n,options:s})),"function"==typeof t&&i.push(new dP({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new mP({options:s})),"function"==typeof e&&i.push(new fP({parameterMacro:e,options:s}));const o=SP(i,{nodeTypeGetter:BO});Object.assign(this,o)}},PP=Uo[Symbol.for("nodejs.util.promisify.custom")];const $P=class extends pP{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=pc(UO),s=t.dereference.refSet??new Ux,n=new Ux;let i,o=s;s.has(e.uri)?i=s.find(t=>t.uri===e.uri):(i=new qx({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map(e=>new qx({...e,value:Mo(e.value)})).forEach(e=>n.add(e)),i=n.find(t=>t.uri===e.uri),o=n);const c=new OP({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),a=await PP(o.rootRef.value,c,{keyMap:qO,nodeTypeGetter:BO});return t.dereference.immutable&&n.refs.filter(e=>e.uri.startsWith("immutable://")).map(e=>new qx({...e,uri:e.uri.replace(/^immutable:\/\//,"")})).forEach(e=>s.add(e)),null===t.dereference.refSet&&s.clean(),n.clean(),a}},AP=e=>{const t=Ko(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Pi.Sh({$ref:t},Mo(r.meta),Mo(r.attributes))},kP=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}=kP,f=d.find(e=>e.match(t)),v=Ds(Bs())?Bs():y,g=Me(e),b=qs(v,g);let x;m.has(t)?x=m.get(t):(x=uj.refract(t),x.classes.push("result"),m.set(t,x));const E=new Di([x]),w=Wc(o),j=""===w?"":`#${w}`,S=na(x,w),O=new qx({uri:b,value:E}),P=new Ux({refs:[O]});""!==w&&(P.rootRef=void 0);const $=[new Set([S])],A=[],k=await cE(S,{resolve:{baseURI:`${b}${j}`,resolvers:[new xE({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new dE]},parse:{mediaType:WO.latest(),parsers:[new KO({allowEmpty:!1,sourceMap:!1}),new YO({allowEmpty:!1,sourceMap:!1}),new wE({allowEmpty:!1,sourceMap:!1}),new jE({allowEmpty:!1,sourceMap:!1}),new pE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new $P({allowMetaPatches:c,useCircularStructures:a,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:$})],refSet:P,dereferenceOpts:{errors:A},immutable:!1,circular:a?"ignore":"replace",circularReplacer:a?Hx.dereference.circularReplacer:AP}}),T=xc(S,k,x),C=l?T:f.normalize(T);return{spec:Ko(C),errors:A}}catch(e){if(e instanceof Xc)return{spec:t,errors:[]};throw e}};kP.cache=new WeakMap;const TP=kP;const CP=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);Wi(e)||(e=new Pi.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Ki(t)||(t=new Pi.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)}},FP=e=>e.replace(/\s/g,""),MP=e=>e.replace(/\W/gi,"_"),IP=(e,t,r)=>{const s=FP(e);return s.length>0?MP(s):((e,t)=>`${MP(FP(t.toLowerCase()))}${MP(FP(e))}`)(t,r)},RP=({storageField:e="x-normalized",operationIdNormalizer:t=IP}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],c=[],a=[];let l;return{visitor:{OpenApi3_2Element:{enter(t){l=new CP(t,e,"operation-ids")},leave(){const e=Iw(e=>Ko(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(Ko(e.operationId)),r=c.find(e=>Ko(e.meta.get("originalOperationId"))===t);void 0!==r&&(e.operationId=Mo.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=nr("path",Ko(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(Ko(e.operationId)),d=lr(o),m=nr("method",Ko(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)}}}}},DP=({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)&&(Ko(e.name)===Ko(t.name)&&Ko(e.in)===Ko(t.in))))))),i=[];let o;return{visitor:{OpenApi3_2Element:{enter(t){o=new CP(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=lr(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...a,r,e]);if(o.includes(u))return;const p=FE([],["parameters","content"],e),h=hw(n,[...p,...l]);e.parameters=new Af(h),o.append(u)}}}}},_P=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_2Element:{enter(t){i=new CP(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 Nf(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},NP=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new CP(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=>Mo.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",[Mo(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Mo(e.example)),n.append(u)))}}}}}},LP=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_2Element:{enter(t){n=new CP(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=>Mo.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",[Mo(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Mo(e.example)),n.append(u)))}}}}}},BP=e=>{if(!Wi(e))return e;const t=[RP({operationIdNormalizer:(e,t,r)=>di({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),DP(),_P(),NP(),LP()];return fc(e,t,{toolboxCreator:JO,visitorOptions:{keyMap:qO,nodeTypeGetter:BO}})},qP={name:"openapi-3-2-apidom",match:e=>bi(e),normalize(e){if(!Vi(e)&&pi(e)&&!e.$$normalized){const r=(t=BP,e=>{const r=uj.refract(e);r.classes.push("result");const s=t(r),n=Ko(s);return TP.cache.set(n,s),Ko(s)})(e);return r.$$normalized=!0,r}var t;return Vi(e)?BP(e):e},resolve:async e=>TP(e)};function UP(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 VP=()=>null,JP={mapTagOperations:function({spec:e,cb:t=VP,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return UP(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=di(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 HP=(e,t,r,s,n)=>{if(e===$c.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",Pc.charsToString(t,r,s)])}return $c.SEM_OK},zP=(e,t,r,s,n)=>{if(e===$c.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",Pc.charsToString(t,r,s)])}return $c.SEM_OK},GP=(e,t,r,s,n)=>{if(e===$c.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",Pc.charsToString(t,r,s)])}return $c.SEM_OK},WP=(e,t,r,s,n)=>{if(e===$c.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",Pc.charsToString(t,r,s)])}return $c.SEM_OK},KP=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'}},YP=e=>{const t=new wc;t.ast=new jc,t.ast.callbacks["server-url-template"]=HP,t.ast.callbacks["server-variable"]=zP,t.ast.callbacks["server-variable-name"]=GP,t.ast.callbacks.literals=WP;return{result:t.parse(KP,"server-url-template",e),ast:t.ast}},XP=(e,{strict:t=!1}={})=>{try{const r=YP(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}},QP=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),ZP=["literals","server-variable-name"],e$=(e,t,r={})=>{const s={...{encoder:QP},...r},n=YP(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter(([e])=>ZP.includes(e)).map(([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r);return o.join("")};function t$(){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 r$=(e,t,r,s,n)=>(e===$c.SEM_PRE?n.push(["slash",Pc.charsToString(t,r,s)]):$c.SEM_POST,$c.SEM_OK),s$=(e,t,r,s,n)=>{if(e===$c.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",Pc.charsToString(t,r,s)])}return $c.SEM_OK},n$=(e,t,r,s,n)=>(e===$c.SEM_PRE?n.push(["path-literal",Pc.charsToString(t,r,s)]):$c.SEM_POST,$c.SEM_OK),i$=(e,t,r,s,n)=>(e===$c.SEM_PRE?n.push(["template-expression",Pc.charsToString(t,r,s)]):$c.SEM_POST,$c.SEM_OK),o$=(e,t,r,s,n)=>(e===$c.SEM_PRE?n.push(["template-expression-param-name",Pc.charsToString(t,r,s)]):$c.SEM_POST,$c.SEM_OK),c$=new t$,a$=e=>{const t=new wc;t.ast=new jc,t.ast.callbacks["path-template"]=s$,t.ast.callbacks.slash=r$,t.ast.callbacks["path-literal"]=n$,t.ast.callbacks["template-expression"]=i$,t.ast.callbacks["template-expression-param-name"]=o$;return{result:t.parse(c$,"path-template",e),ast:t.ast}};const l$=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),u$=["slash","path-literal","template-expression-param-name"],p$=(e,t,r={})=>{const s={...{encoder:l$},...r},n=a$(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter(([e])=>u$.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 t$,new wc;const h$={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=p$(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 d$(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 m$(){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 m$;const f$=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)},y$=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),v$=e=>y$(e)?e.slice(1,-1):e,g$=e=>`"${e}"`,b$=e=>e,x$=new wc,E$=new m$,w$=(e,{strict:t=!0,quoted:r=null}={})=>{try{const s=t?"cookie-value":"lenient-cookie-value",n=x$.parse(E$,s,e);return"boolean"==typeof r?n.success&&r===y$(e):n.success}catch{return!1}},j$=e=>{const t=(new TextEncoder).encode(e).reduce((e,t)=>e+String.fromCharCode(t),"");return btoa(t)},S$=(e,t=j$)=>{const r=String(e);if(w$(r))return r;const s=y$(r),n=t(s?v$(r):r);return s?g$(n):n},O$=e=>j$(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),P$=e=>S$(e,O$),$$=new wc,A$=new m$,k$=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return $$.parse(A$,r,e).success}catch{return!1}},T$=e=>{if(!k$(e))throw new TypeError(`Invalid cookie name: ${e}`)},C$=e=>{if(!w$(e))throw new TypeError(`Invalid cookie value: ${e}`)},F$={encoders:{name:b$,value:P$},validators:{name:T$,value:C$}},M$=(e,t,r={})=>{const s={...F$,...r,encoders:{...F$.encoders,...r.encoders},validators:{...F$.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},I$=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map(([e,r])=>M$(e,r,t)).join("; ");const R$=new wc,D$=new m$,_$=e=>{const t=String(e);if(w$(t))return t;const r=y$(t),s=r?v$(t):t;let n="";for(const e of s)n+=R$.parse(D$,"cookie-octet",e).success?e:f$(e);return r?g$(n):n};new wc,new m$;const N$=e=>{if(!k$(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const L$=e=>_$(e).replace(/[=&]/gu,e=>"="===e?"%3D":"%26"),B$=(e,t={})=>I$(e,Qo({encoders:{name:b$,value:L$},validators:{name:N$,value:C$}},t));function q$({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=p$(a,{[n]:t},{encoder:t=>S(d$(t,e))})}else l=p$(a,{[n]:t},{encoder:e=>O({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function U$({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=d$(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 V$=["accept","authorization","content-type"];function J$({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(V$.indexOf(t.name.toLowerCase())>-1)){if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];return void(e.headers[t.name]=d$(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 H$({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=d$(r,Object.keys(t.content)[0]);return void(e.headers.Cookie=B$({[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=B$({[s]:i})}}const z$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:G$}=z$,W$=G$;function K$(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=W$(`${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&&pi(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 Y$(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=W$(`${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 X$(e,t){return`${t.toLowerCase()}-${e}`}function Q$(e,t){return e&&e.paths?function(e,t){return UP(e,t,!0)||null}(e,({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[di(s,e,r),X$(e,r),n].some(e=>e&&e===t)}):null}const Z$=e=>Array.isArray(e)?e:[],eA=(e,{recurse:t=!0,depth:r=1}={})=>{var s,n;if(pi(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=>eA(e,{recurse:t,depth:r+1})):void 0;if(s)return s;const n=Array.isArray(e.anyOf)?e.anyOf.find(e=>eA(e,{recurse:t,depth:r+1})):void 0;if(n)return n}}},tA=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(pi(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},rA=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 sA extends It{}const nA={buildRequest:iA};function iA(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=xi(t);y||(y=g?m:h$);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=Q$(t,r);if(!x)throw new sA(`Operation ${r} not found`);const{operation:E={},method:w,pathName:j}=x;if(v=v??cA({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(Z$(E.parameters)).concat(Z$(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&&(So("type",e.schema)&&"string"==typeof e.schema.type&&eA(e.schema,{recurse:!1})?s=tA({value:s,silentFail:!1}):(So("type",e.schema)&&Array.isArray(e.schema.type)&&eA(e.schema,{recurse:!1})||!So("type",e.schema)&&eA(e.schema,{recurse:!0}))&&(s=tA({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?K$(P,b):Y$(P,b),b.cookies&&Object.keys(b.cookies).length>0){const e=B$(b.cookies);Ll(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,F(b)}const oA=e=>e?e.replace(/\W/g,""):null;function cA(e){return xi(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=aA(u)?u:aA(p)?p:aA(h)?h:[v],s&&(c=a.find(e=>e.url===s),c&&(l=s));l||([c]=a,l=c.url);if(XP(l,{strict:!0})){const e=Object.entries({...c.variables}).reduce((e,[t,r])=>(e[t]=r.default,e),{});l=e$(l,{...e,...i},{encoder:"function"==typeof o?o:Jx})}return function(e="",t=""){const r=rA(e&&t?qs(t,e):e),s=rA(t),n=oA(r.protocol)||oA(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=rA(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||oA(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 aA=e=>Array.isArray(e)&&e.length>0;const{q$:lA}=n,uA=lA;function pA(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof pA))return new pA(t);Object.assign(this,t);const r=this.resolve().then(()=>(this.disableInterfaces||Object.assign(this,pA.makeApisTagOperation(this)),this));return r.client=this,r}pA.http=Ce,pA.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,pA.http),pA.resolveStrategies={"openapi-3-2-apidom":qP,"openapi-3-1-apidom":Hw,"openapi-3-0":wi,"openapi-2-0":Ei,generic:fi},pA.resolve=ji({strategies:[pA.resolveStrategies["openapi-3-2-apidom"],pA.resolveStrategies["openapi-3-1-apidom"],pA.resolveStrategies["openapi-3-0"],pA.resolveStrategies["openapi-2-0"],pA.resolveStrategies.generic]}),pA.resolveSubtree=Oi({strategies:[pA.resolveStrategies["openapi-3-2-apidom"],pA.resolveStrategies["openapi-3-1-apidom"],pA.resolveStrategies["openapi-3-0"],pA.resolveStrategies["openapi-2-0"],pA.resolveStrategies.generic]}),pA.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:c,...a}){const l=e||t||Ce;n&&i&&!s&&(s=X$(n,i));const u=nA.buildRequest({spec:r,operationId:s,parameters:o,securities:c,http:l,...a});return u.body&&(pi(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},pA.serializeRes=Te,pA.serializeHeaders=ke,pA.clearCache=function(){Xn.refs.clearCache()},pA.makeApisTagOperation=function(e={}){const t=JP.makeExecute(e);return{apis:JP.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},pA.buildRequest=iA,pA.helpers={opId:di},pA.getBaseUrl=cA,pA.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:xE}},parse:{parsers:{JsonParser:wE,YamlParser:jE,OpenApiJson3_1Parser:SE,OpenApiYaml3_1Parser:OE,OpenApiJson3_2Parser:KO,OpenApiYaml3_2Parser:YO}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Pw,OpenApi3_2SwaggerClientDereferenceStrategy:$P}}},pA.prototype={http:Ce,execute(e){return this.applyDefaults(),pA.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 pA.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))}},pA.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(yi(e)&&uA(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(xi(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[v])}};const{helpers:hA}=pA,dA=pA})(),s=s.default})());
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|