@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 1.2.1 → 1.2.2
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.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(8900),i=s(1811),o=s(6625);for(var a in r)i(n[a],a),o[a]=o.Array},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,s)=>{"use strict";var r=s(9098),n=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),l=s(3671),u=s(3491),d=s(1811),m=s(3999),h=s(3508),p=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,p,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===p&&k)return k;if(!b&&e&&e in R)return R[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",N=!1,R=e.prototype,I=R[w]||R["@@iterator"]||p&&R[p],k=!b&&I||M(p),C="Array"===t&&R.entries||I;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||h(P,w,j)),d(P,F,!0,!0),i&&(_[F]=j)),g&&p===x&&I&&I.name!==x&&(!i&&y?m(R,"name",x):(N=!0,k=function(){return n(I,this)})),p)if(T={values:M(x),keys:f?k:M(E),entries:M(S)},O)for(A in T)(b||N||!(A in R))&&h(R,A,T[A]);else r({target:t,proto:!0,forced:b||N},T);return i&&!O||R[w]===k||h(R,w,k,{name:p}),_[t]=k,T}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},208:(e,t,s)=>{"use strict";var r=s(4572),n=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),l=s(4317),u=s(1613),d=s(967),m=s(1743),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},_=p.prototype;e.exports=function(e,t,s){var f,g,y,v,b,w,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),T=r(t,x),A=function(e){return f&&m(f,"normal",e),new p(!0,e)},M=function(e){return S?(i(e),P?T(e[0],e[1],A):T(e[0],e[1])):P?T(e,A):T(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=d(e)))throw new h(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=M(e[y]))&&l(_,b))return b;return new p(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=M(E.value)}catch(e){m(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new p(!1)}},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),l=s(5853),u=s(8666),d="[object Arguments]",m="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?m:a(e),w=v?m:a(t),E=(b=b==d?h:b)==h,x=(w=w==d?h:w)==h,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,T=O?t.value():t;return g||(g=new r),f(P,T,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,f,g))}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),d=!s&&!u&&o(e),m=!s&&!u&&!d&&c(e),h=s||u||d||m,p=h?r(e.length,String):[],_=p.length;for(var f in e)!t&&!l.call(e,f)||h&&("length"==f||d&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||p.push(f);return p}},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,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 s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),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 s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),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,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},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,s)=>{"use strict";var r=s(9098),n=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},d=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),r({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,s)=>{"use strict";var r=s(4713),n=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new l("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,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),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,s)=>{var r=s(7379),n=s(5387),i=s(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[r(e)]}},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,s)=>{"use strict";var r=s(8407),n=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[r(e)]}},986:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(e)}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!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,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var m=l[d];if(!(c?m in t:n.call(t,m)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++d<u;){var g=e[m=l[d]],y=t[m];if(i)var v=c?i(y,g,m,t,e,a):i(g,y,m,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==m)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,s)=>{var r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},1212:(e,t,s)=>{e.exports=s(8411)},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1314:(e,t,s)=>{"use strict";var r=s(8900),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1386:(e,t,s)=>{var r=s(2393),n=s(2049),i=s(7144),o=s(7452),a=s(3964);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,a=r("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},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,s)=>{"use strict";var r=s(4713),n=s(814),i=s(7235),o=s(459),a=s(967),c=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(n(s))return i(r(s,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return n(o),s}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},1780:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!r&&i(u,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},1950:(e,t,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},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,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),a=s(2769),c=s(262),l=s(5780),u=s(3671),d=s(3508),m=s(8655),h=s(4871),p=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=l(r)),a(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:_}},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,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||null,t,s),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,s)=>{"use strict";var r=s(9098),n=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),l=s(3999),u=s(480),d=s(8148),m=s(4279),h=s(208),p=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",p(t)),m(s,y,s.stack,1),arguments.length>2&&d(s,arguments[2]);var a=[];return h(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=y.prototype=c(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}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(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.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),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}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,s)=>{if(e){const r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},3283:(e,t,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,s)=>{"use strict";var r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return i(s),o(r),n(s)?(t?e(s,r):s.__proto__=r,s):s}}():void 0)},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&r(o=t.constructor)&&o!==s&&n(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},3531:(e,t,s)=>{"use strict";var r=s(8900).navigator,n=r&&r.userAgent;e.exports=n?String(n):""},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},3753:(e,t,s)=>{"use strict";var r=s(4871),n=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:r?"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(s){return e(t(s))}}},3832:(e,t,s)=>{"use strict";var r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?a(void 0,!0):(e=r(s,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(((s,r)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?r(e):s(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,s)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&s(r.response),t(r.status)},r.onerror=t,r.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,s){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(s,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,s,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,r)}))))}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 s=getDylinkMetadata(t);return s.neededDynlibs&&(dynamicLibraries=s.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 s=GOT[t];return s||(s=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(s.required=!0),s}},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,s)=>{for(var r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function r(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}function n(){var s=r();return UTF8ArrayToString(e,(t+=s)-s,s)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),s=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var l=r();s=t+l,o=n()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var d=r(),m=0;m<d;++m){var h=n();u.neededDynlibs.push(h)}}else{i("dylink.0"!==o);for(;t<s;){var p=e[t++],_=r();if(1===p)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===p)for(d=r(),m=0;m<d;++m)h=n(),u.neededDynlibs.push(h);else if(3===p)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===p)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}return u};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,s)=>{var r={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},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,s=t+alignMemory(e,16);return ___heap_base=s,GOT.__heap_base.value=s,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"},s={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},r=1;r<e.length;++r)s.parameters.push(t[e[r]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),r=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var i=0;i<r.length;++i)t.push(n[r[i]]);"v"==s?t.push(0):t.push(1,n[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,r),r.push(...s),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(r));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 s=e;s<e+t;s++){var r=getWasmTableEntry(s);r&&functionsInTableMap.set(r,s)}},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 s=getFunctionAddress(e);if(s)return s;var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(r,n)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var r=e[s];s.startsWith("orig$")&&(s=s.split("$")[1],t=!0),GOT[s]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[s].value)&&("function"==typeof r?GOT[s].value=addFunction(r):"number"==typeof r?GOT[s].value=r:err(`unhandled export type for '${s}': ${typeof r}`))}},relocateExports=(e,t,s)=>{var r={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),r[n]=i}return updateGOT(r,s),r},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,s)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...s)),dynCall=(e,t,s=[])=>e.includes("j")?dynCallLegacy(e,t,s):getWasmTableEntry(t)(...s),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...s)=>{var r=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var s;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?s=wasmImports[e]:e.startsWith("invoke_")&&(s=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:s,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 s;t in e||(e[t]=(...e)=>(s||=resolveSymbol(t),s(...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[s,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=r)}},asyncLoad=(e,t,s,r)=>{var n=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,r){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):s&&Object.assign(s,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(r){var s=LE_HEAP_LOAD_U32(4*(r+28>>2)),n=LE_HEAP_LOAD_U32(4*(r+32>>2));if(s&&n){var i=HEAP8.slice(s,s+n);return t.loadAsync?Promise.resolve(i):i}}var o=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(o,e,t)}));if(!readBinary)throw new Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?i().then((n=>loadWebAssemblyModule(n,t,e,s,r))):loadWebAssemblyModule(i(),t,e,s,r)}function a(t){n.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),n.exports=t}return(n=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?o().then((e=>(a(e),!0))):(a(o()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var s=resolveGlobalSymbol(e,!0).sym;if(!s&&!t.required)continue;if("function"==typeof s)t.value=addFunction(s,s.sig);else{if("number"!=typeof s)throw new Error(`bad export type for '${e}': ${typeof s}`);t.value=s}}},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,s="i8"){switch(s.endsWith("*")&&(s="*"),s){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: ${s}`)}}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,s)=>HEAPU8.copyWithin(e,t,t+s);__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 s=getHeapMax();if(e>s)return!1;for(var r,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(r=Math.max(e,o))+((n=65536)-r%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,s,r,n){convertI32PairToI53Checked(t,s);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var s=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(s,0)),s.length=0):s.push(t)},_fd_write=(e,t,s,r)=>{for(var n=0,i=0;i<s;i++){var o=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[o+c]);n+=a}return LE_HEAP_STORE_U32(4*(r>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const s=UTF8ToString(t);currentLogCallback(s,0!==e)}}function _tree_sitter_parse_callback(e,t,s,r,n){const i=currentParseCallback(t,{row:s,column:r});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,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,s=0;s<e.length;++s){var r=e.charCodeAt(s);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,r)=>{if(!(r>0))return 0;for(var n=s,i=s+r-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o);if(a<=127){if(s>=i)break;t[s++]=a}else if(a<=2047){if(s+1>=i)break;t[s++]=192|a>>6,t[s++]=128|63&a}else if(a<=65535){if(s+2>=i)break;t[s++]=224|a>>12,t[s++]=128|a>>6&63,t[s++]=128|63&a}else{if(s+3>=i)break;t[s++]=240|a>>18,t[s++]=128|a>>12&63,t[s++]=128|a>>6&63,t[s++]=128|63&a}}return t[s]=0,s-n},stringToUTF8=(e,t,s)=>stringToUTF8Array(e,HEAPU8,t,s),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,s=stackAlloc(t);return stringToUTF8(e,s,t),s},stringToUTF16=(e,t,s)=>{if(s??=2147483647,s<2)return 0;for(var r=t,n=(s-=2)<2*e.length?s/2:e.length,i=0;i<n;++i){var o=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),o),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-r},AsciiToString=e=>{for(var t="";;){var s=HEAPU8[e++];if(!s)return t;t+=String.fromCharCode(s)}},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,s)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,s),_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,s,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,r),_strncmp=Module._strncmp=(e,t,s)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,s),_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,s)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,s),_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,s)=>(_memset=Module._memset=wasmExports.memset)(e,t,s),_memcpy=Module._memcpy=(e,t,s)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,s),_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,s)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,s),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,s)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,s),_memmove=Module._memmove=(e,t,s)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,s),_memcmp=Module._memcmp=(e,t,s)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,s),_ts_query_new=Module._ts_query_new=(e,t,s,r,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,r,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,s)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,s),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,s)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,s),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,s)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,s),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,s)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,s),_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,s,r,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,r,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,s,r,n,i,o)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,s,r,n,i,o),_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,s,r,n,i,o,a,c,l,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,l,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,l,u),_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,s)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,s),_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,s)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,s),_strncpy=Module._strncpy=(e,t,s)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,s),_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,s,r,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,r,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 s=e.length,r=stackAlloc(4*(s+1)),n=r;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var i=t(s,r);return exitJS(i,!0),i}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 s=C._ts_language_version(t);if(s<MIN_COMPATIBLE_VERSION||VERSION<s)throw new Error(`Incompatible language version ${s}. 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,s){if("string"==typeof e)currentParseCallback=(t,s)=>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 r=0,n=0;if(s?.includedRanges){r=s.includedRanges.length,n=C._calloc(r,SIZE_OF_RANGE);let e=n;for(let t=0;t<r;t++)marshalRange(e,s.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}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"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}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,s,r){assertInternal(e),this[0]=t,this.language=s,this.textCallback=r}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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),marshalPoint(s+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"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}}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"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return r}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 s=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,s),s+=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 s=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),s||(s=ZERO_POINT);const r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(i+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,s.row,s.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+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 s=lengthBytesUTF8(e),r=C._malloc(s+1);stringToUTF8(e,r,s+1);const n=C._ts_language_symbol_for_name(this[0],r,s,t);return C._free(r),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),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const r=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(s,r).length,i=e.substr(n,100).split("\n")[0];let o,a=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:o=new RangeError(`Bad node name '${a}'`);break;case 3:o=new RangeError(`Bad field name '${a}'`);break;case 4:o=new RangeError(`Bad capture name @${a}`);break;case 5:o=new TypeError(`Bad pattern structure at offset ${n}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),a=""}throw o.index=n,o.length=a.length,C._free(s),o}const n=C._ts_query_string_count(r),i=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const l=new Array(o),u=new Array(o),d=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],h[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});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 s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!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(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,s=n[2].name;h[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!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}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));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.".');l[e]||(l[e]={}),l[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?u:d;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!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.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(s),new Query(INTERNAL,r,a,h,m,Object.freeze(l),Object.freeze(u),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[s]();return new Language(INTERNAL,r)}))}}class LookaheadIterable{constructor(e,t,s){assertInternal(e),this[0]=t,this.language=s}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,s,r,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=new Array(c);this.exceededMatchLimit=Boolean(u);let m=0,h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=new Array(s);if(h=unmarshalCaptures(this,e.tree,h,r),this.textPredicates[t].every((e=>e(r)))){d[m]={pattern:t,captures:r};const e=this.setProperties[t];e&&(d[m].setProperties=e);const s=this.assertedProperties[t];s&&(d[m].assertedProperties=s);const n=this.refutedProperties[t];n&&(d[m].refutedProperties=n),m++}}return d.length=m,C._free(l),d}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=[];this.exceededMatchLimit=Boolean(u);const m=[];let h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=getValue(h,"i32");if(h+=SIZE_OF_INT,m.length=s,h=unmarshalCaptures(this,e.tree,h,m),this.textPredicates[t].every((e=>e(m)))){const e=m[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(l),d}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1),C._ts_query_disable_capture(this[0],s,t),C._free(s)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,s){const r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function unmarshalCaptures(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,r[n]={name:e.captureNames[i],node:o}}return s}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 s=getValue(t,"i32");if(0===s)return null;const r=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=s,a.startIndex=r,a.startPosition={row:n,column:i},a[0]=o,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,s)=>{"use strict";var r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var p=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],y=t[p];if(o)var v=l?o(y,g,p,t,e,c):o(g,y,p,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(g===e||a(g,e,s,o,c)))return f.push(t)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,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,s)=>{var r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},4123:(e,t,s)=>{const r=s(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,s)=>{"use strict";var r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):r(e,"stack",n(s,a)))}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),l=s(701),u=s(9665),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},4603:(e,t,s)=>{"use strict";var r=s(5547),n=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,a))}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},4759:(e,t,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,s)=>{"use strict";var r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},4904:(e,t,s)=>{"use strict";var r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,s)=>{var r=s(3305),n=s(9361),i=s(1112),o=s(5276),a=s(5071);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(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,s)=>{"use strict";var r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,s)=>{"use strict";s(5695)},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5547:(e,t,s)=>{"use strict";var r,n,i=s(8900),o=s(3531),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,d=i(o(t)),m=n(s),h=d.length;return m<0||m>=h?e?"":void 0:(r=c(d,m))<55296||r>56319||m+1===h||(u=c(d,m+1))<56320||u>57343?e?a(d,m):r:e?l(d,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),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((s=>s.key.toValue()!==e||(t=s,!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 s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,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((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},5695:(e,t,s)=>{"use strict";s(3085)},5735:(e,t,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),d="prototype",m="script",h=u("IE_PROTO"),p=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},f=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?f(r):(t=l("iframe"),s="java"+m+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete g[d][o[n]];return g()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(p[d]=n(e),s=new p,p[d]=null,s[h]=e):s=g(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),d=s(4879),m=s(8148),h=s(4279),p=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=d(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),h(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&m(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,d,m,h){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==d)return i(d);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==h)return p=h,o.get(p)||p;var p;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,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,s)=>{var r=s(5650),n=s(8870),i=s(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[s]);return e}},7447:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},7452:(e,t,s)=>{var r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var d=a[u];r(e,d)||s&&r(s,d)||c(e,d,l(t,d))}}},7525:(e,t,s)=>{"use strict";var r=s(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),l=s(7309),u=s(5642),d=s(9620),m=s(593),h=s(4123),p=s(3311),_=s(2322);function f(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=m,r.prototype.MemberElement=l,r.prototype.refract=f,h.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:d,RefElement:m,refract:f,ArraySlice:h,ObjectSlice:p,KeyValuePair:_}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,s)=>{var r=s(3766)(Object.keys,Object);e.exports=r},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8141:(e,t,s)=>{"use strict";var r=s(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},8250:(e,t,s)=>{var r=s(9753),n=s(5681),i=s(88),o=s(4732),a=s(9068);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(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,s(394),s(3148)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?s:c?i(t):"Object"===(r=i(t))&&n(t.callee)?"Arguments":r}},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),a=s(8900),c=s(262),l=s(3999),u=s(701),d=s(3753),m=s(4275),h=s(5241),p="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||d.state){var g=d.state||(d.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(p);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=m("state");h[y]=!0,r=function(e,t){if(u(e,y))throw new _(p);return t.facade=e,l(e,y,t),t},n=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=n(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return s}}}},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),l=s(4066),u="[object Map]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",p="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=p||n&&b(new n)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=m||a&&b(new a)!=h)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return p;case f:return u;case g:return d;case y:return m;case v:return h}return t}),e.exports=b},8583:(e,t)=>{"use strict";var s;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"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(a,s)&&n(r,s)&&c(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||c(u,s));return u}},8631:(e,t,s)=>{const r=s(6343),n=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,s)=>{"use strict";var r=s(8900),n=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),l=r.Symbol,u=n("wks"),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:d("Symbol."+e)),u[e]}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?n(o):r;e.exports=a},8696:(e,t,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,s)=>{var r=s(5650),n=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,d,m){switch(s){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||!d(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var _=m.get(e);if(_)return _==t;r|=2,m.set(e,t);var f=o(h(e),h(t),r,l,d,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},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,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),d=s(3999),m=s(701);s(3753);var h=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,p,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||d(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&m(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?h(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&d(v,"sham",!0),d(O,_,v),S&&(m(l,p=w+"Prototype")||d(l,p,{}),d(l[p],_,f),e.real&&P&&(s||!P[_])&&d(P,_,f)))}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!i(a=r(s,e)))return a;if(n(s=e.valueOf)&&!i(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!i(a=r(s,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(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,s)=>{var r=s(4715)(s(8942),"Promise");e.exports=r},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,s)=>{"use strict";var r=s(8900),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),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,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),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 s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=s(4871),d=s(5024),m="Array Iterator",h=o.set,p=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){h(this,{type:m,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&d&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",h="writable";t.f=r?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&h in s&&!s[h]){var r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:d in s?s[d]:r[d],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new c("Accessors not supported");return"value"in s&&(e[t]=s.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__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 s=t.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].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:()=>Xg,detectionRegExp:()=>Yg,mediaTypes:()=>Kg,namespace:()=>ey,parse:()=>Qg});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>dn,includesClasses:()=>hn,includesSymbols:()=>mn,isAnnotationElement:()=>an,isArrayElement:()=>sn,isBooleanElement:()=>en,isCommentElement:()=>cn,isElement:()=>Kr,isLinkElement:()=>nn,isMemberElement:()=>rn,isNullElement:()=>Qr,isNumberElement:()=>Xr,isObjectElement:()=>tn,isParseResultElement:()=>ln,isPrimitiveElement:()=>un,isRefElement:()=>on,isStringElement:()=>Yr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Jo,isJSONSchemaElement:()=>Ho,isLinkDescriptionElement:()=>Wo,isMediaElement:()=>Go});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>Sl,isCallbackElement:()=>nl,isComponentsElement:()=>il,isContactElement:()=>ol,isDiscriminatorElement:()=>Fl,isExampleElement:()=>al,isExternalDocumentationElement:()=>cl,isHeaderElement:()=>ll,isInfoElement:()=>ul,isLicenseElement:()=>dl,isLinkElement:()=>ml,isMediaTypeElement:()=>Al,isOpenApi3_0Element:()=>pl,isOpenapiElement:()=>hl,isOperationElement:()=>_l,isParameterElement:()=>fl,isPathItemElement:()=>gl,isPathsElement:()=>yl,isReferenceElement:()=>vl,isRequestBodyElement:()=>bl,isResponseElement:()=>wl,isResponsesElement:()=>El,isSchemaElement:()=>xl,isSecurityRequirementElement:()=>jl,isSecuritySchemeElement:()=>Ol,isServerElement:()=>Pl,isServerVariableElement:()=>Tl,isServersElement:()=>Ml});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Jo,isJSONSchemaElement:()=>cp,isLinkDescriptionElement:()=>lp,isMediaElement:()=>Go});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Jo,isJSONSchemaElement:()=>bp,isLinkDescriptionElement:()=>wp});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>Yp,isLinkDescriptionElement:()=>Xp});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>d_,isLinkDescriptionElement:()=>m_});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(s){return 0===arguments.length||c(s)?t:e.apply(this,arguments)}}function u(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return c(s)?t:l((function(t){return e(s,t)}));default:return c(s)&&c(r)?t:c(s)?l((function(t){return e(t,r)})):c(r)?l((function(t){return e(s,t)})):e(s,r)}}}function d(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return c(s)?t:u((function(t,r){return e(s,t,r)}));case 2:return c(s)&&c(r)?t:c(s)?u((function(t,s){return e(t,r,s)})):c(r)?u((function(t,r){return e(s,t,r)})):l((function(t){return e(s,r,t)}));default:return c(s)&&c(r)&&c(n)?t:c(s)&&c(r)?u((function(t,s){return e(t,s,n)})):c(s)&&c(n)?u((function(t,s){return e(t,r,s)})):c(r)&&c(n)?u((function(t,r){return e(s,t,r)})):c(s)?l((function(t){return e(t,r,n)})):c(r)?l((function(t){return e(s,t,n)})):c(n)?l((function(t){return e(s,r,t)})):e(s,r,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isBooleanJsonSchemaElement:()=>Sf,isCallbackElement:()=>ef,isComponentsElement:()=>tf,isContactElement:()=>sf,isExampleElement:()=>rf,isExternalDocumentationElement:()=>nf,isHeaderElement:()=>of,isInfoElement:()=>af,isJsonSchemaDialectElement:()=>cf,isLicenseElement:()=>lf,isLinkElement:()=>uf,isMediaTypeElement:()=>Af,isOpenApi3_1Element:()=>mf,isOpenapiElement:()=>df,isOperationElement:()=>hf,isParameterElement:()=>pf,isPathItemElement:()=>_f,isPathItemElementExternal:()=>ff,isPathsElement:()=>gf,isReferenceElement:()=>yf,isReferenceElementExternal:()=>vf,isRequestBodyElement:()=>bf,isResponseElement:()=>wf,isResponsesElement:()=>Ef,isSchemaElement:()=>xf,isSecurityRequirementElement:()=>jf,isSecuritySchemeElement:()=>Of,isServerElement:()=>Pf,isServerVariableElement:()=>Tf});const m=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return(e|0)===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return p(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return h(e)?_(e,t):t[e]}));const g=d((function(e,t,s){return m(e,f(t,s))}));var y=u((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));const v=y;function b(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const w=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=l((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function S(e,t,s){return function(r,n,i){if(E(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function j(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function O(e,t,s,r){return s[r](e,t)}const P=S(b,O,j);function T(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!w(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function A(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const M=function(){return this.xf["@@transducer/init"]()},F=function(e){return this.xf["@@transducer/result"](e)};var N=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const R=function(e){return function(t){return new N(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,s){return t.apply(this,arguments)};case 3:return function(e,s,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(e,t,s){return function(){for(var r=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var l;o<t.length&&(!c(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),r[o]=l,c(l)?a=!0:i-=1,o+=1}return!a&&i<=0?s.apply(this,r):I(Math.max(0,i),k(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):I(e,k(e,[],t))}));function $(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var D=Object.prototype.toString;const L=function(){return"[object Arguments]"===D.call(arguments)?function(e){return"[object Arguments]"===D.call(e)}:function(e){return $("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},H="function"!=typeof Object.keys||U?l((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=U&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=B.length-1;s>=0;)$(t=B[s],e)&&!V(r,t)&&(r[r.length]=t),s-=1;return r})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const J=H;const G=u(T(["fantasy-land/map","map"],R,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return C(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return b((function(s,r){return s[r]=e(t[r]),s}),{},J(t));default:return A(e,t)}})));const W=u((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:P((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,G(s,t))}),[],e)}));const z=u((function(e,t){var s=C(e,t);return C(e,(function(){return b(W,G(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=l((function(e){return z(e.length,e)}));const K=Z(l((function(e){return!e})));function Y(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function X(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Q="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const ee=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function te(e,t,s,r){var n=Y(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!X((function(e,t){return!X(i,t,e)}),Y(t),n)}function se(e,t,s,r){if(Q(e,t))return!0;var n,i,o=ee(e);if(o!==ee(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Q(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Q(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=s.length-1;a>=0;){if(s[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&te(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&te(e.values(),t.values(),s.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=J(e);if(c.length!==J(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var d=c[a];if(!$(d,t)||!se(t[d],e[d],l,u))return!1;a-=1}return!0}const re=u((function(e,t){return se(e,t,[],[])}));const ne=l((function(e){return function(){return e}}));const ie=ne(void 0);const oe=re(ie());const ae=K(oe);var ce=__webpack_require__(8326);function le(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const de=u((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function me(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function he(e,t,s,r){return e["@@transducer/result"](s[r](de(e["@@transducer/step"],e),t))}const pe=S(ue,he,me);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 fe(e){return new _e(e)}const ge=d((function(e,t,s){return pe("function"==typeof e?fe(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return w(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ve=d(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const be=l(ye("tail",ve(1,1/0)));function we(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,ge(le,arguments[0],be(arguments)))}var Ee=function(e,t){switch(arguments.length){case 0:return Ee;case 1:return function t(s){return 0===arguments.length?t:Q(e,s)};default:return Q(e,t)}};const xe=Ee;function Se(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(re(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function je(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 Oe=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Oe(e.getUTCMonth()+1)+"-"+Oe(e.getUTCDate())+"T"+Oe(e.getUTCHours())+":"+Oe(e.getUTCMinutes())+":"+Oe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Te(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Me(e){return function(t){return new Ae(e,t)}}const Fe=u(T(["fantasy-land/filter","filter"],Me,(function(e,t){return Te(t)?b((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},J(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const Ne=u((function(e,t){return Fe((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Re(e,t){var s=function(s){var r=t.concat([e]);return Se(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return je(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(s,e).join(", ")+"))";case"[object Array]":return"["+A(s,e).concat(r(e,Ne((function(e){return/^\d+$/.test(e)}),J(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):je(Pe(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":je(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,J(e)).join(", ")+"}"}}const Ie=l((function(e){return Re(e,[])}));function ke(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=h(n)?_(n,s):s[n]}return s}const Ce=d((function(e,t,s){return e(ke(t,s))}));function $e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const De=u((function(e,t){return e&&t}));const Le=u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z(De)(e,t)}));const qe=re(null);const Be=K(qe);function Ue(e){return Ue="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},Ue(e)}const Ve=function(e){return"object"===Ue(e)};const He=C(1,Le(Be,Ve));const Je=u((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ie(e),o=s(i,Ie(t));return void 0!==o&&o===i?e:t}));const Ge=u((function(e,t){return G(f(e),t)}));const We=l((function(e){return C(ge(Je,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const ze=C(1,we(ee,xe("GeneratorFunction")));const Ze=C(1,we(ee,xe("AsyncFunction")));const Ke=We([we(ee,xe("Function")),ze,Ze]);var Ye=we(ee,xe("Object")),Xe=we(Ie,re(Ie(Object))),Qe=Ce(Le(Ke,Xe),["constructor"]);const et=C(1,(function(e){if(!He(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Qe(t)}));class tt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const st=tt;class rt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const nt=rt;class it extends ce.wE{constructor(e,t,s){super(e,t,s),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(oe(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const ot=it;class at extends ce.g${constructor(){super(),this.register("annotation",st),this.register("comment",nt),this.register("parseResult",ot)}}const ct=new at,lt=e=>{const t=new at;return et(e)&&t.use(e),t},ut=ct;const dt=C(1,we(ee,xe("String"))),mt=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ht=globalThis.fetch;Ke(ht)&&(globalThis.fetch=(...e)=>dt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[mt,be(e)]):ht.apply(globalThis,e));var pt=__webpack_require__(3833),_t=__webpack_require__(1212);const ft=class extends _t{constructor(e,t,s){if(super(e,t,s),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!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class gt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ft,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 yt=gt,vt=__webpack_require__.p+"fe6ac473f020fbdb0dc39a494e428b55.wasm";let bt=null,wt=null,Et=null;const xt=async e=>{var t,s;if(null===(t=Et)||void 0===t||t.delete(),null===(s=bt)||void 0===s||s.reset(),null===bt&&null===wt)wt=pt.init().then((()=>pt.Language.load(vt))).then((e=>{const t=new pt;return t.setLanguage(e),t})).finally((()=>{wt=null})),bt=await wt;else if(null===bt&&null!==wt)bt=await wt;else if(null===bt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Et=bt.parse(e),Et};const St=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const jt=class extends St{};const Ot=class extends jt{};const Pt=class extends Ot{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 Tt=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:s,startPositionColumn:r,startIndex:n,endPositionRow:i,endPositionColumn:o,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=s,this.startPositionColumn=r,this.startIndex=n,this.endPositionRow=i,this.endPositionColumn=o,this.endIndex=a}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};let At=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Mt=class extends Tt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const Ft=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Nt=class extends Ft{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===At.Mapping}};const Rt=class extends Ft{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===At.Sequence}};const It=class extends Ft{static uri="tag:yaml.org,2002:str"};const kt=d((function(e,t,s){return m(e,ke(t,s))}));const Ct=l((function(e){return C(e.length,e)}));var $t="\t\n\v\f\r \u2028\u2029\ufeff";const Dt=l("function"==typeof String.prototype.trim&&!$t.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+$t+"]["+$t+"]*"),s=new RegExp("["+$t+"]["+$t+"]*$");return e.replace(t,"").replace(s,"")});const Lt=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&$e(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ie(s)+' does not have a method named "'+t+'"')}))}));const qt=Lt(1,"split");const Bt=Lt(1,"join");const Ut=l((function(e){return p(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Vt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Ut(arguments))}const Ht=C(4,(function(e,t,s,r){return pe(e("function"==typeof t?fe(t):t),s,r)}));const Jt=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(Ie(t)+" is not an array")}if(p(e)){if(p(t))return e+t;throw new TypeError(Ie(t)+" is not a string")}if(null!=e&&$e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&$e(e.concat))return e.concat(t);throw new TypeError(Ie(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Gt=re("");const Wt=u((function(e,t){return C(ge(Je,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,s)}),t))}))}));function zt(e){return e}const Zt=l(zt);const Kt=C(1,we(ee,xe("Number")));var Yt=Le(Kt,isFinite);var Xt=C(1,Yt);const Qt=Ke(Number.isFinite)?C(1,de(Number.isFinite,Number)):Xt;var es=Le(Qt,Wt(re,[Math.floor,Zt]));var ts=C(1,es);const ss=Ke(Number.isInteger)?C(1,de(Number.isInteger,Number)):ts;const rs=l((function(e){return C(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const ns=K(Qt);const is=C(1,Le(Kt,u((function(e,t){return e>t}))(0)));var os=Ct((function(e,t){var s=Number(t);if(s!==t&&(s=0),is(s))throw new RangeError("repeat count must be non-negative");if(ns(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),as=rs(Lt(1,"repeat"));const cs=Ke(String.prototype.repeat)?as:os;const ls=d((function(e,t,s){return s.replace(e,t)}));var us=ls(/[\s\uFEFF\xA0]+$/,""),ds=Lt(0,"trimEnd");const ms=Ke(String.prototype.trimEnd)?ds:us;var hs=ls(/^[\s\uFEFF\xA0]+/,""),ps=Lt(0,"trimStart");const _s=Ke(String.prototype.trimStart)?ps:hs;var fs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,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 gs(e){return function(t){return new fs(e,t)}}const ys=u(T(["dropWhile"],gs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ve(s,1/0,t)})));const vs=rs(u(Se));const bs=Ct((function(e,t){return we(qt(""),ys(vs(e)),Bt(""))(t)}));const ws=rs(Jt);var Es=__webpack_require__(6850);const xs=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Ss=e=>{const t=(e=>{const t=e.match(xs),s=kt("",["groups","indentation"],t);return Gt(s)?void 0:parseInt(s,10)})(e);if(ss(t))return cs(" ",t);const s=kt("",[1],e.split("\n")),r=kt(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return cs(" ",r)},js=e=>{const t=e.match(xs),s=kt("",["groups","chomping"],t);return Gt(s)?void 0:s},Os=(e,t)=>oe(e)?`${ms(t)}\n`:"-"===e?ms(t):t,Ps=e=>e.replace(/\r\n/g,"\n"),Ts=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),As=Ct(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Ms=we(Ps,Dt,Ts,qt("\n"),G(_s),Bt("\n")),Fs=we(Ps,Dt,Ts,qt("\n"),G(_s),Bt("\n"),As("'")),Ns=we(Ps,Dt,(e=>e.replace(/\\\n\s*/g,"")),Ts,Es.MH,qt("\n"),G(_s),Bt("\n"),As('"'));let Rs=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}({}),Is=function(e){return e.Flow="Flow",e.Block="Block",e}({});const ks=class{static test(e){return e.tag.kind===At.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Rs.Plain?t=Ms(e.content):e.style===Rs.SingleQuoted?t=Fs(e.content):e.style===Rs.DoubleQuoted?t=Ns(e.content):e.style===Rs.Literal?t=(e=>{const t=Ss(e),s=js(e),r=Ps(e),n=be(r.split("\n")),i=Vt(G(bs(t)),G(ws("\n"))),o=Ht(i,Jt,"",n);return Os(s,o)})(e.content):e.style===Rs.Folded&&(t=(e=>{const t=Ss(e),s=js(e),r=Ps(e),n=be(r.split("\n")),i=Vt(G(bs(t)),G(ws("\n"))),o=Ht(i,Jt,"",n),a=Ts(o);return Os(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const Cs=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Nt),this.registerTag(new Rt),this.registerTag(new It)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===At.Scalar?t=It.uri:e.tag.kind===At.Sequence?t=Rt.uri:e.tag.kind===At.Mapping&&(t=Nt.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 s=e;ks.test(e)&&(s=ks.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Pt(`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(!r.test(s))throw new Pt(`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:s.content,node:e.clone()});return r.resolve(s)}};const $s=class extends Ft{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const Ds=class extends Ft{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),s=e.clone();return s.content=t,s}};const Ls=class extends Ft{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),s=e.clone();return s.content=t,s}};const qs=class extends Ft{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 Bs=class extends Cs{constructor(){super(),this.registerTag(new $s,!0),this.registerTag(new Ds,!0),this.registerTag(new Ls,!0),this.registerTag(new qs,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===At.Sequence)t=Rt.uri;else if(e.tag.kind===At.Mapping)t=Nt.uri;else if(e.tag.kind===At.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Us=class extends Tt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Vs=class extends Us{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Hs=class extends jt{},Js=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Gs=e=>Js("mapping",e),Ws=e=>Js("sequence",e),zs=e=>Js("keyValuePair",e),Zs=e=>Js("scalar",e),Ks=e=>Js("alias",e);const Ys=class{addAnchor(e){if(!(e=>Js("anchor",e))(e.anchor))throw new Hs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Vs({content:e.content,style:Rs.Plain,styleGroup:Is.Flow})}},Xs=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Qs={},er=e=>null==e?void 0:e.type,tr=e=>"string"==typeof er(e),sr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),rr=(e,{visitFnGetter:t=Xs,nodeTypeGetter:s=er,breakSymbol:r=Qs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,d,m,h,g);if("function"==typeof(null==t?void 0:t.then))throw new St("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=a.call(e[n],h,o,l,u,d,p);if("function"==typeof(null==t?void 0:t.then))throw new St("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};rr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Xs,nodeTypeGetter:s=er,breakSymbol:r=Qs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,d,m,h,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=await a.call(e[n],h,o,l,u,d,p);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};const nr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Qs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xs,nodeTypeGetter:c=er,nodePredicate:l=tr,nodeCloneFn:u=sr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const j=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),j)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let O;if(!Array.isArray(b)){var x;if(!l(b))throw new St(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};O=i.call(t,b,s,_,w,E,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new St("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===n)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(v.push([s,O]),!e)){if(!l(O)){w.pop();continue}b=O}}var S;if(void 0===O&&j&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(S=h[c(b)])&&void 0!==S?S:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};nr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Qs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xs,nodeTypeGetter:c=er,nodePredicate:l=tr,nodeCloneFn:u=sr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const S=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new St(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};j=await i.call(t,b,s,_,w,E,n)}if(j===n)break;if(j===o){if(!e){w.pop();continue}}else if(void 0!==j&&(v.push([s,j]),!e)){if(!l(j)){w.pop();continue}b=j}}var x;if(void 0===j&&S&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(x=h[c(b)])&&void 0!==x?x:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};const ir=class extends Tt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class or extends Tt{static type="stream"}Object.defineProperty(or.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Js("document",e))(e)||(e=>Js("comment",e))(e))):[]},enumerable:!0});const ar=or;const cr=l((function(e){return _(0,e)}));const lr=class extends Tt{static type="parseResult";get rootNode(){return cr(this.children)}};const ur="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),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)$(i,n)&&(t[i]=n[i]);s+=1}return t};const dr=u((function(e,t){return ur({},e,t)}));const mr=class extends Tt{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=dr({version:void 0,handle:void 0,prefix:void 0},t)}};const hr=class extends Tt{static type="document"};const pr=class extends Us{};class _r extends pr{static type="mapping"}Object.defineProperty(_r.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(zs):[]},enumerable:!0});const fr=_r;class gr extends Tt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(gr.prototype,{key:{get(){return this.children.filter((e=>Zs(e)||Gs(e)||Ws(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Zs(e)||Gs(e)||Ws(e)||Ks(e))(t)))[0]},enumerable:!0}});const yr=gr;class vr extends pr{static type="sequence"}Object.defineProperty(vr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Ws(e)||Gs(e)||Zs(e)||Ks(e))):[]},enumerable:!0});const br=vr;const wr=class extends Tt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Er=class extends Tt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const xr=class extends Tt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Sr=class extends Tt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const jr=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const Or=l((function(e){return null==e}));var Pr=u((function(e,t){if(0===e.length||Or(t))return!1;for(var s=t,r=0;r<e.length;){if(Or(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const Tr=Pr;var Ar=u((function(e,t){return Tr([e],t)}));const Mr=Ar;const Fr=d((function(e,t,s){return e(f(t,s))}));const Nr=u(ke),Rr=(e,t)=>{const s=m(e,t);return jr((e=>{if(et(e)&&Mr("$ref",e)&&Fr(dt,"$ref",e)){const t=Nr(["$ref"],e),r=bs("#/",t);return Nr(r.split("/"),s)}return et(e)?Rr(e,s):e}),e)},Ir=(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 kr=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)}},Cr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},$r=e=>Array.isArray(e)||tr(e);class Dr{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 ir(Ir({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,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?At.Mapping:e.type.endsWith("sequence")?At.Sequence:At.Scalar;return new Mt(Ir({explicitName:s,kind:r},t))}schema;referenceManager;stream={enter:e=>new ar(Ir({children:e.children,isMissing:e.isMissing},e)),leave:e=>new lr({children:[e]})};yaml_directive={enter:e=>{var t;const s=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new mr(Ir({name:"%YAML",parameters:{version:s}},e))}};tag_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=new mr(Ir({name:"%TAG",parameters:{handle:null==t?void 0:t.text,prefix:null==s?void 0:s.text}},e));return this.schema.registerTagDirective(r),r}};reserved_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=e.children[2];return new mr(Ir({name:null==t?void 0:t.text,parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}},e))}};document={enter:e=>new hr(Ir({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(Dr.isScalar(t)||Dr.isMapping(t)||Dr.isSequence(t))return e.children;const s=new Vs({content:"",anchor:Dr.kindNodeToYamlAnchor(t),tag:Dr.kindNodeToYamlTag(t),startPositionRow:t.endPositionRow,startPositionColumn:t.endPositionColumn,startIndex:t.endIndex,endPositionRow:t.endPositionRow,endPositionColumn:t.endPositionColumn,endIndex:t.endIndex,styleGroup:Is.Flow,style:Rs.Plain});return this.registerAnchor(s),[...e.children,s]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new fr(Ir({children:e.children,anchor:s,tag:t,styleGroup:Is.Block,style:Rs.NextLine,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_mapping_pair={enter:e=>{const t=[...e.children];if(Dr.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if(Dr.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new yr(Ir({children:t,styleGroup:Is.Block,isMissing:e.isMissing},e))}};flow_mapping={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new fr(Ir({children:e.children,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.Explicit,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};flow_pair={enter:e=>{const t=[...e.children];if(Dr.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if(Dr.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new yr(Ir({children:t,styleGroup:Is.Flow,isMissing:e.isMissing},e))}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new br(Ir({children:e.children,anchor:s,tag:t,styleGroup:Is.Block,style:Rs.NextLine},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;return[new Vs({content:"",tag:new Mt({explicitName:"?",kind:At.Scalar}),startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,styleGroup:Is.Flow,style:Rs.Plain})]}};flow_sequence={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new br(Ir({children:e.children.flat(),anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.Explicit},e));return this.registerAnchor(r),this.schema.resolve(r)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.Plain},e));return this.registerAnchor(r),this.schema.resolve(r)}};single_quote_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.SingleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};double_quote_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.DoubleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=e.text.startsWith("|")?Rs.Literal:e.text.startsWith(">")?Rs.Folded:Rs.Plain,n=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Block,style:r},e));return this.registerAnchor(n),this.schema.resolve(n)}};comment={enter:e=>new wr({content:e.text})};alias={enter:e=>{const t=new Er({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof kr&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new xr(Ir({value:t,isMissing:s},e))}}ERROR(e,t,s,r){const n=new Sr(Ir({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===r.length?new lr({children:[n]}):n}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const{keyNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find(Dr.isKind("tag")),n=s.find(Dr.isKind("anchor")),i=new Mt(void 0!==r?Ir({explicitName:r.text,kind:At.Scalar},r):{explicitName:"?",kind:At.Scalar}),o=void 0!==n?new ir(Ir({name:n.text},n)):void 0,a=new Vs({content:"",startPositionRow:e.startPositionRow,startPositionColumn:e.startPositionColumn,startIndex:e.startIndex,endPositionRow:e.startPositionRow,endPositionColumn:e.startPositionColumn,endIndex:e.startIndex,tag:i,anchor:o,styleGroup:Is.Flow,style:Rs.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const{valueNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find(Dr.isKind("tag")),n=s.find(Dr.isKind("anchor")),i=new Mt(void 0!==r?Ir({explicitName:r.text,kind:At.Scalar},r):{explicitName:"?",kind:At.Scalar}),o=void 0!==n?new ir(Ir({name:n.text},n)):void 0,a=new Vs({content:"",startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,tag:i,anchor:o,styleGroup:Is.Flow,style:Rs.Plain});return this.registerAnchor(a),a}}const Lr=Dr;function qr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Br=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=qr(this.xf["@@transducer/step"](e,!1))),e},e}();function Ur(e){return function(t){return new Br(e,t)}}const Vr=u(T(["all"],Ur,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Hr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Jr=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Gr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Wr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),zr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Zr=e=>e({hasMethod:Hr,hasBasicElementProps:Jr,primitiveEq:Gr,isElementType:zr,hasClass:Wr}),Kr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),Yr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Xr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Qr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),en=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),tn=Zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),sn=Zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.wE&&!(r instanceof ce.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),rn=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),nn=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),on=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),an=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("annotation",r)&&s("array",r))),cn=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("comment",r)&&s("string",r))),ln=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("parseResult",r)&&s("array",r))),un=e=>zr("object",e)||zr("array",e)||zr("boolean",e)||zr("number",e)||zr("string",e)||zr("null",e)||zr("member",e),dn=e=>!!Kr(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)),mn=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!sn(s)&&Vr(vs(s.toValue()),e)},hn=(e,t)=>0===e.length||Vr(vs(t.classes.toValue()),e);const pn=class extends St{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const _n=class extends pn{};const fn=class extends pn{},gn=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof ce.KeyValuePair){const{key:t,value:n}=e,i=Kr(t)?gn(t,r):t,o=Kr(n)?gn(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>gn(e,r),n=[...e].map(t),i=new ce.ot(n);return s.set(e,i),i}if(e instanceof ce.G6){const t=e=>gn(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Kr(e)){const t=bn(e);if(s.set(e,t),e.content)if(Kr(e.content))t.content=gn(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=gn(e.content,r);else if(Array.isArray(e.content)){const s=e=>gn(e,r);t.content=e.content.map(s)}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})};gn.safe=e=>{try{return gn(e)}catch{return e}};const yn=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},vn=e=>{const t=new e.constructor;if(t.element=e.element,dn(e)&&Ir(t,e),e.meta.length>0&&(t._meta=gn(e.meta)),e.attributes.length>0&&(t._attributes=gn(e.attributes)),Kr(e.content)){const s=e.content;t.content=vn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=yn(e.content):t.content=e.content;return t},bn=e=>{if(e instanceof ce.KeyValuePair)return yn(e);if(e instanceof ce.ot)return(e=>{const t=[...e];return new ce.ot(t)})(e);if(e instanceof ce.G6)return(e=>{const t=[...e];return new ce.G6(t)})(e);if(Kr(e))return vn(e);throw new fn("Value provided to cloneShallow function couldn't be cloned",{value:e})};bn.safe=e=>{try{return bn(e)}catch{return e}};const wn=e=>tn(e)?"ObjectElement":sn(e)?"ArrayElement":rn(e)?"MemberElement":Yr(e)?"StringElement":en(e)?"BooleanElement":Xr(e)?"NumberElement":Qr(e)?"NullElement":nn(e)?"LinkElement":on(e)?"RefElement":void 0,En=e=>Kr(e)?bn(e):sr(e),xn=we(wn,dt),Sn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const jn=(e,t,{keyMap:s=Sn,...r}={})=>nr(e,t,{keyMap:s,nodeTypeGetter:wn,nodePredicate:xn,nodeCloneFn:En,...r});jn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=Sn,...r}={})=>nr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:wn,nodePredicate:xn,nodeCloneFn:En,...r});const On=d((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})$(r,t)&&(n[r]=$(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)$(r,s)&&!$(r,n)&&(n[r]=s[r]);return n}));const Pn=d((function e(t,s,r){return On((function(s,r,n){return Te(r)&&Te(n)?e(t,r,n):t(s,r,n)}),s,r)}));const Tn=u((function(e,t){return Pn((function(e,t,s){return s}),e,t)}));const An=ve(0,-1);const Mn=u((function(e,t){return e.apply(this,t)}));const Fn=K(Ke);var Nn=l((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():w(e)?[]:p(e)?"":Te(e)?{}:L(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 Rn=Nn;const In=l((function(e){return null!=e&&re(e,Rn(e))}));const kn=C(1,Ke(Array.isArray)?Array.isArray:we(ee,xe("Array")));const Cn=Le(kn,In);const $n=C(3,(function(e,t,s){var r=Nr(e,s),n=Nr(An(e),s);if(!Fn(r)&&!Cn(e)){var i=de(r,n);return Mn(i,t)}})),Dn=()=>({predicates:{...e},namespace:ut}),Ln={toolboxCreator:Dn,visitorOptions:{nodeTypeGetter:wn,exposeEdits:!0}},qn=(e,t,s={})=>{if(0===t.length)return e;const r=Tn(Ln,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=rr(a.map(g({},"visitor")),{...i});a.forEach($n(["pre"],[]));const l=jn(e,c,i);return a.forEach($n(["post"],[])),l};qn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=Tn(Ln,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=rr[Symbol.for("nodejs.util.promisify.custom")],l=jn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map($n(["pre"],[])));const d=await l(e,u,i);return await Promise.allSettled(a.map($n(["post"],[]))),d};const Bn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Kr(e)&&(e.meta.length>0&&(r.meta=gn(e.meta)),e.attributes.length>0&&(r.attributes=gn(e.attributes))),qn(r,s,{toolboxCreator:Dn,visitorOptions:{nodeTypeGetter:wn}})},Un=e=>(t,s={})=>Bn(t,{...s,Type:e});ce.Sh.refract=Un(ce.Sh),ce.wE.refract=Un(ce.wE),ce.Om.refract=Un(ce.Om),ce.bd.refract=Un(ce.bd),ce.Os.refract=Un(ce.Os),ce.kT.refract=Un(ce.kT),ce.Ft.refract=Un(ce.Ft),ce.sI.refract=Un(ce.sI),st.refract=Un(st),nt.refract=Un(nt),ot.refract=Un(ot);const Vn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Sn},Hn=e=>Kr(e)?wn(e):er(e),Jn=e=>Kr(e)||tr(e)||Array.isArray(e);const Gn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new ot;t._content=e.children.flat(1);const s=t.findElements(un);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new nt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new st("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 s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ce.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 ce.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===Rs.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})`,s=new st(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new st(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new ot;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&Ir(t,e)}};class Wn{cursor;constructor(e){this.cursor=e}stream(){return new kr(this.cursor)}yaml_directive(){return new kr(this.cursor)}tag_directive(){return new kr(this.cursor)}reserved_directive(){return new kr(this.cursor)}document(){return new kr(this.cursor)}block_node(){return new kr(this.cursor).setFieldName(this.cursor)}flow_node(){return new kr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new kr(this.cursor)}block_mapping_pair(){return new kr(this.cursor)}flow_mapping(){return new kr(this.cursor)}flow_pair(){return new kr(this.cursor)}block_sequence(){return new kr(this.cursor)}block_sequence_item(){return new kr(this.cursor)}flow_sequence(){return new kr(this.cursor)}plain_scalar(){return new kr(this.cursor)}single_quote_scalar(){return new kr(this.cursor)}double_quote_scalar(){return new kr(this.cursor)}block_scalar(){return new kr(this.cursor)}ERROR(){return new kr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new kr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Wn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Wn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const zn=Wn,Zn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new zn(s),[n]=Array.from(r),i=new Lr,o=new Gn,a=new Bs,c=new Ys,l=nr(n,i,{keyMap:Cr,nodePredicate:$r,state:{schema:a,sourceMap:t,referenceManager:c}});return nr(l.rootNode,o,{keyMap:Vn,nodeTypeGetter:Hn,nodePredicate:Jn,state:{sourceMap:t}})};class Kn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Yn=Kn;class Xn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Qn=Xn;class ei extends ce.Sh{constructor(e,t,s){super(e,t,s),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 ti=ei;class si extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const ri=si;class ni extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const ii=ni;class oi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const ai=oi;class ci extends ce.Sh{constructor(e,t,s){super(e,t,s),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 li=ci;class ui extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(ui.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const di=ui;class mi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 hi=mi;class pi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 _i=pi;class fi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Yr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Yr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const gi=fi;class yi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const vi=yi;class bi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const wi=bi;class Ei extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const xi=Ei;class Si extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const ji=Si;class Oi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Pi=Oi;class Ti extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Ai=Ti;class Mi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Mi.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Fi=Mi;class Ni extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Ri=Ni;class Ii extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const ki=Ii;class Ci extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const $i=Ci;class Di extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}}const Li=Di;class qi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Bi=qi;class Ui extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Vi=Ui;const Hi=class extends yt{};class Ji extends ce.Sh{constructor(e,t,s){super(e,t,s),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 Gi=Ji;class Wi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const zi=Wi;class Zi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 Ki=Zi;class Yi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 Xi=Yi;const Qi=function(){return!0},eo=e=>"string"==typeof(null==e?void 0:e.type)?e.type:wn(e),to={EphemeralObject:["content"],EphemeralArray:["content"],...Sn},so=(e,t,{keyMap:s=to,...r}={})=>jn(e,t,{keyMap:s,nodeTypeGetter:eo,nodePredicate:Qi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});so[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=to,...s}={})=>jn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:eo,nodePredicate:Qi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const ro=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 no=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 io{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new no(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 ro(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 s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Yr(e.href)?e.href.toValue():""}}const oo=e=>Kr(e)?Yr(e)||Xr(e)||en(e)||Qr(e)?e.toValue():so(e,new io):e,ao=e=>{const t=e.meta.length>0?gn(e.meta):void 0,s=e.attributes.length>0?gn(e.attributes):void 0;return new e.constructor(void 0,t,s)},co=(e,t)=>t.clone&&t.isMergeableElement(e)?uo(ao(e),e,t):e,lo={clone:!0,isMergeableElement:e=>tn(e)||sn(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>co(e,s))),objectElementMerge:(e,t,s)=>{const r=tn(e)?ao(e):ao(t);return tn(e)&&e.forEach(((e,t,n)=>{const i=bn(n);i.value=co(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=oo(n);let a;if(tn(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=bn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return uo;const s=t.customMerge(e,t);return"function"==typeof s?s:uo})(n,s)(r,t,s)}else a=bn(i),a.value=co(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},uo=(e,t,s)=>{var r,n,i;const o={...lo,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:lo.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:lo.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:lo.objectElementMerge;const a=sn(t);if(!(a===sn(e)))return co(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>gn(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>gn(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};uo.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ce.Sh:e.reduce(((e,s)=>uo(e,s,t)),ao(e[0]))};const mo=uo;const ho=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=mo(t.meta,e.meta)),dn(e)&&Ir(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=mo(t.attributes,e.attributes))}};const po=class extends ho{enter(e){return this.element=gn(e),Qs}},_o=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},fo=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:fo(s,[...t,s])},go=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>fo(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=fo(n);for(let t of e){let e=fo(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(_o(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},yo=e=>e.filter(((t,s)=>e.indexOf(t)==s)),vo=(e,t)=>{const s=t.map((e=>fo(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},bo=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(vo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==vo(r,e)||void 0!==t[r],get:(s,r)=>(vo(r,e)||t)[r],set(t,s,r){const n=vo(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),wo=null,Eo="copy",xo="copy",So="deep",jo=new WeakMap,Oo=e=>jo.get(e),Po=(e,t)=>{var s,r;const n=yo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=yo([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},To=(e,t)=>{var s,r,n,i;return{property:Po(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:Po(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Ao=(e,t)=>{var s,r,n,i,o,a;return{class:yo([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:To(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:To(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Mo=new Map,Fo=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[...fo(e.prototype).map((e=>e.constructor)),...null!==(t=Oo(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>Mo.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Ao(e,t)))},No=e=>{let t=Mo.get(e);return t||(t={},Mo.set(e,t)),t};function Ro(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=wo;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};n.push(s)}function o(...t){for(const s of e)_o(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===xo?go(n,o):(a=n,c=o,bo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Eo?go(e,null,["prototype"]):bo(e,Function.prototype));let l=o;if("none"!==So){const n="deep"===So?Fo(...e):((...e)=>{const t=e.map((e=>No(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Ao(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Io(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Io(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,d;return u=l,d=e,jo.set(u,d),l}const Io=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const ko=l((function(e){return C(ge(Je,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Co=l((function(e){return!In(e)}));const $o=u((function(e,t){return e||t}));var Do=K(C(1,Le(Be,u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z($o)(e,t)}))(Ve,Ke))));const Lo=ko([dt,Do,Co]);const qo=u((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s}));const Bo=class extends ho{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return qo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Nr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Nr(["visitors",...e],this.specObj):Nr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof po&&(null==r?void 0:r.constructor)===po?gn(t):(jn(t,r,s),r.element)}};const Uo=class extends Bo{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Yr(r)&&s.includes(oo(r))&&!this.ignoredFields.includes(oo(r))){const s=this.toRefractedElement([...t,"fixedFields",oo(r)],e),i=new ce.Pr(gn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(oo(r))||this.element.content.push(gn(n))})),this.copyMetaAndAttributes(e,this.element),Qs}};const Vo=class{parent;constructor({parent:e}){this.parent=e}},Ho=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gi||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Jo=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zi||e(r)&&t("JSONReference",r)&&s("object",r))),Go=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ki||e(r)&&t("media",r)&&s("object",r))),Wo=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xi||e(r)&&t("linkDescription",r)&&s("object",r)));class zo extends(Ro(Uo,Vo,po)){constructor(e){super(e),this.element=new Gi,this.specPath=ne(["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,Uo.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!Yr(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Ho(this.parent)&&!Yr(e.get("$schema"))){const e=m(oo(this.parent.meta.get("inheritedDialectIdentifier")),oo(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?gn(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=oo(e.get(t));Lo(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const Zo=zo,Ko=e=>tn(e)&&e.hasKey("$ref");class Yo extends(Ro(Bo,Vo,po)){ObjectElement(e){const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Qs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Xo=Yo;const Qo=class extends po{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ea=function(){return!1};const ta=class extends Bo{specPath;ignoredFields;fieldPatternPredicate=ea;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(oo(t))&&this.fieldPatternPredicate(oo(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(gn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oo(t))||this.element.content.push(gn(s))})),this.copyMetaAndAttributes(e,this.element),Qs}};const sa=class extends ta{constructor(e){super(e),this.fieldPatternPredicate=Lo}};class ra extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const na=ra;class ia extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const oa=ia;class aa extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ca=aa;const la=class extends po{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ua=class extends po{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 da extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const ma=da;class ha extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const pa=ha;class _a extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const fa=_a;class ga extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ya=ga;class va extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.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),Qs}}const ba=va;class wa extends(Ro(Uo,po)){constructor(e){super(e),this.element=new zi,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Uo.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ea=wa;const xa=class extends po{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Sa=d((function(e,t,s){return C(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const ja=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var Oa=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Pa=Oa;const Ta=l(qr);const Aa=K(Or);const Ma=Le(kn,Co);function Fa(e){return function(e){if(Array.isArray(e))return Na(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 Na(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Na(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 Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var Ra=we(Pa(ja((function(e,t){return e.length>t.length}))),cr,f("length")),Ia=Ct((function(e,t,s){var r=s.apply(void 0,Fa(e));return Aa(r)?Ta(r):t}));const ka=Sa(Ma,(function(e){var t=Ra(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return ge(Ia(s),void 0,e)}))}),ie);const Ca=class extends Bo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Sa(e,ne(t),ie))),s=ka(t)(e);return this.element=this.toRefractedElement(s,e),Qs}};const $a=class extends Ca{constructor(e){super(e),this.alternator=[{predicate:Ko,specPath:["document","objects","JSONReference"]},{predicate:Qi,specPath:["document","objects","JSONSchema"]}]}};class Da extends(Ro(Uo,po)){constructor(e){super(e),this.element=new Ki,this.specPath=ne(["document","objects","Media"])}}const La=Da;class qa extends(Ro(Uo,po)){constructor(e){super(e),this.element=new Xi,this.specPath=ne(["document","objects","LinkDescription"])}}const Ba=qa,Ua={visitors:{value:po,JSONSchemaOrJSONReferenceVisitor:$a,document:{objects:{JSONSchema:{$visitor:Zo,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:$a,items:Xo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Qo,properties:na,additionalProperties:$a,patternProperties:oa,dependencies:ca,enum:la,type:ua,allOf:ma,anyOf:pa,oneOf:fa,not:$a,definitions:ya,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:ba,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Ea,fixedFields:{$ref:xa}},Media:{$visitor:La,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Ba,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:$a,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:$a}}}}}},Va=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ha={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Sn},Ja={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Gi),t.register("jSONReference",zi),t.register("media",Ki),t.register("linkDescription",Xi),t}},Ga=()=>{const e=lt(Ja);return{predicates:{...t,isStringElement:Yr},namespace:e}},Wa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Ua}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:Ga,visitorOptions:{keyMap:Ha,nodeTypeGetter:Va}})},za=e=>(t,s={})=>Wa(t,{specPath:e,...s});Gi.refract=za(["visitors","document","objects","JSONSchema","$visitor"]),zi.refract=za(["visitors","document","objects","JSONReference","$visitor"]),Ki.refract=za(["visitors","document","objects","Media","$visitor"]),Xi.refract=za(["visitors","document","objects","LinkDescription","$visitor"]);const Za=class extends Gi{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Hi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Hi("idProp setter in Schema class is not not supported.")}get $schema(){throw new Hi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Hi("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Hi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Hi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Hi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Hi("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Hi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Hi("definitions setter in Schema class is not not supported.")}get base(){throw new Hi("base getter in Schema class is not not supported.")}set base(e){throw new Hi("base setter in Schema class is not not supported.")}get links(){throw new Hi("links getter in Schema class is not not supported.")}set links(e){throw new Hi("links setter in Schema class is not not supported.")}get media(){throw new Hi("media getter in Schema class is not not supported.")}set media(e){throw new Hi("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Ka extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Ya=Ka;class Xa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Qa=Xa;class ec extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const tc=ec;class sc extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const rc=sc;class nc extends ce.Sh{constructor(e,t,s){super(e,t,s),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 ic=nc;class oc extends ce.Sh{constructor(e,t,s){super(e,t,s),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 ac=oc;const cc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=mo(t.meta,e.meta)),dn(e)&&Ir(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=mo(t.attributes,e.attributes))}};const lc=class extends cc{enter(e){return this.element=gn(e),Qs}};const uc=class extends cc{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return qo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Nr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Nr(["visitors",...e],this.specObj):Nr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof lc&&(null==r?void 0:r.constructor)===lc?gn(t):(jn(t,r,s),r.element)}};var dc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?qr(s):s},e}();function mc(e){return function(t){return new dc(e,t)}}const hc=u(T(["take"],mc,(function(e,t){return ve(0,e<0?1/0:e,t)})));const pc=u((function(e,t){return re(hc(e.length,t),e)})),_c=e=>tn(e)&&e.hasKey("$ref"),fc=tn,gc=tn,yc=e=>Yr(e.key)&&pc("x-",oo(e.key));const vc=class extends uc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Yr(r)&&s.includes(oo(r))&&!this.ignoredFields.includes(oo(r))){const s=this.toRefractedElement([...t,"fixedFields",oo(r)],e),i=new ce.Pr(gn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(oo(r))||this.element.content.push(gn(n))})),this.copyMetaAndAttributes(e,this.element),Qs}};class bc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Pi,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return vc.prototype.ObjectElement.call(this,e)}}const wc=bc;class Ec extends(Ro(uc,lc)){StringElement(e){const t=new ji(oo(e));return this.copyMetaAndAttributes(e,t),this.element=t,Qs}}const xc=Ec;const Sc=class extends uc{MemberElement(e){return this.element=gn(e),this.element.classes.push("specification-extension"),Qs}};class jc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new hi,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Oc=jc;const Pc=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Tc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ti,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ac=Tc;class Mc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new _i,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Fc=Mc;class Nc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new gi,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return(Yr(this.element.operationId)||Yr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Rc=Nc;const Ic=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const kc=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Cc=class extends uc{specPath;ignoredFields;fieldPatternPredicate=ea;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(oo(t))&&this.fieldPatternPredicate(oo(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(gn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oo(t))||this.element.content.push(gn(s))})),this.copyMetaAndAttributes(e,this.element),Qs}};const $c=class extends Cc{constructor(e){super(e),this.fieldPatternPredicate=Lo}};class Dc extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Dc.primaryClass)}}const Lc=Dc;class qc extends(Ro($c,lc)){constructor(e){super(e),this.element=new Lc,this.specPath=ne(["value"])}}const Bc=qc;class Uc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new tc,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Vc=Uc;const Hc=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Jc extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Jc.primaryClass)}}const Gc=Jc;class Wc extends(Ro(uc,lc)){constructor(e){super(e),this.element=new Gc}ArrayElement(e){return e.forEach((e=>{const t=fc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const zc=Wc;class Zc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new rc,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Kc=Zc;class Yc extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Yc.primaryClass)}}const Xc=Yc;class Qc extends(Ro($c,lc)){constructor(e){super(e),this.element=new Xc,this.specPath=ne(["document","objects","ServerVariable"])}}const el=Qc;class tl extends(Ro(vc,lc)){constructor(e){super(e),this.element=new vi,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const sl=tl;const rl=class extends uc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Sa(e,ne(t),ie))),s=ka(t)(e);return this.element=this.toRefractedElement(s,e),Qs}},nl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yn||e(r)&&t("callback",r)&&s("object",r))),il=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qn||e(r)&&t("components",r)&&s("object",r))),ol=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ti||e(r)&&t("contact",r)&&s("object",r))),al=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ai||e(r)&&t("example",r)&&s("object",r))),cl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof li||e(r)&&t("externalDocumentation",r)&&s("object",r))),ll=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof di||e(r)&&t("header",r)&&s("object",r))),ul=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hi||e(r)&&t("info",r)&&s("object",r))),dl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _i||e(r)&&t("license",r)&&s("object",r))),ml=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gi||e(r)&&t("link",r)&&s("object",r))),hl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ji||e(r)&&t("openapi",r)&&s("string",r))),pl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Pi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),_l=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ai||e(r)&&t("operation",r)&&s("object",r))),fl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fi||e(r)&&t("parameter",r)&&s("object",r))),gl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ri||e(r)&&t("pathItem",r)&&s("object",r))),yl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ki||e(r)&&t("paths",r)&&s("object",r))),vl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $i||e(r)&&t("reference",r)&&s("object",r))),bl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Li||e(r)&&t("requestBody",r)&&s("object",r))),wl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bi||e(r)&&t("response",r)&&s("object",r))),El=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vi||e(r)&&t("responses",r)&&s("object",r))),xl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Za||e(r)&&t("schema",r)&&s("object",r))),Sl=e=>en(e)&&e.classes.includes("boolean-json-schema"),jl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ya||e(r)&&t("securityRequirement",r)&&s("object",r))),Ol=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qa||e(r)&&t("securityScheme",r)&&s("object",r))),Pl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tc||e(r)&&t("server",r)&&s("object",r))),Tl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rc||e(r)&&t("serverVariable",r)&&s("object",r))),Al=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vi||e(r)&&t("mediaType",r)&&s("object",r))),Ml=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Gc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n))),Fl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ri||e(r)&&t("discriminator",r)&&s("object",r)));class Nl extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Rl=Nl;class Il extends(Ro($c,lc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const kl=Il;class Cl extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Cl.primaryClass),this.classes.push("examples")}}const $l=Cl;const Dl=class extends kl{constructor(e){super(e),this.element=new $l}};class Ll extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Ll.primaryClass)}}const ql=Ll;class Bl extends(Ro($c,lc)){constructor(e){super(e),this.element=new ql,this.specPath=ne(["document","objects","Encoding"])}}const Ul=Bl;class Vl extends(Ro($c,lc)){constructor(e){super(e),this.element=new Ya,this.specPath=ne(["value"])}}const Hl=Vl;class Jl extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Jl.primaryClass)}}const Gl=Jl;class Wl extends(Ro(uc,lc)){constructor(e){super(e),this.element=new Gl}ArrayElement(e){return e.forEach((e=>{if(tn(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(gn(e))})),this.copyMetaAndAttributes(e,this.element),Qs}}const zl=Wl;class Zl extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Qn,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Kl=Zl;class Yl extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ic,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Xl=Yl;class Ql extends(Ro(vc,lc)){constructor(e){super(e),this.element=new $i,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const eu=Ql;const tu=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class su extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Fi,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.contentProp)&&this.element.contentProp.filter(Al).forEach(((e,t)=>{e.setMetaProperty("media-type",oo(t))})),t}}const ru=su;class nu extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const iu=nu;class ou extends(Ro(vc,lc)){constructor(e){super(e),this.element=new di,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const au=ou;class cu extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const lu=cu;class uu extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(uu.primaryClass),this.classes.push("examples")}}const du=uu;const mu=class extends kl{constructor(e){super(e),this.element=new du}};class hu extends(Ro($c,lc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const pu=hu;class _u extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(_u.primaryClass),this.classes.push("content")}}const fu=_u;const gu=class extends pu{constructor(e){super(e),this.element=new fu}};class yu extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Za,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const vu=yu,bu=Ua.visitors.document.objects.JSONSchema.fixedFields.allOf;const wu=class extends bu{ArrayElement(e){const t=bu.prototype.ArrayElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Eu=Ua.visitors.document.objects.JSONSchema.fixedFields.anyOf;const xu=class extends Eu{ArrayElement(e){const t=Eu.prototype.ArrayElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Su=Ua.visitors.document.objects.JSONSchema.fixedFields.oneOf;const ju=class extends Su{ArrayElement(e){const t=Su.prototype.ArrayElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Ou=Ua.visitors.document.objects.JSONSchema.fixedFields.items;const Pu=class extends Ou{ObjectElement(e){const t=Ou.prototype.ObjectElement.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},Tu=Ua.visitors.document.objects.JSONSchema.fixedFields.properties;const Au=class extends Tu{ObjectElement(e){const t=Tu.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Mu=Ua.visitors.document.objects.JSONSchema.fixedFields.type;const Fu=class extends Mu{ArrayElement(e){return this.enter(e)}},Nu=Ua.visitors.JSONSchemaOrJSONReferenceVisitor;const Ru=class extends Nu{ObjectElement(e){const t=Nu.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Iu extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ri,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const ku=Iu;class Cu extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Cu.primaryClass)}}const $u=Cu;class Du extends(Ro($c,lc)){constructor(e){super(e),this.element=new $u,this.specPath=ne(["value"])}}const Lu=Du;class qu extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ac,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Bu=qu;class Uu extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Uu.primaryClass),this.classes.push("examples")}}const Vu=Uu;const Hu=class extends kl{constructor(e){super(e),this.element=new Vu}};class Ju extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Ju.primaryClass),this.classes.push("content")}}const Gu=Ju;const Wu=class extends pu{constructor(e){super(e),this.element=new Gu}};class zu extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass)}}const Zu=zu;class Ku extends(Ro($c,lc)){constructor(e){super(e),this.element=new Zu,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Yu=Ku;class Xu extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(Xu.primaryClass)}}const Qu=Xu;class ed extends(Ro($c,lc)){constructor(e){super(e),this.element=new Qu,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(wl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",oo(t))})),t}}const td=ed;class sd extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(sd.primaryClass),this.classes.push("parameters")}}const rd=sd;class nd extends(Ro($c,lc)){constructor(e){super(e),this.element=new rd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const id=nd;class od extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(od.primaryClass),this.classes.push("examples")}}const ad=od;class cd extends(Ro($c,lc)){constructor(e){super(e),this.element=new ad,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const ld=cd;class ud extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(ud.primaryClass)}}const dd=ud;class md extends(Ro($c,lc)){constructor(e){super(e),this.element=new dd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const hd=md;class pd extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(pd.primaryClass)}}const _d=pd;class fd extends(Ro($c,lc)){constructor(e){super(e),this.element=new _d,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(ll).forEach(((e,t)=>{e.setMetaProperty("header-name",oo(t))})),t}}const gd=fd;class yd extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(yd.primaryClass)}}const vd=yd;class bd extends(Ro($c,lc)){constructor(e){super(e),this.element=new vd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const wd=bd;class Ed extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Ed.primaryClass)}}const xd=Ed;class Sd extends(Ro($c,lc)){constructor(e){super(e),this.element=new xd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const jd=Sd;class Od extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Od.primaryClass)}}const Pd=Od;class Td extends(Ro($c,lc)){constructor(e){super(e),this.element=new Pd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Ad=Td;class Md extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ai,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return Yr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Fd=Md;const Nd=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Rd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new li,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Id=Rd;class kd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ii,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.headers)&&this.element.headers.filter(ll).forEach(((e,t)=>{e.setMetaProperty("header-name",oo(t))})),t}}const Cd=kd;class $d extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push($d.primaryClass)}}const Dd=$d;class Ld extends(Ro($c,lc)){constructor(e){super(e),this.element=new Dd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ll(e))return;const s=oo(t);e.setMetaProperty("headerName",s)})),t}}const qd=Ld;class Bd extends(Ro(Cc,lc)){constructor(e){super(e),this.element=new ki,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Qi}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(gl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",gn(t))})),t}}const Ud=Bd;class Vd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Li,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.contentProp)&&this.element.contentProp.filter(Al).forEach(((e,t)=>{e.setMetaProperty("media-type",oo(t))})),t}}const Hd=Vd;class Jd extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Jd.primaryClass),this.classes.push("content")}}const Gd=Jd;const Wd=class extends pu{constructor(e){super(e),this.element=new Gd}};class zd extends(Ro(Cc,lc)){constructor(e){super(e),this.element=new Yn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(gl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",oo(t))})),t}}const Zd=zd;class Kd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Bi,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.contentProp)&&this.element.contentProp.filter(Al).forEach(((e,t)=>{e.setMetaProperty("media-type",oo(t))})),tn(this.element.headers)&&this.element.headers.filter(ll).forEach(((e,t)=>{e.setMetaProperty("header-name",oo(t))})),t}}const Yd=Kd;class Xd extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Xd.primaryClass)}}const Qd=Xd;class em extends(Ro($c,lc)){constructor(e){super(e),this.element=new Qd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ll(e))return;const s=oo(t);e.setMetaProperty("header-name",s)})),t}}const tm=em;class sm extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(sm.primaryClass),this.classes.push("content")}}const rm=sm;const nm=class extends pu{constructor(e){super(e),this.element=new rm}};class im extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(im.primaryClass)}}const om=im;class am extends(Ro($c,lc)){constructor(e){super(e),this.element=new om,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const cm=am;function lm(e){return"[object Number]"===Object.prototype.toString.call(e)}const um=u((function(e,t){if(!lm(e)||!lm(t))throw new TypeError("Both arguments to range must be numbers");for(var s=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,n=0;n<r;)s[n]=n+e,n+=1;return s}));function dm(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const mm=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!dm(e,!0,this)},e.prototype.has=function(e){return dm(e,!1,this)},e}();const hm=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new mm,a=0;a<i;a+=1)o.add(t[a]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class pm extends(Ro(vc,Cc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...hm(e.keys(),t)],vc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Cc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Qs}}const _m=pm;class fm extends(Ro(_m,lc)){constructor(e){super(e),this.element=new Vi,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>_c(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${um(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=_m.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(wl).forEach(((e,t)=>{const s=gn(t);this.fieldPatternPredicate(oo(s))&&e.setMetaProperty("http-status-code",s)})),t}}const gm=fm;class ym extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)?this.element.setMetaProperty("referenced-element","response"):wl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const vm=ym;class bm extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Ai,this.specPath=ne(["document","objects","Operation"])}}const wm=bm;class Em extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Em.primaryClass)}}const xm=Em;const Sm=class extends lc{constructor(e){super(e),this.element=new xm}ArrayElement(e){return this.element=this.element.concat(gn(e)),Qs}};class jm extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(jm.primaryClass),this.classes.push("parameters")}}const Om=jm;class Pm extends(Ro(uc,lc)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=_c(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);vl(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Tm=Pm;const Am=class extends Tm{constructor(e){super(e),this.element=new Om}};const Mm=class extends rl{constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Fm extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Fm.primaryClass)}}const Nm=Fm;class Rm extends(Ro($c,lc)){specPath;constructor(e){super(e),this.element=new Nm,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Im=Rm;class km extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(km.primaryClass),this.classes.push("security")}}const Cm=km;class $m extends(Ro(uc,lc)){constructor(e){super(e),this.element=new Cm}ArrayElement(e){return e.forEach((e=>{const t=tn(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Dm=$m;class Lm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Lm.primaryClass),this.classes.push("servers")}}const qm=Lm;const Bm=class extends zc{constructor(e){super(e),this.element=new qm}};class Um extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Ri,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach(((e,t)=>{const s=gn(t);s.content=oo(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Yr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Vm=Um;const Hm=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Jm extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Jm.primaryClass),this.classes.push("servers")}}const Gm=Jm;const Wm=class extends zc{constructor(e){super(e),this.element=new Gm}};class zm extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(zm.primaryClass),this.classes.push("parameters")}}const Zm=zm;const Km=class extends Tm{constructor(e){super(e),this.element=new Zm}};class Ym extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Qa,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Xm=Ym;class Qm extends(Ro(vc,lc)){constructor(e){super(e),this.element=new xi,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const eh=Qm;class th extends(Ro(vc,lc)){constructor(e){super(e),this.element=new wi,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const sh=th;class rh extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(rh.primaryClass)}}const nh=rh;class ih extends(Ro($c,lc)){constructor(e){super(e),this.element=new nh,this.specPath=ne(["value"])}}const oh=ih;class ah extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(ah.primaryClass)}}const ch=ah;class lh extends(Ro(uc,lc)){constructor(e){super(e),this.element=new ch}ArrayElement(e){return e.forEach((e=>{const t=gc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const uh=lh,{fixedFields:dh}=Ua.visitors.document.objects.JSONSchema,mh={visitors:{value:lc,document:{objects:{OpenApi:{$visitor:wc,fixedFields:{openapi:xc,info:{$ref:"#/visitors/document/objects/Info"},servers:zc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:zl,tags:uh,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:Pc}},Contact:{$visitor:Ac,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Fc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Vc,fixedFields:{url:Hc,description:{$ref:"#/visitors/value"},variables:el}},ServerVariable:{$visitor:Kc,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Kl,fixedFields:{schemas:Yu,responses:td,parameters:id,examples:ld,requestBodies:hd,headers:gd,securitySchemes:wd,links:jd,callbacks:Ad}},Paths:{$visitor:Ud},PathItem:{$visitor:Vm,fixedFields:{$ref:Hm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Wm,parameters:Km}},Operation:{$visitor:wm,fixedFields:{tags:Sm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Am,requestBody:Mm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Im,deprecated:{$ref:"#/visitors/value"},security:Dm,servers:Bm}},ExternalDocumentation:{$visitor:Id,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:ru,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:iu,example:{$ref:"#/visitors/value"},examples:Hu,content:Wu}},RequestBody:{$visitor:Hd,fixedFields:{description:{$ref:"#/visitors/value"},content:Wd,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:sl,fixedFields:{schema:Rl,example:{$ref:"#/visitors/value"},examples:Dl,encoding:Ul}},Encoding:{$visitor:Cd,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:qd,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:gm,fixedFields:{default:vm}},Response:{$visitor:Yd,fixedFields:{description:{$ref:"#/visitors/value"},headers:tm,content:nm,links:cm}},Callback:{$visitor:Zd},Example:{$visitor:Fd,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Nd}},Link:{$visitor:Rc,fixedFields:{operationRef:Ic,operationId:kc,parameters:Bc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:au,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:lu,example:{$ref:"#/visitors/value"},examples:mu,content:gu}},Tag:{$visitor:Xl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:eu,fixedFields:{$ref:tu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:vu,fixedFields:{title:dh.title,multipleOf:dh.multipleOf,maximum:dh.maximum,exclusiveMaximum:dh.exclusiveMaximum,minimum:dh.minimum,exclusiveMinimum:dh.exclusiveMinimum,maxLength:dh.maxLength,minLength:dh.minLength,pattern:dh.pattern,maxItems:dh.maxItems,minItems:dh.minItems,uniqueItems:dh.uniqueItems,maxProperties:dh.maxProperties,minProperties:dh.minProperties,required:dh.required,enum:dh.enum,type:Fu,allOf:wu,anyOf:xu,oneOf:ju,not:Ru,items:Pu,properties:Au,additionalProperties:Ru,description:dh.description,format:dh.format,default:dh.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:ku,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Lu}},XML:{$visitor:Bu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Xm,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:eh,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:sh,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:oh}},SecurityRequirement:{$visitor:Hl}},extension:{$visitor:Sc}}}},hh=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ph={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Sn},_h={namespace:e=>{const{base:t}=e;return t.register("callback",Yn),t.register("components",Qn),t.register("contact",ti),t.register("discriminator",ri),t.register("encoding",ii),t.register("example",ai),t.register("externalDocumentation",li),t.register("header",di),t.register("info",hi),t.register("license",_i),t.register("link",gi),t.register("mediaType",vi),t.register("oAuthFlow",wi),t.register("oAuthFlows",xi),t.register("openapi",ji),t.register("openApi3_0",Pi),t.register("operation",Ai),t.register("parameter",Fi),t.register("pathItem",Ri),t.register("paths",ki),t.register("reference",$i),t.register("requestBody",Li),t.register("response",Bi),t.register("responses",Vi),t.register("schema",Za),t.register("securityRequirement",Ya),t.register("securityScheme",Qa),t.register("server",tc),t.register("serverVariable",rc),t.register("tag",ic),t.register("xml",ac),t}},fh=()=>{const e=lt(_h);return{predicates:{...s,isElement:Kr,isStringElement:Yr,isArrayElement:sn,isObjectElement:tn,isMemberElement:rn,includesClasses:hn,hasElementSourceMap:dn},namespace:e}},gh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Rr(mh),i=new(Nr(t,n))({specObj:n});return jn(r,i),qn(i.element,s,{toolboxCreator:fh,visitorOptions:{keyMap:ph,nodeTypeGetter:hh}})},yh=e=>(t,s={})=>gh(t,{specPath:e,...s});Yn.refract=yh(["visitors","document","objects","Callback","$visitor"]),Qn.refract=yh(["visitors","document","objects","Components","$visitor"]),ti.refract=yh(["visitors","document","objects","Contact","$visitor"]),ai.refract=yh(["visitors","document","objects","Example","$visitor"]),ri.refract=yh(["visitors","document","objects","Discriminator","$visitor"]),ii.refract=yh(["visitors","document","objects","Encoding","$visitor"]),li.refract=yh(["visitors","document","objects","ExternalDocumentation","$visitor"]),di.refract=yh(["visitors","document","objects","Header","$visitor"]),hi.refract=yh(["visitors","document","objects","Info","$visitor"]),_i.refract=yh(["visitors","document","objects","License","$visitor"]),gi.refract=yh(["visitors","document","objects","Link","$visitor"]),vi.refract=yh(["visitors","document","objects","MediaType","$visitor"]),wi.refract=yh(["visitors","document","objects","OAuthFlow","$visitor"]),xi.refract=yh(["visitors","document","objects","OAuthFlows","$visitor"]),ji.refract=yh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Pi.refract=yh(["visitors","document","objects","OpenApi","$visitor"]),Ai.refract=yh(["visitors","document","objects","Operation","$visitor"]),Fi.refract=yh(["visitors","document","objects","Parameter","$visitor"]),Ri.refract=yh(["visitors","document","objects","PathItem","$visitor"]),ki.refract=yh(["visitors","document","objects","Paths","$visitor"]),$i.refract=yh(["visitors","document","objects","Reference","$visitor"]),Li.refract=yh(["visitors","document","objects","RequestBody","$visitor"]),Bi.refract=yh(["visitors","document","objects","Response","$visitor"]),Vi.refract=yh(["visitors","document","objects","Responses","$visitor"]),Za.refract=yh(["visitors","document","objects","Schema","$visitor"]),Ya.refract=yh(["visitors","document","objects","SecurityRequirement","$visitor"]),Qa.refract=yh(["visitors","document","objects","SecurityScheme","$visitor"]),tc.refract=yh(["visitors","document","objects","Server","$visitor"]),rc.refract=yh(["visitors","document","objects","ServerVariable","$visitor"]),ic.refract=yh(["visitors","document","objects","Tag","$visitor"]),ac.refract=yh(["visitors","document","objects","XML","$visitor"]);const vh=class extends Yn{};const bh=class extends Qn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const wh=class extends ti{};const Eh=class extends ri{};const xh=class extends ii{};const Sh=class extends ai{};const jh=class extends li{};const Oh=class extends di{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ph=class extends hi{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Th extends ce.Om{static default=new Th("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Ah=Th;const Mh=class extends _i{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Fh=class extends gi{};const Nh=class extends vi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Rh=class extends wi{};const Ih=class extends xi{};const kh=class extends ji{};class Ch extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const $h=Ch;const Dh=class extends Ai{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Lh=class extends Fi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const qh=class extends Ri{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const Bh=class extends ki{};class Uh extends $i{}Object.defineProperty(Uh.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Uh.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Vh=Uh;const Hh=class extends Li{};const Jh=class extends Bi{};const Gh=class extends Vi{};const Wh=class extends Gi{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Hi("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Hi("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const zh=class extends Xi{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Hi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Hi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Hi("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Hi("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Hi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Hi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Zh=d((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!Or(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:h(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(h(e)&&w(s)){var r=[].concat(s);return r[e]=t,r}var n={};for(var i in s)n[i]=s[i];return n[e]=t,n}(n,s,r)}));const Kh=Zh;const Yh=d((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var Xh=d((function(e,t,s){return Kh([e],t,s)}));const Qh=Xh;var ep=u((function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if(h(e)&&w(t))return Yh(e,1,t);var s={};for(var r in t)s[r]=t[r];return delete s[e],s}(t[0],s);default:var r=t[0],n=Array.prototype.slice.call(t,1);return null==s[r]?function(e,t){if(h(e)&&w(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):Qh(r,e(n,s[r]),s)}}));const tp=ep;const sp=class extends Zo{constructor(e){super(e),this.element=new Wh}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const rp=class extends Xo{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Qs}};const np=class extends po{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const ip=class extends Ba{constructor(e){super(e),this.element=new zh}},op=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],sp),tp(["visitors","document","objects","JSONSchema","fixedFields","id"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ua.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","items"],rp),Kh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","const"],Ua.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","examples"],np),Kh(["visitors","document","objects","LinkDescription","$visitor"],ip),Kh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","LinkDescription","fixedFields","method"]),tp(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ua.visitors.value))(Ua),ap={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Sn},cp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wh||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),lp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zh||e(r)&&t("linkDescription",r)&&s("object",r))),up={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Wh),t.register("jSONReference",zi),t.register("media",Ki),t.register("linkDescription",zh),t}},dp=()=>{const e=lt(up);return{predicates:{...r,isStringElement:Yr},namespace:e}},mp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=op}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:dp,visitorOptions:{keyMap:ap,nodeTypeGetter:Va}})},hp=e=>(t,s={})=>mp(t,{specPath:e,...s});Wh.refract=hp(["visitors","document","objects","JSONSchema","$visitor"]),zh.refract=hp(["visitors","document","objects","LinkDescription","$visitor"]);const pp=class extends Wh{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Hi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Hi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const _p=class extends zh{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Hi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Hi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Hi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Hi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const fp=class extends sp{constructor(e){super(e),this.element=new pp}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const gp=class extends ip{constructor(e){super(e),this.element=new _p}},yp=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],fp),Kh(["visitors","document","objects","JSONSchema","fixedFields","$comment"],op.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","if"],op.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","then"],op.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","else"],op.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","JSONSchema","fixedFields","media"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],op.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],op.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","$visitor"],gp),Kh(["visitors","document","objects","LinkDescription","fixedFields","anchor"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],op.visitors.value),tp(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","description"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","$comment"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],op.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],op.visitors.value))(op),vp={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Sn},bp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pp||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),wp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _p||e(r)&&t("linkDescription",r)&&s("object",r))),Ep={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",pp),t.register("jSONReference",zi),t.register("linkDescription",_p),t}},xp=()=>{const e=lt(Ep);return{predicates:{...n,isStringElement:Yr},namespace:e}},Sp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=yp}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:xp,visitorOptions:{keyMap:vp,nodeTypeGetter:Va}})},jp=e=>(t,s={})=>Sp(t,{specPath:e,...s});pp.refract=jp(["visitors","document","objects","JSONSchema","$visitor"]),_p.refract=jp(["visitors","document","objects","LinkDescription","$visitor"]);const Op=class extends pp{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Hi("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Hi("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Hi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Hi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const Pp=class extends _p{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Tp=class extends fp{constructor(e){super(e),this.element=new Op}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Uo.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Ap=class extends po{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Mp=class extends po{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Fp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Np=Fp;class Rp extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Ip=Rp;class kp extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Cp=kp;class $p extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Dp=$p;class Lp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const qp=Lp;class Bp extends(Ro(Bo,Vo,po)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Qs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Qs}}const Up=Bp;class Vp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Hp=Vp;class Jp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Gp=Jp;const Wp=class extends po{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const zp=class extends gp{constructor(e){super(e),this.element=new Pp}},Zp=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Ap),Kh(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],yp.visitors.value),tp(["visitors","document","objects","JSONReference","$visitor"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Mp),tp(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Np),Kh(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Ip),Kh(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Cp),Kh(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Dp),Kh(["visitors","document","objects","JSONSchema","fixedFields","not"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","if"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","then"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","else"],Tp),tp(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],qp),Kh(["visitors","document","objects","JSONSchema","fixedFields","items"],Up),Kh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","properties"],Hp),Kh(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Gp),Kh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","minContains"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Wp),Kh(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","$visitor"],zp),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Tp))(yp),Kp={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Sn},Yp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("JSONSchema201909",r)&&s("object",r))),Xp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pp||e(r)&&t("linkDescription",r)&&s("object",r))),Qp={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Op),t.register("linkDescription",Pp),t}},e_=()=>{const e=lt(Qp);return{predicates:{...i,isStringElement:Yr},namespace:e}},t_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Zp}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:e_,visitorOptions:{keyMap:Kp,nodeTypeGetter:Va}})},s_=e=>(t,s={})=>t_(t,{specPath:e,...s});Op.refract=s_(["visitors","document","objects","JSONSchema","$visitor"]),Pp.refract=s_(["visitors","document","objects","LinkDescription","$visitor"]);const r_=class extends Op{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Hi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Hi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Hi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Hi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const n_=class extends Pp{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const i_=class extends Tp{constructor(e){super(e),this.element=new r_}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class o_ extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const a_=o_;const c_=class extends zp{constructor(e){super(e),this.element=new n_}},l_=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],i_),tp(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Zp.visitors.value),tp(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Zp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","not"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","if"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","then"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","else"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],a_),Kh(["visitors","document","objects","JSONSchema","fixedFields","items"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","contains"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],i_),tp(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],i_),Kh(["visitors","document","objects","LinkDescription","$visitor"],c_),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],i_),Kh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],i_),Kh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],i_),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],i_))(Zp),u_={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Sn},d_=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof r_||e(r)&&t("JSONSchema202012",r)&&s("object",r))),m_=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof n_||e(r)&&t("linkDescription",r)&&s("object",r))),h_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",r_),t.register("linkDescription",n_),t}},p_=()=>{const e=lt(h_);return{predicates:{...o,isStringElement:Yr},namespace:e}},__=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=l_}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:p_,visitorOptions:{keyMap:u_,nodeTypeGetter:Va}})},f_=e=>(t,s={})=>__(t,{specPath:e,...s});r_.refract=f_(["visitors","document","objects","JSONSchema","$visitor"]),n_.refract=f_(["visitors","document","objects","LinkDescription","$visitor"]);const g_=class extends r_{constructor(e,t,s){super(e,t,s),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}};const y_=class extends Ya{};const v_=class extends Qa{};const b_=class extends tc{};const w_=class extends rc{};const E_=class extends ic{};const x_=class extends ac{};class S_ extends(Ro(vc,lc)){constructor(e){super(e),this.element=new $h,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,vc.prototype.ObjectElement.call(this,e)}}const j_=S_,O_=mh.visitors.document.objects.Info.$visitor;const P_=class extends O_{constructor(e){super(e),this.element=new Ph}},T_=mh.visitors.document.objects.Contact.$visitor;const A_=class extends T_{constructor(e){super(e),this.element=new wh}},M_=mh.visitors.document.objects.License.$visitor;const F_=class extends M_{constructor(e){super(e),this.element=new Mh}},N_=mh.visitors.document.objects.Link.$visitor;const R_=class extends N_{constructor(e){super(e),this.element=new Fh}};class I_ extends(Ro(uc,lc)){StringElement(e){const t=new Ah(oo(e));return this.copyMetaAndAttributes(e,t),this.element=t,Qs}}const k_=I_,C_=mh.visitors.document.objects.Server.$visitor;const $_=class extends C_{constructor(e){super(e),this.element=new b_}},D_=mh.visitors.document.objects.ServerVariable.$visitor;const L_=class extends D_{constructor(e){super(e),this.element=new w_}},q_=mh.visitors.document.objects.MediaType.$visitor;const B_=class extends q_{constructor(e){super(e),this.element=new Nh}},U_=mh.visitors.document.objects.SecurityRequirement.$visitor;const V_=class extends U_{constructor(e){super(e),this.element=new y_}},H_=mh.visitors.document.objects.Components.$visitor;const J_=class extends H_{constructor(e){super(e),this.element=new bh}},G_=mh.visitors.document.objects.Tag.$visitor;const W_=class extends G_{constructor(e){super(e),this.element=new E_}},z_=mh.visitors.document.objects.Reference.$visitor;const Z_=class extends z_{constructor(e){super(e),this.element=new Vh}},K_=mh.visitors.document.objects.Parameter.$visitor;const Y_=class extends K_{constructor(e){super(e),this.element=new Lh}},X_=mh.visitors.document.objects.Header.$visitor;const Q_=class extends X_{constructor(e){super(e),this.element=new Oh}},ef=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vh||e(r)&&t("callback",r)&&s("object",r))),tf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bh||e(r)&&t("components",r)&&s("object",r))),sf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wh||e(r)&&t("contact",r)&&s("object",r))),rf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sh||e(r)&&t("example",r)&&s("object",r))),nf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jh||e(r)&&t("externalDocumentation",r)&&s("object",r))),of=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Oh||e(r)&&t("header",r)&&s("object",r))),af=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ph||e(r)&&t("info",r)&&s("object",r))),cf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ah||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),lf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mh||e(r)&&t("license",r)&&s("object",r))),uf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fh||e(r)&&t("link",r)&&s("object",r))),df=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kh||e(r)&&t("openapi",r)&&s("string",r))),mf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof $h||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),hf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dh||e(r)&&t("operation",r)&&s("object",r))),pf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lh||e(r)&&t("parameter",r)&&s("object",r))),_f=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qh||e(r)&&t("pathItem",r)&&s("object",r))),ff=e=>{if(!_f(e))return!1;if(!Yr(e.$ref))return!1;const t=oo(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bh||e(r)&&t("paths",r)&&s("object",r))),yf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vh||e(r)&&t("reference",r)&&s("object",r))),vf=e=>{if(!yf(e))return!1;if(!Yr(e.$ref))return!1;const t=oo(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},bf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hh||e(r)&&t("requestBody",r)&&s("object",r))),wf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jh||e(r)&&t("response",r)&&s("object",r))),Ef=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gh||e(r)&&t("responses",r)&&s("object",r))),xf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof g_||e(r)&&t("schema",r)&&s("object",r))),Sf=e=>en(e)&&e.classes.includes("boolean-json-schema"),jf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof y_||e(r)&&t("securityRequirement",r)&&s("object",r))),Of=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof v_||e(r)&&t("securityScheme",r)&&s("object",r))),Pf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof b_||e(r)&&t("server",r)&&s("object",r))),Tf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof w_||e(r)&&t("serverVariable",r)&&s("object",r))),Af=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nh||e(r)&&t("mediaType",r)&&s("object",r)));class Mf extends(Ro(vc,Vo,lc)){constructor(e){super(e),this.element=new g_,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ah.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=vc.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return i_.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&cf(this.openApiSemanticElement.jsonSchemaDialect)?oo(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Yr(this.openApiGenericElement.get("jsonSchemaDialect"))?oo(this.openApiGenericElement.get("jsonSchemaDialect")):oo(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return i_.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return i_.prototype.handleSchemaIdentifier.call(this,e)}}const Ff=Mf;const Nf=class extends Np{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Rf=class extends Ip{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const If=class extends Cp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const kf=class extends Dp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Cf=class extends qp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const $f=class extends a_{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Df=class extends Hp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Lf=class extends Gp{constructor(e){super(e),this.passingOptionsNames.push("parent")}},qf=mh.visitors.document.objects.Discriminator.$visitor;const Bf=class extends qf{constructor(e){super(e),this.element=new Eh,this.canSupportSpecificationExtensions=!0}},Uf=mh.visitors.document.objects.XML.$visitor;const Vf=class extends Uf{constructor(e){super(e),this.element=new x_}};class Hf extends(Ro($c,lc)){constructor(e){super(e),this.element=new Zu,this.specPath=ne(["document","objects","Schema"])}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(xf).forEach(((e,t)=>{e.setMetaProperty("schemaName",oo(t))})),t}}const Jf=Hf;class Gf extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Gf.primaryClass)}}const Wf=Gf;class zf extends(Ro($c,lc)){constructor(e){super(e),this.element=new Wf,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Zf=zf,Kf=mh.visitors.document.objects.Example.$visitor;const Yf=class extends Kf{constructor(e){super(e),this.element=new Sh}},Xf=mh.visitors.document.objects.ExternalDocumentation.$visitor;const Qf=class extends Xf{constructor(e){super(e),this.element=new jh}},eg=mh.visitors.document.objects.Encoding.$visitor;const tg=class extends eg{constructor(e){super(e),this.element=new xh}},sg=mh.visitors.document.objects.Paths.$visitor;const rg=class extends sg{constructor(e){super(e),this.element=new Bh}},ng=mh.visitors.document.objects.RequestBody.$visitor;const ig=class extends ng{constructor(e){super(e),this.element=new Hh}},og=mh.visitors.document.objects.Callback.$visitor;const ag=class extends og{constructor(e){super(e),this.element=new vh,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=og.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},cg=mh.visitors.document.objects.Response.$visitor;const lg=class extends cg{constructor(e){super(e),this.element=new Jh}},ug=mh.visitors.document.objects.Responses.$visitor;const dg=class extends ug{constructor(e){super(e),this.element=new Gh}},mg=mh.visitors.document.objects.Operation.$visitor;const hg=class extends mg{constructor(e){super(e),this.element=new Dh}},pg=mh.visitors.document.objects.PathItem.$visitor;const _g=class extends pg{constructor(e){super(e),this.element=new qh}},fg=mh.visitors.document.objects.SecurityScheme.$visitor;const gg=class extends fg{constructor(e){super(e),this.element=new v_}},yg=mh.visitors.document.objects.OAuthFlows.$visitor;const vg=class extends yg{constructor(e){super(e),this.element=new Ih}},bg=mh.visitors.document.objects.OAuthFlow.$visitor;const wg=class extends bg{constructor(e){super(e),this.element=new Rh}};class Eg extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Eg.primaryClass)}}const xg=Eg;class Sg extends(Ro($c,lc)){constructor(e){super(e),this.element=new xg,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(_f).forEach(((e,t)=>{e.setMetaProperty("webhook-name",oo(t))})),t}}const jg=Sg,{JSONSchema:Og,LinkDescription:Pg}=l_.visitors.document.objects,Tg={visitors:{value:mh.visitors.value,document:{objects:{OpenApi:{$visitor:j_,fixedFields:{openapi:mh.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:k_,servers:mh.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:jg,components:{$ref:"#/visitors/document/objects/Components"},security:mh.visitors.document.objects.OpenApi.fixedFields.security,tags:mh.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:P_,fixedFields:{title:mh.visitors.document.objects.Info.fixedFields.title,description:mh.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:mh.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:mh.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:A_,fixedFields:{name:mh.visitors.document.objects.Contact.fixedFields.name,url:mh.visitors.document.objects.Contact.fixedFields.url,email:mh.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:F_,fixedFields:{name:mh.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:mh.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:$_,fixedFields:{url:mh.visitors.document.objects.Server.fixedFields.url,description:mh.visitors.document.objects.Server.fixedFields.description,variables:mh.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:L_,fixedFields:{enum:mh.visitors.document.objects.ServerVariable.fixedFields.enum,default:mh.visitors.document.objects.ServerVariable.fixedFields.default,description:mh.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:J_,fixedFields:{schemas:Jf,responses:mh.visitors.document.objects.Components.fixedFields.responses,parameters:mh.visitors.document.objects.Components.fixedFields.parameters,examples:mh.visitors.document.objects.Components.fixedFields.examples,requestBodies:mh.visitors.document.objects.Components.fixedFields.requestBodies,headers:mh.visitors.document.objects.Components.fixedFields.headers,securitySchemes:mh.visitors.document.objects.Components.fixedFields.securitySchemes,links:mh.visitors.document.objects.Components.fixedFields.links,callbacks:mh.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Zf}},Paths:{$visitor:rg},PathItem:{$visitor:_g,fixedFields:{$ref:mh.visitors.document.objects.PathItem.fixedFields.$ref,summary:mh.visitors.document.objects.PathItem.fixedFields.summary,description:mh.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:mh.visitors.document.objects.PathItem.fixedFields.servers,parameters:mh.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:hg,fixedFields:{tags:mh.visitors.document.objects.Operation.fixedFields.tags,summary:mh.visitors.document.objects.Operation.fixedFields.summary,description:mh.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:mh.visitors.document.objects.Operation.fixedFields.operationId,parameters:mh.visitors.document.objects.Operation.fixedFields.parameters,requestBody:mh.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:mh.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:mh.visitors.document.objects.Operation.fixedFields.deprecated,security:mh.visitors.document.objects.Operation.fixedFields.security,servers:mh.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Qf,fixedFields:{description:mh.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:mh.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Y_,fixedFields:{name:mh.visitors.document.objects.Parameter.fixedFields.name,in:mh.visitors.document.objects.Parameter.fixedFields.in,description:mh.visitors.document.objects.Parameter.fixedFields.description,required:mh.visitors.document.objects.Parameter.fixedFields.required,deprecated:mh.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:mh.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:mh.visitors.document.objects.Parameter.fixedFields.style,explode:mh.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:mh.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mh.visitors.document.objects.Parameter.fixedFields.example,examples:mh.visitors.document.objects.Parameter.fixedFields.examples,content:mh.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ig,fixedFields:{description:mh.visitors.document.objects.RequestBody.fixedFields.description,content:mh.visitors.document.objects.RequestBody.fixedFields.content,required:mh.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:B_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:mh.visitors.document.objects.MediaType.fixedFields.example,examples:mh.visitors.document.objects.MediaType.fixedFields.examples,encoding:mh.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:tg,fixedFields:{contentType:mh.visitors.document.objects.Encoding.fixedFields.contentType,headers:mh.visitors.document.objects.Encoding.fixedFields.headers,style:mh.visitors.document.objects.Encoding.fixedFields.style,explode:mh.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:mh.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:dg,fixedFields:{default:mh.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:lg,fixedFields:{description:mh.visitors.document.objects.Response.fixedFields.description,headers:mh.visitors.document.objects.Response.fixedFields.headers,content:mh.visitors.document.objects.Response.fixedFields.content,links:mh.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:ag},Example:{$visitor:Yf,fixedFields:{summary:mh.visitors.document.objects.Example.fixedFields.summary,description:mh.visitors.document.objects.Example.fixedFields.description,value:mh.visitors.document.objects.Example.fixedFields.value,externalValue:mh.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:R_,fixedFields:{operationRef:mh.visitors.document.objects.Link.fixedFields.operationRef,operationId:mh.visitors.document.objects.Link.fixedFields.operationId,parameters:mh.visitors.document.objects.Link.fixedFields.parameters,requestBody:mh.visitors.document.objects.Link.fixedFields.requestBody,description:mh.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Q_,fixedFields:{description:mh.visitors.document.objects.Header.fixedFields.description,required:mh.visitors.document.objects.Header.fixedFields.required,deprecated:mh.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:mh.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:mh.visitors.document.objects.Header.fixedFields.style,explode:mh.visitors.document.objects.Header.fixedFields.explode,allowReserved:mh.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mh.visitors.document.objects.Header.fixedFields.example,examples:mh.visitors.document.objects.Header.fixedFields.examples,content:mh.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:W_,fixedFields:{name:mh.visitors.document.objects.Tag.fixedFields.name,description:mh.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Z_,fixedFields:{$ref:mh.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Pg},Schema:{$visitor:Ff,fixedFields:{...Og.fixedFields,$defs:Nf,allOf:Rf,anyOf:If,oneOf:kf,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:Cf,prefixItems:$f,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Df,patternProperties:Lf,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Bf,fixedFields:{propertyName:mh.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:mh.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Vf,fixedFields:{name:mh.visitors.document.objects.XML.fixedFields.name,namespace:mh.visitors.document.objects.XML.fixedFields.namespace,prefix:mh.visitors.document.objects.XML.fixedFields.prefix,attribute:mh.visitors.document.objects.XML.fixedFields.attribute,wrapped:mh.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:gg,fixedFields:{type:mh.visitors.document.objects.SecurityScheme.fixedFields.type,description:mh.visitors.document.objects.SecurityScheme.fixedFields.description,name:mh.visitors.document.objects.SecurityScheme.fixedFields.name,in:mh.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:mh.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:mh.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:mh.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:vg,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:wg,fixedFields:{authorizationUrl:mh.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:mh.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:mh.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:mh.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:V_}},extension:{$visitor:mh.visitors.document.extension.$visitor}}}},Ag=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Mg={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Sn},Fg=function(){const e=Rg,t=Ng,s=this,r="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let n,i,o,a,c,l,u,d=0,m=0,h=0,p=0,_=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,y,b,w)=>{const E=`${r}parse(): `;d=0,m=0,h=0,p=0,_=0,n=void 0,i=void 0,o=void 0,a=void 0,f.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(b),n=g.rules,i=g.udts;const x=y.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&x===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const r in s.callbacks)if(s.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(o=s.callbacks[r]?s.callbacks[r]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),s.trace&&s.trace.init(n,i,a),s.stats&&s.stats.init(n,i),s.ast&&s.ast.init(n,i,a),u=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=f.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:j,state:f.state,stateName:e.idName(f.state),length:a.length,matched:f.phraseLength,maxMatched:_,maxTreeDepth:h,nodeHits:p}};const g=(t,s,n,i)=>{if(s.phraseLength>n){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},y=(t,c)=>{let m,h,p;const _=o[t],g=i[_.index];f.UdtIndex=g.index,d||(p=s.ast&&s.ast.udtDefined(_.index),p&&(h=n.length+_.index,m=s.ast.getLength(),s.ast.down(h,g.name)));const y=a.length-c;l[_.index](f,a,c,u),((t,s,n)=>{if(s.phraseLength>n){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,f,y),d||p&&(f.state===e.NOMATCH?s.ast.setLength(m):s.ast.up(h,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(p+=1,m>h&&(h=m),m+=1,f.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const r=o[t];for(let t=0;t<r.children.length&&(v(r.children[t],s),f.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,r)=>{let n,i,a,c;const l=o[t];s.ast&&(i=s.ast.getLength()),n=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),f.state===e.NOMATCH){n=!1;break}a+=f.phraseLength,c+=f.phraseLength}n?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,r)=>{let n,i,c,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(i=r,c=0,l=0,s.ast&&(n=s.ast.getLength());!(i>=a.length)&&(v(t+1,i),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,c+=f.phraseLength,i+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(n))})(t,i);break;case e.RNM:((t,r)=>{let i,l,m;const h=o[t],p=n[h.index],_=c[p.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,n[h.index].name))),_){const t=a.length-r;_(f,a,r,u),g(p,f,t,!0),f.state===e.ACTIVE&&(m=o,o=p.opcodes,v(0,r),o=m,_(f,a,r,u),g(p,f,t,!1))}else m=o,o=p.opcodes,v(0,r,f),o=m;d||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,p.name,r,f.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const r=o[t];f.state=e.NOMATCH,s<a.length&&r.min<=a[s]&&a[s]<=r.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const r=o[t],n=r.string.length;if(f.state=e.NOMATCH,s+n<=a.length){for(let e=0;e<n;e+=1)if(a[s+e]!==r.string[e])return;f.state=e.MATCH,f.phraseLength=n}})(t,i);break;case e.TLS:((t,s)=>{let r;const n=o[t];f.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(s+i<=a.length){for(let e=0;e<i;e+=1)if(r=a[s+e],r>=65&&r<=90&&(r+=32),r!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}}else f.state=e.EMPTY})(t,i);break;case e.UDT:y(t,i);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}d||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),m-=1}},Ng={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,s)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===s){r=e.slice(t);break}if(s<=0)return"";r=e.slice(t,t+s);break}return String.fromCodePoint(...r)}},Rg={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Rg.ALT:return"ALT";case Rg.CAT:return"CAT";case Rg.REP:return"REP";case Rg.RNM:return"RNM";case Rg.TRG:return"TRG";case Rg.TBS:return"TBS";case Rg.TLS:return"TLS";case Rg.UDT:return"UDT";case Rg.AND:return"AND";case Rg.NOT:return"NOT";case Rg.ACTIVE:return"ACTIVE";case Rg.EMPTY:return"EMPTY";case Rg.MATCH:return"MATCH";case Rg.NOMATCH:return"NOMATCH";case Rg.SEM_PRE:return"SEM_PRE";case Rg.SEM_POST:return"SEM_POST";case Rg.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Ig(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class kg extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Cg=kg;new Ig;new Ig,new Fg,new Ig,new Fg,new Ig,new Fg,new Ig,new Fg;const $g=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Dg=class extends Cg{},Lg=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return $g(String(e))})).join("/")}`}catch(t){throw new Dg("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const qg={namespace:e=>{const{base:t}=e;return t.register("callback",vh),t.register("components",bh),t.register("contact",wh),t.register("discriminator",Eh),t.register("encoding",xh),t.register("example",Sh),t.register("externalDocumentation",jh),t.register("header",Oh),t.register("info",Ph),t.register("jsonSchemaDialect",Ah),t.register("license",Mh),t.register("link",Fh),t.register("mediaType",Nh),t.register("oAuthFlow",Rh),t.register("oAuthFlows",Ih),t.register("openapi",kh),t.register("openApi3_1",$h),t.register("operation",Dh),t.register("parameter",Lh),t.register("pathItem",qh),t.register("paths",Bh),t.register("reference",Vh),t.register("requestBody",Hh),t.register("response",Jh),t.register("responses",Gh),t.register("schema",g_),t.register("securityRequirement",y_),t.register("securityScheme",v_),t.register("server",b_),t.register("serverVariable",w_),t.register("tag",E_),t.register("xml",x_),t}},Bg=e=>{const t=e.reduce(((t,s,r)=>{if(rn(s)){const e=String(oo(s.key));t.push(e)}else if(sn(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Lg(t)},Ug=()=>{const e=lt(qg);return{predicates:{...a,isElement:Kr,isStringElement:Yr,isArrayElement:sn,isObjectElement:tn,isMemberElement:rn,isServersElement:Ml,includesClasses:hn,hasElementSourceMap:dn},ancestorLineageToJSONPointer:Bg,namespace:e}},Vg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Rr(Tg),i=new(Nr(t,n))({specObj:n});return jn(r,i),qn(i.element,s,{toolboxCreator:Ug,visitorOptions:{keyMap:Mg,nodeTypeGetter:Ag}})},Hg=e=>(t,s={})=>Vg(t,{specPath:e,...s});vh.refract=Hg(["visitors","document","objects","Callback","$visitor"]),bh.refract=Hg(["visitors","document","objects","Components","$visitor"]),wh.refract=Hg(["visitors","document","objects","Contact","$visitor"]),Sh.refract=Hg(["visitors","document","objects","Example","$visitor"]),Eh.refract=Hg(["visitors","document","objects","Discriminator","$visitor"]),xh.refract=Hg(["visitors","document","objects","Encoding","$visitor"]),jh.refract=Hg(["visitors","document","objects","ExternalDocumentation","$visitor"]),Oh.refract=Hg(["visitors","document","objects","Header","$visitor"]),Ph.refract=Hg(["visitors","document","objects","Info","$visitor"]),Ah.refract=Hg(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Mh.refract=Hg(["visitors","document","objects","License","$visitor"]),Fh.refract=Hg(["visitors","document","objects","Link","$visitor"]),Nh.refract=Hg(["visitors","document","objects","MediaType","$visitor"]),Rh.refract=Hg(["visitors","document","objects","OAuthFlow","$visitor"]),Ih.refract=Hg(["visitors","document","objects","OAuthFlows","$visitor"]),kh.refract=Hg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),$h.refract=Hg(["visitors","document","objects","OpenApi","$visitor"]),Dh.refract=Hg(["visitors","document","objects","Operation","$visitor"]),Lh.refract=Hg(["visitors","document","objects","Parameter","$visitor"]),qh.refract=Hg(["visitors","document","objects","PathItem","$visitor"]),Bh.refract=Hg(["visitors","document","objects","Paths","$visitor"]),Vh.refract=Hg(["visitors","document","objects","Reference","$visitor"]),Hh.refract=Hg(["visitors","document","objects","RequestBody","$visitor"]),Jh.refract=Hg(["visitors","document","objects","Response","$visitor"]),Gh.refract=Hg(["visitors","document","objects","Responses","$visitor"]),g_.refract=Hg(["visitors","document","objects","Schema","$visitor"]),y_.refract=Hg(["visitors","document","objects","SecurityRequirement","$visitor"]),v_.refract=Hg(["visitors","document","objects","SecurityScheme","$visitor"]),b_.refract=Hg(["visitors","document","objects","Server","$visitor"]),w_.refract=Hg(["visitors","document","objects","ServerVariable","$visitor"]),E_.refract=Hg(["visitors","document","objects","Tag","$visitor"]),x_.refract=Hg(["visitors","document","objects","XML","$visitor"]);const Jg=l((function(e){return _(-1,e)}));const Gg=class extends Hi{};const Wg=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Gg("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Gg("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Gg("latest method in MediaTypes class is not yet implemented.")}};class zg extends Wg{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Jg(this.filterByFormat(e))}}const Zg=new zg("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Kg=new zg(...Zg.filterByFormat("generic"),...Zg.filterByFormat("yaml")),Yg=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,Xg=async e=>Yg.test(e)&&await(async e=>{try{return!(await xt(e)).rootNode.isError}catch{return!1}})(e),Qg=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await xt(e);return Zn(s,{sourceMap:t})})(e,r),{result:i}=n;if(ae(i)){const e=$h.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},ey=lt(qg)})(),__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.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(8900),i=s(1811),o=s(6625);for(var a in r)i(n[a],a),o[a]=o.Array},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,s)=>{"use strict";var r=s(9098),n=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),l=s(3671),u=s(3491),d=s(1811),m=s(3999),h=s(3508),p=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=p("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,p,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===p&&k)return k;if(!b&&e&&e in R)return R[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",N=!1,R=e.prototype,I=R[w]||R["@@iterator"]||p&&R[p],k=!b&&I||M(p),C="Array"===t&&R.entries||I;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||h(P,w,j)),d(P,F,!0,!0),i&&(_[F]=j)),g&&p===x&&I&&I.name!==x&&(!i&&y?m(R,"name",x):(N=!0,k=function(){return n(I,this)})),p)if(T={values:M(x),keys:f?k:M(E),entries:M(S)},O)for(A in T)(b||N||!(A in R))&&h(R,A,T[A]);else r({target:t,proto:!0,forced:b||N},T);return i&&!O||R[w]===k||h(R,w,k,{name:p}),_[t]=k,T}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},208:(e,t,s)=>{"use strict";var r=s(4572),n=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),l=s(4317),u=s(1613),d=s(967),m=s(1743),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},_=p.prototype;e.exports=function(e,t,s){var f,g,y,v,b,w,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),T=r(t,x),A=function(e){return f&&m(f,"normal",e),new p(!0,e)},M=function(e){return S?(i(e),P?T(e[0],e[1],A):T(e[0],e[1])):P?T(e,A):T(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=d(e)))throw new h(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=M(e[y]))&&l(_,b))return b;return new p(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=M(E.value)}catch(e){m(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new p(!1)}},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),l=s(5853),u=s(8666),d="[object Arguments]",m="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?m:a(e),w=v?m:a(t),E=(b=b==d?h:b)==h,x=(w=w==d?h:w)==h,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,T=O?t.value():t;return g||(g=new r),f(P,T,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,f,g))}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),d=!s&&!u&&o(e),m=!s&&!u&&!d&&c(e),h=s||u||d||m,p=h?r(e.length,String):[],_=p.length;for(var f in e)!t&&!l.call(e,f)||h&&("length"==f||d&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||p.push(f);return p}},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,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 s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),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 s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),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,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},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,s)=>{"use strict";var r=s(9098),n=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},d=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),r({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,s)=>{"use strict";var r=s(4713),n=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new l("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,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),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,s)=>{var r=s(7379),n=s(5387),i=s(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[r(e)]}},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,s)=>{"use strict";var r=s(8407),n=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[r(e)]}},986:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(e)}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!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,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var m=l[d];if(!(c?m in t:n.call(t,m)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++d<u;){var g=e[m=l[d]],y=t[m];if(i)var v=c?i(y,g,m,t,e,a):i(g,y,m,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==m)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,s)=>{var r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},1212:(e,t,s)=>{e.exports=s(8411)},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1314:(e,t,s)=>{"use strict";var r=s(8900),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1386:(e,t,s)=>{var r=s(2393),n=s(2049),i=s(7144),o=s(7452),a=s(3964);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,a=r("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},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,s)=>{"use strict";var r=s(4713),n=s(814),i=s(7235),o=s(459),a=s(967),c=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(n(s))return i(r(s,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return n(o),s}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},1780:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!r&&i(u,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},1950:(e,t,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},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,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),a=s(2769),c=s(262),l=s(5780),u=s(3671),d=s(3508),m=s(8655),h=s(4871),p=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=l(r)),a(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:_}},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,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||null,t,s),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,s)=>{"use strict";var r=s(9098),n=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),l=s(3999),u=s(480),d=s(8148),m=s(4279),h=s(208),p=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",p(t)),m(s,y,s.stack,1),arguments.length>2&&d(s,arguments[2]);var a=[];return h(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=y.prototype=c(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}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(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.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),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}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,s)=>{if(e){const r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},3283:(e,t,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,s)=>{"use strict";var r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return i(s),o(r),n(s)?(t?e(s,r):s.__proto__=r,s):s}}():void 0)},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&r(o=t.constructor)&&o!==s&&n(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},3531:(e,t,s)=>{"use strict";var r=s(8900).navigator,n=r&&r.userAgent;e.exports=n?String(n):""},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},3753:(e,t,s)=>{"use strict";var r=s(4871),n=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:r?"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(s){return e(t(s))}}},3832:(e,t,s)=>{"use strict";var r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?a(void 0,!0):(e=r(s,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(((s,r)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?r(e):s(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,s)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&s(r.response),t(r.status)},r.onerror=t,r.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,s){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(s,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,s,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,r)}))))}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 s=getDylinkMetadata(t);return s.neededDynlibs&&(dynamicLibraries=s.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 s=GOT[t];return s||(s=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(s.required=!0),s}},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,s)=>{for(var r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function r(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}function n(){var s=r();return UTF8ArrayToString(e,(t+=s)-s,s)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),s=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var l=r();s=t+l,o=n()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var d=r(),m=0;m<d;++m){var h=n();u.neededDynlibs.push(h)}}else{i("dylink.0"!==o);for(;t<s;){var p=e[t++],_=r();if(1===p)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===p)for(d=r(),m=0;m<d;++m)h=n(),u.neededDynlibs.push(h);else if(3===p)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===p)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}return u};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,s)=>{var r={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},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,s=t+alignMemory(e,16);return ___heap_base=s,GOT.__heap_base.value=s,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"},s={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},r=1;r<e.length;++r)s.parameters.push(t[e[r]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),r=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var i=0;i<r.length;++i)t.push(n[r[i]]);"v"==s?t.push(0):t.push(1,n[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,r),r.push(...s),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(r));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 s=e;s<e+t;s++){var r=getWasmTableEntry(s);r&&functionsInTableMap.set(r,s)}},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 s=getFunctionAddress(e);if(s)return s;var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(r,n)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var r=e[s];s.startsWith("orig$")&&(s=s.split("$")[1],t=!0),GOT[s]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[s].value)&&("function"==typeof r?GOT[s].value=addFunction(r):"number"==typeof r?GOT[s].value=r:err(`unhandled export type for '${s}': ${typeof r}`))}},relocateExports=(e,t,s)=>{var r={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),r[n]=i}return updateGOT(r,s),r},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,s)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...s)),dynCall=(e,t,s=[])=>e.includes("j")?dynCallLegacy(e,t,s):getWasmTableEntry(t)(...s),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...s)=>{var r=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var s;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?s=wasmImports[e]:e.startsWith("invoke_")&&(s=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:s,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 s;t in e||(e[t]=(...e)=>(s||=resolveSymbol(t),s(...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[s,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=r)}},asyncLoad=(e,t,s,r)=>{var n=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,r){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):s&&Object.assign(s,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(r){var s=LE_HEAP_LOAD_U32(4*(r+28>>2)),n=LE_HEAP_LOAD_U32(4*(r+32>>2));if(s&&n){var i=HEAP8.slice(s,s+n);return t.loadAsync?Promise.resolve(i):i}}var o=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(o,e,t)}));if(!readBinary)throw new Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?i().then((n=>loadWebAssemblyModule(n,t,e,s,r))):loadWebAssemblyModule(i(),t,e,s,r)}function a(t){n.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),n.exports=t}return(n=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?o().then((e=>(a(e),!0))):(a(o()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var s=resolveGlobalSymbol(e,!0).sym;if(!s&&!t.required)continue;if("function"==typeof s)t.value=addFunction(s,s.sig);else{if("number"!=typeof s)throw new Error(`bad export type for '${e}': ${typeof s}`);t.value=s}}},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,s="i8"){switch(s.endsWith("*")&&(s="*"),s){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: ${s}`)}}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,s)=>HEAPU8.copyWithin(e,t,t+s);__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 s=getHeapMax();if(e>s)return!1;for(var r,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(r=Math.max(e,o))+((n=65536)-r%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,s,r,n){convertI32PairToI53Checked(t,s);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var s=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(s,0)),s.length=0):s.push(t)},_fd_write=(e,t,s,r)=>{for(var n=0,i=0;i<s;i++){var o=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[o+c]);n+=a}return LE_HEAP_STORE_U32(4*(r>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const s=UTF8ToString(t);currentLogCallback(s,0!==e)}}function _tree_sitter_parse_callback(e,t,s,r,n){const i=currentParseCallback(t,{row:s,column:r});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,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,s=0;s<e.length;++s){var r=e.charCodeAt(s);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,r)=>{if(!(r>0))return 0;for(var n=s,i=s+r-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o);if(a<=127){if(s>=i)break;t[s++]=a}else if(a<=2047){if(s+1>=i)break;t[s++]=192|a>>6,t[s++]=128|63&a}else if(a<=65535){if(s+2>=i)break;t[s++]=224|a>>12,t[s++]=128|a>>6&63,t[s++]=128|63&a}else{if(s+3>=i)break;t[s++]=240|a>>18,t[s++]=128|a>>12&63,t[s++]=128|a>>6&63,t[s++]=128|63&a}}return t[s]=0,s-n},stringToUTF8=(e,t,s)=>stringToUTF8Array(e,HEAPU8,t,s),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,s=stackAlloc(t);return stringToUTF8(e,s,t),s},stringToUTF16=(e,t,s)=>{if(s??=2147483647,s<2)return 0;for(var r=t,n=(s-=2)<2*e.length?s/2:e.length,i=0;i<n;++i){var o=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),o),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-r},AsciiToString=e=>{for(var t="";;){var s=HEAPU8[e++];if(!s)return t;t+=String.fromCharCode(s)}},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,s)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,s),_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,s,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,r),_strncmp=Module._strncmp=(e,t,s)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,s),_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,s)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,s),_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,s)=>(_memset=Module._memset=wasmExports.memset)(e,t,s),_memcpy=Module._memcpy=(e,t,s)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,s),_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,s)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,s),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,s)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,s),_memmove=Module._memmove=(e,t,s)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,s),_memcmp=Module._memcmp=(e,t,s)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,s),_ts_query_new=Module._ts_query_new=(e,t,s,r,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,r,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,s)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,s),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,s)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,s),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,s)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,s),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,s)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,s),_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,s,r,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,r,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,s,r,n,i,o)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,s,r,n,i,o),_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,s,r,n,i,o,a,c,l,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,l,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,l,u),_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,s)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,s),_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,s)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,s),_strncpy=Module._strncpy=(e,t,s)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,s),_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,s,r,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,r,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 s=e.length,r=stackAlloc(4*(s+1)),n=r;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var i=t(s,r);return exitJS(i,!0),i}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 s=C._ts_language_version(t);if(s<MIN_COMPATIBLE_VERSION||VERSION<s)throw new Error(`Incompatible language version ${s}. 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,s){if("string"==typeof e)currentParseCallback=(t,s)=>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 r=0,n=0;if(s?.includedRanges){r=s.includedRanges.length,n=C._calloc(r,SIZE_OF_RANGE);let e=n;for(let t=0;t<r;t++)marshalRange(e,s.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}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"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}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,s,r){assertInternal(e),this[0]=t,this.language=s,this.textCallback=r}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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),marshalPoint(s+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"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}}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"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return r}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 s=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,s),s+=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 s=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),s||(s=ZERO_POINT);const r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(i+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,s.row,s.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+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 s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+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 s=lengthBytesUTF8(e),r=C._malloc(s+1);stringToUTF8(e,r,s+1);const n=C._ts_language_symbol_for_name(this[0],r,s,t);return C._free(r),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),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const r=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(s,r).length,i=e.substr(n,100).split("\n")[0];let o,a=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:o=new RangeError(`Bad node name '${a}'`);break;case 3:o=new RangeError(`Bad field name '${a}'`);break;case 4:o=new RangeError(`Bad capture name @${a}`);break;case 5:o=new TypeError(`Bad pattern structure at offset ${n}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),a=""}throw o.index=n,o.length=a.length,C._free(s),o}const n=C._ts_query_string_count(r),i=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const l=new Array(o),u=new Array(o),d=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],h[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});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 s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!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(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,s=n[2].name;h[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!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}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));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.".');l[e]||(l[e]={}),l[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?u:d;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!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.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));h[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(s),new Query(INTERNAL,r,a,h,m,Object.freeze(l),Object.freeze(u),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[s]();return new Language(INTERNAL,r)}))}}class LookaheadIterable{constructor(e,t,s){assertInternal(e),this[0]=t,this.language=s}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,s,r,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=new Array(c);this.exceededMatchLimit=Boolean(u);let m=0,h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=new Array(s);if(h=unmarshalCaptures(this,e.tree,h,r),this.textPredicates[t].every((e=>e(r)))){d[m]={pattern:t,captures:r};const e=this.setProperties[t];e&&(d[m].setProperties=e);const s=this.assertedProperties[t];s&&(d[m].assertedProperties=s);const n=this.refutedProperties[t];n&&(d[m].refutedProperties=n),m++}}return d.length=m,C._free(l),d}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=[];this.exceededMatchLimit=Boolean(u);const m=[];let h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=getValue(h,"i32");if(h+=SIZE_OF_INT,m.length=s,h=unmarshalCaptures(this,e.tree,h,m),this.textPredicates[t].every((e=>e(m)))){const e=m[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(l),d}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1),C._ts_query_disable_capture(this[0],s,t),C._free(s)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,s){const r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function unmarshalCaptures(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,r[n]={name:e.captureNames[i],node:o}}return s}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 s=getValue(t,"i32");if(0===s)return null;const r=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=s,a.startIndex=r,a.startPosition={row:n,column:i},a[0]=o,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,s)=>{"use strict";var r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var p=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],y=t[p];if(o)var v=l?o(y,g,p,t,e,c):o(g,y,p,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(g===e||a(g,e,s,o,c)))return f.push(t)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,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,s)=>{var r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},4123:(e,t,s)=>{const r=s(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,s)=>{"use strict";var r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):r(e,"stack",n(s,a)))}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),l=s(701),u=s(9665),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),u)try{return d(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},4603:(e,t,s)=>{"use strict";var r=s(5547),n=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,a))}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},4759:(e,t,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,s)=>{"use strict";var r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},4904:(e,t,s)=>{"use strict";var r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,s)=>{var r=s(3305),n=s(9361),i=s(1112),o=s(5276),a=s(5071);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(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,s)=>{"use strict";var r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,s)=>{"use strict";s(5695)},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5547:(e,t,s)=>{"use strict";var r,n,i=s(8900),o=s(3531),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,d=i(o(t)),m=n(s),h=d.length;return m<0||m>=h?e?"":void 0:(r=c(d,m))<55296||r>56319||m+1===h||(u=c(d,m+1))<56320||u>57343?e?a(d,m):r:e?l(d,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),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((s=>s.key.toValue()!==e||(t=s,!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 s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,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((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},5695:(e,t,s)=>{"use strict";s(3085)},5735:(e,t,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),d="prototype",m="script",h=u("IE_PROTO"),p=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},f=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?f(r):(t=l("iframe"),s="java"+m+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete g[d][o[n]];return g()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(p[d]=n(e),s=new p,p[d]=null,s[h]=e):s=g(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),d=s(4879),m=s(8148),h=s(4279),p=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=d(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),h(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&m(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,d,m,h){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==d)return i(d);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==h)return p=h,o.get(p)||p;var p;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,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,s)=>{var r=s(5650),n=s(8870),i=s(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[s]);return e}},7447:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},7452:(e,t,s)=>{var r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var d=a[u];r(e,d)||s&&r(s,d)||c(e,d,l(t,d))}}},7525:(e,t,s)=>{"use strict";var r=s(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),l=s(7309),u=s(5642),d=s(9620),m=s(593),h=s(4123),p=s(3311),_=s(2322);function f(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=m,r.prototype.MemberElement=l,r.prototype.refract=f,h.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:d,RefElement:m,refract:f,ArraySlice:h,ObjectSlice:p,KeyValuePair:_}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,s)=>{var r=s(3766)(Object.keys,Object);e.exports=r},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8141:(e,t,s)=>{"use strict";var r=s(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},8250:(e,t,s)=>{var r=s(9753),n=s(5681),i=s(88),o=s(4732),a=s(9068);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(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,s(394),s(3148)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?s:c?i(t):"Object"===(r=i(t))&&n(t.callee)?"Arguments":r}},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),a=s(8900),c=s(262),l=s(3999),u=s(701),d=s(3753),m=s(4275),h=s(5241),p="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||d.state){var g=d.state||(d.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(p);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=m("state");h[y]=!0,r=function(e,t){if(u(e,y))throw new _(p);return t.facade=e,l(e,y,t),t},n=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=n(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return s}}}},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),l=s(4066),u="[object Map]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",p="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=p||n&&b(new n)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=m||a&&b(new a)!=h)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return p;case f:return u;case g:return d;case y:return m;case v:return h}return t}),e.exports=b},8583:(e,t)=>{"use strict";var s;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"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(a,s)&&n(r,s)&&c(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||c(u,s));return u}},8631:(e,t,s)=>{const r=s(6343),n=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,s)=>{"use strict";var r=s(8900),n=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),l=r.Symbol,u=n("wks"),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:d("Symbol."+e)),u[e]}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?n(o):r;e.exports=a},8696:(e,t,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,s)=>{var r=s(5650),n=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,d,m){switch(s){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||!d(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var _=m.get(e);if(_)return _==t;r|=2,m.set(e,t);var f=o(h(e),h(t),r,l,d,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},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,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),d=s(3999),m=s(701);s(3753);var h=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,p,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||d(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&m(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?h(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&d(v,"sham",!0),d(O,_,v),S&&(m(l,p=w+"Prototype")||d(l,p,{}),d(l[p],_,f),e.real&&P&&(s||!P[_])&&d(P,_,f)))}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!i(a=r(s,e)))return a;if(n(s=e.valueOf)&&!i(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!i(a=r(s,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(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,s)=>{var r=s(4715)(s(8942),"Promise");e.exports=r},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,s)=>{"use strict";var r=s(8900),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),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,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),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 s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=s(4871),d=s(5024),m="Array Iterator",h=o.set,p=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){h(this,{type:m,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&d&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",m="configurable",h="writable";t.f=r?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&h in s&&!s[h]){var r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:d in s?s[d]:r[d],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new c("Accessors not supported");return"value"in s&&(e[t]=s.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__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 s=t.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].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:()=>Xg,detectionRegExp:()=>Yg,mediaTypes:()=>Kg,namespace:()=>ey,parse:()=>Qg});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>dn,includesClasses:()=>hn,includesSymbols:()=>mn,isAnnotationElement:()=>an,isArrayElement:()=>sn,isBooleanElement:()=>en,isCommentElement:()=>cn,isElement:()=>Kr,isLinkElement:()=>nn,isMemberElement:()=>rn,isNullElement:()=>Qr,isNumberElement:()=>Xr,isObjectElement:()=>tn,isParseResultElement:()=>ln,isPrimitiveElement:()=>un,isRefElement:()=>on,isStringElement:()=>Yr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Jo,isJSONSchemaElement:()=>Ho,isLinkDescriptionElement:()=>Wo,isMediaElement:()=>Go});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>Sl,isCallbackElement:()=>nl,isComponentsElement:()=>il,isContactElement:()=>ol,isDiscriminatorElement:()=>Fl,isExampleElement:()=>al,isExternalDocumentationElement:()=>cl,isHeaderElement:()=>ll,isInfoElement:()=>ul,isLicenseElement:()=>dl,isLinkElement:()=>ml,isMediaTypeElement:()=>Al,isOpenApi3_0Element:()=>pl,isOpenapiElement:()=>hl,isOperationElement:()=>_l,isParameterElement:()=>fl,isPathItemElement:()=>gl,isPathsElement:()=>yl,isReferenceElement:()=>vl,isRequestBodyElement:()=>bl,isResponseElement:()=>wl,isResponsesElement:()=>El,isSchemaElement:()=>xl,isSecurityRequirementElement:()=>jl,isSecuritySchemeElement:()=>Ol,isServerElement:()=>Pl,isServerVariableElement:()=>Tl,isServersElement:()=>Ml});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Jo,isJSONSchemaElement:()=>cp,isLinkDescriptionElement:()=>lp,isMediaElement:()=>Go});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Jo,isJSONSchemaElement:()=>bp,isLinkDescriptionElement:()=>wp});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>Yp,isLinkDescriptionElement:()=>Xp});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>d_,isLinkDescriptionElement:()=>m_});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(s){return 0===arguments.length||c(s)?t:e.apply(this,arguments)}}function u(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return c(s)?t:l((function(t){return e(s,t)}));default:return c(s)&&c(r)?t:c(s)?l((function(t){return e(t,r)})):c(r)?l((function(t){return e(s,t)})):e(s,r)}}}function d(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return c(s)?t:u((function(t,r){return e(s,t,r)}));case 2:return c(s)&&c(r)?t:c(s)?u((function(t,s){return e(t,r,s)})):c(r)?u((function(t,r){return e(s,t,r)})):l((function(t){return e(s,r,t)}));default:return c(s)&&c(r)&&c(n)?t:c(s)&&c(r)?u((function(t,s){return e(t,s,n)})):c(s)&&c(n)?u((function(t,s){return e(t,r,s)})):c(r)&&c(n)?u((function(t,r){return e(s,t,r)})):c(s)?l((function(t){return e(t,r,n)})):c(r)?l((function(t){return e(s,t,n)})):c(n)?l((function(t){return e(s,r,t)})):e(s,r,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isBooleanJsonSchemaElement:()=>Sf,isCallbackElement:()=>ef,isComponentsElement:()=>tf,isContactElement:()=>sf,isExampleElement:()=>rf,isExternalDocumentationElement:()=>nf,isHeaderElement:()=>of,isInfoElement:()=>af,isJsonSchemaDialectElement:()=>cf,isLicenseElement:()=>lf,isLinkElement:()=>uf,isMediaTypeElement:()=>Af,isOpenApi3_1Element:()=>mf,isOpenapiElement:()=>df,isOperationElement:()=>hf,isParameterElement:()=>pf,isPathItemElement:()=>_f,isPathItemElementExternal:()=>ff,isPathsElement:()=>gf,isReferenceElement:()=>yf,isReferenceElementExternal:()=>vf,isRequestBodyElement:()=>bf,isResponseElement:()=>wf,isResponsesElement:()=>Ef,isSchemaElement:()=>xf,isSecurityRequirementElement:()=>jf,isSecuritySchemeElement:()=>Of,isServerElement:()=>Pf,isServerVariableElement:()=>Tf});const m=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return(e|0)===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return p(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return h(e)?_(e,t):t[e]}));const g=d((function(e,t,s){return m(e,f(t,s))}));var y=u((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));const v=y;function b(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const w=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=l((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function S(e,t,s){return function(r,n,i){if(E(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function j(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function O(e,t,s,r){return s[r](e,t)}const P=S(b,O,j);function T(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!w(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function A(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const M=function(){return this.xf["@@transducer/init"]()},F=function(e){return this.xf["@@transducer/result"](e)};var N=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const R=function(e){return function(t){return new N(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,s){return t.apply(this,arguments)};case 3:return function(e,s,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(e,t,s){return function(){for(var r=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var l;o<t.length&&(!c(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),r[o]=l,c(l)?a=!0:i-=1,o+=1}return!a&&i<=0?s.apply(this,r):I(Math.max(0,i),k(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):I(e,k(e,[],t))}));function $(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var D=Object.prototype.toString;const L=function(){return"[object Arguments]"===D.call(arguments)?function(e){return"[object Arguments]"===D.call(e)}:function(e){return $("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},H="function"!=typeof Object.keys||U?l((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=U&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=B.length-1;s>=0;)$(t=B[s],e)&&!V(r,t)&&(r[r.length]=t),s-=1;return r})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const J=H;const G=u(T(["fantasy-land/map","map"],R,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return C(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return b((function(s,r){return s[r]=e(t[r]),s}),{},J(t));default:return A(e,t)}})));const W=u((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:P((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,G(s,t))}),[],e)}));const z=u((function(e,t){var s=C(e,t);return C(e,(function(){return b(W,G(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=l((function(e){return z(e.length,e)}));const K=Z(l((function(e){return!e})));function Y(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function X(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Q="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const ee=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function te(e,t,s,r){var n=Y(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!X((function(e,t){return!X(i,t,e)}),Y(t),n)}function se(e,t,s,r){if(Q(e,t))return!0;var n,i,o=ee(e);if(o!==ee(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Q(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Q(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=s.length-1;a>=0;){if(s[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&te(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&te(e.values(),t.values(),s.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=J(e);if(c.length!==J(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var d=c[a];if(!$(d,t)||!se(t[d],e[d],l,u))return!1;a-=1}return!0}const re=u((function(e,t){return se(e,t,[],[])}));const ne=l((function(e){return function(){return e}}));const ie=ne(void 0);const oe=re(ie());const ae=K(oe);var ce=__webpack_require__(8326);function le(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const de=u((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function me(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function he(e,t,s,r){return e["@@transducer/result"](s[r](de(e["@@transducer/step"],e),t))}const pe=S(ue,he,me);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 fe(e){return new _e(e)}const ge=d((function(e,t,s){return pe("function"==typeof e?fe(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return w(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ve=d(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const be=l(ye("tail",ve(1,1/0)));function we(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,ge(le,arguments[0],be(arguments)))}var Ee=function(e,t){switch(arguments.length){case 0:return Ee;case 1:return function t(s){return 0===arguments.length?t:Q(e,s)};default:return Q(e,t)}};const xe=Ee;function Se(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(re(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function je(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 Oe=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Oe(e.getUTCMonth()+1)+"-"+Oe(e.getUTCDate())+"T"+Oe(e.getUTCHours())+":"+Oe(e.getUTCMinutes())+":"+Oe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Te(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Me(e){return function(t){return new Ae(e,t)}}const Fe=u(T(["fantasy-land/filter","filter"],Me,(function(e,t){return Te(t)?b((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},J(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const Ne=u((function(e,t){return Fe((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Re(e,t){var s=function(s){var r=t.concat([e]);return Se(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return je(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(s,e).join(", ")+"))";case"[object Array]":return"["+A(s,e).concat(r(e,Ne((function(e){return/^\d+$/.test(e)}),J(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):je(Pe(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":je(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,J(e)).join(", ")+"}"}}const Ie=l((function(e){return Re(e,[])}));function ke(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=h(n)?_(n,s):s[n]}return s}const Ce=d((function(e,t,s){return e(ke(t,s))}));function $e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const De=u((function(e,t){return e&&t}));const Le=u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z(De)(e,t)}));const qe=re(null);const Be=K(qe);function Ue(e){return Ue="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},Ue(e)}const Ve=function(e){return"object"===Ue(e)};const He=C(1,Le(Be,Ve));const Je=u((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ie(e),o=s(i,Ie(t));return void 0!==o&&o===i?e:t}));const Ge=u((function(e,t){return G(f(e),t)}));const We=l((function(e){return C(ge(Je,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const ze=C(1,we(ee,xe("GeneratorFunction")));const Ze=C(1,we(ee,xe("AsyncFunction")));const Ke=We([we(ee,xe("Function")),ze,Ze]);var Ye=we(ee,xe("Object")),Xe=we(Ie,re(Ie(Object))),Qe=Ce(Le(Ke,Xe),["constructor"]);const et=C(1,(function(e){if(!He(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Qe(t)}));class tt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const st=tt;class rt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const nt=rt;class it extends ce.wE{constructor(e,t,s){super(e,t,s),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(oe(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const ot=it;class at extends ce.g${constructor(){super(),this.register("annotation",st),this.register("comment",nt),this.register("parseResult",ot)}}const ct=new at,lt=e=>{const t=new at;return et(e)&&t.use(e),t},ut=ct;const dt=C(1,we(ee,xe("String"))),mt=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ht=globalThis.fetch;Ke(ht)&&(globalThis.fetch=(...e)=>dt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[mt,be(e)]):ht.apply(globalThis,e));var pt=__webpack_require__(3833),_t=__webpack_require__(1212);const ft=class extends _t{constructor(e,t,s){if(super(e,t,s),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!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class gt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ft,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 yt=gt,vt=__webpack_require__.p+"fe6ac473f020fbdb0dc39a494e428b55.wasm";let bt=null,wt=null,Et=null;const xt=async e=>{if(null===bt&&null===wt)wt=pt.init().then((()=>pt.Language.load(vt))).then((e=>{const t=new pt;return t.setLanguage(e),t})).finally((()=>{wt=null})),bt=await wt;else if(null===bt&&null!==wt)bt=await wt;else if(null===bt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Et=bt.parse(e),bt.reset(),Et};const St=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const jt=class extends St{};const Ot=class extends jt{};const Pt=class extends Ot{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 Tt=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:s,startPositionColumn:r,startIndex:n,endPositionRow:i,endPositionColumn:o,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=s,this.startPositionColumn=r,this.startIndex=n,this.endPositionRow=i,this.endPositionColumn=o,this.endIndex=a}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};let At=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Mt=class extends Tt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const Ft=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Nt=class extends Ft{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===At.Mapping}};const Rt=class extends Ft{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===At.Sequence}};const It=class extends Ft{static uri="tag:yaml.org,2002:str"};const kt=d((function(e,t,s){return m(e,ke(t,s))}));const Ct=l((function(e){return C(e.length,e)}));var $t="\t\n\v\f\r \u2028\u2029\ufeff";const Dt=l("function"==typeof String.prototype.trim&&!$t.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+$t+"]["+$t+"]*"),s=new RegExp("["+$t+"]["+$t+"]*$");return e.replace(t,"").replace(s,"")});const Lt=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&$e(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ie(s)+' does not have a method named "'+t+'"')}))}));const qt=Lt(1,"split");const Bt=Lt(1,"join");const Ut=l((function(e){return p(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Vt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Ut(arguments))}const Ht=C(4,(function(e,t,s,r){return pe(e("function"==typeof t?fe(t):t),s,r)}));const Jt=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(Ie(t)+" is not an array")}if(p(e)){if(p(t))return e+t;throw new TypeError(Ie(t)+" is not a string")}if(null!=e&&$e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&$e(e.concat))return e.concat(t);throw new TypeError(Ie(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Gt=re("");const Wt=u((function(e,t){return C(ge(Je,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,s)}),t))}))}));function zt(e){return e}const Zt=l(zt);const Kt=C(1,we(ee,xe("Number")));var Yt=Le(Kt,isFinite);var Xt=C(1,Yt);const Qt=Ke(Number.isFinite)?C(1,de(Number.isFinite,Number)):Xt;var es=Le(Qt,Wt(re,[Math.floor,Zt]));var ts=C(1,es);const ss=Ke(Number.isInteger)?C(1,de(Number.isInteger,Number)):ts;const rs=l((function(e){return C(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const ns=K(Qt);const is=C(1,Le(Kt,u((function(e,t){return e>t}))(0)));var os=Ct((function(e,t){var s=Number(t);if(s!==t&&(s=0),is(s))throw new RangeError("repeat count must be non-negative");if(ns(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),as=rs(Lt(1,"repeat"));const cs=Ke(String.prototype.repeat)?as:os;const ls=d((function(e,t,s){return s.replace(e,t)}));var us=ls(/[\s\uFEFF\xA0]+$/,""),ds=Lt(0,"trimEnd");const ms=Ke(String.prototype.trimEnd)?ds:us;var hs=ls(/^[\s\uFEFF\xA0]+/,""),ps=Lt(0,"trimStart");const _s=Ke(String.prototype.trimStart)?ps:hs;var fs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,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 gs(e){return function(t){return new fs(e,t)}}const ys=u(T(["dropWhile"],gs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ve(s,1/0,t)})));const vs=rs(u(Se));const bs=Ct((function(e,t){return we(qt(""),ys(vs(e)),Bt(""))(t)}));const ws=rs(Jt);var Es=__webpack_require__(6850);const xs=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Ss=e=>{const t=(e=>{const t=e.match(xs),s=kt("",["groups","indentation"],t);return Gt(s)?void 0:parseInt(s,10)})(e);if(ss(t))return cs(" ",t);const s=kt("",[1],e.split("\n")),r=kt(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return cs(" ",r)},js=e=>{const t=e.match(xs),s=kt("",["groups","chomping"],t);return Gt(s)?void 0:s},Os=(e,t)=>oe(e)?`${ms(t)}\n`:"-"===e?ms(t):t,Ps=e=>e.replace(/\r\n/g,"\n"),Ts=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),As=Ct(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Ms=we(Ps,Dt,Ts,qt("\n"),G(_s),Bt("\n")),Fs=we(Ps,Dt,Ts,qt("\n"),G(_s),Bt("\n"),As("'")),Ns=we(Ps,Dt,(e=>e.replace(/\\\n\s*/g,"")),Ts,Es.MH,qt("\n"),G(_s),Bt("\n"),As('"'));let Rs=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}({}),Is=function(e){return e.Flow="Flow",e.Block="Block",e}({});const ks=class{static test(e){return e.tag.kind===At.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Rs.Plain?t=Ms(e.content):e.style===Rs.SingleQuoted?t=Fs(e.content):e.style===Rs.DoubleQuoted?t=Ns(e.content):e.style===Rs.Literal?t=(e=>{const t=Ss(e),s=js(e),r=Ps(e),n=be(r.split("\n")),i=Vt(G(bs(t)),G(ws("\n"))),o=Ht(i,Jt,"",n);return Os(s,o)})(e.content):e.style===Rs.Folded&&(t=(e=>{const t=Ss(e),s=js(e),r=Ps(e),n=be(r.split("\n")),i=Vt(G(bs(t)),G(ws("\n"))),o=Ht(i,Jt,"",n),a=Ts(o);return Os(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const Cs=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Nt),this.registerTag(new Rt),this.registerTag(new It)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===At.Scalar?t=It.uri:e.tag.kind===At.Sequence?t=Rt.uri:e.tag.kind===At.Mapping&&(t=Nt.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 s=e;ks.test(e)&&(s=ks.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Pt(`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(!r.test(s))throw new Pt(`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:s.content,node:e.clone()});return r.resolve(s)}};const $s=class extends Ft{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const Ds=class extends Ft{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),s=e.clone();return s.content=t,s}};const Ls=class extends Ft{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),s=e.clone();return s.content=t,s}};const qs=class extends Ft{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 Bs=class extends Cs{constructor(){super(),this.registerTag(new $s,!0),this.registerTag(new Ds,!0),this.registerTag(new Ls,!0),this.registerTag(new qs,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===At.Sequence)t=Rt.uri;else if(e.tag.kind===At.Mapping)t=Nt.uri;else if(e.tag.kind===At.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Us=class extends Tt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Vs=class extends Us{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Hs=class extends jt{},Js=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Gs=e=>Js("mapping",e),Ws=e=>Js("sequence",e),zs=e=>Js("keyValuePair",e),Zs=e=>Js("scalar",e),Ks=e=>Js("alias",e);const Ys=class{addAnchor(e){if(!(e=>Js("anchor",e))(e.anchor))throw new Hs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Vs({content:e.content,style:Rs.Plain,styleGroup:Is.Flow})}},Xs=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Qs={},er=e=>null==e?void 0:e.type,tr=e=>"string"==typeof er(e),sr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),rr=(e,{visitFnGetter:t=Xs,nodeTypeGetter:s=er,breakSymbol:r=Qs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,d,m,h,g);if("function"==typeof(null==t?void 0:t.then))throw new St("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=a.call(e[n],h,o,l,u,d,p);if("function"==typeof(null==t?void 0:t.then))throw new St("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};rr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Xs,nodeTypeGetter:s=er,breakSymbol:r=Qs,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,d,m,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,d,m,h,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,d,m){let h=n;const p={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=await a.call(e[n],h,o,l,u,d,p);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};const nr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Qs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xs,nodeTypeGetter:c=er,nodePredicate:l=tr,nodeCloneFn:u=sr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const j=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),j)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let O;if(!Array.isArray(b)){var x;if(!l(b))throw new St(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};O=i.call(t,b,s,_,w,E,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new St("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===n)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(v.push([s,O]),!e)){if(!l(O)){w.pop();continue}b=O}}var S;if(void 0===O&&j&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(S=h[c(b)])&&void 0!==S?S:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};nr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=Qs,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xs,nodeTypeGetter:c=er,nodePredicate:l=tr,nodeCloneFn:u=sr,detectCycles:d=!0,detectCyclesCallback:m=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const w=[],E=[];do{y+=1;const e=y===g.length;let s;const S=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w.pop(),b=_,_=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;w.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new St(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&E.includes(b)){"function"==typeof m&&m(b,s,_,w,E),w.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,w,E):_&&(_[s]=t),e||(b=t)}};j=await i.call(t,b,s,_,w,E,n)}if(j===n)break;if(j===o){if(!e){w.pop();continue}}else if(void 0!==j&&(v.push([s,j]),!e)){if(!l(j)){w.pop();continue}b=j}}var x;if(void 0===j&&S&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(x=h[c(b)])&&void 0!==x?x:[],y=-1,v=[],_!==i&&void 0!==_&&E.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};const ir=class extends Tt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class or extends Tt{static type="stream"}Object.defineProperty(or.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Js("document",e))(e)||(e=>Js("comment",e))(e))):[]},enumerable:!0});const ar=or;const cr=l((function(e){return _(0,e)}));const lr=class extends Tt{static type="parseResult";get rootNode(){return cr(this.children)}};const ur="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),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)$(i,n)&&(t[i]=n[i]);s+=1}return t};const dr=u((function(e,t){return ur({},e,t)}));const mr=class extends Tt{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=dr({version:void 0,handle:void 0,prefix:void 0},t)}};const hr=class extends Tt{static type="document"};const pr=class extends Us{};class _r extends pr{static type="mapping"}Object.defineProperty(_r.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(zs):[]},enumerable:!0});const fr=_r;class gr extends Tt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(gr.prototype,{key:{get(){return this.children.filter((e=>Zs(e)||Gs(e)||Ws(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Zs(e)||Gs(e)||Ws(e)||Ks(e))(t)))[0]},enumerable:!0}});const yr=gr;class vr extends pr{static type="sequence"}Object.defineProperty(vr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Ws(e)||Gs(e)||Zs(e)||Ks(e))):[]},enumerable:!0});const br=vr;const wr=class extends Tt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Er=class extends Tt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const xr=class extends Tt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Sr=class extends Tt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const jr=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const Or=l((function(e){return null==e}));var Pr=u((function(e,t){if(0===e.length||Or(t))return!1;for(var s=t,r=0;r<e.length;){if(Or(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const Tr=Pr;var Ar=u((function(e,t){return Tr([e],t)}));const Mr=Ar;const Fr=d((function(e,t,s){return e(f(t,s))}));const Nr=u(ke),Rr=(e,t)=>{const s=m(e,t);return jr((e=>{if(et(e)&&Mr("$ref",e)&&Fr(dt,"$ref",e)){const t=Nr(["$ref"],e),r=bs("#/",t);return Nr(r.split("/"),s)}return et(e)?Rr(e,s):e}),e)},Ir=(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 kr=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)}},Cr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},$r=e=>Array.isArray(e)||tr(e);class Dr{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 ir(Ir({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,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?At.Mapping:e.type.endsWith("sequence")?At.Sequence:At.Scalar;return new Mt(Ir({explicitName:s,kind:r},t))}schema;referenceManager;stream={enter:e=>new ar(Ir({children:e.children,isMissing:e.isMissing},e)),leave:e=>new lr({children:[e]})};yaml_directive={enter:e=>{var t;const s=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new mr(Ir({name:"%YAML",parameters:{version:s}},e))}};tag_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=new mr(Ir({name:"%TAG",parameters:{handle:null==t?void 0:t.text,prefix:null==s?void 0:s.text}},e));return this.schema.registerTagDirective(r),r}};reserved_directive={enter:e=>{const t=e.children[0],s=e.children[1],r=e.children[2];return new mr(Ir({name:null==t?void 0:t.text,parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}},e))}};document={enter:e=>new hr(Ir({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(Dr.isScalar(t)||Dr.isMapping(t)||Dr.isSequence(t))return e.children;const s=new Vs({content:"",anchor:Dr.kindNodeToYamlAnchor(t),tag:Dr.kindNodeToYamlTag(t),startPositionRow:t.endPositionRow,startPositionColumn:t.endPositionColumn,startIndex:t.endIndex,endPositionRow:t.endPositionRow,endPositionColumn:t.endPositionColumn,endIndex:t.endIndex,styleGroup:Is.Flow,style:Rs.Plain});return this.registerAnchor(s),[...e.children,s]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new fr(Ir({children:e.children,anchor:s,tag:t,styleGroup:Is.Block,style:Rs.NextLine,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_mapping_pair={enter:e=>{const t=[...e.children];if(Dr.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if(Dr.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new yr(Ir({children:t,styleGroup:Is.Block,isMissing:e.isMissing},e))}};flow_mapping={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new fr(Ir({children:e.children,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.Explicit,isMissing:e.isMissing},e));return this.registerAnchor(r),this.schema.resolve(r)}};flow_pair={enter:e=>{const t=[...e.children];if(Dr.hasKeyValuePairEmptyKey(e)){const s=this.createKeyValuePairEmptyKey(e);t.unshift(s)}if(Dr.hasKeyValuePairEmptyValue(e)){const s=this.createKeyValuePairEmptyValue(e);t.push(s)}return new yr(Ir({children:t,styleGroup:Is.Flow,isMissing:e.isMissing},e))}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new br(Ir({children:e.children,anchor:s,tag:t,styleGroup:Is.Block,style:Rs.NextLine},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;return[new Vs({content:"",tag:new Mt({explicitName:"?",kind:At.Scalar}),startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,styleGroup:Is.Flow,style:Rs.Plain})]}};flow_sequence={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new br(Ir({children:e.children.flat(),anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.Explicit},e));return this.registerAnchor(r),this.schema.resolve(r)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.Plain},e));return this.registerAnchor(r),this.schema.resolve(r)}};single_quote_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.SingleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};double_quote_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Flow,style:Rs.DoubleQuoted},e));return this.registerAnchor(r),this.schema.resolve(r)}};block_scalar={enter:e=>{const t=Dr.kindNodeToYamlTag(e),s=Dr.kindNodeToYamlAnchor(e),r=e.text.startsWith("|")?Rs.Literal:e.text.startsWith(">")?Rs.Folded:Rs.Plain,n=new Vs(Ir({content:e.text,anchor:s,tag:t,styleGroup:Is.Block,style:r},e));return this.registerAnchor(n),this.schema.resolve(n)}};comment={enter:e=>new wr({content:e.text})};alias={enter:e=>{const t=new Er({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof kr&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new xr(Ir({value:t,isMissing:s},e))}}ERROR(e,t,s,r){const n=new Sr(Ir({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===r.length?new lr({children:[n]}):n}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const{keyNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find(Dr.isKind("tag")),n=s.find(Dr.isKind("anchor")),i=new Mt(void 0!==r?Ir({explicitName:r.text,kind:At.Scalar},r):{explicitName:"?",kind:At.Scalar}),o=void 0!==n?new ir(Ir({name:n.text},n)):void 0,a=new Vs({content:"",startPositionRow:e.startPositionRow,startPositionColumn:e.startPositionColumn,startIndex:e.startIndex,endPositionRow:e.startPositionRow,endPositionColumn:e.startPositionColumn,endIndex:e.startIndex,tag:i,anchor:o,styleGroup:Is.Flow,style:Rs.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const{valueNode:t}=e,s=(null==t?void 0:t.children)||[],r=s.find(Dr.isKind("tag")),n=s.find(Dr.isKind("anchor")),i=new Mt(void 0!==r?Ir({explicitName:r.text,kind:At.Scalar},r):{explicitName:"?",kind:At.Scalar}),o=void 0!==n?new ir(Ir({name:n.text},n)):void 0,a=new Vs({content:"",startPositionRow:e.endPositionRow,startPositionColumn:e.endPositionColumn,startIndex:e.endIndex,endPositionRow:e.endPositionRow,endPositionColumn:e.endPositionColumn,endIndex:e.endIndex,tag:i,anchor:o,styleGroup:Is.Flow,style:Rs.Plain});return this.registerAnchor(a),a}}const Lr=Dr;function qr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Br=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=qr(this.xf["@@transducer/step"](e,!1))),e},e}();function Ur(e){return function(t){return new Br(e,t)}}const Vr=u(T(["all"],Ur,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Hr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Jr=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Gr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Wr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),zr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Zr=e=>e({hasMethod:Hr,hasBasicElementProps:Jr,primitiveEq:Gr,isElementType:zr,hasClass:Wr}),Kr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),Yr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Xr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Qr=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),en=Zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),tn=Zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),sn=Zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.wE&&!(r instanceof ce.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),rn=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),nn=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),on=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),an=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("annotation",r)&&s("array",r))),cn=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("comment",r)&&s("string",r))),ln=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("parseResult",r)&&s("array",r))),un=e=>zr("object",e)||zr("array",e)||zr("boolean",e)||zr("number",e)||zr("string",e)||zr("null",e)||zr("member",e),dn=e=>!!Kr(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)),mn=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!sn(s)&&Vr(vs(s.toValue()),e)},hn=(e,t)=>0===e.length||Vr(vs(t.classes.toValue()),e);const pn=class extends St{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const _n=class extends pn{};const fn=class extends pn{},gn=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof ce.KeyValuePair){const{key:t,value:n}=e,i=Kr(t)?gn(t,r):t,o=Kr(n)?gn(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>gn(e,r),n=[...e].map(t),i=new ce.ot(n);return s.set(e,i),i}if(e instanceof ce.G6){const t=e=>gn(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Kr(e)){const t=bn(e);if(s.set(e,t),e.content)if(Kr(e.content))t.content=gn(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=gn(e.content,r);else if(Array.isArray(e.content)){const s=e=>gn(e,r);t.content=e.content.map(s)}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})};gn.safe=e=>{try{return gn(e)}catch{return e}};const yn=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},vn=e=>{const t=new e.constructor;if(t.element=e.element,dn(e)&&Ir(t,e),e.meta.length>0&&(t._meta=gn(e.meta)),e.attributes.length>0&&(t._attributes=gn(e.attributes)),Kr(e.content)){const s=e.content;t.content=vn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=yn(e.content):t.content=e.content;return t},bn=e=>{if(e instanceof ce.KeyValuePair)return yn(e);if(e instanceof ce.ot)return(e=>{const t=[...e];return new ce.ot(t)})(e);if(e instanceof ce.G6)return(e=>{const t=[...e];return new ce.G6(t)})(e);if(Kr(e))return vn(e);throw new fn("Value provided to cloneShallow function couldn't be cloned",{value:e})};bn.safe=e=>{try{return bn(e)}catch{return e}};const wn=e=>tn(e)?"ObjectElement":sn(e)?"ArrayElement":rn(e)?"MemberElement":Yr(e)?"StringElement":en(e)?"BooleanElement":Xr(e)?"NumberElement":Qr(e)?"NullElement":nn(e)?"LinkElement":on(e)?"RefElement":void 0,En=e=>Kr(e)?bn(e):sr(e),xn=we(wn,dt),Sn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const jn=(e,t,{keyMap:s=Sn,...r}={})=>nr(e,t,{keyMap:s,nodeTypeGetter:wn,nodePredicate:xn,nodeCloneFn:En,...r});jn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=Sn,...r}={})=>nr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:wn,nodePredicate:xn,nodeCloneFn:En,...r});const On=d((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})$(r,t)&&(n[r]=$(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)$(r,s)&&!$(r,n)&&(n[r]=s[r]);return n}));const Pn=d((function e(t,s,r){return On((function(s,r,n){return Te(r)&&Te(n)?e(t,r,n):t(s,r,n)}),s,r)}));const Tn=u((function(e,t){return Pn((function(e,t,s){return s}),e,t)}));const An=ve(0,-1);const Mn=u((function(e,t){return e.apply(this,t)}));const Fn=K(Ke);var Nn=l((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():w(e)?[]:p(e)?"":Te(e)?{}:L(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 Rn=Nn;const In=l((function(e){return null!=e&&re(e,Rn(e))}));const kn=C(1,Ke(Array.isArray)?Array.isArray:we(ee,xe("Array")));const Cn=Le(kn,In);const $n=C(3,(function(e,t,s){var r=Nr(e,s),n=Nr(An(e),s);if(!Fn(r)&&!Cn(e)){var i=de(r,n);return Mn(i,t)}})),Dn=()=>({predicates:{...e},namespace:ut}),Ln={toolboxCreator:Dn,visitorOptions:{nodeTypeGetter:wn,exposeEdits:!0}},qn=(e,t,s={})=>{if(0===t.length)return e;const r=Tn(Ln,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=rr(a.map(g({},"visitor")),{...i});a.forEach($n(["pre"],[]));const l=jn(e,c,i);return a.forEach($n(["post"],[])),l};qn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=Tn(Ln,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=rr[Symbol.for("nodejs.util.promisify.custom")],l=jn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map($n(["pre"],[])));const d=await l(e,u,i);return await Promise.allSettled(a.map($n(["post"],[]))),d};const Bn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Kr(e)&&(e.meta.length>0&&(r.meta=gn(e.meta)),e.attributes.length>0&&(r.attributes=gn(e.attributes))),qn(r,s,{toolboxCreator:Dn,visitorOptions:{nodeTypeGetter:wn}})},Un=e=>(t,s={})=>Bn(t,{...s,Type:e});ce.Sh.refract=Un(ce.Sh),ce.wE.refract=Un(ce.wE),ce.Om.refract=Un(ce.Om),ce.bd.refract=Un(ce.bd),ce.Os.refract=Un(ce.Os),ce.kT.refract=Un(ce.kT),ce.Ft.refract=Un(ce.Ft),ce.sI.refract=Un(ce.sI),st.refract=Un(st),nt.refract=Un(nt),ot.refract=Un(ot);const Vn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Sn},Hn=e=>Kr(e)?wn(e):er(e),Jn=e=>Kr(e)||tr(e)||Array.isArray(e);const Gn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new ot;t._content=e.children.flat(1);const s=t.findElements(un);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new nt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new st("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 s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ce.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 ce.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===Rs.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})`,s=new st(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new st(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new ot;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&Ir(t,e)}};class Wn{cursor;constructor(e){this.cursor=e}stream(){return new kr(this.cursor)}yaml_directive(){return new kr(this.cursor)}tag_directive(){return new kr(this.cursor)}reserved_directive(){return new kr(this.cursor)}document(){return new kr(this.cursor)}block_node(){return new kr(this.cursor).setFieldName(this.cursor)}flow_node(){return new kr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new kr(this.cursor)}block_mapping_pair(){return new kr(this.cursor)}flow_mapping(){return new kr(this.cursor)}flow_pair(){return new kr(this.cursor)}block_sequence(){return new kr(this.cursor)}block_sequence_item(){return new kr(this.cursor)}flow_sequence(){return new kr(this.cursor)}plain_scalar(){return new kr(this.cursor)}single_quote_scalar(){return new kr(this.cursor)}double_quote_scalar(){return new kr(this.cursor)}block_scalar(){return new kr(this.cursor)}ERROR(){return new kr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new kr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Wn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Wn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const zn=Wn,Zn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new zn(s),[n]=Array.from(r),i=new Lr,o=new Gn,a=new Bs,c=new Ys,l=nr(n,i,{keyMap:Cr,nodePredicate:$r,state:{schema:a,sourceMap:t,referenceManager:c}});return nr(l.rootNode,o,{keyMap:Vn,nodeTypeGetter:Hn,nodePredicate:Jn,state:{sourceMap:t}})};class Kn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Yn=Kn;class Xn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Qn=Xn;class ei extends ce.Sh{constructor(e,t,s){super(e,t,s),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 ti=ei;class si extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const ri=si;class ni extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const ii=ni;class oi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const ai=oi;class ci extends ce.Sh{constructor(e,t,s){super(e,t,s),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 li=ci;class ui extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(ui.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const di=ui;class mi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 hi=mi;class pi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 _i=pi;class fi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Yr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Yr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const gi=fi;class yi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const vi=yi;class bi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const wi=bi;class Ei extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const xi=Ei;class Si extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const ji=Si;class Oi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Pi=Oi;class Ti extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Ai=Ti;class Mi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Mi.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Fi=Mi;class Ni extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Ri=Ni;class Ii extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const ki=Ii;class Ci extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const $i=Ci;class Di extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}}const Li=Di;class qi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Bi=qi;class Ui extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Vi=Ui;const Hi=class extends yt{};class Ji extends ce.Sh{constructor(e,t,s){super(e,t,s),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 Gi=Ji;class Wi extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const zi=Wi;class Zi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 Ki=Zi;class Yi extends ce.Sh{constructor(e,t,s){super(e,t,s),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 Xi=Yi;const Qi=function(){return!0},eo=e=>"string"==typeof(null==e?void 0:e.type)?e.type:wn(e),to={EphemeralObject:["content"],EphemeralArray:["content"],...Sn},so=(e,t,{keyMap:s=to,...r}={})=>jn(e,t,{keyMap:s,nodeTypeGetter:eo,nodePredicate:Qi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});so[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=to,...s}={})=>jn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:eo,nodePredicate:Qi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const ro=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 no=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 io{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new no(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 ro(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 s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Yr(e.href)?e.href.toValue():""}}const oo=e=>Kr(e)?Yr(e)||Xr(e)||en(e)||Qr(e)?e.toValue():so(e,new io):e,ao=e=>{const t=e.meta.length>0?gn(e.meta):void 0,s=e.attributes.length>0?gn(e.attributes):void 0;return new e.constructor(void 0,t,s)},co=(e,t)=>t.clone&&t.isMergeableElement(e)?uo(ao(e),e,t):e,lo={clone:!0,isMergeableElement:e=>tn(e)||sn(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>co(e,s))),objectElementMerge:(e,t,s)=>{const r=tn(e)?ao(e):ao(t);return tn(e)&&e.forEach(((e,t,n)=>{const i=bn(n);i.value=co(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=oo(n);let a;if(tn(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=bn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return uo;const s=t.customMerge(e,t);return"function"==typeof s?s:uo})(n,s)(r,t,s)}else a=bn(i),a.value=co(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},uo=(e,t,s)=>{var r,n,i;const o={...lo,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:lo.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:lo.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:lo.objectElementMerge;const a=sn(t);if(!(a===sn(e)))return co(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>gn(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>gn(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};uo.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ce.Sh:e.reduce(((e,s)=>uo(e,s,t)),ao(e[0]))};const mo=uo;const ho=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=mo(t.meta,e.meta)),dn(e)&&Ir(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=mo(t.attributes,e.attributes))}};const po=class extends ho{enter(e){return this.element=gn(e),Qs}},_o=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},fo=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:fo(s,[...t,s])},go=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>fo(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=fo(n);for(let t of e){let e=fo(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(_o(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},yo=e=>e.filter(((t,s)=>e.indexOf(t)==s)),vo=(e,t)=>{const s=t.map((e=>fo(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},bo=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(vo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==vo(r,e)||void 0!==t[r],get:(s,r)=>(vo(r,e)||t)[r],set(t,s,r){const n=vo(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),wo=null,Eo="copy",xo="copy",So="deep",jo=new WeakMap,Oo=e=>jo.get(e),Po=(e,t)=>{var s,r;const n=yo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=yo([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},To=(e,t)=>{var s,r,n,i;return{property:Po(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:Po(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Ao=(e,t)=>{var s,r,n,i,o,a;return{class:yo([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:To(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:To(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Mo=new Map,Fo=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[...fo(e.prototype).map((e=>e.constructor)),...null!==(t=Oo(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>Mo.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Ao(e,t)))},No=e=>{let t=Mo.get(e);return t||(t={},Mo.set(e,t)),t};function Ro(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=wo;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};n.push(s)}function o(...t){for(const s of e)_o(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===xo?go(n,o):(a=n,c=o,bo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Eo?go(e,null,["prototype"]):bo(e,Function.prototype));let l=o;if("none"!==So){const n="deep"===So?Fo(...e):((...e)=>{const t=e.map((e=>No(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Ao(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Io(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Io(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,d;return u=l,d=e,jo.set(u,d),l}const Io=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const ko=l((function(e){return C(ge(Je,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Co=l((function(e){return!In(e)}));const $o=u((function(e,t){return e||t}));var Do=K(C(1,Le(Be,u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z($o)(e,t)}))(Ve,Ke))));const Lo=ko([dt,Do,Co]);const qo=u((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s}));const Bo=class extends ho{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return qo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Nr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Nr(["visitors",...e],this.specObj):Nr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof po&&(null==r?void 0:r.constructor)===po?gn(t):(jn(t,r,s),r.element)}};const Uo=class extends Bo{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Yr(r)&&s.includes(oo(r))&&!this.ignoredFields.includes(oo(r))){const s=this.toRefractedElement([...t,"fixedFields",oo(r)],e),i=new ce.Pr(gn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(oo(r))||this.element.content.push(gn(n))})),this.copyMetaAndAttributes(e,this.element),Qs}};const Vo=class{parent;constructor({parent:e}){this.parent=e}},Ho=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gi||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Jo=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zi||e(r)&&t("JSONReference",r)&&s("object",r))),Go=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ki||e(r)&&t("media",r)&&s("object",r))),Wo=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xi||e(r)&&t("linkDescription",r)&&s("object",r)));class zo extends(Ro(Uo,Vo,po)){constructor(e){super(e),this.element=new Gi,this.specPath=ne(["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,Uo.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!Yr(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Ho(this.parent)&&!Yr(e.get("$schema"))){const e=m(oo(this.parent.meta.get("inheritedDialectIdentifier")),oo(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?gn(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=oo(e.get(t));Lo(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const Zo=zo,Ko=e=>tn(e)&&e.hasKey("$ref");class Yo extends(Ro(Bo,Vo,po)){ObjectElement(e){const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Qs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Xo=Yo;const Qo=class extends po{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ea=function(){return!1};const ta=class extends Bo{specPath;ignoredFields;fieldPatternPredicate=ea;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(oo(t))&&this.fieldPatternPredicate(oo(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(gn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oo(t))||this.element.content.push(gn(s))})),this.copyMetaAndAttributes(e,this.element),Qs}};const sa=class extends ta{constructor(e){super(e),this.fieldPatternPredicate=Lo}};class ra extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const na=ra;class ia extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const oa=ia;class aa extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ca=aa;const la=class extends po{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ua=class extends po{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 da extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const ma=da;class ha extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const pa=ha;class _a extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const fa=_a;class ga extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Ko(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ya=ga;class va extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.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),Qs}}const ba=va;class wa extends(Ro(Uo,po)){constructor(e){super(e),this.element=new zi,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Uo.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ea=wa;const xa=class extends po{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Sa=d((function(e,t,s){return C(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const ja=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var Oa=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Pa=Oa;const Ta=l(qr);const Aa=K(Or);const Ma=Le(kn,Co);function Fa(e){return function(e){if(Array.isArray(e))return Na(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 Na(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Na(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 Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var Ra=we(Pa(ja((function(e,t){return e.length>t.length}))),cr,f("length")),Ia=Ct((function(e,t,s){var r=s.apply(void 0,Fa(e));return Aa(r)?Ta(r):t}));const ka=Sa(Ma,(function(e){var t=Ra(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return ge(Ia(s),void 0,e)}))}),ie);const Ca=class extends Bo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Sa(e,ne(t),ie))),s=ka(t)(e);return this.element=this.toRefractedElement(s,e),Qs}};const $a=class extends Ca{constructor(e){super(e),this.alternator=[{predicate:Ko,specPath:["document","objects","JSONReference"]},{predicate:Qi,specPath:["document","objects","JSONSchema"]}]}};class Da extends(Ro(Uo,po)){constructor(e){super(e),this.element=new Ki,this.specPath=ne(["document","objects","Media"])}}const La=Da;class qa extends(Ro(Uo,po)){constructor(e){super(e),this.element=new Xi,this.specPath=ne(["document","objects","LinkDescription"])}}const Ba=qa,Ua={visitors:{value:po,JSONSchemaOrJSONReferenceVisitor:$a,document:{objects:{JSONSchema:{$visitor:Zo,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:$a,items:Xo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Qo,properties:na,additionalProperties:$a,patternProperties:oa,dependencies:ca,enum:la,type:ua,allOf:ma,anyOf:pa,oneOf:fa,not:$a,definitions:ya,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:ba,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Ea,fixedFields:{$ref:xa}},Media:{$visitor:La,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Ba,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:$a,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:$a}}}}}},Va=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ha={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Sn},Ja={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Gi),t.register("jSONReference",zi),t.register("media",Ki),t.register("linkDescription",Xi),t}},Ga=()=>{const e=lt(Ja);return{predicates:{...t,isStringElement:Yr},namespace:e}},Wa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Ua}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:Ga,visitorOptions:{keyMap:Ha,nodeTypeGetter:Va}})},za=e=>(t,s={})=>Wa(t,{specPath:e,...s});Gi.refract=za(["visitors","document","objects","JSONSchema","$visitor"]),zi.refract=za(["visitors","document","objects","JSONReference","$visitor"]),Ki.refract=za(["visitors","document","objects","Media","$visitor"]),Xi.refract=za(["visitors","document","objects","LinkDescription","$visitor"]);const Za=class extends Gi{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Hi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Hi("idProp setter in Schema class is not not supported.")}get $schema(){throw new Hi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Hi("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Hi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Hi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Hi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Hi("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Hi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Hi("definitions setter in Schema class is not not supported.")}get base(){throw new Hi("base getter in Schema class is not not supported.")}set base(e){throw new Hi("base setter in Schema class is not not supported.")}get links(){throw new Hi("links getter in Schema class is not not supported.")}set links(e){throw new Hi("links setter in Schema class is not not supported.")}get media(){throw new Hi("media getter in Schema class is not not supported.")}set media(e){throw new Hi("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Ka extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Ya=Ka;class Xa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Qa=Xa;class ec extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const tc=ec;class sc extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const rc=sc;class nc extends ce.Sh{constructor(e,t,s){super(e,t,s),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 ic=nc;class oc extends ce.Sh{constructor(e,t,s){super(e,t,s),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 ac=oc;const cc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=mo(t.meta,e.meta)),dn(e)&&Ir(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=mo(t.attributes,e.attributes))}};const lc=class extends cc{enter(e){return this.element=gn(e),Qs}};const uc=class extends cc{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return qo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Nr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Nr(["visitors",...e],this.specObj):Nr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof lc&&(null==r?void 0:r.constructor)===lc?gn(t):(jn(t,r,s),r.element)}};var dc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?qr(s):s},e}();function mc(e){return function(t){return new dc(e,t)}}const hc=u(T(["take"],mc,(function(e,t){return ve(0,e<0?1/0:e,t)})));const pc=u((function(e,t){return re(hc(e.length,t),e)})),_c=e=>tn(e)&&e.hasKey("$ref"),fc=tn,gc=tn,yc=e=>Yr(e.key)&&pc("x-",oo(e.key));const vc=class extends uc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Yr(r)&&s.includes(oo(r))&&!this.ignoredFields.includes(oo(r))){const s=this.toRefractedElement([...t,"fixedFields",oo(r)],e),i=new ce.Pr(gn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(oo(r))||this.element.content.push(gn(n))})),this.copyMetaAndAttributes(e,this.element),Qs}};class bc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Pi,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return vc.prototype.ObjectElement.call(this,e)}}const wc=bc;class Ec extends(Ro(uc,lc)){StringElement(e){const t=new ji(oo(e));return this.copyMetaAndAttributes(e,t),this.element=t,Qs}}const xc=Ec;const Sc=class extends uc{MemberElement(e){return this.element=gn(e),this.element.classes.push("specification-extension"),Qs}};class jc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new hi,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Oc=jc;const Pc=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Tc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ti,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ac=Tc;class Mc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new _i,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Fc=Mc;class Nc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new gi,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return(Yr(this.element.operationId)||Yr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Rc=Nc;const Ic=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const kc=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Cc=class extends uc{specPath;ignoredFields;fieldPatternPredicate=ea;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=yc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(oo(t))&&this.fieldPatternPredicate(oo(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(gn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oo(t))||this.element.content.push(gn(s))})),this.copyMetaAndAttributes(e,this.element),Qs}};const $c=class extends Cc{constructor(e){super(e),this.fieldPatternPredicate=Lo}};class Dc extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Dc.primaryClass)}}const Lc=Dc;class qc extends(Ro($c,lc)){constructor(e){super(e),this.element=new Lc,this.specPath=ne(["value"])}}const Bc=qc;class Uc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new tc,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Vc=Uc;const Hc=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Jc extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Jc.primaryClass)}}const Gc=Jc;class Wc extends(Ro(uc,lc)){constructor(e){super(e),this.element=new Gc}ArrayElement(e){return e.forEach((e=>{const t=fc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const zc=Wc;class Zc extends(Ro(vc,lc)){constructor(e){super(e),this.element=new rc,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Kc=Zc;class Yc extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Yc.primaryClass)}}const Xc=Yc;class Qc extends(Ro($c,lc)){constructor(e){super(e),this.element=new Xc,this.specPath=ne(["document","objects","ServerVariable"])}}const el=Qc;class tl extends(Ro(vc,lc)){constructor(e){super(e),this.element=new vi,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const sl=tl;const rl=class extends uc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Sa(e,ne(t),ie))),s=ka(t)(e);return this.element=this.toRefractedElement(s,e),Qs}},nl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yn||e(r)&&t("callback",r)&&s("object",r))),il=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qn||e(r)&&t("components",r)&&s("object",r))),ol=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ti||e(r)&&t("contact",r)&&s("object",r))),al=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ai||e(r)&&t("example",r)&&s("object",r))),cl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof li||e(r)&&t("externalDocumentation",r)&&s("object",r))),ll=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof di||e(r)&&t("header",r)&&s("object",r))),ul=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hi||e(r)&&t("info",r)&&s("object",r))),dl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _i||e(r)&&t("license",r)&&s("object",r))),ml=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gi||e(r)&&t("link",r)&&s("object",r))),hl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ji||e(r)&&t("openapi",r)&&s("string",r))),pl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Pi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),_l=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ai||e(r)&&t("operation",r)&&s("object",r))),fl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fi||e(r)&&t("parameter",r)&&s("object",r))),gl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ri||e(r)&&t("pathItem",r)&&s("object",r))),yl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ki||e(r)&&t("paths",r)&&s("object",r))),vl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $i||e(r)&&t("reference",r)&&s("object",r))),bl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Li||e(r)&&t("requestBody",r)&&s("object",r))),wl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bi||e(r)&&t("response",r)&&s("object",r))),El=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vi||e(r)&&t("responses",r)&&s("object",r))),xl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Za||e(r)&&t("schema",r)&&s("object",r))),Sl=e=>en(e)&&e.classes.includes("boolean-json-schema"),jl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ya||e(r)&&t("securityRequirement",r)&&s("object",r))),Ol=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qa||e(r)&&t("securityScheme",r)&&s("object",r))),Pl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tc||e(r)&&t("server",r)&&s("object",r))),Tl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rc||e(r)&&t("serverVariable",r)&&s("object",r))),Al=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vi||e(r)&&t("mediaType",r)&&s("object",r))),Ml=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Gc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n))),Fl=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ri||e(r)&&t("discriminator",r)&&s("object",r)));class Nl extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Rl=Nl;class Il extends(Ro($c,lc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const kl=Il;class Cl extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Cl.primaryClass),this.classes.push("examples")}}const $l=Cl;const Dl=class extends kl{constructor(e){super(e),this.element=new $l}};class Ll extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Ll.primaryClass)}}const ql=Ll;class Bl extends(Ro($c,lc)){constructor(e){super(e),this.element=new ql,this.specPath=ne(["document","objects","Encoding"])}}const Ul=Bl;class Vl extends(Ro($c,lc)){constructor(e){super(e),this.element=new Ya,this.specPath=ne(["value"])}}const Hl=Vl;class Jl extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Jl.primaryClass)}}const Gl=Jl;class Wl extends(Ro(uc,lc)){constructor(e){super(e),this.element=new Gl}ArrayElement(e){return e.forEach((e=>{if(tn(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(gn(e))})),this.copyMetaAndAttributes(e,this.element),Qs}}const zl=Wl;class Zl extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Qn,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Kl=Zl;class Yl extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ic,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Xl=Yl;class Ql extends(Ro(vc,lc)){constructor(e){super(e),this.element=new $i,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const eu=Ql;const tu=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class su extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Fi,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.contentProp)&&this.element.contentProp.filter(Al).forEach(((e,t)=>{e.setMetaProperty("media-type",oo(t))})),t}}const ru=su;class nu extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const iu=nu;class ou extends(Ro(vc,lc)){constructor(e){super(e),this.element=new di,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const au=ou;class cu extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const lu=cu;class uu extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(uu.primaryClass),this.classes.push("examples")}}const du=uu;const mu=class extends kl{constructor(e){super(e),this.element=new du}};class hu extends(Ro($c,lc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const pu=hu;class _u extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(_u.primaryClass),this.classes.push("content")}}const fu=_u;const gu=class extends pu{constructor(e){super(e),this.element=new fu}};class yu extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Za,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const vu=yu,bu=Ua.visitors.document.objects.JSONSchema.fixedFields.allOf;const wu=class extends bu{ArrayElement(e){const t=bu.prototype.ArrayElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Eu=Ua.visitors.document.objects.JSONSchema.fixedFields.anyOf;const xu=class extends Eu{ArrayElement(e){const t=Eu.prototype.ArrayElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Su=Ua.visitors.document.objects.JSONSchema.fixedFields.oneOf;const ju=class extends Su{ArrayElement(e){const t=Su.prototype.ArrayElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Ou=Ua.visitors.document.objects.JSONSchema.fixedFields.items;const Pu=class extends Ou{ObjectElement(e){const t=Ou.prototype.ObjectElement.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},Tu=Ua.visitors.document.objects.JSONSchema.fixedFields.properties;const Au=class extends Tu{ObjectElement(e){const t=Tu.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Mu=Ua.visitors.document.objects.JSONSchema.fixedFields.type;const Fu=class extends Mu{ArrayElement(e){return this.enter(e)}},Nu=Ua.visitors.JSONSchemaOrJSONReferenceVisitor;const Ru=class extends Nu{ObjectElement(e){const t=Nu.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Iu extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ri,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const ku=Iu;class Cu extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Cu.primaryClass)}}const $u=Cu;class Du extends(Ro($c,lc)){constructor(e){super(e),this.element=new $u,this.specPath=ne(["value"])}}const Lu=Du;class qu extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ac,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Bu=qu;class Uu extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Uu.primaryClass),this.classes.push("examples")}}const Vu=Uu;const Hu=class extends kl{constructor(e){super(e),this.element=new Vu}};class Ju extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Ju.primaryClass),this.classes.push("content")}}const Gu=Ju;const Wu=class extends pu{constructor(e){super(e),this.element=new Gu}};class zu extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass)}}const Zu=zu;class Ku extends(Ro($c,lc)){constructor(e){super(e),this.element=new Zu,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Yu=Ku;class Xu extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(Xu.primaryClass)}}const Qu=Xu;class ed extends(Ro($c,lc)){constructor(e){super(e),this.element=new Qu,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(wl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",oo(t))})),t}}const td=ed;class sd extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(sd.primaryClass),this.classes.push("parameters")}}const rd=sd;class nd extends(Ro($c,lc)){constructor(e){super(e),this.element=new rd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const id=nd;class od extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(od.primaryClass),this.classes.push("examples")}}const ad=od;class cd extends(Ro($c,lc)){constructor(e){super(e),this.element=new ad,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const ld=cd;class ud extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(ud.primaryClass)}}const dd=ud;class md extends(Ro($c,lc)){constructor(e){super(e),this.element=new dd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const hd=md;class pd extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(pd.primaryClass)}}const _d=pd;class fd extends(Ro($c,lc)){constructor(e){super(e),this.element=new _d,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(ll).forEach(((e,t)=>{e.setMetaProperty("header-name",oo(t))})),t}}const gd=fd;class yd extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(yd.primaryClass)}}const vd=yd;class bd extends(Ro($c,lc)){constructor(e){super(e),this.element=new vd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const wd=bd;class Ed extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Ed.primaryClass)}}const xd=Ed;class Sd extends(Ro($c,lc)){constructor(e){super(e),this.element=new xd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const jd=Sd;class Od extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Od.primaryClass)}}const Pd=Od;class Td extends(Ro($c,lc)){constructor(e){super(e),this.element=new Pd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Ad=Td;class Md extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ai,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return Yr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Fd=Md;const Nd=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Rd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new li,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Id=Rd;class kd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new ii,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.headers)&&this.element.headers.filter(ll).forEach(((e,t)=>{e.setMetaProperty("header-name",oo(t))})),t}}const Cd=kd;class $d extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push($d.primaryClass)}}const Dd=$d;class Ld extends(Ro($c,lc)){constructor(e){super(e),this.element=new Dd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ll(e))return;const s=oo(t);e.setMetaProperty("headerName",s)})),t}}const qd=Ld;class Bd extends(Ro(Cc,lc)){constructor(e){super(e),this.element=new ki,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Qi}ObjectElement(e){const t=Cc.prototype.ObjectElement.call(this,e);return this.element.filter(gl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",gn(t))})),t}}const Ud=Bd;class Vd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Li,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.contentProp)&&this.element.contentProp.filter(Al).forEach(((e,t)=>{e.setMetaProperty("media-type",oo(t))})),t}}const Hd=Vd;class Jd extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Jd.primaryClass),this.classes.push("content")}}const Gd=Jd;const Wd=class extends pu{constructor(e){super(e),this.element=new Gd}};class zd extends(Ro(Cc,lc)){constructor(e){super(e),this.element=new Yn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(gl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",oo(t))})),t}}const Zd=zd;class Kd extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Bi,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return tn(this.element.contentProp)&&this.element.contentProp.filter(Al).forEach(((e,t)=>{e.setMetaProperty("media-type",oo(t))})),tn(this.element.headers)&&this.element.headers.filter(ll).forEach(((e,t)=>{e.setMetaProperty("header-name",oo(t))})),t}}const Yd=Kd;class Xd extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Xd.primaryClass)}}const Qd=Xd;class em extends(Ro($c,lc)){constructor(e){super(e),this.element=new Qd,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ll(e))return;const s=oo(t);e.setMetaProperty("header-name",s)})),t}}const tm=em;class sm extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(sm.primaryClass),this.classes.push("content")}}const rm=sm;const nm=class extends pu{constructor(e){super(e),this.element=new rm}};class im extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(im.primaryClass)}}const om=im;class am extends(Ro($c,lc)){constructor(e){super(e),this.element=new om,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const cm=am;function lm(e){return"[object Number]"===Object.prototype.toString.call(e)}const um=u((function(e,t){if(!lm(e)||!lm(t))throw new TypeError("Both arguments to range must be numbers");for(var s=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,n=0;n<r;)s[n]=n+e,n+=1;return s}));function dm(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const mm=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!dm(e,!0,this)},e.prototype.has=function(e){return dm(e,!1,this)},e}();const hm=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new mm,a=0;a<i;a+=1)o.add(t[a]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class pm extends(Ro(vc,Cc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...hm(e.keys(),t)],vc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Cc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Qs}}const _m=pm;class fm extends(Ro(_m,lc)){constructor(e){super(e),this.element=new Vi,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>_c(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${um(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=_m.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(wl).forEach(((e,t)=>{const s=gn(t);this.fieldPatternPredicate(oo(s))&&e.setMetaProperty("http-status-code",s)})),t}}const gm=fm;class ym extends(Ro(rl,lc)){constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)?this.element.setMetaProperty("referenced-element","response"):wl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const vm=ym;class bm extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Ai,this.specPath=ne(["document","objects","Operation"])}}const wm=bm;class Em extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Em.primaryClass)}}const xm=Em;const Sm=class extends lc{constructor(e){super(e),this.element=new xm}ArrayElement(e){return this.element=this.element.concat(gn(e)),Qs}};class jm extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(jm.primaryClass),this.classes.push("parameters")}}const Om=jm;class Pm extends(Ro(uc,lc)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=_c(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);vl(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Tm=Pm;const Am=class extends Tm{constructor(e){super(e),this.element=new Om}};const Mm=class extends rl{constructor(e){super(e),this.alternator=[{predicate:_c,specPath:["document","objects","Reference"]},{predicate:Qi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=rl.prototype.enter.call(this,e);return vl(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Fm extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Fm.primaryClass)}}const Nm=Fm;class Rm extends(Ro($c,lc)){specPath;constructor(e){super(e),this.element=new Nm,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(vl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Im=Rm;class km extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(km.primaryClass),this.classes.push("security")}}const Cm=km;class $m extends(Ro(uc,lc)){constructor(e){super(e),this.element=new Cm}ArrayElement(e){return e.forEach((e=>{const t=tn(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Dm=$m;class Lm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Lm.primaryClass),this.classes.push("servers")}}const qm=Lm;const Bm=class extends zc{constructor(e){super(e),this.element=new qm}};class Um extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Ri,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=vc.prototype.ObjectElement.call(this,e);return this.element.filter(_l).forEach(((e,t)=>{const s=gn(t);s.content=oo(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Yr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Vm=Um;const Hm=class extends lc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Jm extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Jm.primaryClass),this.classes.push("servers")}}const Gm=Jm;const Wm=class extends zc{constructor(e){super(e),this.element=new Gm}};class zm extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(zm.primaryClass),this.classes.push("parameters")}}const Zm=zm;const Km=class extends Tm{constructor(e){super(e),this.element=new Zm}};class Ym extends(Ro(vc,lc)){constructor(e){super(e),this.element=new Qa,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Xm=Ym;class Qm extends(Ro(vc,lc)){constructor(e){super(e),this.element=new xi,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const eh=Qm;class th extends(Ro(vc,lc)){constructor(e){super(e),this.element=new wi,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const sh=th;class rh extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(rh.primaryClass)}}const nh=rh;class ih extends(Ro($c,lc)){constructor(e){super(e),this.element=new nh,this.specPath=ne(["value"])}}const oh=ih;class ah extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(ah.primaryClass)}}const ch=ah;class lh extends(Ro(uc,lc)){constructor(e){super(e),this.element=new ch}ArrayElement(e){return e.forEach((e=>{const t=gc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),Qs}}const uh=lh,{fixedFields:dh}=Ua.visitors.document.objects.JSONSchema,mh={visitors:{value:lc,document:{objects:{OpenApi:{$visitor:wc,fixedFields:{openapi:xc,info:{$ref:"#/visitors/document/objects/Info"},servers:zc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:zl,tags:uh,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:Pc}},Contact:{$visitor:Ac,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Fc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Vc,fixedFields:{url:Hc,description:{$ref:"#/visitors/value"},variables:el}},ServerVariable:{$visitor:Kc,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Kl,fixedFields:{schemas:Yu,responses:td,parameters:id,examples:ld,requestBodies:hd,headers:gd,securitySchemes:wd,links:jd,callbacks:Ad}},Paths:{$visitor:Ud},PathItem:{$visitor:Vm,fixedFields:{$ref:Hm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Wm,parameters:Km}},Operation:{$visitor:wm,fixedFields:{tags:Sm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Am,requestBody:Mm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Im,deprecated:{$ref:"#/visitors/value"},security:Dm,servers:Bm}},ExternalDocumentation:{$visitor:Id,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:ru,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:iu,example:{$ref:"#/visitors/value"},examples:Hu,content:Wu}},RequestBody:{$visitor:Hd,fixedFields:{description:{$ref:"#/visitors/value"},content:Wd,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:sl,fixedFields:{schema:Rl,example:{$ref:"#/visitors/value"},examples:Dl,encoding:Ul}},Encoding:{$visitor:Cd,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:qd,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:gm,fixedFields:{default:vm}},Response:{$visitor:Yd,fixedFields:{description:{$ref:"#/visitors/value"},headers:tm,content:nm,links:cm}},Callback:{$visitor:Zd},Example:{$visitor:Fd,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Nd}},Link:{$visitor:Rc,fixedFields:{operationRef:Ic,operationId:kc,parameters:Bc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:au,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:lu,example:{$ref:"#/visitors/value"},examples:mu,content:gu}},Tag:{$visitor:Xl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:eu,fixedFields:{$ref:tu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:vu,fixedFields:{title:dh.title,multipleOf:dh.multipleOf,maximum:dh.maximum,exclusiveMaximum:dh.exclusiveMaximum,minimum:dh.minimum,exclusiveMinimum:dh.exclusiveMinimum,maxLength:dh.maxLength,minLength:dh.minLength,pattern:dh.pattern,maxItems:dh.maxItems,minItems:dh.minItems,uniqueItems:dh.uniqueItems,maxProperties:dh.maxProperties,minProperties:dh.minProperties,required:dh.required,enum:dh.enum,type:Fu,allOf:wu,anyOf:xu,oneOf:ju,not:Ru,items:Pu,properties:Au,additionalProperties:Ru,description:dh.description,format:dh.format,default:dh.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:ku,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Lu}},XML:{$visitor:Bu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Xm,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:eh,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:sh,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:oh}},SecurityRequirement:{$visitor:Hl}},extension:{$visitor:Sc}}}},hh=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ph={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Sn},_h={namespace:e=>{const{base:t}=e;return t.register("callback",Yn),t.register("components",Qn),t.register("contact",ti),t.register("discriminator",ri),t.register("encoding",ii),t.register("example",ai),t.register("externalDocumentation",li),t.register("header",di),t.register("info",hi),t.register("license",_i),t.register("link",gi),t.register("mediaType",vi),t.register("oAuthFlow",wi),t.register("oAuthFlows",xi),t.register("openapi",ji),t.register("openApi3_0",Pi),t.register("operation",Ai),t.register("parameter",Fi),t.register("pathItem",Ri),t.register("paths",ki),t.register("reference",$i),t.register("requestBody",Li),t.register("response",Bi),t.register("responses",Vi),t.register("schema",Za),t.register("securityRequirement",Ya),t.register("securityScheme",Qa),t.register("server",tc),t.register("serverVariable",rc),t.register("tag",ic),t.register("xml",ac),t}},fh=()=>{const e=lt(_h);return{predicates:{...s,isElement:Kr,isStringElement:Yr,isArrayElement:sn,isObjectElement:tn,isMemberElement:rn,includesClasses:hn,hasElementSourceMap:dn},namespace:e}},gh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Rr(mh),i=new(Nr(t,n))({specObj:n});return jn(r,i),qn(i.element,s,{toolboxCreator:fh,visitorOptions:{keyMap:ph,nodeTypeGetter:hh}})},yh=e=>(t,s={})=>gh(t,{specPath:e,...s});Yn.refract=yh(["visitors","document","objects","Callback","$visitor"]),Qn.refract=yh(["visitors","document","objects","Components","$visitor"]),ti.refract=yh(["visitors","document","objects","Contact","$visitor"]),ai.refract=yh(["visitors","document","objects","Example","$visitor"]),ri.refract=yh(["visitors","document","objects","Discriminator","$visitor"]),ii.refract=yh(["visitors","document","objects","Encoding","$visitor"]),li.refract=yh(["visitors","document","objects","ExternalDocumentation","$visitor"]),di.refract=yh(["visitors","document","objects","Header","$visitor"]),hi.refract=yh(["visitors","document","objects","Info","$visitor"]),_i.refract=yh(["visitors","document","objects","License","$visitor"]),gi.refract=yh(["visitors","document","objects","Link","$visitor"]),vi.refract=yh(["visitors","document","objects","MediaType","$visitor"]),wi.refract=yh(["visitors","document","objects","OAuthFlow","$visitor"]),xi.refract=yh(["visitors","document","objects","OAuthFlows","$visitor"]),ji.refract=yh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Pi.refract=yh(["visitors","document","objects","OpenApi","$visitor"]),Ai.refract=yh(["visitors","document","objects","Operation","$visitor"]),Fi.refract=yh(["visitors","document","objects","Parameter","$visitor"]),Ri.refract=yh(["visitors","document","objects","PathItem","$visitor"]),ki.refract=yh(["visitors","document","objects","Paths","$visitor"]),$i.refract=yh(["visitors","document","objects","Reference","$visitor"]),Li.refract=yh(["visitors","document","objects","RequestBody","$visitor"]),Bi.refract=yh(["visitors","document","objects","Response","$visitor"]),Vi.refract=yh(["visitors","document","objects","Responses","$visitor"]),Za.refract=yh(["visitors","document","objects","Schema","$visitor"]),Ya.refract=yh(["visitors","document","objects","SecurityRequirement","$visitor"]),Qa.refract=yh(["visitors","document","objects","SecurityScheme","$visitor"]),tc.refract=yh(["visitors","document","objects","Server","$visitor"]),rc.refract=yh(["visitors","document","objects","ServerVariable","$visitor"]),ic.refract=yh(["visitors","document","objects","Tag","$visitor"]),ac.refract=yh(["visitors","document","objects","XML","$visitor"]);const vh=class extends Yn{};const bh=class extends Qn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const wh=class extends ti{};const Eh=class extends ri{};const xh=class extends ii{};const Sh=class extends ai{};const jh=class extends li{};const Oh=class extends di{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ph=class extends hi{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Th extends ce.Om{static default=new Th("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Ah=Th;const Mh=class extends _i{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Fh=class extends gi{};const Nh=class extends vi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Rh=class extends wi{};const Ih=class extends xi{};const kh=class extends ji{};class Ch extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const $h=Ch;const Dh=class extends Ai{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Lh=class extends Fi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const qh=class extends Ri{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const Bh=class extends ki{};class Uh extends $i{}Object.defineProperty(Uh.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Uh.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Vh=Uh;const Hh=class extends Li{};const Jh=class extends Bi{};const Gh=class extends Vi{};const Wh=class extends Gi{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Hi("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Hi("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const zh=class extends Xi{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Hi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Hi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Hi("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Hi("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Hi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Hi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Zh=d((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!Or(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:h(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(h(e)&&w(s)){var r=[].concat(s);return r[e]=t,r}var n={};for(var i in s)n[i]=s[i];return n[e]=t,n}(n,s,r)}));const Kh=Zh;const Yh=d((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var Xh=d((function(e,t,s){return Kh([e],t,s)}));const Qh=Xh;var ep=u((function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if(h(e)&&w(t))return Yh(e,1,t);var s={};for(var r in t)s[r]=t[r];return delete s[e],s}(t[0],s);default:var r=t[0],n=Array.prototype.slice.call(t,1);return null==s[r]?function(e,t){if(h(e)&&w(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):Qh(r,e(n,s[r]),s)}}));const tp=ep;const sp=class extends Zo{constructor(e){super(e),this.element=new Wh}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const rp=class extends Xo{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Qs}};const np=class extends po{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const ip=class extends Ba{constructor(e){super(e),this.element=new zh}},op=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],sp),tp(["visitors","document","objects","JSONSchema","fixedFields","id"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ua.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","items"],rp),Kh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","const"],Ua.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","examples"],np),Kh(["visitors","document","objects","LinkDescription","$visitor"],ip),Kh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ua.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","LinkDescription","fixedFields","method"]),tp(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ua.visitors.value))(Ua),ap={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Sn},cp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wh||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),lp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zh||e(r)&&t("linkDescription",r)&&s("object",r))),up={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Wh),t.register("jSONReference",zi),t.register("media",Ki),t.register("linkDescription",zh),t}},dp=()=>{const e=lt(up);return{predicates:{...r,isStringElement:Yr},namespace:e}},mp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=op}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:dp,visitorOptions:{keyMap:ap,nodeTypeGetter:Va}})},hp=e=>(t,s={})=>mp(t,{specPath:e,...s});Wh.refract=hp(["visitors","document","objects","JSONSchema","$visitor"]),zh.refract=hp(["visitors","document","objects","LinkDescription","$visitor"]);const pp=class extends Wh{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Hi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Hi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const _p=class extends zh{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Hi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Hi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Hi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Hi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const fp=class extends sp{constructor(e){super(e),this.element=new pp}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const gp=class extends ip{constructor(e){super(e),this.element=new _p}},yp=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],fp),Kh(["visitors","document","objects","JSONSchema","fixedFields","$comment"],op.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","if"],op.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","then"],op.visitors.JSONSchemaOrJSONReferenceVisitor),Kh(["visitors","document","objects","JSONSchema","fixedFields","else"],op.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","JSONSchema","fixedFields","media"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],op.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],op.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","$visitor"],gp),Kh(["visitors","document","objects","LinkDescription","fixedFields","anchor"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],op.visitors.value),tp(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","description"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","$comment"],op.visitors.value),Kh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],op.visitors.JSONSchemaOrJSONReferenceVisitor),tp(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],op.visitors.value))(op),vp={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Sn},bp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pp||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),wp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _p||e(r)&&t("linkDescription",r)&&s("object",r))),Ep={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",pp),t.register("jSONReference",zi),t.register("linkDescription",_p),t}},xp=()=>{const e=lt(Ep);return{predicates:{...n,isStringElement:Yr},namespace:e}},Sp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=yp}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:xp,visitorOptions:{keyMap:vp,nodeTypeGetter:Va}})},jp=e=>(t,s={})=>Sp(t,{specPath:e,...s});pp.refract=jp(["visitors","document","objects","JSONSchema","$visitor"]),_p.refract=jp(["visitors","document","objects","LinkDescription","$visitor"]);const Op=class extends pp{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Hi("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Hi("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Hi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Hi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const Pp=class extends _p{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Tp=class extends fp{constructor(e){super(e),this.element=new Op}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Uo.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Ap=class extends po{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Mp=class extends po{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Fp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Np=Fp;class Rp extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Ip=Rp;class kp extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Cp=kp;class $p extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const Dp=$p;class Lp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const qp=Lp;class Bp extends(Ro(Bo,Vo,po)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Qs}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Qs}}const Up=Bp;class Vp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Hp=Vp;class Jp extends(Ro(sa,Vo,po)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Gp=Jp;const Wp=class extends po{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const zp=class extends gp{constructor(e){super(e),this.element=new Pp}},Zp=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Ap),Kh(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],yp.visitors.value),tp(["visitors","document","objects","JSONReference","$visitor"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Mp),tp(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Np),Kh(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Ip),Kh(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Cp),Kh(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Dp),Kh(["visitors","document","objects","JSONSchema","fixedFields","not"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","if"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","then"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","else"],Tp),tp(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],qp),Kh(["visitors","document","objects","JSONSchema","fixedFields","items"],Up),Kh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","properties"],Hp),Kh(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Gp),Kh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Tp),Kh(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","minContains"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Wp),Kh(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],yp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","$visitor"],zp),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Tp),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Tp))(yp),Kp={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Sn},Yp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("JSONSchema201909",r)&&s("object",r))),Xp=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pp||e(r)&&t("linkDescription",r)&&s("object",r))),Qp={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Op),t.register("linkDescription",Pp),t}},e_=()=>{const e=lt(Qp);return{predicates:{...i,isStringElement:Yr},namespace:e}},t_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Zp}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:e_,visitorOptions:{keyMap:Kp,nodeTypeGetter:Va}})},s_=e=>(t,s={})=>t_(t,{specPath:e,...s});Op.refract=s_(["visitors","document","objects","JSONSchema","$visitor"]),Pp.refract=s_(["visitors","document","objects","LinkDescription","$visitor"]);const r_=class extends Op{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Hi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Hi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Hi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Hi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const n_=class extends Pp{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const i_=class extends Tp{constructor(e){super(e),this.element=new r_}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class o_ extends(Ro(Bo,Vo,po)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Qs}}const a_=o_;const c_=class extends zp{constructor(e){super(e),this.element=new n_}},l_=we(Kh(["visitors","document","objects","JSONSchema","$visitor"],i_),tp(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Zp.visitors.value),tp(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Zp.visitors.value),Kh(["visitors","document","objects","JSONSchema","fixedFields","not"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","if"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","then"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","else"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],a_),Kh(["visitors","document","objects","JSONSchema","fixedFields","items"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","contains"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],i_),tp(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Kh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],i_),Kh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],i_),Kh(["visitors","document","objects","LinkDescription","$visitor"],c_),Kh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],i_),Kh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],i_),Kh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],i_),Kh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],i_))(Zp),u_={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Sn},d_=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof r_||e(r)&&t("JSONSchema202012",r)&&s("object",r))),m_=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof n_||e(r)&&t("linkDescription",r)&&s("object",r))),h_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",r_),t.register("linkDescription",n_),t}},p_=()=>{const e=lt(h_);return{predicates:{...o,isStringElement:Yr},namespace:e}},__=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=l_}={})=>{const n=(0,ce.e)(e),i=Rr(r),o=new(Nr(t,i))({specObj:i});return jn(n,o),qn(o.element,s,{toolboxCreator:p_,visitorOptions:{keyMap:u_,nodeTypeGetter:Va}})},f_=e=>(t,s={})=>__(t,{specPath:e,...s});r_.refract=f_(["visitors","document","objects","JSONSchema","$visitor"]),n_.refract=f_(["visitors","document","objects","LinkDescription","$visitor"]);const g_=class extends r_{constructor(e,t,s){super(e,t,s),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}};const y_=class extends Ya{};const v_=class extends Qa{};const b_=class extends tc{};const w_=class extends rc{};const E_=class extends ic{};const x_=class extends ac{};class S_ extends(Ro(vc,lc)){constructor(e){super(e),this.element=new $h,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,vc.prototype.ObjectElement.call(this,e)}}const j_=S_,O_=mh.visitors.document.objects.Info.$visitor;const P_=class extends O_{constructor(e){super(e),this.element=new Ph}},T_=mh.visitors.document.objects.Contact.$visitor;const A_=class extends T_{constructor(e){super(e),this.element=new wh}},M_=mh.visitors.document.objects.License.$visitor;const F_=class extends M_{constructor(e){super(e),this.element=new Mh}},N_=mh.visitors.document.objects.Link.$visitor;const R_=class extends N_{constructor(e){super(e),this.element=new Fh}};class I_ extends(Ro(uc,lc)){StringElement(e){const t=new Ah(oo(e));return this.copyMetaAndAttributes(e,t),this.element=t,Qs}}const k_=I_,C_=mh.visitors.document.objects.Server.$visitor;const $_=class extends C_{constructor(e){super(e),this.element=new b_}},D_=mh.visitors.document.objects.ServerVariable.$visitor;const L_=class extends D_{constructor(e){super(e),this.element=new w_}},q_=mh.visitors.document.objects.MediaType.$visitor;const B_=class extends q_{constructor(e){super(e),this.element=new Nh}},U_=mh.visitors.document.objects.SecurityRequirement.$visitor;const V_=class extends U_{constructor(e){super(e),this.element=new y_}},H_=mh.visitors.document.objects.Components.$visitor;const J_=class extends H_{constructor(e){super(e),this.element=new bh}},G_=mh.visitors.document.objects.Tag.$visitor;const W_=class extends G_{constructor(e){super(e),this.element=new E_}},z_=mh.visitors.document.objects.Reference.$visitor;const Z_=class extends z_{constructor(e){super(e),this.element=new Vh}},K_=mh.visitors.document.objects.Parameter.$visitor;const Y_=class extends K_{constructor(e){super(e),this.element=new Lh}},X_=mh.visitors.document.objects.Header.$visitor;const Q_=class extends X_{constructor(e){super(e),this.element=new Oh}},ef=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vh||e(r)&&t("callback",r)&&s("object",r))),tf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bh||e(r)&&t("components",r)&&s("object",r))),sf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wh||e(r)&&t("contact",r)&&s("object",r))),rf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sh||e(r)&&t("example",r)&&s("object",r))),nf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jh||e(r)&&t("externalDocumentation",r)&&s("object",r))),of=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Oh||e(r)&&t("header",r)&&s("object",r))),af=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ph||e(r)&&t("info",r)&&s("object",r))),cf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ah||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),lf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mh||e(r)&&t("license",r)&&s("object",r))),uf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fh||e(r)&&t("link",r)&&s("object",r))),df=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kh||e(r)&&t("openapi",r)&&s("string",r))),mf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof $h||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),hf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dh||e(r)&&t("operation",r)&&s("object",r))),pf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lh||e(r)&&t("parameter",r)&&s("object",r))),_f=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qh||e(r)&&t("pathItem",r)&&s("object",r))),ff=e=>{if(!_f(e))return!1;if(!Yr(e.$ref))return!1;const t=oo(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bh||e(r)&&t("paths",r)&&s("object",r))),yf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vh||e(r)&&t("reference",r)&&s("object",r))),vf=e=>{if(!yf(e))return!1;if(!Yr(e.$ref))return!1;const t=oo(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},bf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hh||e(r)&&t("requestBody",r)&&s("object",r))),wf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jh||e(r)&&t("response",r)&&s("object",r))),Ef=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gh||e(r)&&t("responses",r)&&s("object",r))),xf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof g_||e(r)&&t("schema",r)&&s("object",r))),Sf=e=>en(e)&&e.classes.includes("boolean-json-schema"),jf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof y_||e(r)&&t("securityRequirement",r)&&s("object",r))),Of=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof v_||e(r)&&t("securityScheme",r)&&s("object",r))),Pf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof b_||e(r)&&t("server",r)&&s("object",r))),Tf=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof w_||e(r)&&t("serverVariable",r)&&s("object",r))),Af=Zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nh||e(r)&&t("mediaType",r)&&s("object",r)));class Mf extends(Ro(vc,Vo,lc)){constructor(e){super(e),this.element=new g_,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ah.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=vc.prototype.ObjectElement.call(this,e);return Yr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return i_.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&cf(this.openApiSemanticElement.jsonSchemaDialect)?oo(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Yr(this.openApiGenericElement.get("jsonSchemaDialect"))?oo(this.openApiGenericElement.get("jsonSchemaDialect")):oo(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return i_.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return i_.prototype.handleSchemaIdentifier.call(this,e)}}const Ff=Mf;const Nf=class extends Np{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Rf=class extends Ip{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const If=class extends Cp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const kf=class extends Dp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Cf=class extends qp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const $f=class extends a_{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Df=class extends Hp{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Lf=class extends Gp{constructor(e){super(e),this.passingOptionsNames.push("parent")}},qf=mh.visitors.document.objects.Discriminator.$visitor;const Bf=class extends qf{constructor(e){super(e),this.element=new Eh,this.canSupportSpecificationExtensions=!0}},Uf=mh.visitors.document.objects.XML.$visitor;const Vf=class extends Uf{constructor(e){super(e),this.element=new x_}};class Hf extends(Ro($c,lc)){constructor(e){super(e),this.element=new Zu,this.specPath=ne(["document","objects","Schema"])}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(xf).forEach(((e,t)=>{e.setMetaProperty("schemaName",oo(t))})),t}}const Jf=Hf;class Gf extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Gf.primaryClass)}}const Wf=Gf;class zf extends(Ro($c,lc)){constructor(e){super(e),this.element=new Wf,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Zf=zf,Kf=mh.visitors.document.objects.Example.$visitor;const Yf=class extends Kf{constructor(e){super(e),this.element=new Sh}},Xf=mh.visitors.document.objects.ExternalDocumentation.$visitor;const Qf=class extends Xf{constructor(e){super(e),this.element=new jh}},eg=mh.visitors.document.objects.Encoding.$visitor;const tg=class extends eg{constructor(e){super(e),this.element=new xh}},sg=mh.visitors.document.objects.Paths.$visitor;const rg=class extends sg{constructor(e){super(e),this.element=new Bh}},ng=mh.visitors.document.objects.RequestBody.$visitor;const ig=class extends ng{constructor(e){super(e),this.element=new Hh}},og=mh.visitors.document.objects.Callback.$visitor;const ag=class extends og{constructor(e){super(e),this.element=new vh,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=og.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},cg=mh.visitors.document.objects.Response.$visitor;const lg=class extends cg{constructor(e){super(e),this.element=new Jh}},ug=mh.visitors.document.objects.Responses.$visitor;const dg=class extends ug{constructor(e){super(e),this.element=new Gh}},mg=mh.visitors.document.objects.Operation.$visitor;const hg=class extends mg{constructor(e){super(e),this.element=new Dh}},pg=mh.visitors.document.objects.PathItem.$visitor;const _g=class extends pg{constructor(e){super(e),this.element=new qh}},fg=mh.visitors.document.objects.SecurityScheme.$visitor;const gg=class extends fg{constructor(e){super(e),this.element=new v_}},yg=mh.visitors.document.objects.OAuthFlows.$visitor;const vg=class extends yg{constructor(e){super(e),this.element=new Ih}},bg=mh.visitors.document.objects.OAuthFlow.$visitor;const wg=class extends bg{constructor(e){super(e),this.element=new Rh}};class Eg extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Eg.primaryClass)}}const xg=Eg;class Sg extends(Ro($c,lc)){constructor(e){super(e),this.element=new xg,this.specPath=e=>_c(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=$c.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(_f).forEach(((e,t)=>{e.setMetaProperty("webhook-name",oo(t))})),t}}const jg=Sg,{JSONSchema:Og,LinkDescription:Pg}=l_.visitors.document.objects,Tg={visitors:{value:mh.visitors.value,document:{objects:{OpenApi:{$visitor:j_,fixedFields:{openapi:mh.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:k_,servers:mh.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:jg,components:{$ref:"#/visitors/document/objects/Components"},security:mh.visitors.document.objects.OpenApi.fixedFields.security,tags:mh.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:P_,fixedFields:{title:mh.visitors.document.objects.Info.fixedFields.title,description:mh.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:mh.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:mh.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:A_,fixedFields:{name:mh.visitors.document.objects.Contact.fixedFields.name,url:mh.visitors.document.objects.Contact.fixedFields.url,email:mh.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:F_,fixedFields:{name:mh.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:mh.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:$_,fixedFields:{url:mh.visitors.document.objects.Server.fixedFields.url,description:mh.visitors.document.objects.Server.fixedFields.description,variables:mh.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:L_,fixedFields:{enum:mh.visitors.document.objects.ServerVariable.fixedFields.enum,default:mh.visitors.document.objects.ServerVariable.fixedFields.default,description:mh.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:J_,fixedFields:{schemas:Jf,responses:mh.visitors.document.objects.Components.fixedFields.responses,parameters:mh.visitors.document.objects.Components.fixedFields.parameters,examples:mh.visitors.document.objects.Components.fixedFields.examples,requestBodies:mh.visitors.document.objects.Components.fixedFields.requestBodies,headers:mh.visitors.document.objects.Components.fixedFields.headers,securitySchemes:mh.visitors.document.objects.Components.fixedFields.securitySchemes,links:mh.visitors.document.objects.Components.fixedFields.links,callbacks:mh.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Zf}},Paths:{$visitor:rg},PathItem:{$visitor:_g,fixedFields:{$ref:mh.visitors.document.objects.PathItem.fixedFields.$ref,summary:mh.visitors.document.objects.PathItem.fixedFields.summary,description:mh.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:mh.visitors.document.objects.PathItem.fixedFields.servers,parameters:mh.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:hg,fixedFields:{tags:mh.visitors.document.objects.Operation.fixedFields.tags,summary:mh.visitors.document.objects.Operation.fixedFields.summary,description:mh.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:mh.visitors.document.objects.Operation.fixedFields.operationId,parameters:mh.visitors.document.objects.Operation.fixedFields.parameters,requestBody:mh.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:mh.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:mh.visitors.document.objects.Operation.fixedFields.deprecated,security:mh.visitors.document.objects.Operation.fixedFields.security,servers:mh.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Qf,fixedFields:{description:mh.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:mh.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Y_,fixedFields:{name:mh.visitors.document.objects.Parameter.fixedFields.name,in:mh.visitors.document.objects.Parameter.fixedFields.in,description:mh.visitors.document.objects.Parameter.fixedFields.description,required:mh.visitors.document.objects.Parameter.fixedFields.required,deprecated:mh.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:mh.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:mh.visitors.document.objects.Parameter.fixedFields.style,explode:mh.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:mh.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mh.visitors.document.objects.Parameter.fixedFields.example,examples:mh.visitors.document.objects.Parameter.fixedFields.examples,content:mh.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ig,fixedFields:{description:mh.visitors.document.objects.RequestBody.fixedFields.description,content:mh.visitors.document.objects.RequestBody.fixedFields.content,required:mh.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:B_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:mh.visitors.document.objects.MediaType.fixedFields.example,examples:mh.visitors.document.objects.MediaType.fixedFields.examples,encoding:mh.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:tg,fixedFields:{contentType:mh.visitors.document.objects.Encoding.fixedFields.contentType,headers:mh.visitors.document.objects.Encoding.fixedFields.headers,style:mh.visitors.document.objects.Encoding.fixedFields.style,explode:mh.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:mh.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:dg,fixedFields:{default:mh.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:lg,fixedFields:{description:mh.visitors.document.objects.Response.fixedFields.description,headers:mh.visitors.document.objects.Response.fixedFields.headers,content:mh.visitors.document.objects.Response.fixedFields.content,links:mh.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:ag},Example:{$visitor:Yf,fixedFields:{summary:mh.visitors.document.objects.Example.fixedFields.summary,description:mh.visitors.document.objects.Example.fixedFields.description,value:mh.visitors.document.objects.Example.fixedFields.value,externalValue:mh.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:R_,fixedFields:{operationRef:mh.visitors.document.objects.Link.fixedFields.operationRef,operationId:mh.visitors.document.objects.Link.fixedFields.operationId,parameters:mh.visitors.document.objects.Link.fixedFields.parameters,requestBody:mh.visitors.document.objects.Link.fixedFields.requestBody,description:mh.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Q_,fixedFields:{description:mh.visitors.document.objects.Header.fixedFields.description,required:mh.visitors.document.objects.Header.fixedFields.required,deprecated:mh.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:mh.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:mh.visitors.document.objects.Header.fixedFields.style,explode:mh.visitors.document.objects.Header.fixedFields.explode,allowReserved:mh.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mh.visitors.document.objects.Header.fixedFields.example,examples:mh.visitors.document.objects.Header.fixedFields.examples,content:mh.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:W_,fixedFields:{name:mh.visitors.document.objects.Tag.fixedFields.name,description:mh.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Z_,fixedFields:{$ref:mh.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Pg},Schema:{$visitor:Ff,fixedFields:{...Og.fixedFields,$defs:Nf,allOf:Rf,anyOf:If,oneOf:kf,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:Cf,prefixItems:$f,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Df,patternProperties:Lf,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Bf,fixedFields:{propertyName:mh.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:mh.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Vf,fixedFields:{name:mh.visitors.document.objects.XML.fixedFields.name,namespace:mh.visitors.document.objects.XML.fixedFields.namespace,prefix:mh.visitors.document.objects.XML.fixedFields.prefix,attribute:mh.visitors.document.objects.XML.fixedFields.attribute,wrapped:mh.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:gg,fixedFields:{type:mh.visitors.document.objects.SecurityScheme.fixedFields.type,description:mh.visitors.document.objects.SecurityScheme.fixedFields.description,name:mh.visitors.document.objects.SecurityScheme.fixedFields.name,in:mh.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:mh.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:mh.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:mh.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:vg,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:wg,fixedFields:{authorizationUrl:mh.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:mh.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:mh.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:mh.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:V_}},extension:{$visitor:mh.visitors.document.extension.$visitor}}}},Ag=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Mg={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Sn},Fg=function(){const e=Rg,t=Ng,s=this,r="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let n,i,o,a,c,l,u,d=0,m=0,h=0,p=0,_=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,y,b,w)=>{const E=`${r}parse(): `;d=0,m=0,h=0,p=0,_=0,n=void 0,i=void 0,o=void 0,a=void 0,f.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(b),n=g.rules,i=g.udts;const x=y.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&x===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const r in s.callbacks)if(s.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(o=s.callbacks[r]?s.callbacks[r]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),s.trace&&s.trace.init(n,i,a),s.stats&&s.stats.init(n,i),s.ast&&s.ast.init(n,i,a),u=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=f.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:j,state:f.state,stateName:e.idName(f.state),length:a.length,matched:f.phraseLength,maxMatched:_,maxTreeDepth:h,nodeHits:p}};const g=(t,s,n,i)=>{if(s.phraseLength>n){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},y=(t,c)=>{let m,h,p;const _=o[t],g=i[_.index];f.UdtIndex=g.index,d||(p=s.ast&&s.ast.udtDefined(_.index),p&&(h=n.length+_.index,m=s.ast.getLength(),s.ast.down(h,g.name)));const y=a.length-c;l[_.index](f,a,c,u),((t,s,n)=>{if(s.phraseLength>n){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,f,y),d||p&&(f.state===e.NOMATCH?s.ast.setLength(m):s.ast.up(h,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(p+=1,m>h&&(h=m),m+=1,f.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const r=o[t];for(let t=0;t<r.children.length&&(v(r.children[t],s),f.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,r)=>{let n,i,a,c;const l=o[t];s.ast&&(i=s.ast.getLength()),n=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),f.state===e.NOMATCH){n=!1;break}a+=f.phraseLength,c+=f.phraseLength}n?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,r)=>{let n,i,c,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(i=r,c=0,l=0,s.ast&&(n=s.ast.getLength());!(i>=a.length)&&(v(t+1,i),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,c+=f.phraseLength,i+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(n))})(t,i);break;case e.RNM:((t,r)=>{let i,l,m;const h=o[t],p=n[h.index],_=c[p.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,n[h.index].name))),_){const t=a.length-r;_(f,a,r,u),g(p,f,t,!0),f.state===e.ACTIVE&&(m=o,o=p.opcodes,v(0,r),o=m,_(f,a,r,u),g(p,f,t,!1))}else m=o,o=p.opcodes,v(0,r,f),o=m;d||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,p.name,r,f.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const r=o[t];f.state=e.NOMATCH,s<a.length&&r.min<=a[s]&&a[s]<=r.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const r=o[t],n=r.string.length;if(f.state=e.NOMATCH,s+n<=a.length){for(let e=0;e<n;e+=1)if(a[s+e]!==r.string[e])return;f.state=e.MATCH,f.phraseLength=n}})(t,i);break;case e.TLS:((t,s)=>{let r;const n=o[t];f.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(s+i<=a.length){for(let e=0;e<i;e+=1)if(r=a[s+e],r>=65&&r<=90&&(r+=32),r!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}}else f.state=e.EMPTY})(t,i);break;case e.UDT:y(t,i);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}d||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),m-=1}},Ng={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,s)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===s){r=e.slice(t);break}if(s<=0)return"";r=e.slice(t,t+s);break}return String.fromCodePoint(...r)}},Rg={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Rg.ALT:return"ALT";case Rg.CAT:return"CAT";case Rg.REP:return"REP";case Rg.RNM:return"RNM";case Rg.TRG:return"TRG";case Rg.TBS:return"TBS";case Rg.TLS:return"TLS";case Rg.UDT:return"UDT";case Rg.AND:return"AND";case Rg.NOT:return"NOT";case Rg.ACTIVE:return"ACTIVE";case Rg.EMPTY:return"EMPTY";case Rg.MATCH:return"MATCH";case Rg.NOMATCH:return"NOMATCH";case Rg.SEM_PRE:return"SEM_PRE";case Rg.SEM_POST:return"SEM_POST";case Rg.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Ig(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class kg extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Cg=kg;new Ig;new Ig,new Fg,new Ig,new Fg,new Ig,new Fg,new Ig,new Fg;const $g=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Dg=class extends Cg{},Lg=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return $g(String(e))})).join("/")}`}catch(t){throw new Dg("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const qg={namespace:e=>{const{base:t}=e;return t.register("callback",vh),t.register("components",bh),t.register("contact",wh),t.register("discriminator",Eh),t.register("encoding",xh),t.register("example",Sh),t.register("externalDocumentation",jh),t.register("header",Oh),t.register("info",Ph),t.register("jsonSchemaDialect",Ah),t.register("license",Mh),t.register("link",Fh),t.register("mediaType",Nh),t.register("oAuthFlow",Rh),t.register("oAuthFlows",Ih),t.register("openapi",kh),t.register("openApi3_1",$h),t.register("operation",Dh),t.register("parameter",Lh),t.register("pathItem",qh),t.register("paths",Bh),t.register("reference",Vh),t.register("requestBody",Hh),t.register("response",Jh),t.register("responses",Gh),t.register("schema",g_),t.register("securityRequirement",y_),t.register("securityScheme",v_),t.register("server",b_),t.register("serverVariable",w_),t.register("tag",E_),t.register("xml",x_),t}},Bg=e=>{const t=e.reduce(((t,s,r)=>{if(rn(s)){const e=String(oo(s.key));t.push(e)}else if(sn(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Lg(t)},Ug=()=>{const e=lt(qg);return{predicates:{...a,isElement:Kr,isStringElement:Yr,isArrayElement:sn,isObjectElement:tn,isMemberElement:rn,isServersElement:Ml,includesClasses:hn,hasElementSourceMap:dn},ancestorLineageToJSONPointer:Bg,namespace:e}},Vg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Rr(Tg),i=new(Nr(t,n))({specObj:n});return jn(r,i),qn(i.element,s,{toolboxCreator:Ug,visitorOptions:{keyMap:Mg,nodeTypeGetter:Ag}})},Hg=e=>(t,s={})=>Vg(t,{specPath:e,...s});vh.refract=Hg(["visitors","document","objects","Callback","$visitor"]),bh.refract=Hg(["visitors","document","objects","Components","$visitor"]),wh.refract=Hg(["visitors","document","objects","Contact","$visitor"]),Sh.refract=Hg(["visitors","document","objects","Example","$visitor"]),Eh.refract=Hg(["visitors","document","objects","Discriminator","$visitor"]),xh.refract=Hg(["visitors","document","objects","Encoding","$visitor"]),jh.refract=Hg(["visitors","document","objects","ExternalDocumentation","$visitor"]),Oh.refract=Hg(["visitors","document","objects","Header","$visitor"]),Ph.refract=Hg(["visitors","document","objects","Info","$visitor"]),Ah.refract=Hg(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Mh.refract=Hg(["visitors","document","objects","License","$visitor"]),Fh.refract=Hg(["visitors","document","objects","Link","$visitor"]),Nh.refract=Hg(["visitors","document","objects","MediaType","$visitor"]),Rh.refract=Hg(["visitors","document","objects","OAuthFlow","$visitor"]),Ih.refract=Hg(["visitors","document","objects","OAuthFlows","$visitor"]),kh.refract=Hg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),$h.refract=Hg(["visitors","document","objects","OpenApi","$visitor"]),Dh.refract=Hg(["visitors","document","objects","Operation","$visitor"]),Lh.refract=Hg(["visitors","document","objects","Parameter","$visitor"]),qh.refract=Hg(["visitors","document","objects","PathItem","$visitor"]),Bh.refract=Hg(["visitors","document","objects","Paths","$visitor"]),Vh.refract=Hg(["visitors","document","objects","Reference","$visitor"]),Hh.refract=Hg(["visitors","document","objects","RequestBody","$visitor"]),Jh.refract=Hg(["visitors","document","objects","Response","$visitor"]),Gh.refract=Hg(["visitors","document","objects","Responses","$visitor"]),g_.refract=Hg(["visitors","document","objects","Schema","$visitor"]),y_.refract=Hg(["visitors","document","objects","SecurityRequirement","$visitor"]),v_.refract=Hg(["visitors","document","objects","SecurityScheme","$visitor"]),b_.refract=Hg(["visitors","document","objects","Server","$visitor"]),w_.refract=Hg(["visitors","document","objects","ServerVariable","$visitor"]),E_.refract=Hg(["visitors","document","objects","Tag","$visitor"]),x_.refract=Hg(["visitors","document","objects","XML","$visitor"]);const Jg=l((function(e){return _(-1,e)}));const Gg=class extends Hi{};const Wg=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Gg("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Gg("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Gg("latest method in MediaTypes class is not yet implemented.")}};class zg extends Wg{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Jg(this.filterByFormat(e))}}const Zg=new zg("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Kg=new zg(...Zg.filterByFormat("generic"),...Zg.filterByFormat("yaml")),Yg=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,Xg=async e=>Yg.test(e)&&await(async e=>{try{const t=await xt(e),s=!t.rootNode.isError;return t.delete(),s}catch{return!1}})(e),Qg=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await xt(e),r=Zn(s,{sourceMap:t});return s.delete(),r})(e,r),{result:i}=n;if(ae(i)){const e=$h.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},ey=lt(qg)})(),__webpack_exports__})()));
|