All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.apidom-parser-adapter-openapi-yaml-2.browser.min.js Maven / Gradle / Ivy

The newest version!
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml2=t():e.apidomParserAdapterOpenApiYaml2=t()}(self,(()=>(()=>{var e={3103:(e,t,n)=>{var r=n(4715)(n(8942),"DataView");e.exports=r},5098:(e,t,n)=>{var r=n(3305),s=n(9361),i=n(1112),o=n(5276),a=n(5071);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(2393),s=n(2049),i=n(7144),o=n(7452),a=n(3964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(4715)(n(8942),"Map");e.exports=r},8250:(e,t,n)=>{var r=n(9753),s=n(5681),i=n(88),o=n(4732),a=n(9068);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(4715)(n(8942),"Promise");e.exports=r},4512:(e,t,n)=>{var r=n(4715)(n(8942),"Set");e.exports=r},3212:(e,t,n)=>{var r=n(8250),s=n(1877),i=n(8006);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(1386),s=n(4103),i=n(1779),o=n(4162),a=n(7462),c=n(6638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,n)=>{var r=n(8942).Symbol;e.exports=r},1623:(e,t,n)=>{var r=n(8942).Uint8Array;e.exports=r},9270:(e,t,n)=>{var r=n(4715)(n(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n{var r=n(6137),s=n(3283),i=n(3142),o=n(5853),a=n(9632),c=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},1129:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8244:(e,t,n)=>{var r=n(1129),s=n(3142);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},7379:(e,t,n)=>{var r=n(5650),s=n(8870),i=n(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},4687:(e,t,n)=>{var r=n(353),s=n(547);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},353:(e,t,n)=>{var r=n(1340),s=n(3934),i=n(8861),o=n(1182),a=n(8486),c=n(3142),u=n(5853),l=n(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,g){var y=c(e),v=c(t),w=y?h:a(e),b=v?h:a(t),E=(w=w==p?m:w)==m,x=(b=b==p?m:b)==m,S=w==b;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||l(e)?s(e,t,n,d,_,g):i(e,t,w,n,d,_,g);if(!(1&n)){var P=E&&f.call(e,"__wrapped__"),j=x&&f.call(t,"__wrapped__");if(P||j){var O=P?e.value():e,A=j?t.value():t;return g||(g=new r),_(O,A,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,_,g))}},9624:(e,t,n)=>{var r=n(3655),s=n(4759),i=n(1580),o=n(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?h:a).test(o(e))}},674:(e,t,n)=>{var r=n(7379),s=n(5387),i=n(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},195:(e,t,n)=>{var r=n(4882),s=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6137:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,n)=>{var r=n(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,n)=>{var r=n(3212),s=n(6465),i=n(5568);e.exports=function(e,t,n,o,a,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f{var r=n(5650),s=n(1623),i=n(6285),o=n(3934),a=n(5894),c=n(7447),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,n)=>{var r=n(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393:(e,t,n)=>{var r=n(8244),s=n(7979),i=n(1211);e.exports=function(e){return r(e,i,s)}},4700:(e,t,n)=>{var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4715:(e,t,n)=>{var r=n(9624),s=n(155);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},8870:(e,t,n)=>{var r=n(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},7979:(e,t,n)=>{var r=n(9847),s=n(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},8486:(e,t,n)=>{var r=n(3103),s=n(9770),i=n(9413),o=n(4512),a=n(9270),c=n(7379),u=n(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),g=u(i),y=u(o),v=u(a),w=c;(r&&w(new r(new ArrayBuffer(1)))!=f||s&&w(new s)!=l||i&&w(i.resolve())!=p||o&&w(new o)!=h||a&&w(new a)!=m)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case _:return l;case g:return p;case y:return h;case v:return m}return t}),e.exports=w},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,n)=>{var r=n(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},5276:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5071:(e,t,n)=>{var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,n)=>{var r,s=n(1950),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,n)=>{var r=n(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},9753:(e,t,n)=>{var r=n(5098),s=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},5681:(e,t,n)=>{var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,n)=>{var r=n(4700);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4497:(e,t,n)=>{var r=n(4715)(Object,"create");e.exports=r},8121:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},2306:(e,t,n)=>{e=n.nmd(e);var r=n(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.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},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},8942:(e,t,n)=>{var r=n(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4103:(e,t,n)=>{var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,n)=>{var r=n(1386),s=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},4066: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""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,n)=>{var r=n(6027),s=n(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,n)=>{var r=n(3655),s=n(5387);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},2563:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},5853:(e,t,n)=>{e=n.nmd(e);var r=n(8942),s=n(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},6343:(e,t,n)=>{var r=n(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,n)=>{var r=n(7379),s=n(1580);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,n)=>{var r=n(7379),s=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,n)=>{var r=n(674),s=n(9460),i=n(2306),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},1211:(e,t,n)=>{var r=n(358),s=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):s(e)}},1517: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)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,n)=>{const r=n(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322: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},5735:(e,t,n)=>{const r=n(9310),s=n(8138),i=n(986),o=n(2563),a=n(1580),c=n(394),u=n(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3311:(e,t,n)=>{const r=n(1517),s=n(4123);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,n)=>{const r=n(8631),s=n(3004),i=n(8712),o=n(2536),a=n(2555),c=n(9796),u=n(7309),l=n(5642),p=n(9620),h=n(593),m=n(4123),f=n(3311),d=n(2322);function _(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},9620:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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)}}},593:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,n)=>{const r=n(5735),s=n(7547);t.g$=r,t.KeyValuePair=n(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,n(394),n(3148)},9796:(e,t,n)=>{const r=n(1517),s=n(8631),i=n(4123);class o extends s{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t{e.bind(t)(n,this.refract(r))}))}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 n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,n)=>{const r=n(6343),s=n(2322),i=n(4123);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,n)=>{const r=n(2322),s=n(8631);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},5642:(e,t,n)=>{const r=n(1517),s=n(1580),i=n(9796),o=n(7309),a=n(3311);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},8712:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,n)=>{const r=n(394);e.exports=class extends r{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 n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},394: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 n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},8583:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(n=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,n)=>{"use strict";t.MH=void 0;const r=n(8583);function s(e,t,n){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==n&&n!==e.length)throw new SyntaxError(r.errorMessages.get(t));return s}function i(e,t){const n=s(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,n,a,c,u,l,p,h,m){if(void 0!==n)return"\\";if(void 0!==a)return function(e){const t=s(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const n=s(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==m)return f=m,o.get(f)||f;var f;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},3833:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,g,y,v,w="";c?(w=p?n(4142).dirname(w)+"/":"//",d=function(e,t){return y||(y=n(3078)),v||(v=n(4142)),e=v.normalize(e),y.readFileSync(e,t?null:"utf8")},g=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=r,f=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?w=self.location.href:void 0!==s&&s.currentScript&&(w=s.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var b=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var E,x=16,S=[];function P(e,t){if(!E){E=new WeakMap;for(var n=0;n>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+n)}}function M(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var N=!1;function T(e,t){e||ae("Assertion failed: "+t)}var $,R,F,C,q,D,L,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&V)return V.decode(e.subarray(t,s));for(var i="";t>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?B(F,e,t):""}function z(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-1,o=0;o=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function H(e,t,n){return z(e,F,t,n)}function G(e){for(var t=0,n=0;n=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function K(e){var t=G(e)+1,n=Ue(t);return z(e,R,n,t),n}function W(e){$=e,r.HEAP8=R=new Int8Array(e),r.HEAP16=C=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=F=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var J=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:J/65536,maximum:32768}))&&($=A.buffer),J=$.byteLength,W($);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Z=[],X=[],Q=[],ee=[],te=!1,ne=0,re=null,se=null;function ie(e){ne++,r.monitorRunDependencies&&r.monitorRunDependencies(ne)}function oe(e){if(ne--,r.monitorRunDependencies&&r.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),se)){var t=se;se=null,t()}}function ae(e){throw r.onAbort&&r.onAbort(e),b(e+=""),N=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&j)return new Uint8Array(j);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return r.locateFile?r.locateFile(e,w):w+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?Y.get(n)():Y.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,n(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o0}function we(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function be(e,t){for(var n in e)if(e.hasOwnProperty(n)){qe.hasOwnProperty(n)||(qe[n]=e[n]);var s=we(n);r.hasOwnProperty(s)||(r[s]=e[n])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Pe(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!Se(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==fe[t].value)&&("function"==typeof r?fe[t].value=P(r):"number"==typeof r?fe[t].value=r:b("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function je(e,t){var n,s;return t&&(n=qe["orig$"+e]),n||(n=qe[e]),n||(n=r[we(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=Ve();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):Y.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),n}function Oe(e,t){var n=ge(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(e){if(te)return De(e);var t=xe,n=t+e+15&-16;return xe=n,fe.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Y.length;Y.grow(n.tableSize);for(var u=a;u>2]=28,-1;n=Ie()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function $e(e){try{return A.grow(e-$.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Re(e){We(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var Ce,qe={__heap_base:xe,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:Me,__table_base:1,abort:Ne,clock_gettime:Te,emscripten_memcpy_big:function(e,t,n){F.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=F.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),$e(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:A,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const n=U(t);ut(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=ct(t,{row:n,column:r});"string"==typeof i?(I(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s>1]=i,t+=2}C[t>>1]=0}(i,e,10240)):I(s,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var n=e.exports;n=Pe(n,1024),r.asm=n;var s,i=ge(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),be(n),s=r.asm.__wasm_call_ctors,X.unshift(s),oe()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){b("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return b("Module.instantiateWasm callback failed with error: "+e),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(n):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return b("wasm streaming compile failed: "+e),b("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Ve=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Ve=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Be=r.stackRestore=function(){return(Be=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?F.set(e,n):F.set(new Uint8Array(e),n),n},se=function e(){Ce||Ke(),Ce||(se=e)};var Ge=!1;function Ke(e){function t(){Ce||(Ce=!0,r.calledRun=!0,N||(te=!0,_e(X),_e(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Je&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=Ue(4*(n+1));q[s>>2]=K(m);for(var i=1;i>2)+i]=K(e[i-1]);q[(s>>2)+n]=0;try{We(t(n,s),!0)}catch(e){if(e instanceof He)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),b("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,ne>0||!Ge&&(function(){if(O.length){if(!g)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ge=!0,ne>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),Z.unshift(e);var e;_e(Z)}(),ne>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function We(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),N=!0),f(e,new He(e)))}if(r.run=Ke,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Je=!0;r.noInitialRun&&(Je=!1),Ke();const Ye=r,Ze={},Xe=4,Qe=5*Xe,et=2*Xe,tt=2*Xe+2*et,nt={row:0,column:0},rt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ye._ts_init(),it=M(at,"i32"),ot=M(at+Xe,"i32")}initialize(){Ye._ts_parser_new_wasm(),this[0]=M(at,"i32"),this[1]=M(at+Xe,"i32")}delete(){Ye._ts_parser_delete(this[0]),Ye._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const n=Ye._ts_language_version(t);if(ne.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ye._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ye._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ye._calloc(r,tt);for(let t=0;t0){let e=n;for(let n=0;n0){let n=t;for(let t=0;t0){let n=t;for(let t=0;t0){let e=a;for(let t=0;t>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ye._free(e),t}}class mt{constructor(e,t){yt(e),this.tree=t,xt(this)}delete(){Et(this),Ye._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){wt(e),Et(this,at+Qe),Ye._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ye._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ye._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ye._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ye._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ye._ts_tree_cursor_start_position_wasm(this.tree[0]),Pt(at)}get endPosition(){return Et(this),Ye._ts_tree_cursor_end_position_wasm(this.tree[0]),Pt(at)}get startIndex(){return Et(this),Ye._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ye._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ye._ts_tree_cursor_current_node_wasm(this.tree[0]),bt(this.tree)}currentFieldId(){return Et(this),Ye._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ye._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ye._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ye._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){yt(e),this[0]=t,this.types=new Array(Ye._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ye._free(n),new dt(Ze,r,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ft(Ze,r)}))}}class dt{constructor(e,t,n,r,s,i,o,a){yt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ye._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;te(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ye._free(o),c}captures(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;te(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ye._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function gt(e,t,n,r){for(let s=0,i=r.length;s{lt.init(),t()}})))}}return i}();e.exports=s},3078:()=>{},4142:()=>{},1212:(e,t,n)=>{e.exports=n(8411)},7202:(e,t,n)=>{"use strict";var r=n(239);e.exports=r},6656:(e,t,n)=>{"use strict";n(484),n(5695),n(6138),n(9828),n(3832);var r=n(8099);e.exports=r.AggregateError},8411:(e,t,n)=>{"use strict";e.exports=n(8337)},8337:(e,t,n)=>{"use strict";n(5442);var r=n(7202);e.exports=r},814:(e,t,n)=>{"use strict";var r=n(2769),s=n(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,n)=>{"use strict";var r=n(2937),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,n)=>{"use strict";var r=n(262),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,n)=>{"use strict";var r=n(3273),s=n(4574),i=n(8130),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,n)=>{"use strict";var r=n(6100),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,n)=>{"use strict";var r=n(4904),s=n(2769),i=n(9932),o=n(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},7464:(e,t,n)=>{"use strict";var r=n(701),s=n(5691),i=n(4543),o=n(9989);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l{"use strict";var r=n(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,n)=>{"use strict";var r=n(5024),s=n(9989),i=n(480);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,n)=>{"use strict";var r=n(3999);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},7525:(e,t,n)=>{"use strict";var r=n(1063),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,n)=>{"use strict";var r=n(1063),s=n(262),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100: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}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,n)=>{"use strict";var r,s,i=n(1063),o=n(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,n)=>{"use strict";var r=n(6100),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,n)=>{"use strict";var r=n(3999),s=n(3885),i=n(5791),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},5791:(e,t,n)=>{"use strict";var r=n(1203),s=n(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,n)=>{"use strict";var r=n(1063),s=n(7013),i=n(9344),o=n(2769),a=n(4543).f,c=n(8696),u=n(8099),l=n(4572),p=n(3999),h=n(701),m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,g,y,v,w,b=e.target,E=e.global,x=e.stat,S=e.proto,P=E?r:x?r[b]:r[b]&&r[b].prototype,j=E?u:u[b]||p(u,b,{})[b],O=j.prototype;for(d in t)s=!(n=c(E?d:b+(x?".":"#")+d,e.forced))&&P&&h(P,d),g=j[d],s&&(y=e.dontCallGetSet?(w=a(P,d))&&w.value:P[d]),_=s&&y?y:t[d],(n||S||typeof g!=typeof _)&&(v=e.bind&&s?l(_,r):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||g&&g.sham)&&p(v,"sham",!0),p(j,d,v),S&&(h(u,f=b+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(n||!O[d])&&p(O,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,n)=>{"use strict";var r=n(9344),s=n(814),i=n(1780),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,n)=>{"use strict";var r=n(5024),s=n(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,n)=>{"use strict";var r=n(6100),s=n(814);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},9344:(e,t,n)=>{"use strict";var r=n(9932),s=n(6100);e.exports=function(e){if("Function"===r(e))return s(e)}},6100:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,n)=>{"use strict";var r=n(8099),s=n(1063),i=n(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},967:(e,t,n)=>{"use strict";var r=n(8407),s=n(4674),i=n(3057),o=n(6625),a=n(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1613:(e,t,n)=>{"use strict";var r=n(4713),s=n(814),i=n(7235),o=n(459),a=n(967),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,n)=>{"use strict";var r=n(814),s=n(3057);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},1063:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,n)=>{"use strict";var r=n(6100),s=n(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,n)=>{"use strict";var r=n(1003);e.exports=r("document","documentElement")},9665:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203),i=n(9619);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,n)=>{"use strict";var r=n(6100),s=n(1203),i=n(9932),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,n)=>{"use strict";var r=n(2769),s=n(262),i=n(3491);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},8148:(e,t,n)=>{"use strict";var r=n(262),s=n(3999);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,n)=>{"use strict";var r,s,i,o=n(1314),a=n(1063),c=n(262),u=n(3999),l=n(701),p=n(3753),h=n(4275),m=n(5241),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new _);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(l(e,y))throw new d(f);return t.facade=e,u(e,y,t),t},s=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},2877:(e,t,n)=>{"use strict";var r=n(8655),s=n(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769: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}},8696:(e,t,n)=>{"use strict";var r=n(1203),s=n(2769),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n===l||n!==u&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,n)=>{"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,n)=>{"use strict";var r=n(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,n)=>{"use strict";var r=n(1003),s=n(2769),i=n(4317),o=n(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},208:(e,t,n)=>{"use strict";var r=n(4572),s=n(4713),i=n(7235),o=n(459),a=n(2877),c=n(8130),u=n(4317),l=n(1613),p=n(967),h=n(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,g,y,v,w,b,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=r(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},I=function(e){return S?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(P)_=e.iterator;else if(j)_=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((w=I(e[y]))&&u(d,w))return w;return new f(!1)}_=l(e,g)}for(b=P?e.next:_.next;!(E=s(b,_)).done;){try{w=I(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof w&&w&&u(d,w))return w}return new f(!1)}},1743:(e,t,n)=>{"use strict";var r=n(4713),s=n(7235),i=n(4674);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},1926:(e,t,n)=>{"use strict";var r=n(2621).IteratorPrototype,s=n(5780),i=n(480),o=n(1811),a=n(6625),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,n)=>{"use strict";var r=n(9098),s=n(4713),i=n(4871),o=n(3410),a=n(2769),c=n(1926),u=n(3671),l=n(3491),p=n(1811),h=n(3999),m=n(3508),f=n(8655),d=n(6625),_=n(2621),g=o.PROPER,y=o.CONFIGURABLE,v=_.IteratorPrototype,w=_.BUGGY_SAFARI_ITERATORS,b=f("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,n,o,f,_,j){c(n,t,o);var O,A,k,I=function(e){if(e===f&&R)return R;if(!w&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",N=!1,T=e.prototype,$=T[b]||T["@@iterator"]||f&&T[f],R=!w&&$||I(f),F="Array"===t&&T.entries||$;if(F&&(O=u(F.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[b])||m(O,b,P)),p(O,M,!0,!0),i&&(d[M]=P)),g&&f===x&&$&&$.name!==x&&(!i&&y?h(T,"name",x):(N=!0,R=function(){return s($,this)})),f)if(A={values:I(x),keys:_?R:I(E),entries:I(S)},j)for(k in A)(w||N||!(k in T))&&m(T,k,A[k]);else r({target:t,proto:!0,forced:w||N},A);return i&&!j||T[b]===R||m(T,b,R,{name:f}),d[t]=R,A}},2621:(e,t,n)=>{"use strict";var r,s,i,o=n(1203),a=n(2769),c=n(262),u=n(5780),l=n(3671),p=n(3508),h=n(8655),m=n(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,n)=>{"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4879:(e,t,n)=>{"use strict";var r=n(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,n)=>{"use strict";var r,s=n(7235),i=n(7389),o=n(9683),a=n(5241),c=n(3489),u=n(9619),l=n(4275),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+""},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},7389:(e,t,n)=>{"use strict";var r=n(5024),s=n(1330),i=n(9989),o=n(7235),a=n(3273),c=n(8364);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},9989:(e,t,n)=>{"use strict";var r=n(5024),s=n(9665),i=n(1330),o=n(7235),a=n(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4543:(e,t,n)=>{"use strict";var r=n(5024),s=n(4713),i=n(7161),o=n(480),a=n(3273),c=n(5341),u=n(701),l=n(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,n)=>{"use strict";var r=n(701),s=n(2769),i=n(2137),o=n(4275),a=n(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},4317:(e,t,n)=>{"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,n)=>{"use strict";var r=n(6100),s=n(701),i=n(3273),o=n(1005).indexOf,a=n(5241),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},8364:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683);e.exports=Object.keys||function(e){return r(e,s)}},7161:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},3491:(e,t,n)=>{"use strict";var r=n(3574),s=n(7235),i=n(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},9559:(e,t,n)=>{"use strict";var r=n(4904),s=n(8407);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,n)=>{"use strict";var r=n(4713),s=n(2769),i=n(262),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,n)=>{"use strict";var r=n(1003),s=n(6100),i=n(5116),o=n(7313),a=n(7235),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,n)=>{"use strict";var r=n(9989).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5426:(e,t,n)=>{"use strict";var r=n(3057),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,n)=>{"use strict";var r=n(4904),s=n(9989).f,i=n(3999),o=n(701),a=n(9559),c=n(8655)("toStringTag");e.exports=function(e,t,n,u){var l=n?e:e&&e.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a))}},4275:(e,t,n)=>{"use strict";var r=n(8141),s=n(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,n)=>{"use strict";var r=n(1063),s=n(7525),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},8141:(e,t,n)=>{"use strict";var r=n(4871),s=n(3753);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,n)=>{"use strict";var r=n(6100),s=n(9903),i=n(1139),o=n(5426),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,n)=>{"use strict";var r=n(4432),s=n(1203),i=n(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,n)=>{"use strict";var r=n(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},3273:(e,t,n)=>{"use strict";var r=n(1395),s=n(5426);e.exports=function(e){return r(s(e))}},9903:(e,t,n)=>{"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,n)=>{"use strict";var r=n(9903),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,n)=>{"use strict";var r=n(5426),s=Object;e.exports=function(e){return s(r(e))}},493:(e,t,n)=>{"use strict";var r=n(4713),s=n(262),i=n(6281),o=n(4674),a=n(9258),c=n(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,n)=>{"use strict";var r=n(493),s=n(6281);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},4904:(e,t,n)=>{"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,n)=>{"use strict";var r=n(8407),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,n)=>{"use strict";var r=n(6100),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,n)=>{"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,n)=>{"use strict";var r=n(1063),s=n(2769),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,n)=>{"use strict";var r=n(1063),s=n(8141),i=n(701),o=n(1268),a=n(4603),c=n(7460),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,n)=>{"use strict";var r=n(1003),s=n(701),i=n(3999),o=n(4317),a=n(3491),c=n(7464),u=n(5516),l=n(3507),p=n(4879),h=n(8148),m=n(4279),f=n(5024),d=n(4871);e.exports=function(e,t,n,_){var g="stackTraceLimit",y=_?2:1,v=e.split("."),w=v[v.length-1],b=r.apply(null,v);if(b){var E=b.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return b;var x=r("Error"),S=t((function(e,t){var n=p(_?t:e,void 0),r=_?new b(e):new b;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=E,"Error"!==w?a?a(S,x):c(S,x,{name:!0}):f&&g in b&&(u(S,b,g),u(S,b,"prepareStackTrace")),c(S,b),!d)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},6138:(e,t,n)=>{"use strict";var r=n(9098),s=n(1003),i=n(7013),o=n(1203),a=n(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,n)=>{"use strict";var r=n(9098),s=n(4317),i=n(3671),o=n(3491),a=n(7464),c=n(5780),u=n(3999),l=n(480),p=n(8148),h=n(4279),m=n(208),f=n(4879),d=n(8655)("toStringTag"),_=Error,g=[].push,y=function(e,t){var n,r=s(v,this);o?n=o(new _,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,g,{that:a}),u(n,"errors",a),n};o?o(y,_):a(y,_,{name:!0});var v=y.prototype=c(_.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},5695:(e,t,n)=>{"use strict";n(3085)},9828:(e,t,n)=>{"use strict";var r=n(3273),s=n(8137),i=n(6625),o=n(8417),a=n(9989).f,c=n(164),u=n(877),l=n(4871),p=n(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},484:(e,t,n)=>{"use strict";var r=n(9098),s=n(1063),i=n(7013),o=n(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,n)=>{"use strict";var r=n(5571).charAt,s=n(1139),i=n(8417),o=n(164),a=n(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},5442:(e,t,n)=>{"use strict";n(5695)},85:(e,t,n)=>{"use strict";n(9828);var r=n(1100),s=n(1063),i=n(1811),o=n(6625);for(var a in r)i(s[a],a),o[a]=o.Array},239:(e,t,n)=>{"use strict";n(5442);var r=n(6656);n(85),e.exports=r}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>_p,detectionRegExp:()=>dp,mediaTypes:()=>fp,namespace:()=>yp,parse:()=>gp});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>us,includesClasses:()=>ps,includesSymbols:()=>ls,isAnnotationElement:()=>ss,isArrayElement:()=>es,isBooleanElement:()=>Xr,isCommentElement:()=>is,isElement:()=>Wr,isLinkElement:()=>ns,isMemberElement:()=>ts,isNullElement:()=>Zr,isNumberElement:()=>Yr,isObjectElement:()=>Qr,isParseResultElement:()=>os,isPrimitiveElement:()=>cs,isRefElement:()=>rs,isSourceMapElement:()=>as,isStringElement:()=>Jr});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>va,isJSONSchemaElement:()=>ya,isLinkDescriptionElement:()=>ba,isMediaElement:()=>wa});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>hc,isSwaggerExtension:()=>pc});var i={};n.r(i),n.d(i,{isContactElement:()=>Jc,isDefinitionsElement:()=>mu,isExampleElement:()=>iu,isExternalDocumentationElement:()=>Qc,isHeaderElement:()=>ou,isHeadersElement:()=>su,isInfoElement:()=>Kc,isItemsElement:()=>tu,isLicenseElement:()=>Wc,isOperationElement:()=>Xc,isParameterElement:()=>eu,isParametersDefinitionsElement:()=>fu,isPathItemElement:()=>Zc,isPathsElement:()=>Yc,isReferenceElement:()=>cu,isResponseElement:()=>ru,isResponsesDefinitionsElement:()=>pu,isResponsesElement:()=>nu,isSchemaElement:()=>uu,isScopesElement:()=>_u,isSecurityDefinitionsElement:()=>hu,isSecurityRequirementElement:()=>gu,isSecuritySchemeElement:()=>du,isSwaggerElement:()=>Hc,isSwaggerVersionElement:()=>Gc,isTagElement:()=>au,isXmlElement:()=>lu});const o={"@@functional/placeholder":!0};function a(e){return e===o}function c(e){return function t(n){return 0===arguments.length||a(n)?t:e.apply(this,arguments)}}function u(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return a(n)?t:c((function(t){return e(n,t)}));default:return a(n)&&a(r)?t:a(n)?c((function(t){return e(t,r)})):a(r)?c((function(t){return e(n,t)})):e(n,r)}}}function l(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return a(n)?t:u((function(t,r){return e(n,t,r)}));case 2:return a(n)&&a(r)?t:a(n)?u((function(t,n){return e(t,r,n)})):a(r)?u((function(t,r){return e(n,t,r)})):c((function(t){return e(n,r,t)}));default:return a(n)&&a(r)&&a(s)?t:a(n)&&a(r)?u((function(t,n){return e(t,n,s)})):a(n)&&a(s)?u((function(t,n){return e(t,r,n)})):a(r)&&a(s)?u((function(t,r){return e(n,t,r)})):a(n)?c((function(t){return e(t,r,s)})):a(r)?c((function(t){return e(n,t,s)})):a(s)?c((function(t){return e(n,r,t)})):e(n,r,s)}}}const p=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return e<<0===e};function m(e){return"[object String]"===Object.prototype.toString.call(e)}function f(e,t){var n=e<0?t.length+e:e;return m(t)?t.charAt(n):t[n]}const d=u((function(e,t){if(null!=t)return h(e)?f(e,t):t[e]}));const _=l((function(e,t,n){return p(e,d(t,n))}));var g=u((function(e,t){for(var n={},r={},s=0,i=e.length;s=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=c((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!m(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var E="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function x(e,t,n){return function(r,s,i){if(b(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[E])return n(r,s,i[E]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function S(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function P(e,t,n,r){return n[r](e,t)}const j=x(v,P,S);function O(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!w(r)){for(var s=0;s=arguments.length)?u=t[o]:(u=arguments[s],s+=1),r[o]=u,a(u)?c=!0:i-=1,o+=1}return!c&&i<=0?n.apply(this,r):T(Math.max(0,i),$(e,r,n))}}const R=u((function(e,t){return 1===e?c(t):T(e,$(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const q=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return F("callee",e)}}();var D=!{toString:null}.propertyIsEnumerable("toString"),L=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],V=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var n=0;n=0;)F(t=L[n],e)&&!B(r,t)&&(r[r.length]=t),n-=1;return r})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const z=U;const H=u(O(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return v((function(n,r){return n[r]=e(t[r]),n}),{},z(t));default:return A(e,t)}})));const G=u((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(n){return e(n)(t(n))}:j((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&ee(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&ee(e.values(),t.values(),n.concat([e]),r.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=z(e);if(c.length!==z(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!F(p,t)||!te(t[p],e[p],u,l))return!1;a-=1}return!0}const ne=u((function(e,t){return te(e,t,[],[])}));const re=c((function(e){return function(){return e}}));const se=re(void 0);const ie=ne(se());const oe=J(ie);var ae=n(8326);function ce(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(e,t,n){for(var r=0,s=n.length;r=0}function Se(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 Pe=function(e){return(e<10?"0":"")+e};const je="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Pe(e.getUTCMonth()+1)+"-"+Pe(e.getUTCDate())+"T"+Pe(e.getUTCHours())+":"+Pe(e.getUTCMinutes())+":"+Pe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=k,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function ke(e){return function(t){return new Ae(e,t)}}const Ie=u(O(["fantasy-land/filter","filter"],ke,(function(e,t){return Oe(t)?v((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},z(t)):function(e,t){for(var n=0,r=t.length,s=[];n":Ne(n,r)},r=function(e,t){return A((function(t){return Se(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(n,e).join(", ")+"))";case"[object Array]":return"["+A(n,e).concat(r(e,Me((function(e){return/^\d+$/.test(e)}),z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Se(je(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":Se(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,z(e)).join(", ")+"}"}}const Te=c((function(e){return Ne(e,[])}));function $e(e,t){for(var n=t,r=0;rt!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Te(e),o=n(i,Te(t));return void 0!==o&&o===i?e:t}));const He=u((function(e,t){return H(d(e),t)}));const Ge=c((function(e){return R(_e(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;te.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(ie(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const it=st;class ot extends ae.wE{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ae.wE([e.start.row,e.start.column,e.start.char]),n=new ae.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const at=ot;class ct extends ae.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",at)}}const ut=new ct,lt=e=>{const t=new ct;return Qe(e)&&t.use(e),t},pt=ut;const ht=R(1,we(Q,Ee("String"))),mt=n.p+"23aac571c96605dc25219087ad291441.wasm",ft=globalThis.fetch;Je(ft)&&(globalThis.fetch=(...e)=>ht(e[0])&&e[0].endsWith("tree-sitter.wasm")?ft.apply(globalThis,[mt,ve(e)]):ft.apply(globalThis,e));var dt=n(3833),_t=n(1212);const gt=class extends _t{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,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 vt=yt,wt=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let bt=null,Et=null;const xt=async e=>{if(null===bt&&null===Et)Et=dt.init().then((()=>dt.Language.load(wt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Et=null})),bt=await Et;else if(null===bt&&null!==Et)bt=await Et;else if(null===bt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return bt.parse(e)};function St(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function Pt(e,t,n){if(n||(n=new jt),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var s=n.get(e);if(s)return s;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?Pt(e[i],!0,n):e[i]);return r};switch(Q(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return St(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var jt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var n=this.map[t],r=0;r{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}};let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const $t=class extends Nt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...n}){super({...n}),this.explicitName=e,this.kind=t}};const Rt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Ft=class extends Rt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Tt.Mapping}};const Ct=class extends Rt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Tt.Sequence}};const qt=class extends Rt{static uri="tag:yaml.org,2002:str"};const Dt=l((function(e,t,n){return p(e,$e(t,n))}));const Lt=c((function(e){return R(e.length,e)}));var Vt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Bt=c("function"==typeof String.prototype.trim&&!Vt.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Vt+"]["+Vt+"]*"),n=new RegExp("["+Vt+"]["+Vt+"]*$");return e.replace(t,"").replace(n,"")});const Ut=u((function(e,t){return R(e+1,(function(){var n=arguments[e];if(null!=n&&Fe(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Te(n)+' does not have a method named "'+t+'"')}))}));const zt=Ut(1,"split");const Ht=Ut(1,"join");const Gt=c((function(e){return m(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Gt(arguments))}const Wt=R(4,(function(e,t,n,r){return me(e("function"==typeof t?de(t):t),n,r)}));const Jt=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(Te(t)+" is not an array")}if(m(e)){if(m(t))return e+t;throw new TypeError(Te(t)+" is not a string")}if(null!=e&&Fe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Fe(e.concat))return e.concat(t);throw new TypeError(Te(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Yt=ne("");const Zt=u((function(e,t){return R(_e(ze,0,He("length",t)),(function(){var n=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,n)}),t))}))}));function Xt(e){return e}const Qt=c(Xt);const en=R(1,we(Q,Ee("Number")));var tn=qe(en,isFinite);var nn=R(1,tn);const rn=Je(Number.isFinite)?R(1,le(Number.isFinite,Number)):nn;var sn=qe(rn,Zt(ne,[Math.floor,Qt]));var on=R(1,sn);const an=Je(Number.isInteger)?R(1,le(Number.isInteger,Number)):on;const cn=c((function(e){return R(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const un=J(rn);const ln=R(1,qe(en,u((function(e,t){return e>t}))(0)));var pn=Lt((function(e,t){var n=Number(t);if(n!==t&&(n=0),ln(n))throw new RangeError("repeat count must be non-negative");if(un(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===e.length||0===n)return"";if(e.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=e;n;)s+=e,n-=1;return s+=s.substring(0,r-s.length)})),hn=cn(Ut(1,"repeat"));const mn=Je(String.prototype.repeat)?hn:pn;const fn=l((function(e,t,n){return n.replace(e,t)}));var dn=fn(/[\s\uFEFF\xA0]+$/,""),_n=Ut(0,"trimEnd");const gn=Je(String.prototype.trimEnd)?_n:dn;var yn=fn(/^[\s\uFEFF\xA0]+/,""),vn=Ut(0,"trimStart");const wn=Je(String.prototype.trimStart)?vn:yn;var bn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=k,e.prototype["@@transducer/result"]=I,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 En(e){return function(t){return new bn(e,t)}}const xn=u(O(["dropWhile"],En,(function(e,t){for(var n=0,r=t.length;n[|>])(?[+-]?)(?[0-9]*)\s/,kn=e=>{const t=(e=>{const t=e.match(An),n=Dt("",["groups","indentation"],t);return Yt(n)?void 0:parseInt(n,10)})(e);if(an(t))return mn(" ",t);const n=Dt("",[1],e.split("\n")),r=Dt(0,["groups","indentation","length"],n.match(/^(?[ ]*)/));return mn(" ",r)},In=e=>{const t=e.match(An),n=Dt("",["groups","chomping"],t);return Yt(n)?void 0:n},Mn=(e,t)=>ie(e)?`${gn(t)}\n`:"-"===e?gn(t):t,Nn=e=>e.replace(/\r\n/g,"\n"),Tn=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,n)=>t?e:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),$n=Lt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Rn=we(Nn,Bt,Tn,zt("\n"),H(wn),Ht("\n")),Fn=we(Nn,Bt,Tn,zt("\n"),H(wn),Ht("\n"),$n("'")),Cn=we(Nn,Bt,(e=>e.replace(/\\\n\s*/g,"")),Tn,On.MH,zt("\n"),H(wn),Ht("\n"),$n('"'));let qn=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Dn=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Ln=class{static test(e){return e.tag.kind===Tt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const n=e.clone();return e.style===qn.Plain?t=Rn(e.content):e.style===qn.SingleQuoted?t=Fn(e.content):e.style===qn.DoubleQuoted?t=Cn(e.content):e.style===qn.Literal?t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ve(r.split("\n")),i=Kt(H(Pn(t)),H(jn("\n"))),o=Wt(i,Jt,"",s);return Mn(n,o)})(e.content):e.style===qn.Folded&&(t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ve(r.split("\n")),i=Kt(H(Pn(t)),H(jn("\n"))),o=Wt(i,Jt,"",s),a=Tn(o);return Mn(n,a)})(e.content)),n.content=t,n}static resolve(e){return e}};const Vn=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Ft),this.registerTag(new Ct),this.registerTag(new qt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=qt.uri:e.tag.kind===Tt.Sequence?t=Ct.uri:e.tag.kind===Tt.Mapping&&(t=Ft.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let n=e;Ln.test(e)&&(n=Ln.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Mt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),node:e.clone()});if(!r.test(n))throw new Mt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),nodeCanonicalContent:n.content,node:e.clone()});return r.resolve(n)}};const Bn=class extends Rt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,n=e.clone();return n.content=t,n}};const Un=class extends Rt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),n=e.clone();return n.content=t,n}};const zn=class extends Rt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),n=e.clone();return n.content=t,n}};const Hn=class extends Rt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Gn=class extends Vn{constructor(){super(),this.registerTag(new Bn,!0),this.registerTag(new Un,!0),this.registerTag(new zn,!0),this.registerTag(new Hn,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Ct.uri;else if(e.tag.kind===Tt.Mapping)t=Ft.uri;else if(e.tag.kind===Tt.Scalar){const n=this.tags.find((t=>t.test(e)));t=(null==n?void 0:n.tag)||"?"}return t}};const Kn=class extends Nt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:n,styleGroup:r,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=n,this.styleGroup=r}};const Wn=class extends Kn{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Jn=class extends kt{},Yn=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Zn=e=>Yn("mapping",e),Xn=e=>Yn("sequence",e),Qn=e=>Yn("keyValuePair",e),er=e=>Yn("scalar",e),tr=e=>Yn("alias",e);const nr=class{addAnchor(e){if(!(e=>Yn("anchor",e))(e.anchor))throw new Jn("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Wn({content:e.content,style:qn.Plain,styleGroup:Dn.Flow})}},rr=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},sr={},ir=e=>null==e?void 0:e.type,or=e=>"string"==typeof ir(e),ar=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),cr=(e,{visitFnGetter:t=rr,nodeTypeGetter:n=ir,breakSymbol:r=sr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,h=!1;for(let m=0;m{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,...l){let p=u,h=!1;for(let m=0;m{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const S=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),S)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let P;if(!Array.isArray(v)){var E;if(!u(v))throw new At(`Invalid AST Node:  ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;P=i.call(t,v,n,f,w,b)}if("function"==typeof(null===(E=P)||void 0===E?void 0:E.then))throw new At("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===s)break;if(P===o){if(!e){w.pop();continue}}else if(void 0!==P&&(y.push([n,P]),!e)){if(!u(P)){w.pop();continue}v=P}}var x;if(void 0===P&&S&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(x=h[c(v)])&&void 0!==x?x:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};ur[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=rr,nodeTypeGetter:c=ir,nodePredicate:u=or,nodeCloneFn:l=ar,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new At(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=await i.call(t,v,n,f,w,b)}if(S===s)break;if(S===o){if(!e){w.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){w.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};class lr{static type="point";type=lr.type;row;column;char;constructor({row:e,column:t,char:n}){this.row=e,this.column=t,this.char=n}}class pr{static type="position";type=pr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const hr=pr;const mr=class extends Nt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class fr extends Nt{static type="stream"}Object.defineProperty(fr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Yn("document",e))(e)||(e=>Yn("comment",e))(e))):[]},enumerable:!0});const dr=fr;const _r=c((function(e){return f(0,e)}));const gr=class extends Nt{static type="parseResult";get rootNode(){return _r(this.children)}};const yr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;ner(e)||Zn(e)||Xn(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>er(e)||Zn(e)||Xn(e)||tr(e))(t)))[0]},enumerable:!0}});const jr=Pr;class Or extends Er{static type="sequence"}Object.defineProperty(Or.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Xn(e)||Zn(e)||er(e)||tr(e))):[]},enumerable:!0});const Ar=Or;const kr=class extends Nt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ir=class extends Nt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Mr=class extends Nt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Nr=class extends Nt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...n}={}){super({...n}),this.value=e,this.isUnexpected=t}};const Tr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},$r={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Rr=e=>Array.isArray(e)||or(e);class Fr{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new hr({start:t,end:n})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new mr({name:t.text,position:Fr.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,n=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Tt.Mapping:e.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar,s=t?Fr.toPosition(t):void 0;return new $t({explicitName:n,kind:r,position:s})}schema;referenceManager;stream={enter:e=>{const t=Fr.toPosition(e);return new dr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new gr({children:[e]})};yaml_directive={enter:e=>{var t;const n=Fr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new wr({position:n,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Fr.toPosition(e),n=e.children[0],r=e.children[1],s=new wr({position:t,name:"%TAG",parameters:{handle:null==n?void 0:n.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Fr.toPosition(e),n=e.children[0],r=e.children[1],s=e.children[2];return new wr({position:t,name:null==n?void 0:n.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Fr.toPosition(e);return new br({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Fr.isScalar(t)||Fr.isMapping(t)||Fr.isSequence(t))return e.children;const n=new lr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Wn({content:"",anchor:Fr.kindNodeToYamlAnchor(t),tag:Fr.kindNodeToYamlTag(t),position:new hr({start:n,end:n}),styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Fr.toPosition(e),n=[...e.children];if(Fr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Fr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Fr.toPosition(e),n=[...e.children];if(Fr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Fr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Wn({content:"",tag:new $t({explicitName:"?",kind:Tt.Scalar}),position:new hr({start:t,end:t}),styleGroup:Dn.Flow,style:qn.Plain})]}};flow_sequence={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children.flat(),position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?qn.Literal:e.text.startsWith(">")?qn.Folded:qn.Plain,i=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new kr({content:e.text})};alias={enter:e=>{const t=new Ir({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Tr&&!e.isNamed){const t=Fr.toPosition(e),n=e.type||e.text,{isMissing:r}=e;return new Mr({value:n,position:t,isMissing:r})}}ERROR(e,t,n,r){const s=Fr.toPosition(e),i=new Nr({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new gr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Fr.isKind("tag")),i=r.find(Fr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Fr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Fr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Fr.isKind("tag")),i=r.find(Fr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Fr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Fr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}}const Cr=Fr;function qr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Dr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=k,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=qr(this.xf["@@transducer/step"](e,!1))),e},e}();function Lr(e){return function(t){return new Dr(e,t)}}const Vr=u(O(["all"],Lr,(function(e,t){for(var n=0;n"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ur=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,zr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Hr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ae.wE)&&t.classes.includes(e),Gr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Kr=e=>e({hasMethod:Br,hasBasicElementProps:Ur,primitiveEq:zr,isElementType:Gr,hasClass:Hr}),Wr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.Hg||e(n)&&t(void 0,n))),Jr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.Om||e(n)&&t("string",n))),Yr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.kT||e(n)&&t("number",n))),Zr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.Os||e(n)&&t("null",n))),Xr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.bd||e(n)&&t("boolean",n))),Qr=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ae.Sh||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),es=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ae.wE&&!(r instanceof ae.Sh)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),ts=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ae.Pr||e(r)&&t("member",r)&&n(void 0,r))),ns=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ae.Ft||e(r)&&t("link",r)&&n(void 0,r))),rs=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ae.sI||e(r)&&t("ref",r)&&n(void 0,r))),ss=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&n("array",r))),is=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rt||e(r)&&t("comment",r)&&n("string",r))),os=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&n("array",r))),as=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof at||e(r)&&t("sourceMap",r)&&n("array",r))),cs=e=>Gr("object",e)||Gr("array",e)||Gr("boolean",e)||Gr("number",e)||Gr("string",e)||Gr("null",e)||Gr("member",e),us=e=>as(e.meta.get("sourceMap")),ls=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!es(n)&&Vr(Sn(n.toValue()),e)},ps=(e,t)=>0===e.length||Vr(Sn(t.classes.toValue()),e);const hs=class extends At{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ms=class extends hs{};const fs=class extends hs{},ds=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof ae.KeyValuePair){const{key:t,value:s}=e,i=Wr(t)?ds(t,r):t,o=Wr(s)?ds(s,r):s,a=new ae.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof ae.ot){const t=e=>ds(e,r),s=[...e].map(t),i=new ae.ot(s);return n.set(e,i),i}if(e instanceof ae.G6){const t=e=>ds(e,r),s=[...e].map(t),i=new ae.G6(s);return n.set(e,i),i}if(Wr(e)){const t=ys(e);if(n.set(e,t),e.content)if(Wr(e.content))t.content=ds(e.content,r);else if(e.content instanceof ae.KeyValuePair)t.content=ds(e.content,r);else if(Array.isArray(e.content)){const n=e=>ds(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new ms("Value provided to cloneDeep function couldn't be cloned",{value:e})};ds.safe=e=>{try{return ds(e)}catch{return e}};const _s=e=>{const{key:t,value:n}=e;return new ae.KeyValuePair(t,n)},gs=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ds(e.meta)),e.attributes.length>0&&(t._attributes=ds(e.attributes)),Wr(e.content)){const n=e.content;t.content=gs(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ae.KeyValuePair?t.content=_s(e.content):t.content=e.content;return t},ys=e=>{if(e instanceof ae.KeyValuePair)return _s(e);if(e instanceof ae.ot)return(e=>{const t=[...e];return new ae.ot(t)})(e);if(e instanceof ae.G6)return(e=>{const t=[...e];return new ae.G6(t)})(e);if(Wr(e))return gs(e);throw new fs("Value provided to cloneShallow function couldn't be cloned",{value:e})};ys.safe=e=>{try{return ys(e)}catch{return e}};const vs=e=>Qr(e)?"ObjectElement":es(e)?"ArrayElement":ts(e)?"MemberElement":Jr(e)?"StringElement":Xr(e)?"BooleanElement":Yr(e)?"NumberElement":Zr(e)?"NullElement":ns(e)?"LinkElement":rs(e)?"RefElement":void 0,ws=e=>Wr(e)?ys(e):ar(e),bs=we(vs,ht),Es={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xs=(e,t,{keyMap:n=Es,...r}={})=>ur(e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});xs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=Es,...r}={})=>ur[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});const Ss=l((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})F(r,t)&&(s[r]=F(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)F(r,n)&&!F(r,s)&&(s[r]=n[r]);return s}));const Ps=l((function e(t,n,r){return Ss((function(n,r,s){return Oe(r)&&Oe(s)?e(t,r,s):t(n,r,s)}),n,r)}));const js=u((function(e,t){return Ps((function(e,t,n){return n}),e,t)}));const Os=u($e);const As=ye(0,-1);const ks=u((function(e,t){return e.apply(this,t)}));const Is=J(Je);var Ms=c((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():w(e)?[]:m(e)?"":Oe(e)?{}:q(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 Ns=Ms;const Ts=c((function(e){return null!=e&&ne(e,Ns(e))}));const $s=R(1,Je(Array.isArray)?Array.isArray:we(Q,Ee("Array")));const Rs=qe($s,Ts);const Fs=R(3,(function(e,t,n){var r=Os(e,n),s=Os(As(e),n);if(!Is(r)&&!Rs(e)){var i=le(r,s);return ks(i,t)}})),Cs=()=>({predicates:{...e},namespace:pt}),qs={toolboxCreator:Cs,visitorOptions:{nodeTypeGetter:vs,exposeEdits:!0}},Ds=(e,t,n={})=>{if(0===t.length)return e;const r=js(qs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr(a.map(_({},"visitor")),{...i});a.forEach(Fs(["pre"],[]));const u=xs(e,c,i);return a.forEach(Fs(["post"],[])),u};Ds[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=js(qs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr[Symbol.for("nodejs.util.promisify.custom")],u=xs[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(_({},"visitor")),{...i});await Promise.allSettled(a.map(Fs(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(a.map(Fs(["post"],[]))),p};const Ls=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Wr(e)&&(e.meta.length>0&&(r.meta=ds(e.meta)),e.attributes.length>0&&(r.attributes=ds(e.attributes))),Ds(r,n,{toolboxCreator:Cs,visitorOptions:{nodeTypeGetter:vs}})},Vs=e=>(t,n={})=>Ls(t,{...n,Type:e});ae.Sh.refract=Vs(ae.Sh),ae.wE.refract=Vs(ae.wE),ae.Om.refract=Vs(ae.Om),ae.bd.refract=Vs(ae.bd),ae.Os.refract=Vs(ae.Os),ae.kT.refract=Vs(ae.kT),ae.Ft.refract=Vs(ae.Ft),ae.sI.refract=Vs(ae.sI),tt.refract=Vs(tt),rt.refract=Vs(rt),it.refract=Vs(it),at.refract=Vs(at);const Bs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Es},Us=e=>Wr(e)?vs(e):ir(e),zs=e=>Wr(e)||or(e)||Array.isArray(e);const Hs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new it;t._content=e.children.flat(1);const n=t.findElements(cs);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new rt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,n=this.processedDocumentCount>=1;if(t){const t=new tt("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return n?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ae.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ae.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new ae.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===qn.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,n=new tt(t);n.classes.push("warning"),this.maybeAddSourceMap(e,n),this.annotations.push(n)}return null}error(e,t,n,r){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new tt(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const n=new at;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)}};class Gs{cursor;constructor(e){this.cursor=e}stream(){return new Tr(this.cursor)}yaml_directive(){return new Tr(this.cursor)}tag_directive(){return new Tr(this.cursor)}reserved_directive(){return new Tr(this.cursor)}document(){return new Tr(this.cursor)}block_node(){return new Tr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Tr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Tr(this.cursor)}block_mapping_pair(){return new Tr(this.cursor)}flow_mapping(){return new Tr(this.cursor)}flow_pair(){return new Tr(this.cursor)}block_sequence(){return new Tr(this.cursor)}block_sequence_item(){return new Tr(this.cursor)}flow_sequence(){return new Tr(this.cursor)}plain_scalar(){return new Tr(this.cursor)}single_quote_scalar(){return new Tr(this.cursor)}double_quote_scalar(){return new Tr(this.cursor)}block_scalar(){return new Tr(this.cursor)}ERROR(){return new Tr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Tr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Gs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Gs(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Ks=Gs,Ws=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=new Ks(n),[s]=Array.from(r),i=new Cr,o=new Hs,a=new Gn,c=new nr,u=ur(s,i,{keyMap:$r,nodePredicate:Rr,state:{schema:a,sourceMap:t,referenceManager:c}});return ur(u.rootNode,o,{keyMap:Bs,nodeTypeGetter:Us,nodePredicate:zs,state:{sourceMap:t}})};class Js extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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 Ys=Js;class Zs extends ae.Om{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Xs=Zs;class Qs extends ae.Sh{constructor(e,t,n){super(e,t,n),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 ei=Qs;class ti extends ae.Sh{constructor(e,t,n){super(e,t,n),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 ni=ti;class ri extends ae.Sh{constructor(e,t,n){super(e,t,n),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 si=ri;class ii extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="paths"}}const oi=ii;class ai extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ci=ai;class ui extends ae.Sh{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ae.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const li=ui;class pi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 hi=pi;const mi=class extends vt{};class fi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 di=fi;class _i extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const gi=_i;class yi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 vi=yi;class wi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 bi=wi;const Ei=u((function(e,t){return v((function(n,r){return n[r]=e(t[r],r,t),n}),{},z(t))}));const xi=c((function(e){return null==e}));var Si=u((function(e,t){if(0===e.length||xi(t))return!1;for(var n=t,r=0;r{const n=p(e,t);return Ei((e=>{if(Qe(e)&&Oi("$ref",e)&&Ai(ht,"$ref",e)){const t=Os(["$ref"],e),r=Pn("#/",t);return Os(r.split("/"),n)}return Qe(e)?ki(e,n):e}),e)};const Ii=function(){return!0},Mi=e=>"string"==typeof(null==e?void 0:e.type)?e.type:vs(e),Ni={EphemeralObject:["content"],EphemeralArray:["content"],...Es},Ti=(e,t,{keyMap:n=Ni,...r}={})=>xs(e,t,{keyMap:n,nodeTypeGetter:Mi,nodePredicate:Ii,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Ti[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Ni,...n}={})=>xs[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Mi,nodePredicate:Ii,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const $i=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 Ri=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 Fi{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Ri(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 $i(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Jr(e.href)?e.href.toValue():""}}const Ci=e=>Wr(e)?Jr(e)||Yr(e)||Xr(e)||Zr(e)?e.toValue():Ti(e,new Fi):e,qi=e=>{const t=e.meta.length>0?ds(e.meta):void 0,n=e.attributes.length>0?ds(e.attributes):void 0;return new e.constructor(void 0,t,n)},Di=(e,t)=>t.clone&&t.isMergeableElement(e)?Ui(qi(e),e,t):e,Li=e=>"function"!=typeof e.customMetaMerge?e=>ds(e):e.customMetaMerge,Vi=e=>"function"!=typeof e.customAttributesMerge?e=>ds(e):e.customAttributesMerge,Bi={clone:!0,isMergeableElement:e=>Qr(e)||es(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>Di(e,n))),objectElementMerge:(e,t,n)=>{const r=Qr(e)?qi(e):qi(t);return Qr(e)&&e.forEach(((e,t,s)=>{const i=ys(s);i.value=Di(e,n),r.content.push(i)})),t.forEach(((t,s,i)=>{const o=Ci(s);let a;if(Qr(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);a=ys(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Ui;const n=t.customMerge(e,t);return"function"==typeof n?n:Ui})(s,n)(r,t)}else a=ys(i),a.value=Di(t,n);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function Ui(e,t,n){var r,s,i;const o={...Bi,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:Bi.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:Bi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Bi.objectElementMerge;const a=es(t);if(!(a===es(e)))return Di(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=Li(o)(e.meta,t.meta),c.attributes=Vi(o)(e.attributes,t.attributes),c}Ui.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ae.Sh:e.reduce(((e,n)=>Ui(e,n,t)),qi(e[0]))};const zi=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ui(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ui(t.attributes,e.attributes))}};const Hi=class extends zi{enter(e){return this.element=ds(e),sr}},Gi=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},Ki=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:Ki(n,[...t,n])},Wi=(e,t,n=[])=>{var r;const s=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>Ki(e)));for(;n.every((e=>e.length>0));){const e=n.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(s),o=Ki(s);for(let t of e){let e=Ki(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Gi(i,r,["constructor",...n]),o.push(r))}}return i.constructor=t,i},Ji=e=>e.filter(((t,n)=>e.indexOf(t)==n)),Yi=(e,t)=>{const n=t.map((e=>Ki(e)));let r=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][r];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}r++}},Zi=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(Yi(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==Yi(r,e)||void 0!==t[r],get:(n,r)=>(Yi(r,e)||t)[r],set(t,n,r){const s=Yi(n,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[n]=r,!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)))))}),Xi=null,Qi="copy",eo="copy",to="deep",no=new WeakMap,ro=e=>no.get(e),so=(e,t)=>{var n,r;const s=Ji([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Ji([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},io=(e,t)=>{var n,r,s,i;return{property:so(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:so(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},oo=(e,t)=>{var n,r,s,i,o,a;return{class:Ji([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:io(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:io(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},ao=new Map,co=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const s=[...Ki(e.prototype).map((e=>e.constructor)),...null!==(t=ro(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of s)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>ao.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>oo(e,t)))},uo=e=>{let t=ao.get(e);return t||(t={},ao.set(e,t)),t};function lo(...e){var t,n,r;const s=e.map((e=>e.prototype)),i=Xi;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let n of e)n.apply(this,t)}};s.push(t)}function o(...t){for(const n of e)Gi(this,new n(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===eo?Wi(s,o):(a=s,c=o,Zi([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Qi?Wi(e,null,["prototype"]):Zi(e,Function.prototype));let u=o;if("none"!==to){const s="deep"===to?co(...e):((...e)=>{const t=e.map((e=>uo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>oo(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}po(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},u),po(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,no.set(l,p),u}const po=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};const ho=u((function(e,t){for(var n={},r=0;r{if(Jr(r)&&n.includes(Ci(r))&&!this.ignoredFields.includes(Ci(r))){const n=this.toRefractedElement([...t,"fixedFields",Ci(r)],e),i=new ae.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}};class _o extends(lo(fo,Hi)){constructor(e){super(e),this.element=new di,this.specPath=re(["document","objects","JSONSchema"])}}const go=_o;const yo=class{parent;constructor({parent:e}){this.parent=e}},vo=e=>Qr(e)&&e.hasKey("$ref");class wo extends(lo(mo,yo,Hi)){ObjectElement(e){const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sr}ArrayElement(e){return this.element=new ae.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const bo=wo;const Eo=class extends Hi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const xo=c((function(e){return R(_e(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t{if(!this.ignoredFields.includes(Ci(t))&&this.fieldPatternPredicate(Ci(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new ae.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}};const Io=class extends ko{constructor(e){super(e),this.fieldPatternPredicate=Oo}};class Mo extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const No=Mo;class To extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const $o=To;class Ro extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Fo=Ro;const Co=class extends Hi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const qo=class extends Hi{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 Do extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Lo=Do;class Vo extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Bo=Vo;class Uo extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const zo=Uo;class Ho extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Go=Ho;class Ko extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.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),sr}}const Wo=Ko;class Jo extends(lo(fo,Hi)){constructor(e){super(e),this.element=new gi,this.specPath=re(["document","objects","JSONReference"])}ObjectElement(e){const t=fo.prototype.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Yo=Jo;const Zo=class extends Hi{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Xo=l((function(e,t,n){return R(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const Qo=c((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var ea=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const ta=ea;const na=c(qr);const ra=J(xi);const sa=qe($s,So);function ia(e){return function(e){if(Array.isArray(e))return oa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oa(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.length}))),_r,d("length")),ca=Lt((function(e,t,n){var r=n.apply(void 0,ia(e));return ra(r)?na(r):t}));const ua=Xo(sa,(function(e){var t=aa(e);return R(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;rXo(e,re(t),se))),n=ua(t)(e);return this.element=this.toRefractedElement(n,e),sr}};const pa=class extends la{constructor(e){super(e),this.alternator=[{predicate:vo,specPath:["document","objects","JSONReference"]},{predicate:Ii,specPath:["document","objects","JSONSchema"]}]}};class ha extends(lo(fo,Hi)){constructor(e){super(e),this.element=new vi,this.specPath=re(["document","objects","Media"])}}const ma=ha;class fa extends(lo(fo,Hi)){constructor(e){super(e),this.element=new bi,this.specPath=re(["document","objects","LinkDescription"])}}const da={visitors:{value:Hi,JSONSchemaOrJSONReferenceVisitor:pa,document:{objects:{JSONSchema:{$visitor:go,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:pa,items:bo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Eo,properties:No,additionalProperties:pa,patternProperties:$o,dependencies:Fo,enum:Co,type:qo,allOf:Lo,anyOf:Bo,oneOf:zo,not:pa,definitions:Go,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Wo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Yo,fixedFields:{$ref:Zo}},Media:{$visitor:ma,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:fa,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:pa,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:pa}}}}}},_a=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ga={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Es},ya=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof di||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),va=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof gi||e(r)&&t("JSONReference",r)&&n("object",r))),wa=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof vi||e(r)&&t("media",r)&&n("object",r))),ba=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof bi||e(r)&&t("linkDescription",r)&&n("object",r))),Ea={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",di),t.register("jSONReference",gi),t.register("media",vi),t.register("linkDescription",bi),t}},xa=()=>{const e=lt(Ea);return{predicates:{...t,isStringElement:Jr},namespace:e}},Sa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=da}={})=>{const s=(0,ae.e)(e),i=ki(r),o=new(Os(t,i))({specObj:i});return xs(s,o),Ds(o.element,n,{toolboxCreator:xa,visitorOptions:{keyMap:ga,nodeTypeGetter:_a}})},Pa=e=>(t,n={})=>Sa(t,{specPath:e,...n});di.refract=Pa(["visitors","document","objects","JSONSchema","$visitor"]),gi.refract=Pa(["visitors","document","objects","JSONReference","$visitor"]),vi.refract=Pa(["visitors","document","objects","Media","$visitor"]),bi.refract=Pa(["visitors","document","objects","LinkDescription","$visitor"]);const ja=class extends di{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new mi("idProp setter in Parameter class is not not supported.")}get $schema(){throw new mi("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new mi("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new mi("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new mi("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new mi("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new mi("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new mi("properties getter in Parameter class is not not supported.")}set properties(e){throw new mi("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new mi("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new mi("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new mi("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new mi("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Parameter class is not not supported.")}get not(){throw new mi("not getter in Parameter class is not not supported.")}set not(e){throw new mi("not setter in Parameter class is not not supported.")}get definitions(){throw new mi("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new mi("definitions setter in Parameter class is not not supported.")}get title(){throw new mi("title getter in Parameter class is not not supported.")}set title(e){throw new mi("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new mi("base getter in Parameter class is not not supported.")}set base(e){throw new mi("base setter in Parameter class is not not supported.")}get links(){throw new mi("links getter in Parameter class is not not supported.")}set links(e){throw new mi("links setter in Parameter class is not not supported.")}get media(){throw new mi("media getter in Parameter class is not not supported.")}set media(e){throw new mi("media setter in Parameter class is not not supported.")}get readOnly(){throw new mi("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new mi("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Oa=class extends di{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Items class is not not supported.")}set idProp(e){throw new mi("idProp setter in Items class is not not supported.")}get $schema(){throw new mi("$schema getter in Items class is not not supported.")}set $schema(e){throw new mi("$schema setter in Items class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new mi("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new mi("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new mi("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new mi("minProperties setter in Items class is not not supported.")}get required(){throw new mi("required getter in Items class is not not supported.")}set required(e){throw new mi("required setter in Items class is not not supported.")}get properties(){throw new mi("properties getter in Items class is not not supported.")}set properties(e){throw new mi("properties setter in Items class is not not supported.")}get additionalProperties(){throw new mi("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new mi("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new mi("allOf getter in Items class is not not supported.")}set allOf(e){throw new mi("allOf setter in Items class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Items class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Items class is not not supported.")}get not(){throw new mi("not getter in Items class is not not supported.")}set not(e){throw new mi("not setter in Items class is not not supported.")}get definitions(){throw new mi("definitions getter in Items class is not not supported.")}set definitions(e){throw new mi("definitions setter in Items class is not not supported.")}get title(){throw new mi("title getter in Items class is not not supported.")}set title(e){throw new mi("title setter in Items class is not not supported.")}get description(){throw new mi("description getter in Items class is not not supported.")}set description(e){throw new mi("description setter in Items class is not not supported.")}get base(){throw new mi("base getter in Items class is not not supported.")}set base(e){throw new mi("base setter in Items class is not not supported.")}get links(){throw new mi("links getter in Items class is not not supported.")}set links(e){throw new mi("links setter in Items class is not not supported.")}get media(){throw new mi("media getter in Items class is not not supported.")}set media(e){throw new mi("media setter in Items class is not not supported.")}get readOnly(){throw new mi("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new mi("readOnly setter in Items class is not not supported.")}};class Aa extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ka=Aa;class Ia extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const Ma=Ia;class Na extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="headers"}}const Ta=Na;class $a extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="example"}}const Ra=$a;const Fa=class extends di{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Header class is not not supported.")}set idProp(e){throw new mi("idProp setter in Header class is not not supported.")}get $schema(){throw new mi("$schema getter in Header class is not not supported.")}set $schema(e){throw new mi("$schema setter in Header class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new mi("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new mi("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new mi("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new mi("minProperties setter in Header class is not not supported.")}get required(){throw new mi("required getter in Header class is not not supported.")}set required(e){throw new mi("required setter in Header class is not not supported.")}get properties(){throw new mi("properties getter in Header class is not not supported.")}set properties(e){throw new mi("properties setter in Header class is not not supported.")}get additionalProperties(){throw new mi("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new mi("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new mi("allOf getter in Header class is not not supported.")}set allOf(e){throw new mi("allOf setter in Header class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Header class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Header class is not not supported.")}get not(){throw new mi("not getter in Header class is not not supported.")}set not(e){throw new mi("not setter in Header class is not not supported.")}get definitions(){throw new mi("definitions getter in Header class is not not supported.")}set definitions(e){throw new mi("definitions setter in Header class is not not supported.")}get title(){throw new mi("title getter in Header class is not not supported.")}set title(e){throw new mi("title setter in Header class is not not supported.")}get base(){throw new mi("base getter in Header class is not not supported.")}set base(e){throw new mi("base setter in Header class is not not supported.")}get links(){throw new mi("links getter in Header class is not not supported.")}set links(e){throw new mi("links setter in Header class is not not supported.")}get media(){throw new mi("media getter in Header class is not not supported.")}set media(e){throw new mi("media setter in Header class is not not supported.")}get readOnly(){throw new mi("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new mi("readOnly setter in Header class is not not supported.")}};class Ca extends ae.Sh{constructor(e,t,n){super(e,t,n),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 qa=Ca;class Da extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const La=Da;const Va=class extends di{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new mi("idProp setter in Schema class is not not supported.")}get $schema(){throw new mi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new mi("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Schema class is not not supported.")}get not(){throw new mi("not getter in Schema class is not not supported.")}set not(e){throw new mi("not setter in Schema class is not not supported.")}get definitions(){throw new mi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new mi("definitions setter in Schema class is not not supported.")}get base(){throw new mi("base getter in Schema class is not not supported.")}set base(e){throw new mi("base setter in Schema class is not not supported.")}get links(){throw new mi("links getter in Schema class is not not supported.")}set links(e){throw new mi("links setter in Schema class is not not supported.")}get media(){throw new mi("media getter in Schema class is not not supported.")}set media(e){throw new mi("media setter in Schema class is not not supported.")}};class Ba extends ae.Sh{constructor(e,t,n){super(e,t,n),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 Ua=Ba;class za extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const Ha=za;class Ga extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const Ka=Ga;class Wa extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const Ja=Wa;class Ya extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const Za=Ya;class Xa extends ae.Sh{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Qa=Xa;class ec extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const tc=ec;class nc extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const rc=nc;const sc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ui(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ui(t.attributes,e.attributes))}};const ic=class extends sc{enter(e){return this.element=ds(e),sr}};const oc=class extends sc{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return ho(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Os(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Je,["visitors",...e],this.specObj)?Os(["visitors",...e],this.specObj):Os(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof ic&&(null==r?void 0:r.constructor)===ic?ds(t):(xs(t,r,n),r.element)}};var ac=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=k,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?qr(n):n},e}();function cc(e){return function(t){return new ac(e,t)}}const uc=u(O(["take"],cc,(function(e,t){return ye(0,e<0?1/0:e,t)})));const lc=u((function(e,t){return ne(uc(e.length,t),e)})),pc=e=>Jr(e.key)&&lc("x-",Ci(e.key)),hc=e=>Qr(e)&&e.hasKey("$ref");const mc=class extends oc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=pc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Jr(r)&&n.includes(Ci(r))&&!this.ignoredFields.includes(Ci(r))){const n=this.toRefractedElement([...t,"fixedFields",Ci(r)],e),i=new ae.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ci(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}};class fc extends(lo(mc,ic)){constructor(e){super(e),this.element=new Ys,this.specPath=re(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const dc=fc;class _c extends(lo(oc,ic)){StringElement(e){const t=new Xs(Ci(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const gc=_c;const yc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const vc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};class wc extends ae.wE{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(wc.primaryClass)}}const bc=wc;const Ec=class extends ic{constructor(e){super(e),this.element=new bc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class xc extends ae.wE{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(xc.primaryClass)}}const Sc=xc;const Pc=class extends ic{constructor(e){super(e),this.element=new Sc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class jc extends ae.wE{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(jc.primaryClass)}}const Oc=jc;const Ac=class extends ic{constructor(e){super(e),this.element=new Oc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class kc extends ae.wE{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(kc.primaryClass),this.classes.push("security")}}const Ic=kc;class Mc extends(lo(oc,ic)){constructor(e){super(e),this.element=new Ic}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Nc=Mc;class Tc extends ae.wE{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Tc.primaryClass)}}const $c=Tc;class Rc extends(lo(oc,ic)){constructor(e){super(e),this.element=new $c}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Fc=Rc;class Cc extends(lo(mc,ic)){constructor(e){super(e),this.element=new ei,this.specPath=re(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const qc=Cc;const Dc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Lc extends(lo(mc,ic)){constructor(e){super(e),this.element=new ni,this.specPath=re(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Vc=Lc;class Bc extends(lo(mc,ic)){constructor(e){super(e),this.element=new si,this.specPath=re(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Uc=Bc;const zc=class extends oc{specPath;ignoredFields;fieldPatternPredicate=Ao;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=pc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ci(t))&&this.fieldPatternPredicate(Ci(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new ae.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}},Hc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ys||e(r)&&t("swagger",r)&&n("object",r))),Gc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xs||e(r)&&t("swaggerVersion",r)&&n("string",r))),Kc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ei||e(r)&&t("info",r)&&n("object",r))),Wc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof si||e(r)&&t("license",r)&&n("object",r))),Jc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ni||e(r)&&t("contact",r)&&n("object",r))),Yc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oi||e(r)&&t("paths",r)&&n("object",r))),Zc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ci||e(r)&&t("pathItem",r)&&n("object",r))),Xc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof li||e(r)&&t("operation",r)&&n("object",r))),Qc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof hi||e(r)&&t("externalDocumentation",r)&&n("object",r))),eu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ja||e(r)&&t("parameter",r)&&n("object",r))),tu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Oa||e(r)&&t("items",r)&&n("object",r))),nu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ka||e(r)&&t("responses",r)&&n("object",r))),ru=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ma||e(r)&&t("response",r)&&n("object",r))),su=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ta||e(r)&&t("headers",r)&&n("object",r))),iu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ra||e(r)&&t("example",r)&&n("object",r))),ou=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Fa||e(r)&&t("header",r)&&n("object",r))),au=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qa||e(r)&&t("tag",r)&&n("object",r))),cu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof La||e(r)&&t("reference",r)&&n("object",r))),uu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Va||e(r)&&t("schema",r)&&n("object",r))),lu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ua||e(r)&&t("xml",r)&&n("object",r))),pu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ja||e(r)&&t("responsesDefinitions",r)&&n("object",r))),hu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Za||e(r)&&t("securityDefinitions",r)&&n("object",r))),mu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ha||e(r)&&t("definitions",r)&&n("object",r))),fu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ka||e(r)&&t("parametersDefinitions",r)&&n("object",r))),du=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Qa||e(r)&&t("securityScheme",r)&&n("object",r))),_u=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tc||e(r)&&t("scopes",r)&&n("object",r))),gu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rc||e(r)&&t("securityRequirement",r)&&n("object",r)));class yu extends(lo(zc,ic)){element;constructor(e){super(e),this.element=new oi,this.specPath=re(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ii}ObjectElement(e){const t=zc.prototype.ObjectElement.call(this,e);return this.element.filter(Zc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ds(t))})),t}}const vu=yu;class wu extends(lo(mc,ic)){constructor(e){super(e),this.element=new ci,this.specPath=re(["document","objects","PathItem"])}ObjectElement(e){const t=mc.prototype.ObjectElement.call(this,e);return this.element.filter(Xc).forEach(((e,t)=>{const n=ds(t);n.content=Ci(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const bu=wu;const Eu=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class xu extends ae.wE{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(xu.primaryClass),this.classes.push("parameters")}}const Su=xu;class Pu extends(lo(oc,ic)){constructor(e){super(e),this.element=new Su}ArrayElement(e){return e.forEach((e=>{const t=hc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);cu(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const ju=Pu;class Ou extends(lo(mc,ic)){constructor(e){super(e),this.element=new li,this.specPath=re(["document","objects","Operation"])}}const Au=Ou;class ku extends ae.wE{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(ku.primaryClass),this.classes.push("tags")}}const Iu=ku;const Mu=class extends ic{constructor(e){super(e),this.element=new Iu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Nu extends ae.wE{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Nu.primaryClass)}}const Tu=Nu;const $u=class extends ic{constructor(e){super(e),this.element=new Tu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Ru extends ae.wE{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Ru.primaryClass)}}const Fu=Ru;const Cu=class extends ic{constructor(e){super(e),this.element=new Fu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class qu extends ae.wE{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(qu.primaryClass),this.classes.push("parameters")}}const Du=qu;class Lu extends(lo(oc,ic)){constructor(e){super(e),this.element=new Du}ArrayElement(e){return e.forEach((e=>{const t=hc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);cu(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Vu=Lu;class Bu extends ae.wE{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Bu.primaryClass)}}const Uu=Bu;const zu=class extends ic{constructor(e){super(e),this.element=new Uu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Hu extends ae.wE{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(Hu.primaryClass),this.classes.push("security")}}const Gu=Hu;class Ku extends(lo(oc,ic)){constructor(e){super(e),this.element=new Gu}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Wu=Ku;class Ju extends(lo(mc,ic)){constructor(e){super(e),this.element=new hi,this.specPath=re(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Yu=Ju;class Zu extends(lo(mc,ic)){constructor(e){super(e),this.element=new ja,this.specPath=re(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Xu=Zu;class Qu extends(lo(mc,ic)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new Oa,this.specPath=re(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const el=Qu;const tl=u((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Te(e));var n;return St(e).test(t)}));function nl(e){return"[object Number]"===Object.prototype.toString.call(e)}const rl=u((function(e,t){if(!nl(e)||!nl(t))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(ehc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=tl(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${rl(100,600).join("|")})$`))}ObjectElement(e){const t=cl.prototype.ObjectElement.call(this,e);return this.element.filter(cu).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(ru).forEach(((e,t)=>{const n=ds(t);this.fieldPatternPredicate(Ci(n))&&e.setMetaProperty("http-status-code",n)})),t}}const ll=ul;const pl=class extends oc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Xo(e,re(t),se))),n=ua(t)(e);return this.element=this.toRefractedElement(n,e),sr}};class hl extends(lo(pl,ic)){constructor(e){super(e),this.alternator=[{predicate:hc,specPath:["document","objects","Reference"]},{predicate:Ii,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=pl.prototype.enter.call(this,e);return cu(this.element)?this.element.setMetaProperty("referenced-element","response"):ru(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const ml=hl;class fl extends(lo(mc,ic)){constructor(e){super(e),this.element=new Ma,this.specPath=re(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const dl=fl;const _l=class extends zc{constructor(e){super(e),this.fieldPatternPredicate=Oo}};class gl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ta,this.specPath=re(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const yl=gl;class vl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ra,this.specPath=re(["value"]),this.canSupportSpecificationExtensions=!1}}const wl=vl;class bl extends(lo(mc,ic)){constructor(e){super(e),this.element=new Fa,this.specPath=re(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const El=bl;class xl extends(lo(mc,ic)){constructor(e){super(e),this.element=new qa,this.specPath=re(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Sl=xl;class Pl extends(lo(mc,ic)){constructor(e){super(e),this.element=new La,this.specPath=re(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=mc.prototype.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const jl=Pl;const Ol=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Al extends(lo(mc,ic)){constructor(e){super(e),this.element=new Va,this.specPath=re(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const kl=Al,{allOf:Il}=da.visitors.document.objects.JSONSchema.fixedFields;const Ml=class extends Il{ArrayElement(e){const t=Il.prototype.ArrayElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:Nl}=da.visitors.document.objects.JSONSchema.fixedFields;const Tl=class extends Nl{ObjectElement(e){const t=Nl.prototype.ObjectElement.call(this,e);return va(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=Nl.prototype.ArrayElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{properties:$l}=da.visitors.document.objects.JSONSchema.fixedFields;const Rl=class extends $l{ObjectElement(e){const t=$l.prototype.ObjectElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{JSONSchemaOrJSONReferenceVisitor:Fl}=da.visitors;const Cl=class extends Fl{ObjectElement(e){const t=Fl.prototype.enter.call(this,e);return va(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class ql extends(lo(mc,ic)){constructor(e){super(e),this.element=new Ua,this.specPath=re(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Dl=ql;class Ll extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ha,this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=_l.prototype.ObjectElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Vl=Ll;class Bl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ja,this.specPath=re(["document","objects","Response"])}}const Ul=Bl;class zl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ka,this.specPath=re(["document","objects","Parameter"])}}const Hl=zl;class Gl extends(lo(_l,ic)){element;constructor(e){super(e),this.element=new Za,this.specPath=re(["document","objects","SecurityScheme"])}}const Kl=Gl;class Wl extends(lo(mc,ic)){constructor(e){super(e),this.element=new Qa,this.specPath=re(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Jl=Wl;class Yl extends(lo(_l,ic)){constructor(e){super(e),this.element=new tc,this.specPath=re(["value"]),this.canSupportSpecificationExtensions=!0}}const Zl=Yl;class Xl extends(lo(_l,ic)){constructor(e){super(e),this.element=new rc,this.specPath=re(["value"])}}const Ql=Xl;const ep=class extends oc{MemberElement(e){return this.element=ds(e),this.element.classes.push("specification-extension"),sr}},{fixedFields:tp}=da.visitors.document.objects.JSONSchema,np={visitors:{value:ic,document:{objects:{JSONReference:da.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:dc,fixedFields:{swagger:gc,info:{$ref:"#/visitors/document/objects/Info"},host:yc,basePath:vc,schemes:Ec,consumes:Pc,produces:Ac,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:Nc,tags:Fc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:qc,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:Dc}},Contact:{$visitor:Vc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Uc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:vu},PathItem:{$visitor:bu,fixedFields:{$ref:Eu,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"},parameters:ju}},Operation:{$visitor:Au,fixedFields:{tags:Mu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:$u,produces:Cu,parameters:Vu,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:zu,deprecated:{$ref:"#/visitors/value"},security:Wu}},ExternalDocumentation:{$visitor:Yu,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Xu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:tp.description,required:tp.required,schema:Cl,type:tp.type,format:tp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:tp.default,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,enum:tp.enum,multipleOf:tp.multipleOf}},Items:{$visitor:el,fixedFields:{type:tp.type,format:tp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:tp.default,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,enum:tp.enum,multipleOf:tp.multipleOf}},Responses:{$visitor:ll,fixedFields:{default:ml}},Response:{$visitor:dl,fixedFields:{description:{$ref:"#/visitors/value"},schema:Cl,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:yl},Example:{$visitor:wl},Header:{$visitor:El,fixedFields:{description:tp.description,type:tp.type,format:tp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:tp.default,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,enum:tp.enum,multipleOf:tp.multipleOf}},Tag:{$visitor:Sl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:jl,fixedFields:{$ref:Ol}},Schema:{$visitor:kl,fixedFields:{format:tp.format,title:tp.title,description:tp.description,default:tp.default,multipleOf:tp.multipleOf,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,maxProperties:tp.maxProperties,minProperties:tp.minProperties,required:tp.required,enum:tp.enum,type:tp.type,readOnly:tp.readOnly,items:Tl,allOf:Ml,properties:Rl,additionalProperties:Cl,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Dl,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Vl},ParametersDefinitions:{$visitor:Hl},ResponsesDefinitions:{$visitor:Ul},SecurityDefinitions:{$visitor:Kl},SecurityScheme:{$visitor:Jl,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:Zl},SecurityRequirement:{$visitor:Ql}},extension:{$visitor:ep}}}},rp=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},sp={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...Es},ip={namespace:e=>{const{base:t}=e;return t.register("swagger",Ys),t.register("swaggerVersion",Xs),t.register("info",ei),t.register("contact",ni),t.register("license",si),t.register("paths",oi),t.register("pathItem",ci),t.register("operation",li),t.register("externalDocumentation",hi),t.register("parameter",ja),t.register("items",Oa),t.register("responses",ka),t.register("response",Ma),t.register("headers",Ta),t.register("example",Ra),t.register("header",Fa),t.register("tag",qa),t.register("reference",La),t.register("schema",Va),t.register("xml",Ua),t.register("definitions",Ha),t.register("parametersDefinitions",Ka),t.register("responsesDefinitions",Ja),t.register("securityDefinitions",Za),t.register("securityScheme",Qa),t.register("scopes",tc),t.register("securityRequirement",rc),t}},op=()=>{const e=lt(ip);return{predicates:{...s,...i,isStringElement:Jr},namespace:e}},ap=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,ae.e)(e),s=ki(np),i=new(Os(t,s))({specObj:s});return xs(r,i),Ds(i.element,n,{toolboxCreator:op,visitorOptions:{keyMap:sp,nodeTypeGetter:rp}})},cp=e=>(t,n={})=>ap(t,{specPath:e,...n});Ys.refract=cp(["visitors","document","objects","Swagger","$visitor"]),Xs.refract=cp(["visitors","document","objects","SwaggerVersion","$visitor"]),ei.refract=cp(["visitors","document","objects","Info","$visitor"]),ni.refract=cp(["visitors","document","objects","Contact","$visitor"]),si.refract=cp(["visitors","document","objects","License","$visitor"]),oi.refract=cp(["visitors","document","objects","Paths","$visitor"]),ci.refract=cp(["visitors","document","objects","PathItem","$visitor"]),li.refract=cp(["visitors","document","objects","Operation","$visitor"]),hi.refract=cp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ja.refract=cp(["visitors","document","objects","Parameter","$visitor"]),Oa.refract=cp(["visitors","document","objects","Items","$visitor"]),ka.refract=cp(["visitors","document","objects","Responses","$visitor"]),Ma.refract=cp(["visitors","document","objects","Response","$visitor"]),Ta.refract=cp(["visitors","document","objects","Headers","$visitor"]),Ra.refract=cp(["visitors","document","objects","Example","$visitor"]),Fa.refract=cp(["visitors","document","objects","Header","$visitor"]),qa.refract=cp(["visitors","document","objects","Tag","$visitor"]),La.refract=cp(["visitors","document","objects","Reference","$visitor"]),Va.refract=cp(["visitors","document","objects","Schema","$visitor"]),Ua.refract=cp(["visitors","document","objects","XML","$visitor"]),Ha.refract=cp(["visitors","document","objects","Definitions","$visitor"]),Ka.refract=cp(["visitors","document","objects","ParametersDefinitions","$visitor"]),Ja.refract=cp(["visitors","document","objects","ResponsesDefinitions","$visitor"]),Za.refract=cp(["visitors","document","objects","SecurityDefinitions","$visitor"]),Qa.refract=cp(["visitors","document","objects","SecurityScheme","$visitor"]),tc.refract=cp(["visitors","document","objects","Scopes","$visitor"]),rc.refract=cp(["visitors","document","objects","SecurityRequirement","$visitor"]);const up=c((function(e){return f(-1,e)}));const lp=class extends mi{};const pp=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new lp("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new lp("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new lp("latest method in MediaTypes class is not yet implemented.")}};class hp extends pp{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return up(this.filterByFormat(e))}}const mp=new hp("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),fp=new hp(...mp.filterByFormat("generic"),...mp.filterByFormat("yaml")),dp=/(?^(["']?)swagger\2\s*:\s*(["'])(?2\.0)\3(?:\s+|$))|(?"swagger"\s*:\s*"(?2\.0)")/m,_p=async e=>dp.test(e)&&await(async e=>{try{return"ERROR"!==(await xt(e)).rootNode.type}catch{return!1}})(e),gp=async(e,t={})=>{const n=_({},"refractorOpts",t),r=y(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const n=await xt(e);return Ws(n,{sourceMap:t})})(e,r),{result:i}=s;if(oe(i)){const e=Ys.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},yp=lt(ip)})(),r})()));




© 2015 - 2025 Weber Informatics LLC | Privacy Policy