@swagger-api/apidom-parser-adapter-arazzo-json-1 1.0.0-beta.51 → 1.0.0-rc.0
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.apidomParserAdapterArazzoJson1=t():e.apidomParserAdapterArazzoJson1=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),u=s(3671),l=s(3491),_=s(1811),d=s(3999),m=s(3508),h=s(8655),p=s(6625),f=s(2621),y=o.PROPER,g=o.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,v=h("iterator"),E="keys",S="values",x="entries",O=function(){return this};e.exports=function(e,t,s,o,h,f,A){c(s,t,o);var M,j,T,P=function(e){if(e===h&&k)return k;if(!b&&e&&e in I)return I[e];switch(e){case E:case S:case x:return function(){return new s(this,e)}}return function(){return new s(this)}},N=t+" Iterator",F=!1,I=e.prototype,R=I[v]||I["@@iterator"]||h&&I[h],k=!b&&R||P(h),C="Array"===t&&I.entries||R;if(C&&(M=u(C.call(new e)))!==Object.prototype&&M.next&&(i||u(M)===w||(l?l(M,w):a(M[v])||m(M,v,O)),_(M,N,!0,!0),i&&(p[N]=O)),y&&h===S&&R&&R.name!==S&&(!i&&g?d(I,"name",S):(F=!0,k=function(){return n(R,this)})),h)if(j={values:P(S),keys:f?k:P(E),entries:P(x)},A)for(T in j)(b||F||!(T in I))&&m(I,T,j[T]);else r({target:t,proto:!0,forced:b||F},j);return i&&!A||I[v]===k||m(I,v,k,{name:h}),p[t]=k,j}},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),u=s(4317),l=s(1613),_=s(967),d=s(1743),m=TypeError,h=function(e,t){this.stopped=e,this.result=t},p=h.prototype;e.exports=function(e,t,s){var f,y,g,w,b,v,E,S=s&&s.that,x=!(!s||!s.AS_ENTRIES),O=!(!s||!s.IS_RECORD),A=!(!s||!s.IS_ITERATOR),M=!(!s||!s.INTERRUPTED),j=r(t,S),T=function(e){return f&&d(f,"normal",e),new h(!0,e)},P=function(e){return x?(i(e),M?j(e[0],e[1],T):j(e[0],e[1])):M?j(e,T):j(e)};if(O)f=e.iterator;else if(A)f=e;else{if(!(y=_(e)))throw new m(o(e)+" is not iterable");if(a(y)){for(g=0,w=c(e);w>g;g++)if((b=P(e[g]))&&u(p,b))return b;return new h(!1)}f=l(e,y)}for(v=O?e.next:f.next;!(E=n(v,f)).done;){try{b=P(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&u(p,b))return b}return new h(!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),u=s(5853),l=s(8666),_="[object Arguments]",d="[object Array]",m="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,p,f,y){var g=c(e),w=c(t),b=g?d:a(e),v=w?d:a(t),E=(b=b==_?m:b)==m,S=(v=v==_?m:v)==m,x=b==v;if(x&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(x&&!E)return y||(y=new r),g||l(e)?n(e,t,s,p,f,y):i(e,t,b,s,p,f,y);if(!(1&s)){var O=E&&h.call(e,"__wrapped__"),A=S&&h.call(t,"__wrapped__");if(O||A){var M=O?e.value():e,j=A?t.value():t;return y||(y=new r),f(M,j,s,p,y)}}return!!x&&(y||(y=new r),o(e,t,s,p,f,y))}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),l=!s&&n(e),_=!s&&!l&&o(e),d=!s&&!l&&!_&&c(e),m=s||l||_||d,h=m?r(e.length,String):[],p=h.length;for(var f in e)!t&&!u.call(e,f)||m&&("length"==f||_&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,p))||h.push(f);return h}},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],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var s={};s[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},s)},_=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},s)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),_("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),_("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),_("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),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,l);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,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 u,l=n(o,c);if(e&&s!=s){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===s)return e||l||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,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var _=l;_--;){var d=u[_];if(!(c?d in t:n.call(t,d)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var f=c;++_<l;){var y=e[d=u[_]],g=t[d];if(i)var w=c?i(g,y,d,t,e,a):i(y,g,d,e,t,a);if(!(void 0===w?y===g||o(y,g,s,i,a):w)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return a.delete(e),a.delete(t),p}},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 u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},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,u){var l=s?e:e&&e.prototype;l&&(o(l,c)||n(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"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,u){var l=t+" Iterator";return e.prototype=n(r,{next:i(+!u,s)}),o(e,l,!1,!0),a[l]=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),u=s(5780),l=s(3671),_=s(3508),d=s(8655),m=s(4871),h=d("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(r=n):p=!0),!c(r)||o((function(){var e={};return r[h].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[h])||_(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},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),u=s(3999),l=s(480),_=s(8148),d=s(4279),m=s(208),h=s(4879),p=s(8655)("toStringTag"),f=Error,y=[].push,g=function(e,t){var s,r=n(w,this);o?s=o(new f,r?i(this):w):(s=r?this:c(w),u(s,p,"Error")),void 0!==t&&u(s,"message",h(t)),d(s,g,s.stack,1),arguments.length>2&&_(s,arguments[2]);var a=[];return m(e,y,{that:a}),u(s,"errors",a),s};o?o(g,f):a(g,f,{name:!0});var w=g.prototype=c(f.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},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,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},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"),u=Object,l=u.prototype;e.exports=a?u.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 u?l: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",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:n(e),index:0})}),(function(){var e,t=l(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 u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}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 u=r();s=t+u,o=n()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){l.memorySize=r(),l.memoryAlign=r(),l.tableSize=r(),l.tableAlign=r();for(var _=r(),d=0;d<_;++d){var m=n();l.neededDynlibs.push(m)}}else{i("dylink.0"!==o);for(;t<s;){var h=e[t++],p=r();if(1===h)l.memorySize=r(),l.memoryAlign=r(),l.tableSize=r(),l.tableAlign=r();else if(2===h)for(_=r(),d=0;d<_;++d)m=n(),l.neededDynlibs.push(m);else if(3===h)for(var f=r();f--;){var y=n();256&r()&&l.tlsExports.add(y)}else if(4===h)for(f=r();f--;){n(),y=n();1==(3&r())&&l.weakImports.add(y)}else t+=p}}return l};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,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,u,l)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,u,l),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,u,l)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,u,l),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,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 u=new Array(o),l=new Array(o),_=new Array(o),d=new Array(o),m=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");d[e]=[],m[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;m[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;m[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-"),m[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.".');u[e]||(u[e]={}),u[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?l:_;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":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));m[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:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(_[e])}return C._free(s),new Query(INTERNAL,r,a,m,d,Object.freeze(u),Object.freeze(l),Object.freeze(_))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const 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"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=new Array(c);this.exceededMatchLimit=Boolean(l);let d=0,m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const s=getValue(m,"i32");m+=SIZE_OF_INT;const r=new Array(s);if(m=unmarshalCaptures(this,e.tree,m,r),this.textPredicates[t].every((e=>e(r)))){_[d]={pattern:t,captures:r};const e=this.setProperties[t];e&&(_[d].setProperties=e);const s=this.assertedProperties[t];s&&(_[d].assertedProperties=s);const n=this.refutedProperties[t];n&&(_[d].refutedProperties=n),d++}}return _.length=d,C._free(u),_}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"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=[];this.exceededMatchLimit=Boolean(l);const d=[];let m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const s=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=s,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[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),_.push(e)}}return C._free(u),_}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 u=1&s,l=e.length,_=t.length;if(l!=_&&!(u&&_>l))return!1;var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var h=-1,p=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var y=e[h],g=t[h];if(o)var w=u?o(g,y,h,t,e,c):o(y,g,h,e,t,c);if(void 0!==w){if(w)continue;p=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(y===e||a(y,e,s,o,c)))return f.push(t)}))){p=!1;break}}else if(y!==g&&!a(y,g,s,o,c)){p=!1;break}}return c.delete(e),c.delete(t),p}},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),u=s(701),l=s(9665),_=Object.getOwnPropertyDescriptor;t.f=r?_:function(e,t){if(e=a(e),t=c(t),l)try{return _(e,t)}catch(e){}if(u(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,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(r=l.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),u=r("".slice),l=function(e){return function(t,s){var r,l,_=i(o(t)),d=n(s),m=_.length;return d<0||d>=m?e?"":void 0:(r=c(_,d))<55296||r>56319||d+1===m||(l=c(_,d+1))<56320||l>57343?e?a(_,d):r:e?u(_,d,d+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!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),u=s(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(n,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,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=l,e.exports=l},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),u=s(9619),l=s(4275),_="prototype",d="script",m=l("IE_PROTO"),h=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;y="undefined"!=typeof document?document.domain&&r?f(r):(t=u("iframe"),s="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete y[_][o[n]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(h[_]=n(e),s=new h,h[_]=null,s[m]=e):s=y(),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",u=n(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),l,!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),u=s(5516),l=s(3507),_=s(4879),d=s(8148),m=s(4279),h=s(5024),p=s(4871);e.exports=function(e,t,s,f){var y="stackTraceLimit",g=f?2:1,w=e.split("."),b=w[w.length-1],v=r.apply(null,w);if(v){var E=v.prototype;if(!p&&n(E,"cause")&&delete E.cause,!s)return v;var S=r("Error"),x=t((function(e,t){var s=_(f?t:e,void 0),r=f?new v(e):new v;return void 0!==s&&i(r,"message",s),m(r,x,r.stack,2),this&&o(E,this)&&l(r,this,x),arguments.length>g&&d(r,arguments[g]),r}));if(x.prototype=E,"Error"!==b?a?a(x,S):c(x,S,{name:!0}):h&&y in v&&(u(x,v,y),u(x,v,"prepareStackTrace")),c(x,v),!p)try{E.name!==b&&i(E,"name",b),E.constructor=x}catch(e){}return x}}},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},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),u=n.length,l=0;u>l;)i.f(e,s=n[l++],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,u=i.f,l=0;l<a.length;l++){var _=a[l];r(e,_)||s&&r(s,_)||c(e,_,u(t,_))}}},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),u=s(7309),l=s(5642),_=s(9620),d=s(593),m=s(4123),h=s(3311),p=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 l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=d,r.prototype.MemberElement=u,r.prototype.refract=f,m.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:_,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:h,KeyValuePair:p}},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),u=s(3999),l=s(701),_=s(3753),d=s(4275),m=s(5241),h="Object already initialized",p=a.TypeError,f=a.WeakMap;if(o||_.state){var y=_.state||(_.state=new f);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new p(h);return t.facade=e,y.set(e,t),t},n=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=d("state");m[g]=!0,r=function(e,t){if(l(e,g))throw new p(h);return t.facade=e,u(e,g,t),t},n=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}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 p("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),u=s(4066),l="[object Map]",_="[object Promise]",d="[object Set]",m="[object WeakMap]",h="[object DataView]",p=u(r),f=u(n),y=u(i),g=u(o),w=u(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=h||n&&b(new n)!=l||i&&b(i.resolve())!=_||o&&b(new o)!=d||a&&b(new a)!=m)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?u(s):"";if(r)switch(r){case p:return h;case f:return l;case y:return _;case g:return d;case w:return m}return t}),e.exports=b},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),u=0,l=[];for(s in r)!n(a,s)&&n(r,s)&&c(l,s);for(;t.length>u;)n(r,s=t[u++])&&(~o(l,s)||c(l,s));return l}},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),u=r.Symbol,l=n("wks"),_=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:_("Symbol."+e)),l[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===l||s!==u&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},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),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,s,r,u,_,d){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||!_(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 m=a;case"[object Set]":var h=1&r;if(m||(m=c),e.size!=t.size&&!h)return!1;var p=d.get(e);if(p)return p==t;r|=2,d.set(e,t);var f=o(m(e),m(t),r,u,_,d);return d.delete(e),f;case"[object Symbol]":if(l)return l.call(e)==l.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),u=s(8099),l=s(4572),_=s(3999),d=s(701);s(3753);var m=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,h,p,f,y,g,w,b,v=e.target,E=e.global,S=e.stat,x=e.proto,O=E?r:S?r[v]:r[v]&&r[v].prototype,A=E?u:u[v]||_(u,v,{})[v],M=A.prototype;for(p in t)n=!(s=c(E?p:v+(S?".":"#")+p,e.forced))&&O&&d(O,p),y=A[p],n&&(g=e.dontCallGetSet?(b=a(O,p))&&b.value:O[p]),f=n&&g?g:t[p],(s||x||typeof y!=typeof f)&&(w=e.bind&&n?l(f,r):e.wrap&&n?m(f):x&&o(f)?i(f):f,(e.sham||f&&f.sham||y&&y.sham)&&_(w,"sham",!0),_(A,p,w),x&&(d(u,h=v+"Prototype")||_(u,h,{}),_(u[h],p,f),e.real&&M&&(s||!M[p])&&_(M,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,u=Object.prototype,l=c.toString,_=u.hasOwnProperty,d=RegExp("^"+l.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?d: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),u=s(877),l=s(4871),_=s(5024),d="Array Iterator",m=o.set,h=o.getterFor(d);e.exports=c(Array,"Array",(function(e,t){m(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(s,!1);case"values":return u(t[s],!1)}return u([s,t[s]],!1)}),"values");var p=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&_&&"values"!==p.name)try{a(p,"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,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,_="enumerable",d="configurable",m="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&&m in s&&!s[m]){var r=l(e,t);r&&r[m]&&(e[t]=s.value,s={configurable:d in s?s[d]:r[d],enumerable:_ in s?s[_]:r[_],writable:!1})}return u(e,t,s)}:u:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return u(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:()=>bl,detectionRegExp:()=>wl,mediaTypes:()=>gl,namespace:()=>El,parse:()=>vl});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>ns,includesClasses:()=>os,includesSymbols:()=>is,isAnnotationElement:()=>Qt,isArrayElement:()=>Zt,isBooleanElement:()=>Ht,isCommentElement:()=>es,isElement:()=>Vt,isLinkElement:()=>Xt,isMemberElement:()=>Kt,isNullElement:()=>Wt,isNumberElement:()=>zt,isObjectElement:()=>Gt,isParseResultElement:()=>ts,isPrimitiveElement:()=>rs,isRefElement:()=>Yt,isSourceMapElement:()=>ss,isStringElement:()=>Jt});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Zn,isJSONSchemaElement:()=>Gn,isLinkDescriptionElement:()=>Xn,isMediaElement:()=>Kn});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isJSONReferenceElement:()=>Zn,isJSONSchemaElement:()=>po,isLinkDescriptionElement:()=>fo,isMediaElement:()=>Kn});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Zn,isJSONSchemaElement:()=>Mo,isLinkDescriptionElement:()=>jo});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONSchemaElement:()=>na,isLinkDescriptionElement:()=>ia});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>ga,isLinkDescriptionElement:()=>wa});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isArazzoSpecificationExtension:()=>tc,isReferenceLikeElement:()=>sc});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function u(e){return function t(s){return 0===arguments.length||c(s)?t:e.apply(this,arguments)}}function l(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return c(s)?t:u((function(t){return e(s,t)}));default:return c(s)&&c(r)?t:c(s)?u((function(t){return e(t,r)})):c(r)?u((function(t){return e(s,t)})):e(s,r)}}}function _(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return c(s)?t:l((function(t,r){return e(s,t,r)}));case 2:return c(s)&&c(r)?t:c(s)?l((function(t,s){return e(t,r,s)})):c(r)?l((function(t,r){return e(s,t,r)})):u((function(t){return e(s,r,t)}));default:return c(s)&&c(r)&&c(n)?t:c(s)&&c(r)?l((function(t,s){return e(t,s,n)})):c(s)&&c(n)?l((function(t,s){return e(t,r,s)})):c(r)&&c(n)?l((function(t,r){return e(s,t,r)})):c(s)?u((function(t){return e(t,r,n)})):c(r)?u((function(t){return e(s,t,n)})):c(n)?u((function(t){return e(s,r,t)})):e(s,r,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isArazzoSpecElement:()=>Kc,isArazzoSpecification1Element:()=>Xc,isComponentsElement:()=>hu,isCriterionElement:()=>pu,isFailureActionCriteriaElement:()=>wu,isFailureActionElement:()=>gu,isInfoElement:()=>Yc,isJSONSchemaElement:()=>ga,isParameterElement:()=>du,isReferenceElement:()=>fu,isSourceDescriptionElement:()=>Qc,isSourceDescriptionsElement:()=>eu,isStepDependsOnElement:()=>lu,isStepElement:()=>cu,isStepOnFailureElement:()=>ou,isStepOnSuccessElement:()=>iu,isStepOutputsElement:()=>au,isStepParametersElement:()=>uu,isStepSuccessCriteriaElement:()=>_u,isSuccessActionCriteriaElement:()=>yu,isSuccessActionElement:()=>mu,isWorkflowElement:()=>nu,isWorkflowOutputsElement:()=>ru,isWorkflowStepsElement:()=>su,isWorkflowsElement:()=>tu});const d=l((function(e,t){return null==t||t!=t?e:t})),m=Number.isInteger||function(e){return(e|0)===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}function p(e,t){var s=e<0?t.length+e:e;return h(t)?t.charAt(s):t[s]}const f=l((function(e,t){if(null!=t)return m(e)?p(e,t):t[e]}));const y=_((function(e,t,s){return d(e,f(t,s))}));var g=l((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 w=g;function b(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=u((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var S="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function x(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[S])return s(r,n,i[S]());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 O(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function A(e,t,s,r){return s[r](e,t)}const M=x(b,A,O);function j(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!v(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 T(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const P=function(){return this.xf["@@transducer/init"]()},N=function(e){return this.xf["@@transducer/result"](e)};var F=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const I=function(e){return function(t){return new F(e,t)}};function R(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,u){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(e,t,s){return function(){for(var r=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var u;o<t.length&&(!c(t[o])||n>=arguments.length)?u=t[o]:(u=arguments[n],n+=1),r[o]=u,c(u)?a=!0:i-=1,o+=1}return!a&&i<=0?s.apply(this,r):R(Math.max(0,i),k(e,r,s))}}const C=l((function(e,t){return 1===e?u(t):R(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 U=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],q=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},J="function"!=typeof Object.keys||q?u((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=q&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(r[r.length]=t);if(U)for(s=B.length-1;s>=0;)$(t=B[s],e)&&!V(r,t)&&(r[r.length]=t),s-=1;return r})):u((function(e){return Object(e)!==e?[]:Object.keys(e)}));const z=J;const W=l(j(["fantasy-land/map","map"],I,(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}),{},z(t));default:return T(e,t)}})));const H=l((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))}:M((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,W(s,t))}),[],e)}));const G=l((function(e,t){var s=C(e,t);return C(e,(function(){return b(H,W(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=u((function(e){return G(e.length,e)}));const K=Z(u((function(e){return!e})));function X(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Y(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=u((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=X(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),X(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=z(e);if(c.length!==z(t).length)return!1;var u=s.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var _=c[a];if(!$(_,t)||!se(t[_],e[_],u,l))return!1;a-=1}return!0}const re=l((function(e,t){return se(e,t,[],[])}));const ne=u((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 ue(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function le(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 _e=l((function(e,t){return R(e.length,(function(){return e.apply(t,arguments)}))}));function de(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 me(e,t,s,r){return e["@@transducer/result"](s[r](_e(e["@@transducer/step"],e),t))}const he=x(le,me,de);var pe=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}();const fe=_((function(e,t,s){return he("function"==typeof e?new pe(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 v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ge=_(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const we=u(ye("tail",ge(1,1/0)));function be(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return R(arguments[0].length,fe(ue,arguments[0],we(arguments)))}var ve=function(e,t){switch(arguments.length){case 0:return ve;case 1:return function t(s){return 0===arguments.length?t:Q(e,s)};default:return Q(e,t)}};const Ee=ve;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 xe(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 Ae="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 Me(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Te(e){return function(t){return new je(e,t)}}const Pe=l(j(["fantasy-land/filter","filter"],Te,(function(e,t){return Me(t)?b((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},z(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=l((function(e,t){return Pe((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Fe(e,t){var s=function(s){var r=t.concat([e]);return Se(s,r)?"<Circular>":Fe(s,r)},r=function(e,t){return T((function(t){return xe(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+T(s,e).join(", ")+"))";case"[object Array]":return"["+T(s,e).concat(r(e,Ne((function(e){return/^\d+$/.test(e)}),z(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):xe(Ae(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())+")":xe(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,z(e)).join(", ")+"}"}}const Ie=u((function(e){return Fe(e,[])}));function Re(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=m(n)?p(n,s):s[n]}return s}const ke=_((function(e,t,s){return e(Re(t,s))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const $e=l((function(e,t){return e&&t}));const De=l((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z($e)(e,t)}));const Le=re(null);const Ue=K(Le);function Be(e){return Be="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},Be(e)}const qe=function(e){return"object"===Be(e)};const Ve=C(1,De(Ue,qe));const Je=l((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 ze=l((function(e,t){return W(f(e),t)}));const We=u((function(e){return C(fe(Je,0,ze("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 He=C(1,be(ee,Ee("GeneratorFunction")));const Ge=C(1,be(ee,Ee("AsyncFunction")));const Ze=We([be(ee,Ee("Function")),He,Ge]);var Ke=be(ee,Ee("Object")),Xe=be(Ie,re(Ie(Object))),Ye=ke(De(Ze,Xe),["constructor"]);const Qe=C(1,(function(e){if(!Ve(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!Le(t)||Ye(t)}));class et 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 tt=et;class st extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const rt=st;class nt 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 it=nt;class ot extends ce.wE{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ce.wE([e.start.row,e.start.column,e.start.char]),s=new ce.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const at=ot;class ct extends ce.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",at)}}const ut=new ct,lt=e=>{const t=new ct;return Qe(e)&&t.use(e),t},_t=ut;const dt=C(1,be(ee,Ee("String"))),mt=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",ht=globalThis.fetch;Ze(ht)&&(globalThis.fetch=(...e)=>dt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[mt,we(e)]):ht.apply(globalThis,e));var pt=__webpack_require__(3833),ft=__webpack_require__(1212);const yt=class extends ft{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(yt,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 wt=gt,bt=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let vt=null,Et=null;const St=async e=>{if(null===vt&&null===Et)Et=pt.init().then((()=>pt.Language.load(bt))).then((e=>{const t=new pt;return t.setLanguage(e),t})).finally((()=>{Et=null})),vt=await Et;else if(null===vt&&null!==Et)vt=await Et;else if(null===vt)throw new wt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return vt.parse(e)};const xt=class extends wt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},Ot=(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},At={},Mt=e=>null==e?void 0:e.type,jt=e=>"string"==typeof Mt(e),Tt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Pt=(e,{visitFnGetter:t=Ot,nodeTypeGetter:s=Mt,breakSymbol:r=At,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,_,d,m,h){let p=u,f=!1;const y={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],s(p),!1);if("function"==typeof a){const t=a.call(e[u],p,l,_,d,m,y);if("function"==typeof(null==t?void 0:t.then))throw new xt("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===i)c[u]=p;else if(t===r)c[u]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,f=!0}}}}return f?p:void 0},leave(n,o,u,l,_,d){let m=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(m),!0);if("function"==typeof a){const t=a.call(e[n],m,o,u,l,_,h);if("function"==typeof(null==t?void 0:t.then))throw new xt("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]===m&&(c[n]=a)}}};Pt[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Ot,nodeTypeGetter:s=Mt,breakSymbol:r=At,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,_,d,m,h){let p=u,f=!1;const y={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],s(p),!1);if("function"==typeof a){const t=await a.call(e[u],p,l,_,d,m,y);if(t===i)c[u]=p;else if(t===r)c[u]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,f=!0}}}}return f?p:void 0},async leave(n,o,u,l,_,d){let m=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(m),!0);if("function"==typeof a){const t=await a.call(e[n],m,o,u,l,_,h);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===m&&(c[n]=a)}}};const Nt=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=At,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ot,nodeTypeGetter:c=Mt,nodePredicate:u=jt,nodeCloneFn:l=Tt,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=s||{};let h,p,f=Array.isArray(e),y=[e],g=-1,w=[],b=e;const v=[],E=[];do{g+=1;const e=g===y.length;let s;const O=e&&0!==w.length;if(e){if(s=0===E.length?void 0:v.pop(),b=p,p=E.pop(),O)if(f){b=b.slice();let e=0;for(const[t,s]of w){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=l(b);for(const[e,t]of w)b[e]=t}g=h.index,y=h.keys,w=h.edits,f=h.inArray,h=h.prev}else if(p!==i&&void 0!==p){if(s=f?g:y[g],b=p[s],b===i||void 0===b)continue;v.push(s)}let A;if(!Array.isArray(b)){var S;if(!u(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,s,p,v,E),v.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,p,v,E):p&&(p[s]=t),e||(b=t)}};A=i.call(t,b,s,p,v,E,n)}if("function"==typeof(null===(S=A)||void 0===S?void 0:S.then))throw new xt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(A===n)break;if(A===o){if(!e){v.pop();continue}}else if(void 0!==A&&(w.push([s,A]),!e)){if(!u(A)){v.pop();continue}b=A}}var x;if(void 0===A&&O&&w.push([s,b]),!e)h={inArray:f,index:g,keys:y,edits:w,prev:h},f=Array.isArray(b),y=f?b:null!==(x=m[c(b)])&&void 0!==x?x:[],g=-1,w=[],p!==i&&void 0!==p&&E.push(p),p=b}while(void 0!==h);return 0!==w.length?w[w.length-1][1]:e};function Ft(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Nt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=At,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ot,nodeTypeGetter:c=Mt,nodePredicate:u=jt,nodeCloneFn:l=Tt,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=s||{};let h,p,f=Array.isArray(e),y=[e],g=-1,w=[],b=e;const v=[],E=[];do{g+=1;const e=g===y.length;let s;const x=e&&0!==w.length;if(e){if(s=0===E.length?void 0:v.pop(),b=p,p=E.pop(),x)if(f){b=b.slice();let e=0;for(const[t,s]of w){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=l(b);for(const[e,t]of w)b[e]=t}g=h.index,y=h.keys,w=h.edits,f=h.inArray,h=h.prev}else if(p!==i&&void 0!==p){if(s=f?g:y[g],b=p[s],b===i||void 0===b)continue;v.push(s)}let O;if(!Array.isArray(b)){if(!u(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,s,p,v,E),v.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,p,v,E):p&&(p[s]=t),e||(b=t)}};O=await i.call(t,b,s,p,v,E,n)}if(O===n)break;if(O===o){if(!e){v.pop();continue}}else if(void 0!==O&&(w.push([s,O]),!e)){if(!u(O)){v.pop();continue}b=O}}var S;if(void 0===O&&x&&w.push([s,b]),!e)h={inArray:f,index:g,keys:y,edits:w,prev:h},f=Array.isArray(b),y=f?b:null!==(S=m[c(b)])&&void 0!==S?S:[],g=-1,w=[],p!==i&&void 0!==p&&E.push(p),p=b}while(void 0!==h);return 0!==w.length?w[w.length-1][1]:e};var It=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=P,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=Ft(this.xf["@@transducer/step"](e,!1))),e},e}();function Rt(e){return function(t){return new It(e,t)}}const kt=l(j(["all"],Rt,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));const Ct=u((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)}))}))(l(Se)),$t=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Dt=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Lt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ut=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),Bt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,qt=e=>e({hasMethod:$t,hasBasicElementProps:Dt,primitiveEq:Lt,isElementType:Bt,hasClass:Ut}),Vt=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),Jt=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),zt=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Wt=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),Ht=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),Gt=qt((({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))),Zt=qt((({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))),Kt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),Xt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),Yt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),Qt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&s("array",r))),es=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rt||e(r)&&t("comment",r)&&s("string",r))),ts=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&s("array",r))),ss=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof at||e(r)&&t("sourceMap",r)&&s("array",r))),rs=e=>Bt("object",e)||Bt("array",e)||Bt("boolean",e)||Bt("number",e)||Bt("string",e)||Bt("null",e)||Bt("member",e),ns=e=>ss(e.meta.get("sourceMap")),is=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Zt(s)&&kt(Ct(s.toValue()),e)},os=(e,t)=>0===e.length||kt(Ct(t.classes.toValue()),e);const as=class extends xt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const cs=class extends as{};const us=class extends as{},ls=(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=Vt(t)?ls(t,r):t,o=Vt(n)?ls(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>ls(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=>ls(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Vt(e)){const t=ms(e);if(s.set(e,t),e.content)if(Vt(e.content))t.content=ls(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=ls(e.content,r);else if(Array.isArray(e.content)){const s=e=>ls(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new cs("Value provided to cloneDeep function couldn't be cloned",{value:e})};ls.safe=e=>{try{return ls(e)}catch{return e}};const _s=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},ds=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ls(e.meta)),e.attributes.length>0&&(t._attributes=ls(e.attributes)),Vt(e.content)){const s=e.content;t.content=ds(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=_s(e.content):t.content=e.content;return t},ms=e=>{if(e instanceof ce.KeyValuePair)return _s(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(Vt(e))return ds(e);throw new us("Value provided to cloneShallow function couldn't be cloned",{value:e})};ms.safe=e=>{try{return ms(e)}catch{return e}};const hs=e=>Gt(e)?"ObjectElement":Zt(e)?"ArrayElement":Kt(e)?"MemberElement":Jt(e)?"StringElement":Ht(e)?"BooleanElement":zt(e)?"NumberElement":Wt(e)?"NullElement":Xt(e)?"LinkElement":Yt(e)?"RefElement":void 0,ps=e=>Vt(e)?ms(e):Tt(e),fs=be(hs,dt),ys={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const gs=(e,t,{keyMap:s=ys,...r}={})=>Nt(e,t,{keyMap:s,nodeTypeGetter:hs,nodePredicate:fs,nodeCloneFn:ps,...r});gs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=ys,...r}={})=>Nt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:hs,nodePredicate:fs,nodeCloneFn:ps,...r});const ws=_((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 bs=_((function e(t,s,r){return ws((function(s,r,n){return Me(r)&&Me(n)?e(t,r,n):t(s,r,n)}),s,r)}));const vs=l((function(e,t){return bs((function(e,t,s){return s}),e,t)}));const Es=l(Re);const Ss=ge(0,-1);const xs=l((function(e,t){return e.apply(this,t)}));const Os=K(Ze);var As=u((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():v(e)?[]:h(e)?"":Me(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 Ms=As;const js=u((function(e){return null!=e&&re(e,Ms(e))}));const Ts=C(1,Ze(Array.isArray)?Array.isArray:be(ee,Ee("Array")));const Ps=De(Ts,js);const Ns=C(3,(function(e,t,s){var r=Es(e,s),n=Es(Ss(e),s);if(!Os(r)&&!Ps(e)){var i=_e(r,n);return xs(i,t)}})),Fs=()=>({predicates:{...e},namespace:_t}),Is={toolboxCreator:Fs,visitorOptions:{nodeTypeGetter:hs,exposeEdits:!0}},Rs=(e,t,s={})=>{if(0===t.length)return e;const r=vs(Is,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=Pt(a.map(y({},"visitor")),{...i});a.forEach(Ns(["pre"],[]));const u=gs(e,c,i);return a.forEach(Ns(["post"],[])),u};Rs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=vs(Is,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=Pt[Symbol.for("nodejs.util.promisify.custom")],u=gs[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(y({},"visitor")),{...i});await Promise.allSettled(a.map(Ns(["pre"],[])));const _=await u(e,l,i);return await Promise.allSettled(a.map(Ns(["post"],[]))),_};const ks=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Vt(e)&&(e.meta.length>0&&(r.meta=ls(e.meta)),e.attributes.length>0&&(r.attributes=ls(e.attributes))),Rs(r,s,{toolboxCreator:Fs,visitorOptions:{nodeTypeGetter:hs}})},Cs=e=>(t,s={})=>ks(t,{...s,Type:e});ce.Sh.refract=Cs(ce.Sh),ce.wE.refract=Cs(ce.wE),ce.Om.refract=Cs(ce.Om),ce.bd.refract=Cs(ce.bd),ce.Os.refract=Cs(ce.Os),ce.kT.refract=Cs(ce.kT),ce.Ft.refract=Cs(ce.Ft),ce.sI.refract=Cs(ce.sI),tt.refract=Cs(tt),rt.refract=Cs(rt),it.refract=Cs(it),at.refract=Cs(at);const $s=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}};class Ds{static toPosition(e){const t=new ce.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),s=new ce.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),s.classes.push("position"),[t,s]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(rs);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof $s&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new tt(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new it;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ce.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new ce.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,r){const n=!e.hasError,i=e.text,o=new tt(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===r.length){const e=new it;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new at,r=Ds.toPosition(e);if(null!==r){const[e,t]=r;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)}}const Ls=Ds;class Us{cursor;constructor(e){this.cursor=e}document(){return new $s(this.cursor)}object(){return new $s(this.cursor).setFieldName(this.cursor)}array(){return new $s(this.cursor).setFieldName(this.cursor)}pair(){return new $s(this.cursor)}string(){return new $s(this.cursor).setFieldName(this.cursor)}number(){return new $s(this.cursor).setFieldName(this.cursor)}null(){return new $s(this.cursor).setFieldName(this.cursor)}true(){return new $s(this.cursor).setFieldName(this.cursor)}false(){return new $s(this.cursor).setFieldName(this.cursor)}ERROR(){return new $s(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new $s(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Us(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Us(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Bs=Us,qs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...ys},Vs=e=>ts(e)?"ParseResultElement":Vt(e)?hs(e):Mt(e),Js=e=>Vt(e)||jt(e),zs=(e,{sourceMap:t=!1}={})=>{const s=new Ls,r=e.walk(),n=new Bs(r),[i]=Array.from(n);return Nt(i,s,{keyMap:qs,nodeTypeGetter:Vs,nodePredicate:Js,state:{sourceMap:t}})};class Ws{static type="point";type=Ws.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class Hs{static type="position";type=Hs.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Gs=Hs;const Zs=u((function(e){return p(0,e)}));const Ks=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:s=!1}={}){this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}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}};const Xs=class extends Ks{};const Ys=class extends Xs{static type="document";get child(){return Zs(this.children)}};const Qs=class extends Ks{static type="parseResult";get rootNode(){return Zs(this.children)}};const er=class extends Ks{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},tr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,sr=e=>tr("string",e),rr=e=>tr("false",e),nr=e=>tr("true",e),ir=e=>tr("null",e),or=e=>tr("number",e),ar=e=>tr("array",e),cr=e=>tr("object",e),ur=e=>tr("property",e),lr=e=>tr("key",e);const _r=class extends Xs{static type="object";get properties(){return this.children.filter(ur)}};const dr=class extends Xs{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>tr("stringContent",e))(e)||(e=>tr("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const mr=class extends dr{static type="key"};const hr=class extends Xs{static type="property";get key(){return this.children.find(lr)}get value(){return this.children.find((e=>rr(e)||nr(e)||ir(e)||or(e)||sr(e)||ar(e)||cr(e)))}};const pr=class extends Xs{static type="array";get items(){return this.children.filter((e=>rr(e)||nr(e)||ir(e)||or(e)||sr(e)||ar(e)||cr))}};const fr=class extends Xs{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const yr=class extends fr{static type="stringContent"};const gr=class extends fr{static type="number"};const wr=class extends fr{static type="null"};const br=class extends fr{static type="true"};const vr=class extends fr{static type="false"};const Er=class extends Ks{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}},Sr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class xr{static toPosition(e){const t=new Ws({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new Ws({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Gs({start:t,end:s})}document={enter:e=>{const t=xr.toPosition(e);return new Ys({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Qs({children:[e]})};enter(e){if(e instanceof $s&&!e.isNamed){const t=xr.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new er({value:s,position:t,isMissing:r})}}object(e){const t=xr.toPosition(e);return new _r({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=xr.toPosition(e),s=e.children.slice(1),{keyNode:r}=e,n=new mr({children:(null==r?void 0:r.children)||[],position:null!=r?xr.toPosition(r):void 0,isMissing:null!=r&&r.isMissing});return new hr({children:[n,...s],position:t,isMissing:e.isMissing})}array(e){const t=xr.toPosition(e);return new pr({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=xr.toPosition(e),s=new yr({value:JSON.parse(e.text)});return new dr({children:[s],position:t,isMissing:e.isMissing})}number(e){const t=xr.toPosition(e),s=e.text;return new gr({value:s,position:t,isMissing:e.isMissing})}null(e){const t=xr.toPosition(e),s=e.text;return new wr({value:s,position:t,isMissing:e.isMissing})}true(e){const t=xr.toPosition(e),s=e.text;return new br({value:s,position:t,isMissing:e.isMissing})}false(e){const t=xr.toPosition(e),s=e.text;return new vr({value:s,position:t,isMissing:e.isMissing})}ERROR(e,t,s,r){const n=xr.toPosition(e),i=new Er({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new Qs({children:[i]}):i}}const Or=xr,Ar={[Qs.type]:["children"],[Ys.type]:["children"],[_r.type]:["children"],[hr.type]:["children"],[pr.type]:["children"],[Er.type]:["children"],...ys},Mr=e=>ts(e)?"ParseResultElement":Vt(e)?hs(e):Mt(e),jr=e=>Vt(e)||jt(e);const Tr=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(rs);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new it;return t._content=e.children,t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ce.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new tt(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 ${e.value})`:`(Error ${e.value})`,i=new tt(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new at;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}},Pr=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Bs(s),[n]=Array.from(r),i=new Or,o=new Tr,a=Nt(n,i,{keyMap:Sr,state:{sourceMap:t}});return Nt(a.rootNode,o,{keyMap:Ar,nodeTypeGetter:Mr,nodePredicate:jr,state:{sourceMap:t}})},Nr=(lt(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);const Fr=class extends wt{};class Ir 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 Rr=Ir;class kr 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 Cr=kr;class $r 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 Dr=$r;class Lr 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 Ur=Lr;const Br=l((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},z(t))}));const qr=u((function(e){return null==e}));var Vr=l((function(e,t){if(0===e.length||qr(t))return!1;for(var s=t,r=0;r<e.length;){if(qr(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const Jr=Vr;var zr=l((function(e,t){return Jr([e],t)}));const Wr=zr;const Hr=_((function(e,t,s){return e(f(t,s))}));const Gr=u((function(e){return C(e.length,e)}));const Zr=l((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&Ce(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 Kr=Zr(1,"split");var Xr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,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 Yr(e){return function(t){return new Xr(e,t)}}const Qr=l(j(["dropWhile"],Yr,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ge(s,1/0,t)})));const en=Zr(1,"join");const tn=Gr((function(e,t){return be(Kr(""),Qr(Ct(e)),en(""))(t)})),sn=(e,t)=>{const s=d(e,t);return Br((e=>{if(Qe(e)&&Wr("$ref",e)&&Hr(dt,"$ref",e)){const t=Es(["$ref"],e),r=tn("#/",t);return Es(r.split("/"),s)}return Qe(e)?sn(e,s):e}),e)};const rn=function(){return!0},nn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:hs(e),on={EphemeralObject:["content"],EphemeralArray:["content"],...ys},an=(e,t,{keyMap:s=on,...r}={})=>gs(e,t,{keyMap:s,nodeTypeGetter:nn,nodePredicate:rn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});an[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=on,...s}={})=>gs[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:nn,nodePredicate:rn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const cn=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 un=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 ln{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new un(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 cn(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 Jt(e.href)?e.href.toValue():""}}const _n=e=>Vt(e)?Jt(e)||zt(e)||Ht(e)||Wt(e)?e.toValue():an(e,new ln):e,dn=e=>{const t=e.meta.length>0?ls(e.meta):void 0,s=e.attributes.length>0?ls(e.attributes):void 0;return new e.constructor(void 0,t,s)},mn=(e,t)=>t.clone&&t.isMergeableElement(e)?pn(dn(e),e,t):e,hn={clone:!0,isMergeableElement:e=>Gt(e)||Zt(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>mn(e,s))),objectElementMerge:(e,t,s)=>{const r=Gt(e)?dn(e):dn(t);return Gt(e)&&e.forEach(((e,t,n)=>{const i=ms(n);i.value=mn(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=_n(n);let a;if(Gt(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=ms(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return pn;const s=t.customMerge(e,t);return"function"==typeof s?s:pn})(n,s)(r,t,s)}else a=ms(i),a.value=mn(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},pn=(e,t,s)=>{var r,n,i;const o={...hn,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:hn.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:hn.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:hn.objectElementMerge;const a=Zt(t);if(!(a===Zt(e)))return mn(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=>ls(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>ls(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};pn.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)=>pn(e,s,t)),dn(e[0]))};const fn=pn;const yn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=fn(t.meta,e.meta),ns(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=fn(t.attributes,e.attributes))}};const gn=class extends yn{enter(e){return this.element=ls(e),At}},wn=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},bn=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:bn(s,[...t,s])},vn=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>bn(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=bn(n);for(let t of e){let e=bn(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(wn(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},En=e=>e.filter(((t,s)=>e.indexOf(t)==s)),Sn=(e,t)=>{const s=t.map((e=>bn(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++}},xn=(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(Sn(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==Sn(r,e)||void 0!==t[r],get:(s,r)=>(Sn(r,e)||t)[r],set(t,s,r){const n=Sn(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)))))}),On=null,An="copy",Mn="copy",jn="deep",Tn=new WeakMap,Pn=e=>Tn.get(e),Nn=(e,t)=>{var s,r;const n=En([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=En([...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},Fn=(e,t)=>{var s,r,n,i;return{property:Nn(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:Nn(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},In=(e,t)=>{var s,r,n,i,o,a;return{class:En([...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:Fn(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:Fn(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Rn=new Map,kn=(...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=[...bn(e.prototype).map((e=>e.constructor)),...null!==(t=Pn(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=>Rn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>In(e,t)))},Cn=e=>{let t=Rn.get(e);return t||(t={},Rn.set(e,t)),t};function $n(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=On;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)wn(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Mn?vn(n,o):(a=n,c=o,xn([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===An?vn(e,null,["prototype"]):xn(e,Function.prototype));let u=o;if("none"!==jn){const n="deep"===jn?kn(...e):((...e)=>{const t=e.map((e=>Cn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>In(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Dn(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},u),Dn(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},u.prototype)}var l,_;return l=u,_=e,Tn.set(l,_),u}const Dn=(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 Ln=u((function(e){return C(fe(Je,0,ze("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 Un=u((function(e){return!js(e)}));const Bn=l((function(e,t){return e||t}));var qn=K(C(1,De(Ue,l((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Bn)(e,t)}))(qe,Ze))));const Vn=Ln([dt,qn,Un]);const Jn=l((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 zn=class extends yn{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Es(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?Es(["visitors",...e],this.specObj):Es(["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 gn&&(null==r?void 0:r.constructor)===gn?ls(t):(gs(t,r,s),r.element)}};const Wn=class extends zn{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(Jt(r)&&s.includes(_n(r))&&!this.ignoredFields.includes(_n(r))){const s=this.toRefractedElement([...t,"fixedFields",_n(r)],e),i=new ce.Pr(ls(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(_n(r))||this.element.content.push(ls(n))})),this.copyMetaAndAttributes(e,this.element),At}};const Hn=class{parent;constructor({parent:e}){this.parent=e}},Gn=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rr||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Zn=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cr||e(r)&&t("JSONReference",r)&&s("object",r))),Kn=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dr||e(r)&&t("media",r)&&s("object",r))),Xn=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ur||e(r)&&t("linkDescription",r)&&s("object",r)));class Yn extends($n(Wn,Hn,gn)){constructor(e){super(e),this.element=new Rr,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,Wn.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!Jt(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Gn(this.parent)&&!Jt(e.get("$schema"))){const e=d(_n(this.parent.meta.get("inheritedDialectIdentifier")),_n(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?ls(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=_n(e.get(t));Vn(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const Qn=Yn,ei=e=>Gt(e)&&e.hasKey("$ref");class ti extends($n(zn,Hn,gn)){ObjectElement(e){const t=ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),At}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),At}}const si=ti;const ri=class extends gn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ni=function(){return!1};const ii=class extends zn{specPath;ignoredFields;fieldPatternPredicate=ni;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(_n(t))&&this.fieldPatternPredicate(_n(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(ls(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(_n(t))||this.element.content.push(ls(s))})),this.copyMetaAndAttributes(e,this.element),At}};const oi=class extends ii{constructor(e){super(e),this.fieldPatternPredicate=Vn}};class ai extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ci=ai;class ui extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const li=ui;class _i extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const di=_i;const mi=class extends gn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const hi=class extends gn{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 pi extends($n(zn,Hn,gn)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),At}}const fi=pi;class yi extends($n(zn,Hn,gn)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),At}}const gi=yi;class wi extends($n(zn,Hn,gn)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),At}}const bi=wi;class vi extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>ei(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ei=vi;class Si extends($n(zn,Hn,gn)){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),At}}const xi=Si;class Oi extends($n(Wn,gn)){constructor(e){super(e),this.element=new Cr,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Wn.prototype.ObjectElement.call(this,e);return Jt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ai=Oi;const Mi=class extends gn{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const ji=_((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 Ti=u((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var Pi=l((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ni=Pi;const Fi=u(Ft);const Ii=K(qr);const Ri=De(Ts,Un);function ki(e){return function(e){if(Array.isArray(e))return Ci(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 Ci(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)?Ci(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 Ci(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 $i=be(Ni(Ti((function(e,t){return e.length>t.length}))),Zs,f("length")),Di=Gr((function(e,t,s){var r=s.apply(void 0,ki(e));return Ii(r)?Fi(r):t}));const Li=ji(Ri,(function(e){var t=$i(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return fe(Di(s),void 0,e)}))}),ie);const Ui=class extends zn{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ji(e,ne(t),ie))),s=Li(t)(e);return this.element=this.toRefractedElement(s,e),At}};const Bi=class extends Ui{constructor(e){super(e),this.alternator=[{predicate:ei,specPath:["document","objects","JSONReference"]},{predicate:rn,specPath:["document","objects","JSONSchema"]}]}};class qi extends($n(Wn,gn)){constructor(e){super(e),this.element=new Dr,this.specPath=ne(["document","objects","Media"])}}const Vi=qi;class Ji extends($n(Wn,gn)){constructor(e){super(e),this.element=new Ur,this.specPath=ne(["document","objects","LinkDescription"])}}const zi=Ji,Wi={visitors:{value:gn,JSONSchemaOrJSONReferenceVisitor:Bi,document:{objects:{JSONSchema:{$visitor:Qn,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:Bi,items:si,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ri,properties:ci,additionalProperties:Bi,patternProperties:li,dependencies:di,enum:mi,type:hi,allOf:fi,anyOf:gi,oneOf:bi,not:Bi,definitions:Ei,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:xi,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Ai,fixedFields:{$ref:Mi}},Media:{$visitor:Vi,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:zi,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Bi,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Bi}}}}}},Hi=e=>{if(Vt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gi={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...ys},Zi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Rr),t.register("jSONReference",Cr),t.register("media",Dr),t.register("linkDescription",Ur),t}},Ki=()=>{const e=lt(Zi);return{predicates:{...t,isStringElement:Jt},namespace:e}},Xi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Wi}={})=>{const n=(0,ce.e)(e),i=sn(r),o=new(Es(t,i))({specObj:i});return gs(n,o),Rs(o.element,s,{toolboxCreator:Ki,visitorOptions:{keyMap:Gi,nodeTypeGetter:Hi}})},Yi=e=>(t,s={})=>Xi(t,{specPath:e,...s});Rr.refract=Yi(["visitors","document","objects","JSONSchema","$visitor"]),Cr.refract=Yi(["visitors","document","objects","JSONReference","$visitor"]),Dr.refract=Yi(["visitors","document","objects","Media","$visitor"]),Ur.refract=Yi(["visitors","document","objects","LinkDescription","$visitor"]);const Qi=class extends Rr{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Fr("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Fr("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 eo=class extends Ur{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 Fr("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Fr("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 Fr("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Fr("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Fr("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Fr("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 to=_((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!qr(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:m(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(m(e)&&v(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 so=to;const ro=_((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var no=_((function(e,t,s){return so([e],t,s)}));const io=no;var oo=l((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(m(e)&&v(t))return ro(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(m(e)&&v(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):io(r,e(n,s[r]),s)}}));const ao=oo;const co=class extends Qn{constructor(e){super(e),this.element=new Qi}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 uo=class extends si{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),At}};const lo=class extends gn{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const _o=class extends zi{constructor(e){super(e),this.element=new eo}},mo=be(so(["visitors","document","objects","JSONSchema","$visitor"],co),ao(["visitors","document","objects","JSONSchema","fixedFields","id"]),so(["visitors","document","objects","JSONSchema","fixedFields","$id"],Wi.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","contains"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),so(["visitors","document","objects","JSONSchema","fixedFields","items"],uo),so(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),so(["visitors","document","objects","JSONSchema","fixedFields","const"],Wi.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","examples"],lo),so(["visitors","document","objects","LinkDescription","$visitor"],_o),so(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),ao(["visitors","document","objects","LinkDescription","fixedFields","schema"]),so(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),ao(["visitors","document","objects","LinkDescription","fixedFields","method"]),ao(["visitors","document","objects","LinkDescription","fixedFields","encType"]),so(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Wi.visitors.value))(Wi),ho={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...ys},po=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qi||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),fo=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof eo||e(r)&&t("linkDescription",r)&&s("object",r))),yo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Qi),t.register("jSONReference",Cr),t.register("media",Dr),t.register("linkDescription",eo),t}},go=()=>{const e=lt(yo);return{predicates:{...s,isStringElement:Jt},namespace:e}},wo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=mo}={})=>{const n=(0,ce.e)(e),i=sn(r),o=new(Es(t,i))({specObj:i});return gs(n,o),Rs(o.element,s,{toolboxCreator:go,visitorOptions:{keyMap:ho,nodeTypeGetter:Hi}})},bo=e=>(t,s={})=>wo(t,{specPath:e,...s});Qi.refract=bo(["visitors","document","objects","JSONSchema","$visitor"]),eo.refract=bo(["visitors","document","objects","LinkDescription","$visitor"]);const vo=class extends Qi{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 Fr('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Fr('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 Eo=class extends eo{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 Fr("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Fr("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 Fr("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Fr("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 So=class extends co{constructor(e){super(e),this.element=new vo}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const xo=class extends _o{constructor(e){super(e),this.element=new Eo}},Oo=be(so(["visitors","document","objects","JSONSchema","$visitor"],So),so(["visitors","document","objects","JSONSchema","fixedFields","$comment"],mo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","if"],mo.visitors.JSONSchemaOrJSONReferenceVisitor),so(["visitors","document","objects","JSONSchema","fixedFields","then"],mo.visitors.JSONSchemaOrJSONReferenceVisitor),so(["visitors","document","objects","JSONSchema","fixedFields","else"],mo.visitors.JSONSchemaOrJSONReferenceVisitor),ao(["visitors","document","objects","JSONSchema","fixedFields","media"]),so(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],mo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],mo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],mo.visitors.value),so(["visitors","document","objects","LinkDescription","$visitor"],xo),so(["visitors","document","objects","LinkDescription","fixedFields","anchor"],mo.visitors.value),so(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],mo.visitors.value),ao(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),so(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],mo.visitors.value),so(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],mo.visitors.value),so(["visitors","document","objects","LinkDescription","fixedFields","description"],mo.visitors.value),so(["visitors","document","objects","LinkDescription","fixedFields","$comment"],mo.visitors.value),so(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],mo.visitors.JSONSchemaOrJSONReferenceVisitor),ao(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),so(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],mo.visitors.value))(mo),Ao={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...ys},Mo=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vo||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),jo=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Eo||e(r)&&t("linkDescription",r)&&s("object",r))),To={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",vo),t.register("jSONReference",Cr),t.register("linkDescription",Eo),t}},Po=()=>{const e=lt(To);return{predicates:{...r,isStringElement:Jt},namespace:e}},No=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Oo}={})=>{const n=(0,ce.e)(e),i=sn(r),o=new(Es(t,i))({specObj:i});return gs(n,o),Rs(o.element,s,{toolboxCreator:Po,visitorOptions:{keyMap:Ao,nodeTypeGetter:Hi}})},Fo=e=>(t,s={})=>No(t,{specPath:e,...s});vo.refract=Fo(["visitors","document","objects","JSONSchema","$visitor"]),Eo.refract=Fo(["visitors","document","objects","LinkDescription","$visitor"]);const Io=class extends vo{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 Fr("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Fr("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 Fr("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Fr("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 Ro=class extends Eo{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 ko=class extends So{constructor(e){super(e),this.element=new Io}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=Wn.prototype.ObjectElement.call(this,e);return Jt(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Co=class extends gn{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const $o=class extends gn{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Do extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Lo=Do;class Uo extends($n(zn,Hn,gn)){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),At}}const Bo=Uo;class qo extends($n(zn,Hn,gn)){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),At}}const Vo=qo;class Jo extends($n(zn,Hn,gn)){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),At}}const zo=Jo;class Wo extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Ho=Wo;class Go extends($n(zn,Hn,gn)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),At}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),At}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),At}}const Zo=Go;class Ko extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Xo=Ko;class Yo extends($n(oi,Hn,gn)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Qo=Yo;const ea=class extends gn{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const ta=class extends xo{constructor(e){super(e),this.element=new Ro}},sa=be(so(["visitors","document","objects","JSONSchema","$visitor"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Co),so(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Oo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Oo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Oo.visitors.value),ao(["visitors","document","objects","JSONReference","$visitor"]),so(["visitors","document","objects","JSONSchema","fixedFields","$ref"],$o),ao(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),so(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Lo),so(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Bo),so(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Vo),so(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],zo),so(["visitors","document","objects","JSONSchema","fixedFields","not"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","if"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","then"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","else"],ko),ao(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),so(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Ho),so(["visitors","document","objects","JSONSchema","fixedFields","items"],Zo),so(["visitors","document","objects","JSONSchema","fixedFields","contains"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","properties"],Xo),so(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Qo),so(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],ko),so(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Oo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Oo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],ea),so(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Oo.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],ko),so(["visitors","document","objects","LinkDescription","$visitor"],ta),so(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],ko),so(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],ko),so(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ko),so(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],ko))(Oo),ra={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...ys},na=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Io||e(r)&&t("JSONSchema201909",r)&&s("object",r))),ia=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ro||e(r)&&t("linkDescription",r)&&s("object",r))),oa={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Io),t.register("linkDescription",Ro),t}},aa=()=>{const e=lt(oa);return{predicates:{...n,isStringElement:Jt},namespace:e}},ca=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=sa}={})=>{const n=(0,ce.e)(e),i=sn(r),o=new(Es(t,i))({specObj:i});return gs(n,o),Rs(o.element,s,{toolboxCreator:aa,visitorOptions:{keyMap:ra,nodeTypeGetter:Hi}})},ua=e=>(t,s={})=>ca(t,{specPath:e,...s});Io.refract=ua(["visitors","document","objects","JSONSchema","$visitor"]),Ro.refract=ua(["visitors","document","objects","LinkDescription","$visitor"]);const la=class extends Io{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 Fr("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Fr("$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 Fr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Fr("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const _a=class extends Ro{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 da=class extends ko{constructor(e){super(e),this.element=new la}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class ma extends($n(zn,Hn,gn)){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),At}}const ha=ma;const pa=class extends ta{constructor(e){super(e),this.element=new _a}},fa=be(so(["visitors","document","objects","JSONSchema","$visitor"],da),ao(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),so(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],sa.visitors.value),ao(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),so(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],sa.visitors.value),so(["visitors","document","objects","JSONSchema","fixedFields","not"],da),so(["visitors","document","objects","JSONSchema","fixedFields","if"],da),so(["visitors","document","objects","JSONSchema","fixedFields","then"],da),so(["visitors","document","objects","JSONSchema","fixedFields","else"],da),so(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],ha),so(["visitors","document","objects","JSONSchema","fixedFields","items"],da),so(["visitors","document","objects","JSONSchema","fixedFields","contains"],da),so(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],da),ao(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),so(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],da),so(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],da),so(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],da),so(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],da),so(["visitors","document","objects","LinkDescription","$visitor"],pa),so(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],da),so(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],da),so(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],da),so(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],da))(sa),ya={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...ys},ga=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof la||e(r)&&t("JSONSchema202012",r)&&s("object",r))),wa=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _a||e(r)&&t("linkDescription",r)&&s("object",r))),ba={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",la),t.register("linkDescription",_a),t}},va=()=>{const e=lt(ba);return{predicates:{...i,isStringElement:Jt},namespace:e}},Ea=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=fa}={})=>{const n=(0,ce.e)(e),i=sn(r),o=new(Es(t,i))({specObj:i});return gs(n,o),Rs(o.element,s,{toolboxCreator:va,visitorOptions:{keyMap:ya,nodeTypeGetter:Hi}})},Sa=e=>(t,s={})=>Ea(t,{specPath:e,...s});la.refract=Sa(["visitors","document","objects","JSONSchema","$visitor"]),_a.refract=Sa(["visitors","document","objects","LinkDescription","$visitor"]);class xa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="arazzoSpecification1",this.classes.push("api"),this.classes.push("arazzo")}get arazzoSpec(){return this.get("arazzoSpec")}set arazzoSpec(e){this.set("arazzoSpec",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get sourceDescriptions(){return this.get("sourceDescriptions")}set sourceDescriptions(e){this.set("sourceDescriptions",e)}get workflows(){return this.get("workflows")}set workflows(e){this.set("workflows",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}}const Oa=xa;class Aa extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="arazzoSpec",this.classes.push("spec-version"),this.classes.push("version")}}const Ma=Aa;class ja 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 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 version(){return this.get("version")}set version(e){this.set("version",e)}}const Ta=ja;class Pa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="sourceDescription"}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 type(){return this.get("type")}set type(e){this.set("type",e)}}const Na=Pa;class Fa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="workflow"}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",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 inputs(){return this.get("inputs")}set inputs(e){this.set("inputs",e)}get steps(){return this.get("steps")}set steps(e){this.set("steps",e)}get outputs(){return this.get("outputs")}set outputs(e){this.set("outputs",e)}}const Ia=Fa;class Ra extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="step"}get description(){return this.get("description")}set description(e){this.set("description",e)}get stepId(){return this.get("stepId")}set stepId(e){this.set("stepId",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get dependsOn(){return this.get("dependsOn")}set dependsOn(e){this.set("dependsOn",e)}get successCriteria(){return this.get("successCriteria")}set successCriteria(e){this.set("successCriteria",e)}get onSuccess(){return this.get("onSuccess")}set onSuccess(e){this.set("onSuccess",e)}get onFailure(){return this.get("onFailure")}set onFailure(e){this.set("onFailure",e)}get outputs(){return this.get("outputs")}set outputs(e){this.set("outputs",e)}}const ka=Ra;class Ca 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 style(){return this.get("style")}set style(e){this.set("style",e)}get target(){return this.get("target")}set target(e){this.set("target",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}}const $a=Ca;class Da extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="successAction"}get type(){return this.get("type")}set type(e){this.set("type",e)}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",e)}get stepId(){return this.get("stepId")}set stepId(e){this.set("stepId",e)}get criteria(){return this.get("criteria")}set criteria(e){this.set("criteria",e)}}const La=Da;class Ua extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="failureAction"}get type(){return this.get("type")}set type(e){this.set("type",e)}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",e)}get stepId(){return this.get("stepId")}set stepId(e){this.set("stepId",e)}get retryAfter(){return this.get("retryAfter")}set retryAfter(e){this.set("retryAfter",e)}get retryLimit(){return this.get("retryLimit")}set retryLimit(e){this.set("retryLimit",e)}get criteria(){return this.get("criteria")}set criteria(e){this.set("criteria",e)}}const Ba=Ua;class qa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get inputs(){return this.get("inputs")}set inputs(e){this.set("inputs",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Va=qa;class Ja extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="criterion"}get context(){return this.get("context")}set context(e){this.set("context",e)}get condition(){return this.get("condition")}set condition(e){this.set("condition",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const za=Ja;class Wa extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("arazzo-spec-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}}const Ha=Wa;const Ga=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=fn(t.meta,e.meta),ns(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=fn(t.attributes,e.attributes))}};const Za=class extends Ga{enter(e){return this.element=ls(e),At}};const Ka=class extends Ga{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Jn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Es(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?Es(["visitors",...e],this.specObj):Es(["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 Za&&(null==r?void 0:r.constructor)===Za?ls(t):(gs(t,r,s),r.element)}};var Xa=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,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?Ft(s):s},e}();function Ya(e){return function(t){return new Xa(e,t)}}const Qa=l(j(["take"],Ya,(function(e,t){return ge(0,e<0?1/0:e,t)})));const ec=l((function(e,t){return re(Qa(e.length,t),e)})),tc=e=>Jt(e.key)&&ec("x-",_n(e.key)),sc=e=>Gt(e)&&e.hasKey("$ref");const rc=class extends Ka{specPath;ignoredFields=[];canSupportSpecificationExtensions=!0;specificationExtensionPredicate=tc;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(Jt(r)&&s.includes(_n(r))&&!this.ignoredFields.includes(_n(r))){const s=this.toRefractedElement([...t,"fixedFields",_n(r)],e),i=new ce.Pr(ls(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(_n(r))||this.element.content.push(ls(n))})),this.copyMetaAndAttributes(e,this.element),At}};class nc extends($n(rc,Za)){element;specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new Oa,this.specPath=ne(["document","objects","ArazzoSpecification"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return rc.prototype.ObjectElement.call(this,e)}}const ic=nc;class oc extends($n(Ka,Za)){StringElement(e){const t=new Ma(_n(e));return this.copyMetaAndAttributes(e,t),this.element=t,At}}const ac=oc;class cc extends($n(rc,Za)){constructor(e){super(e),this.element=new Ta,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const uc=cc;const lc=class extends Za{StringElement(e){const t=super.enter(e);return this.element.classes.push("arazzo-version"),this.element.classes.push("version"),t}};class _c extends($n(rc,Za)){constructor(e){super(e),this.element=new Na,this.specPath=ne(["document","objects","SourceDescription"]),this.canSupportSpecificationExtensions=!0}}const dc=_c;const mc=class extends Za{StringElement(e){const t=super.enter(e);return this.element.classes.push("source-description-url"),t}};class hc extends($n(rc,Za)){constructor(e){super(e),this.element=new Ia,this.specPath=ne(["document","objects","Workflow"]),this.canSupportSpecificationExtensions=!0}}const pc=hc;class fc extends ce.wE{static primaryClass="workflow-steps";constructor(e,t,s){super(e,t,s),this.classes.push(fc.primaryClass)}}const yc=fc;class gc extends($n(Ka,Za)){constructor(e){super(e),this.element=new yc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Step"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const wc=gc;const bc=class extends Ka{specPath;ignoredFields;fieldPatternPredicate=ni;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=tc;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(_n(t))&&this.fieldPatternPredicate(_n(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(ls(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(_n(t))||this.element.content.push(ls(s))})),this.copyMetaAndAttributes(e,this.element),At}};const vc=class extends bc{constructor(e){super(e),this.fieldPatternPredicate=Vn}};class Ec extends ce.Sh{static primaryClass="workflow-outputs";constructor(e,t,s){super(e,t,s),this.classes.push(Ec.primaryClass)}}const Sc=Ec;class xc extends($n(vc,Za)){constructor(e){super(e),this.element=new Sc,this.specPath=ne(["value"])}}const Oc=xc;class Ac extends($n(rc,Za)){constructor(e){super(e),this.element=new ka,this.specPath=ne(["document","objects","Step"]),this.canSupportSpecificationExtensions=!0}}const Mc=Ac;class jc extends ce.Sh{static primaryClass="step-outputs";constructor(e,t,s){super(e,t,s),this.classes.push(jc.primaryClass)}}const Tc=jc;class Pc extends($n(vc,Za)){constructor(e){super(e),this.element=new Tc,this.specPath=ne(["value"])}}const Nc=Pc;class Fc extends ce.wE{static primaryClass="workflows";constructor(e,t,s){super(e,t,s),this.classes.push(Fc.primaryClass)}}const Ic=Fc;class Rc extends ce.wE{static primaryClass="sourceDescriptions";constructor(e,t,s){super(e,t,s),this.classes.push(Rc.primaryClass)}}const kc=Rc;class Cc extends ce.wE{static primaryClass="step-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Cc.primaryClass),this.classes.push("parameters")}}const $c=Cc;class Dc extends ce.wE{static primaryClass="step-depends-on";constructor(e,t,s){super(e,t,s),this.classes.push(Dc.primaryClass)}}const Lc=Dc;class Uc extends ce.wE{static primaryClass="step-success-criteria";constructor(e,t,s){super(e,t,s),this.classes.push(Uc.primaryClass),this.classes.push("criteria")}}const Bc=Uc;class qc extends ce.wE{static primaryClass="step-on-success";constructor(e,t,s){super(e,t,s),this.classes.push(qc.primaryClass)}}const Vc=qc;class Jc extends ce.wE{static primaryClass="step-on-failure";constructor(e,t,s){super(e,t,s),this.classes.push(Jc.primaryClass)}}const zc=Jc;class Wc extends ce.wE{static primaryClass="success-action-criteria";constructor(e,t,s){super(e,t,s),this.classes.push(Wc.primaryClass),this.classes.push("criteria")}}const Hc=Wc;class Gc extends ce.wE{static primaryClass="failure-action-criteria";constructor(e,t,s){super(e,t,s),this.classes.push(Gc.primaryClass),this.classes.push("criteria")}}const Zc=Gc,Kc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ma||e(r)&&t("arazzoSpec",r)&&s("string",r))),Xc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Oa||e(n)&&t("arazzoSpecification1",n)&&s("object",n)&&r("api",n)&&r("arazzo",n))),Yc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Ta||e(n)&&t("info",n)&&s("object",n)&&r("info",n))),Qc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Na||e(r)&&t("sourceDescription",r)&&s("object",r))),eu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof kc||e(n)&&t("sourceDescriptions",n)&&s("array",n)&&r("sourceDescriptions",n))),tu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Ic||e(n)&&t("workflows",n)&&s("array",n)&&r("workflows",n))),su=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof yc||e(n)&&t("array",n)&&s("array",n)&&r("workflow-steps",n))),ru=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Sc||e(n)&&t("array",n)&&s("array",n)&&r("workflow-outputs",n))),nu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ia||e(r)&&t("workflow",r)&&s("object",r))),iu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Vc||e(n)&&t("array",n)&&s("array",n)&&r("step-on-success",n))),ou=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof zc||e(n)&&t("array",n)&&s("array",n)&&r("step-on-failure",n))),au=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Tc||e(n)&&t("array",n)&&s("array",n)&&r("step-outputs",n))),cu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ka||e(r)&&t("step",r)&&s("object",r))),uu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof $c||e(n)&&t("array",n)&&s("array",n)&&r("step-parameters",n))),lu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Lc||e(n)&&t("array",n)&&s("array",n)&&r("step-depends-on",n))),_u=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Bc||e(n)&&t("array",n)&&s("array",n)&&r("step-success-criteria",n)&&r("criteria",n))),du=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $a||e(r)&&t("parameter",r)&&s("object",r))),mu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof La||e(r)&&t("successAction",r)&&s("object",r))),hu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Va||e(r)&&t("components",r)&&s("object",r))),pu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof za||e(r)&&t("criterion",r)&&s("object",r))),fu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ha||e(r)&&t("reference",r)&&s("object",r))),yu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Hc||e(n)&&t("array",n)&&s("array",n)&&r("success-action-criteria",n)&&r("criteria",n))),gu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ba||e(r)&&t("failureAction",r)&&s("object",r))),wu=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Zc||e(n)&&t("array",n)&&s("array",n)&&r("failure-action-criteria",n)&&r("criteria",n)));class bu extends($n(Ka,Za)){constructor(e){super(e),this.element=new $c}ArrayElement(e){return e.forEach((e=>{const t=sc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);fu(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),At}}const vu=bu;const Eu=class extends Za{constructor(e){super(e),this.element=new Lc}ArrayElement(e){return this.element=this.element.concat(ls(e)),At}};class Su extends($n(Ka,Za)){constructor(e){super(e),this.element=new Bc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Criterion"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const xu=Su;class Ou extends($n(Ka,Za)){constructor(e){super(e),this.element=new Vc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SuccessAction"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const Au=Ou;class Mu extends($n(Ka,Za)){constructor(e){super(e),this.element=new zc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","FailureAction"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const ju=Mu;class Tu extends($n(rc,Za)){constructor(e){super(e),this.element=new $a,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Pu=Tu;class Nu extends($n(Ka,Za)){element;constructor(e){super(e),this.element=new kc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SourceDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const Fu=Nu;class Iu extends($n(Ka,Za)){element;constructor(e){super(e),this.element=new Ic}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Workflow"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const Ru=Iu;class ku extends($n(rc,Za)){constructor(e){super(e),this.element=new La,this.specPath=ne(["document","objects","SuccessAction"]),this.canSupportSpecificationExtensions=!0}}const Cu=ku;class $u extends($n(Ka,Za)){element;constructor(e){super(e),this.element=new Hc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Criterion"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const Du=$u;class Lu extends($n(rc,Za)){constructor(e){super(e),this.element=new Ba,this.specPath=ne(["document","objects","FailureAction"]),this.canSupportSpecificationExtensions=!0}}const Uu=Lu;class Bu extends($n(Ka,Za)){element;constructor(e){super(e),this.element=new Zc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Criterion"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),At}}const qu=Bu;class Vu extends($n(rc,Za)){constructor(e){super(e),this.element=new Va,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Ju=Vu;class zu extends ce.Sh{static primaryClass="components-inputs";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass)}}const Wu=zu;class Hu extends($n(vc,Za)){constructor(e){super(e),this.element=new Wu,this.specPath=ne(["document","objects","JSONSchema"])}}const Gu=Hu;class Zu extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Zu.primaryClass)}}const Ku=Zu;class Xu extends($n(vc,Za)){constructor(e){super(e),this.element=new Ku,this.specPath=ne(["document","objects","Parameter"])}}const Yu=Xu;class Qu extends($n(rc,Za)){constructor(e){super(e),this.element=new za,this.specPath=ne(["document","objects","Criterion"]),this.canSupportSpecificationExtensions=!0}}const el=Qu;class tl extends($n(rc,Za)){constructor(e){super(e),this.element=new Ha,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=rc.prototype.ObjectElement.call(this,e);return Jt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const sl=tl;const rl=class extends Za{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const nl=class extends Ka{MemberElement(e){return this.element=ls(e),this.element.classes.push("specification-extension"),At}},{JSONSchema:il}=fa.visitors.document.objects,ol={visitors:{value:Za,document:{objects:{ArazzoSpecification:{$visitor:ic,fixedFields:{arazzo:ac,info:{$ref:"#/visitors/document/objects/Info"},sourceDescriptions:Fu,workflows:Ru,components:{$ref:"#/visitors/document/objects/Components"}}},Info:{$visitor:uc,fixedFields:{title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},version:lc}},SourceDescription:{$visitor:dc,fixedFields:{name:{$ref:"#/visitors/value"},url:mc,type:{$ref:"#/visitors/value"}}},Workflow:{$visitor:pc,fixedFields:{workflowId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},inputs:il,steps:wc,outputs:Oc}},Step:{$visitor:Mc,fixedFields:{description:{$ref:"#/visitors/value"},stepId:{$ref:"#/visitors/value"},operationId:{$ref:"#/visitors/value"},operationRef:{$ref:"#/visitors/value"},workflowId:{$ref:"#/visitors/value"},parameters:vu,dependsOn:Eu,successCriteria:xu,onSuccess:Au,onFailure:ju,outputs:Nc}},Parameter:{$visitor:Pu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},target:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"}}},SuccessAction:{$visitor:Cu,fixedFields:{type:{$ref:"#/visitors/value"},workflowId:{$ref:"#/visitors/value"},stepId:{$ref:"#/visitors/value"},criteria:Du}},FailureAction:{$visitor:Uu,fixedFields:{type:{$ref:"#/visitors/value"},workflowId:{$ref:"#/visitors/value"},stepId:{$ref:"#/visitors/value"},retryAfter:{$ref:"#/visitors/value"},retryLimit:{$ref:"#/visitors/value"},criteria:qu}},Components:{$visitor:Ju,fixedFields:{inputs:Gu,parameters:Yu}},Criterion:{$visitor:el,fixedFields:{context:{$ref:"#/visitors/value"},condition:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},Reference:{$visitor:sl,fixedFields:{$ref:rl,value:{$ref:"#/visitors/value"}}},JSONSchema:il},extension:{$visitor:nl}}}},al=e=>{if(Vt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},cl={ArazzoSpecification1Element:["content"],InfoElement:["content"],SourceDescriptionElement:["content"],WorkflowElement:["content"],StepElement:["content"],ParameterElement:["content"],SuccessActionElement:["content"],FailureActionElement:["content"],ComponentsElement:["content"],CriterionElement:["content"],ReferenceElement:["content"],JSONSchema202012Element:["content"],...ys},ul={namespace:e=>{const{base:t}=e;return t.register("arazzoSpecification1",Oa),t.register("arazzoSpec",Ma),t.register("info",Ta),t.register("sourceDescription",Na),t.register("workflow",Ia),t.register("step",ka),t.register("parameter",$a),t.register("successAction",La),t.register("failureAction",Ba),t.register("components",Va),t.register("criterion",za),t.register("reference",Ha),t.register("jSONSchema202012",la),t}},ll=()=>{const e=lt(ul);return{predicates:{...o,...a,isStringElement:Jt},namespace:e}},_l=(e,{specPath:t=["visitors","document","objects","ArazzoSpecification","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=sn(ol),i=new(Es(t,n))({specObj:n});return gs(r,i),Rs(i.element,s,{toolboxCreator:ll,visitorOptions:{keyMap:cl,nodeTypeGetter:al}})},dl=e=>(t,s={})=>_l(t,{specPath:e,...s});Ta.refract=dl(["visitors","document","objects","Info","$visitor"]),Ma.refract=dl(["visitors","document","objects","ArazzoSpecification","fixedFields","arazzo"]),Oa.refract=dl(["visitors","document","objects","ArazzoSpecification","$visitor"]),Na.refract=dl(["visitors","document","objects","SourceDescription","$visitor"]),Ia.refract=dl(["visitors","document","objects","Workflow","$visitor"]),ka.refract=dl(["visitors","document","objects","Step","$visitor"]),$a.refract=dl(["visitors","document","objects","Parameter","$visitor"]),La.refract=dl(["visitors","document","objects","SuccessAction","$visitor"]),Ba.refract=dl(["visitors","document","objects","FailureAction","$visitor"]),Va.refract=dl(["visitors","document","objects","Components","$visitor"]),za.refract=dl(["visitors","document","objects","Criterion","$visitor"]),Ha.refract=dl(["visitors","document","objects","Reference","$visitor"]),la.refract=dl(["visitors","document","objects","JSONSchema","$visitor"]);const ml=u((function(e){return p(-1,e)}));const hl=class extends Fr{};const pl=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new hl("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new hl("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new hl("latest method in MediaTypes class is not yet implemented.")}};class fl extends pl{filterByFormat(e="generic"){const t="generic"===e?"workflows;version":e;return this.filter((e=>e.includes(t)))}findBy(e="1.0.1",t="generic"){const s="generic"===t?`vnd.oai.workflows;version=${e}`:`vnd.oai.workflows+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return ml(this.filterByFormat(e))}}const yl=new fl("application/vnd.oai.workflows;version=1.0.0","application/vnd.oai.workflows+json;version=1.0.0","application/vnd.oai.workflows+yaml;version=1.0.0","application/vnd.oai.workflows;version=1.0.1","application/vnd.oai.workflows+json;version=1.0.1","application/vnd.oai.workflows+yaml;version=1.0.1"),gl=new fl(...yl.filterByFormat("generic"),...yl.filterByFormat("json")),wl=/"arazzo"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/,bl=async e=>wl.test(e)&&await(async e=>{if(!Nr.test(e))return!1;try{return"ERROR"!==(await St(e)).rootNode.type}catch{return!1}})(e),vl=async(e,t={})=>{const s=y({},"refractorOpts",t),r=w(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const r=await St(e);let n;return n="indirect"===s?Pr(r,{sourceMap:t}):zs(r,{sourceMap:t}),n})(e,r),{result:i}=n;if(ae(i)){const e=Oa.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},El=lt(ul)})(),__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.apidomParserAdapterArazzoJson1=t():e.apidomParserAdapterArazzoJson1=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,r)=>{"use strict";r(9828);var s=r(1100),n=r(8900),i=r(1811),o=r(6625);for(var a in s)i(n[a],a),o[a]=o.Array},88:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var s=r(9098),n=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),_=r(1811),d=r(3999),m=r(3508),h=r(8655),p=r(6625),f=r(2621),y=o.PROPER,g=o.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,v=h("iterator"),E="keys",S="values",x="entries",O=function(){return this};e.exports=function(e,t,r,o,h,f,A){c(r,t,o);var M,j,T,P=function(e){if(e===h&&k)return k;if(!b&&e&&e in I)return I[e];switch(e){case E:case S:case x:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",F=!1,I=e.prototype,R=I[v]||I["@@iterator"]||h&&I[h],k=!b&&R||P(h),C="Array"===t&&I.entries||R;if(C&&(M=u(C.call(new e)))!==Object.prototype&&M.next&&(i||u(M)===w||(l?l(M,w):a(M[v])||m(M,v,O)),_(M,N,!0,!0),i&&(p[N]=O)),y&&h===S&&R&&R.name!==S&&(!i&&g?d(I,"name",S):(F=!0,k=function(){return n(R,this)})),h)if(j={values:P(S),keys:f?k:P(E),entries:P(x)},A)for(T in j)(b||F||!(T in I))&&m(I,T,j[T]);else s({target:t,proto:!0,forced:b||F},j);return i&&!A||I[v]===k||m(I,v,k,{name:h}),p[t]=k,j}},195:(e,t,r)=>{var s=r(4882),n=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var s=r(4572),n=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),_=r(967),d=r(1743),m=TypeError,h=function(e,t){this.stopped=e,this.result=t},p=h.prototype;e.exports=function(e,t,r){var f,y,g,w,b,v,E,S=r&&r.that,x=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),M=!(!r||!r.INTERRUPTED),j=s(t,S),T=function(e){return f&&d(f,"normal",e),new h(!0,e)},P=function(e){return x?(i(e),M?j(e[0],e[1],T):j(e[0],e[1])):M?j(e,T):j(e)};if(O)f=e.iterator;else if(A)f=e;else{if(!(y=_(e)))throw new m(o(e)+" is not iterable");if(a(y)){for(g=0,w=c(e);w>g;g++)if((b=P(e[g]))&&u(p,b))return b;return new h(!1)}f=l(e,y)}for(v=O?e.next:f.next;!(E=n(v,f)).done;){try{b=P(E.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&u(p,b))return b}return new h(!1)}},239:(e,t,r)=>{"use strict";r(5442);var s=r(6656);r(85),e.exports=s},262:(e,t,r)=>{"use strict";var s=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},353:(e,t,r)=>{var s=r(1340),n=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),_="[object Arguments]",d="[object Array]",m="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,p,f,y){var g=c(e),w=c(t),b=g?d:a(e),v=w?d:a(t),E=(b=b==_?m:b)==m,S=(v=v==_?m:v)==m,x=b==v;if(x&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(x&&!E)return y||(y=new s),g||l(e)?n(e,t,r,p,f,y):i(e,t,b,r,p,f,y);if(!(1&r)){var O=E&&h.call(e,"__wrapped__"),A=S&&h.call(t,"__wrapped__");if(O||A){var M=O?e.value():e,j=A?t.value():t;return y||(y=new s),f(M,j,r,p,y)}}return!!x&&(y||(y=new s),o(e,t,r,p,f,y))}},358:(e,t,r)=>{var s=r(6137),n=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&n(e),_=!r&&!l&&o(e),d=!r&&!l&&!_&&c(e),m=r||l||_||d,h=m?s(e.length,String):[],p=h.length;for(var f in e)!t&&!u.call(e,f)||m&&("length"==f||_&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,p))||h.push(f);return h}},393:(e,t,r)=>{var s=r(8244),n=r(7979),i=r(1211);e.exports=function(e){return s(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 r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,r)=>{"use strict";var s=r(9098),n=r(8900),i=r(7013),o=r(6453),a="WebAssembly",c=n[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),s({global:!0,constructor:!0,arity:1,forced:u},r)},_=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),s({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),_("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),_("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),_("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var s=r(4713),n=r(262),i=r(6281),o=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var s=r(7379),n=r(5387),i=r(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[s(e)]}},701:(e,t,r)=>{"use strict";var s=r(6100),n=r(2137),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},814:(e,t,r)=>{"use strict";var s=r(2769),n=r(459),i=TypeError;e.exports=function(e){if(s(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,r)=>{"use strict";var s=r(8407),n=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},986:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},1003:(e,t,r)=>{"use strict";var s=r(8099),n=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},1005:(e,t,r)=>{"use strict";var s=r(3273),n=r(4574),i=r(8130),o=function(e){return function(t,r,o){var a=s(t),c=i(a);if(0===c)return!e&&-1;var u,l=n(o,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes: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,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var s=r(8407),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,r)=>{var s=r(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=s(e),l=u.length;if(l!=s(t).length&&!c)return!1;for(var _=l;_--;){var d=u[_];if(!(c?d in t:n.call(t,d)))return!1}var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var f=c;++_<l;){var y=e[d=u[_]],g=t[d];if(i)var w=c?i(g,y,d,t,e,a):i(y,g,d,e,t,a);if(!(void 0===w?y===g||o(y,g,r,i,a):w)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return a.delete(e),a.delete(t),p}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var s=r(358),n=r(195),i=r(6529);e.exports=function(e){return i(e)?s(e):n(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var s=r(6100),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1314:(e,t,r)=>{"use strict";var s=r(8900),n=r(2769),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},1330:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var s=r(1386),n=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new s(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},1386:(e,t,r)=>{var s=r(2393),n=r(2049),i=r(7144),o=r(7452),a=r(3964);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,r)=>{"use strict";var s=r(6100),n=r(1203),i=r(9932),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,r)=>{"use strict";var s=r(4713),n=r(814),i=r(7235),o=r(459),a=r(967),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,r)=>{var s=r(8942).Uint8Array;e.exports=s},1743:(e,t,r)=>{"use strict";var s=r(4713),n=r(7235),i=r(4674);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var s=r(4904),n=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,c)||n(l,c,{configurable:!0,value:t}),u&&!s&&i(l,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var s=r(2621).IteratorPrototype,n=r(5780),i=r(480),o=r(1811),a=r(6625),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=n(s,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},1950:(e,t,r)=>{var s=r(8942)["__core-js_shared__"];e.exports=s},1966:(e,t,r)=>{"use strict";var s=r(2937),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2049:(e,t,r)=>{var s=r(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var s=r(5426),n=Object;e.exports=function(e){return n(s(e))}},2306:(e,t,r)=>{e=r.nmd(e);var s=r(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},2621:(e,t,r)=>{"use strict";var s,n,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),_=r(3508),d=r(8655),m=r(4871),h=d("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(s=n):p=!0),!c(s)||o((function(){var e={};return s[h].call(e)!==e}))?s={}:m&&(s=u(s)),a(s[h])||_(s,h,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:p}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var s=r(8655),n=r(6625),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2937:(e,t,r)=>{"use strict";var s=r(262);e.exports=function(e){return s(e)||null===e}},3004:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,r)=>{"use strict";var s=r(9098),n=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),_=r(8148),d=r(4279),m=r(208),h=r(4879),p=r(8655)("toStringTag"),f=Error,y=[].push,g=function(e,t){var r,s=n(w,this);o?r=o(new f,s?i(this):w):(r=s?this:c(w),u(r,p,"Error")),void 0!==t&&u(r,"message",h(t)),d(r,g,r.stack,1),arguments.length>2&&_(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};o?o(g,f):a(g,f,{name:!0});var w=g.prototype=c(f.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:g})},3103:(e,t,r)=>{var s=r(4715)(r(8942),"DataView");e.exports=s},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const s=r(394);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var s=r(8250),n=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},3273:(e,t,r)=>{"use strict";var s=r(1395),n=r(5426);e.exports=function(e){return s(n(e))}},3283:(e,t,r)=>{var s=r(6027),n=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,r)=>{var s=r(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3311:(e,t,r)=>{const s=r(1517),n=r(4123);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,r)=>{"use strict";var s=r(5024),n=r(701),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3489:(e,t,r)=>{"use strict";var s=r(1003);e.exports=s("document","documentElement")},3491:(e,t,r)=>{"use strict";var s=r(3574),n=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return i(r),o(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var s=r(2769),n=r(262),i=r(3491);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},3508:(e,t,r)=>{"use strict";var s=r(3999);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},3531:(e,t,r)=>{"use strict";var s=r(8900).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},3574:(e,t,r)=>{"use strict";var s=r(6100),n=r(814);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var s=r(7379),n=r(1580);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var s=r(701),n=r(2769),i=r(2137),o=r(4275),a=r(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},3753:(e,t,r)=>{"use strict";var s=r(4871),n=r(8900),i=r(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var s=r(5571).charAt,n=r(1139),i=r(8417),o=r(164),a=r(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:n(e),index:0})}),(function(){var e,t=l(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,s)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?s(e):r(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=()=>{(200==s.status||0==s.status&&s.response)&&r(s.response),t(s.status)},s.onerror=t,s.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,s){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,s):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(s,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,s)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var 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 u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,r=0;function s(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}function n(){var r=s();return UTF8ArrayToString(e,(t+=r)-r,r)}function 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"),r=(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 u=s();r=t+u,o=n()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();for(var _=s(),d=0;d<_;++d){var m=n();l.neededDynlibs.push(m)}}else{i("dylink.0"!==o);for(;t<r;){var h=e[t++],p=s();if(1===h)l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();else if(2===h)for(_=s(),d=0;d<_;++d)m=n(),l.neededDynlibs.push(m);else if(3===h)for(var f=s();f--;){var y=n();256&s()&&l.tlsExports.add(y)}else if(4===h)for(f=s();f--;){n(),y=n();1==(3&s())&&l.weakImports.add(y)}else t+=p}}return l};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var s={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=s,null!=t&&(LDSO.loadedLibsByHandle[t]=s),s},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},s=1;s<e.length;++s)r.parameters.push(t[e[s]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),s=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(s.length,t);for(var i=0;i<s.length;++i)t.push(n[s[i]]);"v"==r?t.push(0):t.push(1,n[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var s=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,s),s.push(...r),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(s));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var s=getWasmTableEntry(r);s&&functionsInTableMap.set(s,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var s=getEmptyTableSlot();try{setWasmTableEntry(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(s,n)}return functionsInTableMap.set(e,s),s},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var s=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof s?GOT[r].value=addFunction(s):"number"==typeof s?GOT[r].value=s:err(`unhandled export type for '${r}': ${typeof s}`))}},relocateExports=(e,t,r)=>{var s={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),s[n]=i}return updateGOT(s,r),s},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var s=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,s]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=s)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=s)}},asyncLoad=(e,t,r,s)=>{var n=s?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,s){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):r&&Object.assign(r,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,s&&(LDSO.loadedLibsByHandle[s]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(s){var r=LE_HEAP_LOAD_U32(4*(s+28>>2)),n=LE_HEAP_LOAD_U32(4*(s+32>>2));if(r&&n){var i=HEAP8.slice(r,r+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,r,s))):loadWebAssemblyModule(i(),t,e,r,s)}function a(t){n.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),n.exports=t}return(n=newDSO(e,s,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?o().then((e=>(a(e),!0))):(a(o()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var s,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(r,(s=Math.max(e,o))+((n=65536)-s%n)%n);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,r,s,n){convertI32PairToI53Checked(t,r);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,s)=>{for(var n=0,i=0;i<r;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*(s>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,s,n){const i=currentParseCallback(t,{row:r,column:s});"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,r=0;r<e.length;++r){var s=e.charCodeAt(r);s<=127?t++:s<=2047?t+=2:s>=55296&&s<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,s)=>{if(!(s>0))return 0;for(var n=r,i=r+s-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(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-n},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var s=t,n=(r-=2)<2*e.length?r/2:e.length,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-s},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,r,s)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,s),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,s,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,s,n),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,r,s,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,s,n),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,r,s,n,i,o)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,s,n,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,r,s,n,i,o,a,c,u,l)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,s,n,i,o,a,c,u,l),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,s,n,i,o,a,c,u,l)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,s,n,i,o,a,c,u,l),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,r,s,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,s,n),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,s=stackAlloc(4*(r+1)),n=s;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var i=t(r,s);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 r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r?.includedRanges){s=r.includedRanges.length,n=C._calloc(s,SIZE_OF_RANGE);let e=n;for(let t=0;t<s;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);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"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,s){assertInternal(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return s}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let s=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return s}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const i=C._malloc(SIZE_OF_INT*s.length);for(let e=0,t=s.length;e<t;e++)setValue(i+e*SIZE_OF_INT,s[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,r.row,r.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 r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),s=C._malloc(r+1);stringToUTF8(e,s,r+1);const n=C._ts_language_symbol_for_name(this[0],s,r,t);return C._free(s),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const s=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!s){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(r,s).length,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(r),o}const n=C._ts_query_string_count(s),i=C._ts_query_capture_count(s),o=C._ts_query_pattern_count(s),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,r)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,r)}const u=new Array(o),l=new Array(o),_=new Array(o),d=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");d[e]=[],m[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const r=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[r]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r,s=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":s=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,r=n[2].name;m[e].push((e=>{const n=[],o=[];for(const s of e)s.name===t&&n.push(s.node),s.name===r&&o.push(s.node);const a=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,s))))):n.some((e=>o.some((t=>a(e,t,s)))))}))}else{r=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node);const n=s?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":s=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);r=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!s:i?t.every((e=>n(e,s))):t.some((e=>n(e,s)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?l:_;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":s=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=n[1].name;const c=n.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const s of e)s.name===r&&t.push(s.node.text);return 0===t.length?!s:t.every((e=>c.includes(e)))===s}));break;default:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(_[e])}return C._free(r),new Query(INTERNAL,s,a,m,d,Object.freeze(u),Object.freeze(l),Object.freeze(_))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new Language(INTERNAL,s)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,s,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=s,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:r=ZERO_POINT,startIndex:s=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,r.row,r.column,s,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=new Array(c);this.exceededMatchLimit=Boolean(l);let d=0,m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,s),this.textPredicates[t].every((e=>e(s)))){_[d]={pattern:t,captures:s};const e=this.setProperties[t];e&&(_[d].setProperties=e);const r=this.assertedProperties[t];r&&(_[d].assertedProperties=r);const n=this.refutedProperties[t];n&&(_[d].refutedProperties=n),d++}}return _.length=d,C._free(u),_}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:s=0,endIndex:n=0,matchLimit: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,r.row,r.column,s,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=[];this.exceededMatchLimit=Boolean(l);const d=[];let m=u;for(let t=0;t<c;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const s=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=r,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),_.push(e)}}return C._free(u),_}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function unmarshalCaptures(e,t,r,s){for(let n=0,i=s.length;n<i;n++){const i=getValue(r,"i32"),o=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,s[n]={name:e.captureNames[i],node:o}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const s=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=r,a.startIndex=s,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,r)=>{"use strict";var s=r(6100),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,r)=>{var s=r(3212),n=r(6465),i=r(5568);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,_=t.length;if(l!=_&&!(u&&_>l))return!1;var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var h=-1,p=!0,f=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var y=e[h],g=t[h];if(o)var w=u?o(g,y,h,t,e,c):o(y,g,h,e,t,c);if(void 0!==w){if(w)continue;p=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(y===e||a(y,e,r,o,c)))return f.push(t)}))){p=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){p=!1;break}}return c.delete(e),c.delete(t),p}},3964:(e,t,r)=>{var s=r(7034);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3999:(e,t,r)=>{"use strict";var s=r(5024),n=r(9989),i=r(480);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,r)=>{var s=r(1386);e.exports=function(){this.__data__=new s,this.size=0}},4123:(e,t,r)=>{const s=r(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var s=r(8141),n=r(1268),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},4279:(e,t,r)=>{"use strict";var s=r(3999),n=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},4317:(e,t,r)=>{"use strict";var s=r(6100);e.exports=s({}.isPrototypeOf)},4497:(e,t,r)=>{var s=r(4715)(Object,"create");e.exports=s},4512:(e,t,r)=>{var s=r(4715)(r(8942),"Set");e.exports=s},4543:(e,t,r)=>{"use strict";var s=r(5024),n=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),_=Object.getOwnPropertyDescriptor;t.f=s?_:function(e,t){if(e=a(e),t=c(t),l)try{return _(e,t)}catch(e){}if(u(e,t))return o(!n(i.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var s=r(9344),n=r(814),i=r(1780),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var s=r(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},4603:(e,t,r)=>{"use strict";var s=r(5547),n=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4674:(e,t,r)=>{"use strict";var s=r(814),n=r(3057);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},4687:(e,t,r)=>{var s=r(353),n=r(547);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},4700:(e,t,r)=>{var s=r(9067);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,r)=>{var s=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},4732:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).has(e)}},4759:(e,t,r)=>{var s,n=r(1950),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";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,r)=>{"use strict";var s=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var s={};s[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(s)},4967:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},5024:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var s=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var s=r(3305),n=r(9361),i=r(1112),o=r(5276),a=r(5071);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5341:(e,t,r)=>{"use strict";var s=r(493),n=r(6281);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var s=r(3057),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var s=r(9989).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var s,n,i=r(8900),o=r(3531),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(s=l.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var s=r(6100),n=r(9903),i=r(1139),o=r(5426),a=s("".charAt),c=s("".charCodeAt),u=s("".slice),l=function(e){return function(t,r){var s,l,_=i(o(t)),d=n(r),m=_.length;return d<0||d>=m?e?"":void 0:(s=c(_,d))<55296||s>56319||d+1===m||(l=c(_,d+1))<56320||l>57343?e?a(_,d):s:e?u(_,d,d+2):l-56320+(s-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,r)=>{const s=r(1517),n=r(1580),i=r(9796),o=r(7309),a=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var s=r(8942).Symbol;e.exports=s},5681:(e,t,r)=>{var s=r(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var s=r(1003),n=r(6100),i=r(5116),o=r(7313),a=r(7235),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const s=r(9310),n=r(8138),i=r(986),o=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(s,u.NullElement,!1).detect(n,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},5780:(e,t,r)=>{"use strict";var s,n=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),_="prototype",d="script",m=l("IE_PROTO"),h=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&s?f(s):(t=u("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):f(s);for(var n=o.length;n--;)delete y[_][o[n]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[_]=n(e),r=new h,h[_]=null,r[m]=e):r=y(),void 0===t?r:i.f(r,t)}},5791:(e,t,r)=>{"use strict";var s=r(1203),n=r(480);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var s=r(8942),n=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},6027:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},6100:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},6138:(e,t,r)=>{"use strict";var s=r(9098),n=r(1003),i=r(7013),o=r(1203),a=r(6453),c="AggregateError",u=n(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},6281:(e,t,r)=>{"use strict";var s=r(1003),n=r(2769),i=r(4317),o=r(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var s=r(4687);e.exports=function(e,t){return s(e,t)}},6453:(e,t,r)=>{"use strict";var s=r(1003),n=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),_=r(4879),d=r(8148),m=r(4279),h=r(5024),p=r(4871);e.exports=function(e,t,r,f){var y="stackTraceLimit",g=f?2:1,w=e.split("."),b=w[w.length-1],v=s.apply(null,w);if(v){var E=v.prototype;if(!p&&n(E,"cause")&&delete E.cause,!r)return v;var S=s("Error"),x=t((function(e,t){var r=_(f?t:e,void 0),s=f?new v(e):new v;return void 0!==r&&i(s,"message",r),m(s,x,s.stack,2),this&&o(E,this)&&l(s,this,x),arguments.length>g&&d(s,arguments[g]),s}));if(x.prototype=E,"Error"!==b?a?a(x,S):c(x,S,{name:!0}):h&&y in v&&(u(x,v,y),u(x,v,"prepareStackTrace")),c(x,v),!p)try{E.name!==b&&i(E,"name",b),E.constructor=x}catch(e){}return x}}},6465:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var s=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var s=r(1386),n=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var s=r(8099);e.exports=s.AggregateError},7013:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,r)=>{var s=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var s=r(7034);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var s=r(239);e.exports=s},7235:(e,t,r)=>{"use strict";var s=r(262),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},7309:(e,t,r)=>{const s=r(2322),n=r(8631);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var s=r(5650),n=r(8870),i=r(9005),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7389:(e,t,r)=>{"use strict";var s=r(5024),n=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),u=n.length,l=0;u>l;)i.f(e,r=n[l++],s[r]);return e}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7452:(e,t,r)=>{var s=r(7034);e.exports=function(e){return s(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var s=r(4603);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var s=r(701),n=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var a=n(t),c=o.f,u=i.f,l=0;l<a.length;l++){var _=a[l];s(e,_)||r&&s(r,_)||c(e,_,u(t,_))}}},7525:(e,t,r)=>{"use strict";var s=r(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},7547:(e,t,r)=>{const s=r(8631),n=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),_=r(9620),d=r(593),m=r(4123),h=r(3311),p=r(2322);function f(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new l(e)}return e}s.prototype.ObjectElement=l,s.prototype.RefElement=d,s.prototype.MemberElement=u,s.prototype.refract=f,m.prototype.refract=f,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:_,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:h,KeyValuePair:p}},7979:(e,t,r)=>{var s=r(9847),n=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var s=r(3766)(Object.keys,Object);e.exports=s},8130:(e,t,r)=>{"use strict";var s=r(8146);e.exports=function(e){return s(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var s=r(7379),n=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},8141:(e,t,r)=>{"use strict";var s=r(3753);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},8146:(e,t,r)=>{"use strict";var s=r(9903),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var s=r(262),n=r(3999);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,r)=>{var s=r(1129),n=r(3142);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},8250:(e,t,r)=>{var s=r(9753),n=r(5681),i=r(88),o=r(4732),a=r(9068);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,r)=>{const s=r(5735),n=r(7547);t.g$=s,t.KeyValuePair=r(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var s=r(7202);e.exports=s},8364:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683);e.exports=Object.keys||function(e){return s(e,n)}},8407:(e,t,r)=>{"use strict";var s=r(4904),n=r(2769),i=r(9932),o=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var s,n,i,o=r(1314),a=r(8900),c=r(262),u=r(3999),l=r(701),_=r(3753),d=r(4275),m=r(5241),h="Object already initialized",p=a.TypeError,f=a.WeakMap;if(o||_.state){var y=_.state||(_.state=new f);y.get=y.get,y.has=y.has,y.set=y.set,s=function(e,t){if(y.has(e))throw new p(h);return t.facade=e,y.set(e,t),t},n=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=d("state");m[g]=!0,s=function(e,t){if(l(e,g))throw new p(h);return t.facade=e,u(e,g,t),t},n=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var s=r(3103),n=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",_="[object Promise]",d="[object Set]",m="[object WeakMap]",h="[object DataView]",p=u(s),f=u(n),y=u(i),g=u(o),w=u(a),b=c;(s&&b(new s(new ArrayBuffer(1)))!=h||n&&b(new n)!=l||i&&b(i.resolve())!=_||o&&b(new o)!=d||a&&b(new a)!=m)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?u(r):"";if(s)switch(s){case p:return h;case f:return l;case y:return _;case g:return d;case w:return m}return t}),e.exports=b},8600:(e,t,r)=>{"use strict";var s=r(6100),n=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=s([].push);e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&c(l,r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||c(l,r));return l}},8631:(e,t,r)=>{const s=r(6343),n=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,r)=>{"use strict";var s=r(8900),n=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),u=s.Symbol,l=n("wks"),_=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:_("Symbol."+e)),l[e]}},8666:(e,t,r)=>{var s=r(674),n=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},8696:(e,t,r)=>{"use strict";var s=r(1203),n=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},8712:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var s=r(5650),n=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),u=s?s.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,s,u,_,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!_(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var h=1&s;if(m||(m=c),e.size!=t.size&&!h)return!1;var p=d.get(e);if(p)return p==t;s|=2,d.set(e,t);var f=o(m(e),m(t),s,u,_,d);return d.delete(e),f;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,r)=>{var s=r(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},8900:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var s=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||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,r)=>{var s=r(4700);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},9098:(e,t,r)=>{"use strict";var s=r(8900),n=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),_=r(3999),d=r(701);r(3753);var m=function(e){var t=function(r,s,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,h,p,f,y,g,w,b,v=e.target,E=e.global,S=e.stat,x=e.proto,O=E?s:S?s[v]:s[v]&&s[v].prototype,A=E?u:u[v]||_(u,v,{})[v],M=A.prototype;for(p in t)n=!(r=c(E?p:v+(S?".":"#")+p,e.forced))&&O&&d(O,p),y=A[p],n&&(g=e.dontCallGetSet?(b=a(O,p))&&b.value:O[p]),f=n&&g?g:t[p],(r||x||typeof y!=typeof f)&&(w=e.bind&&n?l(f,s):e.wrap&&n?m(f):x&&o(f)?i(f):f,(e.sham||f&&f.sham||y&&y.sham)&&_(w,"sham",!0),_(A,p,w),x&&(d(u,h=v+"Prototype")||_(u,h,{}),_(u[h],p,f),e.real&&M&&(r||!M[p])&&_(M,p,f)))}},9258:(e,t,r)=>{"use strict";var s=r(4713),n=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,r)=>{var s=r(4715)(r(8942),"WeakMap");e.exports=s},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var s=r(9932),n=r(6100);e.exports=function(e){if("Function"===s(e))return n(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,r)=>{var s=r(4715)(r(8942),"Promise");e.exports=s},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var s=r(4904),n=r(8407);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,r)=>{"use strict";var s=r(8900),n=r(262),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var s=r(3655),n=r(4759),i=r(1580),o=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,_=u.hasOwnProperty,d=RegExp("^"+l.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?d:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203),i=r(9619);e.exports=!s&&!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,r)=>{var s=r(5098),n=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},9770:(e,t,r)=>{var s=r(4715)(r(8942),"Map");e.exports=s},9796:(e,t,r)=>{const s=r(1517),n=r(8631),i=r(4123);class o extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,r)=>{"use strict";var s=r(3273),n=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),_=r(5024),d="Array Iterator",m=o.set,h=o.getterFor(d);e.exports=c(Array,"Array",(function(e,t){m(this,{type:d,target:s(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&_&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},9903:(e,t,r)=>{"use strict";var s=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},9932:(e,t,r)=>{"use strict";var s=r(6100),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},9989:(e,t,r)=>{"use strict";var s=r(5024),n=r(9665),i=r(1330),o=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,_="enumerable",d="configurable",m="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var s=l(e,t);s&&s[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:s[d],enumerable:_ in r?r[_]:s[_],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>ml,detectionRegExp:()=>dl,mediaTypes:()=>_l,namespace:()=>pl,parse:()=>hl});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>tr,includesClasses:()=>sr,includesSymbols:()=>rr,isAnnotationElement:()=>Xt,isArrayElement:()=>Ht,isBooleanElement:()=>zt,isCommentElement:()=>Yt,isElement:()=>Bt,isLinkElement:()=>Zt,isMemberElement:()=>Gt,isNullElement:()=>Jt,isNumberElement:()=>Vt,isObjectElement:()=>Wt,isParseResultElement:()=>Qt,isPrimitiveElement:()=>er,isRefElement:()=>Kt,isStringElement:()=>qt});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>qn,isJSONSchemaElement:()=>Bn,isLinkDescriptionElement:()=>Jn,isMediaElement:()=>Vn});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>qn,isJSONSchemaElement:()=>ao,isLinkDescriptionElement:()=>co,isMediaElement:()=>Vn});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isJSONReferenceElement:()=>qn,isJSONSchemaElement:()=>bo,isLinkDescriptionElement:()=>vo});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONSchemaElement:()=>Xo,isLinkDescriptionElement:()=>Yo});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>_a,isLinkDescriptionElement:()=>da});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isArazzoSpecificationExtension:()=>Ga,isReferenceLikeElement:()=>Za});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function u(e){return function t(r){return 0===arguments.length||c(r)?t:e.apply(this,arguments)}}function l(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return c(r)?t:u((function(t){return e(r,t)}));default:return c(r)&&c(s)?t:c(r)?u((function(t){return e(t,s)})):c(s)?u((function(t){return e(r,t)})):e(r,s)}}}function _(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return c(r)?t:l((function(t,s){return e(r,t,s)}));case 2:return c(r)&&c(s)?t:c(r)?l((function(t,r){return e(t,s,r)})):c(s)?l((function(t,s){return e(r,t,s)})):u((function(t){return e(r,s,t)}));default:return c(r)&&c(s)&&c(n)?t:c(r)&&c(s)?l((function(t,r){return e(t,r,n)})):c(r)&&c(n)?l((function(t,r){return e(t,s,r)})):c(s)&&c(n)?l((function(t,s){return e(r,t,s)})):c(r)?u((function(t){return e(t,s,n)})):c(s)?u((function(t){return e(r,t,n)})):c(n)?u((function(t){return e(r,s,t)})):e(r,s,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isArazzoSpecElement:()=>Vc,isArazzoSpecification1Element:()=>Jc,isComponentsElement:()=>au,isCriterionElement:()=>cu,isFailureActionCriteriaElement:()=>du,isFailureActionElement:()=>_u,isInfoElement:()=>zc,isJSONSchemaElement:()=>_a,isParameterElement:()=>iu,isReferenceElement:()=>uu,isSourceDescriptionElement:()=>Wc,isSourceDescriptionsElement:()=>Hc,isStepDependsOnElement:()=>su,isStepElement:()=>tu,isStepOnFailureElement:()=>Qc,isStepOnSuccessElement:()=>Yc,isStepOutputsElement:()=>eu,isStepParametersElement:()=>ru,isStepSuccessCriteriaElement:()=>nu,isSuccessActionCriteriaElement:()=>lu,isSuccessActionElement:()=>ou,isWorkflowElement:()=>Xc,isWorkflowOutputsElement:()=>Kc,isWorkflowStepsElement:()=>Zc,isWorkflowsElement:()=>Gc});const d=l((function(e,t){return null==t||t!=t?e:t})),m=Number.isInteger||function(e){return(e|0)===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}function p(e,t){var r=e<0?t.length+e:e;return h(t)?t.charAt(r):t[r]}const f=l((function(e,t){if(null!=t)return m(e)?p(e,t):t[e]}));const y=_((function(e,t,r){return d(e,f(t,r))}));var g=l((function(e,t){for(var r={},s={},n=0,i=e.length;n<i;)s[e[n]]=1,n+=1;for(var o in t)s.hasOwnProperty(o)||(r[o]=t[o]);return r}));const w=g;function b(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=u((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var S="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function x(e,t,r){return function(s,n,i){if(E(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[S])return r(s,n,i[S]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function O(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function A(e,t,r,s){return r[s](e,t)}const M=x(b,A,O);function j(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!v(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function T(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}const P=function(){return this.xf["@@transducer/init"]()},N=function(e){return this.xf["@@transducer/result"](e)};var F=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const I=function(e){return function(t){return new F(e,t)}};function R(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var u;o<t.length&&(!c(t[o])||n>=arguments.length)?u=t[o]:(u=arguments[n],n+=1),s[o]=u,c(u)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):R(Math.max(0,i),k(e,s,r))}}const C=l((function(e,t){return 1===e?u(t):R(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 U=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],q=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},J="function"!=typeof Object.keys||q?u((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=q&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(s[s.length]=t);if(U)for(r=B.length-1;r>=0;)$(t=B[r],e)&&!V(s,t)&&(s[s.length]=t),r-=1;return s})):u((function(e){return Object(e)!==e?[]:Object.keys(e)}));const z=J;const W=l(j(["fantasy-land/map","map"],I,(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(r,s){return r[s]=e(t[s]),r}),{},z(t));default:return T(e,t)}})));const H=l((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:M((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,W(r,t))}),[],e)}));const G=l((function(e,t){var r=C(e,t);return C(e,(function(){return b(H,W(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=u((function(e){return G(e.length,e)}));const K=Z(u((function(e){return!e})));function X(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Y(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=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=u((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function te(e,t,r,s){var n=X(e);function i(e,t){return re(e,t,r.slice(),s.slice())}return!Y((function(e,t){return!Y(i,t,e)}),X(t),n)}function re(e,t,r,s){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=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&te(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&te(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=z(e);if(c.length!==z(t).length)return!1;var u=r.concat([e]),l=s.concat([t]);for(a=c.length-1;a>=0;){var _=c[a];if(!$(_,t)||!re(t[_],e[_],u,l))return!1;a-=1}return!0}const se=l((function(e,t){return re(e,t,[],[])}));const ne=u((function(e){return function(){return e}}));const ie=ne(void 0);const oe=se(ie());const ae=K(oe);var ce=__webpack_require__(8326);function ue(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function le(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const _e=l((function(e,t){return R(e.length,(function(){return e.apply(t,arguments)}))}));function de(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function me(e,t,r,s){return e["@@transducer/result"](r[s](_e(e["@@transducer/step"],e),t))}const he=x(le,me,de);var pe=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}();const fe=_((function(e,t,r){return he("function"==typeof e?new pe(e):e,t,r)}));function ye(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return v(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const ge=_(ye("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const we=u(ye("tail",ge(1,1/0)));function be(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return R(arguments[0].length,fe(ue,arguments[0],we(arguments)))}var ve=function(e,t){switch(arguments.length){case 0:return ve;case 1:return function t(r){return 0===arguments.length?t:Q(e,r)};default:return Q(e,t)}};const Ee=ve;function Se(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(se(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function xe(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 Ae="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 Me(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Te(e){return function(t){return new je(e,t)}}const Pe=l(j(["fantasy-land/filter","filter"],Te,(function(e,t){return Me(t)?b((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},z(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const Ne=l((function(e,t){return Pe((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Fe(e,t){var r=function(r){var s=t.concat([e]);return Se(r,s)?"<Circular>":Fe(r,s)},s=function(e,t){return T((function(t){return xe(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+T(r,e).join(", ")+"))";case"[object Array]":return"["+T(r,e).concat(s(e,Ne((function(e){return/^\d+$/.test(e)}),z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):xe(Ae(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,z(e)).join(", ")+"}"}}const Ie=u((function(e){return Fe(e,[])}));function Re(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=m(n)?p(n,r):r[n]}return r}const ke=_((function(e,t,r){return e(Re(t,r))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const $e=l((function(e,t){return e&&t}));const De=l((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z($e)(e,t)}));const Le=se(null);const Ue=K(Le);function Be(e){return Be="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},Be(e)}const qe=function(e){return"object"===Be(e)};const Ve=C(1,De(Ue,qe));const Je=l((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ie(e),o=r(i,Ie(t));return void 0!==o&&o===i?e:t}));const ze=l((function(e,t){return W(f(e),t)}));const We=u((function(e){return C(fe(Je,0,ze("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const He=C(1,be(ee,Ee("GeneratorFunction")));const Ge=C(1,be(ee,Ee("AsyncFunction")));const Ze=We([be(ee,Ee("Function")),He,Ge]);var Ke=be(ee,Ee("Object")),Xe=be(Ie,se(Ie(Object))),Ye=ke(De(Ze,Xe),["constructor"]);const Qe=C(1,(function(e){if(!Ve(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!Le(t)||Ye(t)}));class et extends ce.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class rt extends ce.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const st=rt;class nt extends ce.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(oe(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const it=nt;class ot extends ce.g${constructor(){super(),this.register("annotation",tt),this.register("comment",st),this.register("parseResult",it)}}const at=new ot,ct=e=>{const t=new ot;return Qe(e)&&t.use(e),t},ut=at;const lt=C(1,be(ee,Ee("String"))),_t=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",dt=globalThis.fetch;Ze(dt)&&(globalThis.fetch=(...e)=>lt(e[0])&&e[0].endsWith("tree-sitter.wasm")?dt.apply(globalThis,[_t,we(e)]):dt.apply(globalThis,e));var mt=__webpack_require__(3833),ht=__webpack_require__(1212);const pt=class extends ht{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class ft extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(pt,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=ft,gt=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let wt=null,bt=null;const vt=async e=>{if(null===wt&&null===bt)bt=mt.init().then((()=>mt.Language.load(gt))).then((e=>{const t=new mt;return t.setLanguage(e),t})).finally((()=>{bt=null})),wt=await bt;else if(null===wt&&null!==bt)wt=await bt;else if(null===wt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return wt.parse(e)};const Et=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},St=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},xt={},Ot=e=>null==e?void 0:e.type,At=e=>"string"==typeof Ot(e),Mt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),jt=(e,{visitFnGetter:t=St,nodeTypeGetter:r=Ot,breakSymbol:s=xt,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,_,d,m,h){let p=u,f=!1;const y={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(p),!1);if("function"==typeof a){const t=a.call(e[u],p,l,_,d,m,y);if("function"==typeof(null==t?void 0:t.then))throw new Et("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===i)c[u]=p;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,f=!0}}}}return f?p:void 0},leave(n,o,u,l,_,d){let m=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=a.call(e[n],m,o,u,l,_,h);if("function"==typeof(null==t?void 0:t.then))throw new Et("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===m&&(c[n]=a)}}};jt[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=St,nodeTypeGetter:r=Ot,breakSymbol:s=xt,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,_,d,m,h){let p=u,f=!1;const y={...h,replaceWith(e,t){h.replaceWith(e,t),p=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(p),!1);if("function"==typeof a){const t=await a.call(e[u],p,l,_,d,m,y);if(t===i)c[u]=p;else if(t===s)c[u]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,f=!0}}}}return f?p:void 0},async leave(n,o,u,l,_,d){let m=n;const h={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(m),!0);if("function"==typeof a){const t=await a.call(e[n],m,o,u,l,_,h);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===m&&(c[n]=a)}}};const Tt=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=xt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=St,nodeTypeGetter:c=Ot,nodePredicate:u=At,nodeCloneFn:l=Mt,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let h,p,f=Array.isArray(e),y=[e],g=-1,w=[],b=e;const v=[],E=[];do{g+=1;const e=g===y.length;let r;const O=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=p,p=E.pop(),O)if(f){b=b.slice();let e=0;for(const[t,r]of w){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=l(b);for(const[e,t]of w)b[e]=t}g=h.index,y=h.keys,w=h.edits,f=h.inArray,h=h.prev}else if(p!==i&&void 0!==p){if(r=f?g:y[g],b=p[r],b===i||void 0===b)continue;v.push(r)}let A;if(!Array.isArray(b)){var S;if(!u(b))throw new Et(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,r,p,v,E),v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,p,v,E):p&&(p[r]=t),e||(b=t)}};A=i.call(t,b,r,p,v,E,n)}if("function"==typeof(null===(S=A)||void 0===S?void 0:S.then))throw new Et("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(A===n)break;if(A===o){if(!e){v.pop();continue}}else if(void 0!==A&&(w.push([r,A]),!e)){if(!u(A)){v.pop();continue}b=A}}var x;if(void 0===A&&O&&w.push([r,b]),!e)h={inArray:f,index:g,keys:y,edits:w,prev:h},f=Array.isArray(b),y=f?b:null!==(x=m[c(b)])&&void 0!==x?x:[],g=-1,w=[],p!==i&&void 0!==p&&E.push(p),p=b}while(void 0!==h);return 0!==w.length?w[w.length-1][1]:e};function Pt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Tt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=xt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=St,nodeTypeGetter:c=Ot,nodePredicate:u=At,nodeCloneFn:l=Mt,detectCycles:_=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let h,p,f=Array.isArray(e),y=[e],g=-1,w=[],b=e;const v=[],E=[];do{g+=1;const e=g===y.length;let r;const x=e&&0!==w.length;if(e){if(r=0===E.length?void 0:v.pop(),b=p,p=E.pop(),x)if(f){b=b.slice();let e=0;for(const[t,r]of w){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=l(b);for(const[e,t]of w)b[e]=t}g=h.index,y=h.keys,w=h.edits,f=h.inArray,h=h.prev}else if(p!==i&&void 0!==p){if(r=f?g:y[g],b=p[r],b===i||void 0===b)continue;v.push(r)}let O;if(!Array.isArray(b)){if(!u(b))throw new Et(`Invalid AST Node: ${String(b)}`,{node:b});if(_&&E.includes(b)){"function"==typeof d&&d(b,r,p,v,E),v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,p,v,E):p&&(p[r]=t),e||(b=t)}};O=await i.call(t,b,r,p,v,E,n)}if(O===n)break;if(O===o){if(!e){v.pop();continue}}else if(void 0!==O&&(w.push([r,O]),!e)){if(!u(O)){v.pop();continue}b=O}}var S;if(void 0===O&&x&&w.push([r,b]),!e)h={inArray:f,index:g,keys:y,edits:w,prev:h},f=Array.isArray(b),y=f?b:null!==(S=m[c(b)])&&void 0!==S?S:[],g=-1,w=[],p!==i&&void 0!==p&&E.push(p),p=b}while(void 0!==h);return 0!==w.length?w[w.length-1][1]:e};var Nt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=P,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=Pt(this.xf["@@transducer/step"](e,!1))),e},e}();function Ft(e){return function(t){return new Nt(e,t)}}const It=l(j(["all"],Ft,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Rt=u((function(e){return C(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(l(Se)),kt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ct=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,$t=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Dt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),Lt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Ut=e=>e({hasMethod:kt,hasBasicElementProps:Ct,primitiveEq:$t,isElementType:Lt,hasClass:Dt}),Bt=Ut((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.Hg||e(r)&&t(void 0,r))),qt=Ut((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.Om||e(r)&&t("string",r))),Vt=Ut((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.kT||e(r)&&t("number",r))),Jt=Ut((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.Os||e(r)&&t("null",r))),zt=Ut((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ce.bd||e(r)&&t("boolean",r))),Wt=Ut((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ce.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Ht=Ut((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ce.wE&&!(s instanceof ce.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Gt=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ce.Pr||e(s)&&t("member",s)&&r(void 0,s))),Zt=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ce.Ft||e(s)&&t("link",s)&&r(void 0,s))),Kt=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ce.sI||e(s)&&t("ref",s)&&r(void 0,s))),Xt=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tt||e(s)&&t("annotation",s)&&r("array",s))),Yt=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof st||e(s)&&t("comment",s)&&r("string",s))),Qt=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof it||e(s)&&t("parseResult",s)&&r("array",s))),er=e=>Lt("object",e)||Lt("array",e)||Lt("boolean",e)||Lt("number",e)||Lt("string",e)||Lt("null",e)||Lt("member",e),tr=e=>!!Bt(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)),rr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Ht(r)&&It(Rt(r.toValue()),e)},sr=(e,t)=>0===e.length||It(Rt(t.classes.toValue()),e);const nr=class extends Et{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ir=class extends nr{};const or=class extends nr{};const ar=l((function(e,t){return b((function(r,s){return r[s]=e(t[s],s,t),r}),{},z(t))}));const cr=u((function(e){return null==e}));var ur=l((function(e,t){if(0===e.length||cr(t))return!1;for(var r=t,s=0;s<e.length;){if(cr(r)||!$(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const lr=ur;var _r=l((function(e,t){return lr([e],t)}));const dr=_r;const mr=_((function(e,t,r){return e(f(t,r))}));const hr=l(Re);const pr=u((function(e){return C(e.length,e)}));const fr=l((function(e,t){return C(e+1,(function(){var r=arguments[e];if(null!=r&&Ce(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ie(r)+' does not have a method named "'+t+'"')}))}));const yr=fr(1,"split");var gr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,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 wr(e){return function(t){return new gr(e,t)}}const br=l(j(["dropWhile"],wr,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return ge(r,1/0,t)})));const vr=fr(1,"join");const Er=pr((function(e,t){return be(yr(""),br(Rt(e)),vr(""))(t)})),Sr=(e,t)=>{const r=d(e,t);return ar((e=>{if(Qe(e)&&dr("$ref",e)&&mr(lt,"$ref",e)){const t=hr(["$ref"],e),s=Er("#/",t);return hr(s.split("/"),r)}return Qe(e)?Sr(e,r):e}),e)},xr=(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),Or=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ce.KeyValuePair){const{key:t,value:n}=e,i=Bt(t)?Or(t,s):t,o=Bt(n)?Or(n,s):n,a=new ce.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof ce.ot){const t=e=>Or(e,s),n=[...e].map(t),i=new ce.ot(n);return r.set(e,i),i}if(e instanceof ce.G6){const t=e=>Or(e,s),n=[...e].map(t),i=new ce.G6(n);return r.set(e,i),i}if(Bt(e)){const t=jr(e);if(r.set(e,t),e.content)if(Bt(e.content))t.content=Or(e.content,s);else if(e.content instanceof ce.KeyValuePair)t.content=Or(e.content,s);else if(Array.isArray(e.content)){const r=e=>Or(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new ir("Value provided to cloneDeep function couldn't be cloned",{value:e})};Or.safe=e=>{try{return Or(e)}catch{return e}};const Ar=e=>{const{key:t,value:r}=e;return new ce.KeyValuePair(t,r)},Mr=e=>{const t=new e.constructor;if(t.element=e.element,tr(e)&&xr(t,e),e.meta.length>0&&(t._meta=Or(e.meta)),e.attributes.length>0&&(t._attributes=Or(e.attributes)),Bt(e.content)){const r=e.content;t.content=Mr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=Ar(e.content):t.content=e.content;return t},jr=e=>{if(e instanceof ce.KeyValuePair)return Ar(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(Bt(e))return Mr(e);throw new or("Value provided to cloneShallow function couldn't be cloned",{value:e})};jr.safe=e=>{try{return jr(e)}catch{return e}};const Tr=e=>Wt(e)?"ObjectElement":Ht(e)?"ArrayElement":Gt(e)?"MemberElement":qt(e)?"StringElement":zt(e)?"BooleanElement":Vt(e)?"NumberElement":Jt(e)?"NullElement":Zt(e)?"LinkElement":Kt(e)?"RefElement":void 0,Pr=e=>Bt(e)?jr(e):Mt(e),Nr=be(Tr,lt),Fr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Ir=(e,t,{keyMap:r=Fr,...s}={})=>Tt(e,t,{keyMap:r,nodeTypeGetter:Tr,nodePredicate:Nr,nodeCloneFn:Pr,...s});Ir[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Fr,...s}={})=>Tt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Tr,nodePredicate:Nr,nodeCloneFn:Pr,...s});const Rr=_((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})$(s,t)&&(n[s]=$(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)$(s,r)&&!$(s,n)&&(n[s]=r[s]);return n}));const kr=_((function e(t,r,s){return Rr((function(r,s,n){return Me(s)&&Me(n)?e(t,s,n):t(r,s,n)}),r,s)}));const Cr=l((function(e,t){return kr((function(e,t,r){return r}),e,t)}));const $r=ge(0,-1);const Dr=l((function(e,t){return e.apply(this,t)}));const Lr=K(Ze);var Ur=u((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():v(e)?[]:h(e)?"":Me(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 Br=Ur;const qr=u((function(e){return null!=e&&se(e,Br(e))}));const Vr=C(1,Ze(Array.isArray)?Array.isArray:be(ee,Ee("Array")));const Jr=De(Vr,qr);const zr=C(3,(function(e,t,r){var s=hr(e,r),n=hr($r(e),r);if(!Lr(s)&&!Jr(e)){var i=_e(s,n);return Dr(i,t)}})),Wr=()=>({predicates:{...e},namespace:ut}),Hr={toolboxCreator:Wr,visitorOptions:{nodeTypeGetter:Tr,exposeEdits:!0}},Gr=(e,t,r={})=>{if(0===t.length)return e;const s=Cr(Hr,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=jt(a.map(y({},"visitor")),{...i});a.forEach(zr(["pre"],[]));const u=Ir(e,c,i);return a.forEach(zr(["post"],[])),u};Gr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Cr(Hr,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=jt[Symbol.for("nodejs.util.promisify.custom")],u=Ir[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(y({},"visitor")),{...i});await Promise.allSettled(a.map(zr(["pre"],[])));const _=await u(e,l,i);return await Promise.allSettled(a.map(zr(["post"],[]))),_};const Zr=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Bt(e)&&(e.meta.length>0&&(s.meta=Or(e.meta)),e.attributes.length>0&&(s.attributes=Or(e.attributes))),Gr(s,r,{toolboxCreator:Wr,visitorOptions:{nodeTypeGetter:Tr}})},Kr=e=>(t,r={})=>Zr(t,{...r,Type:e});ce.Sh.refract=Kr(ce.Sh),ce.wE.refract=Kr(ce.wE),ce.Om.refract=Kr(ce.Om),ce.bd.refract=Kr(ce.bd),ce.Os.refract=Kr(ce.Os),ce.kT.refract=Kr(ce.kT),ce.Ft.refract=Kr(ce.Ft),ce.sI.refract=Kr(ce.sI),tt.refract=Kr(tt),st.refract=Kr(st),it.refract=Kr(it);const Xr=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];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("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}};const Yr=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(er);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Xr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new tt(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new it;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ce.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new ce.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,s){const n=!e.hasError,i=e.text,o=new tt(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===s.length){const e=new it;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&xr(t,e)}};class Qr{cursor;constructor(e){this.cursor=e}document(){return new Xr(this.cursor)}object(){return new Xr(this.cursor).setFieldName(this.cursor)}array(){return new Xr(this.cursor).setFieldName(this.cursor)}pair(){return new Xr(this.cursor)}string(){return new Xr(this.cursor).setFieldName(this.cursor)}number(){return new Xr(this.cursor).setFieldName(this.cursor)}null(){return new Xr(this.cursor).setFieldName(this.cursor)}true(){return new Xr(this.cursor).setFieldName(this.cursor)}false(){return new Xr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Xr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Xr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Qr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Qr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const es=Qr,ts={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...Fr},rs=e=>Qt(e)?"ParseResultElement":Bt(e)?Tr(e):Ot(e),ss=e=>Bt(e)||At(e),ns=(e,{sourceMap:t=!1}={})=>{const r=new Yr,s=e.walk(),n=new es(s),[i]=Array.from(n);return Tt(i,r,{keyMap:ts,nodeTypeGetter:rs,nodePredicate:ss,state:{sourceMap:t}})};const is=u((function(e){return p(0,e)}));const os=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:r,startPositionColumn:s,startIndex:n,endPositionRow:i,endPositionColumn:o,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=r,this.startPositionColumn=s,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 r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};const as=class extends os{};const cs=class extends as{static type="document";get child(){return is(this.children)}};const us=class extends os{static type="parseResult";get rootNode(){return is(this.children)}};const ls=class extends os{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},_s=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,ds=e=>_s("string",e),ms=e=>_s("false",e),hs=e=>_s("true",e),ps=e=>_s("null",e),fs=e=>_s("number",e),ys=e=>_s("array",e),gs=e=>_s("object",e),ws=e=>_s("property",e),bs=e=>_s("key",e);const vs=class extends as{static type="object";get properties(){return this.children.filter(ws)}};const Es=class extends as{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>_s("stringContent",e))(e)||(e=>_s("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const Ss=class extends Es{static type="key"};const xs=class extends as{static type="property";get key(){return this.children.find(bs)}get value(){return this.children.find((e=>ms(e)||hs(e)||ps(e)||fs(e)||ds(e)||ys(e)||gs(e)))}};const Os=class extends as{static type="array";get items(){return this.children.filter((e=>ms(e)||hs(e)||ps(e)||fs(e)||ds(e)||ys(e)||gs))}};const As=class extends as{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const Ms=class extends As{static type="stringContent"};const js=class extends As{static type="number"};const Ts=class extends As{static type="null"};const Ps=class extends As{static type="true"};const Ns=class extends As{static type="false"};const Fs=class extends os{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},Is={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};const Rs=class{document={enter:e=>new cs(xr({children:e.children,isMissing:e.isMissing},e)),leave:e=>new us({children:[e]})};enter(e){if(e instanceof Xr&&!e.isNamed){const t=e.type||e.text,{isMissing:r}=e;return new ls(xr({value:t,isMissing:r},e))}}object(e){return new vs(xr({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:r}=e,s=new Ss(xr({children:(null==r?void 0:r.children)||[],isMissing:null!=r&&r.isMissing},r));return new xs(xr({children:[s,...t],isMissing:e.isMissing},e))}array(e){return new Os(xr({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new Ms({value:JSON.parse(e.text)});return new Es(xr({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new js(xr({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new Ts(xr({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new Ps(xr({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new Ns(xr({value:t,isMissing:e.isMissing},e))}ERROR(e,t,r,s){const n=new Fs(xr({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===s.length?new us({children:[n]}):n}},ks={[us.type]:["children"],[cs.type]:["children"],[vs.type]:["children"],[xs.type]:["children"],[Os.type]:["children"],[Fs.type]:["children"],...Fr},Cs=e=>Qt(e)?"ParseResultElement":Bt(e)?Tr(e):Ot(e),$s=e=>Bt(e)||At(e);const Ds=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(er);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new it;return t._content=e.children,t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ce.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new tt(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,s){const n=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new tt(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===s.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&xr(t,e)}},Ls=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new es(r),[n]=Array.from(s),i=new Rs,o=new Ds,a=Tt(n,i,{keyMap:Is,state:{sourceMap:t}});return Tt(a.rootNode,o,{keyMap:ks,nodeTypeGetter:Cs,nodePredicate:$s,state:{sourceMap:t}})},Us=(ct(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);const Bs=class extends yt{};class qs extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Vs=qs;class Js extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const zs=Js;class Ws extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Hs=Ws;class Gs extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Zs=Gs;const Ks=function(){return!0},Xs=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Tr(e),Ys={EphemeralObject:["content"],EphemeralArray:["content"],...Fr},Qs=(e,t,{keyMap:r=Ys,...s}={})=>Ir(e,t,{keyMap:r,nodeTypeGetter:Xs,nodePredicate:Ks,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Qs[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Ys,...r}={})=>Ir[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xs,nodePredicate:Ks,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const en=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 tn=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 rn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new tn(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 en(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return qt(e.href)?e.href.toValue():""}}const sn=e=>Bt(e)?qt(e)||Vt(e)||zt(e)||Jt(e)?e.toValue():Qs(e,new rn):e,nn=e=>{const t=e.meta.length>0?Or(e.meta):void 0,r=e.attributes.length>0?Or(e.attributes):void 0;return new e.constructor(void 0,t,r)},on=(e,t)=>t.clone&&t.isMergeableElement(e)?cn(nn(e),e,t):e,an={clone:!0,isMergeableElement:e=>Wt(e)||Ht(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>on(e,r))),objectElementMerge:(e,t,r)=>{const s=Wt(e)?nn(e):nn(t);return Wt(e)&&e.forEach(((e,t,n)=>{const i=jr(n);i.value=on(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=sn(n);let a;if(Wt(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=jr(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return cn;const r=t.customMerge(e,t);return"function"==typeof r?r:cn})(n,r)(s,t,r)}else a=jr(i),a.value=on(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},cn=(e,t,r)=>{var s,n,i;const o={...an,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:an.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:an.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:an.objectElementMerge;const a=Ht(t);if(!(a===Ht(e)))return on(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=>Or(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Or(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};cn.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,r)=>cn(e,r,t)),nn(e[0]))};const un=cn;const ln=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=un(t.meta,e.meta)),tr(e)&&xr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=un(t.attributes,e.attributes))}};const _n=class extends ln{enter(e){return this.element=Or(e),xt}},dn=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},mn=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:mn(r,[...t,r])},hn=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>mn(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=mn(n);for(let t of e){let e=mn(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(dn(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},pn=e=>e.filter(((t,r)=>e.indexOf(t)==r)),fn=(e,t)=>{const r=t.map((e=>mn(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},yn=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(fn(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==fn(s,e)||void 0!==t[s],get:(r,s)=>(fn(s,e)||t)[s],set(t,r,s){const n=fn(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),gn=null,wn="copy",bn="copy",vn="deep",En=new WeakMap,Sn=e=>En.get(e),xn=(e,t)=>{var r,s;const n=pn([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=pn([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},On=(e,t)=>{var r,s,n,i;return{property:xn(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:xn(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},An=(e,t)=>{var r,s,n,i,o,a;return{class:pn([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:On(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:On(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Mn=new Map,jn=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...mn(e.prototype).map((e=>e.constructor)),...null!==(t=Sn(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Mn.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>An(e,t)))},Tn=e=>{let t=Mn.get(e);return t||(t={},Mn.set(e,t)),t};function Pn(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=gn;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};n.push(r)}function o(...t){for(const r of e)dn(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===bn?hn(n,o):(a=n,c=o,yn([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===wn?hn(e,null,["prototype"]):yn(e,Function.prototype));let u=o;if("none"!==vn){const n="deep"===vn?jn(...e):((...e)=>{const t=e.map((e=>Tn(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>An(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}Nn(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),Nn(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,_;return l=u,_=e,En.set(l,_),u}const Nn=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Fn=u((function(e){return C(fe(Je,0,ze("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const In=u((function(e){return!qr(e)}));const Rn=l((function(e,t){return e||t}));var kn=K(C(1,De(Ue,l((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Rn)(e,t)}))(qe,Ze))));const Cn=Fn([lt,kn,In]);const $n=l((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const Dn=class extends ln{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return $n(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=hr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?hr(["visitors",...e],this.specObj):hr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof _n&&(null==s?void 0:s.constructor)===_n?Or(t):(Ir(t,s,r),s.element)}};const Ln=class extends Dn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(qt(s)&&r.includes(sn(s))&&!this.ignoredFields.includes(sn(s))){const r=this.toRefractedElement([...t,"fixedFields",sn(s)],e),i=new ce.Pr(Or(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(sn(s))||this.element.content.push(Or(n))})),this.copyMetaAndAttributes(e,this.element),xt}};const Un=class{parent;constructor({parent:e}){this.parent=e}},Bn=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vs||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),qn=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zs||e(s)&&t("JSONReference",s)&&r("object",s))),Vn=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hs||e(s)&&t("media",s)&&r("object",s))),Jn=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zs||e(s)&&t("linkDescription",s)&&r("object",s)));class zn extends(Pn(Ln,Un,_n)){constructor(e){super(e),this.element=new Vs,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,Ln.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!qt(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Bn(this.parent)&&!qt(e.get("$schema"))){const e=d(sn(this.parent.meta.get("inheritedDialectIdentifier")),sn(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Or(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,s=sn(e.get(t));Cn(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Wn=zn,Hn=e=>Wt(e)&&e.hasKey("$ref");class Gn extends(Pn(Dn,Un,_n)){ObjectElement(e){const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),xt}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const Zn=Gn;const Kn=class extends _n{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Xn=function(){return!1};const Yn=class extends Dn{specPath;ignoredFields;fieldPatternPredicate=Xn;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(sn(t))&&this.fieldPatternPredicate(sn(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ce.Pr(Or(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(sn(t))||this.element.content.push(Or(r))})),this.copyMetaAndAttributes(e,this.element),xt}};const Qn=class extends Yn{constructor(e){super(e),this.fieldPatternPredicate=Cn}};class ei extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ti=ei;class ri extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const si=ri;class ni extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ii=ni;const oi=class extends _n{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ai=class extends _n{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 ci extends(Pn(Dn,Un,_n)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const ui=ci;class li extends(Pn(Dn,Un,_n)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const _i=li;class di extends(Pn(Dn,Un,_n)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const mi=di;class hi extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Hn(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const pi=hi;class fi extends(Pn(Dn,Un,_n)){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),xt}}const yi=fi;class gi extends(Pn(Ln,_n)){constructor(e){super(e),this.element=new zs,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Ln.prototype.ObjectElement.call(this,e);return qt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const wi=gi;const bi=class extends _n{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const vi=_((function(e,t,r){return C(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Ei=u((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Si=l((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const xi=Si;const Oi=u(Pt);const Ai=K(cr);const Mi=De(Vr,In);function ji(e){return function(e){if(Array.isArray(e))return Ti(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 Ti(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ti(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 Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var Pi=be(xi(Ei((function(e,t){return e.length>t.length}))),is,f("length")),Ni=pr((function(e,t,r){var s=r.apply(void 0,ji(e));return Ai(s)?Oi(s):t}));const Fi=vi(Mi,(function(e){var t=Pi(e);return C(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return fe(Ni(r),void 0,e)}))}),ie);const Ii=class extends Dn{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>vi(e,ne(t),ie))),r=Fi(t)(e);return this.element=this.toRefractedElement(r,e),xt}};const Ri=class extends Ii{constructor(e){super(e),this.alternator=[{predicate:Hn,specPath:["document","objects","JSONReference"]},{predicate:Ks,specPath:["document","objects","JSONSchema"]}]}};class ki extends(Pn(Ln,_n)){constructor(e){super(e),this.element=new Hs,this.specPath=ne(["document","objects","Media"])}}const Ci=ki;class $i extends(Pn(Ln,_n)){constructor(e){super(e),this.element=new Zs,this.specPath=ne(["document","objects","LinkDescription"])}}const Di=$i,Li={visitors:{value:_n,JSONSchemaOrJSONReferenceVisitor:Ri,document:{objects:{JSONSchema:{$visitor:Wn,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:Ri,items:Zn,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Kn,properties:ti,additionalProperties:Ri,patternProperties:si,dependencies:ii,enum:oi,type:ai,allOf:ui,anyOf:_i,oneOf:mi,not:Ri,definitions:pi,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:yi,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:wi,fixedFields:{$ref:bi}},Media:{$visitor:Ci,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Di,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ri,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ri}}}}}},Ui=e=>{if(Bt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Bi={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Fr},qi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Vs),t.register("jSONReference",zs),t.register("media",Hs),t.register("linkDescription",Zs),t}},Vi=()=>{const e=ct(qi);return{predicates:{...t,isStringElement:qt},namespace:e}},Ji=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Li}={})=>{const n=(0,ce.e)(e),i=Sr(s),o=new(hr(t,i))({specObj:i});return Ir(n,o),Gr(o.element,r,{toolboxCreator:Vi,visitorOptions:{keyMap:Bi,nodeTypeGetter:Ui}})},zi=e=>(t,r={})=>Ji(t,{specPath:e,...r});Vs.refract=zi(["visitors","document","objects","JSONSchema","$visitor"]),zs.refract=zi(["visitors","document","objects","JSONReference","$visitor"]),Hs.refract=zi(["visitors","document","objects","Media","$visitor"]),Zs.refract=zi(["visitors","document","objects","LinkDescription","$visitor"]);const Wi=class extends Vs{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Bs("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Bs("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 Hi=class extends Zs{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 Bs("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Bs("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 Bs("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Bs("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Bs("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Bs("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 Gi=_((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!cr(s)&&$(n,s)&&"object"==typeof s[n]?s[n]:m(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(m(e)&&v(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)}));const Zi=Gi;const Ki=_((function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s}));var Xi=_((function(e,t,r){return Zi([e],t,r)}));const Yi=Xi;var Qi=l((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(m(e)&&v(t))return Ki(e,1,t);var r={};for(var s in t)r[s]=t[s];return delete r[e],r}(t[0],r);default:var s=t[0],n=Array.prototype.slice.call(t,1);return null==r[s]?function(e,t){if(m(e)&&v(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):Yi(s,e(n,r[s]),r)}}));const eo=Qi;const to=class extends Wn{constructor(e){super(e),this.element=new Wi}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 ro=class extends Zn{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),xt}};const so=class extends _n{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const no=class extends Di{constructor(e){super(e),this.element=new Hi}},io=be(Zi(["visitors","document","objects","JSONSchema","$visitor"],to),eo(["visitors","document","objects","JSONSchema","fixedFields","id"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","$id"],Li.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","contains"],Li.visitors.JSONSchemaOrJSONReferenceVisitor),Zi(["visitors","document","objects","JSONSchema","fixedFields","items"],ro),Zi(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Li.visitors.JSONSchemaOrJSONReferenceVisitor),Zi(["visitors","document","objects","JSONSchema","fixedFields","const"],Li.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","examples"],so),Zi(["visitors","document","objects","LinkDescription","$visitor"],no),Zi(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Li.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Zi(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Li.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","method"]),eo(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Zi(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Li.visitors.value))(Li),oo={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Fr},ao=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wi||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s))),co=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hi||e(s)&&t("linkDescription",s)&&r("object",s))),uo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Wi),t.register("jSONReference",zs),t.register("media",Hs),t.register("linkDescription",Hi),t}},lo=()=>{const e=ct(uo);return{predicates:{...r,isStringElement:qt},namespace:e}},_o=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=io}={})=>{const n=(0,ce.e)(e),i=Sr(s),o=new(hr(t,i))({specObj:i});return Ir(n,o),Gr(o.element,r,{toolboxCreator:lo,visitorOptions:{keyMap:oo,nodeTypeGetter:Ui}})},mo=e=>(t,r={})=>_o(t,{specPath:e,...r});Wi.refract=mo(["visitors","document","objects","JSONSchema","$visitor"]),Hi.refract=mo(["visitors","document","objects","LinkDescription","$visitor"]);const ho=class extends Wi{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Bs('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Bs('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 po=class extends Hi{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 Bs("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Bs("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 Bs("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Bs("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 fo=class extends to{constructor(e){super(e),this.element=new ho}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const yo=class extends no{constructor(e){super(e),this.element=new po}},go=be(Zi(["visitors","document","objects","JSONSchema","$visitor"],fo),Zi(["visitors","document","objects","JSONSchema","fixedFields","$comment"],io.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","if"],io.visitors.JSONSchemaOrJSONReferenceVisitor),Zi(["visitors","document","objects","JSONSchema","fixedFields","then"],io.visitors.JSONSchemaOrJSONReferenceVisitor),Zi(["visitors","document","objects","JSONSchema","fixedFields","else"],io.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","JSONSchema","fixedFields","media"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],io.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],io.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],io.visitors.value),Zi(["visitors","document","objects","LinkDescription","$visitor"],yo),Zi(["visitors","document","objects","LinkDescription","fixedFields","anchor"],io.visitors.value),Zi(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],io.visitors.value),eo(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Zi(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],io.visitors.value),Zi(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],io.visitors.value),Zi(["visitors","document","objects","LinkDescription","fixedFields","description"],io.visitors.value),Zi(["visitors","document","objects","LinkDescription","fixedFields","$comment"],io.visitors.value),Zi(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],io.visitors.JSONSchemaOrJSONReferenceVisitor),eo(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Zi(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],io.visitors.value))(io),wo={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Fr},bo=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ho||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s))),vo=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof po||e(s)&&t("linkDescription",s)&&r("object",s))),Eo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",ho),t.register("jSONReference",zs),t.register("linkDescription",po),t}},So=()=>{const e=ct(Eo);return{predicates:{...s,isStringElement:qt},namespace:e}},xo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=go}={})=>{const n=(0,ce.e)(e),i=Sr(s),o=new(hr(t,i))({specObj:i});return Ir(n,o),Gr(o.element,r,{toolboxCreator:So,visitorOptions:{keyMap:wo,nodeTypeGetter:Ui}})},Oo=e=>(t,r={})=>xo(t,{specPath:e,...r});ho.refract=Oo(["visitors","document","objects","JSONSchema","$visitor"]),po.refract=Oo(["visitors","document","objects","LinkDescription","$visitor"]);const Ao=class extends ho{constructor(e,t,r){super(e,t,r),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Bs("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Bs("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 Bs("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Bs("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 Mo=class extends po{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 jo=class extends fo{constructor(e){super(e),this.element=new Ao}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=Ln.prototype.ObjectElement.call(this,e);return qt(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const To=class extends _n{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Po=class extends _n{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class No extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Fo=No;class Io extends(Pn(Dn,Un,_n)){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),xt}}const Ro=Io;class ko extends(Pn(Dn,Un,_n)){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),xt}}const Co=ko;class $o extends(Pn(Dn,Un,_n)){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),xt}}const Do=$o;class Lo extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Uo=Lo;class Bo extends(Pn(Dn,Un,_n)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),xt}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),xt}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),xt}}const qo=Bo;class Vo extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Jo=Vo;class zo extends(Pn(Qn,Un,_n)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Wo=zo;const Ho=class extends _n{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Go=class extends yo{constructor(e){super(e),this.element=new Mo}},Zo=be(Zi(["visitors","document","objects","JSONSchema","$visitor"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],To),Zi(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],go.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],go.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],go.visitors.value),eo(["visitors","document","objects","JSONReference","$visitor"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Po),eo(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Fo),Zi(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Ro),Zi(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Co),Zi(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Do),Zi(["visitors","document","objects","JSONSchema","fixedFields","not"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","if"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","then"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","else"],jo),eo(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Uo),Zi(["visitors","document","objects","JSONSchema","fixedFields","items"],qo),Zi(["visitors","document","objects","JSONSchema","fixedFields","contains"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","properties"],Jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Wo),Zi(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],jo),Zi(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],go.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","minContains"],go.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Ho),Zi(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],go.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],jo),Zi(["visitors","document","objects","LinkDescription","$visitor"],Go),Zi(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],jo),Zi(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],jo),Zi(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],jo),Zi(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],jo))(go),Ko={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Fr},Xo=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ao||e(s)&&t("JSONSchema201909",s)&&r("object",s))),Yo=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mo||e(s)&&t("linkDescription",s)&&r("object",s))),Qo={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Ao),t.register("linkDescription",Mo),t}},ea=()=>{const e=ct(Qo);return{predicates:{...n,isStringElement:qt},namespace:e}},ta=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Zo}={})=>{const n=(0,ce.e)(e),i=Sr(s),o=new(hr(t,i))({specObj:i});return Ir(n,o),Gr(o.element,r,{toolboxCreator:ea,visitorOptions:{keyMap:Ko,nodeTypeGetter:Ui}})},ra=e=>(t,r={})=>ta(t,{specPath:e,...r});Ao.refract=ra(["visitors","document","objects","JSONSchema","$visitor"]),Mo.refract=ra(["visitors","document","objects","LinkDescription","$visitor"]);const sa=class extends Ao{constructor(e,t,r){super(e,t,r),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Bs("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Bs("$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 Bs("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Bs("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const na=class extends Mo{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 ia=class extends jo{constructor(e){super(e),this.element=new sa}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class oa extends(Pn(Dn,Un,_n)){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),xt}}const aa=oa;const ca=class extends Go{constructor(e){super(e),this.element=new na}},ua=be(Zi(["visitors","document","objects","JSONSchema","$visitor"],ia),eo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Zo.visitors.value),eo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Zo.visitors.value),Zi(["visitors","document","objects","JSONSchema","fixedFields","not"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","if"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","then"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","else"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],aa),Zi(["visitors","document","objects","JSONSchema","fixedFields","items"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","contains"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],ia),eo(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Zi(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],ia),Zi(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],ia),Zi(["visitors","document","objects","LinkDescription","$visitor"],ca),Zi(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],ia),Zi(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],ia),Zi(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ia),Zi(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],ia))(Zo),la={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Fr},_a=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sa||e(s)&&t("JSONSchema202012",s)&&r("object",s))),da=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof na||e(s)&&t("linkDescription",s)&&r("object",s))),ma={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",sa),t.register("linkDescription",na),t}},ha=()=>{const e=ct(ma);return{predicates:{...i,isStringElement:qt},namespace:e}},pa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=ua}={})=>{const n=(0,ce.e)(e),i=Sr(s),o=new(hr(t,i))({specObj:i});return Ir(n,o),Gr(o.element,r,{toolboxCreator:ha,visitorOptions:{keyMap:la,nodeTypeGetter:Ui}})},fa=e=>(t,r={})=>pa(t,{specPath:e,...r});sa.refract=fa(["visitors","document","objects","JSONSchema","$visitor"]),na.refract=fa(["visitors","document","objects","LinkDescription","$visitor"]);class ya extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="arazzoSpecification1",this.classes.push("api"),this.classes.push("arazzo")}get arazzoSpec(){return this.get("arazzoSpec")}set arazzoSpec(e){this.set("arazzoSpec",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get sourceDescriptions(){return this.get("sourceDescriptions")}set sourceDescriptions(e){this.set("sourceDescriptions",e)}get workflows(){return this.get("workflows")}set workflows(e){this.set("workflows",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}}const ga=ya;class wa extends ce.Om{constructor(e,t,r){super(e,t,r),this.element="arazzoSpec",this.classes.push("spec-version"),this.classes.push("version")}}const ba=wa;class va extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get 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 version(){return this.get("version")}set version(e){this.set("version",e)}}const Ea=va;class Sa extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="sourceDescription"}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 type(){return this.get("type")}set type(e){this.set("type",e)}}const xa=Sa;class Oa extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="workflow"}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",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 inputs(){return this.get("inputs")}set inputs(e){this.set("inputs",e)}get steps(){return this.get("steps")}set steps(e){this.set("steps",e)}get outputs(){return this.get("outputs")}set outputs(e){this.set("outputs",e)}}const Aa=Oa;class Ma extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="step"}get description(){return this.get("description")}set description(e){this.set("description",e)}get stepId(){return this.get("stepId")}set stepId(e){this.set("stepId",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get dependsOn(){return this.get("dependsOn")}set dependsOn(e){this.set("dependsOn",e)}get successCriteria(){return this.get("successCriteria")}set successCriteria(e){this.set("successCriteria",e)}get onSuccess(){return this.get("onSuccess")}set onSuccess(e){this.set("onSuccess",e)}get onFailure(){return this.get("onFailure")}set onFailure(e){this.set("onFailure",e)}get outputs(){return this.get("outputs")}set outputs(e){this.set("outputs",e)}}const ja=Ma;class Ta extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get target(){return this.get("target")}set target(e){this.set("target",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}}const Pa=Ta;class Na extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="successAction"}get type(){return this.get("type")}set type(e){this.set("type",e)}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",e)}get stepId(){return this.get("stepId")}set stepId(e){this.set("stepId",e)}get criteria(){return this.get("criteria")}set criteria(e){this.set("criteria",e)}}const Fa=Na;class Ia extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="failureAction"}get type(){return this.get("type")}set type(e){this.set("type",e)}get workflowId(){return this.get("workflowId")}set workflowId(e){this.set("workflowId",e)}get stepId(){return this.get("stepId")}set stepId(e){this.set("stepId",e)}get retryAfter(){return this.get("retryAfter")}set retryAfter(e){this.set("retryAfter",e)}get retryLimit(){return this.get("retryLimit")}set retryLimit(e){this.set("retryLimit",e)}get criteria(){return this.get("criteria")}set criteria(e){this.set("criteria",e)}}const Ra=Ia;class ka extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get inputs(){return this.get("inputs")}set inputs(e){this.set("inputs",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Ca=ka;class $a extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="criterion"}get context(){return this.get("context")}set context(e){this.set("context",e)}get condition(){return this.get("condition")}set condition(e){this.set("condition",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Da=$a;class La extends ce.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("arazzo-spec-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}}const Ua=La;const Ba=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=un(t.meta,e.meta)),tr(e)&&xr(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=un(t.attributes,e.attributes))}};const qa=class extends Ba{enter(e){return this.element=Or(e),xt}};const Va=class extends Ba{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return $n(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=hr(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?hr(["visitors",...e],this.specObj):hr(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof qa&&(null==s?void 0:s.constructor)===qa?Or(t):(Ir(t,s,r),s.element)}};var Ja=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=N,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Pt(r):r},e}();function za(e){return function(t){return new Ja(e,t)}}const Wa=l(j(["take"],za,(function(e,t){return ge(0,e<0?1/0:e,t)})));const Ha=l((function(e,t){return se(Wa(e.length,t),e)})),Ga=e=>qt(e.key)&&Ha("x-",sn(e.key)),Za=e=>Wt(e)&&e.hasKey("$ref");const Ka=class extends Va{specPath;ignoredFields=[];canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Ga;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(qt(s)&&r.includes(sn(s))&&!this.ignoredFields.includes(sn(s))){const r=this.toRefractedElement([...t,"fixedFields",sn(s)],e),i=new ce.Pr(Or(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(sn(s))||this.element.content.push(Or(n))})),this.copyMetaAndAttributes(e,this.element),xt}};class Xa extends(Pn(Ka,qa)){element;specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new ga,this.specPath=ne(["document","objects","ArazzoSpecification"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Ka.prototype.ObjectElement.call(this,e)}}const Ya=Xa;class Qa extends(Pn(Va,qa)){StringElement(e){const t=new ba(sn(e));return this.copyMetaAndAttributes(e,t),this.element=t,xt}}const ec=Qa;class tc extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Ea,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const rc=tc;const sc=class extends qa{StringElement(e){const t=super.enter(e);return this.element.classes.push("arazzo-version"),this.element.classes.push("version"),t}};class nc extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new xa,this.specPath=ne(["document","objects","SourceDescription"]),this.canSupportSpecificationExtensions=!0}}const ic=nc;const oc=class extends qa{StringElement(e){const t=super.enter(e);return this.element.classes.push("source-description-url"),t}};class ac extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Aa,this.specPath=ne(["document","objects","Workflow"]),this.canSupportSpecificationExtensions=!0}}const cc=ac;class uc extends ce.wE{static primaryClass="workflow-steps";constructor(e,t,r){super(e,t,r),this.classes.push(uc.primaryClass)}}const lc=uc;class _c extends(Pn(Va,qa)){constructor(e){super(e),this.element=new lc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Step"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const dc=_c;const mc=class extends Va{specPath;ignoredFields;fieldPatternPredicate=Xn;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Ga;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(sn(t))&&this.fieldPatternPredicate(sn(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ce.Pr(Or(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(sn(t))||this.element.content.push(Or(r))})),this.copyMetaAndAttributes(e,this.element),xt}};const hc=class extends mc{constructor(e){super(e),this.fieldPatternPredicate=Cn}};class pc extends ce.Sh{static primaryClass="workflow-outputs";constructor(e,t,r){super(e,t,r),this.classes.push(pc.primaryClass)}}const fc=pc;class yc extends(Pn(hc,qa)){constructor(e){super(e),this.element=new fc,this.specPath=ne(["value"])}}const gc=yc;class wc extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new ja,this.specPath=ne(["document","objects","Step"]),this.canSupportSpecificationExtensions=!0}}const bc=wc;class vc extends ce.Sh{static primaryClass="step-outputs";constructor(e,t,r){super(e,t,r),this.classes.push(vc.primaryClass)}}const Ec=vc;class Sc extends(Pn(hc,qa)){constructor(e){super(e),this.element=new Ec,this.specPath=ne(["value"])}}const xc=Sc;class Oc extends ce.wE{static primaryClass="workflows";constructor(e,t,r){super(e,t,r),this.classes.push(Oc.primaryClass)}}const Ac=Oc;class Mc extends ce.wE{static primaryClass="sourceDescriptions";constructor(e,t,r){super(e,t,r),this.classes.push(Mc.primaryClass)}}const jc=Mc;class Tc extends ce.wE{static primaryClass="step-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Tc.primaryClass),this.classes.push("parameters")}}const Pc=Tc;class Nc extends ce.wE{static primaryClass="step-depends-on";constructor(e,t,r){super(e,t,r),this.classes.push(Nc.primaryClass)}}const Fc=Nc;class Ic extends ce.wE{static primaryClass="step-success-criteria";constructor(e,t,r){super(e,t,r),this.classes.push(Ic.primaryClass),this.classes.push("criteria")}}const Rc=Ic;class kc extends ce.wE{static primaryClass="step-on-success";constructor(e,t,r){super(e,t,r),this.classes.push(kc.primaryClass)}}const Cc=kc;class $c extends ce.wE{static primaryClass="step-on-failure";constructor(e,t,r){super(e,t,r),this.classes.push($c.primaryClass)}}const Dc=$c;class Lc extends ce.wE{static primaryClass="success-action-criteria";constructor(e,t,r){super(e,t,r),this.classes.push(Lc.primaryClass),this.classes.push("criteria")}}const Uc=Lc;class Bc extends ce.wE{static primaryClass="failure-action-criteria";constructor(e,t,r){super(e,t,r),this.classes.push(Bc.primaryClass),this.classes.push("criteria")}}const qc=Bc,Vc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ba||e(s)&&t("arazzoSpec",s)&&r("string",s))),Jc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof ga||e(n)&&t("arazzoSpecification1",n)&&r("object",n)&&s("api",n)&&s("arazzo",n))),zc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Ea||e(n)&&t("info",n)&&r("object",n)&&s("info",n))),Wc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xa||e(s)&&t("sourceDescription",s)&&r("object",s))),Hc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof jc||e(n)&&t("sourceDescriptions",n)&&r("array",n)&&s("sourceDescriptions",n))),Gc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Ac||e(n)&&t("workflows",n)&&r("array",n)&&s("workflows",n))),Zc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof lc||e(n)&&t("array",n)&&r("array",n)&&s("workflow-steps",n))),Kc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof fc||e(n)&&t("array",n)&&r("array",n)&&s("workflow-outputs",n))),Xc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Aa||e(s)&&t("workflow",s)&&r("object",s))),Yc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Cc||e(n)&&t("array",n)&&r("array",n)&&s("step-on-success",n))),Qc=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Dc||e(n)&&t("array",n)&&r("array",n)&&s("step-on-failure",n))),eu=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Ec||e(n)&&t("array",n)&&r("array",n)&&s("step-outputs",n))),tu=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ja||e(s)&&t("step",s)&&r("object",s))),ru=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Pc||e(n)&&t("array",n)&&r("array",n)&&s("step-parameters",n))),su=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Fc||e(n)&&t("array",n)&&r("array",n)&&s("step-depends-on",n))),nu=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Rc||e(n)&&t("array",n)&&r("array",n)&&s("step-success-criteria",n)&&s("criteria",n))),iu=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pa||e(s)&&t("parameter",s)&&r("object",s))),ou=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fa||e(s)&&t("successAction",s)&&r("object",s))),au=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ca||e(s)&&t("components",s)&&r("object",s))),cu=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Da||e(s)&&t("criterion",s)&&r("object",s))),uu=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ua||e(s)&&t("reference",s)&&r("object",s))),lu=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Uc||e(n)&&t("array",n)&&r("array",n)&&s("success-action-criteria",n)&&s("criteria",n))),_u=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ra||e(s)&&t("failureAction",s)&&r("object",s))),du=Ut((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof qc||e(n)&&t("array",n)&&r("array",n)&&s("failure-action-criteria",n)&&s("criteria",n)));class mu extends(Pn(Va,qa)){constructor(e){super(e),this.element=new Pc}ArrayElement(e){return e.forEach((e=>{const t=Za(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);uu(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xt}}const hu=mu;const pu=class extends qa{constructor(e){super(e),this.element=new Fc}ArrayElement(e){return this.element=this.element.concat(Or(e)),xt}};class fu extends(Pn(Va,qa)){constructor(e){super(e),this.element=new Rc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Criterion"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const yu=fu;class gu extends(Pn(Va,qa)){constructor(e){super(e),this.element=new Cc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SuccessAction"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const wu=gu;class bu extends(Pn(Va,qa)){constructor(e){super(e),this.element=new Dc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","FailureAction"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const vu=bu;class Eu extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Pa,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Su=Eu;class xu extends(Pn(Va,qa)){element;constructor(e){super(e),this.element=new jc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SourceDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const Ou=xu;class Au extends(Pn(Va,qa)){element;constructor(e){super(e),this.element=new Ac}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Workflow"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const Mu=Au;class ju extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Fa,this.specPath=ne(["document","objects","SuccessAction"]),this.canSupportSpecificationExtensions=!0}}const Tu=ju;class Pu extends(Pn(Va,qa)){element;constructor(e){super(e),this.element=new Uc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Criterion"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const Nu=Pu;class Fu extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Ra,this.specPath=ne(["document","objects","FailureAction"]),this.canSupportSpecificationExtensions=!0}}const Iu=Fu;class Ru extends(Pn(Va,qa)){element;constructor(e){super(e),this.element=new qc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Criterion"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),xt}}const ku=Ru;class Cu extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Ca,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const $u=Cu;class Du extends ce.Sh{static primaryClass="components-inputs";constructor(e,t,r){super(e,t,r),this.classes.push(Du.primaryClass)}}const Lu=Du;class Uu extends(Pn(hc,qa)){constructor(e){super(e),this.element=new Lu,this.specPath=ne(["document","objects","JSONSchema"])}}const Bu=Uu;class qu extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(qu.primaryClass)}}const Vu=qu;class Ju extends(Pn(hc,qa)){constructor(e){super(e),this.element=new Vu,this.specPath=ne(["document","objects","Parameter"])}}const zu=Ju;class Wu extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Da,this.specPath=ne(["document","objects","Criterion"]),this.canSupportSpecificationExtensions=!0}}const Hu=Wu;class Gu extends(Pn(Ka,qa)){constructor(e){super(e),this.element=new Ua,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Ka.prototype.ObjectElement.call(this,e);return qt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Zu=Gu;const Ku=class extends qa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Xu=class extends Va{MemberElement(e){return this.element=Or(e),this.element.classes.push("specification-extension"),xt}},{JSONSchema:Yu}=ua.visitors.document.objects,Qu={visitors:{value:qa,document:{objects:{ArazzoSpecification:{$visitor:Ya,fixedFields:{arazzo:ec,info:{$ref:"#/visitors/document/objects/Info"},sourceDescriptions:Ou,workflows:Mu,components:{$ref:"#/visitors/document/objects/Components"}}},Info:{$visitor:rc,fixedFields:{title:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},version:sc}},SourceDescription:{$visitor:ic,fixedFields:{name:{$ref:"#/visitors/value"},url:oc,type:{$ref:"#/visitors/value"}}},Workflow:{$visitor:cc,fixedFields:{workflowId:{$ref:"#/visitors/value"},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},inputs:Yu,steps:dc,outputs:gc}},Step:{$visitor:bc,fixedFields:{description:{$ref:"#/visitors/value"},stepId:{$ref:"#/visitors/value"},operationId:{$ref:"#/visitors/value"},operationRef:{$ref:"#/visitors/value"},workflowId:{$ref:"#/visitors/value"},parameters:hu,dependsOn:pu,successCriteria:yu,onSuccess:wu,onFailure:vu,outputs:xc}},Parameter:{$visitor:Su,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},target:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"}}},SuccessAction:{$visitor:Tu,fixedFields:{type:{$ref:"#/visitors/value"},workflowId:{$ref:"#/visitors/value"},stepId:{$ref:"#/visitors/value"},criteria:Nu}},FailureAction:{$visitor:Iu,fixedFields:{type:{$ref:"#/visitors/value"},workflowId:{$ref:"#/visitors/value"},stepId:{$ref:"#/visitors/value"},retryAfter:{$ref:"#/visitors/value"},retryLimit:{$ref:"#/visitors/value"},criteria:ku}},Components:{$visitor:$u,fixedFields:{inputs:Bu,parameters:zu}},Criterion:{$visitor:Hu,fixedFields:{context:{$ref:"#/visitors/value"},condition:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},Reference:{$visitor:Zu,fixedFields:{$ref:Ku,value:{$ref:"#/visitors/value"}}},JSONSchema:Yu},extension:{$visitor:Xu}}}},el=e=>{if(Bt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},tl={ArazzoSpecification1Element:["content"],InfoElement:["content"],SourceDescriptionElement:["content"],WorkflowElement:["content"],StepElement:["content"],ParameterElement:["content"],SuccessActionElement:["content"],FailureActionElement:["content"],ComponentsElement:["content"],CriterionElement:["content"],ReferenceElement:["content"],JSONSchema202012Element:["content"],...Fr},rl={namespace:e=>{const{base:t}=e;return t.register("arazzoSpecification1",ga),t.register("arazzoSpec",ba),t.register("info",Ea),t.register("sourceDescription",xa),t.register("workflow",Aa),t.register("step",ja),t.register("parameter",Pa),t.register("successAction",Fa),t.register("failureAction",Ra),t.register("components",Ca),t.register("criterion",Da),t.register("reference",Ua),t.register("jSONSchema202012",sa),t}},sl=()=>{const e=ct(rl);return{predicates:{...o,...a,isStringElement:qt},namespace:e}},nl=(e,{specPath:t=["visitors","document","objects","ArazzoSpecification","$visitor"],plugins:r=[]}={})=>{const s=(0,ce.e)(e),n=Sr(Qu),i=new(hr(t,n))({specObj:n});return Ir(s,i),Gr(i.element,r,{toolboxCreator:sl,visitorOptions:{keyMap:tl,nodeTypeGetter:el}})},il=e=>(t,r={})=>nl(t,{specPath:e,...r});Ea.refract=il(["visitors","document","objects","Info","$visitor"]),ba.refract=il(["visitors","document","objects","ArazzoSpecification","fixedFields","arazzo"]),ga.refract=il(["visitors","document","objects","ArazzoSpecification","$visitor"]),xa.refract=il(["visitors","document","objects","SourceDescription","$visitor"]),Aa.refract=il(["visitors","document","objects","Workflow","$visitor"]),ja.refract=il(["visitors","document","objects","Step","$visitor"]),Pa.refract=il(["visitors","document","objects","Parameter","$visitor"]),Fa.refract=il(["visitors","document","objects","SuccessAction","$visitor"]),Ra.refract=il(["visitors","document","objects","FailureAction","$visitor"]),Ca.refract=il(["visitors","document","objects","Components","$visitor"]),Da.refract=il(["visitors","document","objects","Criterion","$visitor"]),Ua.refract=il(["visitors","document","objects","Reference","$visitor"]),sa.refract=il(["visitors","document","objects","JSONSchema","$visitor"]);const ol=u((function(e){return p(-1,e)}));const al=class extends Bs{};const cl=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new al("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new al("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new al("latest method in MediaTypes class is not yet implemented.")}};class ul extends cl{filterByFormat(e="generic"){const t="generic"===e?"workflows;version":e;return this.filter((e=>e.includes(t)))}findBy(e="1.0.1",t="generic"){const r="generic"===t?`vnd.oai.workflows;version=${e}`:`vnd.oai.workflows+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return ol(this.filterByFormat(e))}}const ll=new ul("application/vnd.oai.workflows;version=1.0.0","application/vnd.oai.workflows+json;version=1.0.0","application/vnd.oai.workflows+yaml;version=1.0.0","application/vnd.oai.workflows;version=1.0.1","application/vnd.oai.workflows+json;version=1.0.1","application/vnd.oai.workflows+yaml;version=1.0.1"),_l=new ul(...ll.filterByFormat("generic"),...ll.filterByFormat("json")),dl=/"arazzo"\s*:\s*"(?<version_json>1\.(?:[1-9]\d*|0)\.(?:[1-9]\d*|0))"/,ml=async e=>dl.test(e)&&await(async e=>{if(!Us.test(e))return!1;try{return"ERROR"!==(await vt(e)).rootNode.type}catch{return!1}})(e),hl=async(e,t={})=>{const r=y({},"refractorOpts",t),s=w(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await vt(e);let n;return n="indirect"===r?Ls(s,{sourceMap:t}):ns(s,{sourceMap:t}),n})(e,s),{result:i}=n;if(ae(i)){const e=ga.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},pl=ct(rl)})(),__webpack_exports__})()));
|