@swagger-api/apidom-parser-adapter-openapi-yaml-2 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !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 __webpack_modules__={85:(e,t,r)=>{"use strict";r(9828);var s=r(1100),n=r(8900),o=r(1811),i=r(6625);for(var a in s)o(n[a],a),i[a]=i.Array},88:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var s=r(9098),n=r(4713),o=r(4871),i=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),_=r(1811),d=r(3999),m=r(3508),p=r(8655),h=r(6625),f=r(2621),g=i.PROPER,y=i.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,v=p("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,r,i,p,f,O){c(r,t,i);var M,A,T,I=function(e){if(e===p&&C)return C;if(!b&&e&&e in F)return F[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",R=!1,F=e.prototype,N=F[v]||F["@@iterator"]||p&&F[p],C=!b&&N||I(p),k="Array"===t&&F.entries||N;if(k&&(M=u(k.call(new e)))!==Object.prototype&&M.next&&(o||u(M)===w||(l?l(M,w):a(M[v])||m(M,v,P)),_(M,j,!0,!0),o&&(h[j]=P)),g&&p===x&&N&&N.name!==x&&(!o&&y?d(F,"name",x):(R=!0,C=function(){return n(N,this)})),p)if(A={values:I(x),keys:f?C:I(E),entries:I(S)},O)for(T in A)(b||R||!(T in F))&&m(F,T,A[T]);else s({target:t,proto:!0,forced:b||R},A);return o&&!O||F[v]===C||m(F,v,C,{name:p}),h[t]=C,A}},195:(e,t,r)=>{var s=r(4882),n=r(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var s=r(4572),n=r(4713),o=r(7235),i=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),_=r(967),d=r(1743),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},h=p.prototype;e.exports=function(e,t,r){var f,g,y,w,b,v,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),M=!(!r||!r.INTERRUPTED),A=s(t,x),T=function(e){return f&&d(f,"normal",e),new p(!0,e)},I=function(e){return S?(o(e),M?A(e[0],e[1],T):A(e[0],e[1])):M?A(e,T):A(e)};if(P)f=e.iterator;else if(O)f=e;else{if(!(g=_(e)))throw new m(i(e)+" is not iterable");if(a(g)){for(y=0,w=c(e);w>y;y++)if((b=I(e[y]))&&u(h,b))return b;return new p(!1)}f=l(e,g)}for(v=P?e.next:f.next;!(E=n(v,f)).done;){try{b=I(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&u(h,b))return b}return new p(!1)}},239:(e,t,r)=>{"use strict";r(5442);var s=r(6656);r(85),e.exports=s},262:(e,t,r)=>{"use strict";var s=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},353:(e,t,r)=>{var s=r(1340),n=r(3934),o=r(8861),i=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),_="[object Arguments]",d="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,f,g){var y=c(e),w=c(t),b=y?d:a(e),v=w?d:a(t),E=(b=b==_?m:b)==m,x=(v=v==_?m:v)==m,S=b==v;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new s),y||l(e)?n(e,t,r,h,f,g):o(e,t,b,r,h,f,g);if(!(1&r)){var P=E&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(P||O){var M=P?e.value():e,A=O?t.value():t;return g||(g=new s),f(M,A,r,h,g)}}return!!S&&(g||(g=new s),i(e,t,r,h,f,g))}},358:(e,t,r)=>{var s=r(6137),n=r(3283),o=r(3142),i=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),l=!r&&n(e),_=!r&&!l&&i(e),d=!r&&!l&&!_&&c(e),m=r||l||_||d,p=m?s(e.length,String):[],h=p.length;for(var f in e)!t&&!u.call(e,f)||m&&("length"==f||_&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,h))||p.push(f);return p}},393:(e,t,r)=>{var s=r(8244),n=r(7979),o=r(1211);e.exports=function(e){return s(e,o,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 r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,r)=>{"use strict";var s=r(9098),n=r(8900),o=r(7013),i=r(6453),a="WebAssembly",c=n[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=i(e,t,u),s({global:!0,constructor:!0,arity:1,forced:u},r)},_=function(e,t){if(c&&c[e]){var r={};r[e]=i(a+"."+e,t,u),s({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return o(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),l("URIError",(function(e){return function(t){return o(e,this,arguments)}})),_("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),_("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),_("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var s=r(4713),n=r(262),o=r(6281),i=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!n(e)||o(e))return e;var r,c=i(e,l);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var s=r(7379),n=r(5387),o=r(547),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&n(e.length)&&!!i[s(e)]}},701:(e,t,r)=>{"use strict";var s=r(6100),n=r(2137),o=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(n(e),t)}},814:(e,t,r)=>{"use strict";var s=r(2769),n=r(459),o=TypeError;e.exports=function(e){if(s(e))return e;throw new o(n(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var s=r(8407),n=r(4674),o=r(3057),i=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!o(e))return n(e,a)||n(e,"@@iterator")||i[s(e)]}},986:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},1003:(e,t,r)=>{"use strict";var s=r(8099),n=r(8900),o=r(2769),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(s[e])||i(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},1005:(e,t,r)=>{"use strict";var s=r(3273),n=r(4574),o=r(8130),i=function(e){return function(t,r,i){var a=s(t),c=o(a);if(0===c)return!e&&-1;var u,l=n(i,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},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}},1112:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var s=r(8407),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,r)=>{var s=r(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,i,a){var c=1&r,u=s(e),l=u.length;if(l!=s(t).length&&!c)return!1;for(var _=l;_--;){var d=u[_];if(!(c?d in t:n.call(t,d)))return!1}var m=a.get(e),p=a.get(t);if(m&&p)return m==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var f=c;++_<l;){var g=e[d=u[_]],y=t[d];if(o)var w=c?o(y,g,d,t,e,a):o(g,y,d,e,t,a);if(!(void 0===w?g===y||i(g,y,r,o,a):w)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(h=!1)}return a.delete(e),a.delete(t),h}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var s=r(358),n=r(195),o=r(6529);e.exports=function(e){return o(e)?s(e):n(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var s=r(6100),n=0,o=Math.random(),i=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+o,36)}},1314:(e,t,r)=>{"use strict";var s=r(8900),n=r(2769),o=s.WeakMap;e.exports=n(o)&&/native code/.test(String(o))},1330:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var s=r(1386),n=r(4103),o=r(1779),i=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new s(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},1386:(e,t,r)=>{var s=r(2393),n=r(2049),o=r(7144),i=r(7452),a=r(3964);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},1395:(e,t,r)=>{"use strict";var s=r(6100),n=r(1203),o=r(9932),i=Object,a=s("".split);e.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):i(e)}:i},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)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,r)=>{"use strict";var s=r(4713),n=r(814),o=r(7235),i=r(459),a=r(967),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return o(s(r,e));throw new c(i(e)+" is not iterable")}},1623:(e,t,r)=>{var s=r(8942).Uint8Array;e.exports=s},1743:(e,t,r)=>{"use strict";var s=r(4713),n=r(7235),o=r(4674);e.exports=function(e,t,r){var i,a;n(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=s(i,e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return n(i),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var s=r(4904),n=r(9989).f,o=r(3999),i=r(701),a=r(9559),c=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(i(l,c)||n(l,c,{configurable:!0,value:t}),u&&!s&&o(l,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var s=r(2621).IteratorPrototype,n=r(5780),o=r(480),i=r(1811),a=r(6625),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=n(s,{next:o(+!u,r)}),i(e,l,!1,!0),a[l]=c,e}},1950:(e,t,r)=>{var s=r(8942)["__core-js_shared__"];e.exports=s},1966:(e,t,r)=>{"use strict";var s=r(2937),n=String,o=TypeError;e.exports=function(e){if(s(e))return e;throw new o("Can't set "+n(e)+" as a prototype")}},2049:(e,t,r)=>{var s=r(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var s=r(5426),n=Object;e.exports=function(e){return n(s(e))}},2306:(e,t,r)=>{e=r.nmd(e);var s=r(4967),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n&&s.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},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},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},2621:(e,t,r)=>{"use strict";var s,n,o,i=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),_=r(3508),d=r(8655),m=r(4871),p=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(n=l(l(o)))!==Object.prototype&&(s=n):h=!0),!c(s)||i((function(){var e={};return s[p].call(e)!==e}))?s={}:m&&(s=u(s)),a(s[p])||_(s,p,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:h}},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}},2871:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var s=r(8655),n=r(6625),o=s("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},2937:(e,t,r)=>{"use strict";var s=r(262);e.exports=function(e){return s(e)||null===e}},3004:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,r)=>{"use strict";var s=r(9098),n=r(4317),o=r(3671),i=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),_=r(8148),d=r(4279),m=r(208),p=r(4879),h=r(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var r,s=n(w,this);i?r=i(new f,s?o(this):w):(r=s?this:c(w),u(r,h,"Error")),void 0!==t&&u(r,"message",p(t)),d(r,y,r.stack,1),arguments.length>2&&_(r,arguments[2]);var a=[];return m(e,g,{that:a}),u(r,"errors",a),r};i?i(y,f):a(y,f,{name:!0});var w=y.prototype=c(f.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,r)=>{var s=r(4715)(r(8942),"DataView");e.exports=s},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const s=r(394);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var s=r(8250),n=r(1877),o=r(8006);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=n,i.prototype.has=o,e.exports=i},3273:(e,t,r)=>{"use strict";var s=r(1395),n=r(5426);e.exports=function(e){return s(n(e))}},3283:(e,t,r)=>{var s=r(6027),n=r(547),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,r)=>{var s=r(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3311:(e,t,r)=>{const s=r(1517),n=r(4123);class o extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new o(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=o},3410:(e,t,r)=>{"use strict";var s=r(5024),n=r(701),o=Function.prototype,i=s&&Object.getOwnPropertyDescriptor,a=n(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!s||s&&i(o,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3489:(e,t,r)=>{"use strict";var s=r(1003);e.exports=s("document","documentElement")},3491:(e,t,r)=>{"use strict";var s=r(3574),n=r(262),o=r(5426),i=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return o(r),i(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var s=r(2769),n=r(262),o=r(3491);e.exports=function(e,t,r){var i,a;return o&&s(i=t.constructor)&&i!==r&&n(a=i.prototype)&&a!==r.prototype&&o(e,a),e}},3508:(e,t,r)=>{"use strict";var s=r(3999);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},3531:(e,t,r)=>{"use strict";var s=r(8900).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},3574:(e,t,r)=>{"use strict";var s=r(6100),n=r(814);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var s=r(7379),n=r(1580);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var s=r(701),n=r(2769),o=r(2137),i=r(4275),a=r(2871),c=i("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},3753:(e,t,r)=>{"use strict";var s=r(4871),n=r(8900),o=r(7525),i="__core-js_shared__",a=e.exports=n[i]||o(i,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var s=r(5571).charAt,n=r(1139),o=r(8417),i=r(164),a=r(877),c="String Iterator",u=o.set,l=o.getterFor(c);i(String,"String",(function(e){u(this,{type:c,string:n(e),index:0})}),(function(){var e,t=l(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,s)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?s(e):r(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=()=>{(200==s.status||0==s.status&&s.response)&&r(s.response),t(s.status)},s.onerror=t,s.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,s){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,s):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(s,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,s)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var o="";t<n;){var i=e[t++];if(128&i){var a=63&e[t++];if(192!=(224&i)){var c=63&e[t++];if((i=224==(240&i)?(15&i)<<12|a<<6|c:(7&i)<<18|a<<12|c<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var u=i-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o},getDylinkMetadata=e=>{var t=0,r=0;function s(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}function n(){var r=s();return UTF8ArrayToString(e,(t+=r)-r,r)}function o(e,t){if(e)throw new Error(t)}var i="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,i);0===a.length&&(i="dylink",a=WebAssembly.Module.customSections(e,i)),o(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var u=s();r=t+u,i=n()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==i){l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();for(var _=s(),d=0;d<_;++d){var m=n();l.neededDynlibs.push(m)}}else{o("dylink.0"!==i);for(;t<r;){var p=e[t++],h=s();if(1===p)l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();else if(2===p)for(_=s(),d=0;d<_;++d)m=n(),l.neededDynlibs.push(m);else if(3===p)for(var f=s();f--;){var g=n();256&s()&&l.tlsExports.add(g)}else if(4===p)for(f=s();f--;){n(),g=n();1==(3&s())&&l.weakImports.add(g)}else t+=h}}return l};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var s={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=s,null!=t&&(LDSO.loadedLibsByHandle[t]=s),s},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},s=1;s<e.length;++s)r.parameters.push(t[e[s]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),s=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(s.length,t);for(var o=0;o<s.length;++o)t.push(n[s[o]]);"v"==r?t.push(0):t.push(1,n[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var s=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,s),s.push(...r),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(s));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var s=getWasmTableEntry(r);s&&functionsInTableMap.set(s,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var s=getEmptyTableSlot();try{setWasmTableEntry(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(s,n)}return functionsInTableMap.set(e,s),s},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var s=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof s?GOT[r].value=addFunction(s):"number"==typeof s?GOT[r].value=s:err(`unhandled export type for '${r}': ${typeof s}`))}},relocateExports=(e,t,r)=>{var s={};for(var n in e){var o=e[n];"object"==typeof o&&(o=o.value),"number"==typeof o&&(o+=t),s[n]=o}return updateGOT(s,r),s},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var s=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,s]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=s)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=s)}},asyncLoad=(e,t,r,s)=>{var n=s?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,s){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):r&&Object.assign(r,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,s&&(LDSO.loadedLibsByHandle[s]=n),!t.loadAsync||Promise.resolve(!0);function o(){if(s){var r=LE_HEAP_LOAD_U32(4*(s+28>>2)),n=LE_HEAP_LOAD_U32(4*(s+32>>2));if(r&&n){var o=HEAP8.slice(r,r+n);return t.loadAsync?Promise.resolve(o):o}}var i=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(i,e,t)}));if(!readBinary)throw new Error(`${i}: file not found, and synchronous loading of external files is not available`);return readBinary(i)}function i(){return t.loadAsync?o().then((n=>loadWebAssemblyModule(n,t,e,r,s))):loadWebAssemblyModule(o(),t,e,r,s)}function a(t){n.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),n.exports=t}return(n=newDSO(e,s,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?i().then((e=>(a(e),!0))):(a(i()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var s,n,o=1;o<=4;o*=2){var i=t*(1+.2/o);i=Math.min(i,e+100663296);var a=Math.min(r,(s=Math.max(e,i))+((n=65536)-s%n)%n);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,r,s,n){convertI32PairToI53Checked(t,r);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,s)=>{for(var n=0,o=0;o<r;o++){var i=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<a;c++)printChar(e,HEAPU8[i+c]);n+=a}return LE_HEAP_STORE_U32(4*(s>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,s,n){const o=currentParseCallback(t,{row:r,column:s});"string"==typeof o?(setValue(n,o.length,"i32"),stringToUTF16(o,e,10240)):setValue(n,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s<=127?t++:s<=2047?t+=2:s>=55296&&s<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,s)=>{if(!(s>0))return 0;for(var n=r,o=r+s-1,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(a<=127){if(r>=o)break;t[r++]=a}else if(a<=2047){if(r+1>=o)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=o)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=o)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-n},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var s=t,n=(r-=2)<2*e.length?r/2:e.length,o=0;o<n;++o){var i=e.charCodeAt(o);LE_HEAP_STORE_I16(2*(t>>1),i),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-s},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,r,s)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,s),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,s,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,s,n),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,r,s,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,s,n),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,r,s,n,o,i)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,s,n,o,i),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,r,s,n,o,i,a,c,u,l)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,s,n,o,i,a,c,u,l),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,s,n,o,i,a,c,u,l)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,s,n,o,i,a,c,u,l),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,r,s,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,s,n),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,s=stackAlloc(4*(r+1)),n=s;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var o=t(r,s);return exitJS(o,!0),o}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r?.includedRanges){s=r.includedRanges.length,n=C._calloc(s,SIZE_OF_RANGE);let e=n;for(let t=0;t<s;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const o=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!o)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const i=new Tree(INTERNAL,o,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,i}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,s){assertInternal(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return s}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return s}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const o=C._malloc(SIZE_OF_INT*s.length);for(let e=0,t=s.length;e<t;e++)setValue(o+e*SIZE_OF_INT,s[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],o,s.length,t.row,t.column,r.row,r.column);const i=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(i);if(i>0){let e=a;for(let t=0;t<i;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(o),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),s=C._malloc(r+1);stringToUTF8(e,s,r+1);const n=C._ts_language_symbol_for_name(this[0],s,r,t);return C._free(s),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const s=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!s){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(r,s).length,o=e.substr(n,100).split("\n")[0];let i,a=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:i=new RangeError(`Bad node name '${a}'`);break;case 3:i=new RangeError(`Bad field name '${a}'`);break;case 4:i=new RangeError(`Bad capture name @${a}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${o}'...`),a="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${o}'...`),a=""}throw i.index=n,i.length=a.length,C._free(r),i}const n=C._ts_query_string_count(s),o=C._ts_query_capture_count(s),i=C._ts_query_pattern_count(s),a=new Array(o),c=new Array(n);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,r)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,r)}const u=new Array(i),l=new Array(i),_=new Array(i),d=new Array(i),m=new Array(i);for(let e=0;e<i;e++){const t=C._ts_query_predicates_for_pattern(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");d[e]=[],m[e]=[];const n=[];let o=t;for(let t=0;t<r;t++){const t=getValue(o,"i32");o+=SIZE_OF_INT;const r=getValue(o,"i32");if(o+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[r]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r,s=!0,o=!0;switch(t){case"any-not-eq?":case"not-eq?":s=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(o=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,r=n[2].name;m[e].push((e=>{const n=[],i=[];for(const s of e)s.name===t&&n.push(s.node),s.name===r&&i.push(s.node);const a=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return o?n.every((e=>i.some((t=>a(e,t,s))))):n.some((e=>i.some((t=>a(e,t,s)))))}))}else{r=n[1].name;const t=n[2].value,i=e=>e.text===t,a=e=>e.text!==t;m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node);const n=s?i:a;return o?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":s=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);r=n[1].name;const i=new RegExp(n[2].value);o=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);const n=(e,t)=>t?i.test(e):!i.test(e);return 0===t.length?!s:o?t.every((e=>n(e,s))):t.some((e=>n(e,s)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?l:_;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":s=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=n[1].name;const c=n.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);return 0===t.length?!s:t.every((e=>c.includes(e)))===s}));break;default:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(_[e])}return C._free(r),new Query(INTERNAL,s,a,m,d,Object.freeze(u),Object.freeze(l),Object.freeze(_))}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=__webpack_require__(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 r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new Language(INTERNAL,s)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,s,n,o,i,a){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=o,this.assertedProperties=i,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:s=0,endIndex:n=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s,n,o,i,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=new Array(c);this.exceededMatchLimit=Boolean(l);let d=0,m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,s),this.textPredicates[t].every((e=>e(s)))){_[d]={pattern:t,captures:s};const e=this.setProperties[t];e&&(_[d].setProperties=e);const r=this.assertedProperties[t];r&&(_[d].assertedProperties=r);const n=this.refutedProperties[t];n&&(_[d].refutedProperties=n),d++}}return _.length=d,C._free(u),_}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:s=0,endIndex:n=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s,n,o,i,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=[];this.exceededMatchLimit=Boolean(l);const d=[];let m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=r,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),_.push(e)}}return C._free(u),_}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function unmarshalCaptures(e,t,r,s){for(let n=0,o=s.length;n<o;n++){const o=getValue(r,"i32"),i=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,s[n]={name:e.captureNames[o],node:i}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const s=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=r,a.startIndex=s,a.startPosition={row:n,column:o},a[0]=i,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3885:(e,t,r)=>{"use strict";var s=r(6100),n=Error,o=s("".replace),i=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=o(e,a,"");return e}},3934:(e,t,r)=>{var s=r(3212),n=r(6465),o=r(5568);e.exports=function(e,t,r,i,a,c){var u=1&r,l=e.length,_=t.length;if(l!=_&&!(u&&_>l))return!1;var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var p=-1,h=!0,f=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++p<l;){var g=e[p],y=t[p];if(i)var w=u?i(y,g,p,t,e,c):i(g,y,p,e,t,c);if(void 0!==w){if(w)continue;h=!1;break}if(f){if(!n(t,(function(e,t){if(!o(f,t)&&(g===e||a(g,e,r,i,c)))return f.push(t)}))){h=!1;break}}else if(g!==y&&!a(g,y,r,i,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},3964:(e,t,r)=>{var s=r(7034);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3999:(e,t,r)=>{"use strict";var s=r(5024),n=r(9989),o=r(480);e.exports=s?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},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""}},4103:(e,t,r)=>{var s=r(1386);e.exports=function(){this.__data__=new s,this.size=0}},4123:(e,t,r)=>{const s=r(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class o{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new o(this.elements.filter(e,t))}reject(e,t){return e=n(e),new o(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=o},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var s=r(8141),n=r(1268),o=s("keys");e.exports=function(e){return o[e]||(o[e]=n(e))}},4279:(e,t,r)=>{"use strict";var s=r(3999),n=r(3885),o=r(5791),i=Error.captureStackTrace;e.exports=function(e,t,r,a){o&&(i?i(e,t):s(e,"stack",n(r,a)))}},4317:(e,t,r)=>{"use strict";var s=r(6100);e.exports=s({}.isPrototypeOf)},4497:(e,t,r)=>{var s=r(4715)(Object,"create");e.exports=s},4512:(e,t,r)=>{var s=r(4715)(r(8942),"Set");e.exports=s},4543:(e,t,r)=>{"use strict";var s=r(5024),n=r(4713),o=r(7161),i=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),_=Object.getOwnPropertyDescriptor;t.f=s?_:function(e,t){if(e=a(e),t=c(t),l)try{return _(e,t)}catch(e){}if(u(e,t))return i(!n(o.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var s=r(9344),n=r(814),o=r(1780),i=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var s=r(9903),n=Math.max,o=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):o(r,t)}},4603:(e,t,r)=>{"use strict";var s=r(5547),n=r(1203),o=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4674:(e,t,r)=>{"use strict";var s=r(814),n=r(3057);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},4687:(e,t,r)=>{var s=r(353),n=r(547);e.exports=function e(t,r,o,i,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,o,i,e,a))}},4700:(e,t,r)=>{var s=r(9067);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,r)=>{var s=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},4732:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).has(e)}},4759:(e,t,r)=>{var s,n=r(1950),o=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!o&&o in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var s=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var s={};s[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(s)},4967:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},5024:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var s=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var s=r(3305),n=r(9361),o=r(1112),i=r(5276),a=r(5071);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},5116:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5341:(e,t,r)=>{"use strict";var s=r(493),n=r(6281);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var s=r(3057),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var s=r(9989).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var s,n,o=r(8900),i=r(3531),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(s=l.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&i&&(!(s=i.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=i.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var s=r(6100),n=r(9903),o=r(1139),i=r(5426),a=s("".charAt),c=s("".charCodeAt),u=s("".slice),l=function(e){return function(t,r){var s,l,_=o(i(t)),d=n(r),m=_.length;return d<0||d>=m?e?"":void 0:(s=c(_,d))<55296||s>56319||d+1===m||(l=c(_,d+1))<56320||l>57343?e?a(_,d):s:e?u(_,d,d+2):l-56320+(s-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,r)=>{const s=r(1517),n=r(1580),o=r(9796),i=r(7309),a=r(3311);e.exports=class extends o{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new i(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,o)=>{const i=e.bind(t)(s,n,o);i&&r.push(i)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var s=r(8942).Symbol;e.exports=s},5681:(e,t,r)=>{var s=r(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var s=r(1003),n=r(6100),o=r(5116),i=r(7313),a=r(7235),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?c(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const s=r(9310),n=r(8138),o=r(986),i=r(2563),a=r(1580),c=r(394),u=r(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(s,u.NullElement,!1).detect(n,u.StringElement,!1).detect(o,u.NumberElement,!1).detect(i,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},5780:(e,t,r)=>{"use strict";var s,n=r(7235),o=r(7389),i=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),_="prototype",d="script",m=l("IE_PROTO"),p=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&s?f(s):(t=u("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(s);for(var n=i.length;n--;)delete g[_][i[n]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[_]=n(e),r=new p,p[_]=null,r[m]=e):r=g(),void 0===t?r:o.f(r,t)}},5791:(e,t,r)=>{"use strict";var s=r(1203),n=r(480);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var s=r(8942),n=r(4772),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},6027:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},6100:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,o=n.call,i=s&&n.bind.bind(o,o);e.exports=s?i:function(e){return function(){return o.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},6138:(e,t,r)=>{"use strict";var s=r(9098),n=r(1003),o=r(7013),i=r(1203),a=r(6453),c="AggregateError",u=n(c),l=!i((function(){return 1!==u([1]).errors[0]}))&&i((function(){return 7!==u([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return o(e,this,arguments)}}),l,!0)})},6281:(e,t,r)=>{"use strict";var s=r(1003),n=r(2769),o=r(4317),i=r(7460),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&o(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var s=r(4687);e.exports=function(e,t){return s(e,t)}},6453:(e,t,r)=>{"use strict";var s=r(1003),n=r(701),o=r(3999),i=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),_=r(4879),d=r(8148),m=r(4279),p=r(5024),h=r(4871);e.exports=function(e,t,r,f){var g="stackTraceLimit",y=f?2:1,w=e.split("."),b=w[w.length-1],v=s.apply(null,w);if(v){var E=v.prototype;if(!h&&n(E,"cause")&&delete E.cause,!r)return v;var x=s("Error"),S=t((function(e,t){var r=_(f?t:e,void 0),s=f?new v(e):new v;return void 0!==r&&o(s,"message",r),m(s,S,s.stack,2),this&&i(E,this)&&l(s,this,S),arguments.length>y&&d(s,arguments[y]),s}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in v&&(u(S,v,g),u(S,v,"prepareStackTrace")),c(S,v),!h)try{E.name!==b&&o(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var s=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var s=r(1386),n=r(9770),o=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var i=r.__data__;if(!n||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(i)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var s=r(8099);e.exports=s.AggregateError},6850:(e,t,r)=>{"use strict";t.MH=void 0;const s=r(8583);function n(e,t,r){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==r&&r!==e.length)throw new SyntaxError(s.errorMessages.get(t));return n}function o(e,t){const r=n(e,s.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,s.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}const i=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,r,a,c,u,l,_,d,m){if(void 0!==r)return"\\";if(void 0!==a)return function(e){const t=n(e,s.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(s.errorMessages.get(s.ErrorType.MalformedUnicode));var t;const r=n(e.slice(1,-1),s.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(s.errorMessages.get(s.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return o(u,l);if(void 0!==_)return o(_);if("0"===d)return"\0";if(void 0!==d)return function(e,t=!1){if(t)throw new SyntaxError(s.errorMessages.get(s.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(d,!t);if(void 0!==m)return p=m,i.get(p)||p;var p;throw new SyntaxError(s.errorMessages.get(s.ErrorType.EndOfString))}))}t.MH=c},7013:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,o=n.apply,i=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?i.bind(o):function(){return i.apply(o,arguments)})},7034:(e,t,r)=>{var s=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var s=r(7034);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var s=r(239);e.exports=s},7235:(e,t,r)=>{"use strict";var s=r(262),n=String,o=TypeError;e.exports=function(e){if(s(e))return e;throw new o(n(e)+" is not an object")}},7309:(e,t,r)=>{const s=r(2322),n=r(8631);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var s=r(5650),n=r(8870),o=r(9005),i=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?n(e):o(e)}},7389:(e,t,r)=>{"use strict";var s=r(5024),n=r(1330),o=r(9989),i=r(7235),a=r(3273),c=r(8364);t.f=s&&!n?Object.defineProperties:function(e,t){i(e);for(var r,s=a(t),n=c(t),u=n.length,l=0;u>l;)o.f(e,r=n[l++],s[r]);return e}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7452:(e,t,r)=>{var s=r(7034);e.exports=function(e){return s(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var s=r(4603);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var s=r(701),n=r(5691),o=r(4543),i=r(9989);e.exports=function(e,t,r){for(var a=n(t),c=i.f,u=o.f,l=0;l<a.length;l++){var _=a[l];s(e,_)||r&&s(r,_)||c(e,_,u(t,_))}}},7525:(e,t,r)=>{"use strict";var s=r(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},7547:(e,t,r)=>{const s=r(8631),n=r(3004),o=r(8712),i=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),_=r(9620),d=r(593),m=r(4123),p=r(3311),h=r(2322);function f(e){if(e instanceof s)return e;if("string"==typeof e)return new o(e);if("number"==typeof e)return new i(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new l(e)}return e}s.prototype.ObjectElement=l,s.prototype.RefElement=d,s.prototype.MemberElement=u,s.prototype.refract=f,m.prototype.refract=f,e.exports={Element:s,NullElement:n,StringElement:o,NumberElement:i,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:_,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:p,KeyValuePair:h}},7979:(e,t,r)=>{var s=r(9847),n=r(9306),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(e){return null==e?[]:(e=Object(e),s(i(e),(function(t){return o.call(e,t)})))}:n;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var s=r(3766)(Object.keys,Object);e.exports=s},8130:(e,t,r)=>{"use strict";var s=r(8146);e.exports=function(e){return s(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var s=r(7379),n=r(3142),o=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&o(e)&&"[object String]"==s(e)}},8141:(e,t,r)=>{"use strict";var s=r(3753);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},8146:(e,t,r)=>{"use strict";var s=r(9903),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var s=r(262),n=r(3999);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,r)=>{var s=r(1129),n=r(3142);e.exports=function(e,t,r){var o=t(e);return n(e)?o:s(o,r(e))}},8250:(e,t,r)=>{var s=r(9753),n=r(5681),o=r(88),i=r(4732),a=r(9068);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},8326:(e,t,r)=>{const s=r(5735),n=r(7547);t.g$=s,t.KeyValuePair=r(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var s=r(7202);e.exports=s},8364:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683);e.exports=Object.keys||function(e){return s(e,n)}},8407:(e,t,r)=>{"use strict";var s=r(4904),n=r(2769),o=r(9932),i=r(8655)("toStringTag"),a=Object,c="Arguments"===o(function(){return arguments}());e.exports=s?o:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),i))?r:c?o(t):"Object"===(s=o(t))&&n(t.callee)?"Arguments":s}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var s,n,o,i=r(1314),a=r(8900),c=r(262),u=r(3999),l=r(701),_=r(3753),d=r(4275),m=r(5241),p="Object already initialized",h=a.TypeError,f=a.WeakMap;if(i||_.state){var g=_.state||(_.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,s=function(e,t){if(g.has(e))throw new h(p);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=d("state");m[y]=!0,s=function(e,t){if(l(e,y))throw new h(p);return t.facade=e,u(e,y,t),t},n=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:s,get:n,has:o,enforce:function(e){return o(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var s=r(3103),n=r(9770),o=r(9413),i=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",_="[object Promise]",d="[object Set]",m="[object WeakMap]",p="[object DataView]",h=u(s),f=u(n),g=u(o),y=u(i),w=u(a),b=c;(s&&b(new s(new ArrayBuffer(1)))!=p||n&&b(new n)!=l||o&&b(o.resolve())!=_||i&&b(new i)!=d||a&&b(new a)!=m)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?u(r):"";if(s)switch(s){case h:return p;case f:return l;case g:return _;case y:return d;case w:return m}return t}),e.exports=b},8583:(e,t)=>{"use strict";var r;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"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,r)=>{"use strict";var s=r(6100),n=r(701),o=r(3273),i=r(1005).indexOf,a=r(5241),c=s([].push);e.exports=function(e,t){var r,s=o(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&c(l,r);for(;t.length>u;)n(s,r=t[u++])&&(~i(l,r)||c(l,r));return l}},8631:(e,t,r)=>{const s=r(6343),n=r(2322),o=r(4123);class i{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof i?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new o;const s=(e,t)=>(e.push(t),e),i=(e,r)=>{r.element===t&&e.push(r);const o=r.findRecursive(t);return o&&o.reduce(s,e),r.content instanceof n&&(r.content.key&&i(e,r.content.key),r.content.value&&i(e,r.content.value)),e};return this.content&&(this.content.element&&i(r,this.content),Array.isArray(this.content)&&this.content.reduce(i,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof i)this._content=e;else if(e instanceof o)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new o;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new o(this.content);if(this.content instanceof n){const e=new o([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof i?new o([this.content]):new o}get recursiveChildren(){const e=new o;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=i},8655:(e,t,r)=>{"use strict";var s=r(8900),n=r(8141),o=r(701),i=r(1268),a=r(4603),c=r(7460),u=s.Symbol,l=n("wks"),_=c?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return o(l,e)||(l[e]=a&&o(u,e)?u[e]:_("Symbol."+e)),l[e]}},8666:(e,t,r)=>{var s=r(674),n=r(9460),o=r(2306),i=o&&o.isTypedArray,a=i?n(i):s;e.exports=a},8696:(e,t,r)=>{"use strict";var s=r(1203),n=r(2769),o=/#|\.prototype\./,i=function(e,t){var r=c[a(e)];return r===l||r!==u&&(n(t)?s(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},8712:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var s=r(5650),n=r(1623),o=r(6285),i=r(3934),a=r(5894),c=r(7447),u=s?s.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,s,u,_,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!_(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 p=1&s;if(m||(m=c),e.size!=t.size&&!p)return!1;var h=d.get(e);if(h)return h==t;s|=2,d.set(e,t);var f=i(m(e),m(t),s,u,_,d);return d.delete(e),f;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,r)=>{var s=r(5650),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=i.call(e);return s&&(t?e[a]=r:delete e[a]),n}},8900:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var s=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,o=s||n||Function("return this")();e.exports=o},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,r)=>{var s=r(4700);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},9098:(e,t,r)=>{"use strict";var s=r(8900),n=r(7013),o=r(9344),i=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),_=r(3999),d=r(701);r(3753);var m=function(e){var t=function(r,s,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,o)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,p,h,f,g,y,w,b,v=e.target,E=e.global,x=e.stat,S=e.proto,P=E?s:x?s[v]:s[v]&&s[v].prototype,O=E?u:u[v]||_(u,v,{})[v],M=O.prototype;for(h in t)n=!(r=c(E?h:v+(x?".":"#")+h,e.forced))&&P&&d(P,h),g=O[h],n&&(y=e.dontCallGetSet?(b=a(P,h))&&b.value:P[h]),f=n&&y?y:t[h],(r||S||typeof g!=typeof f)&&(w=e.bind&&n?l(f,s):e.wrap&&n?m(f):S&&i(f)?o(f):f,(e.sham||f&&f.sham||g&&g.sham)&&_(w,"sham",!0),_(O,h,w),S&&(d(u,p=v+"Prototype")||_(u,p,{}),_(u[p],h,f),e.real&&M&&(r||!M[h])&&_(M,h,f)))}},9258:(e,t,r)=>{"use strict";var s=r(4713),n=r(2769),o=r(262),i=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!o(a=s(r,e)))return a;if(n(r=e.valueOf)&&!o(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!o(a=s(r,e)))return a;throw new i("Can't convert object to primitive value")}},9270:(e,t,r)=>{var s=r(4715)(r(8942),"WeakMap");e.exports=s},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var s=r(9932),n=r(6100);e.exports=function(e){if("Function"===s(e))return n(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,r)=>{var s=r(4715)(r(8942),"Promise");e.exports=s},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var s=r(4904),n=r(8407);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,r)=>{"use strict";var s=r(8900),n=r(262),o=s.document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},9620:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var s=r(3655),n=r(4759),o=r(1580),i=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,_=u.hasOwnProperty,d=RegExp("^"+l.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||n(e))&&(s(e)?d:a).test(i(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203),o=r(9619);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var s=r(5098),n=r(1386),o=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(o||n),string:new s}}},9770:(e,t,r)=>{var s=r(4715)(r(8942),"Map");e.exports=s},9796:(e,t,r)=>{const s=r(1517),n=r(8631),o=r(4123);class i extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new o(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,o)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,o)&&n.push(t)})),n}find(e){return new o(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)}}i.empty=function(){return new this},i["fantasy-land/empty"]=i.empty,"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=i},9828:(e,t,r)=>{"use strict";var s=r(3273),n=r(8137),o=r(6625),i=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),_=r(5024),d="Array Iterator",m=i.set,p=i.getterFor(d);e.exports=c(Array,"Array",(function(e,t){m(this,{type:d,target:s(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var h=o.Arguments=o.Array;if(n("keys"),n("values"),n("entries"),!l&&_&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,o=[];++r<s;){var i=e[r];t(i,r,e)&&(o[n++]=i)}return o}},9903:(e,t,r)=>{"use strict";var s=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},9932:(e,t,r)=>{"use strict";var s=r(6100),n=s({}.toString),o=s("".slice);e.exports=function(e){return o(n(e),8,-1)}},9989:(e,t,r)=>{"use strict";var s=r(5024),n=r(9665),o=r(1330),i=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,_="enumerable",d="configurable",m="writable";t.f=s?o?function(e,t,r){if(i(e),t=a(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var s=l(e,t);s&&s[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:s[d],enumerable:_ in r?r[_]:s[_],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(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(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>s_,detectionRegExp:()=>r_,mediaTypes:()=>t_,namespace:()=>o_,parse:()=>n_});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>on,includesClasses:()=>cn,includesSymbols:()=>an,isAnnotationElement:()=>tn,isArrayElement:()=>Ys,isBooleanElement:()=>Ks,isCommentElement:()=>rn,isElement:()=>Ws,isLinkElement:()=>Qs,isMemberElement:()=>Xs,isNullElement:()=>Zs,isNumberElement:()=>zs,isObjectElement:()=>Js,isParseResultElement:()=>sn,isPrimitiveElement:()=>nn,isRefElement:()=>en,isStringElement:()=>Gs});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>li,isJSONSchemaElement:()=>ui,isLinkDescriptionElement:()=>di,isMediaElement:()=>_i});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isReferenceLikeElement:()=>Qa,isSwaggerExtension:()=>Xa});var s={};function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function o(e){return function t(r){return 0===arguments.length||n(r)?t:e.apply(this,arguments)}}function i(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return n(r)?t:o((function(t){return e(r,t)}));default:return n(r)&&n(s)?t:n(r)?o((function(t){return e(t,s)})):n(s)?o((function(t){return e(r,t)})):e(r,s)}}}function a(e){return function t(r,s,a){switch(arguments.length){case 0:return t;case 1:return n(r)?t:i((function(t,s){return e(r,t,s)}));case 2:return n(r)&&n(s)?t:n(r)?i((function(t,r){return e(t,s,r)})):n(s)?i((function(t,s){return e(r,t,s)})):o((function(t){return e(r,s,t)}));default:return n(r)&&n(s)&&n(a)?t:n(r)&&n(s)?i((function(t,r){return e(t,r,a)})):n(r)&&n(a)?i((function(t,r){return e(t,s,r)})):n(s)&&n(a)?i((function(t,s){return e(r,t,s)})):n(r)?o((function(t){return e(t,s,a)})):n(s)?o((function(t){return e(r,t,a)})):n(a)?o((function(t){return e(r,s,t)})):e(r,s,a)}}}__webpack_require__.r(s),__webpack_require__.d(s,{isContactElement:()=>kc,isDefinitionsElement:()=>eu,isExampleElement:()=>Gc,isExternalDocumentationElement:()=>qc,isHeaderElement:()=>zc,isHeadersElement:()=>Wc,isInfoElement:()=>Nc,isItemsElement:()=>Vc,isLicenseElement:()=>Cc,isOperationElement:()=>Lc,isParameterElement:()=>Uc,isParametersDefinitionsElement:()=>tu,isPathItemElement:()=>Dc,isPathsElement:()=>$c,isReferenceElement:()=>Kc,isResponseElement:()=>Hc,isResponsesDefinitionsElement:()=>Xc,isResponsesElement:()=>Bc,isSchemaElement:()=>Jc,isScopesElement:()=>su,isSecurityDefinitionsElement:()=>Qc,isSecurityRequirementElement:()=>nu,isSecuritySchemeElement:()=>ru,isSwaggerElement:()=>Rc,isSwaggerVersionElement:()=>Fc,isTagElement:()=>Zc,isXmlElement:()=>Yc});const c=i((function(e,t){return null==t||t!=t?e:t})),u=Number.isInteger||function(e){return(e|0)===e};function l(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var r=e<0?t.length+e:e;return l(t)?t.charAt(r):t[r]}const d=i((function(e,t){if(null!=t)return u(e)?_(e,t):t[e]}));const m=a((function(e,t,r){return c(e,d(t,r))}));var p=i((function(e,t){for(var r={},s={},n=0,o=e.length;n<o;)s[e[n]]=1,n+=1;for(var i in t)s.hasOwnProperty(i)||(r[i]=t[i]);return r}));const h=p;function f(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const g=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const y=o((function(e){return!!g(e)||!!e&&("object"==typeof e&&(!l(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function b(e,t,r){return function(s,n,o){if(y(o))return e(s,n,o);if(null==o)return n;if("function"==typeof o["fantasy-land/reduce"])return t(s,n,o,"fantasy-land/reduce");if(null!=o[w])return r(s,n,o[w]());if("function"==typeof o.next)return r(s,n,o);if("function"==typeof o.reduce)return t(s,n,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function v(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function E(e,t,r,s){return r[s](e,t)}const x=b(f,E,v);function S(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!g(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function P(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}const O=function(){return this.xf["@@transducer/init"]()},M=function(e){return this.xf["@@transducer/result"](e)};var A=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const T=function(e){return function(t){return new A(e,t)}};function I(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,o){return t.apply(this,arguments)};case 6:return function(e,r,s,n,o,i){return t.apply(this,arguments)};case 7:return function(e,r,s,n,o,i,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,o,i,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,o,i,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,s,n,o,i,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function j(e,t,r){return function(){for(var s=[],o=0,i=e,a=0,c=!1;a<t.length||o<arguments.length;){var u;a<t.length&&(!n(t[a])||o>=arguments.length)?u=t[a]:(u=arguments[o],o+=1),s[a]=u,n(u)?c=!0:i-=1,a+=1}return!c&&i<=0?r.apply(this,s):I(Math.max(0,i),j(e,s,r))}}const R=i((function(e,t){return 1===e?o(t):I(e,j(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var N=Object.prototype.toString;const C=function(){return"[object Arguments]"===N.call(arguments)?function(e){return"[object Arguments]"===N.call(e)}:function(e){return F("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=function(){return arguments.propertyIsEnumerable("length")}(),L=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},q="function"!=typeof Object.keys||D?o((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=D&&C(e);for(t in e)!F(t,e)||n&&"length"===t||(s[s.length]=t);if(k)for(r=$.length-1;r>=0;)F(t=$[r],e)&&!L(s,t)&&(s[s.length]=t),r-=1;return s})):o((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=q;const V=i(S(["fantasy-land/map","map"],T,(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 f((function(r,s){return r[s]=e(t[s]),r}),{},U(t));default:return P(e,t)}})));const B=i((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:x((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,o=[];for(r=0;r<s;)o[o.length]=e[r],r+=1;for(r=0;r<n;)o[o.length]=t[r],r+=1;return o}(e,V(r,t))}),[],e)}));const H=i((function(e,t){var r=R(e,t);return R(e,(function(){return f(B,V(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=o((function(e){return H(e.length,e)}));const G=W(o((function(e){return!e})));function z(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Z(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}const K="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const J=o((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Y(e,t,r,s){var n=z(e);function o(e,t){return X(e,t,r.slice(),s.slice())}return!Z((function(e,t){return!Z(o,t,e)}),z(t),n)}function X(e,t,r,s){if(K(e,t))return!0;var n,o,i=J(e);if(i!==J(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(o=String(n).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!K(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!K(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&Y(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Y(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=U(e);if(c.length!==U(t).length)return!1;var u=r.concat([e]),l=s.concat([t]);for(a=c.length-1;a>=0;){var _=c[a];if(!F(_,t)||!X(t[_],e[_],u,l))return!1;a-=1}return!0}const Q=i((function(e,t){return X(e,t,[],[])}));const ee=o((function(e){return function(){return e}}));const te=ee(void 0);const re=Q(te());const se=G(re);var ne=__webpack_require__(8326);function oe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ie(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const ae=i((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function ce(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function ue(e,t,r,s){return e["@@transducer/result"](r[s](ae(e["@@transducer/step"],e),t))}const le=b(ie,ue,ce);var _e=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function de(e){return new _e(e)}const me=a((function(e,t,r){return le("function"==typeof e?de(e):e,t,r)}));function pe(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return g(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const he=a(pe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const fe=o(pe("tail",he(1,1/0)));function ge(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,me(oe,arguments[0],fe(arguments)))}var ye=function(e,t){switch(arguments.length){case 0:return ye;case 1:return function t(r){return 0===arguments.length?t:K(e,r)};default:return K(e,t)}};const we=ye;function be(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(Q(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ve(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 Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var Pe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Oe(e){return function(t){return new Pe(e,t)}}const Me=i(S(["fantasy-land/filter","filter"],Oe,(function(e,t){return Se(t)?f((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},U(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const Ae=i((function(e,t){return Me((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Te(e,t){var r=function(r){var s=t.concat([e]);return be(r,s)?"<Circular>":Te(r,s)},s=function(e,t){return P((function(t){return ve(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+P(r,e).join(", ")+"))";case"[object Array]":return"["+P(r,e).concat(s(e,Ae((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):ve(xe(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":ve(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,U(e)).join(", ")+"}"}}const Ie=o((function(e){return Te(e,[])}));function je(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=u(n)?_(n,r):r[n]}return r}const Re=a((function(e,t,r){return e(je(t,r))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ne=i((function(e,t){return e&&t}));const Ce=i((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Ne)(e,t)}));const ke=Q(null);const $e=G(ke);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}const Le=function(e){return"object"===De(e)};const qe=R(1,Ce($e,Le));const Ue=i((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var o=Ie(e),i=r(o,Ie(t));return void 0!==i&&i===o?e:t}));const Ve=i((function(e,t){return V(d(e),t)}));const Be=o((function(e){return R(me(Ue,0,Ve("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const He=R(1,ge(J,we("GeneratorFunction")));const We=R(1,ge(J,we("AsyncFunction")));const Ge=Be([ge(J,we("Function")),He,We]);var ze=ge(J,we("Object")),Ze=ge(Ie,Q(Ie(Object))),Ke=Re(Ce(Ge,Ze),["constructor"]);const Je=R(1,(function(e){if(!qe(e)||!ze(e))return!1;var t=Object.getPrototypeOf(e);return!!ke(t)||Ke(t)}));class Ye extends ne.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Xe=Ye;class Qe extends ne.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const et=Qe;class tt extends ne.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(re(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const rt=tt;class st extends ne.g${constructor(){super(),this.register("annotation",Xe),this.register("comment",et),this.register("parseResult",rt)}}const nt=new st,ot=e=>{const t=new st;return Je(e)&&t.use(e),t},it=nt;const at=R(1,ge(J,we("String"))),ct=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ut=globalThis.fetch;Ge(ut)&&(globalThis.fetch=(...e)=>at(e[0])&&e[0].endsWith("tree-sitter.wasm")?ut.apply(globalThis,[ct,fe(e)]):ut.apply(globalThis,e));var lt=__webpack_require__(3833),_t=__webpack_require__(1212);const dt=class extends _t{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class mt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,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 pt=mt,ht=__webpack_require__.p+"fe6ac473f020fbdb0dc39a494e428b55.wasm";let ft=null,gt=null;const yt=async e=>{if(null===ft&&null===gt)gt=lt.init().then((()=>lt.Language.load(ht))).then((e=>{const t=new lt;return t.setLanguage(e),t})).finally((()=>{gt=null})),ft=await gt;else if(null===ft&&null!==gt)ft=await gt;else if(null===ft)throw new pt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return ft.parse(e)};const wt=class extends pt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const bt=class extends wt{};const vt=class extends bt{};const Et=class extends vt{specificTagName;explicitTagName;tagKind;tagStartPositionRow;tagStartPositionColumn;tagStartPositionIndex;tagEndPositionRow;tagEndPositionColumn;tagEndPositionIndex;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagStartPositionRow=t.tagStartPositionRow,this.tagStartPositionColumn=t.tagStartPositionColumn,this.tagStartPositionIndex=t.tagStartPositionIndex,this.tagEndPositionRow=t.tagEndPositionRow,this.tagEndPositionColumn=t.tagEndPositionColumn,this.tagEndPositionIndex=t.tagEndPositionIndex,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const xt=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:r,startPositionColumn:s,startIndex:n,endPositionRow:o,endPositionColumn:i,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=r,this.startPositionColumn=s,this.startIndex=n,this.endPositionRow=o,this.endPositionColumn=i,this.endIndex=a}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};let St=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Pt=class extends xt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...r}){super({...r}),this.explicitName=e,this.kind=t}};const Ot=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Mt=class extends Ot{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===St.Mapping}};const At=class extends Ot{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===St.Sequence}};const Tt=class extends Ot{static uri="tag:yaml.org,2002:str"};const It=a((function(e,t,r){return c(e,je(t,r))}));const jt=o((function(e){return R(e.length,e)}));var Rt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Ft=o("function"==typeof String.prototype.trim&&!Rt.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Rt+"]["+Rt+"]*"),r=new RegExp("["+Rt+"]["+Rt+"]*$");return e.replace(t,"").replace(r,"")});const Nt=i((function(e,t){return R(e+1,(function(){var r=arguments[e];if(null!=r&&Fe(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ie(r)+' does not have a method named "'+t+'"')}))}));const Ct=Nt(1,"split");const kt=Nt(1,"join");const $t=o((function(e){return l(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Dt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ge.apply(this,$t(arguments))}const Lt=R(4,(function(e,t,r,s){return le(e("function"==typeof t?de(t):t),r,s)}));const qt=i((function(e,t){if(g(e)){if(g(t))return e.concat(t);throw new TypeError(Ie(t)+" is not an array")}if(l(e)){if(l(t))return e+t;throw new TypeError(Ie(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(Ie(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Ut=Q("");const Vt=i((function(e,t){return R(me(Ue,0,Ve("length",t)),(function(){var r=arguments,s=this;return e.apply(s,P((function(e){return e.apply(s,r)}),t))}))}));function Bt(e){return e}const Ht=o(Bt);const Wt=R(1,ge(J,we("Number")));var Gt=Ce(Wt,isFinite);var zt=R(1,Gt);const Zt=Ge(Number.isFinite)?R(1,ae(Number.isFinite,Number)):zt;var Kt=Ce(Zt,Vt(Q,[Math.floor,Ht]));var Jt=R(1,Kt);const Yt=Ge(Number.isInteger)?R(1,ae(Number.isInteger,Number)):Jt;const Xt=o((function(e){return R(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}));const Qt=G(Zt);const er=R(1,Ce(Wt,i((function(e,t){return e>t}))(0)));var tr=jt((function(e,t){var r=Number(t);if(r!==t&&(r=0),er(r))throw new RangeError("repeat count must be non-negative");if(Qt(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===e.length||0===r)return"";if(e.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var s=e.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var n=e;r;)n+=e,r-=1;return n+=n.substring(0,s-n.length)})),rr=Xt(Nt(1,"repeat"));const sr=Ge(String.prototype.repeat)?rr:tr;const nr=a((function(e,t,r){return r.replace(e,t)}));var or=nr(/[\s\uFEFF\xA0]+$/,""),ir=Nt(0,"trimEnd");const ar=Ge(String.prototype.trimEnd)?ir:or;var cr=nr(/^[\s\uFEFF\xA0]+/,""),ur=Nt(0,"trimStart");const lr=Ge(String.prototype.trimStart)?ur:cr;var _r=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,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 dr(e){return function(t){return new _r(e,t)}}const mr=i(S(["dropWhile"],dr,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return he(r,1/0,t)})));const pr=Xt(i(be));const hr=jt((function(e,t){return ge(Ct(""),mr(pr(e)),kt(""))(t)}));const fr=Xt(qt);var gr=__webpack_require__(6850);const yr=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,wr=e=>{const t=(e=>{const t=e.match(yr),r=It("",["groups","indentation"],t);return Ut(r)?void 0:parseInt(r,10)})(e);if(Yt(t))return sr(" ",t);const r=It("",[1],e.split("\n")),s=It(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return sr(" ",s)},br=e=>{const t=e.match(yr),r=It("",["groups","chomping"],t);return Ut(r)?void 0:r},vr=(e,t)=>re(e)?`${ar(t)}\n`:"-"===e?ar(t):t,Er=e=>e.replace(/\r\n/g,"\n"),xr=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,r)=>t?e:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Sr=jt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Pr=ge(Er,Ft,xr,Ct("\n"),V(lr),kt("\n")),Or=ge(Er,Ft,xr,Ct("\n"),V(lr),kt("\n"),Sr("'")),Mr=ge(Er,Ft,(e=>e.replace(/\\\n\s*/g,"")),xr,gr.MH,Ct("\n"),V(lr),kt("\n"),Sr('"'));let Ar=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}({}),Tr=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Ir=class{static test(e){return e.tag.kind===St.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const r=e.clone();return e.style===Ar.Plain?t=Pr(e.content):e.style===Ar.SingleQuoted?t=Or(e.content):e.style===Ar.DoubleQuoted?t=Mr(e.content):e.style===Ar.Literal?t=(e=>{const t=wr(e),r=br(e),s=Er(e),n=fe(s.split("\n")),o=Dt(V(hr(t)),V(fr("\n"))),i=Lt(o,qt,"",n);return vr(r,i)})(e.content):e.style===Ar.Folded&&(t=(e=>{const t=wr(e),r=br(e),s=Er(e),n=fe(s.split("\n")),o=Dt(V(hr(t)),V(fr("\n"))),i=Lt(o,qt,"",n),a=xr(i);return vr(r,a)})(e.content)),r.content=t,r}static resolve(e){return e}};const jr=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Mt),this.registerTag(new At),this.registerTag(new Tt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===St.Scalar?t=Tt.uri:e.tag.kind===St.Sequence?t=At.uri:e.tag.kind===St.Mapping&&(t=Mt.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").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 r=e;Ir.test(e)&&(r=Ir.canonicalFormat(e));const s=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===s)throw new Et(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,node:e.clone()});if(!s.test(r))throw new Et(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,nodeCanonicalContent:r.content,node:e.clone()});return s.resolve(r)}};const Rr=class extends Ot{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,r=e.clone();return r.content=t,r}};const Fr=class extends Ot{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),r=e.clone();return r.content=t,r}};const Nr=class extends Ot{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),r=e.clone();return r.content=t,r}};const Cr=class extends Ot{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 kr=class extends jr{constructor(){super(),this.registerTag(new Rr,!0),this.registerTag(new Fr,!0),this.registerTag(new Nr,!0),this.registerTag(new Cr,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===St.Sequence)t=At.uri;else if(e.tag.kind===St.Mapping)t=Mt.uri;else if(e.tag.kind===St.Scalar){const r=this.tags.find((t=>t.test(e)));t=(null==r?void 0:r.tag)||"?"}return t}};const $r=class extends xt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:r,styleGroup:s,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=r,this.styleGroup=s}};const Dr=class extends $r{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Lr=class extends bt{},qr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Ur=e=>qr("mapping",e),Vr=e=>qr("sequence",e),Br=e=>qr("keyValuePair",e),Hr=e=>qr("scalar",e),Wr=e=>qr("alias",e);const Gr=class{addAnchor(e){if(!(e=>qr("anchor",e))(e.anchor))throw new Lr("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Dr({content:e.content,style:Ar.Plain,styleGroup:Tr.Flow})}},zr=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},Zr={},Kr=e=>null==e?void 0:e.type,Jr=e=>"string"==typeof Kr(e),Yr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Xr=(e,{visitFnGetter:t=zr,nodeTypeGetter:r=Kr,breakSymbol:s=Zr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,_,d,m,p){let h=u,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=a.call(e[u],h,l,_,d,m,g);if("function"==typeof(null==t?void 0:t.then))throw new wt("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===o)c[u]=h;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},leave(n,i,u,l,_,d){let m=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=a.call(e[n],m,i,u,l,_,p);if("function"==typeof(null==t?void 0:t.then))throw new wt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==o)return t}}else c[n]===m&&(c[n]=a)}}};Xr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=zr,nodeTypeGetter:r=Kr,breakSymbol:s=Zr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,_,d,m,p){let h=u,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=await a.call(e[u],h,l,_,d,m,g);if(t===o)c[u]=h;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},async leave(n,i,u,l,_,d){let m=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=await a.call(e[n],m,i,u,l,_,p);if(t===s)c[n]=s;else if(void 0!==t&&t!==o)return t}}else c[n]===m&&(c[n]=a)}}};const Qr=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Zr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=zr,nodeTypeGetter:c=Kr,nodePredicate:u=Jr,nodeCloneFn:l=Yr,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),g=[e],y=-1,w=[],b=e;const v=[],E=[];do{y+=1;const e=y===g.length;let r;const P=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=h,h=E.pop(),P)if(f){b=b.slice();let e=0;for(const[t,r]of w){const s=t-e;r===o?(b.splice(s,1),e+=1):b[s]=r}}else{b=l(b);for(const[e,t]of w)b[e]=t}y=p.index,g=p.keys,w=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?y:g[y],b=h[r],b===o||void 0===b)continue;v.push(r)}let O;if(!Array.isArray(b)){var x;if(!u(b))throw new wt(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,r,h,v,E),v.pop();continue}const o=a(t,c(b),e);if(o){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,h,v,E):h&&(h[r]=t),e||(b=t)}};O=o.call(t,b,r,h,v,E,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new wt("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(O===n)break;if(O===i){if(!e){v.pop();continue}}else if(void 0!==O&&(w.push([r,O]),!e)){if(!u(O)){v.pop();continue}b=O}}var S;if(void 0===O&&P&&w.push([r,b]),!e)p={inArray:f,index:y,keys:g,edits:w,prev:p},f=Array.isArray(b),g=f?b:null!==(S=m[c(b)])&&void 0!==S?S:[],y=-1,w=[],h!==o&&void 0!==h&&E.push(h),h=b}while(void 0!==p);return 0!==w.length?w[w.length-1][1]:e};Qr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Zr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=zr,nodeTypeGetter:c=Kr,nodePredicate:u=Jr,nodeCloneFn:l=Yr,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),g=[e],y=-1,w=[],b=e;const v=[],E=[];do{y+=1;const e=y===g.length;let r;const S=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=h,h=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,r]of w){const s=t-e;r===o?(b.splice(s,1),e+=1):b[s]=r}}else{b=l(b);for(const[e,t]of w)b[e]=t}y=p.index,g=p.keys,w=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?y:g[y],b=h[r],b===o||void 0===b)continue;v.push(r)}let P;if(!Array.isArray(b)){if(!u(b))throw new wt(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,r,h,v,E),v.pop();continue}const o=a(t,c(b),e);if(o){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,h,v,E):h&&(h[r]=t),e||(b=t)}};P=await o.call(t,b,r,h,v,E,n)}if(P===n)break;if(P===i){if(!e){v.pop();continue}}else if(void 0!==P&&(w.push([r,P]),!e)){if(!u(P)){v.pop();continue}b=P}}var x;if(void 0===P&&S&&w.push([r,b]),!e)p={inArray:f,index:y,keys:g,edits:w,prev:p},f=Array.isArray(b),g=f?b:null!==(x=m[c(b)])&&void 0!==x?x:[],y=-1,w=[],h!==o&&void 0!==h&&E.push(h),h=b}while(void 0!==p);return 0!==w.length?w[w.length-1][1]:e};const es=class extends xt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class ts extends xt{static type="stream"}Object.defineProperty(ts.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>qr("document",e))(e)||(e=>qr("comment",e))(e))):[]},enumerable:!0});const rs=ts;const ss=o((function(e){return _(0,e)}));const ns=class extends xt{static type="parseResult";get rootNode(){return ss(this.children)}};const os="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),r=1,s=arguments.length;r<s;){var n=arguments[r];if(null!=n)for(var o in n)F(o,n)&&(t[o]=n[o]);r+=1}return t};const is=i((function(e,t){return os({},e,t)}));const as=class extends xt{static type="directive";name;parameters;constructor({name:e,parameters:t,...r}){super({...r}),this.name=e,this.parameters=is({version:void 0,handle:void 0,prefix:void 0},t)}};const cs=class extends xt{static type="document"};const us=class extends $r{};class ls extends us{static type="mapping"}Object.defineProperty(ls.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Br):[]},enumerable:!0});const _s=ls;class ds extends xt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(ds.prototype,{key:{get(){return this.children.filter((e=>Hr(e)||Ur(e)||Vr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Hr(e)||Ur(e)||Vr(e)||Wr(e))(t)))[0]},enumerable:!0}});const ms=ds;class ps extends us{static type="sequence"}Object.defineProperty(ps.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Vr(e)||Ur(e)||Hr(e)||Wr(e))):[]},enumerable:!0});const hs=ps;const fs=class extends xt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const gs=class extends xt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const ys=class extends xt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const ws=class extends xt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};const bs=i((function(e,t){return f((function(r,s){return r[s]=e(t[s],s,t),r}),{},U(t))}));const vs=o((function(e){return null==e}));var Es=i((function(e,t){if(0===e.length||vs(t))return!1;for(var r=t,s=0;s<e.length;){if(vs(r)||!F(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const xs=Es;var Ss=i((function(e,t){return xs([e],t)}));const Ps=Ss;const Os=a((function(e,t,r){return e(d(t,r))}));const Ms=i(je),As=(e,t)=>{const r=c(e,t);return bs((e=>{if(Je(e)&&Ps("$ref",e)&&Os(at,"$ref",e)){const t=Ms(["$ref"],e),s=hr("#/",t);return Ms(s.split("/"),r)}return Je(e)?As(e,r):e}),e)},Ts=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e);const Is=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPositionRow=e.startPosition.row,this.startPositionColumn=e.startPosition.column,this.startIndex=e.startIndex,this.endPositionRow=e.endPosition.row,this.endPositionColumn=e.endPosition.column,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 this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},js={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Rs=e=>Array.isArray(e)||Jr(e);class Fs{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 kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new es(Ts({name:t.text},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,r=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),s=e.type.endsWith("mapping")?St.Mapping:e.type.endsWith("sequence")?St.Sequence:St.Scalar;return new Pt(Ts({explicitName:r,kind:s},t))}schema;referenceManager;stream={enter:e=>new rs(Ts({children:e.children,isMissing:e.isMissing},e)),leave:e=>new ns({children:[e]})};yaml_directive={enter:e=>{var t;const r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new as(Ts({name:"%YAML",parameters:{version:r}},e))}};tag_directive={enter:e=>{const t=e.children[0],r=e.children[1],s=new as(Ts({name:"%TAG",parameters:{handle:null==t?void 0:t.text,prefix:null==r?void 0:r.text}},e));return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=e.children[0],r=e.children[1],s=e.children[2];return new as(Ts({name:null==t?void 0:t.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}},e))}};document={enter:e=>new cs(Ts({children:e.children,isMissing:e.isMissing},e)),leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Fs.isScalar(t)||Fs.isMapping(t)||Fs.isSequence(t))return e.children;const r=new Dr({content:"",anchor:Fs.kindNodeToYamlAnchor(t),tag:Fs.kindNodeToYamlTag(t),startPositionRow:t.endPositionRow,startPositionColumn:t.endPositionColumn,startIndex:t.endIndex,endPositionRow:t.endPositionRow,endPositionColumn:t.endPositionColumn,endIndex:t.endIndex,styleGroup:Tr.Flow,style:Ar.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=new _s(Ts({children:e.children,anchor:r,tag:t,styleGroup:Tr.Block,style:Ar.NextLine,isMissing:e.isMissing},e));return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=[...e.children];if(Fs.hasKeyValuePairEmptyKey(e)){const r=this.createKeyValuePairEmptyKey(e);t.unshift(r)}if(Fs.hasKeyValuePairEmptyValue(e)){const r=this.createKeyValuePairEmptyValue(e);t.push(r)}return new ms(Ts({children:t,styleGroup:Tr.Block,isMissing:e.isMissing},e))}};flow_mapping={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=new _s(Ts({children:e.children,anchor:r,tag:t,styleGroup:Tr.Flow,style:Ar.Explicit,isMissing:e.isMissing},e));return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=[...e.children];if(Fs.hasKeyValuePairEmptyKey(e)){const r=this.createKeyValuePairEmptyKey(e);t.unshift(r)}if(Fs.hasKeyValuePairEmptyValue(e)){const r=this.createKeyValuePairEmptyValue(e);t.push(r)}return new ms(Ts({children:t,styleGroup:Tr.Flow,isMissing:e.isMissing},e))}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=new hs(Ts({children:e.children,anchor:r,tag:t,styleGroup:Tr.Block,style:Ar.NextLine},e));return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;return[new Dr({content:"",tag:new Pt({explicitName:"?",kind:St.Scalar}),startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,styleGroup:Tr.Flow,style:Ar.Plain})]}};flow_sequence={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=new hs(Ts({children:e.children.flat(),anchor:r,tag:t,styleGroup:Tr.Flow,style:Ar.Explicit},e));return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=new Dr(Ts({content:e.text,anchor:r,tag:t,styleGroup:Tr.Flow,style:Ar.Plain},e));return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=new Dr(Ts({content:e.text,anchor:r,tag:t,styleGroup:Tr.Flow,style:Ar.SingleQuoted},e));return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=new Dr(Ts({content:e.text,anchor:r,tag:t,styleGroup:Tr.Flow,style:Ar.DoubleQuoted},e));return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Fs.kindNodeToYamlTag(e),r=Fs.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Ar.Literal:e.text.startsWith(">")?Ar.Folded:Ar.Plain,n=new Dr(Ts({content:e.text,anchor:r,tag:t,styleGroup:Tr.Block,style:s},e));return this.registerAnchor(n),this.schema.resolve(n)}};comment={enter:e=>new fs({content:e.text})};alias={enter:e=>{const t=new gs({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Is&&!e.isNamed){const t=e.type||e.text,{isMissing:r}=e;return new ys(Ts({value:t,isMissing:r},e))}}ERROR(e,t,r,s){const n=new ws(Ts({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===s.length?new ns({children:[n]}):n}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const{keyNode:t}=e,r=(null==t?void 0:t.children)||[],s=r.find(Fs.isKind("tag")),n=r.find(Fs.isKind("anchor")),o=new Pt(void 0!==s?Ts({explicitName:s.text,kind:St.Scalar},s):{explicitName:"?",kind:St.Scalar}),i=void 0!==n?new es(Ts({name:n.text},n)):void 0,a=new Dr({content:"",startPositionRow:e.startPositionRow,startPositionColumn:e.startPositionColumn,startIndex:e.startIndex,endPositionRow:e.startPositionRow,endPositionColumn:e.startPositionColumn,endIndex:e.startIndex,tag:o,anchor:i,styleGroup:Tr.Flow,style:Ar.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const{valueNode:t}=e,r=(null==t?void 0:t.children)||[],s=r.find(Fs.isKind("tag")),n=r.find(Fs.isKind("anchor")),o=new Pt(void 0!==s?Ts({explicitName:s.text,kind:St.Scalar},s):{explicitName:"?",kind:St.Scalar}),i=void 0!==n?new es(Ts({name:n.text},n)):void 0,a=new Dr({content:"",startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,tag:o,anchor:i,styleGroup:Tr.Flow,style:Ar.Plain});return this.registerAnchor(a),a}}const Ns=Fs;function Cs(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var ks=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=O,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=Cs(this.xf["@@transducer/step"](e,!1))),e},e}();function $s(e){return function(t){return new ks(e,t)}}const Ds=i(S(["all"],$s,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),Ls=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],qs=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Us=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Vs=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ne.wE)&&t.classes.includes(e),Bs=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Hs=e=>e({hasMethod:Ls,hasBasicElementProps:qs,primitiveEq:Us,isElementType:Bs,hasClass:Vs}),Ws=Hs((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.Hg||e(r)&&t(void 0,r))),Gs=Hs((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.Om||e(r)&&t("string",r))),zs=Hs((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.kT||e(r)&&t("number",r))),Zs=Hs((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.Os||e(r)&&t("null",r))),Ks=Hs((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.bd||e(r)&&t("boolean",r))),Js=Hs((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ne.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Ys=Hs((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ne.wE&&!(s instanceof ne.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Xs=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ne.Pr||e(s)&&t("member",s)&&r(void 0,s))),Qs=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ne.Ft||e(s)&&t("link",s)&&r(void 0,s))),en=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ne.sI||e(s)&&t("ref",s)&&r(void 0,s))),tn=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xe||e(s)&&t("annotation",s)&&r("array",s))),rn=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof et||e(s)&&t("comment",s)&&r("string",s))),sn=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rt||e(s)&&t("parseResult",s)&&r("array",s))),nn=e=>Bs("object",e)||Bs("array",e)||Bs("boolean",e)||Bs("number",e)||Bs("string",e)||Bs("null",e)||Bs("member",e),on=e=>!!Ws(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),an=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Ys(r)&&Ds(pr(r.toValue()),e)},cn=(e,t)=>0===e.length||Ds(pr(t.classes.toValue()),e);const un=class extends wt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ln=class extends un{};const _n=class extends un{},dn=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ne.KeyValuePair){const{key:t,value:n}=e,o=Ws(t)?dn(t,s):t,i=Ws(n)?dn(n,s):n,a=new ne.KeyValuePair(o,i);return r.set(e,a),a}if(e instanceof ne.ot){const t=e=>dn(e,s),n=[...e].map(t),o=new ne.ot(n);return r.set(e,o),o}if(e instanceof ne.G6){const t=e=>dn(e,s),n=[...e].map(t),o=new ne.G6(n);return r.set(e,o),o}if(Ws(e)){const t=hn(e);if(r.set(e,t),e.content)if(Ws(e.content))t.content=dn(e.content,s);else if(e.content instanceof ne.KeyValuePair)t.content=dn(e.content,s);else if(Array.isArray(e.content)){const r=e=>dn(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new ln("Value provided to cloneDeep function couldn't be cloned",{value:e})};dn.safe=e=>{try{return dn(e)}catch{return e}};const mn=e=>{const{key:t,value:r}=e;return new ne.KeyValuePair(t,r)},pn=e=>{const t=new e.constructor;if(t.element=e.element,on(e)&&Ts(t,e),e.meta.length>0&&(t._meta=dn(e.meta)),e.attributes.length>0&&(t._attributes=dn(e.attributes)),Ws(e.content)){const r=e.content;t.content=pn(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ne.KeyValuePair?t.content=mn(e.content):t.content=e.content;return t},hn=e=>{if(e instanceof ne.KeyValuePair)return mn(e);if(e instanceof ne.ot)return(e=>{const t=[...e];return new ne.ot(t)})(e);if(e instanceof ne.G6)return(e=>{const t=[...e];return new ne.G6(t)})(e);if(Ws(e))return pn(e);throw new _n("Value provided to cloneShallow function couldn't be cloned",{value:e})};hn.safe=e=>{try{return hn(e)}catch{return e}};const fn=e=>Js(e)?"ObjectElement":Ys(e)?"ArrayElement":Xs(e)?"MemberElement":Gs(e)?"StringElement":Ks(e)?"BooleanElement":zs(e)?"NumberElement":Zs(e)?"NullElement":Qs(e)?"LinkElement":en(e)?"RefElement":void 0,gn=e=>Ws(e)?hn(e):Yr(e),yn=ge(fn,at),wn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const bn=(e,t,{keyMap:r=wn,...s}={})=>Qr(e,t,{keyMap:r,nodeTypeGetter:fn,nodePredicate:yn,nodeCloneFn:gn,...s});bn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=wn,...s}={})=>Qr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:fn,nodePredicate:yn,nodeCloneFn:gn,...s});const vn=a((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})F(s,t)&&(n[s]=F(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)F(s,r)&&!F(s,n)&&(n[s]=r[s]);return n}));const En=a((function e(t,r,s){return vn((function(r,s,n){return Se(s)&&Se(n)?e(t,s,n):t(r,s,n)}),r,s)}));const xn=i((function(e,t){return En((function(e,t,r){return r}),e,t)}));const Sn=he(0,-1);const Pn=i((function(e,t){return e.apply(this,t)}));const On=G(Ge);var Mn=o((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():g(e)?[]:l(e)?"":Se(e)?{}:C(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 An=Mn;const Tn=o((function(e){return null!=e&&Q(e,An(e))}));const In=R(1,Ge(Array.isArray)?Array.isArray:ge(J,we("Array")));const jn=Ce(In,Tn);const Rn=R(3,(function(e,t,r){var s=Ms(e,r),n=Ms(Sn(e),r);if(!On(s)&&!jn(e)){var o=ae(s,n);return Pn(o,t)}})),Fn=()=>({predicates:{...e},namespace:it}),Nn={toolboxCreator:Fn,visitorOptions:{nodeTypeGetter:fn,exposeEdits:!0}},Cn=(e,t,r={})=>{if(0===t.length)return e;const s=xn(Nn,r),{toolboxCreator:n,visitorOptions:o}=s,i=n(),a=t.map((e=>e(i))),c=Xr(a.map(m({},"visitor")),{...o});a.forEach(Rn(["pre"],[]));const u=bn(e,c,o);return a.forEach(Rn(["post"],[])),u};Cn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=xn(Nn,r),{toolboxCreator:n,visitorOptions:o}=s,i=n(),a=t.map((e=>e(i))),c=Xr[Symbol.for("nodejs.util.promisify.custom")],u=bn[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(m({},"visitor")),{...o});await Promise.allSettled(a.map(Rn(["pre"],[])));const _=await u(e,l,o);return await Promise.allSettled(a.map(Rn(["post"],[]))),_};const kn=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Ws(e)&&(e.meta.length>0&&(s.meta=dn(e.meta)),e.attributes.length>0&&(s.attributes=dn(e.attributes))),Cn(s,r,{toolboxCreator:Fn,visitorOptions:{nodeTypeGetter:fn}})},$n=e=>(t,r={})=>kn(t,{...r,Type:e});ne.Sh.refract=$n(ne.Sh),ne.wE.refract=$n(ne.wE),ne.Om.refract=$n(ne.Om),ne.bd.refract=$n(ne.bd),ne.Os.refract=$n(ne.Os),ne.kT.refract=$n(ne.kT),ne.Ft.refract=$n(ne.Ft),ne.sI.refract=$n(ne.sI),Xe.refract=$n(Xe),et.refract=$n(et),rt.refract=$n(rt);const Dn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...wn},Ln=e=>Ws(e)?fn(e):Kr(e),qn=e=>Ws(e)||Jr(e)||Array.isArray(e);const Un=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new rt;t._content=e.children.flat(1);const r=t.findElements(nn);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=ot()}comment(e){if(0===this.processedDocumentCount){const t=new et(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(t){const t=new Xe("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 r?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ne.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ne.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 ne.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===Ar.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})`,r=new Xe(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,s){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",o=new Xe(n);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===s.length){const e=new rt;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&Ts(t,e)}};class Vn{cursor;constructor(e){this.cursor=e}stream(){return new Is(this.cursor)}yaml_directive(){return new Is(this.cursor)}tag_directive(){return new Is(this.cursor)}reserved_directive(){return new Is(this.cursor)}document(){return new Is(this.cursor)}block_node(){return new Is(this.cursor).setFieldName(this.cursor)}flow_node(){return new Is(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Is(this.cursor)}block_mapping_pair(){return new Is(this.cursor)}flow_mapping(){return new Is(this.cursor)}flow_pair(){return new Is(this.cursor)}block_sequence(){return new Is(this.cursor)}block_sequence_item(){return new Is(this.cursor)}flow_sequence(){return new Is(this.cursor)}plain_scalar(){return new Is(this.cursor)}single_quote_scalar(){return new Is(this.cursor)}double_quote_scalar(){return new Is(this.cursor)}block_scalar(){return new Is(this.cursor)}ERROR(){return new Is(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Is(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Vn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Vn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Bn=Vn,Hn=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new Bn(r),[n]=Array.from(s),o=new Ns,i=new Un,a=new kr,c=new Gr,u=Qr(n,o,{keyMap:js,nodePredicate:Rs,state:{schema:a,sourceMap:t,referenceManager:c}});return Qr(u.rootNode,i,{keyMap:Dn,nodeTypeGetter:Ln,nodePredicate:qn,state:{sourceMap:t}})};class Wn extends ne.Sh{constructor(e,t,r){super(e,t,r),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 Gn=Wn;class zn extends ne.Om{constructor(e,t,r){super(e,t,r),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Zn=zn;class Kn extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Jn=Kn;class Yn extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Xn=Yn;class Qn extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const eo=Qn;class to extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const ro=to;class so extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get 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 no=so;class oo extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get 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 ne.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const io=oo;class ao extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const co=ao;const uo=class extends pt{};class lo extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const _o=lo;class mo extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const po=mo;class ho extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const fo=ho;class go extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const yo=go;const wo=function(){return!0},bo=e=>"string"==typeof(null==e?void 0:e.type)?e.type:fn(e),vo={EphemeralObject:["content"],EphemeralArray:["content"],...wn},Eo=(e,t,{keyMap:r=vo,...s}={})=>bn(e,t,{keyMap:r,nodeTypeGetter:bo,nodePredicate:wo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Eo[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=vo,...r}={})=>bn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:bo,nodePredicate:wo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const xo=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 So=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 Po{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new So(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 xo(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Gs(e.href)?e.href.toValue():""}}const Oo=e=>Ws(e)?Gs(e)||zs(e)||Ks(e)||Zs(e)?e.toValue():Eo(e,new Po):e,Mo=e=>{const t=e.meta.length>0?dn(e.meta):void 0,r=e.attributes.length>0?dn(e.attributes):void 0;return new e.constructor(void 0,t,r)},Ao=(e,t)=>t.clone&&t.isMergeableElement(e)?Io(Mo(e),e,t):e,To={clone:!0,isMergeableElement:e=>Js(e)||Ys(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Ao(e,r))),objectElementMerge:(e,t,r)=>{const s=Js(e)?Mo(e):Mo(t);return Js(e)&&e.forEach(((e,t,n)=>{const o=hn(n);o.value=Ao(e,r),s.content.push(o)})),t.forEach(((t,n,o)=>{const i=Oo(n);let a;if(Js(e)&&e.hasKey(i)&&r.isMergeableElement(t)){const s=e.get(i);a=hn(o),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Io;const r=t.customMerge(e,t);return"function"==typeof r?r:Io})(n,r)(s,t,r)}else a=hn(o),a.value=Ao(t,r);s.remove(i),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Io=(e,t,r)=>{var s,n,o;const i={...To,...r};i.isMergeableElement=null!==(s=i.isMergeableElement)&&void 0!==s?s:To.isMergeableElement,i.arrayElementMerge=null!==(n=i.arrayElementMerge)&&void 0!==n?n:To.arrayElementMerge,i.objectElementMerge=null!==(o=i.objectElementMerge)&&void 0!==o?o:To.objectElementMerge;const a=Ys(t);if(!(a===Ys(e)))return Ao(t,i);const c=a&&"function"==typeof i.arrayElementMerge?i.arrayElementMerge(e,t,i):i.objectElementMerge(e,t,i);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>dn(e):e.customMetaMerge)(i)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>dn(e):e.customAttributesMerge)(i)(e.attributes,t.attributes),c};Io.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ne.Sh:e.reduce(((e,r)=>Io(e,r,t)),Mo(e[0]))};const jo=Io;const Ro=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=jo(t.meta,e.meta)),on(e)&&Ts(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=jo(t.attributes,e.attributes))}};const Fo=class extends Ro{enter(e){return this.element=dn(e),Zr}},No=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Co=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Co(r,[...t,r])},ko=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Co(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,o=Object.create(n),i=Co(n);for(let t of e){let e=Co(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===i.indexOf(s)&&(No(o,s,["constructor",...r]),i.push(s))}}return o.constructor=t,o},$o=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Do=(e,t)=>{const r=t.map((e=>Co(e)));let s=0,n=!0;for(;n;){n=!1;for(let o=t.length-1;o>=0;o--){const t=r[o][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[o][0]}s++}},Lo=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(Do(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Do(s,e)||void 0!==t[s],get:(r,s)=>(Do(s,e)||t)[s],set(t,r,s){const n=Do(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),qo=null,Uo="copy",Vo="copy",Bo="deep",Ho=new WeakMap,Wo=e=>Ho.get(e),Go=(e,t)=>{var r,s;const n=$o([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),o={};for(let i of n)o[i]=$o([...null!==(r=null==e?void 0:e[i])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[i])&&void 0!==s?s:[]]);return o},zo=(e,t)=>{var r,s,n,o;return{property:Go(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:Go(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(o=null==t?void 0:t.method)&&void 0!==o?o:{})}},Zo=(e,t)=>{var r,s,n,o,i,a;return{class:$o([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:zo(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(o=null==t?void 0:t.static)&&void 0!==o?o:{}),instance:zo(null!==(i=null==e?void 0:e.instance)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ko=new Map,Jo=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...Co(e.prototype).map((e=>e.constructor)),...null!==(t=Wo(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Ko.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Zo(e,t)))},Yo=e=>{let t=Ko.get(e);return t||(t={},Ko.set(e,t)),t};function Xo(...e){var t,r,s;const n=e.map((e=>e.prototype)),o=qo;if(null!==o){const e=n.map((e=>e[o])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[o]:t};n.push(r)}function i(...t){for(const r of e)No(this,new r(...t));null!==o&&"function"==typeof this[o]&&this[o].apply(this,t)}var a,c;i.prototype="copy"===Vo?ko(n,i):(a=n,c=i,Lo([...a,{constructor:c}])),Object.setPrototypeOf(i,"copy"===Uo?ko(e,null,["prototype"]):Lo(e,Function.prototype));let u=i;if("none"!==Bo){const n="deep"===Bo?Jo(...e):((...e)=>{const t=e.map((e=>Yo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Zo(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Qo(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),Qo(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,_;return l=u,_=e,Ho.set(l,_),u}const Qo=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const ei=o((function(e){return R(me(Ue,0,Ve("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const ti=o((function(e){return!Tn(e)}));const ri=i((function(e,t){return e||t}));var si=G(R(1,Ce($e,i((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(ri)(e,t)}))(Le,Ge))));const ni=ei([at,si,ti]);const oi=i((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const ii=class extends Ro{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return oi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ms(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Ge,["visitors",...e],this.specObj)?Ms(["visitors",...e],this.specObj):Ms(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof Fo&&(null==s?void 0:s.constructor)===Fo?dn(t):(bn(t,s,r),s.element)}};const ai=class extends ii{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Gs(s)&&r.includes(Oo(s))&&!this.ignoredFields.includes(Oo(s))){const r=this.toRefractedElement([...t,"fixedFields",Oo(s)],e),o=new ne.Pr(dn(s),r);this.copyMetaAndAttributes(n,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(Oo(s))||this.element.content.push(dn(n))})),this.copyMetaAndAttributes(e,this.element),Zr}};const ci=class{parent;constructor({parent:e}){this.parent=e}},ui=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _o||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),li=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof po||e(s)&&t("JSONReference",s)&&r("object",s))),_i=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fo||e(s)&&t("media",s)&&r("object",s))),di=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yo||e(s)&&t("linkDescription",s)&&r("object",s)));class mi extends(Xo(ai,ci,Fo)){constructor(e){super(e),this.element=new _o,this.specPath=ee(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,ai.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(re(this.parent)&&!Gs(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(ui(this.parent)&&!Gs(e.get("$schema"))){const e=c(Oo(this.parent.meta.get("inheritedDialectIdentifier")),Oo(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?dn(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ne.wE,s=Oo(e.get(t));ni(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const pi=mi,hi=e=>Js(e)&&e.hasKey("$ref");class fi extends(Xo(ii,ci,Fo)){ObjectElement(e){const t=hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Zr}ArrayElement(e){return this.element=new ne.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Zr}}const gi=fi;const yi=class extends Fo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const wi=function(){return!1};const bi=class extends ii{specPath;ignoredFields;fieldPatternPredicate=wi;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Oo(t))&&this.fieldPatternPredicate(Oo(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),o=new ne.Pr(dn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Oo(t))||this.element.content.push(dn(r))})),this.copyMetaAndAttributes(e,this.element),Zr}};const vi=class extends bi{constructor(e){super(e),this.fieldPatternPredicate=ni}};class Ei extends(Xo(vi,ci,Fo)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const xi=Ei;class Si extends(Xo(vi,ci,Fo)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Pi=Si;class Oi extends(Xo(vi,ci,Fo)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Mi=Oi;const Ai=class extends Fo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Ti=class extends Fo{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 Ii extends(Xo(ii,ci,Fo)){constructor(e){super(e),this.element=new ne.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Zr}}const ji=Ii;class Ri extends(Xo(ii,ci,Fo)){constructor(e){super(e),this.element=new ne.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Zr}}const Fi=Ri;class Ni extends(Xo(ii,ci,Fo)){constructor(e){super(e),this.element=new ne.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Zr}}const Ci=Ni;class ki extends(Xo(vi,ci,Fo)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>hi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const $i=ki;class Di extends(Xo(ii,ci,Fo)){constructor(e){super(e),this.element=new ne.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),Zr}}const Li=Di;class qi extends(Xo(ai,Fo)){constructor(e){super(e),this.element=new po,this.specPath=ee(["document","objects","JSONReference"])}ObjectElement(e){const t=ai.prototype.ObjectElement.call(this,e);return Gs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ui=qi;const Vi=class extends Fo{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Bi=a((function(e,t,r){return R(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Hi=o((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Wi=i((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Gi=Wi;const zi=o(Cs);const Zi=G(vs);const Ki=Ce(In,ti);function Ji(e){return function(e){if(Array.isArray(e))return Yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Yi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var Xi=ge(Gi(Hi((function(e,t){return e.length>t.length}))),ss,d("length")),Qi=jt((function(e,t,r){var s=r.apply(void 0,Ji(e));return Zi(s)?zi(s):t}));const ea=Bi(Ki,(function(e){var t=Xi(e);return R(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return me(Qi(r),void 0,e)}))}),te);const ta=class extends ii{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Bi(e,ee(t),te))),r=ea(t)(e);return this.element=this.toRefractedElement(r,e),Zr}};const ra=class extends ta{constructor(e){super(e),this.alternator=[{predicate:hi,specPath:["document","objects","JSONReference"]},{predicate:wo,specPath:["document","objects","JSONSchema"]}]}};class sa extends(Xo(ai,Fo)){constructor(e){super(e),this.element=new fo,this.specPath=ee(["document","objects","Media"])}}const na=sa;class oa extends(Xo(ai,Fo)){constructor(e){super(e),this.element=new yo,this.specPath=ee(["document","objects","LinkDescription"])}}const ia={visitors:{value:Fo,JSONSchemaOrJSONReferenceVisitor:ra,document:{objects:{JSONSchema:{$visitor:pi,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:ra,items:gi,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:yi,properties:xi,additionalProperties:ra,patternProperties:Pi,dependencies:Mi,enum:Ai,type:Ti,allOf:ji,anyOf:Fi,oneOf:Ci,not:ra,definitions:$i,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Li,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Ui,fixedFields:{$ref:Vi}},Media:{$visitor:na,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:oa,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:ra,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:ra}}}}}},aa=e=>{if(Ws(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ca={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...wn},ua={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",_o),t.register("jSONReference",po),t.register("media",fo),t.register("linkDescription",yo),t}},la=()=>{const e=ot(ua);return{predicates:{...t,isStringElement:Gs},namespace:e}},_a=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=ia}={})=>{const n=(0,ne.e)(e),o=As(s),i=new(Ms(t,o))({specObj:o});return bn(n,i),Cn(i.element,r,{toolboxCreator:la,visitorOptions:{keyMap:ca,nodeTypeGetter:aa}})},da=e=>(t,r={})=>_a(t,{specPath:e,...r});_o.refract=da(["visitors","document","objects","JSONSchema","$visitor"]),po.refract=da(["visitors","document","objects","JSONReference","$visitor"]),fo.refract=da(["visitors","document","objects","Media","$visitor"]),yo.refract=da(["visitors","document","objects","LinkDescription","$visitor"]);const ma=class extends _o{constructor(e,t,r){super(e,t,r),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new uo("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new uo("idProp setter in Parameter class is not not supported.")}get $schema(){throw new uo("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new uo("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new uo("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new uo("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 uo("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new uo("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new uo("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new uo("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 uo("properties getter in Parameter class is not not supported.")}set properties(e){throw new uo("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new uo("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new uo("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new uo("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new uo("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new uo("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new uo("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 uo("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new uo("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new uo("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new uo("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new uo("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new uo("oneOf setter in Parameter class is not not supported.")}get not(){throw new uo("not getter in Parameter class is not not supported.")}set not(e){throw new uo("not setter in Parameter class is not not supported.")}get definitions(){throw new uo("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new uo("definitions setter in Parameter class is not not supported.")}get title(){throw new uo("title getter in Parameter class is not not supported.")}set title(e){throw new uo("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 uo("base getter in Parameter class is not not supported.")}set base(e){throw new uo("base setter in Parameter class is not not supported.")}get links(){throw new uo("links getter in Parameter class is not not supported.")}set links(e){throw new uo("links setter in Parameter class is not not supported.")}get media(){throw new uo("media getter in Parameter class is not not supported.")}set media(e){throw new uo("media setter in Parameter class is not not supported.")}get readOnly(){throw new uo("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new uo("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 pa=class extends _o{constructor(e,t,r){super(e,t,r),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new uo("idProp getter in Items class is not not supported.")}set idProp(e){throw new uo("idProp setter in Items class is not not supported.")}get $schema(){throw new uo("$schema getter in Items class is not not supported.")}set $schema(e){throw new uo("$schema setter in Items class is not not supported.")}get additionalItems(){throw new uo("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new uo("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 uo("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new uo("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new uo("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new uo("minProperties setter in Items class is not not supported.")}get required(){throw new uo("required getter in Items class is not not supported.")}set required(e){throw new uo("required setter in Items class is not not supported.")}get properties(){throw new uo("properties getter in Items class is not not supported.")}set properties(e){throw new uo("properties setter in Items class is not not supported.")}get additionalProperties(){throw new uo("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new uo("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new uo("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new uo("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new uo("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new uo("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 uo("allOf getter in Items class is not not supported.")}set allOf(e){throw new uo("allOf setter in Items class is not not supported.")}get anyOf(){throw new uo("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new uo("anyOf setter in Items class is not not supported.")}get oneOf(){throw new uo("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new uo("oneOf setter in Items class is not not supported.")}get not(){throw new uo("not getter in Items class is not not supported.")}set not(e){throw new uo("not setter in Items class is not not supported.")}get definitions(){throw new uo("definitions getter in Items class is not not supported.")}set definitions(e){throw new uo("definitions setter in Items class is not not supported.")}get title(){throw new uo("title getter in Items class is not not supported.")}set title(e){throw new uo("title setter in Items class is not not supported.")}get description(){throw new uo("description getter in Items class is not not supported.")}set description(e){throw new uo("description setter in Items class is not not supported.")}get base(){throw new uo("base getter in Items class is not not supported.")}set base(e){throw new uo("base setter in Items class is not not supported.")}get links(){throw new uo("links getter in Items class is not not supported.")}set links(e){throw new uo("links setter in Items class is not not supported.")}get media(){throw new uo("media getter in Items class is not not supported.")}set media(e){throw new uo("media setter in Items class is not not supported.")}get readOnly(){throw new uo("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new uo("readOnly setter in Items class is not not supported.")}};class ha extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const fa=ha;class ga extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get 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 ya=ga;class wa extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="headers"}}const ba=wa;class va extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="example"}}const Ea=va;const xa=class extends _o{constructor(e,t,r){super(e,t,r),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new uo("idProp getter in Header class is not not supported.")}set idProp(e){throw new uo("idProp setter in Header class is not not supported.")}get $schema(){throw new uo("$schema getter in Header class is not not supported.")}set $schema(e){throw new uo("$schema setter in Header class is not not supported.")}get additionalItems(){throw new uo("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new uo("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 uo("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new uo("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new uo("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new uo("minProperties setter in Header class is not not supported.")}get required(){throw new uo("required getter in Header class is not not supported.")}set required(e){throw new uo("required setter in Header class is not not supported.")}get properties(){throw new uo("properties getter in Header class is not not supported.")}set properties(e){throw new uo("properties setter in Header class is not not supported.")}get additionalProperties(){throw new uo("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new uo("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new uo("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new uo("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new uo("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new uo("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 uo("allOf getter in Header class is not not supported.")}set allOf(e){throw new uo("allOf setter in Header class is not not supported.")}get anyOf(){throw new uo("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new uo("anyOf setter in Header class is not not supported.")}get oneOf(){throw new uo("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new uo("oneOf setter in Header class is not not supported.")}get not(){throw new uo("not getter in Header class is not not supported.")}set not(e){throw new uo("not setter in Header class is not not supported.")}get definitions(){throw new uo("definitions getter in Header class is not not supported.")}set definitions(e){throw new uo("definitions setter in Header class is not not supported.")}get title(){throw new uo("title getter in Header class is not not supported.")}set title(e){throw new uo("title setter in Header class is not not supported.")}get base(){throw new uo("base getter in Header class is not not supported.")}set base(e){throw new uo("base setter in Header class is not not supported.")}get links(){throw new uo("links getter in Header class is not not supported.")}set links(e){throw new uo("links setter in Header class is not not supported.")}get media(){throw new uo("media getter in Header class is not not supported.")}set media(e){throw new uo("media setter in Header class is not not supported.")}get readOnly(){throw new uo("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new uo("readOnly setter in Header class is not not supported.")}};class Sa extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Pa=Sa;class Oa extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ma=Oa;const Aa=class extends _o{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new uo("idProp getter in Schema class is not not supported.")}set idProp(e){throw new uo("idProp setter in Schema class is not not supported.")}get $schema(){throw new uo("$schema getter in Schema class is not not supported.")}set $schema(e){throw new uo("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new uo("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new uo("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new uo("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new uo("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new uo("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new uo("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new uo("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new uo("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new uo("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new uo("oneOf setter in Schema class is not not supported.")}get not(){throw new uo("not getter in Schema class is not not supported.")}set not(e){throw new uo("not setter in Schema class is not not supported.")}get definitions(){throw new uo("definitions getter in Schema class is not not supported.")}set definitions(e){throw new uo("definitions setter in Schema class is not not supported.")}get base(){throw new uo("base getter in Schema class is not not supported.")}set base(e){throw new uo("base setter in Schema class is not not supported.")}get links(){throw new uo("links getter in Schema class is not not supported.")}set links(e){throw new uo("links setter in Schema class is not not supported.")}get media(){throw new uo("media getter in Schema class is not not supported.")}set media(e){throw new uo("media setter in Schema class is not not supported.")}};class Ta extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Ia=Ta;class ja extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="definitions"}}const Ra=ja;class Fa extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="parametersDefinitions"}}const Na=Fa;class Ca extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="responsesDefinitions"}}const ka=Ca;class $a extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="securityDefinitions"}}const Da=$a;class La extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get 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=La;class Ua extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="scopes"}}const Va=Ua;class Ba extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Ha=Ba;const Wa=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=jo(t.meta,e.meta)),on(e)&&Ts(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=jo(t.attributes,e.attributes))}};const Ga=class extends Wa{enter(e){return this.element=dn(e),Zr}};const za=class extends Wa{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return oi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ms(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Ge,["visitors",...e],this.specObj)?Ms(["visitors",...e],this.specObj):Ms(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof Ga&&(null==s?void 0:s.constructor)===Ga?dn(t):(bn(t,s,r),s.element)}};var Za=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Cs(r):r},e}();function Ka(e){return function(t){return new Za(e,t)}}const Ja=i(S(["take"],Ka,(function(e,t){return he(0,e<0?1/0:e,t)})));const Ya=i((function(e,t){return Q(Ja(e.length,t),e)})),Xa=e=>Gs(e.key)&&Ya("x-",Oo(e.key)),Qa=e=>Js(e)&&e.hasKey("$ref");const ec=class extends za{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Xa;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Gs(s)&&r.includes(Oo(s))&&!this.ignoredFields.includes(Oo(s))){const r=this.toRefractedElement([...t,"fixedFields",Oo(s)],e),o=new ne.Pr(dn(s),r);this.copyMetaAndAttributes(n,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(Oo(s))||this.element.content.push(dn(n))})),this.copyMetaAndAttributes(e,this.element),Zr}};class tc extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new Gn,this.specPath=ee(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const rc=tc;class sc extends(Xo(za,Ga)){StringElement(e){const t=new Zn(Oo(e));return this.copyMetaAndAttributes(e,t),this.element=t,Zr}}const nc=sc;const oc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const ic=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};class ac extends ne.wE{static primaryClass="swagger-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(ac.primaryClass)}}const cc=ac;const uc=class extends Ga{constructor(e){super(e),this.element=new cc}ArrayElement(e){return this.element=this.element.concat(dn(e)),Zr}};class lc extends ne.wE{static primaryClass="swagger-consumes";constructor(e,t,r){super(e,t,r),this.classes.push(lc.primaryClass)}}const _c=lc;const dc=class extends Ga{constructor(e){super(e),this.element=new _c}ArrayElement(e){return this.element=this.element.concat(dn(e)),Zr}};class mc extends ne.wE{static primaryClass="swagger-produces";constructor(e,t,r){super(e,t,r),this.classes.push(mc.primaryClass)}}const pc=mc;const hc=class extends Ga{constructor(e){super(e),this.element=new pc}ArrayElement(e){return this.element=this.element.concat(dn(e)),Zr}};class fc extends ne.wE{static primaryClass="swagger-security";constructor(e,t,r){super(e,t,r),this.classes.push(fc.primaryClass),this.classes.push("security")}}const gc=fc;class yc extends(Xo(za,Ga)){constructor(e){super(e),this.element=new gc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Zr}}const wc=yc;class bc extends ne.wE{static primaryClass="swagger-tags";constructor(e,t,r){super(e,t,r),this.classes.push(bc.primaryClass)}}const vc=bc;class Ec extends(Xo(za,Ga)){constructor(e){super(e),this.element=new vc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Zr}}const xc=Ec;class Sc extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new Jn,this.specPath=ee(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Pc=Sc;const Oc=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Mc extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new Xn,this.specPath=ee(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ac=Mc;class Tc extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new eo,this.specPath=ee(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Ic=Tc;const jc=class extends za{specPath;ignoredFields;fieldPatternPredicate=wi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Xa;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...o}){super({...o}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(Oo(t))&&this.fieldPatternPredicate(Oo(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),o=new ne.Pr(dn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Oo(t))||this.element.content.push(dn(r))})),this.copyMetaAndAttributes(e,this.element),Zr}},Rc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gn||e(s)&&t("swagger",s)&&r("object",s))),Fc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zn||e(s)&&t("swaggerVersion",s)&&r("string",s))),Nc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jn||e(s)&&t("info",s)&&r("object",s))),Cc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eo||e(s)&&t("license",s)&&r("object",s))),kc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xn||e(s)&&t("contact",s)&&r("object",s))),$c=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ro||e(s)&&t("paths",s)&&r("object",s))),Dc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof no||e(s)&&t("pathItem",s)&&r("object",s))),Lc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof io||e(s)&&t("operation",s)&&r("object",s))),qc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof co||e(s)&&t("externalDocumentation",s)&&r("object",s))),Uc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ma||e(s)&&t("parameter",s)&&r("object",s))),Vc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pa||e(s)&&t("items",s)&&r("object",s))),Bc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fa||e(s)&&t("responses",s)&&r("object",s))),Hc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ya||e(s)&&t("response",s)&&r("object",s))),Wc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ba||e(s)&&t("headers",s)&&r("object",s))),Gc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ea||e(s)&&t("example",s)&&r("object",s))),zc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xa||e(s)&&t("header",s)&&r("object",s))),Zc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pa||e(s)&&t("tag",s)&&r("object",s))),Kc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ma||e(s)&&t("reference",s)&&r("object",s))),Jc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Aa||e(s)&&t("schema",s)&&r("object",s))),Yc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ia||e(s)&&t("xml",s)&&r("object",s))),Xc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ka||e(s)&&t("responsesDefinitions",s)&&r("object",s))),Qc=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Da||e(s)&&t("securityDefinitions",s)&&r("object",s))),eu=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ra||e(s)&&t("definitions",s)&&r("object",s))),tu=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Na||e(s)&&t("parametersDefinitions",s)&&r("object",s))),ru=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qa||e(s)&&t("securityScheme",s)&&r("object",s))),su=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Va||e(s)&&t("scopes",s)&&r("object",s))),nu=Hs((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ha||e(s)&&t("securityRequirement",s)&&r("object",s)));class ou extends(Xo(jc,Ga)){element;constructor(e){super(e),this.element=new ro,this.specPath=ee(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=wo}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return this.element.filter(Dc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",dn(t))})),t}}const iu=ou;class au extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new no,this.specPath=ee(["document","objects","PathItem"])}ObjectElement(e){const t=ec.prototype.ObjectElement.call(this,e);return this.element.filter(Lc).forEach(((e,t)=>{const r=dn(t);r.content=Oo(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Gs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const cu=au;const uu=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class lu extends ne.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(lu.primaryClass),this.classes.push("parameters")}}const _u=lu;class du extends(Xo(za,Ga)){constructor(e){super(e),this.element=new _u}ArrayElement(e){return e.forEach((e=>{const t=Qa(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Kc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Zr}}const mu=du;class pu extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new io,this.specPath=ee(["document","objects","Operation"])}}const hu=pu;class fu extends ne.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(fu.primaryClass),this.classes.push("tags")}}const gu=fu;const yu=class extends Ga{constructor(e){super(e),this.element=new gu}ArrayElement(e){return this.element=this.element.concat(dn(e)),Zr}};class wu extends ne.wE{static primaryClass="operation-consumes";constructor(e,t,r){super(e,t,r),this.classes.push(wu.primaryClass)}}const bu=wu;const vu=class extends Ga{constructor(e){super(e),this.element=new bu}ArrayElement(e){return this.element=this.element.concat(dn(e)),Zr}};class Eu extends ne.wE{static primaryClass="operation-produces";constructor(e,t,r){super(e,t,r),this.classes.push(Eu.primaryClass)}}const xu=Eu;const Su=class extends Ga{constructor(e){super(e),this.element=new xu}ArrayElement(e){return this.element=this.element.concat(dn(e)),Zr}};class Pu extends ne.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Pu.primaryClass),this.classes.push("parameters")}}const Ou=Pu;class Mu extends(Xo(za,Ga)){constructor(e){super(e),this.element=new Ou}ArrayElement(e){return e.forEach((e=>{const t=Qa(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Kc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Zr}}const Au=Mu;class Tu extends ne.wE{static primaryClass="operation-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Tu.primaryClass)}}const Iu=Tu;const ju=class extends Ga{constructor(e){super(e),this.element=new Iu}ArrayElement(e){return this.element=this.element.concat(dn(e)),Zr}};class Ru extends ne.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Ru.primaryClass),this.classes.push("security")}}const Fu=Ru;class Nu extends(Xo(za,Ga)){constructor(e){super(e),this.element=new Fu}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Zr}}const Cu=Nu;class ku extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new co,this.specPath=ee(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const $u=ku;class Du extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new ma,this.specPath=ee(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Lu=Du;class qu extends(Xo(ec,Ga)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new pa,this.specPath=ee(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const Uu=qu;const Vu=i((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ie(e));var r;return function(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":""))}(e).test(t)}));function Bu(e){return"[object Number]"===Object.prototype.toString.call(e)}const Hu=i((function(e,t){if(!Bu(e)||!Bu(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));function Wu(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var o=e?1:0;return!!r._items[n][o]||(t&&(r._items[n][o]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const Gu=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Wu(e,!0,this)},e.prototype.has=function(e){return Wu(e,!1,this)},e}();const zu=i((function(e,t){for(var r=[],s=0,n=e.length,o=t.length,i=new Gu,a=0;a<o;a+=1)i.add(t[a]);for(;s<n;)i.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));class Zu extends(Xo(ec,jc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...zu(e.keys(),t)],ec.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,jc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Zr}}const Ku=Zu;class Ju extends(Xo(Ku,Ga)){constructor(e){super(e),this.element=new fa,this.specPathFixedFields=ee(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Qa(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=Vu(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Hu(100,600).join("|")})$`))}ObjectElement(e){const t=Ku.prototype.ObjectElement.call(this,e);return this.element.filter(Kc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Hc).forEach(((e,t)=>{const r=dn(t);this.fieldPatternPredicate(Oo(r))&&e.setMetaProperty("http-status-code",r)})),t}}const Yu=Ju;const Xu=class extends za{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Bi(e,ee(t),te))),r=ea(t)(e);return this.element=this.toRefractedElement(r,e),Zr}};class Qu extends(Xo(Xu,Ga)){constructor(e){super(e),this.alternator=[{predicate:Qa,specPath:["document","objects","Reference"]},{predicate:wo,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Xu.prototype.enter.call(this,e);return Kc(this.element)?this.element.setMetaProperty("referenced-element","response"):Hc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const el=Qu;class tl extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new ya,this.specPath=ee(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const rl=tl;const sl=class extends jc{constructor(e){super(e),this.fieldPatternPredicate=ni}};class nl extends(Xo(sl,Ga)){constructor(e){super(e),this.element=new ba,this.specPath=ee(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const ol=nl;class il extends(Xo(sl,Ga)){constructor(e){super(e),this.element=new Ea,this.specPath=ee(["value"]),this.canSupportSpecificationExtensions=!1}}const al=il;class cl extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new xa,this.specPath=ee(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const ul=cl;class ll extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new Pa,this.specPath=ee(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const _l=ll;class dl extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new Ma,this.specPath=ee(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=ec.prototype.ObjectElement.call(this,e);return Gs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ml=dl;const pl=class extends Ga{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class hl extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new Aa,this.specPath=ee(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const fl=hl,gl=ia.visitors.document.objects.JSONSchema.fixedFields.allOf;const yl=class extends gl{ArrayElement(e){const t=gl.prototype.ArrayElement.call(this,e);return this.element.filter(li).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},wl=ia.visitors.document.objects.JSONSchema.fixedFields.items;const bl=class extends wl{ObjectElement(e){const t=wl.prototype.ObjectElement.call(this,e);return li(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=wl.prototype.ArrayElement.call(this,e);return this.element.filter(li).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},vl=ia.visitors.document.objects.JSONSchema.fixedFields.properties;const El=class extends vl{ObjectElement(e){const t=vl.prototype.ObjectElement.call(this,e);return this.element.filter(li).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},xl=ia.visitors.JSONSchemaOrJSONReferenceVisitor;const Sl=class extends xl{ObjectElement(e){const t=xl.prototype.enter.call(this,e);return li(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Pl extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new Ia,this.specPath=ee(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Ol=Pl;class Ml extends(Xo(sl,Ga)){constructor(e){super(e),this.element=new Ra,this.specPath=e=>hi(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=sl.prototype.ObjectElement.call(this,e);return this.element.filter(li).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Al=Ml;class Tl extends(Xo(sl,Ga)){constructor(e){super(e),this.element=new ka,this.specPath=ee(["document","objects","Response"])}}const Il=Tl;class jl extends(Xo(sl,Ga)){constructor(e){super(e),this.element=new Na,this.specPath=ee(["document","objects","Parameter"])}}const Rl=jl;class Fl extends(Xo(sl,Ga)){element;constructor(e){super(e),this.element=new Da,this.specPath=ee(["document","objects","SecurityScheme"])}}const Nl=Fl;class Cl extends(Xo(ec,Ga)){constructor(e){super(e),this.element=new qa,this.specPath=ee(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const kl=Cl;class $l extends(Xo(sl,Ga)){constructor(e){super(e),this.element=new Va,this.specPath=ee(["value"]),this.canSupportSpecificationExtensions=!0}}const Dl=$l;class Ll extends(Xo(sl,Ga)){constructor(e){super(e),this.element=new Ha,this.specPath=ee(["value"])}}const ql=Ll;const Ul=class extends za{MemberElement(e){return this.element=dn(e),this.element.classes.push("specification-extension"),Zr}},{fixedFields:Vl}=ia.visitors.document.objects.JSONSchema,Bl={visitors:{value:Ga,document:{objects:{JSONReference:ia.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:rc,fixedFields:{swagger:nc,info:{$ref:"#/visitors/document/objects/Info"},host:oc,basePath:ic,schemes:uc,consumes:dc,produces:hc,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:wc,tags:xc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Pc,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:Oc}},Contact:{$visitor:Ac,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Ic,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:iu},PathItem:{$visitor:cu,fixedFields:{$ref:uu,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:mu}},Operation:{$visitor:hu,fixedFields:{tags:yu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:vu,produces:Su,parameters:Au,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:ju,deprecated:{$ref:"#/visitors/value"},security:Cu}},ExternalDocumentation:{$visitor:$u,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Lu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:Vl.description,required:Vl.required,schema:Sl,type:Vl.type,format:Vl.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Vl.default,maximum:Vl.maximum,exclusiveMaximum:Vl.exclusiveMaximum,minimum:Vl.minimum,exclusiveMinimum:Vl.exclusiveMinimum,maxLength:Vl.maxLength,minLength:Vl.minLength,pattern:Vl.pattern,maxItems:Vl.maxItems,minItems:Vl.minItems,uniqueItems:Vl.uniqueItems,enum:Vl.enum,multipleOf:Vl.multipleOf}},Items:{$visitor:Uu,fixedFields:{type:Vl.type,format:Vl.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Vl.default,maximum:Vl.maximum,exclusiveMaximum:Vl.exclusiveMaximum,minimum:Vl.minimum,exclusiveMinimum:Vl.exclusiveMinimum,maxLength:Vl.maxLength,minLength:Vl.minLength,pattern:Vl.pattern,maxItems:Vl.maxItems,minItems:Vl.minItems,uniqueItems:Vl.uniqueItems,enum:Vl.enum,multipleOf:Vl.multipleOf}},Responses:{$visitor:Yu,fixedFields:{default:el}},Response:{$visitor:rl,fixedFields:{description:{$ref:"#/visitors/value"},schema:Sl,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:ol},Example:{$visitor:al},Header:{$visitor:ul,fixedFields:{description:Vl.description,type:Vl.type,format:Vl.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Vl.default,maximum:Vl.maximum,exclusiveMaximum:Vl.exclusiveMaximum,minimum:Vl.minimum,exclusiveMinimum:Vl.exclusiveMinimum,maxLength:Vl.maxLength,minLength:Vl.minLength,pattern:Vl.pattern,maxItems:Vl.maxItems,minItems:Vl.minItems,uniqueItems:Vl.uniqueItems,enum:Vl.enum,multipleOf:Vl.multipleOf}},Tag:{$visitor:_l,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ml,fixedFields:{$ref:pl}},Schema:{$visitor:fl,fixedFields:{format:Vl.format,title:Vl.title,description:Vl.description,default:Vl.default,multipleOf:Vl.multipleOf,maximum:Vl.maximum,exclusiveMaximum:Vl.exclusiveMaximum,minimum:Vl.minimum,exclusiveMinimum:Vl.exclusiveMinimum,maxLength:Vl.maxLength,minLength:Vl.minLength,pattern:Vl.pattern,maxItems:Vl.maxItems,minItems:Vl.minItems,uniqueItems:Vl.uniqueItems,maxProperties:Vl.maxProperties,minProperties:Vl.minProperties,required:Vl.required,enum:Vl.enum,type:Vl.type,readOnly:Vl.readOnly,items:bl,allOf:yl,properties:El,additionalProperties:Sl,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Ol,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Al},ParametersDefinitions:{$visitor:Rl},ResponsesDefinitions:{$visitor:Il},SecurityDefinitions:{$visitor:Nl},SecurityScheme:{$visitor:kl,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:Dl},SecurityRequirement:{$visitor:ql}},extension:{$visitor:Ul}}}},Hl=e=>{if(Ws(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Wl={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"],...wn},Gl={namespace:e=>{const{base:t}=e;return t.register("swagger",Gn),t.register("swaggerVersion",Zn),t.register("info",Jn),t.register("contact",Xn),t.register("license",eo),t.register("paths",ro),t.register("pathItem",no),t.register("operation",io),t.register("externalDocumentation",co),t.register("parameter",ma),t.register("items",pa),t.register("responses",fa),t.register("response",ya),t.register("headers",ba),t.register("example",Ea),t.register("header",xa),t.register("tag",Pa),t.register("reference",Ma),t.register("schema",Aa),t.register("xml",Ia),t.register("definitions",Ra),t.register("parametersDefinitions",Na),t.register("responsesDefinitions",ka),t.register("securityDefinitions",Da),t.register("securityScheme",qa),t.register("scopes",Va),t.register("securityRequirement",Ha),t}},zl=()=>{const e=ot(Gl);return{predicates:{...r,...s,isStringElement:Gs},namespace:e}},Zl=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:r=[]}={})=>{const s=(0,ne.e)(e),n=As(Bl),o=new(Ms(t,n))({specObj:n});return bn(s,o),Cn(o.element,r,{toolboxCreator:zl,visitorOptions:{keyMap:Wl,nodeTypeGetter:Hl}})},Kl=e=>(t,r={})=>Zl(t,{specPath:e,...r});Gn.refract=Kl(["visitors","document","objects","Swagger","$visitor"]),Zn.refract=Kl(["visitors","document","objects","SwaggerVersion","$visitor"]),Jn.refract=Kl(["visitors","document","objects","Info","$visitor"]),Xn.refract=Kl(["visitors","document","objects","Contact","$visitor"]),eo.refract=Kl(["visitors","document","objects","License","$visitor"]),ro.refract=Kl(["visitors","document","objects","Paths","$visitor"]),no.refract=Kl(["visitors","document","objects","PathItem","$visitor"]),io.refract=Kl(["visitors","document","objects","Operation","$visitor"]),co.refract=Kl(["visitors","document","objects","ExternalDocumentation","$visitor"]),ma.refract=Kl(["visitors","document","objects","Parameter","$visitor"]),pa.refract=Kl(["visitors","document","objects","Items","$visitor"]),fa.refract=Kl(["visitors","document","objects","Responses","$visitor"]),ya.refract=Kl(["visitors","document","objects","Response","$visitor"]),ba.refract=Kl(["visitors","document","objects","Headers","$visitor"]),Ea.refract=Kl(["visitors","document","objects","Example","$visitor"]),xa.refract=Kl(["visitors","document","objects","Header","$visitor"]),Pa.refract=Kl(["visitors","document","objects","Tag","$visitor"]),Ma.refract=Kl(["visitors","document","objects","Reference","$visitor"]),Aa.refract=Kl(["visitors","document","objects","Schema","$visitor"]),Ia.refract=Kl(["visitors","document","objects","XML","$visitor"]),Ra.refract=Kl(["visitors","document","objects","Definitions","$visitor"]),Na.refract=Kl(["visitors","document","objects","ParametersDefinitions","$visitor"]),ka.refract=Kl(["visitors","document","objects","ResponsesDefinitions","$visitor"]),Da.refract=Kl(["visitors","document","objects","SecurityDefinitions","$visitor"]),qa.refract=Kl(["visitors","document","objects","SecurityScheme","$visitor"]),Va.refract=Kl(["visitors","document","objects","Scopes","$visitor"]),Ha.refract=Kl(["visitors","document","objects","SecurityRequirement","$visitor"]);const Jl=o((function(e){return _(-1,e)}));const Yl=class extends uo{};const Xl=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Yl("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Yl("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Yl("latest method in MediaTypes class is not yet implemented.")}};class Ql extends Xl{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Jl(this.filterByFormat(e))}}const e_=new Ql("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),t_=new Ql(...e_.filterByFormat("generic"),...e_.filterByFormat("yaml")),r_=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,s_=async e=>r_.test(e)&&await(async e=>{try{return!(await yt(e)).rootNode.isError}catch{return!1}})(e),n_=async(e,t={})=>{const r=m({},"refractorOpts",t),s=h(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const r=await yt(e);return Hn(r,{sourceMap:t})})(e,s),{result:o}=n;if(se(o)){const e=Gn.refract(o,r);e.classes.push("result"),n.replaceResult(e)}return n},o_=ot(Gl)})(),__webpack_exports__})()));
1
+ !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 __webpack_modules__={85:(e,t,r)=>{"use strict";r(9828);var s=r(1100),n=r(8900),o=r(1811),i=r(6625);for(var a in s)o(n[a],a),i[a]=i.Array},88:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var s=r(9098),n=r(4713),o=r(4871),i=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),_=r(1811),d=r(3999),m=r(3508),p=r(8655),h=r(6625),f=r(2621),g=i.PROPER,y=i.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,v=p("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,r,i,p,f,O){c(r,t,i);var M,A,T,I=function(e){if(e===p&&C)return C;if(!b&&e&&e in F)return F[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",R=!1,F=e.prototype,N=F[v]||F["@@iterator"]||p&&F[p],C=!b&&N||I(p),k="Array"===t&&F.entries||N;if(k&&(M=u(k.call(new e)))!==Object.prototype&&M.next&&(o||u(M)===w||(l?l(M,w):a(M[v])||m(M,v,P)),_(M,j,!0,!0),o&&(h[j]=P)),g&&p===x&&N&&N.name!==x&&(!o&&y?d(F,"name",x):(R=!0,C=function(){return n(N,this)})),p)if(A={values:I(x),keys:f?C:I(E),entries:I(S)},O)for(T in A)(b||R||!(T in F))&&m(F,T,A[T]);else s({target:t,proto:!0,forced:b||R},A);return o&&!O||F[v]===C||m(F,v,C,{name:p}),h[t]=C,A}},195:(e,t,r)=>{var s=r(4882),n=r(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var s=r(4572),n=r(4713),o=r(7235),i=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),_=r(967),d=r(1743),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},h=p.prototype;e.exports=function(e,t,r){var f,g,y,w,b,v,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),M=!(!r||!r.INTERRUPTED),A=s(t,x),T=function(e){return f&&d(f,"normal",e),new p(!0,e)},I=function(e){return S?(o(e),M?A(e[0],e[1],T):A(e[0],e[1])):M?A(e,T):A(e)};if(P)f=e.iterator;else if(O)f=e;else{if(!(g=_(e)))throw new m(i(e)+" is not iterable");if(a(g)){for(y=0,w=c(e);w>y;y++)if((b=I(e[y]))&&u(h,b))return b;return new p(!1)}f=l(e,g)}for(v=P?e.next:f.next;!(E=n(v,f)).done;){try{b=I(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&u(h,b))return b}return new p(!1)}},239:(e,t,r)=>{"use strict";r(5442);var s=r(6656);r(85),e.exports=s},262:(e,t,r)=>{"use strict";var s=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},353:(e,t,r)=>{var s=r(1340),n=r(3934),o=r(8861),i=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),_="[object Arguments]",d="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,f,g){var y=c(e),w=c(t),b=y?d:a(e),v=w?d:a(t),E=(b=b==_?m:b)==m,x=(v=v==_?m:v)==m,S=b==v;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new s),y||l(e)?n(e,t,r,h,f,g):o(e,t,b,r,h,f,g);if(!(1&r)){var P=E&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(P||O){var M=P?e.value():e,A=O?t.value():t;return g||(g=new s),f(M,A,r,h,g)}}return!!S&&(g||(g=new s),i(e,t,r,h,f,g))}},358:(e,t,r)=>{var s=r(6137),n=r(3283),o=r(3142),i=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),l=!r&&n(e),_=!r&&!l&&i(e),d=!r&&!l&&!_&&c(e),m=r||l||_||d,p=m?s(e.length,String):[],h=p.length;for(var f in e)!t&&!u.call(e,f)||m&&("length"==f||_&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,h))||p.push(f);return p}},393:(e,t,r)=>{var s=r(8244),n=r(7979),o=r(1211);e.exports=function(e){return s(e,o,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 r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,r)=>{"use strict";var s=r(9098),n=r(8900),o=r(7013),i=r(6453),a="WebAssembly",c=n[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=i(e,t,u),s({global:!0,constructor:!0,arity:1,forced:u},r)},_=function(e,t){if(c&&c[e]){var r={};r[e]=i(a+"."+e,t,u),s({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return o(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),l("URIError",(function(e){return function(t){return o(e,this,arguments)}})),_("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),_("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),_("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var s=r(4713),n=r(262),o=r(6281),i=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!n(e)||o(e))return e;var r,c=i(e,l);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var s=r(7379),n=r(5387),o=r(547),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&n(e.length)&&!!i[s(e)]}},701:(e,t,r)=>{"use strict";var s=r(6100),n=r(2137),o=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(n(e),t)}},814:(e,t,r)=>{"use strict";var s=r(2769),n=r(459),o=TypeError;e.exports=function(e){if(s(e))return e;throw new o(n(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var s=r(8407),n=r(4674),o=r(3057),i=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!o(e))return n(e,a)||n(e,"@@iterator")||i[s(e)]}},986:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},1003:(e,t,r)=>{"use strict";var s=r(8099),n=r(8900),o=r(2769),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(s[e])||i(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},1005:(e,t,r)=>{"use strict";var s=r(3273),n=r(4574),o=r(8130),i=function(e){return function(t,r,i){var a=s(t),c=o(a);if(0===c)return!e&&-1;var u,l=n(i,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},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}},1112:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var s=r(8407),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,r)=>{var s=r(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,i,a){var c=1&r,u=s(e),l=u.length;if(l!=s(t).length&&!c)return!1;for(var _=l;_--;){var d=u[_];if(!(c?d in t:n.call(t,d)))return!1}var m=a.get(e),p=a.get(t);if(m&&p)return m==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var f=c;++_<l;){var g=e[d=u[_]],y=t[d];if(o)var w=c?o(y,g,d,t,e,a):o(g,y,d,e,t,a);if(!(void 0===w?g===y||i(g,y,r,o,a):w)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(h=!1)}return a.delete(e),a.delete(t),h}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var s=r(358),n=r(195),o=r(6529);e.exports=function(e){return o(e)?s(e):n(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var s=r(6100),n=0,o=Math.random(),i=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+o,36)}},1314:(e,t,r)=>{"use strict";var s=r(8900),n=r(2769),o=s.WeakMap;e.exports=n(o)&&/native code/.test(String(o))},1330:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var s=r(1386),n=r(4103),o=r(1779),i=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new s(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,e.exports=u},1386:(e,t,r)=>{var s=r(2393),n=r(2049),o=r(7144),i=r(7452),a=r(3964);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},1395:(e,t,r)=>{"use strict";var s=r(6100),n=r(1203),o=r(9932),i=Object,a=s("".split);e.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):i(e)}:i},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)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,r)=>{"use strict";var s=r(4713),n=r(814),o=r(7235),i=r(459),a=r(967),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return o(s(r,e));throw new c(i(e)+" is not iterable")}},1623:(e,t,r)=>{var s=r(8942).Uint8Array;e.exports=s},1743:(e,t,r)=>{"use strict";var s=r(4713),n=r(7235),o=r(4674);e.exports=function(e,t,r){var i,a;n(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=s(i,e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return n(i),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var s=r(4904),n=r(9989).f,o=r(3999),i=r(701),a=r(9559),c=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(i(l,c)||n(l,c,{configurable:!0,value:t}),u&&!s&&o(l,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var s=r(2621).IteratorPrototype,n=r(5780),o=r(480),i=r(1811),a=r(6625),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=n(s,{next:o(+!u,r)}),i(e,l,!1,!0),a[l]=c,e}},1950:(e,t,r)=>{var s=r(8942)["__core-js_shared__"];e.exports=s},1966:(e,t,r)=>{"use strict";var s=r(2937),n=String,o=TypeError;e.exports=function(e){if(s(e))return e;throw new o("Can't set "+n(e)+" as a prototype")}},2049:(e,t,r)=>{var s=r(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var s=r(5426),n=Object;e.exports=function(e){return n(s(e))}},2306:(e,t,r)=>{e=r.nmd(e);var s=r(4967),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,i=o&&o.exports===n&&s.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},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},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},2621:(e,t,r)=>{"use strict";var s,n,o,i=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),_=r(3508),d=r(8655),m=r(4871),p=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(n=l(l(o)))!==Object.prototype&&(s=n):h=!0),!c(s)||i((function(){var e={};return s[p].call(e)!==e}))?s={}:m&&(s=u(s)),a(s[p])||_(s,p,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:h}},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}},2871:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var s=r(8655),n=r(6625),o=s("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},2937:(e,t,r)=>{"use strict";var s=r(262);e.exports=function(e){return s(e)||null===e}},3004:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,r)=>{"use strict";var s=r(9098),n=r(4317),o=r(3671),i=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),_=r(8148),d=r(4279),m=r(208),p=r(4879),h=r(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var r,s=n(w,this);i?r=i(new f,s?o(this):w):(r=s?this:c(w),u(r,h,"Error")),void 0!==t&&u(r,"message",p(t)),d(r,y,r.stack,1),arguments.length>2&&_(r,arguments[2]);var a=[];return m(e,g,{that:a}),u(r,"errors",a),r};i?i(y,f):a(y,f,{name:!0});var w=y.prototype=c(f.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,r)=>{var s=r(4715)(r(8942),"DataView");e.exports=s},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const s=r(394);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var s=r(8250),n=r(1877),o=r(8006);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=n,i.prototype.has=o,e.exports=i},3273:(e,t,r)=>{"use strict";var s=r(1395),n=r(5426);e.exports=function(e){return s(n(e))}},3283:(e,t,r)=>{var s=r(6027),n=r(547),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,r)=>{var s=r(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3311:(e,t,r)=>{const s=r(1517),n=r(4123);class o extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new o(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=o},3410:(e,t,r)=>{"use strict";var s=r(5024),n=r(701),o=Function.prototype,i=s&&Object.getOwnPropertyDescriptor,a=n(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!s||s&&i(o,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3489:(e,t,r)=>{"use strict";var s=r(1003);e.exports=s("document","documentElement")},3491:(e,t,r)=>{"use strict";var s=r(3574),n=r(262),o=r(5426),i=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return o(r),i(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var s=r(2769),n=r(262),o=r(3491);e.exports=function(e,t,r){var i,a;return o&&s(i=t.constructor)&&i!==r&&n(a=i.prototype)&&a!==r.prototype&&o(e,a),e}},3508:(e,t,r)=>{"use strict";var s=r(3999);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},3531:(e,t,r)=>{"use strict";var s=r(8900).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},3574:(e,t,r)=>{"use strict";var s=r(6100),n=r(814);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var s=r(7379),n=r(1580);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var s=r(701),n=r(2769),o=r(2137),i=r(4275),a=r(2871),c=i("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},3753:(e,t,r)=>{"use strict";var s=r(4871),n=r(8900),o=r(7525),i="__core-js_shared__",a=e.exports=n[i]||o(i,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var s=r(5571).charAt,n=r(1139),o=r(8417),i=r(164),a=r(877),c="String Iterator",u=o.set,l=o.getterFor(c);i(String,"String",(function(e){u(this,{type:c,string:n(e),index:0})}),(function(){var e,t=l(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,s)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?s(e):r(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=()=>{(200==s.status||0==s.status&&s.response)&&r(s.response),t(s.status)},s.onerror=t,s.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,s){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,s):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(s,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,s)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var o="";t<n;){var i=e[t++];if(128&i){var a=63&e[t++];if(192!=(224&i)){var c=63&e[t++];if((i=224==(240&i)?(15&i)<<12|a<<6|c:(7&i)<<18|a<<12|c<<6|63&e[t++])<65536)o+=String.fromCharCode(i);else{var u=i-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&i)<<6|a)}else o+=String.fromCharCode(i)}return o},getDylinkMetadata=e=>{var t=0,r=0;function s(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}function n(){var r=s();return UTF8ArrayToString(e,(t+=r)-r,r)}function o(e,t){if(e)throw new Error(t)}var i="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,i);0===a.length&&(i="dylink",a=WebAssembly.Module.customSections(e,i)),o(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var u=s();r=t+u,i=n()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==i){l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();for(var _=s(),d=0;d<_;++d){var m=n();l.neededDynlibs.push(m)}}else{o("dylink.0"!==i);for(;t<r;){var p=e[t++],h=s();if(1===p)l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();else if(2===p)for(_=s(),d=0;d<_;++d)m=n(),l.neededDynlibs.push(m);else if(3===p)for(var f=s();f--;){var g=n();256&s()&&l.tlsExports.add(g)}else if(4===p)for(f=s();f--;){n(),g=n();1==(3&s())&&l.weakImports.add(g)}else t+=h}}return l};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var s={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=s,null!=t&&(LDSO.loadedLibsByHandle[t]=s),s},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},s=1;s<e.length;++s)r.parameters.push(t[e[s]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),s=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(s.length,t);for(var o=0;o<s.length;++o)t.push(n[s[o]]);"v"==r?t.push(0):t.push(1,n[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var s=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,s),s.push(...r),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(s));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var s=getWasmTableEntry(r);s&&functionsInTableMap.set(s,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var s=getEmptyTableSlot();try{setWasmTableEntry(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(s,n)}return functionsInTableMap.set(e,s),s},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var s=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof s?GOT[r].value=addFunction(s):"number"==typeof s?GOT[r].value=s:err(`unhandled export type for '${r}': ${typeof s}`))}},relocateExports=(e,t,r)=>{var s={};for(var n in e){var o=e[n];"object"==typeof o&&(o=o.value),"number"==typeof o&&(o+=t),s[n]=o}return updateGOT(s,r),s},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var s=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,s]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=s)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=s)}},asyncLoad=(e,t,r,s)=>{var n=s?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,s){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):r&&Object.assign(r,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,s&&(LDSO.loadedLibsByHandle[s]=n),!t.loadAsync||Promise.resolve(!0);function o(){if(s){var r=LE_HEAP_LOAD_U32(4*(s+28>>2)),n=LE_HEAP_LOAD_U32(4*(s+32>>2));if(r&&n){var o=HEAP8.slice(r,r+n);return t.loadAsync?Promise.resolve(o):o}}var i=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(i,e,t)}));if(!readBinary)throw new Error(`${i}: file not found, and synchronous loading of external files is not available`);return readBinary(i)}function i(){return t.loadAsync?o().then((n=>loadWebAssemblyModule(n,t,e,r,s))):loadWebAssemblyModule(o(),t,e,r,s)}function a(t){n.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),n.exports=t}return(n=newDSO(e,s,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?i().then((e=>(a(e),!0))):(a(i()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var s,n,o=1;o<=4;o*=2){var i=t*(1+.2/o);i=Math.min(i,e+100663296);var a=Math.min(r,(s=Math.max(e,i))+((n=65536)-s%n)%n);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,r,s,n){convertI32PairToI53Checked(t,r);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,s)=>{for(var n=0,o=0;o<r;o++){var i=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<a;c++)printChar(e,HEAPU8[i+c]);n+=a}return LE_HEAP_STORE_U32(4*(s>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,s,n){const o=currentParseCallback(t,{row:r,column:s});"string"==typeof o?(setValue(n,o.length,"i32"),stringToUTF16(o,e,10240)):setValue(n,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s<=127?t++:s<=2047?t+=2:s>=55296&&s<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,s)=>{if(!(s>0))return 0;for(var n=r,o=r+s-1,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i);if(a<=127){if(r>=o)break;t[r++]=a}else if(a<=2047){if(r+1>=o)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=o)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=o)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-n},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var s=t,n=(r-=2)<2*e.length?r/2:e.length,o=0;o<n;++o){var i=e.charCodeAt(o);LE_HEAP_STORE_I16(2*(t>>1),i),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-s},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,r,s)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,s),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,s,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,s,n),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,r,s,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,s,n),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,r,s,n,o,i)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,s,n,o,i),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,r,s,n,o,i,a,c,u,l)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,s,n,o,i,a,c,u,l),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,s,n,o,i,a,c,u,l)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,s,n,o,i,a,c,u,l),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,r,s,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,s,n),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,s=stackAlloc(4*(r+1)),n=s;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var o=t(r,s);return exitJS(o,!0),o}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r?.includedRanges){s=r.includedRanges.length,n=C._calloc(s,SIZE_OF_RANGE);let e=n;for(let t=0;t<s;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const o=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!o)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const i=new Tree(INTERNAL,o,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,i}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,s){assertInternal(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return s}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return s}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const o=C._malloc(SIZE_OF_INT*s.length);for(let e=0,t=s.length;e<t;e++)setValue(o+e*SIZE_OF_INT,s[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],o,s.length,t.row,t.column,r.row,r.column);const i=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(i);if(i>0){let e=a;for(let t=0;t<i;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(o),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),s=C._malloc(r+1);stringToUTF8(e,s,r+1);const n=C._ts_language_symbol_for_name(this[0],s,r,t);return C._free(s),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const s=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!s){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(r,s).length,o=e.substr(n,100).split("\n")[0];let i,a=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:i=new RangeError(`Bad node name '${a}'`);break;case 3:i=new RangeError(`Bad field name '${a}'`);break;case 4:i=new RangeError(`Bad capture name @${a}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${o}'...`),a="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${o}'...`),a=""}throw i.index=n,i.length=a.length,C._free(r),i}const n=C._ts_query_string_count(s),o=C._ts_query_capture_count(s),i=C._ts_query_pattern_count(s),a=new Array(o),c=new Array(n);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,r)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,r)}const u=new Array(i),l=new Array(i),_=new Array(i),d=new Array(i),m=new Array(i);for(let e=0;e<i;e++){const t=C._ts_query_predicates_for_pattern(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");d[e]=[],m[e]=[];const n=[];let o=t;for(let t=0;t<r;t++){const t=getValue(o,"i32");o+=SIZE_OF_INT;const r=getValue(o,"i32");if(o+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[r]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r,s=!0,o=!0;switch(t){case"any-not-eq?":case"not-eq?":s=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(o=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,r=n[2].name;m[e].push((e=>{const n=[],i=[];for(const s of e)s.name===t&&n.push(s.node),s.name===r&&i.push(s.node);const a=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return o?n.every((e=>i.some((t=>a(e,t,s))))):n.some((e=>i.some((t=>a(e,t,s)))))}))}else{r=n[1].name;const t=n[2].value,i=e=>e.text===t,a=e=>e.text!==t;m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node);const n=s?i:a;return o?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":s=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);r=n[1].name;const i=new RegExp(n[2].value);o=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);const n=(e,t)=>t?i.test(e):!i.test(e);return 0===t.length?!s:o?t.every((e=>n(e,s))):t.some((e=>n(e,s)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?l:_;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":s=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=n[1].name;const c=n.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);return 0===t.length?!s:t.every((e=>c.includes(e)))===s}));break;default:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(_[e])}return C._free(r),new Query(INTERNAL,s,a,m,d,Object.freeze(u),Object.freeze(l),Object.freeze(_))}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=__webpack_require__(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 r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new Language(INTERNAL,s)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,s,n,o,i,a){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=o,this.assertedProperties=i,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:s=0,endIndex:n=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s,n,o,i,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=new Array(c);this.exceededMatchLimit=Boolean(l);let d=0,m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,s),this.textPredicates[t].every((e=>e(s)))){_[d]={pattern:t,captures:s};const e=this.setProperties[t];e&&(_[d].setProperties=e);const r=this.assertedProperties[t];r&&(_[d].assertedProperties=r);const n=this.refutedProperties[t];n&&(_[d].refutedProperties=n),d++}}return _.length=d,C._free(u),_}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:s=0,endIndex:n=0,matchLimit:o=4294967295,maxStartDepth:i=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s,n,o,i,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=[];this.exceededMatchLimit=Boolean(l);const d=[];let m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=r,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),_.push(e)}}return C._free(u),_}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function unmarshalCaptures(e,t,r,s){for(let n=0,o=s.length;n<o;n++){const o=getValue(r,"i32"),i=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,s[n]={name:e.captureNames[o],node:i}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const s=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=r,a.startIndex=s,a.startPosition={row:n,column:o},a[0]=i,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3885:(e,t,r)=>{"use strict";var s=r(6100),n=Error,o=s("".replace),i=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=o(e,a,"");return e}},3934:(e,t,r)=>{var s=r(3212),n=r(6465),o=r(5568);e.exports=function(e,t,r,i,a,c){var u=1&r,l=e.length,_=t.length;if(l!=_&&!(u&&_>l))return!1;var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var p=-1,h=!0,f=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++p<l;){var g=e[p],y=t[p];if(i)var w=u?i(y,g,p,t,e,c):i(g,y,p,e,t,c);if(void 0!==w){if(w)continue;h=!1;break}if(f){if(!n(t,(function(e,t){if(!o(f,t)&&(g===e||a(g,e,r,i,c)))return f.push(t)}))){h=!1;break}}else if(g!==y&&!a(g,y,r,i,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},3964:(e,t,r)=>{var s=r(7034);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3999:(e,t,r)=>{"use strict";var s=r(5024),n=r(9989),o=r(480);e.exports=s?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},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""}},4103:(e,t,r)=>{var s=r(1386);e.exports=function(){this.__data__=new s,this.size=0}},4123:(e,t,r)=>{const s=r(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class o{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new o(this.elements.filter(e,t))}reject(e,t){return e=n(e),new o(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=o},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var s=r(8141),n=r(1268),o=s("keys");e.exports=function(e){return o[e]||(o[e]=n(e))}},4279:(e,t,r)=>{"use strict";var s=r(3999),n=r(3885),o=r(5791),i=Error.captureStackTrace;e.exports=function(e,t,r,a){o&&(i?i(e,t):s(e,"stack",n(r,a)))}},4317:(e,t,r)=>{"use strict";var s=r(6100);e.exports=s({}.isPrototypeOf)},4497:(e,t,r)=>{var s=r(4715)(Object,"create");e.exports=s},4512:(e,t,r)=>{var s=r(4715)(r(8942),"Set");e.exports=s},4543:(e,t,r)=>{"use strict";var s=r(5024),n=r(4713),o=r(7161),i=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),_=Object.getOwnPropertyDescriptor;t.f=s?_:function(e,t){if(e=a(e),t=c(t),l)try{return _(e,t)}catch(e){}if(u(e,t))return i(!n(o.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var s=r(9344),n=r(814),o=r(1780),i=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var s=r(9903),n=Math.max,o=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):o(r,t)}},4603:(e,t,r)=>{"use strict";var s=r(5547),n=r(1203),o=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4674:(e,t,r)=>{"use strict";var s=r(814),n=r(3057);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},4687:(e,t,r)=>{var s=r(353),n=r(547);e.exports=function e(t,r,o,i,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,o,i,e,a))}},4700:(e,t,r)=>{var s=r(9067);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,r)=>{var s=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},4732:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).has(e)}},4759:(e,t,r)=>{var s,n=r(1950),o=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!o&&o in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var s=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var s={};s[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(s)},4967:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},5024:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var s=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var s=r(3305),n=r(9361),o=r(1112),i=r(5276),a=r(5071);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},5116:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5341:(e,t,r)=>{"use strict";var s=r(493),n=r(6281);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var s=r(3057),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var s=r(9989).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var s,n,o=r(8900),i=r(3531),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(s=l.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&i&&(!(s=i.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=i.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var s=r(6100),n=r(9903),o=r(1139),i=r(5426),a=s("".charAt),c=s("".charCodeAt),u=s("".slice),l=function(e){return function(t,r){var s,l,_=o(i(t)),d=n(r),m=_.length;return d<0||d>=m?e?"":void 0:(s=c(_,d))<55296||s>56319||d+1===m||(l=c(_,d+1))<56320||l>57343?e?a(_,d):s:e?u(_,d,d+2):l-56320+(s-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,r)=>{const s=r(1517),n=r(1580),o=r(9796),i=r(7309),a=r(3311);e.exports=class extends o{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new i(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,o)=>{const i=e.bind(t)(s,n,o);i&&r.push(i)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var s=r(8942).Symbol;e.exports=s},5681:(e,t,r)=>{var s=r(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var s=r(1003),n=r(6100),o=r(5116),i=r(7313),a=r(7235),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?c(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const s=r(9310),n=r(8138),o=r(986),i=r(2563),a=r(1580),c=r(394),u=r(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(s,u.NullElement,!1).detect(n,u.StringElement,!1).detect(o,u.NumberElement,!1).detect(i,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},5780:(e,t,r)=>{"use strict";var s,n=r(7235),o=r(7389),i=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),_="prototype",d="script",m=l("IE_PROTO"),p=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&s?f(s):(t=u("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(s);for(var n=i.length;n--;)delete g[_][i[n]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[_]=n(e),r=new p,p[_]=null,r[m]=e):r=g(),void 0===t?r:o.f(r,t)}},5791:(e,t,r)=>{"use strict";var s=r(1203),n=r(480);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var s=r(8942),n=r(4772),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},6027:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},6100:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,o=n.call,i=s&&n.bind.bind(o,o);e.exports=s?i:function(e){return function(){return o.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},6138:(e,t,r)=>{"use strict";var s=r(9098),n=r(1003),o=r(7013),i=r(1203),a=r(6453),c="AggregateError",u=n(c),l=!i((function(){return 1!==u([1]).errors[0]}))&&i((function(){return 7!==u([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return o(e,this,arguments)}}),l,!0)})},6281:(e,t,r)=>{"use strict";var s=r(1003),n=r(2769),o=r(4317),i=r(7460),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&o(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var s=r(4687);e.exports=function(e,t){return s(e,t)}},6453:(e,t,r)=>{"use strict";var s=r(1003),n=r(701),o=r(3999),i=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),_=r(4879),d=r(8148),m=r(4279),p=r(5024),h=r(4871);e.exports=function(e,t,r,f){var g="stackTraceLimit",y=f?2:1,w=e.split("."),b=w[w.length-1],v=s.apply(null,w);if(v){var E=v.prototype;if(!h&&n(E,"cause")&&delete E.cause,!r)return v;var x=s("Error"),S=t((function(e,t){var r=_(f?t:e,void 0),s=f?new v(e):new v;return void 0!==r&&o(s,"message",r),m(s,S,s.stack,2),this&&i(E,this)&&l(s,this,S),arguments.length>y&&d(s,arguments[y]),s}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in v&&(u(S,v,g),u(S,v,"prepareStackTrace")),c(S,v),!h)try{E.name!==b&&o(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var s=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var s=r(1386),n=r(9770),o=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var i=r.__data__;if(!n||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(i)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var s=r(8099);e.exports=s.AggregateError},6850:(e,t,r)=>{"use strict";t.MH=void 0;const s=r(8583);function n(e,t,r){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==r&&r!==e.length)throw new SyntaxError(s.errorMessages.get(t));return n}function o(e,t){const r=n(e,s.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,s.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}const i=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,r,a,c,u,l,_,d,m){if(void 0!==r)return"\\";if(void 0!==a)return function(e){const t=n(e,s.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(s.errorMessages.get(s.ErrorType.MalformedUnicode));var t;const r=n(e.slice(1,-1),s.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(s.errorMessages.get(s.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return o(u,l);if(void 0!==_)return o(_);if("0"===d)return"\0";if(void 0!==d)return function(e,t=!1){if(t)throw new SyntaxError(s.errorMessages.get(s.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(d,!t);if(void 0!==m)return p=m,i.get(p)||p;var p;throw new SyntaxError(s.errorMessages.get(s.ErrorType.EndOfString))}))}t.MH=c},7013:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,o=n.apply,i=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?i.bind(o):function(){return i.apply(o,arguments)})},7034:(e,t,r)=>{var s=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var s=r(7034);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var s=r(239);e.exports=s},7235:(e,t,r)=>{"use strict";var s=r(262),n=String,o=TypeError;e.exports=function(e){if(s(e))return e;throw new o(n(e)+" is not an object")}},7309:(e,t,r)=>{const s=r(2322),n=r(8631);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var s=r(5650),n=r(8870),o=r(9005),i=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?n(e):o(e)}},7389:(e,t,r)=>{"use strict";var s=r(5024),n=r(1330),o=r(9989),i=r(7235),a=r(3273),c=r(8364);t.f=s&&!n?Object.defineProperties:function(e,t){i(e);for(var r,s=a(t),n=c(t),u=n.length,l=0;u>l;)o.f(e,r=n[l++],s[r]);return e}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7452:(e,t,r)=>{var s=r(7034);e.exports=function(e){return s(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var s=r(4603);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var s=r(701),n=r(5691),o=r(4543),i=r(9989);e.exports=function(e,t,r){for(var a=n(t),c=i.f,u=o.f,l=0;l<a.length;l++){var _=a[l];s(e,_)||r&&s(r,_)||c(e,_,u(t,_))}}},7525:(e,t,r)=>{"use strict";var s=r(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},7547:(e,t,r)=>{const s=r(8631),n=r(3004),o=r(8712),i=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),_=r(9620),d=r(593),m=r(4123),p=r(3311),h=r(2322);function f(e){if(e instanceof s)return e;if("string"==typeof e)return new o(e);if("number"==typeof e)return new i(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new l(e)}return e}s.prototype.ObjectElement=l,s.prototype.RefElement=d,s.prototype.MemberElement=u,s.prototype.refract=f,m.prototype.refract=f,e.exports={Element:s,NullElement:n,StringElement:o,NumberElement:i,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:_,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:p,KeyValuePair:h}},7979:(e,t,r)=>{var s=r(9847),n=r(9306),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(e){return null==e?[]:(e=Object(e),s(i(e),(function(t){return o.call(e,t)})))}:n;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var s=r(3766)(Object.keys,Object);e.exports=s},8130:(e,t,r)=>{"use strict";var s=r(8146);e.exports=function(e){return s(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var s=r(7379),n=r(3142),o=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&o(e)&&"[object String]"==s(e)}},8141:(e,t,r)=>{"use strict";var s=r(3753);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},8146:(e,t,r)=>{"use strict";var s=r(9903),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var s=r(262),n=r(3999);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,r)=>{var s=r(1129),n=r(3142);e.exports=function(e,t,r){var o=t(e);return n(e)?o:s(o,r(e))}},8250:(e,t,r)=>{var s=r(9753),n=r(5681),o=r(88),i=r(4732),a=r(9068);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},8326:(e,t,r)=>{const s=r(5735),n=r(7547);t.g$=s,t.KeyValuePair=r(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var s=r(7202);e.exports=s},8364:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683);e.exports=Object.keys||function(e){return s(e,n)}},8407:(e,t,r)=>{"use strict";var s=r(4904),n=r(2769),o=r(9932),i=r(8655)("toStringTag"),a=Object,c="Arguments"===o(function(){return arguments}());e.exports=s?o:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),i))?r:c?o(t):"Object"===(s=o(t))&&n(t.callee)?"Arguments":s}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var s,n,o,i=r(1314),a=r(8900),c=r(262),u=r(3999),l=r(701),_=r(3753),d=r(4275),m=r(5241),p="Object already initialized",h=a.TypeError,f=a.WeakMap;if(i||_.state){var g=_.state||(_.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,s=function(e,t){if(g.has(e))throw new h(p);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=d("state");m[y]=!0,s=function(e,t){if(l(e,y))throw new h(p);return t.facade=e,u(e,y,t),t},n=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:s,get:n,has:o,enforce:function(e){return o(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var s=r(3103),n=r(9770),o=r(9413),i=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",_="[object Promise]",d="[object Set]",m="[object WeakMap]",p="[object DataView]",h=u(s),f=u(n),g=u(o),y=u(i),w=u(a),b=c;(s&&b(new s(new ArrayBuffer(1)))!=p||n&&b(new n)!=l||o&&b(o.resolve())!=_||i&&b(new i)!=d||a&&b(new a)!=m)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?u(r):"";if(s)switch(s){case h:return p;case f:return l;case g:return _;case y:return d;case w:return m}return t}),e.exports=b},8583:(e,t)=>{"use strict";var r;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"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,r)=>{"use strict";var s=r(6100),n=r(701),o=r(3273),i=r(1005).indexOf,a=r(5241),c=s([].push);e.exports=function(e,t){var r,s=o(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&c(l,r);for(;t.length>u;)n(s,r=t[u++])&&(~i(l,r)||c(l,r));return l}},8631:(e,t,r)=>{const s=r(6343),n=r(2322),o=r(4123);class i{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof i?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new o;const s=(e,t)=>(e.push(t),e),i=(e,r)=>{r.element===t&&e.push(r);const o=r.findRecursive(t);return o&&o.reduce(s,e),r.content instanceof n&&(r.content.key&&i(e,r.content.key),r.content.value&&i(e,r.content.value)),e};return this.content&&(this.content.element&&i(r,this.content),Array.isArray(this.content)&&this.content.reduce(i,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof i)this._content=e;else if(e instanceof o)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new o;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new o(this.content);if(this.content instanceof n){const e=new o([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof i?new o([this.content]):new o}get recursiveChildren(){const e=new o;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=i},8655:(e,t,r)=>{"use strict";var s=r(8900),n=r(8141),o=r(701),i=r(1268),a=r(4603),c=r(7460),u=s.Symbol,l=n("wks"),_=c?u.for||u:u&&u.withoutSetter||i;e.exports=function(e){return o(l,e)||(l[e]=a&&o(u,e)?u[e]:_("Symbol."+e)),l[e]}},8666:(e,t,r)=>{var s=r(674),n=r(9460),o=r(2306),i=o&&o.isTypedArray,a=i?n(i):s;e.exports=a},8696:(e,t,r)=>{"use strict";var s=r(1203),n=r(2769),o=/#|\.prototype\./,i=function(e,t){var r=c[a(e)];return r===l||r!==u&&(n(t)?s(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},8712:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var s=r(5650),n=r(1623),o=r(6285),i=r(3934),a=r(5894),c=r(7447),u=s?s.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,s,u,_,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!_(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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 p=1&s;if(m||(m=c),e.size!=t.size&&!p)return!1;var h=d.get(e);if(h)return h==t;s|=2,d.set(e,t);var f=i(m(e),m(t),s,u,_,d);return d.delete(e),f;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,r)=>{var s=r(5650),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=i.call(e);return s&&(t?e[a]=r:delete e[a]),n}},8900:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var s=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,o=s||n||Function("return this")();e.exports=o},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,r)=>{var s=r(4700);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},9098:(e,t,r)=>{"use strict";var s=r(8900),n=r(7013),o=r(9344),i=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),_=r(3999),d=r(701);r(3753);var m=function(e){var t=function(r,s,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,o)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,p,h,f,g,y,w,b,v=e.target,E=e.global,x=e.stat,S=e.proto,P=E?s:x?s[v]:s[v]&&s[v].prototype,O=E?u:u[v]||_(u,v,{})[v],M=O.prototype;for(h in t)n=!(r=c(E?h:v+(x?".":"#")+h,e.forced))&&P&&d(P,h),g=O[h],n&&(y=e.dontCallGetSet?(b=a(P,h))&&b.value:P[h]),f=n&&y?y:t[h],(r||S||typeof g!=typeof f)&&(w=e.bind&&n?l(f,s):e.wrap&&n?m(f):S&&i(f)?o(f):f,(e.sham||f&&f.sham||g&&g.sham)&&_(w,"sham",!0),_(O,h,w),S&&(d(u,p=v+"Prototype")||_(u,p,{}),_(u[p],h,f),e.real&&M&&(r||!M[h])&&_(M,h,f)))}},9258:(e,t,r)=>{"use strict";var s=r(4713),n=r(2769),o=r(262),i=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!o(a=s(r,e)))return a;if(n(r=e.valueOf)&&!o(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!o(a=s(r,e)))return a;throw new i("Can't convert object to primitive value")}},9270:(e,t,r)=>{var s=r(4715)(r(8942),"WeakMap");e.exports=s},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var s=r(9932),n=r(6100);e.exports=function(e){if("Function"===s(e))return n(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,r)=>{var s=r(4715)(r(8942),"Promise");e.exports=s},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var s=r(4904),n=r(8407);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,r)=>{"use strict";var s=r(8900),n=r(262),o=s.document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},9620:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var s=r(3655),n=r(4759),o=r(1580),i=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,_=u.hasOwnProperty,d=RegExp("^"+l.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||n(e))&&(s(e)?d:a).test(i(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203),o=r(9619);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var s=r(5098),n=r(1386),o=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(o||n),string:new s}}},9770:(e,t,r)=>{var s=r(4715)(r(8942),"Map");e.exports=s},9796:(e,t,r)=>{const s=r(1517),n=r(8631),o=r(4123);class i extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new o(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,o)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,o)&&n.push(t)})),n}find(e){return new o(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)}}i.empty=function(){return new this},i["fantasy-land/empty"]=i.empty,"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=i},9828:(e,t,r)=>{"use strict";var s=r(3273),n=r(8137),o=r(6625),i=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),_=r(5024),d="Array Iterator",m=i.set,p=i.getterFor(d);e.exports=c(Array,"Array",(function(e,t){m(this,{type:d,target:s(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var h=o.Arguments=o.Array;if(n("keys"),n("values"),n("entries"),!l&&_&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,o=[];++r<s;){var i=e[r];t(i,r,e)&&(o[n++]=i)}return o}},9903:(e,t,r)=>{"use strict";var s=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},9932:(e,t,r)=>{"use strict";var s=r(6100),n=s({}.toString),o=s("".slice);e.exports=function(e){return o(n(e),8,-1)}},9989:(e,t,r)=>{"use strict";var s=r(5024),n=r(9665),o=r(1330),i=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,_="enumerable",d="configurable",m="writable";t.f=s?o?function(e,t,r){if(i(e),t=a(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var s=l(e,t);s&&s[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:s[d],enumerable:_ in r?r[_]:s[_],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(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(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>n_,detectionRegExp:()=>s_,mediaTypes:()=>r_,namespace:()=>i_,parse:()=>o_});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>an,includesClasses:()=>un,includesSymbols:()=>cn,isAnnotationElement:()=>rn,isArrayElement:()=>Xs,isBooleanElement:()=>Js,isCommentElement:()=>sn,isElement:()=>Gs,isLinkElement:()=>en,isMemberElement:()=>Qs,isNullElement:()=>Ks,isNumberElement:()=>Zs,isObjectElement:()=>Ys,isParseResultElement:()=>nn,isPrimitiveElement:()=>on,isRefElement:()=>tn,isStringElement:()=>zs});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>_i,isJSONSchemaElement:()=>li,isLinkDescriptionElement:()=>mi,isMediaElement:()=>di});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isReferenceLikeElement:()=>ec,isSwaggerExtension:()=>Qa});var s={};function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function o(e){return function t(r){return 0===arguments.length||n(r)?t:e.apply(this,arguments)}}function i(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return n(r)?t:o((function(t){return e(r,t)}));default:return n(r)&&n(s)?t:n(r)?o((function(t){return e(t,s)})):n(s)?o((function(t){return e(r,t)})):e(r,s)}}}function a(e){return function t(r,s,a){switch(arguments.length){case 0:return t;case 1:return n(r)?t:i((function(t,s){return e(r,t,s)}));case 2:return n(r)&&n(s)?t:n(r)?i((function(t,r){return e(t,s,r)})):n(s)?i((function(t,s){return e(r,t,s)})):o((function(t){return e(r,s,t)}));default:return n(r)&&n(s)&&n(a)?t:n(r)&&n(s)?i((function(t,r){return e(t,r,a)})):n(r)&&n(a)?i((function(t,r){return e(t,s,r)})):n(s)&&n(a)?i((function(t,s){return e(r,t,s)})):n(r)?o((function(t){return e(t,s,a)})):n(s)?o((function(t){return e(r,t,a)})):n(a)?o((function(t){return e(r,s,t)})):e(r,s,a)}}}__webpack_require__.r(s),__webpack_require__.d(s,{isContactElement:()=>$c,isDefinitionsElement:()=>tu,isExampleElement:()=>zc,isExternalDocumentationElement:()=>Uc,isHeaderElement:()=>Zc,isHeadersElement:()=>Gc,isInfoElement:()=>Cc,isItemsElement:()=>Bc,isLicenseElement:()=>kc,isOperationElement:()=>qc,isParameterElement:()=>Vc,isParametersDefinitionsElement:()=>ru,isPathItemElement:()=>Lc,isPathsElement:()=>Dc,isReferenceElement:()=>Jc,isResponseElement:()=>Wc,isResponsesDefinitionsElement:()=>Qc,isResponsesElement:()=>Hc,isSchemaElement:()=>Yc,isScopesElement:()=>nu,isSecurityDefinitionsElement:()=>eu,isSecurityRequirementElement:()=>ou,isSecuritySchemeElement:()=>su,isSwaggerElement:()=>Fc,isSwaggerVersionElement:()=>Nc,isTagElement:()=>Kc,isXmlElement:()=>Xc});const c=i((function(e,t){return null==t||t!=t?e:t})),u=Number.isInteger||function(e){return(e|0)===e};function l(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var r=e<0?t.length+e:e;return l(t)?t.charAt(r):t[r]}const d=i((function(e,t){if(null!=t)return u(e)?_(e,t):t[e]}));const m=a((function(e,t,r){return c(e,d(t,r))}));var p=i((function(e,t){for(var r={},s={},n=0,o=e.length;n<o;)s[e[n]]=1,n+=1;for(var i in t)s.hasOwnProperty(i)||(r[i]=t[i]);return r}));const h=p;function f(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const g=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const y=o((function(e){return!!g(e)||!!e&&("object"==typeof e&&(!l(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function b(e,t,r){return function(s,n,o){if(y(o))return e(s,n,o);if(null==o)return n;if("function"==typeof o["fantasy-land/reduce"])return t(s,n,o,"fantasy-land/reduce");if(null!=o[w])return r(s,n,o[w]());if("function"==typeof o.next)return r(s,n,o);if("function"==typeof o.reduce)return t(s,n,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function v(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function E(e,t,r,s){return r[s](e,t)}const x=b(f,E,v);function S(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!g(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function P(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}const O=function(){return this.xf["@@transducer/init"]()},M=function(e){return this.xf["@@transducer/result"](e)};var A=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const T=function(e){return function(t){return new A(e,t)}};function I(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,o){return t.apply(this,arguments)};case 6:return function(e,r,s,n,o,i){return t.apply(this,arguments)};case 7:return function(e,r,s,n,o,i,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,o,i,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,o,i,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,s,n,o,i,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function j(e,t,r){return function(){for(var s=[],o=0,i=e,a=0,c=!1;a<t.length||o<arguments.length;){var u;a<t.length&&(!n(t[a])||o>=arguments.length)?u=t[a]:(u=arguments[o],o+=1),s[a]=u,n(u)?c=!0:i-=1,a+=1}return!c&&i<=0?r.apply(this,s):I(Math.max(0,i),j(e,s,r))}}const R=i((function(e,t){return 1===e?o(t):I(e,j(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var N=Object.prototype.toString;const C=function(){return"[object Arguments]"===N.call(arguments)?function(e){return"[object Arguments]"===N.call(e)}:function(e){return F("callee",e)}}();var k=!{toString:null}.propertyIsEnumerable("toString"),$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=function(){return arguments.propertyIsEnumerable("length")}(),L=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},q="function"!=typeof Object.keys||D?o((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=D&&C(e);for(t in e)!F(t,e)||n&&"length"===t||(s[s.length]=t);if(k)for(r=$.length-1;r>=0;)F(t=$[r],e)&&!L(s,t)&&(s[s.length]=t),r-=1;return s})):o((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=q;const V=i(S(["fantasy-land/map","map"],T,(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 f((function(r,s){return r[s]=e(t[s]),r}),{},U(t));default:return P(e,t)}})));const B=i((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:x((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,o=[];for(r=0;r<s;)o[o.length]=e[r],r+=1;for(r=0;r<n;)o[o.length]=t[r],r+=1;return o}(e,V(r,t))}),[],e)}));const H=i((function(e,t){var r=R(e,t);return R(e,(function(){return f(B,V(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=o((function(e){return H(e.length,e)}));const G=W(o((function(e){return!e})));function z(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Z(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}const K="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const J=o((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Y(e,t,r,s){var n=z(e);function o(e,t){return X(e,t,r.slice(),s.slice())}return!Z((function(e,t){return!Z(o,t,e)}),z(t),n)}function X(e,t,r,s){if(K(e,t))return!0;var n,o,i=J(e);if(i!==J(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(o=String(n).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!K(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!K(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&Y(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Y(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=U(e);if(c.length!==U(t).length)return!1;var u=r.concat([e]),l=s.concat([t]);for(a=c.length-1;a>=0;){var _=c[a];if(!F(_,t)||!X(t[_],e[_],u,l))return!1;a-=1}return!0}const Q=i((function(e,t){return X(e,t,[],[])}));const ee=o((function(e){return function(){return e}}));const te=ee(void 0);const re=Q(te());const se=G(re);var ne=__webpack_require__(8326);function oe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ie(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const ae=i((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function ce(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function ue(e,t,r,s){return e["@@transducer/result"](r[s](ae(e["@@transducer/step"],e),t))}const le=b(ie,ue,ce);var _e=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function de(e){return new _e(e)}const me=a((function(e,t,r){return le("function"==typeof e?de(e):e,t,r)}));function pe(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return g(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const he=a(pe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const fe=o(pe("tail",he(1,1/0)));function ge(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,me(oe,arguments[0],fe(arguments)))}var ye=function(e,t){switch(arguments.length){case 0:return ye;case 1:return function t(r){return 0===arguments.length?t:K(e,r)};default:return K(e,t)}};const we=ye;function be(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(Q(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ve(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 Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var Pe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Oe(e){return function(t){return new Pe(e,t)}}const Me=i(S(["fantasy-land/filter","filter"],Oe,(function(e,t){return Se(t)?f((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},U(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const Ae=i((function(e,t){return Me((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Te(e,t){var r=function(r){var s=t.concat([e]);return be(r,s)?"<Circular>":Te(r,s)},s=function(e,t){return P((function(t){return ve(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+P(r,e).join(", ")+"))";case"[object Array]":return"["+P(r,e).concat(s(e,Ae((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):ve(xe(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":ve(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,U(e)).join(", ")+"}"}}const Ie=o((function(e){return Te(e,[])}));function je(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=u(n)?_(n,r):r[n]}return r}const Re=a((function(e,t,r){return e(je(t,r))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ne=i((function(e,t){return e&&t}));const Ce=i((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Ne)(e,t)}));const ke=Q(null);const $e=G(ke);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}const Le=function(e){return"object"===De(e)};const qe=R(1,Ce($e,Le));const Ue=i((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var o=Ie(e),i=r(o,Ie(t));return void 0!==i&&i===o?e:t}));const Ve=i((function(e,t){return V(d(e),t)}));const Be=o((function(e){return R(me(Ue,0,Ve("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const He=R(1,ge(J,we("GeneratorFunction")));const We=R(1,ge(J,we("AsyncFunction")));const Ge=Be([ge(J,we("Function")),He,We]);var ze=ge(J,we("Object")),Ze=ge(Ie,Q(Ie(Object))),Ke=Re(Ce(Ge,Ze),["constructor"]);const Je=R(1,(function(e){if(!qe(e)||!ze(e))return!1;var t=Object.getPrototypeOf(e);return!!ke(t)||Ke(t)}));class Ye extends ne.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Xe=Ye;class Qe extends ne.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const et=Qe;class tt extends ne.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(re(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const rt=tt;class st extends ne.g${constructor(){super(),this.register("annotation",Xe),this.register("comment",et),this.register("parseResult",rt)}}const nt=new st,ot=e=>{const t=new st;return Je(e)&&t.use(e),t},it=nt;const at=R(1,ge(J,we("String"))),ct=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ut=globalThis.fetch;Ge(ut)&&(globalThis.fetch=(...e)=>at(e[0])&&e[0].endsWith("tree-sitter.wasm")?ut.apply(globalThis,[ct,fe(e)]):ut.apply(globalThis,e));var lt=__webpack_require__(3833),_t=__webpack_require__(1212);const dt=class extends _t{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class mt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,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 pt=mt,ht=__webpack_require__.p+"fe6ac473f020fbdb0dc39a494e428b55.wasm";let ft=null,gt=null,yt=null;const wt=async e=>{var t,r;if(null===(t=yt)||void 0===t||t.delete(),null===(r=ft)||void 0===r||r.reset(),null===ft&&null===gt)gt=lt.init().then((()=>lt.Language.load(ht))).then((e=>{const t=new lt;return t.setLanguage(e),t})).finally((()=>{gt=null})),ft=await gt;else if(null===ft&&null!==gt)ft=await gt;else if(null===ft)throw new pt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return yt=ft.parse(e),yt};const bt=class extends pt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const vt=class extends bt{};const Et=class extends vt{};const xt=class extends Et{specificTagName;explicitTagName;tagKind;tagStartPositionRow;tagStartPositionColumn;tagStartPositionIndex;tagEndPositionRow;tagEndPositionColumn;tagEndPositionIndex;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagStartPositionRow=t.tagStartPositionRow,this.tagStartPositionColumn=t.tagStartPositionColumn,this.tagStartPositionIndex=t.tagStartPositionIndex,this.tagEndPositionRow=t.tagEndPositionRow,this.tagEndPositionColumn=t.tagEndPositionColumn,this.tagEndPositionIndex=t.tagEndPositionIndex,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const St=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:r,startPositionColumn:s,startIndex:n,endPositionRow:o,endPositionColumn:i,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=r,this.startPositionColumn=s,this.startIndex=n,this.endPositionRow=o,this.endPositionColumn=i,this.endIndex=a}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};let Pt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Ot=class extends St{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...r}){super({...r}),this.explicitName=e,this.kind=t}};const Mt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const At=class extends Mt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Pt.Mapping}};const Tt=class extends Mt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Pt.Sequence}};const It=class extends Mt{static uri="tag:yaml.org,2002:str"};const jt=a((function(e,t,r){return c(e,je(t,r))}));const Rt=o((function(e){return R(e.length,e)}));var Ft="\t\n\v\f\r                 \u2028\u2029\ufeff";const Nt=o("function"==typeof String.prototype.trim&&!Ft.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Ft+"]["+Ft+"]*"),r=new RegExp("["+Ft+"]["+Ft+"]*$");return e.replace(t,"").replace(r,"")});const Ct=i((function(e,t){return R(e+1,(function(){var r=arguments[e];if(null!=r&&Fe(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ie(r)+' does not have a method named "'+t+'"')}))}));const kt=Ct(1,"split");const $t=Ct(1,"join");const Dt=o((function(e){return l(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Lt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ge.apply(this,Dt(arguments))}const qt=R(4,(function(e,t,r,s){return le(e("function"==typeof t?de(t):t),r,s)}));const Ut=i((function(e,t){if(g(e)){if(g(t))return e.concat(t);throw new TypeError(Ie(t)+" is not an array")}if(l(e)){if(l(t))return e+t;throw new TypeError(Ie(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(Ie(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Vt=Q("");const Bt=i((function(e,t){return R(me(Ue,0,Ve("length",t)),(function(){var r=arguments,s=this;return e.apply(s,P((function(e){return e.apply(s,r)}),t))}))}));function Ht(e){return e}const Wt=o(Ht);const Gt=R(1,ge(J,we("Number")));var zt=Ce(Gt,isFinite);var Zt=R(1,zt);const Kt=Ge(Number.isFinite)?R(1,ae(Number.isFinite,Number)):Zt;var Jt=Ce(Kt,Bt(Q,[Math.floor,Wt]));var Yt=R(1,Jt);const Xt=Ge(Number.isInteger)?R(1,ae(Number.isInteger,Number)):Yt;const Qt=o((function(e){return R(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}));const er=G(Kt);const tr=R(1,Ce(Gt,i((function(e,t){return e>t}))(0)));var rr=Rt((function(e,t){var r=Number(t);if(r!==t&&(r=0),tr(r))throw new RangeError("repeat count must be non-negative");if(er(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===e.length||0===r)return"";if(e.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var s=e.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var n=e;r;)n+=e,r-=1;return n+=n.substring(0,s-n.length)})),sr=Qt(Ct(1,"repeat"));const nr=Ge(String.prototype.repeat)?sr:rr;const or=a((function(e,t,r){return r.replace(e,t)}));var ir=or(/[\s\uFEFF\xA0]+$/,""),ar=Ct(0,"trimEnd");const cr=Ge(String.prototype.trimEnd)?ar:ir;var ur=or(/^[\s\uFEFF\xA0]+/,""),lr=Ct(0,"trimStart");const _r=Ge(String.prototype.trimStart)?lr:ur;var dr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,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 mr(e){return function(t){return new dr(e,t)}}const pr=i(S(["dropWhile"],mr,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return he(r,1/0,t)})));const hr=Qt(i(be));const fr=Rt((function(e,t){return ge(kt(""),pr(hr(e)),$t(""))(t)}));const gr=Qt(Ut);var yr=__webpack_require__(6850);const wr=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,br=e=>{const t=(e=>{const t=e.match(wr),r=jt("",["groups","indentation"],t);return Vt(r)?void 0:parseInt(r,10)})(e);if(Xt(t))return nr(" ",t);const r=jt("",[1],e.split("\n")),s=jt(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return nr(" ",s)},vr=e=>{const t=e.match(wr),r=jt("",["groups","chomping"],t);return Vt(r)?void 0:r},Er=(e,t)=>re(e)?`${cr(t)}\n`:"-"===e?cr(t):t,xr=e=>e.replace(/\r\n/g,"\n"),Sr=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,r)=>t?e:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Pr=Rt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Or=ge(xr,Nt,Sr,kt("\n"),V(_r),$t("\n")),Mr=ge(xr,Nt,Sr,kt("\n"),V(_r),$t("\n"),Pr("'")),Ar=ge(xr,Nt,(e=>e.replace(/\\\n\s*/g,"")),Sr,yr.MH,kt("\n"),V(_r),$t("\n"),Pr('"'));let Tr=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}({}),Ir=function(e){return e.Flow="Flow",e.Block="Block",e}({});const jr=class{static test(e){return e.tag.kind===Pt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const r=e.clone();return e.style===Tr.Plain?t=Or(e.content):e.style===Tr.SingleQuoted?t=Mr(e.content):e.style===Tr.DoubleQuoted?t=Ar(e.content):e.style===Tr.Literal?t=(e=>{const t=br(e),r=vr(e),s=xr(e),n=fe(s.split("\n")),o=Lt(V(fr(t)),V(gr("\n"))),i=qt(o,Ut,"",n);return Er(r,i)})(e.content):e.style===Tr.Folded&&(t=(e=>{const t=br(e),r=vr(e),s=xr(e),n=fe(s.split("\n")),o=Lt(V(fr(t)),V(gr("\n"))),i=qt(o,Ut,"",n),a=Sr(i);return Er(r,a)})(e.content)),r.content=t,r}static resolve(e){return e}};const Rr=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new At),this.registerTag(new Tt),this.registerTag(new It)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Pt.Scalar?t=It.uri:e.tag.kind===Pt.Sequence?t=Tt.uri:e.tag.kind===Pt.Mapping&&(t=At.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").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 r=e;jr.test(e)&&(r=jr.canonicalFormat(e));const s=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===s)throw new xt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,node:e.clone()});if(!s.test(r))throw new xt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagStartPositionRow:e.tag.startPositionRow,tagStartPositionColumn:e.tag.startPositionColumn,tagStartPositionIndex:e.tag.startIndex,tagEndPositionRow:e.tag.endPositionRow,tagEndPositionColumn:e.tag.endPositionColumn,tagEndPositionIndex:e.tag.endIndex,nodeCanonicalContent:r.content,node:e.clone()});return s.resolve(r)}};const Fr=class extends Mt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,r=e.clone();return r.content=t,r}};const Nr=class extends Mt{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),r=e.clone();return r.content=t,r}};const Cr=class extends Mt{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),r=e.clone();return r.content=t,r}};const kr=class extends Mt{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 $r=class extends Rr{constructor(){super(),this.registerTag(new Fr,!0),this.registerTag(new Nr,!0),this.registerTag(new Cr,!0),this.registerTag(new kr,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Pt.Sequence)t=Tt.uri;else if(e.tag.kind===Pt.Mapping)t=At.uri;else if(e.tag.kind===Pt.Scalar){const r=this.tags.find((t=>t.test(e)));t=(null==r?void 0:r.tag)||"?"}return t}};const Dr=class extends St{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:r,styleGroup:s,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=r,this.styleGroup=s}};const Lr=class extends Dr{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const qr=class extends vt{},Ur=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Vr=e=>Ur("mapping",e),Br=e=>Ur("sequence",e),Hr=e=>Ur("keyValuePair",e),Wr=e=>Ur("scalar",e),Gr=e=>Ur("alias",e);const zr=class{addAnchor(e){if(!(e=>Ur("anchor",e))(e.anchor))throw new qr("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Lr({content:e.content,style:Tr.Plain,styleGroup:Ir.Flow})}},Zr=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},Kr={},Jr=e=>null==e?void 0:e.type,Yr=e=>"string"==typeof Jr(e),Xr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Qr=(e,{visitFnGetter:t=Zr,nodeTypeGetter:r=Jr,breakSymbol:s=Kr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,_,d,m,p){let h=u,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=a.call(e[u],h,l,_,d,m,g);if("function"==typeof(null==t?void 0:t.then))throw new bt("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===o)c[u]=h;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},leave(n,i,u,l,_,d){let m=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=a.call(e[n],m,i,u,l,_,p);if("function"==typeof(null==t?void 0:t.then))throw new bt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==o)return t}}else c[n]===m&&(c[n]=a)}}};Qr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Zr,nodeTypeGetter:r=Jr,breakSymbol:s=Kr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,_,d,m,p){let h=u,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(h),!1);if("function"==typeof a){const t=await a.call(e[u],h,l,_,d,m,g);if(t===o)c[u]=h;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!i)return t;h=t,f=!0}}}}return f?h:void 0},async leave(n,i,u,l,_,d){let m=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=await a.call(e[n],m,i,u,l,_,p);if(t===s)c[n]=s;else if(void 0!==t&&t!==o)return t}}else c[n]===m&&(c[n]=a)}}};const es=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Kr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=Zr,nodeTypeGetter:c=Jr,nodePredicate:u=Yr,nodeCloneFn:l=Xr,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),g=[e],y=-1,w=[],b=e;const v=[],E=[];do{y+=1;const e=y===g.length;let r;const P=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=h,h=E.pop(),P)if(f){b=b.slice();let e=0;for(const[t,r]of w){const s=t-e;r===o?(b.splice(s,1),e+=1):b[s]=r}}else{b=l(b);for(const[e,t]of w)b[e]=t}y=p.index,g=p.keys,w=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?y:g[y],b=h[r],b===o||void 0===b)continue;v.push(r)}let O;if(!Array.isArray(b)){var x;if(!u(b))throw new bt(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,r,h,v,E),v.pop();continue}const o=a(t,c(b),e);if(o){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,h,v,E):h&&(h[r]=t),e||(b=t)}};O=o.call(t,b,r,h,v,E,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new bt("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(O===n)break;if(O===i){if(!e){v.pop();continue}}else if(void 0!==O&&(w.push([r,O]),!e)){if(!u(O)){v.pop();continue}b=O}}var S;if(void 0===O&&P&&w.push([r,b]),!e)p={inArray:f,index:y,keys:g,edits:w,prev:p},f=Array.isArray(b),g=f?b:null!==(S=m[c(b)])&&void 0!==S?S:[],y=-1,w=[],h!==o&&void 0!==h&&E.push(h),h=b}while(void 0!==p);return 0!==w.length?w[w.length-1][1]:e};es[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Kr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=Zr,nodeTypeGetter:c=Jr,nodePredicate:u=Yr,nodeCloneFn:l=Xr,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),g=[e],y=-1,w=[],b=e;const v=[],E=[];do{y+=1;const e=y===g.length;let r;const S=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=h,h=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,r]of w){const s=t-e;r===o?(b.splice(s,1),e+=1):b[s]=r}}else{b=l(b);for(const[e,t]of w)b[e]=t}y=p.index,g=p.keys,w=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?y:g[y],b=h[r],b===o||void 0===b)continue;v.push(r)}let P;if(!Array.isArray(b)){if(!u(b))throw new bt(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,r,h,v,E),v.pop();continue}const o=a(t,c(b),e);if(o){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,h,v,E):h&&(h[r]=t),e||(b=t)}};P=await o.call(t,b,r,h,v,E,n)}if(P===n)break;if(P===i){if(!e){v.pop();continue}}else if(void 0!==P&&(w.push([r,P]),!e)){if(!u(P)){v.pop();continue}b=P}}var x;if(void 0===P&&S&&w.push([r,b]),!e)p={inArray:f,index:y,keys:g,edits:w,prev:p},f=Array.isArray(b),g=f?b:null!==(x=m[c(b)])&&void 0!==x?x:[],y=-1,w=[],h!==o&&void 0!==h&&E.push(h),h=b}while(void 0!==p);return 0!==w.length?w[w.length-1][1]:e};const ts=class extends St{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class rs extends St{static type="stream"}Object.defineProperty(rs.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Ur("document",e))(e)||(e=>Ur("comment",e))(e))):[]},enumerable:!0});const ss=rs;const ns=o((function(e){return _(0,e)}));const os=class extends St{static type="parseResult";get rootNode(){return ns(this.children)}};const is="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),r=1,s=arguments.length;r<s;){var n=arguments[r];if(null!=n)for(var o in n)F(o,n)&&(t[o]=n[o]);r+=1}return t};const as=i((function(e,t){return is({},e,t)}));const cs=class extends St{static type="directive";name;parameters;constructor({name:e,parameters:t,...r}){super({...r}),this.name=e,this.parameters=as({version:void 0,handle:void 0,prefix:void 0},t)}};const us=class extends St{static type="document"};const ls=class extends Dr{};class _s extends ls{static type="mapping"}Object.defineProperty(_s.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Hr):[]},enumerable:!0});const ds=_s;class ms extends St{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(ms.prototype,{key:{get(){return this.children.filter((e=>Wr(e)||Vr(e)||Br(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Wr(e)||Vr(e)||Br(e)||Gr(e))(t)))[0]},enumerable:!0}});const ps=ms;class hs extends ls{static type="sequence"}Object.defineProperty(hs.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Br(e)||Vr(e)||Wr(e)||Gr(e))):[]},enumerable:!0});const fs=hs;const gs=class extends St{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const ys=class extends St{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const ws=class extends St{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const bs=class extends St{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};const vs=i((function(e,t){return f((function(r,s){return r[s]=e(t[s],s,t),r}),{},U(t))}));const Es=o((function(e){return null==e}));var xs=i((function(e,t){if(0===e.length||Es(t))return!1;for(var r=t,s=0;s<e.length;){if(Es(r)||!F(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const Ss=xs;var Ps=i((function(e,t){return Ss([e],t)}));const Os=Ps;const Ms=a((function(e,t,r){return e(d(t,r))}));const As=i(je),Ts=(e,t)=>{const r=c(e,t);return vs((e=>{if(Je(e)&&Os("$ref",e)&&Ms(at,"$ref",e)){const t=As(["$ref"],e),s=fr("#/",t);return As(s.split("/"),r)}return Je(e)?Ts(e,r):e}),e)},Is=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e);const js=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPositionRow=e.startPosition.row,this.startPositionColumn=e.startPosition.column,this.startIndex=e.startIndex,this.endPositionRow=e.endPosition.row,this.endPositionColumn=e.endPosition.column,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 this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Rs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Fs=e=>Array.isArray(e)||Yr(e);class Ns{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 kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new ts(Is({name:t.text},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,r=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),s=e.type.endsWith("mapping")?Pt.Mapping:e.type.endsWith("sequence")?Pt.Sequence:Pt.Scalar;return new Ot(Is({explicitName:r,kind:s},t))}schema;referenceManager;stream={enter:e=>new ss(Is({children:e.children,isMissing:e.isMissing},e)),leave:e=>new os({children:[e]})};yaml_directive={enter:e=>{var t;const r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new cs(Is({name:"%YAML",parameters:{version:r}},e))}};tag_directive={enter:e=>{const t=e.children[0],r=e.children[1],s=new cs(Is({name:"%TAG",parameters:{handle:null==t?void 0:t.text,prefix:null==r?void 0:r.text}},e));return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=e.children[0],r=e.children[1],s=e.children[2];return new cs(Is({name:null==t?void 0:t.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}},e))}};document={enter:e=>new us(Is({children:e.children,isMissing:e.isMissing},e)),leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Ns.isScalar(t)||Ns.isMapping(t)||Ns.isSequence(t))return e.children;const r=new Lr({content:"",anchor:Ns.kindNodeToYamlAnchor(t),tag:Ns.kindNodeToYamlTag(t),startPositionRow:t.endPositionRow,startPositionColumn:t.endPositionColumn,startIndex:t.endIndex,endPositionRow:t.endPositionRow,endPositionColumn:t.endPositionColumn,endIndex:t.endIndex,styleGroup:Ir.Flow,style:Tr.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=new ds(Is({children:e.children,anchor:r,tag:t,styleGroup:Ir.Block,style:Tr.NextLine,isMissing:e.isMissing},e));return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=[...e.children];if(Ns.hasKeyValuePairEmptyKey(e)){const r=this.createKeyValuePairEmptyKey(e);t.unshift(r)}if(Ns.hasKeyValuePairEmptyValue(e)){const r=this.createKeyValuePairEmptyValue(e);t.push(r)}return new ps(Is({children:t,styleGroup:Ir.Block,isMissing:e.isMissing},e))}};flow_mapping={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=new ds(Is({children:e.children,anchor:r,tag:t,styleGroup:Ir.Flow,style:Tr.Explicit,isMissing:e.isMissing},e));return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=[...e.children];if(Ns.hasKeyValuePairEmptyKey(e)){const r=this.createKeyValuePairEmptyKey(e);t.unshift(r)}if(Ns.hasKeyValuePairEmptyValue(e)){const r=this.createKeyValuePairEmptyValue(e);t.push(r)}return new ps(Is({children:t,styleGroup:Ir.Flow,isMissing:e.isMissing},e))}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=new fs(Is({children:e.children,anchor:r,tag:t,styleGroup:Ir.Block,style:Tr.NextLine},e));return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;return[new Lr({content:"",tag:new Ot({explicitName:"?",kind:Pt.Scalar}),startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,styleGroup:Ir.Flow,style:Tr.Plain})]}};flow_sequence={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=new fs(Is({children:e.children.flat(),anchor:r,tag:t,styleGroup:Ir.Flow,style:Tr.Explicit},e));return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=new Lr(Is({content:e.text,anchor:r,tag:t,styleGroup:Ir.Flow,style:Tr.Plain},e));return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=new Lr(Is({content:e.text,anchor:r,tag:t,styleGroup:Ir.Flow,style:Tr.SingleQuoted},e));return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=new Lr(Is({content:e.text,anchor:r,tag:t,styleGroup:Ir.Flow,style:Tr.DoubleQuoted},e));return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Ns.kindNodeToYamlTag(e),r=Ns.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Tr.Literal:e.text.startsWith(">")?Tr.Folded:Tr.Plain,n=new Lr(Is({content:e.text,anchor:r,tag:t,styleGroup:Ir.Block,style:s},e));return this.registerAnchor(n),this.schema.resolve(n)}};comment={enter:e=>new gs({content:e.text})};alias={enter:e=>{const t=new ys({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof js&&!e.isNamed){const t=e.type||e.text,{isMissing:r}=e;return new ws(Is({value:t,isMissing:r},e))}}ERROR(e,t,r,s){const n=new bs(Is({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===s.length?new os({children:[n]}):n}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const{keyNode:t}=e,r=(null==t?void 0:t.children)||[],s=r.find(Ns.isKind("tag")),n=r.find(Ns.isKind("anchor")),o=new Ot(void 0!==s?Is({explicitName:s.text,kind:Pt.Scalar},s):{explicitName:"?",kind:Pt.Scalar}),i=void 0!==n?new ts(Is({name:n.text},n)):void 0,a=new Lr({content:"",startPositionRow:e.startPositionRow,startPositionColumn:e.startPositionColumn,startIndex:e.startIndex,endPositionRow:e.startPositionRow,endPositionColumn:e.startPositionColumn,endIndex:e.startIndex,tag:o,anchor:i,styleGroup:Ir.Flow,style:Tr.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const{valueNode:t}=e,r=(null==t?void 0:t.children)||[],s=r.find(Ns.isKind("tag")),n=r.find(Ns.isKind("anchor")),o=new Ot(void 0!==s?Is({explicitName:s.text,kind:Pt.Scalar},s):{explicitName:"?",kind:Pt.Scalar}),i=void 0!==n?new ts(Is({name:n.text},n)):void 0,a=new Lr({content:"",startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,tag:o,anchor:i,styleGroup:Ir.Flow,style:Tr.Plain});return this.registerAnchor(a),a}}const Cs=Ns;function ks(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var $s=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=O,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=ks(this.xf["@@transducer/step"](e,!1))),e},e}();function Ds(e){return function(t){return new $s(e,t)}}const Ls=i(S(["all"],Ds,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),qs=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Us=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Vs=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Bs=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ne.wE)&&t.classes.includes(e),Hs=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Ws=e=>e({hasMethod:qs,hasBasicElementProps:Us,primitiveEq:Vs,isElementType:Hs,hasClass:Bs}),Gs=Ws((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.Hg||e(r)&&t(void 0,r))),zs=Ws((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.Om||e(r)&&t("string",r))),Zs=Ws((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.kT||e(r)&&t("number",r))),Ks=Ws((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.Os||e(r)&&t("null",r))),Js=Ws((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ne.bd||e(r)&&t("boolean",r))),Ys=Ws((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ne.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Xs=Ws((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ne.wE&&!(s instanceof ne.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Qs=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ne.Pr||e(s)&&t("member",s)&&r(void 0,s))),en=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ne.Ft||e(s)&&t("link",s)&&r(void 0,s))),tn=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ne.sI||e(s)&&t("ref",s)&&r(void 0,s))),rn=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xe||e(s)&&t("annotation",s)&&r("array",s))),sn=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof et||e(s)&&t("comment",s)&&r("string",s))),nn=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rt||e(s)&&t("parseResult",s)&&r("array",s))),on=e=>Hs("object",e)||Hs("array",e)||Hs("boolean",e)||Hs("number",e)||Hs("string",e)||Hs("null",e)||Hs("member",e),an=e=>!!Gs(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),cn=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Xs(r)&&Ls(hr(r.toValue()),e)},un=(e,t)=>0===e.length||Ls(hr(t.classes.toValue()),e);const ln=class extends bt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const _n=class extends ln{};const dn=class extends ln{},mn=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ne.KeyValuePair){const{key:t,value:n}=e,o=Gs(t)?mn(t,s):t,i=Gs(n)?mn(n,s):n,a=new ne.KeyValuePair(o,i);return r.set(e,a),a}if(e instanceof ne.ot){const t=e=>mn(e,s),n=[...e].map(t),o=new ne.ot(n);return r.set(e,o),o}if(e instanceof ne.G6){const t=e=>mn(e,s),n=[...e].map(t),o=new ne.G6(n);return r.set(e,o),o}if(Gs(e)){const t=fn(e);if(r.set(e,t),e.content)if(Gs(e.content))t.content=mn(e.content,s);else if(e.content instanceof ne.KeyValuePair)t.content=mn(e.content,s);else if(Array.isArray(e.content)){const r=e=>mn(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new _n("Value provided to cloneDeep function couldn't be cloned",{value:e})};mn.safe=e=>{try{return mn(e)}catch{return e}};const pn=e=>{const{key:t,value:r}=e;return new ne.KeyValuePair(t,r)},hn=e=>{const t=new e.constructor;if(t.element=e.element,an(e)&&Is(t,e),e.meta.length>0&&(t._meta=mn(e.meta)),e.attributes.length>0&&(t._attributes=mn(e.attributes)),Gs(e.content)){const r=e.content;t.content=hn(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ne.KeyValuePair?t.content=pn(e.content):t.content=e.content;return t},fn=e=>{if(e instanceof ne.KeyValuePair)return pn(e);if(e instanceof ne.ot)return(e=>{const t=[...e];return new ne.ot(t)})(e);if(e instanceof ne.G6)return(e=>{const t=[...e];return new ne.G6(t)})(e);if(Gs(e))return hn(e);throw new dn("Value provided to cloneShallow function couldn't be cloned",{value:e})};fn.safe=e=>{try{return fn(e)}catch{return e}};const gn=e=>Ys(e)?"ObjectElement":Xs(e)?"ArrayElement":Qs(e)?"MemberElement":zs(e)?"StringElement":Js(e)?"BooleanElement":Zs(e)?"NumberElement":Ks(e)?"NullElement":en(e)?"LinkElement":tn(e)?"RefElement":void 0,yn=e=>Gs(e)?fn(e):Xr(e),wn=ge(gn,at),bn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const vn=(e,t,{keyMap:r=bn,...s}={})=>es(e,t,{keyMap:r,nodeTypeGetter:gn,nodePredicate:wn,nodeCloneFn:yn,...s});vn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=bn,...s}={})=>es[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:gn,nodePredicate:wn,nodeCloneFn:yn,...s});const En=a((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})F(s,t)&&(n[s]=F(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)F(s,r)&&!F(s,n)&&(n[s]=r[s]);return n}));const xn=a((function e(t,r,s){return En((function(r,s,n){return Se(s)&&Se(n)?e(t,s,n):t(r,s,n)}),r,s)}));const Sn=i((function(e,t){return xn((function(e,t,r){return r}),e,t)}));const Pn=he(0,-1);const On=i((function(e,t){return e.apply(this,t)}));const Mn=G(Ge);var An=o((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():g(e)?[]:l(e)?"":Se(e)?{}:C(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 Tn=An;const In=o((function(e){return null!=e&&Q(e,Tn(e))}));const jn=R(1,Ge(Array.isArray)?Array.isArray:ge(J,we("Array")));const Rn=Ce(jn,In);const Fn=R(3,(function(e,t,r){var s=As(e,r),n=As(Pn(e),r);if(!Mn(s)&&!Rn(e)){var o=ae(s,n);return On(o,t)}})),Nn=()=>({predicates:{...e},namespace:it}),Cn={toolboxCreator:Nn,visitorOptions:{nodeTypeGetter:gn,exposeEdits:!0}},kn=(e,t,r={})=>{if(0===t.length)return e;const s=Sn(Cn,r),{toolboxCreator:n,visitorOptions:o}=s,i=n(),a=t.map((e=>e(i))),c=Qr(a.map(m({},"visitor")),{...o});a.forEach(Fn(["pre"],[]));const u=vn(e,c,o);return a.forEach(Fn(["post"],[])),u};kn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Sn(Cn,r),{toolboxCreator:n,visitorOptions:o}=s,i=n(),a=t.map((e=>e(i))),c=Qr[Symbol.for("nodejs.util.promisify.custom")],u=vn[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(m({},"visitor")),{...o});await Promise.allSettled(a.map(Fn(["pre"],[])));const _=await u(e,l,o);return await Promise.allSettled(a.map(Fn(["post"],[]))),_};const $n=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Gs(e)&&(e.meta.length>0&&(s.meta=mn(e.meta)),e.attributes.length>0&&(s.attributes=mn(e.attributes))),kn(s,r,{toolboxCreator:Nn,visitorOptions:{nodeTypeGetter:gn}})},Dn=e=>(t,r={})=>$n(t,{...r,Type:e});ne.Sh.refract=Dn(ne.Sh),ne.wE.refract=Dn(ne.wE),ne.Om.refract=Dn(ne.Om),ne.bd.refract=Dn(ne.bd),ne.Os.refract=Dn(ne.Os),ne.kT.refract=Dn(ne.kT),ne.Ft.refract=Dn(ne.Ft),ne.sI.refract=Dn(ne.sI),Xe.refract=Dn(Xe),et.refract=Dn(et),rt.refract=Dn(rt);const Ln={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...bn},qn=e=>Gs(e)?gn(e):Jr(e),Un=e=>Gs(e)||Yr(e)||Array.isArray(e);const Vn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new rt;t._content=e.children.flat(1);const r=t.findElements(on);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=ot()}comment(e){if(0===this.processedDocumentCount){const t=new et(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(t){const t=new Xe("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 r?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ne.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ne.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 ne.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===Tr.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})`,r=new Xe(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,s){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",o=new Xe(n);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===s.length){const e=new rt;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&Is(t,e)}};class Bn{cursor;constructor(e){this.cursor=e}stream(){return new js(this.cursor)}yaml_directive(){return new js(this.cursor)}tag_directive(){return new js(this.cursor)}reserved_directive(){return new js(this.cursor)}document(){return new js(this.cursor)}block_node(){return new js(this.cursor).setFieldName(this.cursor)}flow_node(){return new js(this.cursor).setFieldName(this.cursor)}block_mapping(){return new js(this.cursor)}block_mapping_pair(){return new js(this.cursor)}flow_mapping(){return new js(this.cursor)}flow_pair(){return new js(this.cursor)}block_sequence(){return new js(this.cursor)}block_sequence_item(){return new js(this.cursor)}flow_sequence(){return new js(this.cursor)}plain_scalar(){return new js(this.cursor)}single_quote_scalar(){return new js(this.cursor)}double_quote_scalar(){return new js(this.cursor)}block_scalar(){return new js(this.cursor)}ERROR(){return new js(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new js(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Bn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Bn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Hn=Bn,Wn=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new Hn(r),[n]=Array.from(s),o=new Cs,i=new Vn,a=new $r,c=new zr,u=es(n,o,{keyMap:Rs,nodePredicate:Fs,state:{schema:a,sourceMap:t,referenceManager:c}});return es(u.rootNode,i,{keyMap:Ln,nodeTypeGetter:qn,nodePredicate:Un,state:{sourceMap:t}})};class Gn extends ne.Sh{constructor(e,t,r){super(e,t,r),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 zn=Gn;class Zn extends ne.Om{constructor(e,t,r){super(e,t,r),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Kn=Zn;class Jn extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Yn=Jn;class Xn extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Qn=Xn;class eo extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const to=eo;class ro extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const so=ro;class no extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get 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 oo=no;class io extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get 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 ne.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const ao=io;class co extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const uo=co;const lo=class extends pt{};class _o extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const mo=_o;class po extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ho=po;class fo extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const go=fo;class yo extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const wo=yo;const bo=function(){return!0},vo=e=>"string"==typeof(null==e?void 0:e.type)?e.type:gn(e),Eo={EphemeralObject:["content"],EphemeralArray:["content"],...bn},xo=(e,t,{keyMap:r=Eo,...s}={})=>vn(e,t,{keyMap:r,nodeTypeGetter:vo,nodePredicate:bo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});xo[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Eo,...r}={})=>vn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:vo,nodePredicate:bo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const So=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 Po=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 Oo{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Po(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 So(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return zs(e.href)?e.href.toValue():""}}const Mo=e=>Gs(e)?zs(e)||Zs(e)||Js(e)||Ks(e)?e.toValue():xo(e,new Oo):e,Ao=e=>{const t=e.meta.length>0?mn(e.meta):void 0,r=e.attributes.length>0?mn(e.attributes):void 0;return new e.constructor(void 0,t,r)},To=(e,t)=>t.clone&&t.isMergeableElement(e)?jo(Ao(e),e,t):e,Io={clone:!0,isMergeableElement:e=>Ys(e)||Xs(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>To(e,r))),objectElementMerge:(e,t,r)=>{const s=Ys(e)?Ao(e):Ao(t);return Ys(e)&&e.forEach(((e,t,n)=>{const o=fn(n);o.value=To(e,r),s.content.push(o)})),t.forEach(((t,n,o)=>{const i=Mo(n);let a;if(Ys(e)&&e.hasKey(i)&&r.isMergeableElement(t)){const s=e.get(i);a=fn(o),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return jo;const r=t.customMerge(e,t);return"function"==typeof r?r:jo})(n,r)(s,t,r)}else a=fn(o),a.value=To(t,r);s.remove(i),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},jo=(e,t,r)=>{var s,n,o;const i={...Io,...r};i.isMergeableElement=null!==(s=i.isMergeableElement)&&void 0!==s?s:Io.isMergeableElement,i.arrayElementMerge=null!==(n=i.arrayElementMerge)&&void 0!==n?n:Io.arrayElementMerge,i.objectElementMerge=null!==(o=i.objectElementMerge)&&void 0!==o?o:Io.objectElementMerge;const a=Xs(t);if(!(a===Xs(e)))return To(t,i);const c=a&&"function"==typeof i.arrayElementMerge?i.arrayElementMerge(e,t,i):i.objectElementMerge(e,t,i);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>mn(e):e.customMetaMerge)(i)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>mn(e):e.customAttributesMerge)(i)(e.attributes,t.attributes),c};jo.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ne.Sh:e.reduce(((e,r)=>jo(e,r,t)),Ao(e[0]))};const Ro=jo;const Fo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ro(t.meta,e.meta)),an(e)&&Is(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ro(t.attributes,e.attributes))}};const No=class extends Fo{enter(e){return this.element=mn(e),Kr}},Co=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},ko=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:ko(r,[...t,r])},$o=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>ko(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,o=Object.create(n),i=ko(n);for(let t of e){let e=ko(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===i.indexOf(s)&&(Co(o,s,["constructor",...r]),i.push(s))}}return o.constructor=t,o},Do=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Lo=(e,t)=>{const r=t.map((e=>ko(e)));let s=0,n=!0;for(;n;){n=!1;for(let o=t.length-1;o>=0;o--){const t=r[o][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[o][0]}s++}},qo=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(Lo(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Lo(s,e)||void 0!==t[s],get:(r,s)=>(Lo(s,e)||t)[s],set(t,r,s){const n=Lo(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Uo=null,Vo="copy",Bo="copy",Ho="deep",Wo=new WeakMap,Go=e=>Wo.get(e),zo=(e,t)=>{var r,s;const n=Do([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),o={};for(let i of n)o[i]=Do([...null!==(r=null==e?void 0:e[i])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[i])&&void 0!==s?s:[]]);return o},Zo=(e,t)=>{var r,s,n,o;return{property:zo(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:zo(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(o=null==t?void 0:t.method)&&void 0!==o?o:{})}},Ko=(e,t)=>{var r,s,n,o,i,a;return{class:Do([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:Zo(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(o=null==t?void 0:t.static)&&void 0!==o?o:{}),instance:Zo(null!==(i=null==e?void 0:e.instance)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Jo=new Map,Yo=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...ko(e.prototype).map((e=>e.constructor)),...null!==(t=Go(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Jo.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Ko(e,t)))},Xo=e=>{let t=Jo.get(e);return t||(t={},Jo.set(e,t)),t};function Qo(...e){var t,r,s;const n=e.map((e=>e.prototype)),o=Uo;if(null!==o){const e=n.map((e=>e[o])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[o]:t};n.push(r)}function i(...t){for(const r of e)Co(this,new r(...t));null!==o&&"function"==typeof this[o]&&this[o].apply(this,t)}var a,c;i.prototype="copy"===Bo?$o(n,i):(a=n,c=i,qo([...a,{constructor:c}])),Object.setPrototypeOf(i,"copy"===Vo?$o(e,null,["prototype"]):qo(e,Function.prototype));let u=i;if("none"!==Ho){const n="deep"===Ho?Yo(...e):((...e)=>{const t=e.map((e=>Xo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Ko(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}ei(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),ei(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,_;return l=u,_=e,Wo.set(l,_),u}const ei=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const ti=o((function(e){return R(me(Ue,0,Ve("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const ri=o((function(e){return!In(e)}));const si=i((function(e,t){return e||t}));var ni=G(R(1,Ce($e,i((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(si)(e,t)}))(Le,Ge))));const oi=ti([at,ni,ri]);const ii=i((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const ai=class extends Fo{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return ii(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=As(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Ge,["visitors",...e],this.specObj)?As(["visitors",...e],this.specObj):As(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof No&&(null==s?void 0:s.constructor)===No?mn(t):(vn(t,s,r),s.element)}};const ci=class extends ai{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(zs(s)&&r.includes(Mo(s))&&!this.ignoredFields.includes(Mo(s))){const r=this.toRefractedElement([...t,"fixedFields",Mo(s)],e),o=new ne.Pr(mn(s),r);this.copyMetaAndAttributes(n,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(Mo(s))||this.element.content.push(mn(n))})),this.copyMetaAndAttributes(e,this.element),Kr}};const ui=class{parent;constructor({parent:e}){this.parent=e}},li=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mo||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),_i=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ho||e(s)&&t("JSONReference",s)&&r("object",s))),di=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof go||e(s)&&t("media",s)&&r("object",s))),mi=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wo||e(s)&&t("linkDescription",s)&&r("object",s)));class pi extends(Qo(ci,ui,No)){constructor(e){super(e),this.element=new mo,this.specPath=ee(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,ci.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(re(this.parent)&&!zs(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(li(this.parent)&&!zs(e.get("$schema"))){const e=c(Mo(this.parent.meta.get("inheritedDialectIdentifier")),Mo(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?mn(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ne.wE,s=Mo(e.get(t));oi(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const hi=pi,fi=e=>Ys(e)&&e.hasKey("$ref");class gi extends(Qo(ai,ui,No)){ObjectElement(e){const t=fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Kr}ArrayElement(e){return this.element=new ne.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Kr}}const yi=gi;const wi=class extends No{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const bi=function(){return!1};const vi=class extends ai{specPath;ignoredFields;fieldPatternPredicate=bi;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Mo(t))&&this.fieldPatternPredicate(Mo(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),o=new ne.Pr(mn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Mo(t))||this.element.content.push(mn(r))})),this.copyMetaAndAttributes(e,this.element),Kr}};const Ei=class extends vi{constructor(e){super(e),this.fieldPatternPredicate=oi}};class xi extends(Qo(Ei,ui,No)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Si=xi;class Pi extends(Qo(Ei,ui,No)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Oi=Pi;class Mi extends(Qo(Ei,ui,No)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ai=Mi;const Ti=class extends No{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Ii=class extends No{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 ji extends(Qo(ai,ui,No)){constructor(e){super(e),this.element=new ne.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Kr}}const Ri=ji;class Fi extends(Qo(ai,ui,No)){constructor(e){super(e),this.element=new ne.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Kr}}const Ni=Fi;class Ci extends(Qo(ai,ui,No)){constructor(e){super(e),this.element=new ne.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Kr}}const ki=Ci;class $i extends(Qo(Ei,ui,No)){constructor(e){super(e),this.element=new ne.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Di=$i;class Li extends(Qo(ai,ui,No)){constructor(e){super(e),this.element=new ne.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),Kr}}const qi=Li;class Ui extends(Qo(ci,No)){constructor(e){super(e),this.element=new ho,this.specPath=ee(["document","objects","JSONReference"])}ObjectElement(e){const t=ci.prototype.ObjectElement.call(this,e);return zs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Vi=Ui;const Bi=class extends No{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Hi=a((function(e,t,r){return R(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Wi=o((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Gi=i((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const zi=Gi;const Zi=o(ks);const Ki=G(Es);const Ji=Ce(jn,ri);function Yi(e){return function(e){if(Array.isArray(e))return Xi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var Qi=ge(zi(Wi((function(e,t){return e.length>t.length}))),ns,d("length")),ea=Rt((function(e,t,r){var s=r.apply(void 0,Yi(e));return Ki(s)?Zi(s):t}));const ta=Hi(Ji,(function(e){var t=Qi(e);return R(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return me(ea(r),void 0,e)}))}),te);const ra=class extends ai{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Hi(e,ee(t),te))),r=ta(t)(e);return this.element=this.toRefractedElement(r,e),Kr}};const sa=class extends ra{constructor(e){super(e),this.alternator=[{predicate:fi,specPath:["document","objects","JSONReference"]},{predicate:bo,specPath:["document","objects","JSONSchema"]}]}};class na extends(Qo(ci,No)){constructor(e){super(e),this.element=new go,this.specPath=ee(["document","objects","Media"])}}const oa=na;class ia extends(Qo(ci,No)){constructor(e){super(e),this.element=new wo,this.specPath=ee(["document","objects","LinkDescription"])}}const aa={visitors:{value:No,JSONSchemaOrJSONReferenceVisitor:sa,document:{objects:{JSONSchema:{$visitor:hi,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:sa,items:yi,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:wi,properties:Si,additionalProperties:sa,patternProperties:Oi,dependencies:Ai,enum:Ti,type:Ii,allOf:Ri,anyOf:Ni,oneOf:ki,not:sa,definitions:Di,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:qi,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Vi,fixedFields:{$ref:Bi}},Media:{$visitor:oa,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:ia,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:sa,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:sa}}}}}},ca=e=>{if(Gs(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ua={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bn},la={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",mo),t.register("jSONReference",ho),t.register("media",go),t.register("linkDescription",wo),t}},_a=()=>{const e=ot(la);return{predicates:{...t,isStringElement:zs},namespace:e}},da=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=aa}={})=>{const n=(0,ne.e)(e),o=Ts(s),i=new(As(t,o))({specObj:o});return vn(n,i),kn(i.element,r,{toolboxCreator:_a,visitorOptions:{keyMap:ua,nodeTypeGetter:ca}})},ma=e=>(t,r={})=>da(t,{specPath:e,...r});mo.refract=ma(["visitors","document","objects","JSONSchema","$visitor"]),ho.refract=ma(["visitors","document","objects","JSONReference","$visitor"]),go.refract=ma(["visitors","document","objects","Media","$visitor"]),wo.refract=ma(["visitors","document","objects","LinkDescription","$visitor"]);const pa=class extends mo{constructor(e,t,r){super(e,t,r),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new lo("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new lo("idProp setter in Parameter class is not not supported.")}get $schema(){throw new lo("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new lo("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new lo("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new lo("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 lo("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new lo("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new lo("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new lo("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 lo("properties getter in Parameter class is not not supported.")}set properties(e){throw new lo("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new lo("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new lo("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new lo("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new lo("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new lo("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new lo("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 lo("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new lo("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new lo("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new lo("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new lo("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new lo("oneOf setter in Parameter class is not not supported.")}get not(){throw new lo("not getter in Parameter class is not not supported.")}set not(e){throw new lo("not setter in Parameter class is not not supported.")}get definitions(){throw new lo("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new lo("definitions setter in Parameter class is not not supported.")}get title(){throw new lo("title getter in Parameter class is not not supported.")}set title(e){throw new lo("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 lo("base getter in Parameter class is not not supported.")}set base(e){throw new lo("base setter in Parameter class is not not supported.")}get links(){throw new lo("links getter in Parameter class is not not supported.")}set links(e){throw new lo("links setter in Parameter class is not not supported.")}get media(){throw new lo("media getter in Parameter class is not not supported.")}set media(e){throw new lo("media setter in Parameter class is not not supported.")}get readOnly(){throw new lo("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new lo("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 ha=class extends mo{constructor(e,t,r){super(e,t,r),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new lo("idProp getter in Items class is not not supported.")}set idProp(e){throw new lo("idProp setter in Items class is not not supported.")}get $schema(){throw new lo("$schema getter in Items class is not not supported.")}set $schema(e){throw new lo("$schema setter in Items class is not not supported.")}get additionalItems(){throw new lo("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new lo("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 lo("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new lo("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new lo("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new lo("minProperties setter in Items class is not not supported.")}get required(){throw new lo("required getter in Items class is not not supported.")}set required(e){throw new lo("required setter in Items class is not not supported.")}get properties(){throw new lo("properties getter in Items class is not not supported.")}set properties(e){throw new lo("properties setter in Items class is not not supported.")}get additionalProperties(){throw new lo("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new lo("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new lo("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new lo("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new lo("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new lo("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 lo("allOf getter in Items class is not not supported.")}set allOf(e){throw new lo("allOf setter in Items class is not not supported.")}get anyOf(){throw new lo("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new lo("anyOf setter in Items class is not not supported.")}get oneOf(){throw new lo("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new lo("oneOf setter in Items class is not not supported.")}get not(){throw new lo("not getter in Items class is not not supported.")}set not(e){throw new lo("not setter in Items class is not not supported.")}get definitions(){throw new lo("definitions getter in Items class is not not supported.")}set definitions(e){throw new lo("definitions setter in Items class is not not supported.")}get title(){throw new lo("title getter in Items class is not not supported.")}set title(e){throw new lo("title setter in Items class is not not supported.")}get description(){throw new lo("description getter in Items class is not not supported.")}set description(e){throw new lo("description setter in Items class is not not supported.")}get base(){throw new lo("base getter in Items class is not not supported.")}set base(e){throw new lo("base setter in Items class is not not supported.")}get links(){throw new lo("links getter in Items class is not not supported.")}set links(e){throw new lo("links setter in Items class is not not supported.")}get media(){throw new lo("media getter in Items class is not not supported.")}set media(e){throw new lo("media setter in Items class is not not supported.")}get readOnly(){throw new lo("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new lo("readOnly setter in Items class is not not supported.")}};class fa extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ga=fa;class ya extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get 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 wa=ya;class ba extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="headers"}}const va=ba;class Ea extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="example"}}const xa=Ea;const Sa=class extends mo{constructor(e,t,r){super(e,t,r),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new lo("idProp getter in Header class is not not supported.")}set idProp(e){throw new lo("idProp setter in Header class is not not supported.")}get $schema(){throw new lo("$schema getter in Header class is not not supported.")}set $schema(e){throw new lo("$schema setter in Header class is not not supported.")}get additionalItems(){throw new lo("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new lo("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 lo("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new lo("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new lo("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new lo("minProperties setter in Header class is not not supported.")}get required(){throw new lo("required getter in Header class is not not supported.")}set required(e){throw new lo("required setter in Header class is not not supported.")}get properties(){throw new lo("properties getter in Header class is not not supported.")}set properties(e){throw new lo("properties setter in Header class is not not supported.")}get additionalProperties(){throw new lo("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new lo("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new lo("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new lo("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new lo("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new lo("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 lo("allOf getter in Header class is not not supported.")}set allOf(e){throw new lo("allOf setter in Header class is not not supported.")}get anyOf(){throw new lo("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new lo("anyOf setter in Header class is not not supported.")}get oneOf(){throw new lo("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new lo("oneOf setter in Header class is not not supported.")}get not(){throw new lo("not getter in Header class is not not supported.")}set not(e){throw new lo("not setter in Header class is not not supported.")}get definitions(){throw new lo("definitions getter in Header class is not not supported.")}set definitions(e){throw new lo("definitions setter in Header class is not not supported.")}get title(){throw new lo("title getter in Header class is not not supported.")}set title(e){throw new lo("title setter in Header class is not not supported.")}get base(){throw new lo("base getter in Header class is not not supported.")}set base(e){throw new lo("base setter in Header class is not not supported.")}get links(){throw new lo("links getter in Header class is not not supported.")}set links(e){throw new lo("links setter in Header class is not not supported.")}get media(){throw new lo("media getter in Header class is not not supported.")}set media(e){throw new lo("media setter in Header class is not not supported.")}get readOnly(){throw new lo("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new lo("readOnly setter in Header class is not not supported.")}};class Pa extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Oa=Pa;class Ma extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Aa=Ma;const Ta=class extends mo{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new lo("idProp getter in Schema class is not not supported.")}set idProp(e){throw new lo("idProp setter in Schema class is not not supported.")}get $schema(){throw new lo("$schema getter in Schema class is not not supported.")}set $schema(e){throw new lo("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new lo("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new lo("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new lo("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new lo("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new lo("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new lo("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new lo("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new lo("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new lo("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new lo("oneOf setter in Schema class is not not supported.")}get not(){throw new lo("not getter in Schema class is not not supported.")}set not(e){throw new lo("not setter in Schema class is not not supported.")}get definitions(){throw new lo("definitions getter in Schema class is not not supported.")}set definitions(e){throw new lo("definitions setter in Schema class is not not supported.")}get base(){throw new lo("base getter in Schema class is not not supported.")}set base(e){throw new lo("base setter in Schema class is not not supported.")}get links(){throw new lo("links getter in Schema class is not not supported.")}set links(e){throw new lo("links setter in Schema class is not not supported.")}get media(){throw new lo("media getter in Schema class is not not supported.")}set media(e){throw new lo("media setter in Schema class is not not supported.")}};class Ia extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const ja=Ia;class Ra extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="definitions"}}const Fa=Ra;class Na extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="parametersDefinitions"}}const Ca=Na;class ka extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="responsesDefinitions"}}const $a=ka;class Da extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="securityDefinitions"}}const La=Da;class qa extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get 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 Ua=qa;class Va extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="scopes"}}const Ba=Va;class Ha extends ne.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Wa=Ha;const Ga=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ro(t.meta,e.meta)),an(e)&&Is(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ro(t.attributes,e.attributes))}};const za=class extends Ga{enter(e){return this.element=mn(e),Kr}};const Za=class extends Ga{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return ii(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=As(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Ge,["visitors",...e],this.specObj)?As(["visitors",...e],this.specObj):As(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof za&&(null==s?void 0:s.constructor)===za?mn(t):(vn(t,s,r),s.element)}};var Ka=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=M,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?ks(r):r},e}();function Ja(e){return function(t){return new Ka(e,t)}}const Ya=i(S(["take"],Ja,(function(e,t){return he(0,e<0?1/0:e,t)})));const Xa=i((function(e,t){return Q(Ya(e.length,t),e)})),Qa=e=>zs(e.key)&&Xa("x-",Mo(e.key)),ec=e=>Ys(e)&&e.hasKey("$ref");const tc=class extends Za{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Qa;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(zs(s)&&r.includes(Mo(s))&&!this.ignoredFields.includes(Mo(s))){const r=this.toRefractedElement([...t,"fixedFields",Mo(s)],e),o=new ne.Pr(mn(s),r);this.copyMetaAndAttributes(n,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(Mo(s))||this.element.content.push(mn(n))})),this.copyMetaAndAttributes(e,this.element),Kr}};class rc extends(Qo(tc,za)){constructor(e){super(e),this.element=new zn,this.specPath=ee(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const sc=rc;class nc extends(Qo(Za,za)){StringElement(e){const t=new Kn(Mo(e));return this.copyMetaAndAttributes(e,t),this.element=t,Kr}}const oc=nc;const ic=class extends za{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const ac=class extends za{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};class cc extends ne.wE{static primaryClass="swagger-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(cc.primaryClass)}}const uc=cc;const lc=class extends za{constructor(e){super(e),this.element=new uc}ArrayElement(e){return this.element=this.element.concat(mn(e)),Kr}};class _c extends ne.wE{static primaryClass="swagger-consumes";constructor(e,t,r){super(e,t,r),this.classes.push(_c.primaryClass)}}const dc=_c;const mc=class extends za{constructor(e){super(e),this.element=new dc}ArrayElement(e){return this.element=this.element.concat(mn(e)),Kr}};class pc extends ne.wE{static primaryClass="swagger-produces";constructor(e,t,r){super(e,t,r),this.classes.push(pc.primaryClass)}}const hc=pc;const fc=class extends za{constructor(e){super(e),this.element=new hc}ArrayElement(e){return this.element=this.element.concat(mn(e)),Kr}};class gc extends ne.wE{static primaryClass="swagger-security";constructor(e,t,r){super(e,t,r),this.classes.push(gc.primaryClass),this.classes.push("security")}}const yc=gc;class wc extends(Qo(Za,za)){constructor(e){super(e),this.element=new yc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Kr}}const bc=wc;class vc extends ne.wE{static primaryClass="swagger-tags";constructor(e,t,r){super(e,t,r),this.classes.push(vc.primaryClass)}}const Ec=vc;class xc extends(Qo(Za,za)){constructor(e){super(e),this.element=new Ec}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Kr}}const Sc=xc;class Pc extends(Qo(tc,za)){constructor(e){super(e),this.element=new Yn,this.specPath=ee(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Oc=Pc;const Mc=class extends za{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ac extends(Qo(tc,za)){constructor(e){super(e),this.element=new Qn,this.specPath=ee(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Tc=Ac;class Ic extends(Qo(tc,za)){constructor(e){super(e),this.element=new to,this.specPath=ee(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const jc=Ic;const Rc=class extends Za{specPath;ignoredFields;fieldPatternPredicate=bi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Qa;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...o}){super({...o}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(Mo(t))&&this.fieldPatternPredicate(Mo(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),o=new ne.Pr(mn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Mo(t))||this.element.content.push(mn(r))})),this.copyMetaAndAttributes(e,this.element),Kr}},Fc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zn||e(s)&&t("swagger",s)&&r("object",s))),Nc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kn||e(s)&&t("swaggerVersion",s)&&r("string",s))),Cc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yn||e(s)&&t("info",s)&&r("object",s))),kc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof to||e(s)&&t("license",s)&&r("object",s))),$c=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qn||e(s)&&t("contact",s)&&r("object",s))),Dc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof so||e(s)&&t("paths",s)&&r("object",s))),Lc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oo||e(s)&&t("pathItem",s)&&r("object",s))),qc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ao||e(s)&&t("operation",s)&&r("object",s))),Uc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uo||e(s)&&t("externalDocumentation",s)&&r("object",s))),Vc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pa||e(s)&&t("parameter",s)&&r("object",s))),Bc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ha||e(s)&&t("items",s)&&r("object",s))),Hc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ga||e(s)&&t("responses",s)&&r("object",s))),Wc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wa||e(s)&&t("response",s)&&r("object",s))),Gc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof va||e(s)&&t("headers",s)&&r("object",s))),zc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xa||e(s)&&t("example",s)&&r("object",s))),Zc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sa||e(s)&&t("header",s)&&r("object",s))),Kc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Oa||e(s)&&t("tag",s)&&r("object",s))),Jc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Aa||e(s)&&t("reference",s)&&r("object",s))),Yc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ta||e(s)&&t("schema",s)&&r("object",s))),Xc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ja||e(s)&&t("xml",s)&&r("object",s))),Qc=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $a||e(s)&&t("responsesDefinitions",s)&&r("object",s))),eu=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof La||e(s)&&t("securityDefinitions",s)&&r("object",s))),tu=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fa||e(s)&&t("definitions",s)&&r("object",s))),ru=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ca||e(s)&&t("parametersDefinitions",s)&&r("object",s))),su=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ua||e(s)&&t("securityScheme",s)&&r("object",s))),nu=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ba||e(s)&&t("scopes",s)&&r("object",s))),ou=Ws((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wa||e(s)&&t("securityRequirement",s)&&r("object",s)));class iu extends(Qo(Rc,za)){element;constructor(e){super(e),this.element=new so,this.specPath=ee(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=bo}ObjectElement(e){const t=Rc.prototype.ObjectElement.call(this,e);return this.element.filter(Lc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",mn(t))})),t}}const au=iu;class cu extends(Qo(tc,za)){constructor(e){super(e),this.element=new oo,this.specPath=ee(["document","objects","PathItem"])}ObjectElement(e){const t=tc.prototype.ObjectElement.call(this,e);return this.element.filter(qc).forEach(((e,t)=>{const r=mn(t);r.content=Mo(r).toUpperCase(),e.setMetaProperty("http-method",r)})),zs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const uu=cu;const lu=class extends za{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class _u extends ne.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(_u.primaryClass),this.classes.push("parameters")}}const du=_u;class mu extends(Qo(Za,za)){constructor(e){super(e),this.element=new du}ArrayElement(e){return e.forEach((e=>{const t=ec(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Jc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Kr}}const pu=mu;class hu extends(Qo(tc,za)){constructor(e){super(e),this.element=new ao,this.specPath=ee(["document","objects","Operation"])}}const fu=hu;class gu extends ne.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(gu.primaryClass),this.classes.push("tags")}}const yu=gu;const wu=class extends za{constructor(e){super(e),this.element=new yu}ArrayElement(e){return this.element=this.element.concat(mn(e)),Kr}};class bu extends ne.wE{static primaryClass="operation-consumes";constructor(e,t,r){super(e,t,r),this.classes.push(bu.primaryClass)}}const vu=bu;const Eu=class extends za{constructor(e){super(e),this.element=new vu}ArrayElement(e){return this.element=this.element.concat(mn(e)),Kr}};class xu extends ne.wE{static primaryClass="operation-produces";constructor(e,t,r){super(e,t,r),this.classes.push(xu.primaryClass)}}const Su=xu;const Pu=class extends za{constructor(e){super(e),this.element=new Su}ArrayElement(e){return this.element=this.element.concat(mn(e)),Kr}};class Ou extends ne.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ou.primaryClass),this.classes.push("parameters")}}const Mu=Ou;class Au extends(Qo(Za,za)){constructor(e){super(e),this.element=new Mu}ArrayElement(e){return e.forEach((e=>{const t=ec(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Jc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Kr}}const Tu=Au;class Iu extends ne.wE{static primaryClass="operation-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Iu.primaryClass)}}const ju=Iu;const Ru=class extends za{constructor(e){super(e),this.element=new ju}ArrayElement(e){return this.element=this.element.concat(mn(e)),Kr}};class Fu extends ne.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Fu.primaryClass),this.classes.push("security")}}const Nu=Fu;class Cu extends(Qo(Za,za)){constructor(e){super(e),this.element=new Nu}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Kr}}const ku=Cu;class $u extends(Qo(tc,za)){constructor(e){super(e),this.element=new uo,this.specPath=ee(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Du=$u;class Lu extends(Qo(tc,za)){constructor(e){super(e),this.element=new pa,this.specPath=ee(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const qu=Lu;class Uu extends(Qo(tc,za)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new ha,this.specPath=ee(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const Vu=Uu;const Bu=i((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ie(e));var r;return function(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":""))}(e).test(t)}));function Hu(e){return"[object Number]"===Object.prototype.toString.call(e)}const Wu=i((function(e,t){if(!Hu(e)||!Hu(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));function Gu(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var o=e?1:0;return!!r._items[n][o]||(t&&(r._items[n][o]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const zu=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Gu(e,!0,this)},e.prototype.has=function(e){return Gu(e,!1,this)},e}();const Zu=i((function(e,t){for(var r=[],s=0,n=e.length,o=t.length,i=new zu,a=0;a<o;a+=1)i.add(t[a]);for(;s<n;)i.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));class Ku extends(Qo(tc,Rc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Zu(e.keys(),t)],tc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Rc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Kr}}const Ju=Ku;class Yu extends(Qo(Ju,za)){constructor(e){super(e),this.element=new ga,this.specPathFixedFields=ee(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ec(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=Bu(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Wu(100,600).join("|")})$`))}ObjectElement(e){const t=Ju.prototype.ObjectElement.call(this,e);return this.element.filter(Jc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Wc).forEach(((e,t)=>{const r=mn(t);this.fieldPatternPredicate(Mo(r))&&e.setMetaProperty("http-status-code",r)})),t}}const Xu=Yu;const Qu=class extends Za{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Hi(e,ee(t),te))),r=ta(t)(e);return this.element=this.toRefractedElement(r,e),Kr}};class el extends(Qo(Qu,za)){constructor(e){super(e),this.alternator=[{predicate:ec,specPath:["document","objects","Reference"]},{predicate:bo,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Qu.prototype.enter.call(this,e);return Jc(this.element)?this.element.setMetaProperty("referenced-element","response"):Wc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const tl=el;class rl extends(Qo(tc,za)){constructor(e){super(e),this.element=new wa,this.specPath=ee(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const sl=rl;const nl=class extends Rc{constructor(e){super(e),this.fieldPatternPredicate=oi}};class ol extends(Qo(nl,za)){constructor(e){super(e),this.element=new va,this.specPath=ee(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const il=ol;class al extends(Qo(nl,za)){constructor(e){super(e),this.element=new xa,this.specPath=ee(["value"]),this.canSupportSpecificationExtensions=!1}}const cl=al;class ul extends(Qo(tc,za)){constructor(e){super(e),this.element=new Sa,this.specPath=ee(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const ll=ul;class _l extends(Qo(tc,za)){constructor(e){super(e),this.element=new Oa,this.specPath=ee(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const dl=_l;class ml extends(Qo(tc,za)){constructor(e){super(e),this.element=new Aa,this.specPath=ee(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=tc.prototype.ObjectElement.call(this,e);return zs(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const pl=ml;const hl=class extends za{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class fl extends(Qo(tc,za)){constructor(e){super(e),this.element=new Ta,this.specPath=ee(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const gl=fl,yl=aa.visitors.document.objects.JSONSchema.fixedFields.allOf;const wl=class extends yl{ArrayElement(e){const t=yl.prototype.ArrayElement.call(this,e);return this.element.filter(_i).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},bl=aa.visitors.document.objects.JSONSchema.fixedFields.items;const vl=class extends bl{ObjectElement(e){const t=bl.prototype.ObjectElement.call(this,e);return _i(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=bl.prototype.ArrayElement.call(this,e);return this.element.filter(_i).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},El=aa.visitors.document.objects.JSONSchema.fixedFields.properties;const xl=class extends El{ObjectElement(e){const t=El.prototype.ObjectElement.call(this,e);return this.element.filter(_i).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Sl=aa.visitors.JSONSchemaOrJSONReferenceVisitor;const Pl=class extends Sl{ObjectElement(e){const t=Sl.prototype.enter.call(this,e);return _i(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Ol extends(Qo(tc,za)){constructor(e){super(e),this.element=new ja,this.specPath=ee(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Ml=Ol;class Al extends(Qo(nl,za)){constructor(e){super(e),this.element=new Fa,this.specPath=e=>fi(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=nl.prototype.ObjectElement.call(this,e);return this.element.filter(_i).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Tl=Al;class Il extends(Qo(nl,za)){constructor(e){super(e),this.element=new $a,this.specPath=ee(["document","objects","Response"])}}const jl=Il;class Rl extends(Qo(nl,za)){constructor(e){super(e),this.element=new Ca,this.specPath=ee(["document","objects","Parameter"])}}const Fl=Rl;class Nl extends(Qo(nl,za)){element;constructor(e){super(e),this.element=new La,this.specPath=ee(["document","objects","SecurityScheme"])}}const Cl=Nl;class kl extends(Qo(tc,za)){constructor(e){super(e),this.element=new Ua,this.specPath=ee(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const $l=kl;class Dl extends(Qo(nl,za)){constructor(e){super(e),this.element=new Ba,this.specPath=ee(["value"]),this.canSupportSpecificationExtensions=!0}}const Ll=Dl;class ql extends(Qo(nl,za)){constructor(e){super(e),this.element=new Wa,this.specPath=ee(["value"])}}const Ul=ql;const Vl=class extends Za{MemberElement(e){return this.element=mn(e),this.element.classes.push("specification-extension"),Kr}},{fixedFields:Bl}=aa.visitors.document.objects.JSONSchema,Hl={visitors:{value:za,document:{objects:{JSONReference:aa.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:sc,fixedFields:{swagger:oc,info:{$ref:"#/visitors/document/objects/Info"},host:ic,basePath:ac,schemes:lc,consumes:mc,produces:fc,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:bc,tags:Sc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Oc,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:Mc}},Contact:{$visitor:Tc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:jc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:au},PathItem:{$visitor:uu,fixedFields:{$ref:lu,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:pu}},Operation:{$visitor:fu,fixedFields:{tags:wu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:Eu,produces:Pu,parameters:Tu,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:Ru,deprecated:{$ref:"#/visitors/value"},security:ku}},ExternalDocumentation:{$visitor:Du,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:qu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:Bl.description,required:Bl.required,schema:Pl,type:Bl.type,format:Bl.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Bl.default,maximum:Bl.maximum,exclusiveMaximum:Bl.exclusiveMaximum,minimum:Bl.minimum,exclusiveMinimum:Bl.exclusiveMinimum,maxLength:Bl.maxLength,minLength:Bl.minLength,pattern:Bl.pattern,maxItems:Bl.maxItems,minItems:Bl.minItems,uniqueItems:Bl.uniqueItems,enum:Bl.enum,multipleOf:Bl.multipleOf}},Items:{$visitor:Vu,fixedFields:{type:Bl.type,format:Bl.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Bl.default,maximum:Bl.maximum,exclusiveMaximum:Bl.exclusiveMaximum,minimum:Bl.minimum,exclusiveMinimum:Bl.exclusiveMinimum,maxLength:Bl.maxLength,minLength:Bl.minLength,pattern:Bl.pattern,maxItems:Bl.maxItems,minItems:Bl.minItems,uniqueItems:Bl.uniqueItems,enum:Bl.enum,multipleOf:Bl.multipleOf}},Responses:{$visitor:Xu,fixedFields:{default:tl}},Response:{$visitor:sl,fixedFields:{description:{$ref:"#/visitors/value"},schema:Pl,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:il},Example:{$visitor:cl},Header:{$visitor:ll,fixedFields:{description:Bl.description,type:Bl.type,format:Bl.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Bl.default,maximum:Bl.maximum,exclusiveMaximum:Bl.exclusiveMaximum,minimum:Bl.minimum,exclusiveMinimum:Bl.exclusiveMinimum,maxLength:Bl.maxLength,minLength:Bl.minLength,pattern:Bl.pattern,maxItems:Bl.maxItems,minItems:Bl.minItems,uniqueItems:Bl.uniqueItems,enum:Bl.enum,multipleOf:Bl.multipleOf}},Tag:{$visitor:dl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:pl,fixedFields:{$ref:hl}},Schema:{$visitor:gl,fixedFields:{format:Bl.format,title:Bl.title,description:Bl.description,default:Bl.default,multipleOf:Bl.multipleOf,maximum:Bl.maximum,exclusiveMaximum:Bl.exclusiveMaximum,minimum:Bl.minimum,exclusiveMinimum:Bl.exclusiveMinimum,maxLength:Bl.maxLength,minLength:Bl.minLength,pattern:Bl.pattern,maxItems:Bl.maxItems,minItems:Bl.minItems,uniqueItems:Bl.uniqueItems,maxProperties:Bl.maxProperties,minProperties:Bl.minProperties,required:Bl.required,enum:Bl.enum,type:Bl.type,readOnly:Bl.readOnly,items:vl,allOf:wl,properties:xl,additionalProperties:Pl,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Ml,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Tl},ParametersDefinitions:{$visitor:Fl},ResponsesDefinitions:{$visitor:jl},SecurityDefinitions:{$visitor:Cl},SecurityScheme:{$visitor:$l,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:Ll},SecurityRequirement:{$visitor:Ul}},extension:{$visitor:Vl}}}},Wl=e=>{if(Gs(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gl={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"],...bn},zl={namespace:e=>{const{base:t}=e;return t.register("swagger",zn),t.register("swaggerVersion",Kn),t.register("info",Yn),t.register("contact",Qn),t.register("license",to),t.register("paths",so),t.register("pathItem",oo),t.register("operation",ao),t.register("externalDocumentation",uo),t.register("parameter",pa),t.register("items",ha),t.register("responses",ga),t.register("response",wa),t.register("headers",va),t.register("example",xa),t.register("header",Sa),t.register("tag",Oa),t.register("reference",Aa),t.register("schema",Ta),t.register("xml",ja),t.register("definitions",Fa),t.register("parametersDefinitions",Ca),t.register("responsesDefinitions",$a),t.register("securityDefinitions",La),t.register("securityScheme",Ua),t.register("scopes",Ba),t.register("securityRequirement",Wa),t}},Zl=()=>{const e=ot(zl);return{predicates:{...r,...s,isStringElement:zs},namespace:e}},Kl=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:r=[]}={})=>{const s=(0,ne.e)(e),n=Ts(Hl),o=new(As(t,n))({specObj:n});return vn(s,o),kn(o.element,r,{toolboxCreator:Zl,visitorOptions:{keyMap:Gl,nodeTypeGetter:Wl}})},Jl=e=>(t,r={})=>Kl(t,{specPath:e,...r});zn.refract=Jl(["visitors","document","objects","Swagger","$visitor"]),Kn.refract=Jl(["visitors","document","objects","SwaggerVersion","$visitor"]),Yn.refract=Jl(["visitors","document","objects","Info","$visitor"]),Qn.refract=Jl(["visitors","document","objects","Contact","$visitor"]),to.refract=Jl(["visitors","document","objects","License","$visitor"]),so.refract=Jl(["visitors","document","objects","Paths","$visitor"]),oo.refract=Jl(["visitors","document","objects","PathItem","$visitor"]),ao.refract=Jl(["visitors","document","objects","Operation","$visitor"]),uo.refract=Jl(["visitors","document","objects","ExternalDocumentation","$visitor"]),pa.refract=Jl(["visitors","document","objects","Parameter","$visitor"]),ha.refract=Jl(["visitors","document","objects","Items","$visitor"]),ga.refract=Jl(["visitors","document","objects","Responses","$visitor"]),wa.refract=Jl(["visitors","document","objects","Response","$visitor"]),va.refract=Jl(["visitors","document","objects","Headers","$visitor"]),xa.refract=Jl(["visitors","document","objects","Example","$visitor"]),Sa.refract=Jl(["visitors","document","objects","Header","$visitor"]),Oa.refract=Jl(["visitors","document","objects","Tag","$visitor"]),Aa.refract=Jl(["visitors","document","objects","Reference","$visitor"]),Ta.refract=Jl(["visitors","document","objects","Schema","$visitor"]),ja.refract=Jl(["visitors","document","objects","XML","$visitor"]),Fa.refract=Jl(["visitors","document","objects","Definitions","$visitor"]),Ca.refract=Jl(["visitors","document","objects","ParametersDefinitions","$visitor"]),$a.refract=Jl(["visitors","document","objects","ResponsesDefinitions","$visitor"]),La.refract=Jl(["visitors","document","objects","SecurityDefinitions","$visitor"]),Ua.refract=Jl(["visitors","document","objects","SecurityScheme","$visitor"]),Ba.refract=Jl(["visitors","document","objects","Scopes","$visitor"]),Wa.refract=Jl(["visitors","document","objects","SecurityRequirement","$visitor"]);const Yl=o((function(e){return _(-1,e)}));const Xl=class extends lo{};const Ql=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Xl("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Xl("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Xl("latest method in MediaTypes class is not yet implemented.")}};class e_ extends Ql{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Yl(this.filterByFormat(e))}}const t_=new e_("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),r_=new e_(...t_.filterByFormat("generic"),...t_.filterByFormat("yaml")),s_=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,n_=async e=>s_.test(e)&&await(async e=>{try{return!(await wt(e)).rootNode.isError}catch{return!1}})(e),o_=async(e,t={})=>{const r=m({},"refractorOpts",t),s=h(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const r=await wt(e);return Wn(r,{sourceMap:t})})(e,s),{result:o}=n;if(se(o)){const e=zn.refract(o,r);e.classes.push("result"),n.replaceResult(e)}return n},i_=ot(zl)})(),__webpack_exports__})()));